@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

/* ===== BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: #f8fafc;
    color: #0f172a;
}

/* ===== UTILITY CLASSES ===== */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

.section {
    padding: 6rem 1rem;
}

.section-white {
    background-color: white;
}

.section-gray {
    background-color: #f8fafc;
}

.text-center {
    text-align: center;
}

.hidden {
    display: none;
}

/* ===== NAVIGATION ===== */
.nav {
    position: fixed;
    width: 100%;
    z-index: 50;
    transition: all 0.3s ease;
}

.glass-effect {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 5rem;
}

.nav-logo {
    display: flex;
    align-items: center;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.05em;
}

.gradient-text {
    background: linear-gradient(135deg, #0f172a 0%, #334155 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-menu {
    display: none;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    color: #0f172a;
    text-decoration: none;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #2563eb;
}

.btn-primary {
    background-color: #0f172a;
    color: white;
    padding: 0.625rem 1.5rem;
    border-radius: 9999px;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-primary:hover {
    background-color: #1d4ed8;
    transform: scale(1.05);
}

.mobile-menu-btn {
    display: block;
    padding: 0.5rem;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu {
    background-color: white;
    border-top: 1px solid #e2e8f0;
    padding: 1rem;
}

.mobile-menu a {
    display: block;
    padding: 0.5rem 0;
    color: #0f172a;
    text-decoration: none;
}

.mobile-menu a:last-child {
    color: #2563eb;
    font-weight: 700;
}

/* ===== HERO SECTION ===== */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1rem;
}

.hero-bg {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('https://images.unsplash.com/photo-1590483734724-383b853b237d?auto=format&fit=crop&q=80&w=2000');
    background-size: cover;
    background-position: center;
    color: white;
}

.hero-content {
    max-width: 56rem;
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    color: #cbd5e1;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1rem;
}

.btn-hero-primary {
    background-color: #2563eb;
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 9999px;
    font-size: 1.125rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-hero-primary:hover {
    background-color: #1d4ed8;
}

.btn-hero-secondary {
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 9999px;
    font-size: 1.125rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-hero-secondary:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

/* ===== SECTION HEADERS ===== */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.section-divider {
    width: 5rem;
    height: 0.375rem;
    background-color: #2563eb;
    margin: 0 auto;
    border-radius: 9999px;
}

.section-subtitle {
    color: #64748b;
}

/* ===== SERVICES SECTION ===== */
.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.service-card {
    padding: 2rem;
    border-radius: 1.5rem;
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    transition: box-shadow 0.3s ease;
}

.service-card:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.service-icon {
    width: 3.5rem;
    height: 3.5rem;
    background-color: #dbeafe;
    color: #2563eb;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    background-color: #2563eb;
    color: white;
}

.service-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.service-description {
    color: #475569;
    line-height: 1.75;
}

/* ===== PORTFOLIO SECTION ===== */
.portfolio-header {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    margin-bottom: 3rem;
}

.portfolio-title-block h2 {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.portfolio-title-block p {
    color: #64748b;
}

.portfolio-filters {
    margin-top: 1.5rem;
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding-bottom: 1rem;
}

.filter-btn {
    padding: 0.5rem 1.5rem;
    border-radius: 9999px;
    white-space: nowrap;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn.active {
    background-color: #2563eb;
    color: white;
}

.filter-btn:not(.active) {
    background-color: white;
    color: #64748b;
    border: 1px solid #e2e8f0;
}

.filter-btn:not(.active):hover {
    border-color: #2563eb;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.portfolio-card {
    position: relative;
    overflow: hidden;
    border-radius: 1.5rem;
    cursor: pointer;
    height: 20rem;
}

.portfolio-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.portfolio-card:hover .portfolio-image {
    transform: scale(1.1);
}

.portfolio-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.2), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2rem;
    color: white;
}

.portfolio-card:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-category {
    color: #60a5fa;
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.portfolio-name {
    font-size: 1.5rem;
    font-weight: 700;
}

.portfolio-cta {
    background-color: #2563eb;
    color: white;
    padding: 2rem;
    border-radius: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    height: 20rem;
}

.portfolio-cta-content h4 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.portfolio-cta-content p {
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.portfolio-cta-btn {
    display: inline-block;
    border: 2px solid white;
    padding: 0.5rem 1.5rem;
    border-radius: 9999px;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.portfolio-cta-btn:hover {
    background-color: white;
    color: #2563eb;
}

/* ===== QUOTE FORM SECTION ===== */
.quote-section {
    padding: 6rem 1rem;
    background-color: white;
    position: relative;
    overflow: hidden;
}

.quote-container {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 4rem;
    align-items: center;
}

.quote-info {
    width: 100%;
}

.quote-label {
    color: #2563eb;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 1rem;
    display: block;
}

.quote-title {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.quote-description {
    font-size: 1.125rem;
    color: #64748b;
    margin-bottom: 2rem;
    line-height: 1.75;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.contact-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 0.75rem;
    background-color: #eff6ff;
    color: #2563eb;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-details h4 {
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.contact-details p {
    color: #64748b;
}

.quote-form-wrapper {
    width: 100%;
}

.quote-form-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid #e2e8f0;
    padding: 3rem;
    border-radius: 2.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    position: relative;
    z-index: 10;
}

.form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 0.75rem 1.25rem;
    border-radius: 0.75rem;
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    outline: none;
    transition: all 0.3s ease;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-textarea {
    resize: vertical;
}

.btn-submit {
    width: 100%;
    background-color: #2563eb;
    color: white;
    padding: 1rem;
    border-radius: 0.75rem;
    font-weight: 700;
    font-size: 1.125rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.3);
}

.btn-submit:hover {
    background-color: #1d4ed8;
}

.btn-submit:active {
    transform: scale(0.95);
}

/* ===== FOOTER ===== */
.footer {
    background-color: #0f172a;
    color: white;
    padding: 4rem 1rem;
}

.footer-content {
    max-width: 1280px;
    margin: 0 auto;
    text-align: center;
}

.footer-title {
    font-size: 1.875rem;
    font-weight: 700;
    margin-bottom: 2rem;
    letter-spacing: -0.05em;
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-social a {
    color: white;
    transition: color 0.3s ease;
}

.footer-social a:hover {
    color: #60a5fa;
}

.footer-copyright {
    color: #64748b;
    margin-bottom: 1rem;
}

.footer-links {
    font-size: 0.875rem;
    color: #475569;
}

.footer-links a {
    color: #475569;
    text-decoration: none;
    margin: 0 0.75rem;
}

.footer-links a:hover {
    text-decoration: underline;
}

/* ===== TOAST NOTIFICATION ===== */
.toast {
    position: fixed;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%) translateY(6rem);
    background-color: #16a34a;
    color: white;
    padding: 1rem 2rem;
    border-radius: 9999px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.5s ease;
    opacity: 0;
    z-index: 100;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (min-width: 640px) {
    .hero-buttons {
        flex-direction: row;
    }

    .nav-container {
        padding: 0 1.5rem;
    }
}

@media (min-width: 768px) {
    .mobile-menu-btn {
        display: none;
    }

    .nav-menu {
        display: flex;
    }

    .hero-title {
        font-size: 4.5rem;
    }

    .hero-subtitle {
        font-size: 1.5rem;
    }

    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .portfolio-header {
        flex-direction: row;
        align-items: flex-end;
    }

    .portfolio-filters {
        margin-top: 0;
    }

    .quote-container {
        flex-direction: row;
    }

    .quote-info,
    .quote-form-wrapper {
        width: 50%;
    }

    .form-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .nav-container {
        padding: 0 2rem;
    }

    .portfolio-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}