:root {
    /* Set by CMS via JS, these are fallbacks */
    --primary-color: #0d6efd;
    --secondary-color: #0b5ed7;
    --accent-color: #198754;
    
    /* Dynamic Theme Colors */
    --bg-main: #ffffff;
    --bg-alt: #f8f9fa;
    --bg-glass: rgba(255, 255, 255, 0.85);
    --bg-card: #ffffff;
    --border-color: rgba(0, 0, 0, 0.08);
    --border-hover: rgba(13, 110, 253, 0.3);
    
    --text-primary: #212529;
    --text-secondary: #6c757d;
    --text-inverse: #ffffff;
    
    /* Shadows for 3D Professional Look */
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.1);
    --shadow-3d: 0 30px 60px rgba(0, 0, 0, 0.15), 0 15px 15px rgba(0,0,0,0.05);
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

body {
    font-family: var(--font-body);
    background-color: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.3s;
}

h1, h2, h3, h4, h5, h6 { font-family: var(--font-heading); font-weight: 700; color: var(--text-primary); }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* Clean Corporate Glassmorphism */
.glass {
    background: var(--bg-glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
}

/* 3D Professional Card Component */
.glass-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 0; /* Changed from 2.5rem to 0 to support card images better */
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease, border-color 0.4s;
    box-shadow: var(--shadow-sm);
    transform-style: preserve-3d;
    perspective: 1000px;
    position: relative;
    overflow: hidden; /* Ensure rounded corners clip and overlays work */
    z-index: 1;
}

/* Deep 3D Hover Pop */
.glass-card:hover {
    transform: translateY(-12px) scale(1.02);
    border-color: var(--border-hover);
    box-shadow: var(--shadow-3d);
    z-index: 10;
}

/* Inner elements pop out individually via app.js translateZ */
.glass-card > * {
    transition: transform 0.4s ease;
}

/* Gradients */
.text-gradient {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 8px; /* Professional square-rounded */
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-family: var(--font-body);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

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

.btn-primary:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(13, 110, 253, 0.3);
}

/* Navbar */
header {
    position: fixed;
    top: 0; left: 0; width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition);
}

header.scrolled { padding: 12px 0; box-shadow: var(--shadow-sm); }
.nav-container { display: flex; justify-content: space-between; align-items: center; }
.logo { font-family: var(--font-heading); font-size: 1.8rem; font-weight: 800; letter-spacing: -0.5px; }

.nav-links { display: flex; gap: 30px; align-items: center; }
.nav-links a { font-size: 0.95rem; font-weight: 500; position: relative; color: var(--text-primary); transition: color 0.3s; }
.nav-links a:hover { color: var(--primary-color); }

.logo-img {
    height: 50px; /* Larger for desktop */
    width: auto;
    vertical-align: middle;
    transition: var(--transition);
}

.mobile-menu-btn { 
    display: none; 
    font-size: 1.8rem; 
    background: none; 
    border: none; 
    color: var(--text-primary); 
    cursor: pointer;
    z-index: 1001;
    transition: var(--transition);
}
.mobile-menu-btn:hover { color: var(--primary-color); }

/* Hero Section */
.hero {
    min-height: 95vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 100px;
    background: radial-gradient(circle at top right, var(--bg-alt) 0%, var(--bg-main) 100%);
    overflow: hidden;
}

.hero-container {
    display: flex;
    align-items: center;
    position: relative;
    z-index: 10;
    width: 100%;
}

.hero-content {
    position: relative;
    z-index: 2;
    flex: 0 0 55%;
    max-width: 650px;
    padding-right: 50px;
}

#hero-3d-container {
    position: absolute;
    top: 0;
    right: 0;
    width: 60%;
    height: 100%;
    z-index: 1;
}

#computer-canvas {
    width: 100%;
    height: 100%;
    outline: none;
}

.hero-btns {
    display: flex;
    gap: 15px;
}

.hero-tag {
    display: inline-block;
    padding: 8px 18px;
    border-radius: 4px;
    background: rgba(13, 110, 253, 0.1);
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.85rem;
    margin-bottom: 25px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.hero h1 { font-size: 4rem; line-height: 1.1; margin-bottom: 24px; letter-spacing: -1px; }
.hero p { font-size: 1.15rem; color: var(--text-secondary); margin-bottom: 40px; max-width: 550px; }

/* Sections */
.section { padding: 90px 0; position: relative; }
.team-bg { background-color: var(--bg-alt); }

.section-header { text-align: center; margin-bottom: 60px; }
.section-header h2 { font-size: 3rem; margin-bottom: 15px; }
.section-header p { color: var(--text-secondary); font-size: 1.1rem; max-width: 600px; margin: 0 auto; }

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.course-card { text-align: left; }
.course-icon {
    width: 70px; height: 70px;
    border-radius: 12px;
    background: var(--bg-alt);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 25px;
    font-size: 2rem;
    border: 1px solid var(--border-color);
}

.course-card h3 { font-size: 1.4rem; margin-bottom: 12px; }
.course-card p { color: var(--text-secondary); font-size: 0.95rem; margin-bottom: 25px; }

.course-link {
    color: var(--primary-color);
    font-weight: 600; font-size: 0.9rem;
    display: inline-flex; align-items: center;
    transition: transform 0.3s;
}
.course-link:hover { transform: translateX(5px); }

/* Team Section */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.team-member { text-align: center; }
.team-member-img {
    width: 140px; height: 140px;
    border-radius: 50%;
    margin: 0 auto 20px;
    background: var(--primary-color);
    padding: 3px;
    box-shadow: var(--shadow-lg);
}

.team-member-img div {
    width: 100%; height: 100%;
    border-radius: 50%;
    background-color: var(--bg-card);
    display: flex; align-items: center; justify-content: center;
    font-size: 2.5rem; color: var(--primary-color); font-weight: 700;
}

/* Footer */
footer {
    background-color: var(--bg-alt);
    padding: 80px 0 30px;
    border-top: 1px solid var(--border-color);
}

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

.footer-brand p { color: var(--text-secondary); }
.footer-nav h4 { font-size: 1.1rem; margin-bottom: 20px; }
.footer-nav ul li { margin-bottom: 12px; }
.footer-nav ul li a { color: var(--text-secondary); transition: color 0.3s; }
.footer-nav ul li a:hover { color: var(--primary-color); }

/* GSAP Defaults handled dynamically */

/* Courses Carousel */
.courses-carousel-index {
    position: relative;
    padding: 0px 0 40px; /* Reduced top padding */
}

.carousel-viewport {
    overflow: hidden;
    position: relative;
    padding: 20px 5px 30px; /* Space for shadows */
}

.carousel-track {
    display: flex;
    gap: 30px;
    align-items: stretch; /* Ensure all cards stretch to the same height */
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    will-change: transform;
}

.course-card-premium {
    flex: 0 0 calc(33.333% - 20px);
    background: var(--bg-card);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--border-color);
    position: relative;
    display: flex;
    flex-direction: column;
    height: auto;
}

.course-card-premium:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-3d);
    border-color: var(--border-hover);
}

.card-image-wrap {
    position: relative;
    height: 220px; /* Slight increase for better impact */
    width: 100%;
    overflow: hidden;
}

.card-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(180deg, rgba(0,0,0,0) 50%, rgba(0,0,0,0.7) 100%);
    z-index: 1;
}

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

.course-card-premium:hover .card-image-wrap img {
    transform: scale(1.1);
}

.category-tag {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--primary-color);
    color: white;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
}

.card-content {
    padding: 25px;
    flex: 1; /* Take up remaining space */
    display: flex;
    flex-direction: column;
}

.rating-stars {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 15px;
    color: #ff9800; /* Standard star color */
    font-size: 0.9rem;
}

.rating-stars .count {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-left: 5px;
    background: rgba(0,0,0,0.04);
    padding: 2px 8px;
    border-radius: 4px;
}

.course-card-premium h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--text-primary);
    line-height: 1.3;
    min-height: 3.4em; /* Ensure titles take roughly the same space */
}

.course-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.meta-item i {
    color: var(--primary-color);
    font-size: 1rem;
}

.learn-more-btn {
    margin-top: auto; /* Push to bottom */
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px;
    background: var(--bg-alt);
    border-radius: 10px;
    color: var(--text-primary);
    font-weight: 600;
    transition: var(--transition);
}

.course-card-premium:hover .learn-more-btn {
    background: var(--primary-color);
    color: white;
}

/* Carousel Controls */
.carousel-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    margin-top: 10px; /* Reduced from 30px */
}

.carousel-arrow {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: white;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    font-size: 1.2rem;
    color: var(--text-primary);
}

.carousel-arrow:hover:not(.disabled) {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: scale(1.1);
}

.carousel-arrow.disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.carousel-dots {
    display: flex;
    gap: 10px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--border-color);
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    background: var(--primary-color);
    width: 30px;
    border-radius: 10px;
}

@media (max-width: 968px) {
    .mobile-menu-btn { display: block; }
    
    .logo-img { height: 40px; } /* Slightly smaller for mobile */

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: var(--bg-main);
        flex-direction: column;
        justify-content: center;
        gap: 25px;
        transition: 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
        z-index: 1000;
        box-shadow: -10px 0 30px rgba(0,0,0,0.1);
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        font-size: 1.4rem;
        font-weight: 600;
    }

    .hero {
        padding-top: 120px;
        text-align: center;
        min-height: auto;
        display: block;
    }

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

    .hero-content {
        flex: 0 0 100%;
        max-width: 100%;
        padding-right: 0;
        margin-bottom: 30px;
    }

    .hero-btns {
        justify-content: center;
        flex-wrap: wrap;
    }

    .hero h1 {
        font-size: 2.8rem;
    }

    .hero p {
        margin: 0 auto 30px;
    }

    #hero-3d-container {
        position: relative;
        width: 100%;
        height: 400px;
        z-index: 1;
        margin-top: 0;
    }

    .section {
        padding: 60px 0;
    }

    .section-title {
        font-size: 2.2rem !important;
    }

    .page-header {
        padding: 100px 0 60px;
    }

    .page-header h1 {
        font-size: 2.2rem !important;
    }

    iframe {
        height: 300px !important;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
}

@media (max-width: 600px) {
    .hero h1 { font-size: 2.3rem; }
    .hero-tag { font-size: 0.75rem; padding: 6px 12px; }
    
    .glass-card {
        padding: 1.5rem;
    }

    .course-card-premium {
        flex: 0 0 100%;
    }
    .carousel-track {
        gap: 20px;
    }
}

/* High-Quality Premium Form Styling */
.form-group {
    margin-bottom: 20px;
}
.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-primary);
    font-size: 0.95rem;
}
.form-control {
    width: 100%;
    padding: 14px 18px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.5);
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text-primary);
    transition: var(--transition);
    outline: none;
}
.form-control:focus {
    background: #ffffff;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.1);
}
.form-control::placeholder {
    color: var(--text-secondary);
    opacity: 0.7;
}
