/* CSS Variables */
:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --primary-light: #818cf8;
    --secondary: #0ea5e9;
    --accent: #f59e0b;
    --dark: #1e293b;
    --dark-light: #334155;
    --gray: #64748b;
    --gray-light: #94a3b8;
    --light: #f1f5f9;
    --white: #ffffff;
    --gradient: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --radius: 12px;
    --radius-lg: 20px;
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--dark);
    background-color: var(--white);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p { color: var(--gray); }

.lead {
    font-size: 1.25rem;
    font-weight: 400;
}

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--radius);
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--gradient);
    color: var(--white);
    box-shadow: var(--shadow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

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

.btn-secondary:hover {
    background: var(--light);
}

.btn-large {
    padding: 16px 32px;
    font-size: 1.1rem;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--dark);
}

.logo-icon {
    font-size: 2rem;
}

.logo-img {
    height: 50px;
    width: auto;
    object-fit: contain;
}

.logo-img-footer {
    height: 40px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 32px;
}

.nav-links a {
    text-decoration: none;
    color: var(--gray);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary);
}

/* Dropdown Menu */
.has-dropdown {
    position: relative;
}

.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    min-width: 250px;
    padding: 12px 0;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    list-style: none;
    z-index: 1001;
}

.has-dropdown:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown li {
    margin: 0;
}

.dropdown a {
    display: block;
    padding: 10px 20px;
    color: var(--gray);
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.dropdown a:hover {
    background: var(--light);
    color: var(--primary);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--dark);
    transition: all 0.3s ease;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 24px 80px;
    background: linear-gradient(180deg, var(--light) 0%, var(--white) 100%);
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 700px;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin: 24px 0 32px;
    color: var(--gray);
}

.hero-cta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    gap: 48px;
    margin-top: 64px;
    padding-top: 32px;
    border-top: 1px solid var(--light);
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--gray);
}

.hero-visual {
    position: absolute;
    right: 10%;
    top: 50%;
    transform: translateY(-50%);
}

.brain-animation {
    width: 400px;
    height: 400px;
    position: relative;
}

.neuron {
    position: absolute;
    width: 20px;
    height: 20px;
    background: var(--gradient);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

.neuron::after {
    content: '';
    position: absolute;
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-light) 0%, transparent 100%);
    top: 50%;
    left: 100%;
    transform: translateY(-50%);
}

.n1 { top: 20%; left: 30%; animation-delay: 0s; }
.n2 { top: 40%; left: 50%; animation-delay: 0.3s; }
.n3 { top: 60%; left: 25%; animation-delay: 0.6s; }
.n4 { top: 30%; left: 70%; animation-delay: 0.9s; }
.n5 { top: 70%; left: 60%; animation-delay: 1.2s; }

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.7;
    }
    50% {
        transform: scale(1.5);
        opacity: 1;
    }
}

/* Section Styles */
section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-tag {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 50px;
    margin-bottom: 16px;
}

/* About Section */
.about {
    background: var(--white);
}

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

.about-content p {
    margin-bottom: 24px;
}

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

.feature-list li {
    padding: 12px 0;
    padding-left: 32px;
    position: relative;
    color: var(--dark);
}

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

.image-card {
    background: var(--gradient);
    border-radius: var(--radius-lg);
    padding: 48px;
    box-shadow: var(--shadow-xl);
}

.brain-diagram {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.lobe {
    background: rgba(255, 255, 255, 0.2);
    padding: 24px;
    border-radius: var(--radius);
    text-align: center;
    color: var(--white);
    font-weight: 600;
    transition: transform 0.3s ease;
}

.lobe:hover {
    transform: scale(1.05);
    background: rgba(255, 255, 255, 0.3);
}

/* Methods Section */
.methods {
    background: var(--light);
}

.methods-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.method-card {
    background: var(--white);
    padding: 32px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.method-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.method-icon {
    font-size: 3rem;
    margin-bottom: 16px;
}

.method-card h3 {
    margin-bottom: 12px;
    color: var(--dark);
}

/* Programs Section */
.programs {
    background: var(--white);
}

.programs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.program-card {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius-lg);
    border: 2px solid var(--light);
    position: relative;
    transition: all 0.3s ease;
}

.program-card:hover {
    border-color: var(--primary-light);
    transform: translateY(-4px);
}

.program-card.featured {
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
}

.program-badge {
    position: absolute;
    top: -12px;
    left: 24px;
    background: var(--gradient);
    color: var(--white);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
}

.program-card h3 {
    margin-bottom: 8px;
    color: var(--dark);
}

.program-audience {
    color: var(--primary);
    font-weight: 500;
    margin-bottom: 24px;
}

.program-features {
    list-style: none;
    margin-bottom: 32px;
}

.program-features li {
    padding: 8px 0;
    padding-left: 24px;
    position: relative;
    color: var(--gray);
}

.program-features li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: 700;
}

/* Testimonials Section */
.testimonials {
    background: var(--dark);
}

.testimonials .section-tag {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
}

.testimonials h2 {
    color: var(--white);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.testimonial-card {
    background: var(--dark-light);
    padding: 32px;
    border-radius: var(--radius-lg);
}

.testimonial-content p {
    color: var(--gray-light);
    font-style: italic;
    font-size: 1.1rem;
    margin-bottom: 24px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 16px;
}

.author-avatar {
    width: 48px;
    height: 48px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 600;
}

.author-info {
    display: flex;
    flex-direction: column;
}

.author-name {
    color: var(--white);
    font-weight: 600;
}

.author-role {
    color: var(--gray-light);
    font-size: 0.875rem;
}

/* Contact Section */
.contact {
    background: var(--light);
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
}

.contact-info h2 {
    margin-bottom: 16px;
}

.contact-info > p {
    margin-bottom: 32px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--dark);
}

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

.contact-form {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--dark);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--light);
    border-radius: var(--radius);
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.contact-form .btn {
    width: 100%;
}

/* Footer */
.footer {
    background: var(--dark);
    padding: 64px 0 32px;
}

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

.footer-brand p {
    color: var(--gray-light);
    margin-top: 16px;
}

.footer-brand .logo {
    color: var(--white);
}

.footer-links h4 {
    color: var(--white);
    margin-bottom: 24px;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--gray-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--white);
}

.footer-bottom {
    padding-top: 32px;
    border-top: 1px solid var(--dark-light);
    text-align: center;
}

.footer-bottom p {
    color: var(--gray-light);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .hero-visual {
        display: none;
    }

    .about-grid,
    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .methods-grid,
    .programs-grid,
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-links,
    .nav > .btn {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .hero-stats {
        flex-direction: column;
        gap: 24px;
    }

    .methods-grid,
    .programs-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .hero-cta {
        flex-direction: column;
    }

    .hero-cta .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    section {
        padding: 64px 0;
    }
}

/* Mobile Menu Active State */
.nav-links.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 24px;
    box-shadow: var(--shadow-lg);
    gap: 16px;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-in {
    animation: fadeInUp 0.6s ease forwards;
}

/* Page Hero */
.page-hero {
    padding: 160px 0 80px;
    background: linear-gradient(180deg, var(--light) 0%, var(--white) 100%);
    text-align: center;
}

.page-hero h1 {
    margin: 16px 0;
}

.page-hero .hero-subtitle {
    max-width: 600px;
    margin: 0 auto;
}

/* Content Section */
.content-section {
    padding: 80px 0;
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 64px;
    align-items: start;
}

.content-main h2 {
    margin-top: 48px;
    margin-bottom: 24px;
    color: var(--dark);
}

.content-main h2:first-child {
    margin-top: 0;
}

.content-main p {
    margin-bottom: 20px;
    line-height: 1.8;
}

/* Highlight Box */
.highlight-box {
    background: var(--gradient);
    color: var(--white);
    padding: 32px;
    border-radius: var(--radius-lg);
    margin: 32px 0;
}

.highlight-box h3 {
    color: var(--white);
    margin-bottom: 12px;
}

.highlight-box p {
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    font-size: 1.1rem;
}

/* Principle Cards */
.principle-card {
    display: flex;
    gap: 24px;
    padding: 32px;
    background: var(--light);
    border-radius: var(--radius-lg);
    margin-bottom: 24px;
    transition: all 0.3s ease;
}

.principle-card:hover {
    transform: translateX(8px);
    box-shadow: var(--shadow);
}

.principle-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
}

.principle-content h3 {
    margin-bottom: 12px;
    color: var(--dark);
}

.principle-content p {
    margin: 0;
}

/* Styled List */
.styled-list {
    list-style: none;
    margin: 24px 0;
    padding-left: 0;
}

.styled-list li {
    padding: 12px 0 12px 32px;
    position: relative;
    color: var(--gray);
}

.styled-list li::before {
    content: '×';
    position: absolute;
    left: 0;
    color: #ef4444;
    font-weight: 700;
    font-size: 1.2rem;
}

/* CTA Box */
.cta-box {
    background: var(--dark);
    color: var(--white);
    padding: 48px;
    border-radius: var(--radius-lg);
    text-align: center;
    margin-top: 48px;
}

.cta-box h3 {
    color: var(--white);
    margin-bottom: 12px;
}

.cta-box p {
    color: var(--gray-light);
    margin-bottom: 24px;
}

/* Sidebar */
.content-sidebar {
    position: sticky;
    top: 100px;
}

.sidebar-card {
    background: var(--light);
    padding: 24px;
    border-radius: var(--radius-lg);
    margin-bottom: 24px;
}

.sidebar-card.highlight {
    background: var(--gradient);
    color: var(--white);
}

.sidebar-card.highlight h4 {
    color: var(--white);
}

.sidebar-card.highlight p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 16px;
}

.sidebar-card h4 {
    color: var(--dark);
    margin-bottom: 16px;
}

.fact-list,
.source-list {
    list-style: none;
}

.fact-list li,
.source-list li {
    padding: 8px 0;
    color: var(--gray);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.fact-list li:last-child,
.source-list li:last-child {
    border-bottom: none;
}

.fact-list strong {
    color: var(--primary);
    display: block;
    font-size: 1.25rem;
}

.btn-small {
    padding: 10px 20px;
    font-size: 0.9rem;
}

/* Responsive for content pages */
@media (max-width: 1024px) {
    .content-grid {
        grid-template-columns: 1fr;
    }

    .content-sidebar {
        position: static;
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
    }

    .sidebar-card {
        margin-bottom: 0;
    }
}

@media (max-width: 768px) {
    .content-sidebar {
        grid-template-columns: 1fr;
    }

    .principle-card {
        flex-direction: column;
        gap: 16px;
    }

    /* Mobile dropdown */
    .has-dropdown .dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        background: transparent;
        padding: 0;
        padding-left: 16px;
        min-width: auto;
    }

    .nav-links.active .dropdown {
        display: block;
    }
}
