:root {
    --color-primary: #002532;
    --color-primary-container: #0d3b4c;
    --color-on-primary: #ffffff;
    --color-on-primary-container: #7da5b9;
    --color-secondary: #4e616f;
    --color-secondary-container: #d1e5f7;
    --color-on-secondary: #ffffff;
    --color-on-secondary-container: #546776;
    --color-tertiary: #1e2223;
    --color-tertiary-container: #333739;
    --color-on-tertiary: #ffffff;
    --color-surface: #f8f9fc;
    --color-surface-dim: #d8dadd;
    --color-surface-container-lowest: #ffffff;
    --color-surface-container-low: #f2f4f6;
    --color-surface-container: #eceef0;
    --color-surface-container-high: #e7e8eb;
    --color-on-surface: #191c1e;
    --color-on-surface-variant: #41484c;
    --color-outline: #71787c;
    --color-outline-variant: #c1c7cc;
    --color-surface-tint: #3c6376;
    --color-inverse-surface: #2e3133;
    --color-inverse-on-surface: #eff1f3;
    --color-inverse-primary: #a4cce1;
    --color-error: #ba1a1a;
    --color-on-error: #ffffff;
    --color-background: #f8f9fc;

    --radius-sm: 0.125rem;
    --radius-default: 0.25rem;
    --radius-md: 0.375rem;
    --radius-lg: 0.5rem;
    --radius-xl: 0.75rem;
    --radius-full: 9999px;

    --space-xs: 4px;
    --space-base: 8px;
    --space-sm: 12px;
    --space-md: 24px;
    --space-lg: 48px;
    --space-xl: 80px;
    --space-gutter: 24px;
    --space-margin-mobile: 16px;
    --space-margin-desktop: 64px;

    --glass-bg: rgba(255, 255, 255, 0.6);
    --glass-border: rgba(255, 255, 255, 0.3);
    --glass-shadow: 0 8px 32px rgba(0, 37, 50, 0.08);
    --shadow-3d: 0 20px 60px -15px rgba(0, 37, 50, 0.15), 0 8px 20px -8px rgba(0, 37, 50, 0.1);
    --shadow-3d-hover: 0 30px 80px -15px rgba(0, 37, 50, 0.2), 0 15px 30px -10px rgba(0, 37, 50, 0.12);
    --shadow-3d-deep: 0 40px 100px -20px rgba(0, 37, 50, 0.25), 0 20px 40px -15px rgba(0, 37, 50, 0.15);
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
}

body {
    font-family: 'Manrope', sans-serif;
    font-size: 16px;
    line-height: 24px;
    color: var(--color-on-surface);
    background-color: var(--color-surface);
    overflow-x: hidden;
    perspective: 1200px;
}

h1, h2, h3, h4, .font-headline {
    font-family: 'Playfair Display', serif;
}

img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding-left: var(--space-gutter);
    padding-right: var(--space-gutter);
}

/* ===== KEYFRAME ANIMATIONS ===== */
@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-12px) rotate(1deg); }
}

@keyframes floatReverse {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(12px) rotate(-1deg); }
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

@keyframes pulse3d {
    0%, 100% { transform: scale(1) translateZ(0); box-shadow: var(--shadow-3d); }
    50% { transform: scale(1.02) translateZ(10px); box-shadow: var(--shadow-3d-hover); }
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes slideInUp {
    from { opacity: 0; transform: translateY(40px) translateZ(-30px); }
    to { opacity: 1; transform: translateY(0) translateZ(0); }
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-60px) rotateY(5deg); }
    to { opacity: 1; transform: translateX(0) rotateY(0); }
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(60px) rotateY(-5deg); }
    to { opacity: 1; transform: translateX(0) rotateY(0); }
}

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.85) translateZ(-50px); }
    to { opacity: 1; transform: scale(1) translateZ(0); }
}

@keyframes orbFloat {
    0% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -20px) scale(1.1); }
    66% { transform: translate(-20px, 15px) scale(0.95); }
    100% { transform: translate(0, 0) scale(1); }
}

/* ===== ANIMATED BACKGROUND ORBS ===== */
.bg-orbs {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.bg-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.15;
}

.bg-orb--1 {
    width: 500px;
    height: 500px;
    background: var(--color-inverse-primary);
    top: -100px;
    right: -100px;
    animation: orbFloat 20s ease-in-out infinite;
}

.bg-orb--2 {
    width: 400px;
    height: 400px;
    background: var(--color-secondary-container);
    bottom: 20%;
    left: -150px;
    animation: orbFloat 25s ease-in-out infinite reverse;
}

.bg-orb--3 {
    width: 300px;
    height: 300px;
    background: var(--color-on-primary-container);
    top: 50%;
    right: 20%;
    animation: orbFloat 18s ease-in-out infinite 3s;
}

/* ===== HEADER — GLASSMORPHISM ===== */
.site-header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 50;
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    background: rgba(248, 249, 252, 0.65);
    border-bottom: 1px solid var(--glass-border);
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.site-header.scrolled {
    background: rgba(248, 249, 252, 0.92);
    box-shadow: 0 8px 30px rgba(0, 37, 50, 0.06), 0 1px 0 rgba(255,255,255,0.5) inset;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px var(--space-gutter);
    max-width: 1280px;
    margin: 0 auto;
}

.site-logo img {
    height: 52px;
    width: auto;
    object-fit: contain;
    transition: transform 0.3s;
}

.site-logo:hover img {
    transform: scale(1.05);
}

.main-nav { display: none; }

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 8px;
}

.main-nav a {
    color: var(--color-on-surface-variant);
    font-weight: 500;
    font-size: 14px;
    padding: 8px 16px;
    border-radius: var(--radius-full);
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    position: relative;
}

.main-nav a:hover {
    color: var(--color-primary);
    background: rgba(13, 59, 76, 0.06);
}

.main-nav .current-menu-item a,
.main-nav .current_page_item a,
.main-nav .current_page_parent a,
.main-nav .current-menu-ancestor a {
    color: var(--color-on-primary);
    background: var(--color-primary);
    font-weight: 600;
    border: none;
    padding-bottom: 8px;
}

/* ===== BUTTONS — 3D ELEVATED ===== */
.btn-primary {
    background: linear-gradient(135deg, var(--color-primary-container), var(--color-primary));
    color: var(--color-on-primary);
    padding: 12px 28px;
    border-radius: var(--radius-full);
    font-family: 'Manrope', sans-serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.04em;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    display: inline-block;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 37, 50, 0.2), 0 2px 4px rgba(0, 37, 50, 0.1);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.2), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.btn-primary:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 37, 50, 0.3), 0 4px 8px rgba(0, 37, 50, 0.15);
}

.btn-primary:hover::before { opacity: 1; }

.btn-primary:active {
    transform: translateY(0) scale(0.98);
    box-shadow: 0 2px 8px rgba(0, 37, 50, 0.2);
}

.btn-secondary {
    border: 2px solid var(--color-surface-container-lowest);
    color: var(--color-surface-container-lowest);
    padding: 16px 40px;
    border-radius: var(--radius-full);
    font-weight: 700;
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(10px);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    display: inline-block;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn-secondary:hover {
    background: var(--color-surface-container-lowest);
    color: var(--color-primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.btn-white {
    background: var(--color-surface-container-lowest);
    color: var(--color-primary);
    padding: 16px 40px;
    border-radius: var(--radius-full);
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1), 0 2px 4px rgba(0, 0, 0, 0.05);
    display: inline-block;
    text-align: center;
}

.btn-white:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15), 0 4px 8px rgba(0, 0, 0, 0.08);
}

/* Mobile Menu */
.mobile-menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--color-primary);
    transition: all 0.3s;
    border-radius: 2px;
}

.mobile-nav {
    display: none;
    position: fixed;
    top: 74px;
    left: 0;
    right: 0;
    background: rgba(248, 249, 252, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    padding: var(--space-md);
    z-index: 49;
    box-shadow: 0 20px 40px rgba(0, 37, 50, 0.1);
}

.mobile-nav.active { display: block; }
.mobile-nav ul { list-style: none; }

.mobile-nav li {
    border-bottom: 1px solid rgba(193, 199, 204, 0.15);
}

.mobile-nav a {
    display: block;
    padding: 16px 0;
    color: var(--color-on-surface-variant);
    font-weight: 500;
    transition: color 0.2s;
}

.mobile-nav .current-menu-item a,
.mobile-nav .current_page_item a {
    color: var(--color-primary);
    font-weight: 600;
}

/* ===== HERO SECTION — 3D PERSPECTIVE ===== */
.hero {
    padding-top: 96px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -200px;
    right: -200px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(164, 204, 225, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    animation: orbFloat 15s ease-in-out infinite;
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -150px;
    left: -100px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(13, 59, 76, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    animation: orbFloat 20s ease-in-out infinite reverse;
    pointer-events: none;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
    align-items: center;
    padding: 60px 0;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: 'Manrope', sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-primary);
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    padding: 6px 16px;
    border-radius: var(--radius-full);
    border: 1px solid var(--glass-border);
    box-shadow: 0 2px 8px rgba(0, 37, 50, 0.06);
}

.hero h1 {
    font-size: 36px;
    line-height: 44px;
    font-weight: 700;
    color: var(--color-primary);
    letter-spacing: -0.02em;
    margin-top: 28px;
}

.hero h1 em {
    font-weight: 400;
    font-style: italic;
    background: linear-gradient(135deg, var(--color-primary), var(--color-surface-tint));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-text {
    font-size: 18px;
    line-height: 28px;
    color: var(--color-on-surface-variant);
    margin-top: 24px;
    max-width: 520px;
}

.hero-cert {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 32px;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    padding: 12px 20px;
    border-radius: 16px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 4px 16px rgba(0, 37, 50, 0.05);
    width: fit-content;
}

.cert-icons { display: flex; }

.cert-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--color-surface);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 8px rgba(0, 37, 50, 0.1);
}

.cert-icon:first-child { background: var(--color-primary-container); }

.cert-icon:last-child {
    background: var(--color-on-primary-container);
    margin-left: -12px;
}

.cert-icon .material-symbols-outlined {
    color: var(--color-on-primary);
    font-size: 16px;
}

.cert-text {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--color-on-surface-variant);
}

/* Hero Image — 3D Tilt Card */
.hero-image-wrap {
    position: relative;
    perspective: 800px;
    z-index: 2;
}

.hero-image {
    aspect-ratio: 4/5;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-3d-deep);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.5s;
    transform-style: preserve-3d;
    transform: rotateY(-3deg) rotateX(2deg);
}

.hero-image:hover {
    transform: rotateY(0deg) rotateX(0deg) scale(1.02);
    box-shadow: var(--shadow-3d-hover);
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-image:hover img {
    transform: scale(1.05);
}

.hero-stat {
    display: none;
    position: absolute;
    bottom: -24px;
    left: -40px;
    background: var(--glass-bg);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    padding: 28px;
    border-radius: 20px;
    box-shadow: var(--shadow-3d);
    border: 1px solid var(--glass-border);
    max-width: 260px;
    z-index: 3;
    animation: float 6s ease-in-out infinite;
    transform-style: preserve-3d;
}

.hero-stat h3 {
    color: var(--color-primary);
    font-size: 28px;
    margin-bottom: 6px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-surface-tint));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-stat p {
    color: var(--color-on-surface-variant);
    font-size: 14px;
    line-height: 20px;
}

/* Floating decorative element on hero */
.hero-image-wrap::after {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    width: 80px;
    height: 80px;
    border: 3px solid var(--color-inverse-primary);
    border-radius: 20px;
    opacity: 0.4;
    animation: floatReverse 8s ease-in-out infinite;
    transform: rotate(15deg);
}

/* ===== VIDEO HERO ===== */
.video-hero {
    position: relative;
    width: 100%;
    height: 80vh;
    min-height: 500px;
    overflow: hidden;
    margin-top: 74px;
}

.video-hero video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0,37,50,0.7), rgba(13,59,76,0.8));
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-hero-content {
    text-align: center;
    color: white;
    max-width: 700px;
    padding: 0 var(--space-gutter);
}

.video-hero-content h1 {
    font-size: 36px;
    line-height: 44px;
    color: white;
    margin-bottom: 16px;
}

.video-hero-content p {
    font-size: 18px;
    line-height: 28px;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 32px;
}

/* ===== LEGACY/MISSION — 3D DEPTH ===== */
.legacy {
    background: var(--color-surface-container-low);
    padding: 100px 0;
    overflow: hidden;
    position: relative;
}

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

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

.legacy-image {
    border-radius: 20px;
    overflow: hidden;
    height: 400px;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
    box-shadow: var(--shadow-3d);
}

.legacy-image:hover {
    transform: rotateY(3deg) scale(1.02);
    box-shadow: var(--shadow-3d-hover);
}

.legacy-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s;
}

.legacy-image:hover img {
    transform: scale(1.08);
}

.legacy-content h2 {
    font-size: 32px;
    line-height: 40px;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 24px;
}

.legacy-content p {
    font-size: 18px;
    line-height: 28px;
    color: var(--color-on-surface-variant);
    margin-bottom: 24px;
}

.highlight-text {
    color: var(--color-primary);
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: var(--color-on-primary-container);
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
}

/* ===== FEATURE CARDS — 3D GLASS ===== */
.feature-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    margin-top: 48px;
}

.feature-card {
    padding: 28px;
    background: var(--glass-bg);
    backdrop-filter: blur(16px) saturate(150%);
    -webkit-backdrop-filter: blur(16px) saturate(150%);
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-3d);
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    transform-style: preserve-3d;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-inverse-primary));
    opacity: 0;
    transition: opacity 0.3s;
}

.feature-card:hover {
    transform: translateY(-8px) translateZ(20px);
    box-shadow: var(--shadow-3d-hover);
}

.feature-card:hover::before { opacity: 1; }

.feature-card-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, rgba(13, 59, 76, 0.1), rgba(164, 204, 225, 0.15));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    box-shadow: 0 4px 12px rgba(0, 37, 50, 0.06);
}

.feature-card:hover .feature-card-icon {
    background: linear-gradient(135deg, var(--color-primary-container), var(--color-primary));
    transform: scale(1.1) rotate(-3deg);
    box-shadow: 0 8px 20px rgba(0, 37, 50, 0.15);
}

.feature-card-icon .material-symbols-outlined {
    color: var(--color-primary);
    font-size: 24px;
    transition: all 0.3s;
}

.feature-card:hover .feature-card-icon .material-symbols-outlined {
    color: var(--color-on-primary);
}

.feature-card h3 {
    font-size: 20px;
    color: var(--color-primary);
    margin-bottom: 8px;
}

.feature-card p {
    color: var(--color-on-surface-variant);
    font-size: 15px;
    line-height: 24px;
}

/* ===== SERVICES — 3D CARD STACK ===== */
.services {
    padding: 100px 0;
    position: relative;
}

.section-header {
    text-align: center;
    max-width: 768px;
    margin: 0 auto 72px;
}

.section-label {
    display: inline-block;
    font-family: 'Manrope', sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-primary);
    margin-bottom: 16px;
    padding: 6px 20px;
    background: linear-gradient(135deg, rgba(13, 59, 76, 0.06), rgba(164, 204, 225, 0.1));
    border-radius: var(--radius-full);
    border: 1px solid rgba(13, 59, 76, 0.08);
}

.section-header h2 {
    font-size: 36px;
    line-height: 44px;
    font-weight: 600;
    color: var(--color-primary);
}

.section-header p {
    color: var(--color-on-surface-variant);
    margin-top: 16px;
    font-size: 16px;
    line-height: 26px;
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
}

.service-card {
    background: var(--color-surface-container-lowest);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(193, 199, 204, 0.12);
    box-shadow: var(--shadow-3d);
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    transform-style: preserve-3d;
}

.service-card:hover {
    box-shadow: var(--shadow-3d-hover);
    transform: translateY(-10px) rotateX(2deg);
}

.service-card-image {
    aspect-ratio: 16/10;
    overflow: hidden;
    position: relative;
}

.service-card-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(transparent, var(--color-surface-container-lowest));
    pointer-events: none;
}

.service-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

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

.service-card-body {
    padding: 24px 28px 28px;
}

.service-card h3 {
    font-size: 22px;
    color: var(--color-primary);
    margin-bottom: 10px;
}

.service-card p {
    color: var(--color-on-surface-variant);
    font-size: 14px;
    line-height: 23px;
}

/* ===== TEAM — 3D PORTRAIT CARDS ===== */
.team {
    padding: 100px 0;
    position: relative;
}

.team-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
}

.team-card {
    background: var(--color-surface-container-lowest);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(193, 199, 204, 0.12);
    box-shadow: var(--shadow-3d);
    transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1);
    display: flex;
    flex-direction: column;
    transform-style: preserve-3d;
    position: relative;
}

.team-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-inverse-primary), var(--color-primary));
    background-size: 200% 100%;
    opacity: 0;
    transition: opacity 0.4s;
    z-index: 2;
    animation: gradientShift 3s ease infinite;
}

.team-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: var(--shadow-3d-deep);
}

.team-card:hover::before { opacity: 1; }

.team-card-image {
    aspect-ratio: 4/5;
    overflow: hidden;
    background: var(--color-surface-container);
    position: relative;
}

.team-card-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(transparent, rgba(0, 37, 50, 0.3));
    opacity: 0;
    transition: opacity 0.4s;
}

.team-card:hover .team-card-image::after { opacity: 1; }

.team-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.team-card:hover .team-card-image img {
    transform: scale(1.06);
}

.team-card-body {
    padding: 24px;
    flex-grow: 1;
}

.team-card h4 {
    font-size: 20px;
    color: var(--color-primary);
    margin-bottom: 4px;
}

.team-card .team-role {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-on-primary-container);
    margin-bottom: 12px;
}

.team-card .team-bio {
    font-size: 14px;
    color: var(--color-on-surface-variant);
    line-height: 21px;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.team-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
}

.team-tag {
    padding: 4px 12px;
    background: linear-gradient(135deg, rgba(13, 59, 76, 0.06), rgba(164, 204, 225, 0.1));
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 600;
    color: var(--color-primary);
    border: 1px solid rgba(13, 59, 76, 0.08);
}

/* ===== WHY CHOOSE US — DARK 3D ===== */
.why-us {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-container) 50%, #0a2e3d 100%);
    background-size: 200% 200%;
    animation: gradientShift 12s ease infinite;
    color: var(--color-on-primary);
    padding: 100px 0;
    overflow: hidden;
    position: relative;
}

.why-us::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(164, 204, 225, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    animation: orbFloat 20s ease-in-out infinite;
}

.why-us-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 64px;
    align-items: center;
}

.why-us h2 {
    font-size: 36px;
    line-height: 44px;
    font-weight: 600;
    margin-bottom: 32px;
}

.why-us-intro {
    color: var(--color-on-primary-container);
    font-size: 18px;
    line-height: 28px;
    margin-bottom: 48px;
}

.why-list { list-style: none; }

.why-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 32px;
    padding: 20px;
    border-radius: 16px;
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    border: 1px solid transparent;
}

.why-item:hover {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(8px);
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateX(8px);
}

.why-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(125, 165, 185, 0.15);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
    border: 1px solid rgba(125, 165, 185, 0.2);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.why-icon .material-symbols-outlined {
    color: var(--color-inverse-primary);
    font-size: 18px;
}

.why-item h4 {
    font-family: 'Manrope', sans-serif;
    font-weight: 700;
    font-size: 18px;
    margin-bottom: 6px;
}

.why-item p {
    color: rgba(164, 204, 225, 0.75);
    font-size: 14px;
    line-height: 22px;
}

/* Gallery — 3D Stacked Photos */
.gallery-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    perspective: 800px;
}

.gallery-col {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.gallery-col:first-child { padding-top: 48px; }

.gallery-grid img {
    border-radius: 16px;
    object-fit: cover;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: 100%;
    transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.gallery-grid img:hover {
    transform: scale(1.05) rotateY(-3deg) translateZ(20px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

/* ===== REVIEWS BAR — GLASS ===== */
.reviews-bar {
    background: var(--glass-bg);
    backdrop-filter: blur(16px) saturate(150%);
    -webkit-backdrop-filter: blur(16px) saturate(150%);
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
    padding: 32px 0;
    position: relative;
}

.reviews-bar-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.reviews-badge {
    display: flex;
    align-items: center;
    gap: 16px;
}

.google-badge {
    background: var(--color-surface-container-lowest);
    padding: 8px 12px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(193, 199, 204, 0.15);
}

.google-badge img { height: 24px; }

.stars { color: #f0a500; }

.stars .material-symbols-outlined {
    font-size: 16px;
    font-variation-settings: 'FILL' 1;
}

.review-rating {
    font-size: 13px;
    font-weight: 700;
    color: var(--color-primary);
}

.review-quotes { display: none; gap: 32px; }

.review-quote {
    font-style: italic;
    font-size: 14px;
    color: var(--color-on-surface-variant);
}

.reviews-link {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-primary);
    display: flex;
    align-items: center;
    gap: 4px;
    transition: gap 0.3s;
}

.reviews-link:hover {
    text-decoration: underline;
    gap: 8px;
}

/* ===== TESTIMONIALS — 3D GLASS CARDS ===== */
.testimonials {
    padding: 100px 0;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

.testimonial-card {
    background: var(--glass-bg);
    backdrop-filter: blur(16px) saturate(150%);
    -webkit-backdrop-filter: blur(16px) saturate(150%);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 32px;
    box-shadow: var(--shadow-3d);
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    transform-style: preserve-3d;
    position: relative;
    overflow: hidden;
}

.testimonial-card::before {
    content: '\201C';
    position: absolute;
    top: 12px;
    right: 20px;
    font-size: 80px;
    font-family: 'Playfair Display', serif;
    color: rgba(13, 59, 76, 0.06);
    line-height: 1;
    pointer-events: none;
}

.testimonial-card:hover {
    transform: translateY(-8px) rotateX(2deg);
    box-shadow: var(--shadow-3d-hover);
}

.testimonial-stars {
    color: #f0a500;
    margin-bottom: 16px;
}

.testimonial-stars .material-symbols-outlined {
    font-size: 16px;
    font-variation-settings: 'FILL' 1;
}

.testimonial-card blockquote {
    font-size: 16px;
    line-height: 26px;
    color: var(--color-on-surface-variant);
    font-style: italic;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.testimonial-author {
    font-weight: 700;
    color: var(--color-primary);
    font-size: 14px;
}

/* ===== CTA — 3D ELEVATED BOX ===== */
.cta {
    padding: 100px 0;
}

.cta-box {
    background: linear-gradient(135deg, var(--color-primary-container), var(--color-primary));
    color: var(--color-on-primary-container);
    border-radius: 28px;
    padding: 56px 28px;
    text-align: center;
    box-shadow: var(--shadow-3d-deep);
    border: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
}

.cta-box::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(ellipse at 30% 20%, rgba(164, 204, 225, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.cta-box::after {
    content: '';
    position: absolute;
    bottom: -30%;
    right: -20%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 60%);
    border-radius: 50%;
    pointer-events: none;
}

.cta-box h2 {
    font-size: 36px;
    line-height: 44px;
    font-weight: 600;
    margin-bottom: 24px;
    color: var(--color-on-primary);
    position: relative;
    z-index: 1;
}

.cta-box p {
    font-size: 18px;
    line-height: 28px;
    color: rgba(164, 204, 225, 0.9);
    margin-bottom: 40px;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 1;
}

.cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 16px;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 1;
}

/* ===== CONTACT — GLASS FORM ===== */
.contact {
    padding: 100px 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
}

.contact-form {
    background: var(--glass-bg);
    backdrop-filter: blur(16px) saturate(150%);
    -webkit-backdrop-filter: blur(16px) saturate(150%);
    padding: 36px;
    border-radius: 24px;
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-3d);
}

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

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: var(--color-on-surface);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid rgba(193, 199, 204, 0.3);
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(8px);
    border-radius: 12px;
    font-family: 'Manrope', sans-serif;
    font-size: 15px;
    color: var(--color-on-surface);
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
    box-shadow: 0 2px 8px rgba(0, 37, 50, 0.03);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(0, 37, 50, 0.08), 0 4px 12px rgba(0, 37, 50, 0.06);
    background: rgba(255, 255, 255, 0.9);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-info-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 20px;
    border-radius: 16px;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 4px 16px rgba(0, 37, 50, 0.04);
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.contact-info-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-3d);
}

.contact-info-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, rgba(13, 59, 76, 0.08), rgba(164, 204, 225, 0.12));
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 8px rgba(0, 37, 50, 0.06);
}

.contact-info-icon .material-symbols-outlined {
    color: var(--color-primary);
}

.contact-info-item h4 {
    font-family: 'Manrope', sans-serif;
    font-weight: 700;
    font-size: 16px;
    color: var(--color-primary);
    margin-bottom: 4px;
}

.contact-info-item p {
    font-size: 14px;
    color: var(--color-on-surface-variant);
    line-height: 22px;
}

.hours-box {
    background: linear-gradient(135deg, var(--color-primary-container), var(--color-primary));
    border-radius: 16px;
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 24px rgba(0, 37, 50, 0.15);
}

.hours-box h4 {
    font-family: 'Manrope', sans-serif;
    font-weight: 700;
    color: var(--color-on-primary);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.hours-box p {
    font-size: 13px;
    color: rgba(164, 204, 225, 0.7);
}

.map-embed {
    border-radius: 20px;
    overflow: hidden;
    height: 300px;
    border: 1px solid rgba(193, 199, 204, 0.15);
    box-shadow: var(--shadow-3d);
}

.map-embed iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* ===== FOOTER — PREMIUM DARK ===== */
.site-footer {
    background: linear-gradient(180deg, var(--color-primary) 0%, #001a24 100%);
    color: var(--color-on-primary);
    position: relative;
    overflow: hidden;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-on-primary-container), transparent);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
    padding: 80px var(--space-gutter);
    max-width: 1280px;
    margin: 0 auto;
}

.footer-brand p {
    color: rgba(164, 204, 225, 0.6);
    margin-top: 24px;
    font-size: 15px;
    line-height: 24px;
}

.footer-logo img {
    height: 64px;
    width: auto;
    object-fit: contain;
    background: #fff;
    border-radius: 10px;
    padding: 5px;
}

.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.social-link {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.social-link:hover {
    background: rgba(164, 204, 225, 0.15);
    border-color: rgba(164, 204, 225, 0.3);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.social-link .material-symbols-outlined { font-size: 18px; }

.footer-links-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.footer-links h5 {
    font-family: 'Manrope', sans-serif;
    font-weight: 700;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 20px;
    color: var(--color-inverse-primary);
}

.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 12px; }

.footer-links a {
    color: rgba(164, 204, 225, 0.55);
    font-size: 14px;
    transition: all 0.3s;
}

.footer-links a:hover {
    color: var(--color-on-primary);
    padding-left: 4px;
}

.footer-visit h5 {
    font-family: 'Manrope', sans-serif;
    font-weight: 700;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 20px;
    color: var(--color-inverse-primary);
}

.footer-visit p {
    color: rgba(164, 204, 225, 0.55);
    font-size: 14px;
    line-height: 22px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 28px var(--space-gutter);
    text-align: center;
    font-size: 12px;
    color: rgba(164, 204, 225, 0.35);
    max-width: 1280px;
    margin: 0 auto;
}

/* ===== SCROLL REVEAL ANIMATION CLASSES ===== */
.reveal {
    opacity: 0;
    transform: translateY(40px) translateZ(-20px);
    transition: all 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0) translateZ(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-60px) rotateY(5deg);
    transition: all 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-left.revealed {
    opacity: 1;
    transform: translateX(0) rotateY(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(60px) rotateY(-5deg);
    transition: all 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-right.revealed {
    opacity: 1;
    transform: translateX(0) rotateY(0);
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.85) translateZ(-40px);
    transition: all 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-scale.revealed {
    opacity: 1;
    transform: scale(1) translateZ(0);
}

/* Stagger children */
.stagger-children > * {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.stagger-children.revealed > *:nth-child(1) { transition-delay: 0s; opacity: 1; transform: none; }
.stagger-children.revealed > *:nth-child(2) { transition-delay: 0.1s; opacity: 1; transform: none; }
.stagger-children.revealed > *:nth-child(3) { transition-delay: 0.2s; opacity: 1; transform: none; }
.stagger-children.revealed > *:nth-child(4) { transition-delay: 0.3s; opacity: 1; transform: none; }
.stagger-children.revealed > *:nth-child(5) { transition-delay: 0.4s; opacity: 1; transform: none; }
.stagger-children.revealed > *:nth-child(6) { transition-delay: 0.5s; opacity: 1; transform: none; }

/* ===== RESPONSIVE ===== */
@media (min-width: 640px) {
    .feature-cards { grid-template-columns: 1fr 1fr; }
    .services-grid { grid-template-columns: 1fr 1fr; }
    .team-grid { grid-template-columns: 1fr 1fr; }
    .testimonials-grid { grid-template-columns: 1fr 1fr; }
    .cta-buttons { flex-direction: row; }
}

@media (min-width: 768px) {
    .main-nav { display: flex; align-items: center; }
    .mobile-menu-toggle { display: none; }

    .hero h1 { font-size: 52px; line-height: 60px; }
    .video-hero-content h1 { font-size: 52px; line-height: 60px; }
    .section-header h2 { font-size: 40px; line-height: 48px; }

    .reviews-bar-inner { flex-direction: row; justify-content: space-between; }
    .review-quotes { display: flex; }
    .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
    .contact-grid { grid-template-columns: 1fr 1fr; }
    .cta-box { padding: 72px 56px; }
}

@media (min-width: 1024px) {
    .hero-grid { grid-template-columns: 1fr 1fr; gap: 64px; }
    .hero-stat { display: block; }
    .hero h1 { font-size: 56px; line-height: 64px; }
    .legacy-grid { grid-template-columns: 5fr 7fr; }
    .legacy-content { padding-left: 56px; }
    .legacy-image { height: 600px; }
    .services-grid { grid-template-columns: repeat(3, 1fr); }
    .team-grid { grid-template-columns: repeat(4, 1fr); }
    .why-us-grid { grid-template-columns: 1fr 1fr; }
    .testimonials-grid { grid-template-columns: repeat(3, 1fr); }
    .why-us h2 { font-size: 40px; line-height: 48px; }
    .cta-box h2 { font-size: 40px; line-height: 48px; }
}

/* ===== WORDPRESS SPECIFIC ===== */
.wp-block-image img { border-radius: 20px; }
.aligncenter { text-align: center; }
.alignleft { float: left; margin-right: 24px; }
.alignright { float: right; margin-left: 24px; }

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px);
}

.page-content {
    padding: 120px 0 80px;
}

.page-content h1 {
    font-size: 48px;
    line-height: 56px;
    color: var(--color-primary);
    margin-bottom: 24px;
}

.page-content h2 {
    font-size: 32px;
    line-height: 40px;
    color: var(--color-primary);
    margin: 48px 0 16px;
}

.page-content p {
    font-size: 18px;
    line-height: 28px;
    color: var(--color-on-surface-variant);
    margin-bottom: 16px;
}

/* ===== COUNTER ANIMATION ===== */
.counter-section {
    padding: 80px 0;
    position: relative;
}

.counter-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.counter-item {
    text-align: center;
    padding: 32px 20px;
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-3d);
    transition: all 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.counter-item:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: var(--shadow-3d-hover);
}

.counter-value {
    font-family: 'Playfair Display', serif;
    font-size: 48px;
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1;
    margin-bottom: 8px;
    background: linear-gradient(135deg, var(--color-primary), var(--color-surface-tint));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.counter-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-on-surface-variant);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

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

/* ===== PARALLAX WRAPPER ===== */
.parallax-section {
    position: relative;
    overflow: hidden;
}

.parallax-bg {
    position: absolute;
    inset: -20%;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    z-index: -1;
}

@media (max-width: 768px) {
    .parallax-bg { background-attachment: scroll; }
}
