/* CSS Variables */
:root {
    --dark-gray: #1a1a1a;
    --beige: #D9C5A0;
    --sage: #9BAA9D;
    --teal: #1D4E56;
    --white: #FFFFFF;
    --light-gray: #F8F9FA;
    --medium-gray: #E9ECEF;
    --dark-teal: #0F3A42;
    --gradient-primary: linear-gradient(135deg, var(--teal) 0%, var(--dark-teal) 100%);
    --gradient-secondary: linear-gradient(135deg, var(--beige) 0%, var(--sage) 100%);
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.07);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.1);
    --shadow-xl: 0 20px 25px rgba(0,0,0,0.15);
    --border-radius: 8px;
    --border-radius-lg: 12px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark-gray);
    background-color: var(--white);
    overflow-x: hidden;
}

.container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 40px;
}

.section-padding {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.75rem;
    margin-bottom: 1rem;
    color: var(--teal);
    position: relative;
    padding-bottom: 15px;
    font-weight: 700;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--beige);
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.25rem;
    color: var(--dark-gray);
    max-width: 700px;
    margin: 0 auto;
    opacity: 0.8;
}

.section-footer {
    text-align: center;
    margin-top: 3rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-size: 1rem;
    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;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: var(--beige);
    color: var(--dark-gray);
    box-shadow: var(--shadow-md);
}

.btn-secondary:hover {
    background: var(--sage);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.btn-outline {
    background: transparent;
    color: var(--teal);
    border: 2px solid var(--teal);
}

.btn-outline:hover {
    background: var(--teal);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

/* Cards */
.card {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 30px;
    transition: var(--transition);
    border: 1px solid var(--medium-gray);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--teal);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.card:hover::before {
    transform: scaleX(1);
}

/* Navigation */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: var(--transition);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.navbar.scrolled {
    padding: 5px 0;
    box-shadow: var(--shadow-lg);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1600px;
    margin: 0 auto;
}

.nav-logo img {
    transition: var(--transition);
}

.nav-menu {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--dark-gray);
    font-weight: 500;
    transition: var(--transition);
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    position: relative;
}

.nav-link:hover, .nav-link.active {
    color: var(--teal);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--teal);
    transition: var(--transition);
    transform: translateX(-50%);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 80%;
}

.admin-btn {
    background: var(--teal);
    color: var(--white) !important;
    border-radius: var(--border-radius);
    padding: 8px 16px;
}

.admin-btn:hover {
    background: var(--dark-teal);
}

.admin-btn::after {
    display: none;
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    background: none;
    border: none;
    padding: 5px;
    width: 30px;
    height: 30px;
    justify-content: center;
}

.mobile-toggle span {
    width: 25px;
    height: 3px;
    background: var(--dark-gray);
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

/* Dropdown Menu */
.dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    min-width: 250px;
    box-shadow: var(--shadow-xl);
    border-radius: var(--border-radius);
    z-index: 1000;
    padding: 1rem 0;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.dropdown:hover .dropdown-content {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.dropdown-link {
    display: block;
    padding: 0.75rem 1.5rem;
    color: var(--dark-gray);
    text-decoration: none;
    transition: var(--transition);
}

.dropdown-link:hover {
    background: var(--light-gray);
    color: var(--teal);
}

.dropdown-link.active {
    background: var(--teal);
    color: var(--white);
}

/* Hero Section - Carousel */
.hero {
    background: var(--gradient-primary);
    color: var(--white);
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
    margin-top: 70px;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1; /* Lower z-index for background */
}

.hero-slides-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2; /* Higher z-index than background */
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s ease, transform 1s cubic-bezier(0.77, 0, 0.175, 1);
    transform: translateX(100%);
    display: flex;
    align-items: center; /* Vertically center content */
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.hero-slide.prev {
    transform: translateX(-100%);
}

.slide-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1; /* Background layer */
    overflow: hidden;
}

.hero-background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    animation: zoomEffect 20s ease-in-out infinite alternate;
}

@keyframes zoomEffect {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(1.1);
    }
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.5) 50%, rgba(0,0,0,0.3) 100%);
    z-index: 2; /* Overlay layer */
}

/* Gradient overlay for text readability - Modified for left alignment */
.hero-background::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.6) 40%, rgba(0,0,0,0.2) 80%, transparent 100%);
    z-index: 2;
}

/* Enhanced Particle Canvas */
#heroCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 5; /* Particles above overlay but below content */
    pointer-events: none; /* Allow clicks to pass through */
}

/* Particle Effect Styles */
.particle-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 5;
    pointer-events: none;
}

.particle {
    position: absolute;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    pointer-events: none;
    animation: float 15s infinite ease-in-out;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
        opacity: 0.3;
    }
    25% {
        transform: translate(20px, -20px) rotate(90deg);
        opacity: 0.5;
    }
    50% {
        transform: translate(-15px, 15px) rotate(180deg);
        opacity: 0.7;
    }
    75% {
        transform: translate(10px, -10px) rotate(270deg);
        opacity: 0.5;
    }
}

.particle:nth-child(2n) {
    background: rgba(255, 255, 255, 0.1);
    animation-delay: -5s;
}

.particle:nth-child(3n) {
    background: rgba(255, 255, 255, 0.15);
    animation-delay: -10s;
}

/* Data point particles */
.data-point {
    position: absolute;
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    animation: pulse 3s infinite ease-in-out;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.3;
    }
    50% {
        transform: scale(1.5);
        opacity: 1;
    }
}

.data-point:nth-child(odd) {
    animation-delay: -1.5s;
}

/* Connection lines between particles */
.particle-connection {
    position: absolute;
    background: linear-gradient(90deg, 
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.1) 50%,
        rgba(255, 255, 255, 0) 100%);
    height: 1px;
    transform-origin: left center;
    animation: connect 20s infinite linear;
}

@keyframes connect {
    0% {
        transform: rotate(0deg) scaleX(0);
    }
    50% {
        transform: rotate(180deg) scaleX(1);
    }
    100% {
        transform: rotate(360deg) scaleX(0);
    }
}

.hero-content {
    max-width: 90%;
    width: 100%;
    z-index: 10; /* Increased z-index to be above everything */
    position: relative;
    transform: translateX(0);
    transition: transform 1s cubic-bezier(0.77, 0, 0.175, 1), opacity 1s ease;
    text-align: left; /* Align text to the left */
    margin: 0; /* Remove auto margins */
    padding: 0 20px; /* Add some padding on sides */
}

.hero-slide.active .hero-content {
    animation: slideInContent 1s cubic-bezier(0.77, 0, 0.175, 1) 0.3s both;
}

@keyframes slideInContent {
    0% {
        opacity: 0;
        transform: translateX(-100px);
    }
    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 8px 16px;
    border-radius: 50px;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.2);
    opacity: 0;
    transform: translateY(20px);
    position: relative;
    z-index: 11; /* Ensure badge is above all */
}

.hero-slide.active .hero-badge {
    animation: fadeInUp 0.8s ease 0.5s forwards;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    font-weight: 700;
    opacity: 0;
    transform: translateY(30px);
    position: relative;
    z-index: 11; /* Ensure title is above all */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5); /* Added for better readability */
    max-width: 800px; /* Limit width for better readability */
}

.hero-slide.active .hero-title {
    animation: fadeInUp 0.8s ease 0.7s forwards;
}

.hero-description {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
    max-width: 600px;
    opacity: 0;
    transform: translateY(30px);
    position: relative;
    z-index: 11; /* Ensure description is above all */
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5); /* Added for better readability */
    margin-left: 0; /* Remove auto margin */
    margin-right: 0; /* Remove auto margin */
    line-height: 1.6;
}

.hero-slide.active .hero-description {
    animation: fadeInUp 0.8s ease 0.9s forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    opacity: 0;
    transform: translateY(30px);
    position: relative;
    z-index: 11; /* Ensure buttons are above all */
    justify-content: flex-start; /* Align buttons to the left */
}

.hero-slide.active .hero-actions {
    animation: fadeInUp 0.8s ease 1.1s forwards;
}

/* Navigation Arrows */
.slide-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 20; /* High z-index for navigation */
    transition: all 0.3s ease;
    opacity: 0.7;
}

.slide-nav:hover {
    background: rgba(255, 255, 255, 0.2);
    opacity: 1;
    transform: translateY(-50%) scale(1.1);
}

.prev-slide {
    left: 20px;
}

.next-slide {
    right: 20px;
}

.slide-nav i {
    font-size: 1.2rem;
}

/* Slide Indicators */
.slide-indicators {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 20; /* High z-index for indicators */
}

.slide-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.slide-indicator.active {
    background: var(--white);
    transform: scale(1.2);
}

.slide-indicator:hover {
    background: rgba(255, 255, 255, 0.7);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20; /* High z-index for scroll indicator */
}

.scroll-arrow {
    width: 30px;
    height: 50px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 15px;
    position: relative;
}

.scroll-arrow::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 10px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 2px;
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0% { transform: translateX(-50%) translateY(0); opacity: 1; }
    100% { transform: translateX(-50%) translateY(15px); opacity: 0; }
}

/* Container adjustments for left alignment */
.container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-description {
        font-size: 1.1rem;
    }
    
    .slide-nav {
        width: 40px;
        height: 40px;
    }
    
    .prev-slide {
        left: 10px;
    }
    
    .next-slide {
        right: 10px;
    }
    
    .slide-indicators {
        bottom: 30px;
    }
    
    .hero-content {
        max-width: 100%;
        padding: 0 15px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .hero-actions {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
    }
    
    .hero-actions .btn {
        width: 100%;
        justify-content: flex-start;
        padding-left: 20px;
        padding-right: 20px;
    }
    
    .slide-nav {
        width: 35px;
        height: 35px;
    }
    
    .slide-nav i {
        font-size: 1rem;
    }
    
    .slide-overlay {
        background: linear-gradient(90deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.6) 60%, rgba(0,0,0,0.3) 100%);
    }
    
    .hero-background::after {
        background: linear-gradient(90deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.6) 50%, rgba(0,0,0,0.2) 80%, transparent 100%);
    }
}

/* Mission & Vision Section */
.mission-vision {
    background: var(--light-gray);
}

.mission-vision-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.mission-card, .vision-card {
    text-align: center;
    padding: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.mission-icon, .vision-icon {
    width: 80px;
    height: 80px;
    background: var(--teal);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 2rem;
    color: var(--white);
    transition: var(--transition);
}

.mission-card:hover .mission-icon, .vision-card:hover .vision-icon {
    transform: scale(1.1) rotate(5deg);
    background: var(--gradient-primary);
}

.mission-card h3, .vision-card h3 {
    margin-bottom: 1rem;
    color: var(--teal);
    font-weight: 600;
}

/* Two-Brain System */
.two-brain-system {
    background: var(--light-gray);
}

.brain-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.brain-card {
    padding: 40px;
    border-radius: var(--border-radius-lg);
    text-align: center;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.brain-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, transparent 100%);
    opacity: 0;
    transition: var(--transition);
}

.brain-card:hover::after {
    opacity: 1;
}

.library-brain {
    background: var(--white);
    border-top: 5px solid var(--sage);
}

.ai-brain {
    background: var(--white);
    border-top: 5px solid var(--beige);
}

.brain-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    color: var(--teal);
    transition: var(--transition);
}

.brain-card:hover .brain-icon {
    transform: scale(1.1);
}

.brain-card h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--teal);
    font-weight: 600;
}

.brain-description {
    margin-bottom: 1.5rem;
    color: var(--dark-gray);
    flex-grow: 1;
    opacity: 0.8;
}

.brain-features {
    list-style: none;
    text-align: left;
    margin-bottom: 2rem;
}

.brain-features li {
    padding: 0.5rem 0;
    position: relative;
    padding-left: 30px;
}

.brain-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--sage);
    font-weight: bold;
}

/* Research Grid */
.research-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.research-card {
    border-left: 4px solid var(--teal);
    display: flex;
    flex-direction: column;
    padding: 0;
    overflow: hidden;
}

.research-image {
    height: 200px;
    overflow: hidden;
}

.research-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.research-card:hover .research-image img {
    transform: scale(1.05);
}

.research-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.research-card h3 {
    color: var(--teal);
    margin-bottom: 1rem;
    font-weight: 600;
}

.research-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: var(--sage);
}

.research-tag {
    background: var(--light-gray);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Services Section Styles */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    text-align: center;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
}

.service-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.service-card:hover .service-image img {
    transform: scale(1.05);
}

.service-card h3 {
    margin: 1.5rem 0 1rem;
    color: var(--teal);
    font-weight: 600;
    padding: 0 1.5rem;
}

.service-card p {
    padding: 0 1.5rem;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.service-card .btn {
    margin: 0 1.5rem 1.5rem;
    align-self: stretch;
    text-align: center;
    justify-content: center;
}

/* Principles Section */
.principles {
    background: var(--light-gray);
}

.principles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.principle-card {
    text-align: center;
    padding: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.principle-icon {
    width: 70px;
    height: 70px;
    background: var(--teal);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    color: var(--white);
    transition: var(--transition);
}

.principle-card:hover .principle-icon {
    transform: scale(1.1) rotate(5deg);
    background: var(--gradient-primary);
}

.principle-card h3 {
    margin-bottom: 1rem;
    color: var(--teal);
    font-weight: 600;
}

/* Team */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 2rem;
}

.team-card {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 30px 20px;
}

.team-image {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: var(--medium-gray);
    margin: 0 auto 1.5rem;
    overflow: hidden;
    border: 4px solid var(--beige);
    transition: var(--transition);
}

.team-card:hover .team-image {
    transform: scale(1.05);
    border-color: var(--teal);
}

.team-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-card h3 {
    margin-bottom: 0.5rem;
    color: var(--teal);
    font-weight: 600;
}

.team-role {
    color: var(--sage);
    margin-bottom: 1rem;
    font-weight: 500;
}

.team-social {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.team-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--light-gray);
    border-radius: 50%;
    color: var(--teal);
    transition: var(--transition);
}

.team-social a:hover {
    background: var(--teal);
    color: var(--white);
    transform: translateY(-3px);
}

/* CTA Section */
.cta {
    background: linear-gradient(135deg, var(--dark-gray) 0%, #2a2a2a 100%);
    color: var(--white);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000" opacity="0.05"><polygon fill="white" points="0,1000 1000,0 1000,1000"/></svg>');
    background-size: cover;
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-content h2 {
    color: var(--white);
    margin-bottom: 1rem;
    font-size: 2.5rem;
    font-weight: 700;
}

.cta-content p {
    color: rgba(255,255,255,0.8);
    max-width: 600px;
    margin: 0 auto 2rem;
    font-size: 1.2rem;
}

.cta-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* AI Chatbot */
.ai-chatbot {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
}

.chatbot-toggle {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    color: var(--white);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-lg);
    font-size: 1.5rem;
}

.chatbot-toggle:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-xl);
}

.chatbot-container {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 350px;
    height: 500px;
    background: var(--white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-xl);
    display: none;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--medium-gray);
}

.chatbot-container.active {
    display: flex;
}

.chatbot-header {
    background: var(--gradient-primary);
    color: var(--white);
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chatbot-header h3 {
    margin: 0;
    font-size: 1.2rem;
}

.chatbot-close {
    background: none;
    border: none;
    color: var(--white);
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
}

.chatbot-close:hover {
    transform: scale(1.1);
}

.chatbot-messages {
    flex-grow: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.message {
    max-width: 80%;
    padding: 12px 16px;
    border-radius: 18px;
    line-height: 1.4;
}

.bot-message {
    background: var(--light-gray);
    color: var(--dark-gray);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}

.user-message {
    background: var(--teal);
    color: var(--white);
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

.chatbot-input {
    display: flex;
    padding: 15px;
    border-top: 1px solid var(--medium-gray);
}

.chatbot-input input {
    flex-grow: 1;
    padding: 12px 15px;
    border: 1px solid var(--medium-gray);
    border-radius: var(--border-radius);
    outline: none;
    transition: var(--transition);
}

.chatbot-input input:focus {
    border-color: var(--teal);
}

#chatbotSend {
    background: var(--teal);
    color: var(--white);
    border: none;
    border-radius: var(--border-radius);
    padding: 0 15px;
    margin-left: 10px;
    cursor: pointer;
    transition: var(--transition);
}

#chatbotSend:hover {
    background: var(--dark-teal);
}

/* Footer */
.footer {
    background: var(--dark-gray);
    color: var(--white);
    padding: 60px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 2fr;
    gap: 3rem;
    margin-bottom: 3rem;
    align-items: start;
}

.footer-about {
    display: flex;
    flex-direction: column;
}

.nav-logo {
            display: flex;
            align-items: center;
        }

.footer-description {
    margin-bottom: 1.5rem;
    opacity: 0.8;
    line-height: 1.7;
    flex-grow: 1;
}

/* Social Links */
.social-links {
    display: flex;
    gap: 1rem;
    margin-top: auto;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    color: var(--white);
    font-size: 1.2rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-links a:hover {
    background: var(--beige);
    color: var(--dark-gray);
    transform: translateY(-3px);
}

/* Footer Links */
.footer-links-container {
    display: flex;
    flex-direction: column;
}

.footer-heading {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: var(--beige);
    font-weight: 600;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-links li {
    margin: 0;
}

.footer-links a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 0.95rem;
    padding: 0.2rem 0;
}

.footer-links a:hover {
    color: var(--beige);
    padding-left: 5px;
}

/* Newsletter Section */
.newsletter-container {
    display: flex;
    flex-direction: column;
}

.newsletter-description {
    margin-bottom: 1.5rem;
    opacity: 0.8;
    line-height: 1.5;
    font-size: 0.95rem;
    flex-grow: 1;
}

.newsletter-form {
    margin-bottom: 1rem;
    width: 100%;
}

.newsletter-form .form-group {
    display: flex;
    gap: 8px;
    margin-bottom: 0.5rem;
}

.newsletter-form input {
    flex-grow: 1;
    padding: 12px 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius);
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    font-size: 0.95rem;
    transition: var(--transition);
    min-width: 0;
}

.newsletter-form input:focus {
    outline: none;
    border-color: var(--beige);
    background: rgba(255, 255, 255, 0.15);
}

.newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.newsletter-form .btn {
    padding: 12px 20px;
    min-width: auto;
    white-space: nowrap;
    flex-shrink: 0;
}

.newsletter-form .btn i {
    margin: 0;
}

.form-message {
    font-size: 0.85rem;
    padding: 5px 0;
    transition: var(--transition);
    min-height: 20px;
}

.form-message.success {
    color: #4CAF50;
}

.form-message.error {
    color: #f44336;
}

.newsletter-note {
    margin-top: auto;
}

.newsletter-note p {
    font-size: 0.8rem;
    opacity: 0.6;
    line-height: 1.4;
    margin: 0;
}

/* Footer Bottom */
.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .container {
        max-width: 100%;
    }
}

@media (max-width: 992px) {
    .brain-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
    
    .newsletter-container {
        grid-column: span 2;
        margin-top: 0;
    }
    
    .footer-about {
        grid-column: span 2;
        text-align: center;
        align-items: center;
    }
    
    .footer-description {
        max-width: 500px;
    }
    
    .social-links {
        justify-content: center;
    }

    .contact-container {
        grid-template-columns: 1fr;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .mission-vision-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--white);
        flex-direction: column;
        padding: 1rem 0;
        box-shadow: var(--shadow-lg);
    }

    .nav-menu.active {
        display: flex;
    }

    .mobile-toggle {
        display: flex;
    }

    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-description {
        font-size: 1.1rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .newsletter-container {
        grid-column: span 1;
    }
    
    .footer-about {
        grid-column: span 1;
        text-align: left;
        align-items: flex-start;
    }
    
    .footer-description {
        max-width: 100%;
    }
    
    .social-links {
        justify-content: flex-start;
    }
    
    .footer-links-container {
        align-items: flex-start;
    }

    .tabs {
        flex-direction: column;
    }

    .tab {
        text-align: left;
        border-bottom: 1px solid var(--medium-gray);
    }

    .tab.active::after {
        display: none;
    }

    .dashboard-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .section-padding {
        padding: 70px 0;
    }
    
    .section-title {
        font-size: 2.25rem;
    }
    
    .container {
        padding: 0 20px;
    }
    
    .chatbot-container {
        width: 300px;
        height: 400px;
    }
}

@media (max-width: 576px) {
    .hero-actions {
        flex-direction: column;
    }
    
    .section-title {
        font-size: 2rem;
    }

    .page-hero h1 {
        font-size: 2.2rem;
    }

    .cta-actions {
        flex-direction: column;
    }

    .filter-container {
        flex-direction: column;
        align-items: stretch;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .nav-container {
        padding: 1rem 15px;
    }
    
    .chatbot-container {
        width: 280px;
        right: -20px;
    }
    
    .footer {
        padding: 40px 0 20px;
    }
    
    .footer-grid {
        gap: 2rem;
    }
    
    .footer-heading {
        margin-bottom: 1rem;
        font-size: 1.1rem;
    }
    
    .newsletter-form .form-group {
        flex-direction: column;
        gap: 10px;
    }
    
    .newsletter-form .btn {
        width: 100%;
        justify-content: center;
    }
    
    .newsletter-form input {
        width: 100%;
    }
    
    .footer-bottom {
        padding-top: 1.5rem;
        font-size: 0.85rem;
    }
}