/* CSS Variables */
:root {
    --primary-navy: #0f172a; /* Deep Navy Blue */
    --accent-purple: #9333ea;
    --accent-blue: #3b82f6;
    --accent-teal: #2dd4bf;
    --accent-gold: #d97706;
    --bg-white: #ffffff;
    --bg-offwhite: #f8fafc;
    --text-main: #334155;
    --text-muted: #64748b;
    --shadow-soft: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.01);
    --shadow-glow: 0 10px 25px -5px rgba(147, 51, 234, 0.15), 0 8px 10px -6px rgba(45, 212, 191, 0.15);
    --gradient-spectrum: linear-gradient(135deg, var(--accent-purple), var(--accent-blue), var(--accent-teal));
    --transition-standard: all 0.3s ease;
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    /* Vibrant, elegant linear gradient to give the background a premium feel */
    background: linear-gradient(135deg, rgba(235, 248, 255, 0.6) 0%, rgba(243, 232, 255, 0.6) 100%);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Ensure icons align perfectly with text */
.btn-primary .icon, 
.btn-secondary-outline .icon {
    display: inline-flex;
    align-items: center;
}

.badge-icon {
    color: var(--accent-teal);
    display: flex;
    align-items: center;
}

.prog-icon {
    color: var(--accent-purple);
    display: flex;
    align-items: center;
}
/* Make all sections transparent so the beautiful body gradient shows through */
.features, .ecosystem, .leadership, .our-story, .vision-mission, .services-section, .ceo-highlight, .team-section, .contact-section {
    background-color: transparent !important;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-standard);
}

ul {
    list-style: none;
}

.container {
    width: 95%; /* Use almost the full width of the screen */
    max-width: 1600px; /* Expand the limit to keep it wide on big monitors */
    margin: 0 auto;
    padding: 0 2rem;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    color: var(--primary-navy);
    font-weight: 700;
    line-height: 1.2;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--gradient-spectrum);
    border-radius: 2px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-standard);
    text-align: center;
}

.btn-primary {
    background: var(--gradient-spectrum);
    color: var(--bg-white);
    border: none;
    box-shadow: 0 4px 15px rgba(147, 51, 234, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(45, 212, 191, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-navy);
    border: 2px solid var(--primary-navy);
}

.btn-secondary:hover {
    border-color: var(--accent-purple);
    color: var(--accent-purple);
}

.btn-outline-gold {
    background: transparent;
    color: var(--accent-gold);
    border: 2px solid var(--accent-gold);
    margin-top: 1.5rem;
}

.btn-outline-gold:hover {
    background: var(--accent-gold);
    color: var(--bg-white);
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    /* Fully invisible at the top so only the logo and links show */
    background: transparent;
    border-bottom: 1px solid transparent;
    z-index: 1000;
    transition: var(--transition-standard);
    padding: 0.3rem 0; /* Slimmed down padding */
}
/* --- Section Background Gradients --- */
/* Automatically applies soft gradients to alternating sections */

section:nth-of-type(even) {
    background: linear-gradient(135deg, rgba(243, 232, 255, 0.3) 0%, rgba(224, 251, 245, 0.4) 100%);
}

section:nth-of-type(odd):not(:first-of-type) {
    background: linear-gradient(135deg, rgba(235, 248, 255, 0.3) 0%, rgba(245, 235, 255, 0.3) 100%);
}

nav.scrolled {
    /* Gradient glass background on scroll */
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(243, 232, 255, 0.85) 50%, rgba(224, 251, 245, 0.85) 100%);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: var(--shadow-soft);
    padding: 0.2rem 0; /* Ultra-slim when scrolled */
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1600px;
    width: 95%;
    margin: 0 auto;
    padding: 0 2rem;
}

.logo {
    flex-shrink: 0;
    margin-right: 1.5rem;
}

.logo img {
    height: 55px !important; /* Keeps the physical navbar height thin */
    width: auto !important;
    transform: scale(1.8); /* Visually magnifies the logo by 80% */
    transform-origin: left center; /* Keeps it anchored properly to the left side */
    margin-left: 15px; /* Gives the scaled logo a little breathing room */
}

.nav-links {
    display: flex;
    gap: 1.2rem;
    align-items: center;
}

.nav-links a {
    color: var(--primary-navy);
    font-weight: 500;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-spectrum);
    transition: var(--transition-standard);
}

.nav-links a:hover, .nav-links a.active {
    color: var(--accent-teal);
}

.nav-links a:hover::after, .nav-links a.active::after {
    width: 100%;
}

/* Nav CTA Buttons */
.nav-links a.nav-cta-link {
    background: var(--gradient-spectrum);
    color: var(--bg-white);
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(147, 51, 234, 0.2);
    transition: var(--transition-standard);
    display: inline-block;
}

.nav-links a.nav-cta-link::after {
    display: none; /* Removes the underline hover effect for these buttons */
}

.nav-links a.nav-cta-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(45, 212, 191, 0.3);
    color: var(--bg-white);
}

/* Make the second button stand out with the teal accent */
.nav-links a.nav-cta-link[href*="BOOK-A-FREE-CONSULTATION"] {
    background: var(--accent-teal);
    box-shadow: 0 4px 15px rgba(45, 212, 191, 0.2);
}

.nav-links a.nav-cta-link[href*="BOOK-A-FREE-CONSULTATION"]:hover {
    background: linear-gradient(135deg, var(--accent-teal), var(--accent-blue));
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--primary-navy);
    transition: var(--transition-standard);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px;
    overflow: hidden;
    background-color: transparent; /* Changed to transparent so it blends perfectly */
    background-image: url('images/hero_dextop.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    /* This creates the smooth fading effect at the bottom */
    -webkit-mask-image: linear-gradient(to bottom, black 75%, transparent 100%);
    mask-image: linear-gradient(to bottom, black 75%, transparent 100%);
}

.hero-bg-mesh {
    display: none; /* Hidden since we are using the new custom art images */
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 50% 50%, rgba(147, 51, 234, 0.4) 0%, transparent 40%),
                radial-gradient(circle at 80% 20%, rgba(45, 212, 191, 0.4) 0%, transparent 40%),
                radial-gradient(circle at 20% 80%, rgba(59, 130, 246, 0.4) 0%, transparent 40%);
    z-index: 0;
    filter: blur(80px);
    animation: rotateMesh 30s linear infinite;
}

@keyframes rotateMesh {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding: 0 2rem;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    background: var(--gradient-spectrum);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* Features Section */
.features {
    padding: 6rem 0;
    background-color: var(--bg-offwhite);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow-soft);
    transition: var(--transition-standard);
    opacity: 0;
    transform: translateY(30px);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-glow);
}

.feature-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.feature-card.visible:hover {
    transform: translateY(-5px);
}

.feature-icon {
    width: 50px;
    height: 50px;
    color: var(--accent-gold);
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

/* Ecosystem Section */
.ecosystem {
    padding: 6rem 0;
    background-color: var(--bg-white);
}

.ecosystem-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.ecosystem-card {
    background: var(--bg-white);
    padding: 2.5rem;
    border-radius: 15px;
    border: 1px solid rgba(0,0,0,0.03);
    box-shadow: var(--shadow-soft);
    transition: var(--transition-standard);
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(30px);
}

.ecosystem-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.ecosystem-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-spectrum);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.ecosystem-card.visible:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-glow);
}

.ecosystem-card.visible:hover::before {
    transform: scaleX(1);
}

.ecosystem-card h3 {
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

/* Leadership Section */
.leadership {
    padding: 6rem 0;
    background-color: var(--bg-offwhite);
}

.leadership-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: flex-start; /* Changed from center to allow the sticky effect to track the column height */
}

.leadership-image {
    position: sticky;
    top: 120px; /* Stops the image below your sticky navbar */
    height: fit-content; /* Tells the image to stop stretching and start sticking */
}

.leadership-text h2.section-title::after {
    left: 0;
    transform: translateX(0);
}

.leadership-text h3 {
    font-size: 1.8rem;
    margin-bottom: 0.2rem;
}

.leadership-text .role {
    color: var(--accent-teal);
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.accent-line {
    width: 60px;
    height: 3px;
    background-color: var(--accent-gold);
    margin-bottom: 1.5rem;
}

.image-placeholder {
    width: 100%;
    padding-bottom: 100%; /* Square aspect ratio */
    background: linear-gradient(135deg, rgba(147, 51, 234, 0.1), rgba(45, 212, 191, 0.1));
    border-radius: 20px;
    position: relative;
}

.image-placeholder::after {
    content: 'Photo Placeholder';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--text-muted);
}

/* Footer */
footer {
    background-color: var(--primary-navy);
    color: var(--bg-white);
    padding: 4rem 0 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr 1.5fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

/* Social media icon row in footer */
.footer-social {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 1.5rem;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #cbd5e1;
    transition: var(--transition-standard);
    flex-shrink: 0;
}

.social-icon:hover {
    background: linear-gradient(135deg, rgba(147, 51, 234, 0.5), rgba(45, 212, 191, 0.5));
    border-color: var(--accent-teal);
    color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(45, 212, 191, 0.3);
}

/* International Footprint block */
.footer-intl {
    margin-top: 1.2rem;
    padding: 0.8rem 1rem;
    border-left: 3px solid var(--accent-teal);
    background: rgba(45, 212, 191, 0.06);
    border-radius: 0 8px 8px 0;
}

.footer-intl-title {
    font-weight: 700 !important;
    color: var(--accent-teal) !important;
    margin-bottom: 0.25rem !important;
    font-size: 0.9rem !important;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-logo {
    height: 60px;
    background: white; /* Temporary background for better visibility of dark text logos */
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 1rem;
    object-fit: contain;
}

.footer-about p {
    color: #cbd5e1;
    margin-top: 1rem;
}

.footer-links h4, .footer-contact h4 {
    color: var(--bg-white);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-links h4::after, .footer-contact h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--accent-teal);
}

.footer-links ul li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: #cbd5e1;
}

.footer-links a:hover {
    color: var(--accent-teal);
    padding-left: 5px;
}

.footer-contact p {
    color: #cbd5e1;
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
}

.footer-bottom {
    background-color: #020617; /* Darker navy */
    text-align: center;
    padding: 1.5rem 0;
    color: #94a3b8;
    font-size: 0.9rem;
}

/* Vibrant Glassmorphism Cards Override */
.feature-card, .ecosystem-card, .vm-card, .team-card, .contact-card, .services-wrapper, .contact-form-wrapper {
    background: rgba(255, 255, 255, 0.65) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(255, 255, 255, 0.8) !important;
    border-bottom: 3px solid var(--accent-purple) !important;
    box-shadow: 0 15px 35px rgba(147, 51, 234, 0.15), 0 5px 15px rgba(45, 212, 191, 0.1) !important;
    transition: var(--transition-standard);
}

.feature-card:hover, .ecosystem-card.visible:hover, .vm-card:hover, .team-card:hover, .contact-card:hover {
    border-bottom: 3px solid var(--accent-teal) !important;
    box-shadow: 0 20px 40px rgba(45, 212, 191, 0.25), 0 10px 20px rgba(59, 130, 246, 0.2) !important;
    transform: translateY(-5px);
}

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

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

/* --- About Us Page Styles --- */

/* Page Header */
.page-header {
    position: relative;
    padding: 120px 0 60px 0;
    background-color: var(--primary-navy);
    background-image: linear-gradient(135deg, rgba(147, 51, 234, 0.85), rgba(45, 212, 191, 0.85)), url('placeholder-header.jpg');
    background-size: cover;
    background-position: center;
    text-align: center;
    color: var(--bg-white);
    min-height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-header h1 {
    color: var(--bg-white);
    font-size: 3.5rem;
    margin: 0;
    position: relative;
    z-index: 1;
}

.relative { position: relative; }
.z-index-1 { z-index: 1; }

.section-padding {
    padding: 6rem 0;
}

/* Our Story Section */
.our-story {
    background-color: var(--bg-offwhite);
}

.story-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.section-title.left-aligned {
    text-align: left;
    margin-bottom: 1.5rem;
}

.section-title.left-aligned::after {
    display: none;
}

.story-text p {
    font-size: 1.1rem;
    color: var(--text-muted);
}

.image-placeholder.landscape {
    padding-bottom: 65%; /* Landscape aspect ratio */
}

/* Vision & Mission Section */
.vision-mission {
    background-color: var(--bg-white);
}

.vm-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.vm-card {
    background: var(--bg-white);
    padding: 3rem;
    border-radius: 15px;
    box-shadow: var(--shadow-soft);
    transition: var(--transition-standard);
    border-top: 4px solid transparent;
}

.vm-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-glow);
}

.vm-card:first-child {
    border-top-color: var(--accent-purple);
}

.vm-card:last-child {
    border-top-color: var(--accent-teal);
}

.vm-icon {
    width: 60px;
    height: 60px;
    color: var(--accent-gold);
    margin-bottom: 1.5rem;
}

.vm-card h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--primary-navy);
}

.vm-card p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

/* Custom Checkmark List */
.mission-list {
    list-style: none;
    padding: 0;
}

.mission-list li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 1rem;
    color: var(--text-muted);
    font-size: 1.1rem;
}

.mission-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 5px;
    width: 20px;
    height: 20px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d97706' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
}

/* --- Services Page Styles --- */
.services-section {
    background-color: var(--bg-offwhite);
}

.services-wrapper {
    display: flex;
    flex-direction: row;
    gap: 3rem;
    background: var(--bg-white);
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
    overflow: hidden;
    min-height: 500px;
}

.services-tabs {
    flex: 0 0 320px;
    background-color: #f1f5f9;
    display: flex;
    flex-direction: column;
    padding: 2rem 0;
}

.tab-btn {
    background: transparent;
    border: none;
    text-align: left;
    padding: 1.2rem 2rem;
    font-size: 1.1rem;
    font-family: inherit;
    font-weight: 500;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition-standard);
    display: flex;
    align-items: center;
    gap: 1rem;
    border-left: 4px solid transparent;
}

.tab-btn .tab-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.6;
    transition: var(--transition-standard);
}

.tab-btn:hover {
    background-color: rgba(147, 51, 234, 0.05);
    color: var(--primary-navy);
}

.tab-btn.active {
    background-color: var(--bg-white);
    color: var(--accent-purple);
    border-left-color: var(--accent-purple);
    font-weight: 600;
    box-shadow: -5px 0 15px rgba(0,0,0,0.02) inset;
}

.tab-btn.active .tab-icon {
    opacity: 1;
    color: var(--accent-purple);
}

.services-content-area {
    flex: 1;
    padding: 3rem 4rem 3rem 1rem;
    position: relative;
}

.tab-pane {
    display: none;
    animation: fadeInTab 0.5s ease;
}

.tab-pane.active {
    display: block;
}

@keyframes fadeInTab {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.tab-pane h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.tab-pane p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
}

.service-list-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.service-item {
    background: var(--bg-offwhite);
    padding: 1.2rem 1.5rem;
    border-radius: 10px;
    border-left: 3px solid var(--accent-teal);
    display: flex;
    align-items: center;
    transition: var(--transition-standard);
}

.service-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 12px rgba(45, 212, 191, 0.1);
    background: var(--bg-white);
}

.service-item span {
    font-weight: 500;
    color: var(--primary-navy);
}

/* --- Leadership Page Styles --- */
.ceo-highlight {
    background-color: var(--bg-white);
}

.ceo-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    align-items: center;
}

.ceo-image-wrapper {
    display: flex;
    justify-content: center;
}

.ceo-image-placeholder {
    width: 100%;
    max-width: 400px;
    aspect-ratio: 1 / 1;
    border-radius: 50%; /* Circular */
    background: linear-gradient(135deg, rgba(217, 119, 6, 0.1), rgba(147, 51, 234, 0.1));
    border: 8px solid var(--bg-offwhite);
    box-shadow: var(--shadow-soft);
    position: relative;
}

.ceo-image-placeholder::after {
    content: 'Photo Placeholder';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--text-muted);
}

.ceo-title-label {
    color: var(--accent-gold);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.ceo-name {
    font-size: 2.2rem;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.ceo-name span {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 400;
    display: block;
    margin-top: 0.2rem;
}

.ceo-bio {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.ceo-bio strong {
    color: var(--primary-navy);
}

.awards-banner {
    background: rgba(217, 119, 6, 0.05);
    border-left: 4px solid var(--accent-gold);
    padding: 2rem;
    border-radius: 0 15px 15px 0;
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.awards-icon {
    width: 40px;
    height: 40px;
    color: var(--accent-gold);
    flex-shrink: 0;
}

.awards-text h3 {
    color: var(--accent-gold);
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
}

.awards-text ul {
    list-style: none;
}

.awards-text ul li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--primary-navy);
    font-weight: 500;
}

.awards-text ul li::before {
    content: '★';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--accent-gold);
}

/* Team Section */
.team-section {
    background-color: var(--bg-offwhite);
}

.team-description {
    max-width: 700px;
    margin: 0 auto 3rem auto;
    font-size: 1.1rem;
    color: var(--text-muted);
}

.text-center {
    text-align: center;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
}

.center-grid {
    display: flex;
    justify-content: center;
}

.team-card {
    background: var(--bg-white);
    padding: 2.5rem 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--shadow-soft);
    transition: var(--transition-standard);
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(217, 119, 6, 0.1);
}

.team-avatar-placeholder {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(147, 51, 234, 0.05), rgba(45, 212, 191, 0.05));
    margin: 0 auto 1.5rem auto;
    position: relative;
    border: 3px solid var(--bg-offwhite);
}

.team-avatar-placeholder::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2'%3E%3C/path%3E%3Ccircle cx='12' cy='7' r='4'%3E%3C/circle%3E%3C/svg%3E");
    background-size: cover;
    opacity: 0.5;
}

.team-card h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--primary-navy);
}

.team-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.placeholder-card {
    border: 1px dashed rgba(217, 119, 6, 0.3);
}

/* --- Contact Page Styles --- */
.contact-section {
    background-color: var(--bg-offwhite);
}

.contact-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    margin-bottom: 5rem;
}

.contact-card {
    background: var(--bg-white);
    padding: 3rem 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--shadow-soft);
    transition: var(--transition-standard);
    border-top: 4px solid transparent;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-glow);
}

.contact-card:nth-child(1) { border-top-color: var(--accent-purple); }
.contact-card:nth-child(2) { border-top-color: var(--accent-blue); }
.contact-card:nth-child(3) { border-top-color: var(--accent-teal); }

.contact-icon {
    width: 50px;
    height: 50px;
    margin: 0 auto 1.5rem auto;
}

.contact-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--primary-navy);
}

.contact-card p {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.6;
}

.contact-form-wrapper {
    background: var(--bg-white);
    padding: 4rem;
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
    max-width: 900px;
    margin: 0 auto;
}

.form-header {
    text-align: center;
    margin-bottom: 3rem;
}

.form-header h2 {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
}

.form-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 600;
    color: var(--primary-navy);
    font-size: 0.95rem;
}

.form-control {
    width: 100%;
    padding: 1rem 1.2rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background-color: var(--bg-white);
    color: var(--text-main);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition-standard);
    outline: none;
}

.form-control::placeholder {
    color: #94a3b8;
}

.form-control:focus {
    border-color: transparent;
    box-shadow: 0 0 0 2px var(--accent-purple), 0 0 15px rgba(45, 212, 191, 0.2);
}

/* Custom Checkboxes and Radios */
.form-group input[type="checkbox"]:not(.hidden),
.form-group input[type="radio"] {
    appearance: none;
    -webkit-appearance: none;
    width: 22px;
    height: 22px;
    border: 2px solid #cbd5e1;
    border-radius: 6px;
    background-color: var(--bg-white);
    display: inline-block;
    position: relative;
    cursor: pointer;
    transition: var(--transition-standard);
    flex-shrink: 0;
}

/* Make radio buttons circular */
.form-group input[type="radio"] {
    border-radius: 50%;
}

/* Checked State */
.form-group input[type="checkbox"]:not(.hidden):checked,
.form-group input[type="radio"]:checked {
    background-color: var(--accent-purple);
    border-color: var(--accent-purple);
    box-shadow: 0 2px 8px rgba(147, 51, 234, 0.3);
}

/* Checkbox Checkmark */
.form-group input[type="checkbox"]:not(.hidden):checked::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 7px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* Radio Button Dot */
.form-group input[type="radio"]:checked::after {
    content: '';
    position: absolute;
    top: 5px;
    left: 5px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: white;
}

/* Custom Date and Time Picker Icons */
input[type="date"]::-webkit-calendar-picker-indicator,
input[type="time"]::-webkit-calendar-picker-indicator {
    background-color: rgba(45, 212, 191, 0.1);
    padding: 6px;
    cursor: pointer;
    border-radius: 6px;
    color: var(--accent-purple);
    transition: var(--transition-standard);
}

input[type="date"]::-webkit-calendar-picker-indicator:hover,
input[type="time"]::-webkit-calendar-picker-indicator:hover {
    background-color: rgba(147, 51, 234, 0.15);
}

/* Modal Overlay & Theme Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-standard);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: rgba(255, 255, 255, 0.95) !important;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    position: relative;
    transform: translateY(30px) scale(0.95);
    transition: var(--transition-standard);
}

.modal-overlay.active .modal-content {
    transform: translateY(0) scale(1);
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-size: 2.2rem;
    color: var(--text-muted);
    cursor: pointer;
    line-height: 1;
    transition: var(--transition-standard);
    background: rgba(15, 23, 42, 0.05);
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
}

.modal-close:hover {
    color: var(--accent-purple);
    background: rgba(147, 51, 234, 0.1);
    transform: rotate(90deg);
}

/* Custom Modal Scrollbar */
.modal-content::-webkit-scrollbar {
    width: 8px;
}
.modal-content::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 10px;
}
.modal-content::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}
.modal-content::-webkit-scrollbar-thumb:hover {
    background: var(--accent-teal);
}

.btn-submit {
    width: 100%;
    margin-top: 1rem;
    padding: 1.2rem;
    font-size: 1.1rem;
}

/* Mobile Sidebar Contact Info (Hidden on Desktop) */
.mobile-contact-info {
    display: none;
}

/* Responsive Design */
/* Intermediate Breakpoint for Laptops / Tablets Landscape (Fluid Shrinking) */
@media (max-width: 1400px) {
    .nav-container {
        padding: 0 2%;
    }
    .nav-links {
        gap: 1vw; /* Fluid gap using viewport width instead of fixed rems */
    }
    .nav-links a {
        font-size: clamp(0.75rem, 1.2vw, 1rem); /* Text gets smaller dynamically */
    }
    .nav-links a.nav-cta-link {
        padding: 0.6rem 1.5vw;
        font-size: clamp(0.7rem, 1vw, 0.95rem);
        white-space: nowrap; /* Prevents button text from breaking into two lines */
    }
    .logo img {
        transform: scale(1.4); /* Scales the logo down slightly on medium screens */
        margin-left: 20px;
    }
}

@media (max-width: 992px) {
    .leadership-content, .story-grid, .vm-grid, .ceo-grid {
        grid-template-columns: 1fr;
    }
    
    .services-wrapper {
        flex-direction: column;
    }
    
    .services-tabs {
        flex: none;
        flex-direction: row;
        overflow-x: auto;
        padding: 1rem;
        gap: 0.5rem;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    
    .services-tabs::-webkit-scrollbar {
        display: none;
    }

    .tab-btn {
        white-space: nowrap;
        border-left: none;
        border-bottom: 3px solid transparent;
        padding: 1rem;
        border-radius: 8px;
    }

    .tab-btn.active {
        border-bottom-color: var(--accent-purple);
        box-shadow: none;
    }

    .services-content-area {
        padding: 2rem;
    }
    
    .leadership-text h2.section-title {
        text-align: center;
    }
    
    .leadership-text h2.section-title::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 1080px) {
    .hero {
        background-image: url('images/hero_mobile.png');
    }

    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .nav-links {
            position: fixed;
            top: 0;
            right: -100%; /* Starts hidden off-screen to the right */
            left: auto;
            width: 320px;
            max-width: 85vw; /* Prevents it from taking up the entire screen on very small phones */
            height: 100vh;
            /* High opacity (95%) gradient going from white to very pale purple to very pale teal */
            background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(243, 232, 255, 0.95) 50%, rgba(224, 251, 245, 0.95) 100%);
            backdrop-filter: blur(25px); /* Lowered so mobile browsers do not crash and ignore the effect */
            -webkit-backdrop-filter: blur(25px);
            border-left: 1px solid rgba(255, 255, 255, 0.8);
            flex-direction: column;
            align-items: flex-start;
            padding: 100px 2rem 2rem 2rem; /* Adds space at the top so the hamburger icon isn't covered */
            box-shadow: -15px 0 40px rgba(0, 0, 0, 0.15); /* Slightly stronger shadow */
            transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1); /* Smooth snapping animation */
            z-index: 999;
            overflow-y: auto;
        }
    
    .nav-links.active {
        right: 0; /* Slides in to the screen */
    }

    .nav-links a {
            font-size: 1.3rem;
            padding: 0.8rem 0;
            width: 100%;
            display: block;
            color: var(--primary-navy); /* Dark text for glass background */
        }
        .nav-links a:hover, .nav-links a.active {
            color: var(--accent-purple);
            opacity: 1;
        }
        .nav-links a::after {
            background: var(--accent-purple); /* Purple underline hover effect */
        }

        /* Fix the massive underline on mobile */
        .nav-links a.active::after, .nav-links a:hover::after {
            width: 40px; 
        }

        /* Perfectly proportion the CTA buttons for the mobile sidebar */
        .nav-links a.nav-cta-link {
            text-align: center;
            font-size: 1.1rem;
            padding: 1rem;
            margin: 0.5rem 0;
            width: 100%;
            color: var(--bg-white) !important; /* Forces the text to stay white */
            display: block;
        }
        
        .hamburger { 
            display: flex;
            z-index: 1001; /* Keeps the X icon above the glassy sidebar so you can click it */
            position: relative;
        }
        .hamburger.active span {
            background-color: var(--primary-navy); /* Dark 'X' to contrast the light glass */
        }
        /* Styles for the new contact info block inside the menu */
        .mobile-contact-info {
            display: block;
            margin-top: 2rem;
            padding-top: 2rem;
            border-top: 2px solid rgba(15, 23, 42, 0.1); /* Dark divider line */
            width: 100%;
        }
        .mobile-contact-info h4 {
            color: var(--primary-navy); /* Dark heading */
            margin-bottom: 1.5rem;
            font-size: 1.1rem;
            letter-spacing: 1px;
            text-transform: uppercase;
        }
        .mobile-contact-info p {
            font-size: 0.95rem;
            color: var(--text-main); /* Dark text for readability */
            line-height: 1.6;
            margin-bottom: 1rem;
        }
    
    .hamburger.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .contact-form-wrapper {
        padding: 2.5rem 1.5rem;
    }
}

/* --- NEW HERO LAYOUT --- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    /* Set to transparent so the beautiful new body gradient shines through */
    background-color: transparent; 
    padding-top: 100px;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.hero-content.text-left {
    text-align: left;
    max-width: 600px;
    margin: 0;
}

.hero-subtitle {
    color: var(--accent-teal);
    letter-spacing: 2px;
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.hero h1 {
    font-size: 3.5rem;
    color: var(--primary-navy);
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.text-gradient {
    background: var(--gradient-spectrum);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: flex-start;
    margin-bottom: 3rem;
}

.btn-secondary-outline {
    background: transparent;
    color: var(--primary-navy);
    border: 2px solid #e2e8f0;
    padding: 0.8rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition-standard);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-secondary-outline:hover {
    border-color: var(--accent-blue);
    color: var(--accent-blue);
}

.hero-badges {
    display: flex;
    gap: 1.5rem;
    border-top: 1px solid #e2e8f0;
    padding-top: 2rem;
}

.badge {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.3;
}

.badge-icon {
    font-size: 1.5rem;
}

.hero-art {
    width: 100%;
    max-width: 650px;
    height: auto;
    object-fit: contain;
}

/* Force content to stretch and fill the space properly */
.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
    max-width: 1600px;
    margin: 0 auto;
}

/* Ensure the grid itself isn't centered if you want it to look wide */
.programs-grid-7 {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1rem;
    width: 100%;
}

/* --- NEW 7-CARD GRID --- */
.programs-section {
    padding: 4rem 0;
    /* Set to transparent to inherit the body gradient, maintaining a seamless look */
    background-color: transparent; 
}

.programs-container {
    max-width: 100%; /* Remove the hard cap so it spans the width */
    padding: 0 4rem; /* Add breathing room on the sides instead of auto-centering */
}

.programs-grid-7 {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1.2rem;
}

.program-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 2.5rem 1rem 1.5rem 1rem;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 1px solid rgba(0,0,0,0.02);
}

.program-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(59, 130, 246, 0.1);
}

/* Base wrapper style */
.prog-icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 1.5rem;
    transition: var(--transition-standard);
}

.prog-icon {
    display: flex;
    align-items: center;
}

.prog-icon svg {
    width: 28px;
    height: 28px;
}

/* Soft, mild pastel backgrounds with vibrant SVG colors */

/* Card 1: Purple */
.program-card:nth-child(1) .prog-icon-wrapper { 
    background: linear-gradient(135deg, #f3e8ff, #e9d5ff); /* Mild pastel background */
    box-shadow: 0 8px 16px rgba(147, 51, 234, 0.1); 
}
.program-card:nth-child(1) .prog-icon { color: #9333ea; } /* Vibrant icon */

/* Card 2: Blue */
.program-card:nth-child(2) .prog-icon-wrapper { 
    background: linear-gradient(135deg, #eff6ff, #dbeafe); 
    box-shadow: 0 8px 16px rgba(59, 130, 246, 0.1); 
}
.program-card:nth-child(2) .prog-icon { color: #2563eb; }

/* Card 3: Teal */
.program-card:nth-child(3) .prog-icon-wrapper { 
    background: linear-gradient(135deg, #f0fdfa, #ccfbf1); 
    box-shadow: 0 8px 16px rgba(45, 212, 191, 0.1); 
}
.program-card:nth-child(3) .prog-icon { color: #0d9488; }

/* Card 4: Emerald Green */
.program-card:nth-child(4) .prog-icon-wrapper { 
    background: linear-gradient(135deg, #ecfdf5, #d1fae5); 
    box-shadow: 0 8px 16px rgba(16, 185, 129, 0.1); 
}
.program-card:nth-child(4) .prog-icon { color: #059669; }

/* Card 5: Indigo */
.program-card:nth-child(5) .prog-icon-wrapper { 
    background: linear-gradient(135deg, #eef2ff, #e0e7ff); 
    box-shadow: 0 8px 16px rgba(99, 102, 241, 0.1); 
}
.program-card:nth-child(5) .prog-icon { color: #4f46e5; }

/* Card 6: Sky Blue */
.program-card:nth-child(6) .prog-icon-wrapper { 
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe); 
    box-shadow: 0 8px 16px rgba(14, 165, 233, 0.1); 
}
.program-card:nth-child(6) .prog-icon { color: #0284c7; }

/* Card 7: Cyan */
.program-card:nth-child(7) .prog-icon-wrapper { 
    background: linear-gradient(135deg, #ecfeff, #cffafe); 
    box-shadow: 0 8px 16px rgba(6, 182, 212, 0.1); 
}
.program-card:nth-child(7) .prog-icon { color: #0891b2; }

/* Hover effect */
.program-card:hover .prog-icon-wrapper {
    transform: scale(1.05);
}

.program-card h3 {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: var(--primary-navy);
}

.program-card p {
    font-size: 0.8rem;
    color: var(--text-muted);
    flex-grow: 1;
    margin-bottom: 1.5rem;
}

.arrow-link {
    color: var(--accent-teal);
    font-weight: bold;
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.program-card:hover .arrow-link {
    transform: translateX(5px);
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .programs-grid-7 {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-content.text-left {
        text-align: center;
        margin: 0 auto;
    }
    .hero-buttons {
        justify-content: center;
    }
    .hero-badges {
        justify-content: center;
        flex-wrap: wrap;
    }
    .programs-grid-7 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
        .hero {
            background: linear-gradient(135deg, rgba(147, 51, 234, 0.05) 0%, rgba(45, 212, 191, 0.05) 100%);
            align-items: center; /* Centers all content inside the hero section */
            padding-top: 120px;
            padding-bottom: 2rem;
             min-height: auto; /* Stops it from stretching weirdly */
            -webkit-mask-image: none; /* Removes the desktop fade so it doesn't cut off your image */
            mask-image: none;
            overflow-x: hidden; /* Prevents side-scrolling if the image pushes out */
            width: 100%;
        }

        /* Forces the image container and brain graphic to fit the edges and center */
        .hero-image, 
        .hero .image-container {
            width: 100%;
            max-width: 100vw;
            display: flex;
            justify-content: center;
            margin: 0 auto;
            padding: 0;
        }

        .hero-image img, 
        .hero .image-container img,
        .hero > div > img {
            width: 100%;
            max-width: 100%;
            height: auto;
            object-fit: contain;
            margin: 0 auto;
            display: block;
        }
        
        .hero h1 {
            font-size: 2.5rem;
            line-height: 1.2;
            margin-bottom: 1rem;
        }
        
        .hero-content p {
            font-size: 1rem;
            padding: 0 10px;
            margin-bottom: 1.8rem;
        }

        .hero-buttons {
            flex-direction: column;
            gap: 15px;
            width: 100%;
            padding: 0 10px;
        }

        .hero-buttons .btn, 
        .hero-buttons .btn-secondary-outline {
            width: 100%;
            justify-content: center;
        }

        .hero-badges {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 1.5rem;
            padding-top: 2rem;
            border-top: 1px solid rgba(0, 0, 0, 0.05);
        }

        .badge {
            flex-direction: column;
            text-align: center;
            gap: 5px;
        }

        /* Drop the parent padding so percentages can actually touch the edges */
        .hero .container {
            width: 100%;
            padding: 0;
        }
        
        /* Add padding back to the text so it doesn't get squished against the screen */
        .hero-content {
            padding: 0 2rem;
        }

        .hero-image-wrapper {
            display: block !important;
            width: 100%;
             height: 450px;
             background-image: url('images/hero_mobile.png');
             /* Drastically pulling the image up. If this is STILL too low, try -350px or -400px. */
            background-position: center -250px;
             background-size: 100% auto;
            background-repeat: no-repeat;
            position: relative;
            /* Pushes the container back down so your icons stop overlapping the text */
            margin-top: 2rem; 
            -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 15%, black 85%, transparent 100%);
            mask-image: linear-gradient(to bottom, transparent 0%, black 15%, black 85%, transparent 100%);
        }
}

@media (max-width: 480px) {
    .programs-grid-7 {
        grid-template-columns: 1fr;
    }
}

/* --- FLOATING CONCEPT NODES --- */
.hero-image-wrapper {
    position: relative; /* Crucial to keep the floating nodes attached to the image */
    width: 100%;
    min-height: 600px; /* Gives the wrapper height so the percentages can spread out vertically */
}

.float-node {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 6px 16px 6px 6px;
    border-radius: 50px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.06);
    border: 1px solid rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-main);
    animation: floatNode 6s ease-in-out infinite;
    z-index: 2;
}

.node-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

@keyframes floatNode {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

/* Staggered Animations & Gradients for each node */
/* Positioned in a wide circle around the brain */
.node-1 { top: 10%; left: 5%; animation-delay: 0s; }
.node-1 .node-icon { background: linear-gradient(135deg, #a855f7, #9333ea); }

.node-2 { top: 45%; left: -15%; animation-delay: 1.2s; }
.node-2 .node-icon { background: linear-gradient(135deg, #3b82f6, #2563eb); }

.node-3 { top: 15%; right: 0%; animation-delay: 2.4s; }
.node-3 .node-icon { background: linear-gradient(135deg, #2dd4bf, #0d9488); }

.node-4 { top: 55%; right: -10%; animation-delay: 0.8s; }
.node-4 .node-icon { background: linear-gradient(135deg, #a855f7, #3b82f6); }

.node-5 { bottom: 10%; left: 45%; animation-delay: 1.8s; }
.node-5 .node-icon { background: linear-gradient(135deg, #3b82f6, #2dd4bf); }

/* Adjust floating nodes for mobile instead of hiding them */
    @media (max-width: 992px) {
        .float-node {
            display: flex !important;
            padding: 6px 12px 6px 6px;
            font-size: 0.8rem;
            box-shadow: 0 8px 20px rgba(0,0,0,0.15); /* Stronger shadow for visibility */
        }
        .node-icon {
            width: 28px;
            height: 28px;
        }
        .node-icon svg {
            width: 14px;
            height: 14px;
        }
        
        /* Reposition nodes to perfectly frame the portrait art */
        .node-1 { top: 8%; left: 8%; }
        .node-2 { top: 40%; left: 2%; }
        .node-3 { top: 12%; right: 8%; }
        .node-4 { top: 45%; right: 2%; }
        .node-5 { bottom: 12%; left: 32%; }
    }

/* --- Gallery Styles --- */
.gallery-slider-section {
    background-color: var(--bg-white);
    padding: 6rem 0;
}

.slider-container {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
    background: #020617; /* Dark backdrop */
}

.slider-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.slider-track .slide {
    min-width: 100%;
    object-fit: cover;
    max-height: 500px;
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.7);
    border: none;
    font-size: 2rem;
    padding: 0.5rem 1rem;
    cursor: pointer;
    border-radius: 50%;
    transition: var(--transition-standard);
    color: var(--primary-navy);
}

.slider-arrow:hover {
    background: var(--bg-white);
    color: var(--accent-purple);
}

.prev-arrow { left: 15px; }
.next-arrow { right: 15px; }

/* Full Gallery Grid */
.full-gallery-section {
    background-color: var(--bg-offwhite);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: var(--transition-standard);
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-glow);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    aspect-ratio: 4 / 3;
    transition: transform 0.4s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* --- Progressive Image Loading --- */
.progressive-img {
    position: relative;
    overflow: hidden;
    background: #e2e8f0; /* Soft placeholder background */
}

.progressive-img img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 4 / 3;
    transition: opacity 0.6s ease-in-out, filter 0.6s ease-in-out, transform 0.4s ease;
}

.progressive-img .thumbnail {
    filter: blur(15px);
    transform: scale(1.1); /* Hides messy blur edges */
}

.progressive-img .full-res {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
}

.progressive-img.loaded .full-res {
    opacity: 1;
}

.progressive-img.loaded .thumbnail {
    opacity: 0;
}

/* --- Floating Action Buttons --- */
.fab-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 1000;
}

.fab {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    padding: 12px 20px;
    color: var(--primary-navy);
    text-decoration: none;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
    transition: all 0.3s ease;
    gap: 10px;
    font-weight: 600;
    font-size: 0.9rem;
}

.fab svg {
    width: 20px;
    height: 20px;
}

.fab:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px 0 rgba(31, 38, 135, 0.25);
    background: rgba(255, 255, 255, 0.9);
}

.fab-info {
    color: var(--accent-purple);
}

.fab-consult {
    color: var(--accent-teal);
}

@media (max-width: 768px) {
    .fab-container {
        bottom: 20px;
        right: 20px;
    }
    
    .fab-text {
        display: none;
    }
    
    .fab {
        padding: 15px;
        border-radius: 50%;
    }
}