/* ========================================
   AnyMed Services Pvt. Ltd.
   Modern Premium Corporate Healthcare Website
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Sora:wght@400;500;600;700;800&display=swap');

:root {
    /* Premium healthcare color palette */
    --primary: #0f3d4f;
    --primary-light: #1f6d86;
    --primary-dark: #0a2330;
    --accent: #13b8a6;
    --accent-light: #52d7ca;
    --accent-glow: rgba(19, 184, 166, 0.45);
    --secondary: #2a8fb5;
    --secondary-light: #74beda;
    --secondary-teal: #147f74;
    --gold: #b98634;
    --gold-light: #d9ad69;
    --luxe: #d6b67a;
    --luxe-soft: #efe1c4;
    
    /* Premium gradients */
    --gradient-primary: linear-gradient(135deg, #0f3d4f 0%, #1f6d86 46%, #13b8a6 100%);
    --gradient-accent: linear-gradient(135deg, #13b8a6 0%, #2a8fb5 70%, #d6b67a 100%);
    --gradient-hero: linear-gradient(125deg, #071c28 0%, #0f3d4f 42%, #1f6d86 72%, #13b8a6 100%);
    --gradient-card: linear-gradient(145deg, #ffffff 0%, #f2f8fb 100%);
    --gradient-mesh: radial-gradient(at 16% 20%, rgba(19, 184, 166, 0.2) 0px, transparent 45%),
                     radial-gradient(at 92% 4%, rgba(42, 143, 181, 0.22) 0px, transparent 50%),
                     radial-gradient(at 0% 68%, rgba(116, 190, 218, 0.18) 0px, transparent 55%);
    
    /* Neutrals */
    --bg-light: #f4f8fa;
    --bg-white: #ffffff;
    --text-primary: #14313f;
    --text-secondary: #47616f;
    --text-muted: #7a8f9c;
    --text-dark: #0f2834;
    --border-light: #d9e5ec;
    
    /* Vibrant Shadows */
    --shadow-sm: 0 2px 6px rgba(15, 61, 79, 0.08);
    --shadow-md: 0 10px 20px rgba(15, 61, 79, 0.13);
    --shadow-lg: 0 14px 30px rgba(10, 35, 48, 0.18);
    --shadow-xl: 0 20px 45px rgba(10, 35, 48, 0.24);
    --shadow-glow: 0 0 35px rgba(19, 184, 166, 0.28);
    --shadow-glow-cyan: 0 0 35px rgba(42, 143, 181, 0.24);
    --shadow-card: 0 8px 24px rgba(15, 61, 79, 0.09);
    --shadow-card-hover: 0 18px 44px rgba(10, 35, 48, 0.2);
    
    /* Typography */
    --font-display: 'Sora', sans-serif;
    --font-body: 'Manrope', sans-serif;
    
    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-2xl: 4rem;
    --space-3xl: 6rem;
    
    /* Effects */
    --transition-fast: 0.15s ease;
    --transition-base: 0.25s ease;
    --transition-slow: 0.4s ease;
    --transition-bounce: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    --blur-sm: blur(8px);
    --blur-md: blur(16px);
    --blur-lg: blur(24px);
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
}

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-primary);
    background-color: var(--bg-white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background-image: radial-gradient(circle at top, rgba(116, 190, 218, 0.16), transparent 36%);
    background-attachment: fixed;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.2;
    color: var(--primary);
    letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: 1.25rem; }

p { color: var(--text-secondary); margin-bottom: 1rem; }

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-base);
}

ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }

/* Container */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Section Styles */
.section-padding { padding: 100px 0; }

.bg-light { background-color: var(--bg-light); }
.bg-white { background-color: var(--bg-white); }

/* Global top strip */
.top-strip {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1200;
    height: 36px;
    display: flex;
    align-items: center;
    background: #0e2f50;
    color: #d9ecff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
    font-size: 0.82rem;
}

.top-strip .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
}

.top-strip-left {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
}

.top-strip-company {
    margin: 0;
    color: #d9ecff;
    white-space: nowrap;
}

.top-strip-contact {
    display: flex;
    align-items: center;
    gap: 12px;
}

.top-strip-contact a {
    color: #d9ecff;
    white-space: nowrap;
}

.top-strip-languages {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
}

.top-strip-languages .lang-item {
    color: #d9ecff;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.76rem;
    padding: 2px 6px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
}

.top-strip-languages .lang-item:hover {
    background: rgba(255, 255, 255, 0.16);
}

.top-strip-languages .lang-item.is-active {
    background: rgba(255, 255, 255, 0.24);
    color: #ffffff;
}

.top-strip-languages .flag {
    font-size: 0.8rem;
    line-height: 1;
}

/* ========================================
   NAVIGATION
   ======================================== */
.navbar {
    position: fixed;
    top: 36px;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: var(--blur-md);
    -webkit-backdrop-filter: var(--blur-md);
    border-bottom: 1px solid rgba(15, 61, 79, 0.12);
    transition: var(--transition-base);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-md);
}

.navbar-running-lines {
    position: relative;
    isolation: isolate;
    height: 24px;
    display: flex;
    align-items: center;
    overflow: hidden;
    border-top: 1px solid rgba(255, 255, 255, 0.28);
    border-bottom: 1px solid rgba(8, 39, 56, 0.22);
    background: linear-gradient(90deg, #0d3a59 0%, #126582 52%, #0d3a59 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), inset 0 -1px 0 rgba(0, 0, 0, 0.18);
}

.navbar-running-lines::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, rgba(255, 255, 255, 0) 18%, rgba(255, 255, 255, 0.26) 48%, rgba(255, 255, 255, 0) 78%);
    transform: translateX(-120%);
    animation: stripShine 5.8s ease-in-out infinite;
    pointer-events: none;
    z-index: 1;
}

.navbar-running-track {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding-left: 100%;
    white-space: nowrap;
    font-family: var(--font-display);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    color: #eef8ff;
    text-shadow: 0 0 10px rgba(82, 215, 202, 0.3);
    animation: runningLine 24s linear infinite;
}

.navbar-running-track span:not(.divider) {
    opacity: 0.96;
}

.navbar-running-track .divider {
    color: #d7c188;
    font-weight: 700;
    opacity: 0.9;
}

@keyframes runningLine {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@keyframes stripShine {
    0% { transform: translateX(-120%); }
    100% { transform: translateX(120%); }
}

@media (max-width: 992px) {
    .top-strip {
        display: none;
    }

    .navbar {
        top: 0;
    }

    .navbar-running-lines {
        height: 20px;
    }

    .navbar-running-track {
        font-size: 0.6rem;
        gap: 10px;
        animation-duration: 18s;
    }
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 24px;
}

/* Logo */
.navbar .logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: auto;
    height: auto;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    overflow: visible;
    transition: var(--transition-base);
}

.navbar .logo img {
    width: auto;
    height: 56px;
    object-fit: contain;
    display: block;
    transition: var(--transition-base);
}

.navbar .logo:hover {
    transform: none;
    box-shadow: none;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    max-width: calc(100vw - 120px);
}

.navbar .brand::after {
    content: "Healthcare Operations Management Company";
    display: block;
    max-width: 340px;
    font-family: var(--font-display);
    font-size: 0.6rem;
    font-weight: 800;
    letter-spacing: 0.01em;
    line-height: 1.22;
    text-transform: none;
    color: #274f6c;
    padding-left: 10px;
    border-left: 2px solid rgba(18, 163, 171, 0.45);
}

.logo-line {
    font-family: var(--font-display);
    font-size: 0.96rem;
    font-weight: 800;
    letter-spacing: 0.01em;
    color: var(--primary);
    line-height: 1.15;
    white-space: nowrap;
}

/* Navigation Menu */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    font-family: var(--font-display);
    font-size: 0.86rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-secondary);
    padding: 10px 18px;
    border-radius: var(--radius-full);
    position: relative;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: var(--accent);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
    opacity: 0.1;
    z-index: -1;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
    background: rgba(19, 184, 166, 0.13);
}

.nav-link:hover::before,
.nav-link.active::before {
    width: 100%;
    height: 100%;
}

.nav-link.active {
    color: var(--primary);
    font-weight: 600;
}


/* Hamburger Menu */
.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
}

.hamburger span {
    width: 24px;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
    transition: var(--transition-base);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--gradient-hero);
    position: relative;
    overflow: hidden;
    padding-top: 110px;
}

/* Animated background pattern */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(19, 184, 166, 0.18) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(42, 143, 181, 0.22) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(116, 190, 218, 0.16) 0%, transparent 42%);
    animation: heroGlow 8s ease-in-out infinite alternate;
}

@keyframes heroGlow {
    0% { opacity: 0.6; }
    100% { opacity: 1; }
}

/* Geometric pattern overlay */
.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.hero h1 {
    color: var(--bg-white);
    margin-bottom: 24px;
    line-height: 1.08;
    text-shadow: 0 10px 28px rgba(3, 13, 19, 0.35);
    max-width: 15ch;
}

.hero-subtitle {
    font-size: 1.18rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
    font-weight: 400;
    line-height: 1.7;
    max-width: 650px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* Modern Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 15px 32px;
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: var(--transition-base);
    border: none;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: var(--gradient-accent);
    color: var(--bg-white);
    box-shadow: 0 10px 28px rgba(19, 184, 166, 0.35);
    border: 1px solid rgba(239, 225, 196, 0.55);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #0fa797 0%, #2587aa 100%);
    transform: translateY(-3px);
    box-shadow: 0 14px 32px rgba(19, 184, 166, 0.45);
}

.btn-outline {
    background: rgba(255, 255, 255, 0.1);
    color: var(--bg-white);
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.btn-outline:hover {
    background: var(--accent);
    color: var(--bg-white);
    border-color: var(--accent);
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(19, 184, 166, 0.35);
}

/* ========================================
   SECTION HEADERS
   ======================================== */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-header h2 {
    margin-bottom: 16px;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 62px;
    height: 4px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--luxe) 100%);
    border-radius: 2px;
}

.section-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-top: 24px;
    line-height: 1.7;
}

/* ========================================
   ABOUT SNAPSHOT
   ======================================== */
.about-snapshot-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-snapshot-text h3 {
    font-size: 2rem;
    margin-bottom: 24px;
    color: var(--primary);
}

.about-snapshot-text p {
    color: var(--text-secondary);
    margin-bottom: 20px;
    font-size: 1.05rem;
}

.about-snapshot-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.stat-box {
    text-align: center;
    padding: 32px 24px;
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    transition: var(--transition-base);
    border: 1px solid var(--border-light);
    position: relative;
    overflow: hidden;
}

.stat-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--accent);
    transform: scaleX(0);
    transition: var(--transition-base);
}

.stat-box:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-card-hover);
}

.stat-box:hover::before {
    transform: scaleX(1);
}

.stat-number {
    font-size: 2.75rem;
    font-weight: 800;
    color: var(--accent);
    font-family: var(--font-display);
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 0.95rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* ========================================
   SERVICES GRID
   ======================================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.service-card {
    background: var(--gradient-card);
    padding: 40px 28px;
    border-radius: var(--radius-xl);
    text-align: center;
    box-shadow: var(--shadow-card);
    transition: var(--transition-bounce);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(19, 184, 166, 0.14);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: var(--gradient-primary);
    opacity: 0;
    transition: var(--transition-slow);
    z-index: 0;
}

.service-card:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-card-hover);
    border-color: rgba(19, 184, 166, 0.35);
}

.service-card:hover::before {
    opacity: 1;
}

.service-card > * {
    position: relative;
    z-index: 1;
    transition: var(--transition-base);
}

.service-card:hover h4,
.service-card:hover p {
    color: var(--bg-white);
}

.service-card:hover .service-icon {
    background: var(--bg-white);
}

.service-card:hover .service-icon svg {
    fill: var(--accent);
}

.service-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 24px;
    background: linear-gradient(145deg, rgba(15, 61, 79, 0.1), rgba(19, 184, 166, 0.18));
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-base);
}

.service-icon svg {
    width: 32px;
    height: 32px;
    fill: var(--primary);
    transition: var(--transition-base);
}

.service-card h4 {
    font-size: 1.15rem;
    margin-bottom: 14px;
    color: var(--primary);
}

.service-card p {
    color: var(--text-secondary);
    font-size: 0.925rem;
    line-height: 1.7;
    margin: 0;
}

/* ========================================
   STRENGTH GRID
   ======================================== */
.strength-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.strength-card {
    text-align: center;
    padding: 32px 16px;
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    transition: var(--transition-bounce);
    border: 1px solid var(--border-light);
}

.strength-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-card-hover);
    background: var(--gradient-primary);
}

.strength-card:hover h4 {
    color: var(--bg-white);
}

.strength-card:hover .strength-icon {
    background: rgba(255, 255, 255, 0.15);
    box-shadow: var(--shadow-glow);
}

.strength-card:hover .strength-icon svg {
    fill: var(--accent);
}

.strength-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    background: var(--bg-light);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-base);
}

.strength-icon svg {
    width: 28px;
    height: 28px;
    fill: var(--accent);
    transition: var(--transition-base);
}

.strength-card h4 {
    font-size: 0.875rem;
    color: var(--primary);
    font-weight: 600;
    transition: var(--transition-base);
    line-height: 1.4;
}

/* ========================================
   MISSION VISION
   ======================================== */
.mission-vision {
    background: var(--gradient-hero);
    position: relative;
    overflow: hidden;
}

.mission-vision::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 70%, rgba(0, 217, 192, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 70% 30%, rgba(50, 130, 184, 0.1) 0%, transparent 50%);
}

.mv-container {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.mv-box {
    padding: 48px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-xl);
    backdrop-filter: var(--blur-md);
    border: 1px solid rgba(255, 255, 255, 0.12);
    transition: var(--transition-base);
}

.mv-box:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
}

.mv-box h3 {
    color: var(--bg-white);
    font-size: 1.6rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.mv-box h3 svg {
    width: 36px;
    height: 36px;
    fill: var(--accent);
    flex-shrink: 0;
}

.mv-box p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1rem;
    line-height: 1.8;
    margin: 0;
}

/* ========================================
   WHY ANYMED
   ======================================== */
.why-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
}

.why-card {
    background: var(--gradient-card);
    padding: 40px 24px;
    border-radius: var(--radius-xl);
    text-align: center;
    box-shadow: var(--shadow-card);
    transition: var(--transition-bounce);
    border: 1px solid var(--border-light);
    position: relative;
    overflow: hidden;
}

.why-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: var(--accent);
    transition: var(--transition-base);
    border-radius: 2px;
}

.why-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-card-hover);
}

.why-card:hover::after {
    width: 60%;
}

.why-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    background: linear-gradient(135deg, rgba(15, 76, 117, 0.08), rgba(0, 217, 192, 0.12));
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-base);
}

.why-card:hover .why-icon {
    background: var(--gradient-accent);
    box-shadow: 0 10px 24px rgba(19, 184, 166, 0.35);
}

.why-icon svg {
    width: 36px;
    height: 36px;
    fill: var(--primary);
    transition: var(--transition-base);
}

.why-card:hover .why-icon svg {
    fill: var(--bg-white);
}

.why-card h4 {
    font-size: 1.1rem;
    margin-bottom: 12px;
    color: var(--primary);
}

.why-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.7;
}

/* ========================================
   PHILOSOPHY SECTION
   ======================================== */
.philosophy-section {
    background: var(--bg-light);
    position: relative;
    overflow: hidden;
}

.philosophy-section::before {
    content: '"';
    position: absolute;
    top: 40px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 20rem;
    font-family: var(--font-display);
    font-weight: 800;
    color: rgba(15, 76, 117, 0.03);
    line-height: 1;
    pointer-events: none;
}

.philosophy-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.philosophy-content h2 {
    margin-bottom: 24px;
}

.philosophy-quote {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.25rem;
    color: var(--text-secondary);
    font-style: italic;
    line-height: 1.9;
    font-weight: 400;
}

.philosophy-author {
    max-width: 800px;
    margin: 28px auto 0;
    color: var(--accent);
    font-weight: 600;
    font-size: 1rem;
}

/* ========================================
   FOOTER
   ======================================== */
.footer {
    background: linear-gradient(145deg, #081b25 0%, #0a2735 55%, #0f3d4f 100%);
    color: var(--bg-white);
    padding: 80px 0 30px;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: 0.3;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.8fr 1fr 1fr 1.2fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-about .logo {
    color: var(--bg-white);
    margin-bottom: 20px;
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
}

.footer-about .logo span {
    color: var(--accent);
}

.footer-about p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    line-height: 1.8;
    margin: 0;
}

.footer h4 {
    color: var(--bg-white);
    font-size: 1.1rem;
    margin-bottom: 24px;
    position: relative;
    padding-bottom: 12px;
}

.footer h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 32px;
    height: 3px;
    background: var(--accent);
    border-radius: 2px;
}

.footer-links li {
    margin-bottom: 14px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.925rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition-base);
}

.footer-links a::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
    opacity: 0;
    transition: var(--transition-base);
}

.footer-links a:hover {
    color: var(--accent-light);
    padding-left: 12px;
}

.footer-links a:hover::before {
    opacity: 1;
}

.footer-contact p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 14px;
    font-size: 0.925rem;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.footer-contact svg {
    width: 18px;
    height: 18px;
    fill: var(--accent);
    flex-shrink: 0;
    margin-top: 4px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 28px;
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.875rem;
    margin: 0;
}

/* ========================================
   PAGE HERO (Inner Pages)
   ======================================== */
.page-hero {
    background: var(--gradient-hero);
    padding: 160px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 70%, rgba(0, 217, 192, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 70% 30%, rgba(50, 130, 184, 0.1) 0%, transparent 50%);
}

.page-hero h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    color: var(--bg-white);
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
}

.page-hero p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.15rem;
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.breadcrumb {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 24px;
    font-size: 0.925rem;
    position: relative;
    z-index: 1;
    flex-wrap: wrap;
}

.breadcrumb a {
    color: rgba(255, 255, 255, 0.7);
}

.breadcrumb a:hover {
    color: var(--accent);
}

.breadcrumb span {
    color: var(--accent);
}

/* ========================================
   ABOUT CONTENT
   ======================================== */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-content h3 {
    font-size: 1.85rem;
    margin-bottom: 24px;
    color: var(--primary);
}

.about-content p {
    color: var(--text-secondary);
    margin-bottom: 20px;
    font-size: 1.05rem;
}

.about-image {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: var(--radius-xl);
    height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.about-image::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 60%);
    animation: imageShine 4s ease-in-out infinite;
}

@keyframes imageShine {
    0%, 100% { transform: translate(-30%, -30%); }
    50% { transform: translate(30%, 30%); }
}

.about-image svg {
    width: 100px;
    height: 100px;
    fill: var(--bg-white);
    opacity: 0.9;
    position: relative;
    z-index: 1;
}

.about-image-logo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    position: relative;
    z-index: 1;
    filter: saturate(1.05) contrast(1.04);
    transform: scale(1.02);
    transition: transform 0.55s ease, filter 0.45s ease;
    animation: aboutImageFloat 6s ease-in-out infinite;
}

.about-image:hover .about-image-logo {
    transform: scale(1.08);
    filter: saturate(1.1) contrast(1.08);
}

.about-image-logo--brand {
    width: 100% !important;
    height: 100% !important;
    max-height: none !important;
    object-fit: contain !important;
    object-position: center center !important;
    padding: 0 !important;
    background: #ffffff !important;
    transform: scale(1) !important;
    filter: saturate(1.04) contrast(1.03) !important;
    animation: brandImageMotion 9s ease-in-out infinite !important;
    display: block;
}

.about-image:hover .about-image-logo--brand {
    transform: scale(1.02) !important;
}

.about-image--brand {
    background: #ffffff !important;
    position: relative;
}

.about-image--brand::before {
    display: none !important;
}

.about-image--brand::after {
    content: "";
    position: absolute;
    top: -20%;
    left: -42%;
    width: 38%;
    height: 140%;
    transform: rotate(12deg);
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.48) 52%,
        rgba(255, 255, 255, 0) 100%
    );
    z-index: 2;
    pointer-events: none;
    mix-blend-mode: screen;
    animation: brandLightSweep 4.8s ease-in-out infinite;
}

@media (max-width: 768px) {
    .about-image--brand .about-image-logo--brand {
        object-fit: contain !important;
        background: #ffffff;
        transform: scale(1) !important;
        animation-duration: 6.2s !important;
    }

    .about-image--brand::after {
        width: 44%;
        left: -56%;
        opacity: 0.72;
    }
}

/* About page hero with custom image */
.about-page-hero {
    min-height: 76vh;
    background:
        linear-gradient(112deg, rgba(4, 22, 37, 0.72) 0%, rgba(7, 48, 74, 0.58) 42%, rgba(11, 95, 120, 0.45) 100%),
        url("..\/assets\/abt.png");
    background-size: cover;
    background-position: center 38%;
    background-repeat: no-repeat;
}

.about-page-hero::before {
    background-image: none;
    opacity: 0;
}

.about-page-hero::after {
    background: radial-gradient(circle at 14% 24%, rgba(5, 26, 43, 0.44) 0%, rgba(5, 26, 43, 0) 58%);
    filter: none;
    animation: none;
}

.about-page-hero .page-hero-content {
    max-width: 920px;
}

@media (max-width: 992px) {
    .about-page-hero {
        min-height: 66vh;
        background-position: center 32%;
    }
}

@media (max-width: 576px) {
    .about-page-hero {
        min-height: 60vh;
        background-position: center 26%;
    }
}

@keyframes aboutImageFloat {
    0%, 100% { transform: scale(1.02) translateY(0); }
    50% { transform: scale(1.05) translateY(-6px); }
}

@keyframes aboutBrandFloat {
    0%, 100% { transform: none; }
    50% { transform: none; }
}

@keyframes brandImageMotion {
    0%, 100% {
        transform: scale(1.03) translateY(0);
    }
    50% {
        transform: scale(1.08) translateY(-4px);
    }
}

@keyframes brandLightSweep {
    0% {
        left: -46%;
        opacity: 0;
    }
    20% {
        opacity: 1;
    }
    55% {
        left: 116%;
        opacity: 0.85;
    }
    100% {
        left: 116%;
        opacity: 0;
    }
}

/* Final override: About hero image (must stay last to win cascade) */
.page-hero.about-page-hero {
    min-height: 76vh !important;
    background:
        linear-gradient(112deg, rgba(4, 22, 37, 0.72) 0%, rgba(7, 48, 74, 0.58) 42%, rgba(11, 95, 120, 0.45) 100%),
        url("../assets/abt.png") !important;
    background-size: cover !important;
    background-position: center 38% !important;
    background-repeat: no-repeat !important;
}

.page-hero.about-page-hero::before {
    background-image: none !important;
    opacity: 0 !important;
}

.page-hero.about-page-hero::after {
    background: radial-gradient(circle at 14% 24%, rgba(5, 26, 43, 0.44) 0%, rgba(5, 26, 43, 0) 58%) !important;
    filter: none !important;
    animation: none !important;
}

@media (max-width: 992px) {
    .page-hero.about-page-hero {
        min-height: 66vh !important;
        background-position: center 32% !important;
    }
}

@media (max-width: 576px) {
    .page-hero.about-page-hero {
        min-height: 60vh !important;
        background-position: center 26% !important;
    }
}

/* Timeline */
.timeline {
    position: relative;
    padding: 40px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 100%;
    background: linear-gradient(to bottom, var(--accent), var(--primary-light));
    border-radius: 2px;
}

.timeline-item {
    display: flex;
    justify-content: flex-end;
    padding-right: calc(50% + 40px);
    position: relative;
    margin-bottom: 50px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 18px;
    height: 18px;
    background: var(--accent);
    border-radius: 50%;
    border: 4px solid var(--bg-white);
    box-shadow: 0 0 0 4px rgba(0, 217, 192, 0.2);
}

.timeline-item:nth-child(even) {
    justify-content: flex-start;
    padding-right: 0;
    padding-left: calc(50% + 40px);
}

.timeline-content {
    background: var(--bg-white);
    padding: 28px 32px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    max-width: 420px;
    border: 1px solid var(--border-light);
    transition: var(--transition-base);
}

.timeline-content:hover {
    box-shadow: var(--shadow-card-hover);
    transform: translateY(-4px);
}

.timeline-item:nth-child(even) .timeline-content {
    margin-left: 0;
}

.timeline-year {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--accent);
    font-family: var(--font-display);
    margin-bottom: 10px;
}

.timeline-content h4 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--primary);
}

.timeline-content p {
    color: var(--text-secondary);
    font-size: 0.925rem;
    margin: 0;
}

/* ========================================
   VALUES
   ======================================== */
.values-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
}

.value-card {
    text-align: center;
    padding: 40px 24px;
    background: var(--bg-white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-card);
    transition: var(--transition-bounce);
    border: 1px solid var(--border-light);
}

.value-card:hover {
    background: var(--bg-white);
    box-shadow: var(--shadow-card-hover);
    transform: translateY(-8px);
}

.value-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 24px;
    background: linear-gradient(135deg, rgba(15, 76, 117, 0.1), rgba(0, 217, 192, 0.15));
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-base);
}

.value-card:hover .value-icon {
    background: var(--accent);
    box-shadow: 0 8px 24px rgba(0, 217, 192, 0.3);
}

.value-icon svg {
    width: 32px;
    height: 32px;
    fill: var(--primary);
    transition: var(--transition-base);
}

.value-card:hover .value-icon svg {
    fill: var(--bg-white);
}

.value-card h4 {
    font-size: 1.1rem;
    margin-bottom: 12px;
    color: var(--primary);
}

.value-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.7;
}

/* ========================================
   SERVICES DETAIL
   ======================================== */
.service-detail {
    background: var(--bg-white);
    padding: 48px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-card);
    margin-bottom: 40px;
    transition: var(--transition-base);
    border: 1px solid var(--border-light);
}

.service-detail:hover {
    box-shadow: var(--shadow-card-hover);
}

.service-detail-header {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 28px;
}

.service-detail-icon {
    width: 64px;
    height: 64px;
    min-width: 64px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-detail-icon svg {
    width: 28px;
    height: 28px;
    fill: var(--bg-white);
}

.service-detail h3 {
    font-size: 1.5rem;
}

.service-detail > p {
    color: var(--text-secondary);
    margin-bottom: 28px;
    line-height: 1.8;
    font-size: 1.05rem;
}

.service-detail ul {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.service-detail li {
    position: relative;
    padding-left: 28px;
    color: var(--text-dark);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
}

.service-detail li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
}

/* ========================================
   MODELS
   ======================================== */
.models-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.model-card {
    background: var(--bg-white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: var(--transition-bounce);
    border: 1px solid var(--border-light);
}

.model-card:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-card-hover);
}

.model-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    padding: 36px;
    position: relative;
    overflow: hidden;
}

.model-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 60%);
}

.model-header h3 {
    color: var(--bg-white);
    font-size: 1.4rem;
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
}

.model-header p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
    margin: 0;
    position: relative;
    z-index: 1;
}

.model-body {
    padding: 32px;
}

.model-body ul {
    margin-bottom: 24px;
}

.model-body li {
    padding: 14px 0;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    align-items: flex-start;
    gap: 14px;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.model-body li:last-child {
    border-bottom: none;
}

.model-body li svg {
    width: 20px;
    height: 20px;
    fill: var(--accent);
    min-width: 20px;
    margin-top: 2px;
}

.model-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--accent);
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition-base);
}

.model-cta:hover {
    gap: 14px;
}

/* ========================================
   LEADERSHIP
   ======================================== */
.leadership-section {
    background: var(--bg-white);
    margin-bottom: 60px;
}

.leadership-section h3 {
    font-size: 1.75rem;
    margin-bottom: 12px;
    padding-bottom: 16px;
    border-bottom: 3px solid var(--accent);
    display: inline-block;
}

.leadership-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 44px;
}

.leader-card {
    background: var(--bg-white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: var(--transition-bounce);
    border: 1px solid var(--border-light);
}

.leader-card:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-card-hover);
}

.leader-image {
    height: 260px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.leader-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 120%, rgba(0, 217, 192, 0.2) 0%, transparent 60%);
}

.leader-image svg {
    width: 72px;
    height: 72px;
    fill: var(--bg-white);
    opacity: 0.7;
    position: relative;
    z-index: 1;
}

.leader-info {
    padding: 28px;
    text-align: center;
}

.leader-info h4 {
    font-size: 1.15rem;
    margin-bottom: 6px;
    color: var(--primary);
}

.leader-info p {
    color: var(--accent);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.leader-info .description {
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.7;
    margin: 0;
}

/* ========================================
   CONTACT
   ======================================== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-form {
    background: var(--bg-white);
    padding: 48px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-card);
    border: 1px solid var(--border-light);
}

.contact-form h3 {
    font-size: 1.6rem;
    margin-bottom: 12px;
}

.contact-form > p {
    color: var(--text-secondary);
    margin-bottom: 32px;
    font-size: 1rem;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-primary);
    font-size: 0.95rem;
    font-family: var(--font-display);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid var(--border-light);
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition-base);
    background: var(--bg-white);
    color: var(--text-primary);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(0, 217, 192, 0.1);
}

.form-group textarea {
    min-height: 160px;
    resize: vertical;
}

.contact-form .btn {
    width: 100%;
    padding: 18px;
    font-size: 1rem;
}

.contact-info {
    padding: 20px 0;
}

.contact-info h3 {
    font-size: 1.6rem;
    margin-bottom: 24px;
}

.contact-info > p {
    color: var(--text-secondary);
    margin-bottom: 32px;
    font-size: 1.05rem;
}

.info-item {
    display: flex;
    gap: 20px;
    margin-bottom: 28px;
}

.info-icon {
    width: 52px;
    height: 52px;
    min-width: 52px;
    background: linear-gradient(135deg, rgba(15, 76, 117, 0.1), rgba(0, 217, 192, 0.15));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-base);
}

.info-item:hover .info-icon {
    background: var(--accent);
}

.info-item:hover .info-icon svg {
    fill: var(--bg-white);
}

.info-icon svg {
    width: 22px;
    height: 22px;
    fill: var(--primary);
    transition: var(--transition-base);
}

.info-content h4 {
    font-size: 1rem;
    margin-bottom: 6px;
    color: var(--primary);
}

.info-content p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin: 0;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.map-placeholder {
    margin-top: 44px;
    height: 320px;
    background: linear-gradient(135deg, var(--bg-light), var(--border-light));
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.map-placeholder::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 30%, rgba(0, 217, 192, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 70% 70%, rgba(50, 130, 184, 0.1) 0%, transparent 50%);
}

.map-placeholder p {
    color: var(--text-muted);
    font-size: 1rem;
    position: relative;
    z-index: 1;
    margin: 0;
}

/* ========================================
   ANIMATIONS
   ======================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.animate-fade-in {
    animation: fadeIn 0.8s ease forwards;
}

.animate-fade-up {
    animation: fadeInUp 0.8s ease forwards;
}

.animate-slide-left {
    animation: slideInLeft 0.8s ease forwards;
}

.animate-slide-right {
    animation: slideInRight 0.8s ease forwards;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }

.scroll-animate {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.scroll-animate.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================
   RESPONSIVE STYLES
   ======================================== */
@media (max-width: 1200px) {
    .container {
        max-width: 1000px;
    }
    
    .hero h1 {
        font-size: 3rem;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .strength-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .why-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .values-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .leadership-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .navbar .logo img {
        height: 52px;
    }
}

@media (max-width: 992px) {
    .container {
        max-width: 750px;
    }
    
    .section-padding {
        padding: 80px 0;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .about-snapshot-content,
    .about-content,
    .contact-grid,
    .mv-container {
        grid-template-columns: 1fr;
    }
    
    .about-snapshot-content {
        gap: 48px;
    }
    
    .models-grid {
        grid-template-columns: 1fr;
    }
    
    .timeline::before {
        left: 20px;
    }
    
    .timeline-item,
    .timeline-item:nth-child(even) {
        padding-left: 50px;
        padding-right: 0;
        justify-content: flex-start;
    }
    
    .timeline-item::before,
    .timeline-item:nth-child(even)::before {
        left: 20px;
    }
    
    .timeline-content,
    .timeline-item:nth-child(even) .timeline-content {
        margin-left: 0;
        margin-right: 0;
        max-width: 100%;
    }
    
    .mv-box {
        padding: 36px;
    }
    
    .navbar .logo img {
        height: 48px;
    }

    .logo-line {
        display: block;
        font-size: 0.86rem;
        line-height: 1.15;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 90px;
        left: -100%;
        width: 100%;
        background: var(--bg-white);
        flex-direction: column;
        padding: 24px;
        box-shadow: var(--shadow-lg);
        transition: var(--transition-base);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        width: 100%;
        text-align: center;
    }
    
    .nav-link {
        display: block;
        padding: 16px 0;
    }
    
    .navbar .container {
        padding: 8px 24px;
        gap: 8px;
    }
    
    .navbar .logo img {
        height: 44px;
    }

    .logo-line {
        font-size: 0.74rem;
        line-height: 1.1;
        max-width: calc(100vw - 130px);
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        text-align: center;
    }
    
    .services-grid,
    .strength-grid,
    .why-grid,
    .values-grid,
    .leadership-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-box {
        padding: 24px;
    }
    
    .stat-number {
        font-size: 2.25rem;
    }
    
    .page-hero h1 {
        font-size: 2rem;
    }
    
    .timeline::before {
        display: none;
    }
    
    .timeline-item,
    .timeline-item:nth-child(even) {
        padding-left: 0;
    }
    
    .timeline-item::before,
    .timeline-item:nth-child(even)::before {
        display: none;
    }
    
    .service-detail ul {
        grid-template-columns: 1fr;
    }
    
    .service-detail {
        padding: 32px;
    }
    
    .service-detail-header {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .about-image {
        height: 320px;
    }
    
    .contact-form {
        padding: 32px;
    }
    
    .philosophy-section::before {
        font-size: 12rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    .navbar .container {
        padding: 8px 16px;
    }
    
    .navbar .logo img {
        height: 40px;
    }

    .brand {
        gap: 8px;
        max-width: calc(100vw - 78px);
    }

    .logo-line {
        font-size: 0.62rem;
        line-height: 1.1;
        max-width: calc(100vw - 90px);
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .hero h1 {
        font-size: 1.75rem;
    }
    
    .section-header h2 {
        font-size: 1.75rem;
    }
    
    .btn {
        padding: 14px 24px;
    }
    
    .mv-box {
        padding: 28px;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .service-card {
        padding: 32px 20px;
    }
    
    .value-card,
    .why-card {
        padding: 32px 20px;
    }
    
    .leader-card .leader-image {
        height: 220px;
    }
}
.timeline {
    position: relative;
    padding: 40px 0;
}

@media (max-width: 360px) {
    .brand {
        max-width: calc(100vw - 72px);
    }

    .logo-line {
        max-width: calc(100vw - 84px);
        font-size: 0.58rem;
    }
}

/* ========================================
   NEXT-GEN PREMIUM OVERRIDES
   ======================================== */

body {
    background:
        radial-gradient(1200px 600px at -10% -20%, rgba(19, 184, 166, 0.18), transparent 55%),
        radial-gradient(1000px 500px at 120% 0%, rgba(42, 143, 181, 0.16), transparent 55%),
        linear-gradient(180deg, #f8fcfe 0%, #f3f8fb 42%, #edf5f9 100%);
}

/* Premium scrollbar */
* {
    scrollbar-width: thin;
    scrollbar-color: rgba(31, 109, 134, 0.5) rgba(15, 61, 79, 0.08);
}

*::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

*::-webkit-scrollbar-track {
    background: rgba(15, 61, 79, 0.08);
}

*::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #1f6d86 0%, #13b8a6 100%);
    border-radius: 999px;
}

.navbar {
    background: rgba(255, 255, 255, 0.78);
    border-bottom: 1px solid rgba(15, 61, 79, 0.08);
}

.navbar::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(19, 184, 166, 0.7), rgba(214, 182, 122, 0.7), transparent);
}

.navbar.scrolled {
    box-shadow: 0 16px 40px rgba(10, 35, 48, 0.13);
}

.logo-line {
    background: none;
    -webkit-background-clip: border-box;
    background-clip: border-box;
    color: #0a2f3e;
    -webkit-text-fill-color: #0a2f3e;
    font-weight: 800;
    letter-spacing: 0.015em;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.5);
}

@media (max-width: 992px) {
    .logo-line {
        font-size: 0.82rem;
    }
}

@media (max-width: 768px) {
    .logo-line {
        font-size: 0.68rem;
        max-width: calc(100vw - 130px);
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

@media (max-width: 480px) {
    .logo-line {
        font-size: 0.58rem;
        max-width: calc(100vw - 90px);
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

.hero {
    min-height: 102vh;
    background:
        radial-gradient(900px 440px at 8% 10%, rgba(214, 182, 122, 0.26) 0%, rgba(214, 182, 122, 0) 70%),
        radial-gradient(780px 420px at 92% 22%, rgba(19, 184, 166, 0.34) 0%, rgba(19, 184, 166, 0) 68%),
        radial-gradient(700px 360px at 54% 84%, rgba(42, 143, 181, 0.28) 0%, rgba(42, 143, 181, 0) 70%),
        linear-gradient(130deg, #05151f 0%, #0b2d3d 36%, #0f3d4f 68%, #14656f 100%);
}

.hero::before {
    background-image:
        radial-gradient(circle at 12% 24%, rgba(255, 255, 255, 0.18) 0%, transparent 28%),
        radial-gradient(circle at 84% 16%, rgba(214, 182, 122, 0.2) 0%, transparent 34%),
        radial-gradient(circle at 68% 74%, rgba(19, 184, 166, 0.22) 0%, transparent 32%),
        radial-gradient(circle at 26% 82%, rgba(42, 143, 181, 0.24) 0%, transparent 34%);
    opacity: 0.9;
    animation: auroraFlow 14s ease-in-out infinite alternate;
}

.hero::after {
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px),
        radial-gradient(circle at 50% 50%, rgba(4, 16, 24, 0) 38%, rgba(4, 16, 24, 0.48) 100%);
    background-size: 52px 52px, 52px 52px, cover;
    background-position: 0 0, 0 0, center;
    opacity: 0.44;
    animation: gridDrift 20s linear infinite;
}

.hero .container {
    position: relative;
}

.hero .container::before,
.hero .container::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(0.5px);
    pointer-events: none;
    z-index: 0;
    animation: floatOrb 9s ease-in-out infinite;
}

.hero .container::before {
    width: 280px;
    height: 280px;
    right: -40px;
    top: -40px;
    background: radial-gradient(circle, rgba(214, 182, 122, 0.34) 0%, rgba(214, 182, 122, 0) 72%);
}

.hero .container::after {
    width: 260px;
    height: 260px;
    left: -70px;
    bottom: -40px;
    background: radial-gradient(circle, rgba(19, 184, 166, 0.35) 0%, rgba(19, 184, 166, 0) 72%);
    animation-delay: -3s;
}

.hero-content {
    background: linear-gradient(140deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.03) 100%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 24px 48px rgba(5, 18, 24, 0.22);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 26px;
    padding: 40px 36px;
}

.hero-content::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(130deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.08), rgba(214, 182, 122, 0.45));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.hero-subtitle {
    max-width: 60ch;
}

.btn {
    transform: translateZ(0);
}

.btn-primary {
    box-shadow: 0 12px 36px rgba(19, 184, 166, 0.38), 0 0 0 1px rgba(214, 182, 122, 0.4) inset;
}

.btn-primary:hover {
    transform: translateY(-4px) scale(1.015);
}

.section-header h2 {
    letter-spacing: -0.03em;
}

.section-header p {
    font-size: 1.06rem;
}

.service-card,
.why-card,
.value-card,
.model-card,
.leader-card,
.stat-box,
.timeline-content,
.service-detail,
.contact-form {
    border: 1px solid rgba(19, 184, 166, 0.12);
    box-shadow: 0 14px 34px rgba(10, 35, 48, 0.09);
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
    transform-origin: center;
}

.service-card:hover,
.why-card:hover,
.value-card:hover,
.model-card:hover,
.leader-card:hover,
.stat-box:hover,
.timeline-content:hover,
.service-detail:hover,
.contact-form:hover {
    border-color: rgba(19, 184, 166, 0.36);
    box-shadow: 0 24px 48px rgba(10, 35, 48, 0.16);
}

.services-grid .service-card,
.why-grid .why-card,
.values-grid .value-card,
.models-grid .model-card,
.leadership-grid .leader-card,
.strength-grid .strength-card {
    animation: cardIn 0.85s ease both;
    animation-delay: calc(var(--stagger-index, 0) * 80ms);
}

.footer {
    position: relative;
}

.footer::after {
    content: '';
    position: absolute;
    inset: auto 0 0 0;
    height: 90px;
    background: linear-gradient(180deg, rgba(214, 182, 122, 0) 0%, rgba(214, 182, 122, 0.08) 100%);
    pointer-events: none;
}

.scroll-animate {
    opacity: 0;
    filter: blur(4px);
    transform: translateY(38px) scale(0.985);
    transition: opacity 0.8s ease, transform 0.8s ease, filter 0.8s ease;
}

.scroll-animate.visible {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0) scale(1);
}

@keyframes floatOrb {
    0% { transform: translateY(0px) scale(1); }
    50% { transform: translateY(-14px) scale(1.03); }
    100% { transform: translateY(0px) scale(1); }
}

@keyframes auroraFlow {
    0% {
        transform: scale(1) translate3d(0, 0, 0);
        filter: hue-rotate(0deg) saturate(100%);
    }
    50% {
        transform: scale(1.04) translate3d(-1.5%, 1.2%, 0);
        filter: hue-rotate(-10deg) saturate(115%);
    }
    100% {
        transform: scale(1.08) translate3d(1.5%, -1.6%, 0);
        filter: hue-rotate(8deg) saturate(105%);
    }
}

@keyframes gridDrift {
    0% {
        background-position: 0 0, 0 0, center;
    }
    100% {
        background-position: 52px 52px, -52px -52px, center;
    }
}

@keyframes cardIn {
    0% {
        opacity: 0;
        transform: translateY(24px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Futuristic enhancement layer */
.navbar {
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
}

.nav-link {
    border: 1px solid transparent;
}

.nav-link:hover,
.nav-link.active {
    border-color: rgba(82, 215, 202, 0.45);
    box-shadow: 0 0 0 1px rgba(82, 215, 202, 0.18) inset, 0 0 18px rgba(19, 184, 166, 0.2);
}

.section-header h2 {
    position: relative;
}

.section-header h2::before {
    content: '';
    position: absolute;
    left: 50%;
    top: -14px;
    width: 82px;
    height: 82px;
    transform: translateX(-50%);
    background: radial-gradient(circle, rgba(82, 215, 202, 0.2) 0%, rgba(82, 215, 202, 0) 70%);
    filter: blur(1px);
    pointer-events: none;
}

.bg-light {
    background:
        linear-gradient(180deg, rgba(13, 39, 53, 0.02) 0%, rgba(13, 39, 53, 0.04) 100%),
        radial-gradient(900px 420px at -10% 0%, rgba(82, 215, 202, 0.09) 0%, transparent 60%),
        radial-gradient(700px 360px at 110% 20%, rgba(42, 143, 181, 0.08) 0%, transparent 62%),
        var(--bg-light);
}

/* Futuristic treatment for all inner-page hero banners */
.page-hero {
    position: relative;
    overflow: hidden;
    min-height: 88vh;
    display: flex;
    align-items: center;
    padding: 130px 0 70px;
    background:
        radial-gradient(700px 300px at 10% 20%, rgba(82, 215, 202, 0.22) 0%, rgba(82, 215, 202, 0) 70%),
        radial-gradient(760px 340px at 90% 26%, rgba(42, 143, 181, 0.25) 0%, rgba(42, 143, 181, 0) 72%),
        linear-gradient(130deg, #05131d 0%, #0b2d3d 42%, #0f3d4f 76%, #166874 100%);
}

.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
    background-size: 52px 52px, 52px 52px;
    opacity: 0.4;
    animation: gridDrift 22s linear infinite;
}

.page-hero::after {
    content: '';
    position: absolute;
    inset: -35% -20%;
    background: radial-gradient(circle at 30% 40%, rgba(214, 182, 122, 0.22) 0%, rgba(214, 182, 122, 0) 45%),
                radial-gradient(circle at 70% 60%, rgba(82, 215, 202, 0.2) 0%, rgba(82, 215, 202, 0) 48%);
    filter: blur(10px);
    animation: auroraFlow 16s ease-in-out infinite alternate;
    pointer-events: none;
}

.page-hero .container {
    position: relative;
    z-index: 1;
}

.page-hero-content {
    position: relative;
    max-width: 860px;
    margin: 0 auto;
    background: linear-gradient(140deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.03) 100%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 24px 48px rgba(5, 18, 24, 0.22);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 26px;
    padding: 38px 34px;
}

.page-hero-content::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(130deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.08), rgba(214, 182, 122, 0.45));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.page-hero h1 {
    text-shadow: 0 10px 26px rgba(3, 13, 19, 0.5);
    letter-spacing: -0.02em;
}

.page-hero p {
    color: rgba(235, 247, 252, 0.88);
}

.breadcrumb a,
.breadcrumb span {
    text-shadow: 0 0 12px rgba(82, 215, 202, 0.2);
}

.breadcrumb a:hover {
    color: var(--accent-light);
}

/* Contact hero atom-network animation */
.contact-hero {
    min-height: 76vh;
}

.contact-hero .container {
    z-index: 3;
}

.contact-hero .atom-network {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

.contact-hero .atom-node {
    position: absolute;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #f7fffe 0%, #8ff4eb 38%, #2a8fb5 100%);
    box-shadow: 0 0 0 7px rgba(82, 215, 202, 0.14), 0 0 20px rgba(82, 215, 202, 0.58);
    animation: atomPulse 2.9s ease-in-out infinite alternate;
}

.contact-hero .node-1 { top: 22%; left: 14%; animation-duration: 3.2s; }
.contact-hero .node-2 { top: 34%; left: 34%; animation-duration: 2.7s; animation-delay: 0.6s; }
.contact-hero .node-3 { top: 20%; left: 64%; animation-duration: 3.4s; animation-delay: 0.2s; }
.contact-hero .node-4 { top: 58%; left: 76%; animation-duration: 2.8s; animation-delay: 0.9s; }
.contact-hero .node-5 { top: 66%; left: 44%; animation-duration: 3s; animation-delay: 0.35s; }

.contact-hero .atom-link {
    position: absolute;
    height: 2px;
    transform-origin: left center;
    background: linear-gradient(90deg, rgba(143, 244, 235, 0.06) 0%, rgba(143, 244, 235, 0.9) 50%, rgba(42, 143, 181, 0.15) 100%);
    filter: drop-shadow(0 0 8px rgba(82, 215, 202, 0.52));
    opacity: 0.9;
    animation: atomLinkPulse 2.7s ease-in-out infinite alternate;
}

.contact-hero .link-1 { top: 24.7%; left: 14.8%; width: 23%; transform: rotate(26deg); }
.contact-hero .link-2 { top: 30.2%; left: 34.6%; width: 30%; transform: rotate(-12deg); animation-delay: 0.8s; }
.contact-hero .link-3 { top: 26%; left: 64.4%; width: 20%; transform: rotate(56deg); animation-delay: 1.2s; }
.contact-hero .link-4 { top: 60%; left: 45%; width: 31%; transform: rotate(-8deg); animation-delay: 0.45s; }

.contact-hero .contact-hero-content {
    animation: contactFloat 4.6s ease-in-out infinite;
}

.contact-hero .page-hero-content h1 {
    animation: contactGlow 3.6s ease-in-out infinite alternate;
}

.management-page-hero {
    min-height: auto;
    padding: 122px 0 34px;
    overflow: hidden;
    background:
        radial-gradient(420px 180px at 16% 22%, rgba(82, 215, 202, 0.2) 0%, rgba(82, 215, 202, 0) 72%),
        radial-gradient(500px 220px at 84% 28%, rgba(42, 143, 181, 0.2) 0%, rgba(42, 143, 181, 0) 72%),
        linear-gradient(135deg, #061621 0%, #0d3243 55%, #134e61 100%);
}

.management-page-hero::after {
    content: "";
    position: absolute;
    inset: -25% -10%;
    background:
        radial-gradient(circle at 22% 40%, rgba(214, 182, 122, 0.2) 0%, rgba(214, 182, 122, 0) 42%),
        radial-gradient(circle at 76% 58%, rgba(82, 215, 202, 0.16) 0%, rgba(82, 215, 202, 0) 48%);
    animation: managementAura 10s ease-in-out infinite alternate;
    pointer-events: none;
}

.management-page-hero .page-hero-content {
    max-width: 720px;
    padding: 16px 20px;
    margin: 0 auto;
    text-align: center;
    animation: managementFloat 4.2s ease-in-out infinite;
    margin-top: 30px;
}

.management-page-hero .page-hero-content h1 {
    font-size: clamp(1.45rem, 2.5vw, 2rem);
    line-height: 1.15;
    margin-bottom: 0;
    white-space: normal;
    word-break: break-word;
    text-shadow: 0 10px 24px rgba(3, 13, 19, 0.55), 0 0 18px rgba(143, 244, 235, 0.35);
}

.management-page-hero .page-hero-content p {
    font-size: 0.98rem;
    margin-bottom: 8px;
    overflow-wrap: anywhere;
}

.service-page-hero {
    min-height: auto;
    padding: 142px 0 52px;
}

.service-page-hero .page-hero-content {
    max-width: 820px;
    padding: 16px 20px;
    margin-top: 34px;
}

.service-page-hero .page-hero-content h1 {
    font-size: clamp(1.45rem, 2.4vw, 2rem);
    margin-bottom: 8px;
}

@keyframes managementFloat {
    0% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
    100% { transform: translateY(0); }
}

@keyframes managementAura {
    0% { transform: translate3d(-1.5%, -1.5%, 0); opacity: 0.8; }
    100% { transform: translate3d(1.5%, 1.5%, 0); opacity: 1; }
}

@keyframes atomPulse {
    0% { transform: translate3d(0, 0, 0) scale(1); opacity: 0.85; }
    100% { transform: translate3d(0, -9px, 0) scale(1.16); opacity: 1; }
}

@keyframes atomLinkPulse {
    0% { opacity: 0.34; filter: drop-shadow(0 0 3px rgba(82, 215, 202, 0.2)); }
    100% { opacity: 0.97; filter: drop-shadow(0 0 10px rgba(82, 215, 202, 0.62)); }
}

@keyframes contactFloat {
    0% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0); }
}

@keyframes contactGlow {
    0% { text-shadow: 0 10px 26px rgba(3, 13, 19, 0.5), 0 0 0 rgba(143, 244, 235, 0); }
    100% { text-shadow: 0 10px 28px rgba(3, 13, 19, 0.5), 0 0 22px rgba(143, 244, 235, 0.55); }
}

.hero-content {
    position: relative;
    overflow: hidden;
}

.hero-content::after {
    content: '';
    position: absolute;
    inset: -120% -20%;
    background: repeating-linear-gradient(
        115deg,
        rgba(255, 255, 255, 0) 0px,
        rgba(255, 255, 255, 0) 24px,
        rgba(82, 215, 202, 0.08) 25px,
        rgba(82, 215, 202, 0.08) 27px
    );
    animation: scanSweep 14s linear infinite;
    pointer-events: none;
}

.btn-primary {
    position: relative;
    isolation: isolate;
}

.btn-primary::after {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    background: linear-gradient(130deg, rgba(82, 215, 202, 0.55), rgba(214, 182, 122, 0.4), rgba(42, 143, 181, 0.5));
    z-index: -1;
    filter: blur(10px);
    opacity: 0.35;
    transition: opacity 0.3s ease;
}

.btn-primary:hover::after {
    opacity: 0.6;
}

.service-card,
.why-card,
.value-card,
.model-card,
.leader-card,
.stat-box {
    position: relative;
    overflow: hidden;
}

.service-card::after,
.why-card::before,
.value-card::before,
.model-card::before,
.leader-card::before,
.stat-box::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    border: 1px solid rgba(82, 215, 202, 0.18);
    pointer-events: none;
}

.service-card:hover,
.why-card:hover,
.value-card:hover,
.model-card:hover,
.leader-card:hover,
.stat-box:hover {
    box-shadow: 0 24px 48px rgba(10, 35, 48, 0.16), 0 0 28px rgba(82, 215, 202, 0.18);
}

.footer::before {
    box-shadow: 0 0 24px rgba(82, 215, 202, 0.4);
}

@keyframes scanSweep {
    0% {
        transform: translate3d(-12%, -28%, 0) rotate(0.001deg);
    }
    100% {
        transform: translate3d(12%, 28%, 0) rotate(0.001deg);
    }
}

@media (max-width: 992px) {
    .hero-content {
        padding: 32px 26px;
    }
}

@media (max-width: 768px) {
    .hero {
        min-height: 95vh;
    }
    
    .hero-content {
        padding: 24px 20px;
        border-radius: 20px;
    }
    
    .hero .container::before {
        width: 190px;
        height: 190px;
        right: -30px;
        top: -28px;
    }
    
    .hero .container::after {
        width: 180px;
        height: 180px;
        left: -38px;
        bottom: -30px;
    }

    .page-hero {
        min-height: 70vh;
        padding: 110px 0 52px;
    }

    .page-hero-content {
        padding: 24px 20px;
        border-radius: 20px;
    }

    .page-hero::before {
        opacity: 0.28;
    }

    .contact-hero {
        min-height: 58vh;
    }

    .management-page-hero {
        min-height: auto;
        padding: 90px 0 20px;
    }

    .management-page-hero .page-hero-content {
        max-width: 100%;
        padding: 12px 12px;
        margin-top: 16px;
    }

    .management-page-hero .page-hero-content h1 {
        font-size: clamp(1.2rem, 5.6vw, 1.65rem);
        line-height: 1.18;
    }

    .service-page-hero {
        min-height: 210px;
        padding: 0;
        display: flex;
        align-items: flex-end;
    }

    .service-page-hero .page-hero-content {
        max-width: 100%;
        padding: 8px 12px;
        margin-top: 0;
        margin-bottom: 18px;
    }

    .service-page-hero .page-hero-content h1 {
        font-size: clamp(1.22rem, 5.2vw, 1.72rem);
    }

    .contact-hero .page-hero-content {
        max-width: 92%;
    }

    .contact-hero .atom-node {
        width: 10px;
        height: 10px;
    }

    .contact-hero .atom-link {
        height: 1px;
    }

    .contact-hero .node-1 { top: 28%; left: 10%; }
    .contact-hero .node-2 { top: 38%; left: 30%; }
    .contact-hero .node-3 { top: 28%; left: 68%; }
    .contact-hero .node-4 { top: 58%; left: 80%; }
    .contact-hero .node-5 { top: 64%; left: 46%; }

    .contact-hero .link-1 { top: 30.2%; left: 10.7%; width: 23%; transform: rotate(20deg); }
    .contact-hero .link-2 { top: 34.6%; left: 30.5%; width: 39%; transform: rotate(-10deg); }
    .contact-hero .link-3 { top: 31%; left: 68.3%; width: 18%; transform: rotate(52deg); }
    .contact-hero .link-4 { top: 60%; left: 46.2%; width: 33%; transform: rotate(-6deg); }

    /* Mobile: hero me sirf title (name) show */
    .page-hero .page-hero-content p,
    .page-hero .page-hero-content .breadcrumb {
        display: none !important;
    }

    .biomedical-page-hero .page-hero-content {
        margin-bottom: 0 !important;
        transform: translateY(10px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero::before,
    .hero::after,
    .page-hero::before,
    .page-hero::after,
    .contact-hero .atom-node,
    .contact-hero .atom-link,
    .contact-hero .contact-hero-content,
    .contact-hero .page-hero-content h1,
    .navbar-running-track,
    .management-page-hero::after,
    .management-page-hero .page-hero-content,
    .hero-content::after,
    .hero .container::before,
    .hero .container::after,
    .services-grid .service-card,
    .why-grid .why-card,
    .values-grid .value-card,
    .models-grid .model-card,
    .leadership-grid .leader-card,
    .strength-grid .strength-card {
        animation: none !important;
    }
    
    .scroll-animate {
        filter: none;
        transform: none;
        transition: opacity 0.2s ease;
    }
}

/* ========================================
   Professional + UX Completion Layer
   ======================================== */

:root {
    --reading-max: 68ch;
    --focus-ring: 0 0 0 3px rgba(82, 215, 202, 0.35), 0 0 0 6px rgba(11, 45, 61, 0.24);
}

.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    z-index: 1400;
    transform-origin: left center;
    transform: scaleX(0);
    background: linear-gradient(90deg, #52d7ca 0%, #2a8fb5 55%, #d6b67a 100%);
    box-shadow: 0 0 14px rgba(82, 215, 202, 0.55);
}

:focus-visible {
    outline: none;
    box-shadow: var(--focus-ring);
    border-radius: 10px;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: none;
}

.hero-trust {
    margin-top: 24px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.trust-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgba(230, 248, 255, 0.95);
    background: linear-gradient(130deg, rgba(12, 53, 67, 0.74), rgba(18, 92, 114, 0.58));
    border: 1px solid rgba(82, 215, 202, 0.38);
    box-shadow: 0 8px 20px rgba(4, 16, 24, 0.25);
}

.trust-chip::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: radial-gradient(circle, #8ff4eb 0%, #52d7ca 70%);
    box-shadow: 0 0 8px rgba(82, 215, 202, 0.8);
}

.section-padding p,
.about-content p,
.about-snapshot-text p,
.service-detail > p,
.contact-info > p,
.leader-info .description {
    max-width: var(--reading-max);
}

.form-status {
    margin-top: 12px;
    font-size: 0.92rem;
    font-weight: 600;
}

.form-status.ok {
    color: #0f8d7e;
}

.form-status.error {
    color: #a73838;
}

.contact-form .btn[disabled] {
    opacity: 0.75;
    cursor: not-allowed;
}

.page-hero .breadcrumb {
    margin-top: 18px;
}

@media (max-width: 768px) {
    .hero-trust {
        margin-top: 18px;
        gap: 8px;
        flex-direction: column;
        align-items: flex-start;
    }

    .trust-chip {
        width: 100%;
        max-width: 320px;
        font-size: 0.72rem;
        letter-spacing: 0.01em;
        text-transform: none;
        line-height: 1.3;
        padding: 9px 12px;
    }
}

@media (max-width: 480px) {
    .hero-trust {
        gap: 7px;
    }

    .trust-chip {
        max-width: 100%;
        font-size: 0.68rem;
        padding: 8px 10px;
    }
}

/* ========================================
   Homepage Reference Redesign (index only)
   Keeps existing content, updates visual style.
   ======================================== */

.homepage-reference {
    --ref-navy: #0f3558;
    --ref-blue: #1c4f7e;
    --ref-teal: #12a3ab;
    --ref-bg: #f5f9fc;
    --ref-border: #d7e5f0;
    --ref-text: #2a3e52;
    --ref-shadow: 0 12px 30px rgba(16, 53, 88, 0.11);
    --header-offset-desktop: 124px;
    --header-offset-mobile: 72px;
    background: var(--ref-bg);
    color: var(--ref-text);
}

.homepage-reference .navbar {
    background: rgba(255, 255, 255, 0.98);
    border-bottom: 1px solid var(--ref-border);
    backdrop-filter: blur(10px);
}

.homepage-reference .navbar.scrolled {
    box-shadow: 0 10px 28px rgba(16, 53, 88, 0.12);
}

.homepage-reference .logo-line {
    color: var(--ref-navy);
    font-size: 0.85rem;
}

.homepage-reference .nav-link {
    color: #3b546c;
    border-radius: 8px;
    text-transform: none;
    letter-spacing: 0;
    font-weight: 600;
}

.homepage-reference .nav-link:hover,
.homepage-reference .nav-link.active {
    background: #ecf4fb;
    color: var(--ref-blue);
}

.homepage-reference .hero {
    min-height: 82vh;
    padding-top: 130px;
    background:
        linear-gradient(102deg, rgba(11, 42, 72, 0.95) 0%, rgba(18, 72, 118, 0.9) 48%, rgba(18, 163, 171, 0.86) 100%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.26), transparent 38%);
}

.homepage-reference .hero::before {
    background:
        linear-gradient(to right, rgba(9, 30, 52, 0.36), rgba(9, 30, 52, 0)),
        radial-gradient(circle at 78% 25%, rgba(255, 255, 255, 0.2), transparent 42%);
    animation: none;
}

.homepage-reference .hero::after {
    opacity: 0.16;
}

.homepage-reference .hero-content {
    max-width: 920px;
}

.homepage-reference .hero h1 {
    max-width: 20ch;
    font-size: clamp(2.3rem, 4.8vw, 4rem);
}

.homepage-reference .hero-subtitle {
    color: rgba(238, 247, 255, 0.94);
    max-width: 76ch;
    font-size: 1.03rem;
}

.homepage-reference .btn {
    border-radius: 8px;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: none;
    box-shadow: none;
}

.homepage-reference .btn-primary {
    background: #ffffff;
    color: var(--ref-blue);
    border: 1px solid #ffffff;
}

.homepage-reference .btn-primary:hover {
    background: #eff6fd;
    color: var(--ref-navy);
}

.homepage-reference .btn-outline {
    border-color: rgba(255, 255, 255, 0.72);
    color: #ffffff;
}

.homepage-reference .btn-outline:hover {
    background: #ffffff;
    color: var(--ref-blue);
}

.homepage-reference .hero-trust {
    gap: 12px;
}

.homepage-reference .trust-chip {
    border: 1px solid rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.12);
    box-shadow: none;
    text-transform: none;
    letter-spacing: 0.01em;
}

.homepage-reference .section-padding {
    padding: 84px 0;
}

.homepage-reference .section-header h2,
.homepage-reference h3,
.homepage-reference h4 {
    color: var(--ref-navy);
}

.homepage-reference .section-header h2::after {
    background: linear-gradient(90deg, var(--ref-blue), var(--ref-teal));
    border-radius: 999px;
}

.homepage-reference .about-snapshot,
.homepage-reference .our-strength,
.homepage-reference .why-anymed {
    background: #ffffff;
}

.homepage-reference .bg-light,
.homepage-reference .mission-vision {
    background: #f0f6fb;
}

.homepage-reference .stat-box,
.homepage-reference .service-card,
.homepage-reference .strength-card,
.homepage-reference .why-card,
.homepage-reference .mv-box {
    border: 1px solid var(--ref-border);
    border-radius: 14px;
    background: #ffffff;
    box-shadow: var(--ref-shadow);
}

.homepage-reference .service-card,
.homepage-reference .why-card {
    border-top: 4px solid var(--ref-teal);
}

.homepage-reference .service-icon,
.homepage-reference .strength-icon,
.homepage-reference .why-icon {
    background: #eff6fc;
    color: var(--ref-blue);
}

.homepage-reference .service-icon svg,
.homepage-reference .strength-icon svg,
.homepage-reference .why-icon svg {
    fill: var(--ref-blue);
}

.homepage-reference .stat-number {
    color: var(--ref-blue);
}

.homepage-reference .mv-box h3 svg,
.homepage-reference .footer-contact svg {
    fill: var(--ref-teal);
}

.homepage-reference .footer {
    background: linear-gradient(145deg, #0d2e4d 0%, #154a75 62%, #1a5f82 100%);
}

.homepage-reference .footer-grid {
    grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
}

.homepage-reference .footer h4 {
    color: #ffffff !important;
}

.homepage-reference .footer-links a,
.homepage-reference .footer-contact p {
    color: #ffffff !important;
    opacity: 1 !important;
}

.homepage-reference .footer::before {
    opacity: 0.22;
}

.homepage-reference .footer-about .logo span,
.homepage-reference .footer h4::after {
    color: #6ce2e8;
    background: #6ce2e8;
}

.homepage-reference .footer-about .logo span {
    color: #ffffff !important;
    background: transparent !important;
}

.homepage-reference .footer-bottom {
    border-top-color: rgba(255, 255, 255, 0.22);
}

.homepage-reference .ppp-model-section {
    position: relative;
}

.homepage-reference .ppp-model-layout {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 44px;
    align-items: center;
}

.homepage-reference .ppp-model-text h2 {
    margin-bottom: 14px;
    line-height: 1.22;
}

.homepage-reference .ppp-model-intro {
    font-size: 1.05rem;
    color: #1f4f73;
    font-weight: 700;
    margin-bottom: 16px;
}

.homepage-reference .ppp-model-text p {
    margin-bottom: 14px;
}

.homepage-reference .ppp-model-visual {
    position: relative;
    min-height: 390px;
}

.homepage-reference .ppp-layer {
    position: absolute;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 16px 34px rgba(10, 43, 71, 0.2);
    border: 4px solid rgba(255, 255, 255, 0.9);
}

.homepage-reference .ppp-layer img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.homepage-reference .ppp-layer-main {
    width: 78%;
    height: 78%;
    right: 0;
    top: 8%;
    z-index: 2;
}

.homepage-reference .ppp-layer-top {
    width: 54%;
    height: 44%;
    left: 0;
    top: 0;
    z-index: 3;
}

.homepage-reference .ppp-layer-bottom {
    width: 56%;
    height: 40%;
    left: 6%;
    bottom: 4%;
    z-index: 1;
}

@media (max-width: 992px) {
    .homepage-reference .hero {
        min-height: auto;
        padding-top: 118px;
        padding-bottom: 58px;
    }

    .homepage-reference .section-padding {
        padding: 70px 0;
    }

    .homepage-reference .ppp-model-layout {
        grid-template-columns: 1fr;
        gap: 26px;
    }

    .homepage-reference .ppp-model-visual {
        min-height: 320px;
    }
}

.homepage-reference .top-strip {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1200;
    height: 36px;
    display: flex;
    align-items: center;
    background: #0e2f50;
    color: #d9ecff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
    font-size: 0.82rem;
}

.homepage-reference .top-strip .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.homepage-reference .top-strip-left {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
}

.homepage-reference .top-strip-company {
    margin: 0;
    color: #d9ecff;
    text-align: left;
    flex: 0 0 auto;
}

.homepage-reference .top-strip-languages {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
}

.homepage-reference .top-strip-languages .lang-item {
    color: #d9ecff;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.76rem;
    padding: 2px 6px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
}

.homepage-reference .top-strip-languages .lang-item:hover {
    background: rgba(255, 255, 255, 0.16);
}

.homepage-reference .top-strip-languages .lang-item.is-active {
    background: rgba(255, 255, 255, 0.24);
    color: #ffffff;
}

.homepage-reference .top-strip-languages .flag {
    font-size: 0.8rem;
    line-height: 1;
}

.homepage-reference .top-strip-contact {
    display: flex;
    gap: 16px;
    flex: 0 0 auto;
}

.homepage-reference .top-strip-contact a {
    color: #d9ecff;
}

.homepage-reference .navbar {
    top: 36px;
}

.homepage-reference .hero-slider {
    display: block;
    width: 100%;
    margin-top: var(--header-offset-desktop);
    padding: 0;
    height: clamp(380px, 58vh, 620px);
    position: relative;
}

.homepage-reference .hero-slider::before,
.homepage-reference .hero-slider::after,
.homepage-reference .hero-slider .container::before,
.homepage-reference .hero-slider .container::after {
    content: none;
    display: none;
}

.homepage-reference .hero-slides {
    position: relative;
    width: 100%;
    height: 100%;
}

.homepage-reference .hero-slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: #0b2c48;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.55s ease;
    pointer-events: none;
}

.homepage-reference .hero-slide.is-active {
    display: flex;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.homepage-reference .hero-slide::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(106deg, rgba(7, 27, 47, 0.42) 0%, rgba(11, 53, 85, 0.32) 45%, rgba(12, 112, 125, 0.24) 100%);
    z-index: 1;
}

.homepage-reference .slide-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    z-index: 0;
}

/* Keep 4th slide image fully visible (no crop) */
.homepage-reference .hero-slide.slide-4 {
    background: #0b2c48 url('../assets/hii.png') center center / cover no-repeat;
}

.homepage-reference .hero-slide.slide-4 .slide-bg {
    object-fit: contain;
    object-position: center center;
}

.homepage-reference .hero-slide.slide-4::before {
    background: linear-gradient(106deg, rgba(7, 27, 47, 0.36) 0%, rgba(11, 53, 85, 0.26) 45%, rgba(12, 112, 125, 0.2) 100%);
}

@media (min-width: 993px) {
    .homepage-reference .slide-bg {
        object-position: center 42%;
    }
}

.homepage-reference .hero-slide .container {
    position: relative;
    z-index: 2;
}

.homepage-reference .hero-slide .container {
    padding-top: 136px;
    padding-bottom: 56px;
    width: 100%;
}

.homepage-reference .slide-copy {
    position: relative;
    max-width: 760px;
    z-index: 3;
    color: #ffffff;
}

.homepage-reference .slide-kicker {
    display: inline-block;
    margin-bottom: 12px;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #e8fbff;
    background: rgba(9, 40, 62, 0.56);
    border: 1px solid rgba(166, 234, 242, 0.48);
    backdrop-filter: blur(4px);
}

.homepage-reference .slide-copy h1,
.homepage-reference .slide-copy h2 {
    margin: 0 0 12px;
    color: #ffffff;
    font-size: clamp(1.35rem, 2.8vw, 2.4rem);
    line-height: 1.2;
    text-shadow: 0 8px 24px rgba(4, 13, 24, 0.45);
}

.homepage-reference .slide-copy p {
    margin: 0 0 18px;
    max-width: 65ch;
    color: rgba(237, 247, 255, 0.96);
    font-size: clamp(0.9rem, 1.6vw, 1.05rem);
    line-height: 1.65;
    text-shadow: 0 5px 16px rgba(4, 13, 24, 0.4);
}

.homepage-reference .slide-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11px 18px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.88rem;
    color: #ffffff;
    background: linear-gradient(120deg, #0e9daa 0%, #1a79b2 100%);
    border: 1px solid rgba(255, 255, 255, 0.35);
    box-shadow: 0 10px 24px rgba(12, 101, 146, 0.38);
}

.homepage-reference .slide-copy > * {
    opacity: 0;
    transform: translateY(16px);
}

.homepage-reference .hero-slide.is-active .slide-copy .slide-kicker {
    animation: slideTextIn 0.52s ease forwards;
}

.homepage-reference .hero-slide.is-active .slide-copy h1,
.homepage-reference .hero-slide.is-active .slide-copy h2 {
    animation: slideTextIn 0.64s ease 0.12s forwards;
}

.homepage-reference .hero-slide.is-active .slide-copy p {
    animation: slideTextIn 0.66s ease 0.24s forwards;
}

.homepage-reference .hero-slide.is-active .slide-copy .slide-cta {
    animation: slideTextIn 0.62s ease 0.36s forwards;
}

@keyframes slideTextIn {
    from {
        opacity: 0;
        transform: translateY(16px);
        filter: blur(2px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

.homepage-reference .slider-controls {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    pointer-events: none;
    z-index: 3;
}

.homepage-reference .slider-arrow {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.48);
    background: rgba(12, 37, 62, 0.45);
    color: #ffffff;
    font-size: 1.2rem;
    line-height: 1;
    pointer-events: auto;
    cursor: pointer;
}

.homepage-reference .slider-arrow:hover {
    background: rgba(255, 255, 255, 0.18);
}

.homepage-reference .slider-dots {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    z-index: 3;
}

.homepage-reference .slider-dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    border: 0;
    background: rgba(255, 255, 255, 0.48);
    cursor: pointer;
}

.homepage-reference .slider-dot.is-active {
    background: #ffffff;
    transform: scale(1.18);
}

@media (max-width: 992px) {
    .homepage-reference .top-strip {
        display: none;
    }

    .homepage-reference .navbar {
        top: 0;
    }

    .homepage-reference .hero-slider,
    .homepage-reference .hero-slides {
        height: clamp(260px, 46vh, 420px);
    }

    .homepage-reference .hero-slider {
        margin-top: var(--header-offset-mobile);
    }

    .homepage-reference .slide-bg { object-position: center center; }

    .homepage-reference .hero-slide .container {
        padding-top: 56px;
        padding-bottom: 42px;
    }

    .homepage-reference .slide-copy {
        max-width: 90%;
        background: rgba(8, 34, 54, 0.46);
        border-radius: 12px;
        padding: 10px 12px;
    }

    .homepage-reference .slide-kicker {
        font-size: 0.64rem;
        margin-bottom: 6px;
        letter-spacing: 0.04em;
        padding: 4px 8px;
    }

    .homepage-reference .slide-copy h1,
    .homepage-reference .slide-copy h2 {
        font-size: clamp(0.95rem, 4.2vw, 1.2rem);
        margin-bottom: 6px;
        line-height: 1.3;
    }

    .homepage-reference .slide-copy p {
        display: none;
    }

    .homepage-reference .slide-cta {
        font-size: 0.7rem;
        padding: 7px 12px;
    }
}

@media (max-width: 576px) {
    .homepage-reference .hero-slider,
    .homepage-reference .hero-slides {
        height: clamp(220px, 38vh, 320px);
    }

    .homepage-reference .slider-arrow {
        width: 38px;
        height: 38px;
        font-size: 1rem;
    }

    .homepage-reference .hero-slide .container {
        padding-top: 46px;
        padding-bottom: 34px;
    }

    .homepage-reference .slide-copy {
        max-width: 92%;
        padding: 8px 10px;
    }

    .homepage-reference .slide-kicker {
        font-size: 0.6rem;
        margin-bottom: 5px;
    }

    .homepage-reference .slide-copy h1,
    .homepage-reference .slide-copy h2 {
        font-size: 0.9rem;
        margin-bottom: 6px;
    }
}

/* Final logo sizing override for clarity (desktop + mobile) */
.navbar .logo img {
    height: 94px !important;
    width: auto !important;
    object-fit: contain !important;
}

.brand {
    gap: 2px !important;
    align-items: center !important;
}

.navbar .container {
    padding-top: 6px !important;
    padding-bottom: 6px !important;
}

.navbar .brand::after {
    border-left: 2px solid rgba(18, 163, 171, 0.45);
    padding-left: 10px;
    font-size: 0.72rem;
    font-weight: 900;
    line-height: 1.25;
    color: #1f4964;
}

.logo-line {
    display: none !important;
}

@media (max-width: 992px) {
    .navbar .brand::after {
        display: block;
        max-width: 190px;
        font-size: 0.56rem;
        line-height: 1.2;
        padding-left: 8px;
        font-weight: 800;
    }

    .navbar .container {
        padding-top: 4px !important;
        padding-bottom: 4px !important;
    }

    .navbar .logo img {
        height: 80px !important;
    }
}

@media (max-width: 576px) {
    .navbar .brand::after {
        max-width: 170px;
        font-size: 0.52rem;
        line-height: 1.16;
        padding-left: 7px;
    }

    .navbar .logo img {
        height: 82px !important;
    }

    .brand {
        max-width: calc(100vw - 76px) !important;
    }
}

/* Global white navbar (all pages) */
.navbar,
.navbar.scrolled {
    background: #ffffff !important;
}

/* About dropdown */
.nav-item-has-dropdown {
    position: relative;
}

.nav-item-has-dropdown > .nav-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.nav-item-has-dropdown > .nav-link::after {
    content: "";
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 7px solid currentColor;
    transform: translateY(1px);
    transition: transform 0.22s ease;
}

.nav-item-has-dropdown:hover > .nav-link::after,
.nav-item-has-dropdown:focus-within > .nav-link::after,
.nav-item-has-dropdown.open > .nav-link::after {
    transform: rotate(180deg) translateY(1px);
}

.nav-item-has-dropdown > .dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    min-width: 280px;
    padding: 10px;
    margin: 0;
    background: #ffffff;
    border: 1px solid #d7e5f0;
    border-radius: 12px;
    box-shadow: 0 16px 34px rgba(15, 61, 79, 0.16);
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px) scale(0.98);
    transform-origin: top left;
    transition: opacity 0.24s ease, transform 0.26s ease, visibility 0.24s ease;
    z-index: 1200;
}

.nav-item-has-dropdown:hover > .dropdown-menu,
.nav-item-has-dropdown:focus-within > .dropdown-menu,
.nav-item-has-dropdown.open > .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.dropdown-menu li {
    width: 100%;
}

.dropdown-submenu {
    margin: 0;
    padding: 0;
    list-style: none;
}

.dropdown-nested {
    position: relative;
}

.dropdown-nested > .submenu-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.dropdown-nested > .submenu-toggle::after {
    content: "";
    width: 0;
    height: 0;
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
    border-left: 6px solid currentColor;
    opacity: 0.8;
    transition: transform 0.22s ease;
}

@media (min-width: 769px) {
    .dropdown-nested > .dropdown-submenu {
        position: absolute;
        top: 0;
        left: calc(100% + 8px);
        min-width: 240px;
        padding: 8px;
        background: #ffffff;
        border: 1px solid #d7e5f0;
        border-radius: 12px;
        box-shadow: 0 16px 34px rgba(15, 61, 79, 0.16);
        opacity: 0;
        visibility: hidden;
        transform: translateX(8px) scale(0.98);
        transform-origin: top left;
        transition: opacity 0.22s ease, transform 0.24s ease, visibility 0.22s ease;
        z-index: 1202;
    }

    .dropdown-nested:hover > .dropdown-submenu,
    .dropdown-nested:focus-within > .dropdown-submenu,
    .dropdown-nested.open > .dropdown-submenu {
        opacity: 1;
        visibility: visible;
        transform: translateX(0) scale(1);
    }

    .dropdown-nested:hover > .submenu-toggle::after,
    .dropdown-nested:focus-within > .submenu-toggle::after,
    .dropdown-nested.open > .submenu-toggle::after {
        transform: rotate(90deg);
    }
}

.dropdown-menu a {
    display: block;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 0.86rem;
    font-weight: 600;
    color: #24435d;
}

.dropdown-menu a:hover {
    background: #edf5fc;
    color: #0f4f83;
}

/* Desktop: keep navbar interactions consistent with homepage look */
@media (min-width: 769px) {
    .nav-menu {
        flex-wrap: nowrap;
        gap: 4px;
    }

    .nav-menu li {
        flex: 0 0 auto;
    }

    .nav-menu .nav-link {
        color: #3b546c;
        border-radius: 8px;
        text-transform: none;
        letter-spacing: 0;
        font-weight: 600;
        font-size: 0.8rem;
        padding: 10px 12px;
        white-space: nowrap;
        line-height: 1.1;
        transition: background-color 0.22s ease, color 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease;
    }

    .nav-menu .nav-link:hover,
    .nav-menu .nav-link.active {
        background: #ecf4fb;
        color: #1c4f7e;
        transform: translateY(-1px);
        box-shadow: 0 6px 16px rgba(15, 61, 79, 0.12);
    }
}

@media (max-width: 768px) {
    .nav-menu {
        padding: 18px !important;
        gap: 8px;
    }

    .nav-menu li {
        width: 100%;
    }

    .nav-menu .nav-link {
        display: flex !important;
        width: 100%;
        justify-content: space-between;
        align-items: center;
        text-align: left;
        padding: 12px 14px !important;
        border-radius: 10px;
        background: #f4f8fc;
        border: 1px solid #d7e5f0;
        color: #1d405d;
    }

    .nav-menu .nav-link:hover,
    .nav-menu .nav-link.active {
        background: #eaf3fb;
        color: #0f4f83;
    }

    .nav-item-has-dropdown > .nav-link {
        display: flex;
        width: 100%;
        justify-content: space-between;
        text-align: left;
        padding: 12px 14px !important;
        border-radius: 10px;
        background: #f4f8fc;
        border: 1px solid #d7e5f0;
        color: #1d405d;
    }

    .nav-item-has-dropdown > .nav-link::after {
        border-left-width: 6px;
        border-right-width: 6px;
        border-top-width: 8px;
    }

    .nav-item-has-dropdown > .dropdown-menu {
        position: static;
        min-width: 100%;
        margin-top: 8px;
        padding: 0;
        border-radius: 10px;
        border: 1px solid #d7e5f0;
        box-shadow: none;
        max-height: 0;
        overflow: hidden;
        opacity: 1;
        visibility: visible;
        transform: none;
        transition: max-height 0.28s ease;
    }

    .nav-item-has-dropdown.open > .dropdown-menu {
        max-height: 320px;
        padding: 8px;
    }

    .nav-item-has-dropdown .dropdown-menu a {
        text-align: left;
        padding: 11px 12px;
    }

    .dropdown-nested > .submenu-toggle {
        border: 1px solid #d7e5f0;
        background: #f7fbff;
    }

    .dropdown-nested > .submenu-toggle::after {
        border-top: 6px solid currentColor;
        border-left: 5px solid transparent;
        border-right: 5px solid transparent;
        border-bottom: 0;
        transform: none;
    }

    .dropdown-nested > .dropdown-submenu {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.26s ease;
        padding: 0;
    }

    .dropdown-nested.open > .dropdown-submenu {
        max-height: 220px;
        padding: 6px 0 2px;
    }

    .dropdown-nested.open > .submenu-toggle::after {
        transform: rotate(180deg);
    }
}

/* Company operation profile card */
.profile-feature-card {
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 30px;
    align-items: stretch;
    background: linear-gradient(140deg, #ffffff 0%, #f2f8fd 100%);
    border: 1px solid #d7e5f0;
    border-radius: 18px;
    box-shadow: 0 18px 36px rgba(15, 61, 79, 0.13);
    overflow: hidden;
}

.profile-feature-card + .profile-feature-card {
    margin-top: 34px;
}

.profile-feature-image {
    position: relative;
    min-height: 420px;
    overflow: hidden;
}

.profile-feature-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(9, 36, 60, 0.24), rgba(9, 36, 60, 0));
}

.profile-feature-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    transform: scale(1.02);
    transition: transform 0.5s ease;
}

.profile-feature-card:hover .profile-feature-image img {
    transform: scale(1.08);
}

.profile-feature-content {
    padding: 36px 36px 34px 16px;
}

.profile-feature-content h3 {
    margin-bottom: 8px;
    color: #0f3558;
}

.profile-feature-content h4 {
    margin-bottom: 16px;
    color: #11758e;
    font-size: 1.02rem;
    font-weight: 700;
}

.profile-feature-content p {
    margin-bottom: 12px;
    color: #32536c;
}

.management-tabs {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0 auto 28px;
    padding: 8px;
    border: 1px solid #d7e5f0;
    border-radius: 999px;
    background: #f5f9fd;
}

.management-tab {
    border: 0;
    background: transparent;
    color: #2e4d67;
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 700;
    padding: 10px 16px;
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.management-tab.is-active {
    background: linear-gradient(120deg, #0f4f83 0%, #1394a2 100%);
    color: #ffffff;
    box-shadow: 0 8px 20px rgba(15, 79, 131, 0.28);
}

.management-panel {
    display: none;
}

.management-panel.is-active {
    display: block;
}

@media (max-width: 992px) {
    .profile-feature-card {
        grid-template-columns: 1fr;
    }

    .profile-feature-image {
        min-height: 340px;
    }

    .profile-feature-content {
        padding: 26px 22px 22px;
    }

    .profile-feature-card + .profile-feature-card {
        margin-top: 24px;
    }

    .management-tabs {
        width: 100%;
        border-radius: 14px;
        padding: 8px;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .management-tab {
        width: 100%;
        padding: 10px 10px;
        font-size: 0.82rem;
    }
}

/* Mission/Vision readability and premium treatment */
.homepage-reference .mission-vision .mv-box,
.vision-page .mv-box {
    position: relative;
    overflow: hidden;
    background: linear-gradient(155deg, #ffffff 0%, #f4f9fd 100%) !important;
    border: 1px solid #d5e6f3 !important;
    border-radius: 16px;
    box-shadow: 0 16px 34px rgba(15, 61, 79, 0.12);
}

.homepage-reference .mission-vision .mv-box::before,
.vision-page .mv-box::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #0f4f83 0%, #12a3ab 100%);
}

.homepage-reference .mission-vision .mv-box h3,
.vision-page .mv-box h3 {
    color: #103c62 !important;
}

.homepage-reference .mission-vision .mv-box p,
.vision-page .mv-box p {
    color: #2f4e65 !important;
    font-weight: 500;
}

.homepage-reference .mission-vision .mv-box h3 svg,
.vision-page .mv-box h3 svg {
    fill: #1394a2 !important;
}

.homepage-reference .mission-vision .mv-box:hover,
.vision-page .mv-box:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 40px rgba(15, 61, 79, 0.16);
}

/* Final lock: About hero image fit */
.page-hero.about-page-hero {
    min-height: clamp(240px, 42vh, 420px) !important;
    padding: 0 !important;
    display: flex !important;
    align-items: stretch !important;
    background: none !important;
    margin-top: 96px !important;
    overflow: hidden;
}

.page-hero.about-page-hero::before,
.page-hero.about-page-hero::after {
    content: none !important;
    display: none !important;
}

.about-page-hero .about-hero-image {
    width: 100%;
    max-width: none;
    margin: 0;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
}

@media (min-width: 992px) {
    .page-hero.about-page-hero {
        margin-top: 88px !important;
        height: clamp(320px, 48vh, 520px) !important;
        min-height: 0 !important;
        background: transparent !important;
    }

    .about-page-hero .about-hero-image {
        height: 100% !important;
        object-fit: cover !important;
        object-position: center 35% !important;
        transform: none !important;
        background: transparent !important;
    }
}

@media (max-width: 768px) {
    .page-hero.about-page-hero {
        min-height: clamp(190px, 32vh, 280px) !important;
        margin-top: 74px !important;
    }
}

/* FINAL ABOUT HERO RESET */
.page-hero.about-page-hero {
    margin-top: 88px !important;
    padding: 0 !important;
    min-height: 0 !important;
    height: auto !important;
    display: block !important;
    background: none !important;
    overflow: hidden !important;
}

.page-hero.about-page-hero::before,
.page-hero.about-page-hero::after {
    content: none !important;
    display: none !important;
}

.about-page-hero .about-hero-image {
    width: 100% !important;
    height: auto !important;
    max-height: none !important;
    object-fit: unset !important;
    object-position: unset !important;
    margin: 0 !important;
    display: block !important;
    transform: none !important;
}

@media (max-width: 768px) {
    .page-hero.about-page-hero {
        margin-top: 74px !important;
    }
}

@media (min-width: 992px) {
    .page-hero.about-page-hero {
        height: 500px !important;
    }

    .about-page-hero .about-hero-image {
        height: 100% !important;
        object-fit: cover !important;
        object-position: center center !important;
    }
}

/* ABOUT HERO FORCE SHOW */
.page-hero.about-page-hero {
    position: relative !important;
    margin-top: 88px !important;
    background: #0b2d3d !important;
    overflow: hidden !important;
}

.page-hero.about-page-hero .about-hero-image {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center center !important;
    display: block !important;
}

@media (max-width: 768px) {
    .page-hero.about-page-hero {
        height: auto !important;
        margin-top: 74px !important;
        background: transparent !important;
    }

    .page-hero.about-page-hero .about-hero-image {
        position: static !important;
        width: 100% !important;
        height: auto !important;
        object-fit: unset !important;
    }
}

/* About banner (simple and reliable) */
.about-banner {
    margin-top: 88px;
    background: #ffffff;
    position: relative;
    overflow: hidden;
}

.about-banner .about-hero-image {
    width: 100%;
    height: auto;
    display: block;
}

.about-banner-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 0 0 22px;
    pointer-events: none;
    background: linear-gradient(to top, rgba(5, 20, 34, 0.38), rgba(5, 20, 34, 0.08) 55%, rgba(5, 20, 34, 0));
}

@media (min-width: 769px) {
    .about-banner-overlay {
        padding-bottom: 108px;
    }
}

.about-banner-overlay h1 {
    margin: 0;
    color: transparent;
    font-size: clamp(1.45rem, 3vw, 2.35rem);
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: none;
    padding: 10px 20px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 14px;
    background: rgba(11, 36, 58, 0.3);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    background: linear-gradient(112deg, #f7f9fb 0%, #b7bec7 26%, #f1f4f7 48%, #949ca6 73%, #eff3f7 100%);
    background-size: 220% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    text-shadow: 0 0 14px rgba(206, 216, 227, 0.18), 0 7px 20px rgba(3, 11, 19, 0.52);
    position: relative;
    animation: aboutTitleReveal 0.55s ease-out both, metallicShift 6s linear infinite, smokyFloat 5.2s ease-in-out infinite;
}

.about-banner-overlay h1::after {
    content: attr(data-text);
    position: absolute;
    inset: 0;
    color: transparent;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.56) 52%, rgba(255, 255, 255, 0) 100%);
    background-size: 180% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    opacity: 0.55;
    animation: metallicSweep 3.6s ease-in-out infinite;
    pointer-events: none;
}

@keyframes aboutTitleReveal {
    0% {
        opacity: 0;
        transform: translateY(24px) scale(0.96);
        filter: blur(2px);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

@keyframes metallicShift {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

@keyframes metallicSweep {
    0% { background-position: -140% 50%; opacity: 0; }
    25% { opacity: 0.6; }
    60% { background-position: 130% 50%; opacity: 0.5; }
    100% { background-position: 130% 50%; opacity: 0; }
}

@keyframes smokyFloat {
    0%, 100% {
        transform: translateY(0);
        text-shadow: 0 0 14px rgba(206, 216, 227, 0.18), 0 7px 20px rgba(3, 11, 19, 0.52);
    }
    50% {
        transform: translateY(-3px);
        text-shadow: 0 0 22px rgba(210, 220, 232, 0.26), 0 10px 24px rgba(3, 11, 19, 0.58);
    }
}

@media (max-width: 768px) {
    .about-banner {
        margin-top: 74px;
    }

    .about-banner-overlay {
        align-items: flex-end;
        justify-content: center;
        padding: 0 12px 12px;
        background: linear-gradient(to top, rgba(5, 20, 34, 0.44), rgba(5, 20, 34, 0.06) 55%, rgba(5, 20, 34, 0));
    }

    .about-banner-overlay h1 {
        font-size: 1.15rem;
        letter-spacing: 0.06em;
        padding: 8px 14px;
    }
}

/* Allied business hero image banner */
.allied-banner {
    margin-top: 88px;
    background: #ffffff;
    position: relative;
    overflow: hidden;
}

.allied-banner .allied-hero-image {
    width: 100%;
    height: auto;
    display: block;
}

@media (max-width: 768px) {
    .allied-banner {
        margin-top: 74px;
    }
}

@media (min-width: 769px) {
    .allied-banner .about-banner-overlay {
        padding-bottom: 40px;
    }
}

@media (max-width: 768px) {
    .allied-banner .about-banner-overlay {
        padding-bottom: 6px;
    }

    .allied-banner .about-banner-overlay h1 {
        font-size: 0.88rem;
        padding: 5px 10px;
    }
}

/* Present clientele page */
.clientele-section {
    background: linear-gradient(180deg, #f8fcff 0%, #f2f8fd 100%);
}

.clientele-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
}

.clientele-card {
    background: #ffffff;
    border: 1px solid #d7e5f0;
    border-radius: 16px;
    box-shadow: 0 12px 26px rgba(15, 61, 79, 0.11);
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.clientele-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 34px rgba(15, 61, 79, 0.17);
}

.clientele-card img {
    width: 100%;
    aspect-ratio: 16 / 10;
    height: auto;
    object-fit: contain;
    background: #eef4f8;
    display: block;
}

.clientele-card h4 {
    margin: 14px 16px 6px;
    color: #153f64;
    font-size: 1.02rem;
}

.clientele-card p {
    margin: 0 16px 10px;
    color: #38556d;
    font-size: 0.92rem;
}

.clientele-card p:last-child {
    margin-bottom: 16px;
    color: #1e5f82;
    font-weight: 600;
}

@media (max-width: 992px) {
    .clientele-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .clientele-grid {
        grid-template-columns: 1fr;
    }

    .clientele-card img {
        aspect-ratio: 4 / 3;
        height: auto;
    }
}
    /* 
height: 380px;
    object-fit: contain;
    object-position: center;
    border-radius: var(--radius-xl);
    display: block;
    transition: transform 0.4s ease;
}

@media (max-width: 768px) {
    .credential-image {
        height: 340px;
    }
}

.services-grid:has(.credential-image) .service-card:nth-child(3) {
    min-height: 380px;
}

@media (max-width: 768px) {
    .services-grid:has(.credential-image) .service-card:nth-child(3) {
        min-height: 340px;
    }
}

.service-card:has(.credential-image) {
    height: 100%;
    min-height: 460px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.service-card:has(.credential-image):hover .credential-image {
    transform: scale(1.06);
    filter: saturate(1.1) contrast(1.05);
}

/* Philosophy quote - black text + responsive align */
.philosophy-quote-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

.philosophy-quote-main {
    font-size: clamp(1.1rem, 2.4vw, 1.3rem);
    line-height: 1.75;
    margin-bottom: clamp(20px, 3vw, 30px);
}

.philosophy-quote-sub {
    font-size: clamp(0.95rem, 2vw, 1.1rem);
}

/* Fix CSS errors around credentials */
.services-grid:has(.credential-image) .service-card:nth-child(3) {
    min-height: 380px;
}

@media (max-width: 768px) {
    .services-grid:has(.credential-image) .service-card:nth-child(3) {
        min-height: 340px;
    }
}

/* Credentials images - full card fit, no crop */
.credential-image {
    width: 100%;
    height: 380px;
    object-fit: contain;
    object-position: center;
    border-radius: var(--radius-xl);
    display: block;
    transition: transform 0.4s ease, filter 0.4s ease;
}

@media (max-width: 768px) {
    .credential-image {
        height: 340px;
    }
}

.services-grid .service-card:nth-child(3) {
    min-height: 380px;
}

@media (max-width: 768px) {
    .services-grid .service-card:nth-child(3) {
        min-height: 340px;
    }
}

.service-card:has(.credential-image) {
    height: 100%;
    min-height: 460px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.service-card:has(.credential-image):hover .credential-image {
    transform: scale(1.06);
    filter: saturate(1.1) contrast(1.05);
}

/* Philosophy black text */
.philosophy-section p {
    color: var(--text-primary) !important;
}

@media (max-width: 768px) {
    .philosophy-section p {
        font-size: clamp(0.95rem, 4vw, 1.05rem);
    }
}

/* temp-write-check */

/* Careers page */
.careers-page-hero .page-hero-content {
    max-width: 900px;
}

.careers-layout {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 28px;
    align-items: start;
}

.careers-intro h2 {
    margin-bottom: 10px;
}

.careers-intro p {
    margin-bottom: 18px;
}

.career-posters {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin: 0 0 20px;
    max-width: 100%;
}

.career-poster-card {
    margin: 0;
    border: 1px solid #d7e5f0;
    border-radius: 16px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 12px 24px rgba(15, 61, 79, 0.1);
    padding: 10px;
}

.career-poster-card img {
    width: 100%;
    height: auto;
    max-height: clamp(420px, 52vw, 760px);
    object-fit: contain;
    object-position: center;
    background: #f3f8fc;
    border-radius: 10px;
}

.career-poster-card.is-wide {
    grid-column: span 1;
}

.career-block {
    background: #ffffff;
    border: 1px solid #d7e5f0;
    border-radius: 16px;
    box-shadow: 0 12px 24px rgba(15, 61, 79, 0.1);
    padding: 18px 18px 14px;
    margin-bottom: 16px;
}

.career-block h3 {
    margin-bottom: 10px;
    font-size: 1.1rem;
    color: #12466a;
}

.career-block ol,
.career-block ul {
    margin: 0 0 10px 18px;
}

.career-block li {
    margin-bottom: 8px;
    color: #2a4c64;
}

.career-pay {
    margin-bottom: 0;
    font-weight: 700;
    color: #0f5b84;
}

.career-contact-line {
    margin-bottom: 6px;
}

.career-apply-card {
    background: #ffffff;
    border: 1px solid #d7e5f0;
    border-radius: 16px;
    box-shadow: 0 14px 28px rgba(15, 61, 79, 0.12);
    padding: 20px 18px;
    position: sticky;
    top: 118px;
}

.career-apply-card h3 {
    margin-bottom: 8px;
}

.career-apply-card > p {
    margin-bottom: 14px;
    color: #47657a;
}

.career-apply-form .btn {
    width: 100%;
}

@media (max-width: 992px) {
    .careers-layout {
        grid-template-columns: 1fr;
    }

    .career-posters {
        grid-template-columns: 1fr;
        max-width: 100%;
    }

    .career-poster-card.is-wide {
        grid-column: span 1;
    }

    .career-poster-card img {
        height: auto;
        max-height: 85vh;
    }

    .career-apply-card {
        position: static;
    }
}

/* Final desktop navbar no-wrap fix */
@media (min-width: 769px) {
    .navbar .container {
        gap: 8px;
    }

    .navbar .brand {
        max-width: 360px !important;
        flex: 0 0 auto;
    }

    .navbar .brand::after {
        max-width: 210px;
        font-size: 0.58rem;
    }

    .navbar .nav-menu {
        flex-wrap: nowrap !important;
        justify-content: flex-end;
        gap: 2px !important;
        min-width: 0;
    }

    .navbar .nav-menu li {
        flex: 0 0 auto;
    }

    .navbar .nav-menu .nav-link {
        white-space: nowrap !important;
        font-size: 0.75rem !important;
        line-height: 1.05 !important;
        padding: 9px 10px !important;
    }
}
