@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@200..800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@20..48,100..700,0..1,-50..200');

:root {
    /* Colors */
    --primary: #1458b8;
    --primary-light: #4c87e0;
    --primary-dark: #0d3d82;
    --accent: #eef4ff;
    --text-main: #1a1a1a;
    --text-muted: #666666;
    --surface: #ffffff;
    --surface-alt: #f8fbff;
    --border: #e2e8f0;
    
    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 4rem;
    --space-xl: 8rem;
    
    /* Others */
    --radius: 8px;
    --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);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Manrope', sans-serif;
    color: var(--text-main);
    background-color: var(--surface);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

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

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Reusable Layout Components */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: var(--space-lg) 0;
}

.grid {
    display: grid;
    gap: 2rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-family: inherit;
}

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

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

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

.btn-outline:hover {
    background-color: var(--primary);
    color: white;
}

/* Header & Nav */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}

.admin-bar header {
    top: 32px;
}

@media (max-width: 782px) {
    .admin-bar header {
        top: 46px;
    }
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* About Page Specifics */
.about-hero-section {
    padding-top: 10rem;
    background-color: var(--surface-alt);
}

.about-hero-grid {
    grid-template-columns: 1fr 1fr;
    align-items: flex-start;
    gap: 4rem;
}

.history-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

/* Overlay and Drawer Base */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 5; /* Relative to header context */
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

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

.nav-container {
    display: flex;
    align-items: center;
    z-index: 10; /* Above overlay */
}

.close-menu {
    display: none;
}

.nav-links, .nav-links ul {
    display: flex;
    gap: 2rem;
    align-items: center;
}

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

.nav-links a:after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: var(--transition);
}

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

.mobile-toggle {
    display: none;
    font-size: 2rem;
    cursor: pointer;
}

/* Home Hero Slider */
.home-slider {
    position: relative;
    overflow: hidden;
}

.main-hero-swiper {
    width: 100%;
    height: 90vh;
}

.hero-slide {
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    position: relative;
}

.slide-content-wrap {
    height: 100%;
    display: flex;
    align-items: center;
    z-index: 2;
}

.slide-content {
    max-width: 800px;
    color: white;
}

.slide-title {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    color: white;
}

.slide-description {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
    max-width: 600px;
}

.slide-actions {
    display: flex;
    gap: 1rem;
}

.btn-outline-white {
    background: transparent;
    border: 2px solid white;
    color: white;
}

.btn-outline-white:hover {
    background: white;
    color: var(--primary);
}

/* Swiper Customization */
.swiper-button-next,
.swiper-button-prev {
    color: white;
    background: rgba(255, 255, 255, 0.1);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    backdrop-filter: blur(5px);
}

.swiper-button-next:after,
.swiper-button-prev:after {
    font-size: 1.2rem;
    font-weight: 900;
}

.swiper-pagination-bullet {
    background: white;
    opacity: 0.5;
}

.swiper-pagination-bullet-active {
    opacity: 1;
    background: white;
    width: 30px;
    border-radius: 4px;
}

/* Slider Animations */
.swiper-slide-active .slide-title {
    animation: fadeInUp 0.8s ease-out forwards;
}

.swiper-slide-active .slide-description {
    animation: fadeInUp 0.8s ease-out 0.2s forwards;
    opacity: 0;
}

.swiper-slide-active .slide-actions {
    animation: fadeInUp 0.8s ease-out 0.4s forwards;
    opacity: 0;
}

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

/* Cards */
.card {
    background: var(--surface);
    padding: 2rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    transition: var(--transition);
}

.card:hover {
    border-color: var(--primary-light);
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.card-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
}

/* Footer */
footer {
    background-color: #0c1a30;
    color: white;
    padding: var(--space-lg) 0 var(--space-md);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 4rem;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    display: block;
}

.footer-desc {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 2rem;
}

.footer-links h4,
.widget-title {
    color: white;
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.footer-links ul,
.footer-menu {
    list-style: none;
    padding: 0;
}

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

.footer-links ul li a,
.footer-menu li a {
    color: rgba(255,255,255,0.7);
}

.footer-links ul li a:hover,
.footer-menu li a:hover {
    color: white;
    padding-left: 5px;
}

.footer-social a {
    color: rgba(255,255,255,0.7);
    transition: var(--transition);
}

.footer-social a:hover {
    color: white;
    transform: translateY(-3px);
}

.footer-bottom {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

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

/* Mobile Responsive */
@media (max-width: 1024px) {
    .slide-title { font-size: 3rem; }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .nav-container {
        position: fixed;
        top: 0;
        right: 0;
        width: 300px;
        height: 100vh;
        background: white;
        padding: 5rem 2rem;
        z-index: 1002;
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
        display: block; /* Stack internally */
    }
    
    .nav-container.active {
        transform: translateX(0);
    }

    .close-menu {
        display: block;
        position: absolute;
        top: 25px;
        right: 25px;
        cursor: pointer;
        padding: 5px;
        color: var(--text-main);
    }

    .nav-links, .nav-links ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }
    
    .mobile-toggle {
        display: block;
    }
    
    .main-hero-swiper {
        height: 80vh;
    }

    .slide-content-wrap {
        text-align: center;
        justify-content: center;
    }

    .slide-title { 
        font-size: 2.2rem; 
        margin-bottom: 1rem;
    }

    .slide-description {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }

    .slide-actions {
        flex-direction: column;
        gap: 0.8rem;
        align-items: center;
    }

    .swiper-button-next,
    .swiper-button-prev {
        display: none; /* Hide arrows on small screens to avoid overlap */
    }
    
    .section { padding: var(--space-md) 0; }
    
    .about-hero-section {
        padding-top: 6rem;
    }

    .about-hero-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-hero-grid h1 {
        font-size: 2.5rem !important;
    }

    .history-grid {
        display: flex;
        overflow-x: auto;
        gap: 1.5rem;
        padding: 1rem 0 2rem;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
    }

    .history-grid .card {
        flex: 0 0 85%;
        scroll-snap-align: start;
    }

    .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
}

/* Stats Section */
.stats-section {
    padding: 6rem 0;
}

.stats-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    text-align: center;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    line-height: 1;
}

.stat-label {
    font-size: 1.1rem;
    opacity: 0.9;
    font-weight: 500;
}

/* Team Grid */
.team-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.expert-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

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

.expert-img {
    height: 300px;
    overflow: hidden;
}

.expert-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.expert-card:hover .expert-img img {
    transform: scale(1.05);
}

.expert-info {
    padding: 1.5rem;
}

.expert-info h4 {
    font-size: 1.4rem;
    margin-bottom: 0.25rem;
    color: var(--secondary);
}

.expert-role {
    display: block;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.expert-info p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Insights Grid */
.insights-grid {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.insight-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

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

.insight-img {
    height: 220px;
    overflow: hidden;
}

.insight-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.insight-content {
    padding: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.insight-date {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
    display: block;
}

.insight-content h4 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.insight-content h4 a {
    color: var(--secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.insight-content h4 a:hover {
    color: var(--primary);
}

.insight-content p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    flex: 1;
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);
    font-weight: 700;
    text-decoration: none;
    font-size: 0.95rem;
}

.read-more span {
    transition: transform 0.3s ease;
}

.read-more:hover span {
    transform: translateX(5px);
}

/* Trusted By / Logo Scroll */
.trusted-by-section {
    padding: 4rem 0;
    border-top: 1px solid var(--border);
}

.logo-scroll {
    overflow: hidden;
    padding: 1rem 0;
    position: relative;
    mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}

.logo-track {
    display: flex;
    width: max-content;
    gap: 5rem;
    animation: scroll 30s linear infinite;
}

.logo-track img {
    height: 40px;
    width: auto;
    filter: grayscale(1) opacity(0.5);
    transition: filter 0.3s ease;
}

.logo-track img:hover {
    filter: grayscale(0) opacity(1);
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-50% - 2.5rem)); }
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .stat-number {
        font-size: 2.5rem;
    }
    
    .stats-grid {
        gap: 2rem;
    }

    .insight-img {
        height: 200px;
    }
}