/* === ROOT VARIABLES === */
:root {
    --bg: #F7F8FF;
    --surface: #FFFFFF;
    --text: #2C3E50;
    --muted: #7F8C9A;
    --brand: #1F5A70;
    --brand-hover: #17495A;
    --accent: #FF6B9D;
    --border: #E2E8F0;
    --shadow: rgba(16, 24, 40, 0.08);
    --shadow-md: rgba(16, 24, 40, 0.12);
    --shadow-lg: rgba(16, 24, 40, 0.16);
    --radius: 12px;
    --radius-lg: 16px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* === BASE RESET === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg);
    color: var(--text);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* === CONTAINER === */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

@media (min-width: 768px) {
    .container {
        padding: 0 40px;
    }
}

/* === SECTION LAYOUT === */
.section {
    position: relative;
    padding: 100px 0;
    background: var(--surface);
}

.section-light {
    background: var(--bg);
}

.section-cta {
    background: linear-gradient(135deg, var(--brand) 0%, #2A6F87 100%);
    color: white;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
    color: var(--text);
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--muted);
    text-align: center;
    margin-bottom: 60px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* === HEADER === */
header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 1px 3px var(--shadow);
}

header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 72px;
    gap: 24px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text);
    font-weight: 700;
    font-size: 1.125rem;
}

.brand-badge {
    display: block;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--brand) 0%, var(--accent) 100%);
    flex-shrink: 0;
}

.brand-logo-img {
    display: block;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    object-fit: contain;
    background: #fff;
    border: 1px solid var(--border);
    flex-shrink: 0;
}

.brand small {
    display: block;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--muted);
    margin-top: -2px;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--surface);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: var(--transition);
}

.user-menu {
    position: relative;
}

.user-menu-toggle {
    gap: 8px;
}

.user-menu .caret {
    font-size: 0.8em;
}

.user-menu-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 190px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 0 12px 30px var(--shadow-md);
    padding: 8px;
    display: none;
    z-index: 1200;
}

.user-menu-dropdown a {
    display: block;
    padding: 10px 12px;
    border-radius: 8px;
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.92rem;
}

.user-menu-dropdown a:hover {
    background: var(--bg);
    color: var(--brand);
}

.user-menu:hover .user-menu-dropdown,
.user-menu:focus-within .user-menu-dropdown {
    display: block;
}

@media (max-width: 768px) {
    header .container {
        min-height: 72px;
    }

    .brand {
        min-width: 0;
    }

    .brand span {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .brand small {
        display: none;
    }

    .nav-toggle {
        display: inline-flex;
    }

    .nav-actions {
        position: absolute;
        top: calc(100% + 10px);
        right: 16px;
        left: 16px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        padding: 14px;
        background: rgba(255, 255, 255, 0.98);
        border: 1px solid var(--border);
        border-radius: 14px;
        box-shadow: 0 16px 32px var(--shadow-md);
        z-index: 1200;
    }

    header.nav-open .nav-actions {
        display: flex;
    }

    .nav-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .user-menu {
        width: 100%;
    }

    .user-menu-toggle {
        width: 100%;
        justify-content: center;
    }

    .user-menu-dropdown {
        position: static;
        margin-top: 8px;
        display: none;
        box-shadow: none;
    }

    .user-menu:hover .user-menu-dropdown,
    .user-menu:focus-within .user-menu-dropdown {
        display: block;
    }

    header.nav-open .nav-toggle span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    header.nav-open .nav-toggle span:nth-child(2) {
        opacity: 0;
    }

    header.nav-open .nav-toggle span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }
}

/* === BUTTONS === */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    font-size: 0.9375rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.btn-icon {
    margin-right: 8px;
    line-height: 1;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px var(--shadow-md);
}

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

.btn-primary:hover {
    background: var(--brand-hover);
    border-color: var(--brand-hover);
}

.btn-ghost {
    background: transparent;
    border-color: transparent;
    color: var(--text);
}

.btn-ghost:hover {
    background: var(--bg);
}

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

.btn-white:hover {
    background: var(--bg);
    color: var(--brand-hover);
}

.btn-lg {
    padding: 16px 36px;
    font-size: 1.0625rem;
}

/* === HERO SECTION === */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #111;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
}

.hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    opacity: 0.45;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.62) 0%, rgba(0, 0, 0, 0.46) 100%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    padding: 120px 24px;
    color: white;
}

.h1 {
    font-size: clamp(2.35rem, 7.2vw, 4.4rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -0.03em;
}

.h1-wide {
    display: block;
    font-weight: 500;
    letter-spacing: 0.16em;
    font-size: 0.28em;
    margin-bottom: 8px;
    text-transform: uppercase;
    opacity: 0.95;
}

.h1-main {
    display: block;
    font-size: 1em;
    letter-spacing: -0.02em;
}

.grad {
    background: linear-gradient(to right, #FFFFFF 0%, #D8ECF4 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.sub {
    font-size: clamp(1.125rem, 3vw, 1.5rem);
    margin-bottom: 48px;
    opacity: 0.95;
    font-weight: 500;
}

.hero-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* === ABOUT SECTION === */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

@media (max-width: 980px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

.about-img-wrap {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 4/3;
    box-shadow: 0 20px 40px var(--shadow-lg);
}

.about-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.about-content h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.about-content p {
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--muted);
    margin-bottom: 20px;
}

.about-stats {
    display: flex;
    gap: 40px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.about-stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.about-stat strong {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--brand);
    line-height: 1;
}

.about-stat span {
    font-size: 0.875rem;
    color: var(--muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* === SERVICES SECTION === */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
}

@media (min-width: 768px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.service-card {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 2px 8px var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px var(--shadow-lg);
}

.service-img-wrap {
    position: relative;
    aspect-ratio: 3/2;
    overflow: hidden;
}

.service-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: var(--transition);
}

.service-card:hover .service-img {
    transform: scale(1.05);
}

.service-content {
    padding: 24px;
}

.service-content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text);
}

.service-content ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.service-content li {
    font-size: 0.9375rem;
    color: var(--muted);
    padding-left: 24px;
    position: relative;
}

.service-content li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--brand);
    font-weight: 700;
}

/* === CONTACT SECTION === */
.contact-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 40px;
}

/* === CTA PANEL === */
.cta-panel {
    text-align: center;
    padding: 60px 40px;
    border-radius: var(--radius-lg);
    color: white;
}

.cta-panel h3 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 16px;
}

.cta-panel p {
    font-size: 1.25rem;
    margin-bottom: 40px;
    opacity: 0.95;
}

/* === FOOTER === */
footer {
    background: #1A202C;
    color: #CBD5E0;
    padding: 80px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

@media (max-width: 980px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

@media (max-width: 600px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

.footer-brand h4 {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 12px;
}

.footer-brand p {
    line-height: 1.7;
    margin-bottom: 24px;
    opacity: 0.9;
}

.footer-col h4 {
    font-size: 0.9375rem;
    font-weight: 700;
    color: white;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-col a {
    color: #CBD5E0;
    text-decoration: none;
    font-size: 0.9375rem;
    transition: var(--transition);
}

.footer-col a:hover {
    color: white;
    padding-left: 4px;
}

.social-links {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 1.25rem;
    transition: var(--transition);
}

.social-icon {
    width: 18px;
    height: 18px;
}

.social-links a:hover {
    background: var(--brand);
    transform: translateY(-2px);
}

.connect-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.connect-icon {
    width: 1.1em;
    text-align: center;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 32px 0;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.875rem;
    opacity: 0.8;
}

.footer-bottom a {
    color: var(--brand);
    text-decoration: none;
}

.footer-bottom a:hover {
    text-decoration: underline;
}

/* === ANIMATIONS === */
@media (prefers-reduced-motion: no-preference) {
    [data-animate] {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1),
                    transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    }

    [data-animate].in-view {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    [data-animate] {
        opacity: 1;
        transform: none;
    }
}
