/* ELEGANT ENTERPRISE THEME */

/* 1. Default Light Mode (and Forced Light Mode) */
:root, 
[data-theme="light"] {
    --bg-main: #F8FAFC;
    --bg-alt: #F1F5F9;
    --surface: #FFFFFF;
    --border: #E2E8F0;
    --text-main: #0F172A;
    --text-muted: #475569;
    --primary: #0F172A;
    --primary-hover: #1E293B;
    --on-primary: #FFFFFF;
    --accent: #0284C7; 
}

/* 2. Native System Dark Mode (If user prefers dark AND hasn't manually clicked light) */
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --bg-main: #0B0F19;
        --bg-alt: #111827;
        --surface: #1F2937;
        --border: #374151;
        --text-main: #F8FAFC;
        --text-muted: #94A3B8;
        --primary: #F8FAFC;
        --primary-hover: #E2E8F0;
        --on-primary: #0F172A;
        --accent: #38BDF8;
    }
}

/* 3. Forced Dark Mode (If user clicks the toggle) */
[data-theme="dark"] {
    --bg-main: #0B0F19;
    --bg-alt: #111827;
    --surface: #1F2937;
    --border: #374151;
    --text-main: #F8FAFC;
    --text-muted: #94A3B8;
    --primary: #F8FAFC;
    --primary-hover: #E2E8F0;
    --on-primary: #0F172A;
    --accent: #38BDF8;
}

/* RESET & BASE */
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    background-color: var(--bg-main);
    color: var(--text-main);
    font-family: 'Inter', system-ui, sans-serif;
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.overflow-hidden { overflow-x: hidden; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 6rem 0; }
.bg-alt { background-color: var(--bg-alt); }

/* TYPOGRAPHY */
.section-title { font-size: 1.75rem; font-weight: 700; margin-bottom: 2.5rem; letter-spacing: -0.02em; }
.hero-title { font-size: 3.5rem; font-weight: 800; line-height: 1.1; margin-bottom: 1.5rem; letter-spacing: -0.03em; }
.hero-subtitle { font-size: 1.25rem; color: var(--text-muted); margin-bottom: 2.5rem; max-width: 800px; }

/* NAVBAR */
.navbar {
    position: sticky;
    top: 0;
    width: 100%;
    padding: 1.25rem 0;
    background-color: rgba(var(--bg-main), 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}
.navbar.scrolled { border-bottom: 1px solid var(--border); background-color: var(--bg-main); }
.nav-container { display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 1.5rem; font-weight: 800; text-decoration: none; color: var(--text-main); letter-spacing: -0.05em; }
.nav-links { display: flex; gap: 1.5rem; list-style: none; align-items: center; }
.nav-item { text-decoration: none; color: var(--text-muted); font-weight: 500; font-size: 0.95rem; transition: color 0.2s; }
.nav-item:hover { color: var(--text-main); }
.icon-btn { background: none; border: none; color: var(--text-main); cursor: pointer; display: flex; align-items: center; justify-content: center; padding: 0.5rem; border-radius: 6px; transition: background 0.2s; }
.icon-btn:hover { background: var(--border); }

/* HERO SECTION */
.hero { padding: 8rem 0 5rem; }
.badge {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    border: 1px solid var(--border);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
    color: var(--text-muted);
}

/* BUTTONS */
.hero-btns { display: flex; gap: 1rem; }
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 0.75rem 1.75rem; border-radius: 8px; font-weight: 600; font-size: 0.95rem;
    text-decoration: none; transition: all 0.2s ease;
}
.btn-primary { background-color: var(--primary); color: var(--on-primary); }
.btn-primary:hover { background-color: var(--primary-hover); transform: translateY(-2px); }
.btn-secondary { background-color: transparent; color: var(--text-main); border: 1px solid var(--border); }
.btn-secondary:hover { border-color: var(--text-muted); background-color: var(--surface); }

/* GRIDS & CARDS */
.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

.card {
    background-color: var(--surface);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    transition: transform 0.2s ease, border-color 0.2s ease;
}
.card:hover { transform: translateY(-4px); border-color: var(--text-muted); }

/* SPECIFIC CARDS */
.card-icon { margin-bottom: 1.5rem; color: var(--accent); }
.card-title { font-size: 1.15rem; font-weight: 600; margin-bottom: 0.75rem; }
.card-body { font-size: 0.95rem; color: var(--text-muted); line-height: 1.6; }

.cert-card { padding: 1.5rem; border-left: 3px solid var(--accent); }
.cert-title { font-size: 1rem; font-weight: 600; margin-bottom: 0.25rem; }
.cert-desc { font-size: 0.85rem; color: var(--text-muted); }

/* --- Updated Testimonial Author Styles --- */
.quote-card { display: flex; flex-direction: column; justify-content: space-between; }
.quote-text { font-size: 1rem; font-style: italic; color: var(--text-main); margin-bottom: 1.5rem; }

.quote-author { 
    display: flex; 
    align-items: center; 
    gap: 1rem; 
    margin-top: auto; 
}

.author-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border);
}

.author-details { display: flex; flex-direction: column; }
.author-details strong { font-size: 0.95rem; color: var(--text-main); }
.author-details span { font-size: 0.85rem; color: var(--text-muted); line-height: 1.3; }

/* FOOTER */
.footer { padding: 3rem 0; text-align: center; border-top: 1px solid var(--border); color: var(--text-muted); font-size: 0.85rem; }
.footer a { color: var(--accent); text-decoration: none; }
.footer a:hover { text-decoration: underline; }

/* RESPONSIVE FIX */
@media (max-width: 768px) {
    .hero-title { font-size: 2.2rem; }
    .hero { padding: 4rem 0 3rem; }
    
    /* Ensure the container actually stays visible and centered */
    .nav-container {
        display: flex !important;
        justify-content: space-between;
        align-items: center;
        width: 100%;
    }

    /* Tighten the gap so 3 links + toggle fit on a 390px screen */
    .nav-links { 
        display: flex !important;
        gap: 0.6rem; 
        padding-left: 0;
    }

    .nav-item { 
        display: block !important;
        font-size: 0.75rem; 
        font-weight: 600;
        white-space: nowrap; /* Prevents links from wrapping to a second line */
    }

    .logo { font-size: 1.1rem; }

    /* Shrink the carousel cards even more for mobile so they don't overflow */
    .carousel-track .quote-card { 
        width: 280px; 
    }
}

/* =========================================
   INFINITE SCROLLING CAROUSEL
   ========================================= */
.carousel-container {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    overflow: hidden;
    position: relative;
    padding: 1rem 0 2rem;
}

.carousel-container::before,
.carousel-container::after {
    content: "";
    position: absolute;
    top: 0;
    width: 15%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}
.carousel-container::before {
    left: 0;
    background: linear-gradient(to right, var(--bg-alt) 0%, transparent 100%);
}
.carousel-container::after {
    right: 0;
    background: linear-gradient(to left, var(--bg-alt) 0%, transparent 100%);
}

.carousel-track {
    display: flex;
    gap: 2rem;
    width: max-content;
    animation: scrollCarousel 40s linear infinite;
    
    will-change: transform;
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    perspective: 1000px;
}

.carousel-track:hover {
    animation-play-state: paused;
}

.carousel-track .quote-card {
    width: 400px;
    flex-shrink: 0;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.carousel-track .quote-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .carousel-track .quote-card:hover {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
}

@keyframes scrollCarousel {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(calc(-50% - 1rem), 0, 0); }
}

@media (max-width: 768px) {
    .carousel-track .quote-card { width: 300px; }
    .carousel-container::before,
    .carousel-container::after { width: 5%; }
}/* TYPOGRAPHY */
.section-title { font-size: 1.75rem; font-weight: 700; margin-bottom: 2.5rem; letter-spacing: -0.02em; }
.hero-title { font-size: 3.5rem; font-weight: 800; line-height: 1.1; margin-bottom: 1.5rem; letter-spacing: -0.03em; }
.hero-subtitle { font-size: 1.25rem; color: var(--text-muted); margin-bottom: 2.5rem; max-width: 800px; }

/* NAVBAR */
.navbar {
    position: sticky;
    top: 0;
    width: 100%;
    padding: 1.25rem 0;
    background-color: rgba(var(--bg-main), 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}
.navbar.scrolled { border-bottom: 1px solid var(--border); background-color: var(--bg-main); }
.nav-container { display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 1.5rem; font-weight: 800; text-decoration: none; color: var(--text-main); letter-spacing: -0.05em; }
.nav-links { display: flex; gap: 1.5rem; list-style: none; align-items: center; }
.nav-item { text-decoration: none; color: var(--text-muted); font-weight: 500; font-size: 0.95rem; transition: color 0.2s; }
.nav-item:hover { color: var(--text-main); }
.icon-btn { background: none; border: none; color: var(--text-main); cursor: pointer; display: flex; align-items: center; justify-content: center; padding: 0.5rem; border-radius: 6px; transition: background 0.2s; }
.icon-btn:hover { background: var(--border); }

/* HERO SECTION */
.hero { padding: 8rem 0 5rem; }
.badge {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    border: 1px solid var(--border);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
    color: var(--text-muted);
}

/* BUTTONS */
.hero-btns { display: flex; gap: 1rem; }
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 0.75rem 1.75rem; border-radius: 8px; font-weight: 600; font-size: 0.95rem;
    text-decoration: none; transition: all 0.2s ease;
}
.btn-primary { background-color: var(--primary); color: var(--on-primary); }
.btn-primary:hover { background-color: var(--primary-hover); transform: translateY(-2px); }
.btn-secondary { background-color: transparent; color: var(--text-main); border: 1px solid var(--border); }
.btn-secondary:hover { border-color: var(--text-muted); background-color: var(--surface); }

/* GRIDS & CARDS */
.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

.card {
    background-color: var(--surface);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    transition: transform 0.2s ease, border-color 0.2s ease;
}
.card:hover { transform: translateY(-4px); border-color: var(--text-muted); }

/* SPECIFIC CARDS */
.card-icon { margin-bottom: 1.5rem; color: var(--accent); }
.card-title { font-size: 1.15rem; font-weight: 600; margin-bottom: 0.75rem; }
.card-body { font-size: 0.95rem; color: var(--text-muted); line-height: 1.6; }

.cert-card { padding: 1.5rem; border-left: 3px solid var(--accent); }
.cert-title { font-size: 1rem; font-weight: 600; margin-bottom: 0.25rem; }
.cert-desc { font-size: 0.85rem; color: var(--text-muted); }

/* --- Updated Testimonial Author Styles --- */
.quote-card { display: flex; flex-direction: column; justify-content: space-between; }
.quote-text { font-size: 1rem; font-style: italic; color: var(--text-main); margin-bottom: 1.5rem; }

.quote-author { 
    display: flex; 
    align-items: center; 
    gap: 1rem; 
    margin-top: auto; 
}

.author-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border);
}

.author-details { display: flex; flex-direction: column; }
.author-details strong { font-size: 0.95rem; color: var(--text-main); }
.author-details span { font-size: 0.85rem; color: var(--text-muted); line-height: 1.3; }

/* FOOTER */
.footer { padding: 3rem 0; text-align: center; border-top: 1px solid var(--border); color: var(--text-muted); font-size: 0.85rem; }
.footer a { color: var(--accent); text-decoration: none; }
.footer a:hover { text-decoration: underline; }

/* RESPONSIVE */
@media (max-width: 768px) {
    .hero-title { font-size: 2.2rem; }
    .hero { padding: 4rem 0 3rem; }
    
    /* Keep Nav Bar visible but compact */
    .nav-links { 
        gap: 0.75rem; 
    }
    .nav-item { 
        display: block; /* Changed from none */
        font-size: 0.8rem; 
    }
    .logo { font-size: 1.2rem; }
}

/* =========================================
   INFINITE SCROLLING CAROUSEL
   ========================================= */
.carousel-container {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    overflow: hidden;
    position: relative;
    padding: 1rem 0 2rem;
}

.carousel-container::before,
.carousel-container::after {
    content: "";
    position: absolute;
    top: 0;
    width: 15%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}
.carousel-container::before {
    left: 0;
    background: linear-gradient(to right, var(--bg-alt) 0%, transparent 100%);
}
.carousel-container::after {
    right: 0;
    background: linear-gradient(to left, var(--bg-alt) 0%, transparent 100%);
}

.carousel-track {
    display: flex;
    gap: 2rem;
    width: max-content;
    animation: scrollCarousel 40s linear infinite;
    
    will-change: transform;
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    perspective: 1000px;
}

.carousel-track:hover {
    animation-play-state: paused;
}

.carousel-track .quote-card {
    width: 400px;
    flex-shrink: 0;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.carousel-track .quote-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .carousel-track .quote-card:hover {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
}

@keyframes scrollCarousel {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(calc(-50% - 1rem), 0, 0); }
}

@media (max-width: 768px) {
    .carousel-track .quote-card { width: 300px; }
    .carousel-container::before,
    .carousel-container::after { width: 5%; }
}
