*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --navy: #0F1A2D;
    --navy-light: #1a2d47;
    --blue: #32526D;
    --blue-accent: #4A90D9;
    --blue-glow: #5ba3f0;
    --white: #ffffff;
    --cream: #f5f2ed;
    --gray: #8a9bb5;
    --shadow: 0 4px 30px rgba(15, 26, 45, 0.15);
    --shadow-lg: 0 12px 50px rgba(15, 26, 45, 0.25);
    --transition: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--white);
    color: var(--navy);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* Noise overlay */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 256px 256px;
}

/* Grid background */
.grid-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    background-image: 
        linear-gradient(rgba(50, 82, 109, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(50, 82, 109, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 32px;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--navy);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    transition: var(--transition);
}

.header.scrolled {
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.logo {
    font-family: 'DM Serif Display', serif;
    font-size: 1.75rem;
    font-weight: 400;
    color: var(--white);
    text-decoration: none;
    letter-spacing: 0.02em;
}

.logo__dot {
    color: var(--blue-accent);
}

.nav__list {
    display: flex;
    align-items: center;
    gap: 40px;
    list-style: none;
}

.nav__link {
    font-size: 0.9rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
    position: relative;
    letter-spacing: 0.02em;
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--blue-accent);
    transition: var(--transition);
}

.nav__link:hover {
    color: var(--white);
}

.nav__link:hover::after {
    width: 100%;
}

.nav__link--cta {
    background: var(--blue-accent);
    color: var(--white);
    padding: 10px 28px;
    border-radius: 4px;
    font-weight: 500;
}

.nav__link--cta::after {
    display: none;
}

.nav__link--cta:hover {
    background: var(--blue-glow);
    transform: translateY(-1px);
}

.nav__toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.nav__toggle span {
    display: block;
    width: 24px;
    height: 1.5px;
    background: var(--white);
    transition: var(--transition);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 36px;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: 4px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
    letter-spacing: 0.02em;
}

.btn--primary {
    background: var(--blue-accent);
    color: var(--white);
    border-color: var(--blue-accent);
}

.btn--primary:hover {
    background: var(--blue-glow);
    border-color: var(--blue-glow);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(74, 144, 217, 0.3);
}

.btn--outline {
    background: transparent;
    color: var(--navy);
    border-color: var(--navy);
}

.btn--outline:hover {
    background: var(--navy);
    color: var(--white);
    transform: translateY(-2px);
}

.btn--light {
    background: var(--white);
    color: var(--navy);
    border-color: var(--white);
}

.btn--light:hover {
    background: transparent;
    color: var(--white);
    border-color: var(--white);
    transform: translateY(-2px);
}

.btn--full {
    width: 100%;
}

/* Hero */
.hero {
    padding: 160px 0 120px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
}

.hero__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.hero__tag {
    display: inline-block;
    background: var(--navy);
    color: var(--white);
    padding: 8px 20px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 28px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.hero__title {
    font-family: 'DM Serif Display', serif;
    font-size: clamp(2.75rem, 5.5vw, 4.25rem);
    font-weight: 400;
    line-height: 1.15;
    letter-spacing: -0.01em;
    margin-bottom: 28px;
}

.highlight {
    color: var(--blue-accent);
    position: relative;
}

.hero__text {
    font-size: 1.1rem;
    color: var(--gray);
    margin-bottom: 40px;
    max-width: 480px;
    line-height: 1.7;
}

.hero__actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero__image {
    position: relative;
}

.hero__image-wrapper {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    background: var(--navy);
    aspect-ratio: 3/4;
    box-shadow: var(--shadow-lg);
}

.hero__image-wrapper::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    background: linear-gradient(135deg, var(--blue-accent), var(--navy));
    z-index: -1;
    border-radius: 9px;
}

.hero__placeholder {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
}

.hero__image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40%;
    background: linear-gradient(to top, var(--navy), transparent);
    pointer-events: none;
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 72px;
}

.section-tag {
    display: inline-block;
    background: var(--blue-accent);
    color: var(--white);
    padding: 6px 16px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
    margin-bottom: 20px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.section-title {
    font-family: 'DM Serif Display', serif;
    font-size: clamp(2.25rem, 4vw, 3rem);
    font-weight: 400;
    color: var(--navy);
    letter-spacing: -0.01em;
    margin-bottom: 16px;
}

.section-text {
    font-size: 1.05rem;
    color: var(--gray);
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Areas */
.areas {
    padding: 120px 0;
    background: var(--cream);
    position: relative;
}

.areas::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--blue), transparent);
}

.areas__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.area-card {
    background: var(--white);
    padding: 40px 32px;
    border-radius: 8px;
    transition: var(--transition);
    border: 1px solid rgba(50, 82, 109, 0.08);
    position: relative;
    overflow: hidden;
}

.area-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 0;
    background: var(--blue-accent);
    transition: var(--transition);
}

.area-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(74, 144, 217, 0.2);
}

.area-card:hover::before {
    height: 100%;
}

.area-card__icon {
    width: 52px;
    height: 52px;
    background: var(--navy);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    color: var(--white);
}

.area-card__icon svg {
    width: 26px;
    height: 26px;
}

.area-card__title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 12px;
    letter-spacing: -0.01em;
}

.area-card__text {
    font-size: 0.9rem;
    color: var(--gray);
    line-height: 1.7;
}

/* CTA */
.cta {
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(74, 144, 217, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(50, 82, 109, 0.15) 0%, transparent 50%);
    pointer-events: none;
}

.cta--mid {
    background: var(--navy);
}

.cta--dark {
    background: var(--navy-light);
}

.cta__inner {
    text-align: center;
    max-width: 680px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.cta__title {
    font-family: 'DM Serif Display', serif;
    font-size: clamp(2rem, 3.5vw, 2.75rem);
    font-weight: 400;
    color: var(--white);
    margin-bottom: 16px;
    letter-spacing: -0.01em;
}

.cta__text {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 36px;
    line-height: 1.7;
}

/* Projects */
.projects {
    padding: 120px 0;
    background: var(--white);
}

.projects__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.project-card {
    background: var(--cream);
    padding: 36px 32px;
    border-radius: 8px;
    position: relative;
    transition: var(--transition);
    border: 1px solid rgba(50, 82, 109, 0.06);
}

.project-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(74, 144, 217, 0.15);
}

.project-card__badge {
    display: inline-block;
    background: var(--navy);
    color: var(--white);
    padding: 5px 14px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    margin-bottom: 20px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.project-card__title {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--navy);
    margin-bottom: 12px;
    letter-spacing: -0.01em;
}

.project-card__text {
    font-size: 0.88rem;
    color: var(--gray);
    margin-bottom: 20px;
    line-height: 1.7;
}

.project-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
}

.project-card__tags li {
    background: var(--white);
    color: var(--navy);
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 0.72rem;
    font-weight: 500;
    border: 1px solid rgba(50, 82, 109, 0.1);
}

/* Contact */
.contact {
    padding: 120px 0;
    background: var(--cream);
    position: relative;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--blue), transparent);
}

.contact__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.contact__info .section-tag {
    margin-bottom: 16px;
}

.contact__info .section-title {
    text-align: left;
    margin-bottom: 16px;
}

.contact__text {
    font-size: 1rem;
    color: var(--gray);
    margin-bottom: 36px;
    line-height: 1.7;
}

.contact__channels {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact__channel {
    display: flex;
    align-items: center;
    gap: 14px;
    color: var(--navy);
    text-decoration: none;
    font-weight: 400;
    transition: var(--transition);
    padding: 14px 18px;
    background: var(--white);
    border-radius: 6px;
    border: 1px solid rgba(50, 82, 109, 0.08);
}

.contact__channel:hover {
    background: var(--navy);
    color: var(--white);
    transform: translateX(6px);
    border-color: var(--navy);
}

.contact__channel svg {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

.contact__form {
    background: var(--white);
    padding: 44px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(50, 82, 109, 0.06);
}

.form-group {
    margin-bottom: 22px;
}

.form-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--navy);
    margin-bottom: 8px;
    letter-spacing: 0.02em;
}

.form-input {
    width: 100%;
    padding: 14px 16px;
    font-size: 0.95rem;
    font-family: inherit;
    background: var(--cream);
    border: 1px solid rgba(50, 82, 109, 0.1);
    border-radius: 6px;
    color: var(--navy);
    transition: var(--transition);
}

.form-input:focus {
    outline: none;
    border-color: var(--blue-accent);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(74, 144, 217, 0.1);
}

.form-input--textarea {
    min-height: 140px;
    resize: vertical;
}

/* Footer */
.footer {
    background: var(--navy);
    padding: 48px 0;
    color: var(--white);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 24px;
}

.logo--footer {
    color: var(--white);
}

.footer__copy {
    font-size: 0.82rem;
    opacity: 0.4;
    margin-top: 8px;
}

.footer__links {
    display: flex;
    gap: 36px;
}

.footer__links a {
    color: var(--white);
    text-decoration: none;
    font-size: 0.85rem;
    opacity: 0.5;
    transition: var(--transition);
}

.footer__links a:hover {
    opacity: 1;
    color: var(--blue-accent);
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 1024px) {
    .hero__inner {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 60px;
    }

    .hero__text {
        margin: 0 auto 40px;
    }

    .hero__actions {
        justify-content: center;
    }

    .hero__image {
        max-width: 380px;
        margin: 0 auto;
    }

    .areas__grid,
    .projects__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact__inner {
        grid-template-columns: 1fr;
        gap: 60px;
    }
}

@media (max-width: 768px) {
    .nav__list {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: var(--navy);
        flex-direction: column;
        padding: 36px 32px;
        gap: 28px;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    }

    .nav__list.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav__toggle {
        display: flex;
    }

    .nav__toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .nav__toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav__toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .areas__grid,
    .projects__grid {
        grid-template-columns: 1fr;
    }

    .hero {
        padding: 130px 0 80px;
        min-height: auto;
    }

    .hero__title {
        font-size: 2.5rem;
    }

    .footer__inner {
        flex-direction: column;
        text-align: center;
    }

    .footer__links {
        flex-wrap: wrap;
        justify-content: center;
    }

    .contact__form {
        padding: 32px;
    }
}

@media (max-width: 480px) {
    .hero__actions {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .cta__title {
        font-size: 1.75rem;
    }
}
