:root {
    --bg-primary: #0a0a0f; 
    --bg-secondary: #12121a;
    --bg-gradient: linear-gradient(135deg, #0a0a0f 0%, #1a1a2e 100%);
    --accent-primary: #bc13fe;
    --accent-secondary: #00f3ff;
    --text-high: #ffffff;
    --text-med: #a0a0b8;
    --text-low: #7a7a8a;
    --nav-height: 80px;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

html, body {
    background: var(--bg-gradient);
    background-attachment: fixed;
    color: var(--text-high);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    position: relative;
    min-height: 100vh;
}

h1, h2, h3, h4, .logo {
    font-family: 'Outfit', sans-serif;
    letter-spacing: -0.02em;
}

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

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    height: var(--nav-height);
    background: transparent;
    z-index: 1000;
    transition: all 0.4s ease;
}

.navbar.scrolled {
    background: rgba(10, 10, 15, 0.85);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.navbar .container {
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

.logo, .logo:link, .logo:visited, .logo:hover, .logo:active {
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: center;
}

.logo img {
    height: 45px;
    width: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.logo:hover img {
    transform: scale(1.05);
}

.footer-brand .logo img {
    height: 60px;
    margin-bottom: 15px;
}

/* Custom Cursor or Hover Effects */
.btn-primary {
    position: relative;
    overflow: hidden;
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, transparent 70%);
    opacity: 0;
    transition: var(--transition);
}

.btn-primary:hover::after {
    opacity: 1;
    transform: translate(20%, 20%);
}

.nav-links {
    display: flex;
    gap: 32px;
    margin-left: auto; /* Pushes links to the right side */
}

.menu-toggle {
    display: none; /* Hidden on desktop */
}

.nav-links a {
    text-decoration: none;
    color: var(--text-med);
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition);
}

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

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    font-family: 'Outfit', sans-serif;
    border: 1px solid transparent;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-primary), #8a00ff);
    color: white;
    box-shadow: 0 4px 15px rgba(188, 19, 254, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(188, 19, 254, 0.5);
}

.btn-secondary {
    background: var(--glass-bg);
    color: var(--text-high);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(5px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.btn-outline {
    border: 1px solid var(--accent-secondary);
    color: var(--accent-secondary);
}

.btn-outline:hover {
    background: var(--accent-secondary);
    color: var(--bg-primary);
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url('assets/hero.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(10, 10, 15, 0.4) 0%, rgba(10, 10, 15, 0.95) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.hero h1 {
    font-size: 5rem;
    font-weight: 900;
    margin-bottom: 24px;
    line-height: 1.1;
    max-width: 900px;
    background: linear-gradient(135deg, #ffffff 0%, #a0a0b8 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.8rem;
    }
    .hero p {
        font-size: 1.1rem;
    }
}

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

.hero p {
    font-size: 1.4rem;
    color: var(--text-high);
    font-weight: 500;
    max-width: 800px;
    margin: 0 auto 48px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-btns {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* Center Visual Element */
.center-visual {
    padding: 100px 0;
}

.code-block-wrapper {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
}

.code-block {
    background: var(--bg-secondary);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 30px;
    position: relative;
    z-index: 2;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}

.window-controls {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
}

.control {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.red { background: #ff5f56; }
.yellow { background: #ffbd2e; }
.green { background: #27c93f; }

.code-content {
    font-family: 'Courier New', Courier, monospace;
    font-size: 1.1rem;
    line-height: 1.8;
}

.keyword { color: var(--accent-primary); }
.variable { color: var(--text-high); }
.boolean { color: var(--accent-secondary); }
.string { color: #50fa7b; }

.glow-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, rgba(188, 19, 254, 0.15) 0%, transparent 70%);
    z-index: 1;
    filter: blur(40px);
}

/* Sections */
section {
    padding: 180px 0; /* Standardized "1 inch" gap */
}

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

/* About Us */
.about {
    padding-bottom: 60px; /* Further reduced for tighter connection */
}

.about-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr; /* Text 60%, Image 40% */
    gap: 60px;
    align-items: stretch;
    justify-content: space-between;
}

.about-lead {
    font-size: 1.4rem;
    color: var(--text-high);
    margin-bottom: 24px;
}

.about-description {
    font-size: 1.1rem;
    color: var(--text-med);
    line-height: 1.7;
    margin-bottom: 24px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}

.stat-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 24px;
    border-radius: 16px;
    border: 1px solid var(--glass-border);
    text-align: center;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.stat-number-wrapper {
    display: flex;
    justify-content: center;
    align-items: baseline;
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent-primary);
    margin-bottom: 4px;
}

.stat-number {
    display: inline-block;
}

.stat-suffix {
    display: inline-block;
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-low);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.design-tools {
    display: flex;
    gap: 12px;
}

.tool-tag {
    padding: 8px 16px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text-high);
}

.about-visual {
    position: relative;
}

.visual-card {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.4);
    height: 100%;
}

.visual-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: var(--transition);
}

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

.visual-glow {
    position: absolute;
    top: 50%;
    right: -20%;
    width: 60%;
    height: 60%;
    background: radial-gradient(circle, rgba(0, 243, 255, 0.15) 0%, transparent 70%);
    filter: blur(40px);
    z-index: -1;
}

@media (max-width: 992px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 60px;
        text-align: center;
    }
    .stats-grid {
        grid-template-columns: 1fr;
        max-width: 300px;
        margin: 0 auto 40px;
    }
    .design-tools {
        justify-content: center;
        flex-wrap: wrap;
        margin-bottom: 40px;
    }
    .about-visual {
        max-width: 500px;
        margin: 0 auto;
    }
}

/* Why Choose Us Section */
.why-us-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.why-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 40px 32px;
    border-radius: 24px;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}

.why-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-secondary);
    box-shadow: 0 20px 40px rgba(0, 243, 255, 0.1);
}

.why-icon {
    width: 64px;
    height: 64px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    font-size: 1.5rem;
    color: var(--accent-secondary);
    transition: var(--transition);
}

.why-card:hover .why-icon {
    background: var(--accent-secondary);
    color: var(--bg-primary);
    transform: rotate(10deg);
}

.why-card h3 {
    font-size: 1.25rem;
    margin-bottom: 16px;
    color: var(--text-high);
}

.why-card p {
    color: var(--text-med);
    font-size: 0.95rem;
    line-height: 1.6;
}

@media (max-width: 992px) {
    .why-us-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }
}

/* Enrollment & Highlights */
.enroll {
    background: rgba(255, 255, 255, 0.02);
    position: relative;
    overflow: hidden;
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
}

.enroll-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 80px;
    align-items: center;
}

.highlights-stack {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.highlight-item {
    display: flex;
    gap: 24px;
    padding: 24px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    transition: var(--transition);
    cursor: default;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
}

.highlight-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--accent-primary);
    transform: translateX(10px);
    box-shadow: 0 10px 30px rgba(188, 19, 254, 0.1);
}

.highlight-icon {
    width: 56px;
    height: 56px;
    min-width: 56px;
    background: var(--bg-secondary);
    border: 1px solid var(--glass-border);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: var(--accent-primary);
    box-shadow: 0 0 15px rgba(188, 19, 254, 0.2);
    transition: var(--transition);
}

.highlight-item:hover .highlight-icon {
    background: var(--accent-primary);
    color: white;
    box-shadow: 0 0 25px rgba(188, 19, 254, 0.5);
    transform: scale(1.1);
}

.highlight-text h4 {
    font-size: 1.2rem;
    margin-bottom: 8px;
    color: var(--text-high);
}

.highlight-text p {
    font-size: 0.95rem;
    color: var(--text-med);
    line-height: 1.5;
}

@media (max-width: 1200px) {
    .enroll-grid {
        gap: 40px;
    }
}

@media (max-width: 992px) {
    .enroll-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .highlight-item {
        text-align: left;
    }
    .enroll-highlights .section-header {
        text-align: center !important;
    }
}

@media (max-width: 600px) {
    .highlight-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 30px 20px;
    }
}

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

.review-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 32px;
    position: relative;
    transition: var(--transition);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}

.review-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-primary);
    box-shadow: 0 20px 40px rgba(188, 19, 254, 0.15);
}

.review-card::before {
    content: '“';
    position: absolute;
    top: 20px;
    right: 32px;
    font-size: 5rem;
    color: var(--accent-primary);
    opacity: 0.05;
    font-family: 'Outfit', sans-serif;
    line-height: 1;
}

.review-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-family: 'Outfit', sans-serif;
    color: white;
    font-size: 1.2rem;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.reviewer-info h4 {
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.rating {
    color: #ffbd2e;
    font-size: 0.9rem;
    letter-spacing: 2px;
}

.review-text {
    color: var(--text-med);
    font-size: 1rem;
    line-height: 1.7;
    position: relative;
    z-index: 1;
}

/* Courses */
#courses {
    padding-top: 60px; /* Further reduced for tighter connection */
}

.courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
}

.course-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    overflow: hidden;
    transition: var(--transition);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}

.course-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-primary);
    box-shadow: 0 20px 40px rgba(123, 47, 247, 0.1);
}

.course-image {
    height: 200px;
    overflow: hidden;
}

.course-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.course-info {
    padding: 30px;
}

.course-info h3 {
    margin-bottom: 12px;
    font-size: 1.5rem;
}

.course-info p {
    color: var(--text-med);
    margin-bottom: 24px;
    font-size: 0.95rem;
}

/* --- Animation System --- */

/* Base hidden state for various animation types */
.anim-fade-up, .anim-slide-left, .anim-slide-right, .anim-pop-in, .anim-zoom-in, .anim-flip-in {
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
    transition-delay: var(--delay, 0s);
    visibility: hidden;
}

.anim-fade-up { transform: translateY(50px); }
.anim-slide-left { transform: translateX(-80px); }
.anim-slide-right { transform: translateX(80px); }
.anim-pop-in { transform: scale(0.85) translateY(30px); }
.anim-zoom-in { transform: scale(1.1); }
.anim-flip-in { transform: perspective(1000px) rotateX(-20deg) translateY(40px); }

/* Active state triggered by JS */
.animate-in {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translate(0) scale(1) rotate(0) !important;
}

/* --- Section Specific Hover Effects --- */

/* Hero Text Hover */
.hero-text h1:hover {
    text-shadow: 0 0 20px rgba(188, 19, 254, 0.4);
    transform: scale(1.01);
    transition: 0.3s;
}

/* About Visual Hover */
.visual-card:hover .visual-glow {
    width: 80%;
    height: 80%;
    opacity: 0.3;
}

/* Contact Section Refinements */
.contact-map-wrapper {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.map-container {
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    line-height: 0;
    transition: var(--transition);
}

.map-container:hover {
    border-color: var(--accent-secondary);
    box-shadow: 0 0 30px rgba(0, 243, 255, 0.2);
}

.directions-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: var(--bg-secondary);
    border: 1px solid var(--accent-secondary);
    color: var(--accent-secondary);
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    width: fit-content;
}

.directions-btn:hover {
    background: var(--accent-secondary);
    color: var(--bg-primary);
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.4);
    transform: translateY(-3px);
}

.directions-btn i {
    font-size: 1.1rem;
}

@media (max-width: 992px) {
    .contact-map-wrapper {
        margin-top: 40px;
        align-items: center;
    }
}

/* Course Card Hover Enhancements */
.course-card {
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), 
                box-shadow 0.4s ease, 
                border-color 0.4s ease;
}

.course-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.4);
}

/* Gallery Hover Enhancements */
.gallery-item {
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, transparent, rgba(0, 243, 255, 0.05));
    opacity: 0;
    transition: 0.4s;
}

.gallery-item:hover::after {
    opacity: 1;
}

/* Sections Responsiveness */
@media (max-width: 992px) {
    section { padding: 100px 0; }
    .section-header h2 { font-size: 2.2rem; }
    
    .about-grid, .contact-grid {
        grid-template-columns: 1fr;
        gap: 60px;
        text-align: center;
    }

    .reviews-grid {
        grid-template-columns: 1fr;
    }

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

/* Review Card Hover Enhancements */
.review-card {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.review-card:hover {
    transform: perspective(1000px) rotateY(10deg) translateY(-5px);
    border-color: var(--accent-primary);
}

.review-card:hover .avatar {
    animation: bounce 0.6s infinite alternate;
}

@keyframes bounce {
    from { transform: translateY(0); }
    to { transform: translateY(-8px); }
}

/* Contact Glow Pulse Effect on Hover */
@keyframes glowPulse {
    0% { box-shadow: 0 40px 100px rgba(0,0,0,0.5), 0 0 10px rgba(188, 19, 254, 0.1); }
    50% { box-shadow: 0 40px 100px rgba(0,0,0,0.5), 0 0 30px rgba(188, 19, 254, 0.3); }
    100% { box-shadow: 0 40px 100px rgba(0,0,0,0.5), 0 0 10px rgba(188, 19, 254, 0.1); }
}

.contact-form-wrapper:hover {
    animation: glowPulse 2s infinite ease-in-out;
}

/* Mobile Menu Styles */
@media (max-width: 992px) {
    .menu-toggle {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 30px;
        height: 21px;
        background: none;
        border: none;
        cursor: pointer;
        z-index: 1001;
        padding: 0;
    }

    .menu-toggle span {
        width: 100%;
        height: 2px;
        background: white;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        transform-origin: left;
    }

    /* Animation for the hamburger to X */
    .menu-toggle.open span:nth-child(1) { transform: rotate(45deg); }
    .menu-toggle.open span:nth-child(2) { opacity: 0; }
    .menu-toggle.open span:nth-child(3) { transform: rotate(-45deg); }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(10, 10, 12, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 40px;
        transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1000;
        padding: 80px 0;
    }

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

    .nav-links a {
        font-size: 1.5rem;
        font-weight: 600;
        color: var(--text-high);
    }
}

 /* Footer */
.footer {
    background: var(--bg-secondary);
    padding: 80px 0 0;
    border-top: 1px solid var(--glass-border);
}

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

.footer-brand p {
    color: var(--text-med);
    margin-top: 20px;
    max-width: 300px;
}

.footer-links h4, .footer-social h4 {
    font-size: 1.1rem;
    margin-bottom: 24px;
    color: var(--text-high);
    font-family: 'Outfit', sans-serif;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    text-decoration: none;
    color: var(--text-med);
    font-size: 0.95rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--accent-secondary);
    padding-left: 5px;
}

.social-icons {
    display: flex;
    gap: 16px;
}

.social-icons a {
    width: 44px;
    height: 44px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    text-decoration: none;
    color: var(--text-med);
    font-size: 1.1rem;
    transition: var(--transition);
}

.social-icons a:hover {
    background: var(--accent-primary);
    color: white;
    transform: translateY(-5px);
    border-color: var(--accent-primary);
    box-shadow: 0 10px 20px rgba(188, 19, 254, 0.3);
}

.footer-bottom {
    border-top: 1px solid var(--glass-border);
    padding: 30px 0;
    text-align: center;
    color: var(--text-low);
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    .footer-brand p {
        margin: 20px auto 0;
    }
    .social-icons {
        justify-content: center;
    }
}

/* Contact Section Restructured */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.contact-text h2 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 24px;
}

.contact-text p {
    font-size: 1.2rem;
    color: var(--text-med);
    margin-bottom: 48px;
    max-width: 500px;
}

.contact-details {
    display: grid;
    gap: 32px;
}

.detail-item {
    display: flex;
    gap: 20px;
    align-items: center;
}

.detail-item .icon {
    font-size: 1.5rem;
    width: 50px;
    height: 50px;
    background: var(--bg-secondary);
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.detail-item .info span {
    display: block;
    font-size: 0.85rem;
    color: var(--text-low);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.detail-item .info a {
    color: var(--text-high);
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: var(--transition);
}

.detail-item .info a:hover {
    color: var(--accent-secondary);
}

/* Contact Form */
.contact-form-wrapper {
    background: var(--bg-secondary);
    padding: 40px;
    border-radius: 32px;
    border: 1px solid var(--glass-border);
    box-shadow: 0 40px 100px rgba(0,0,0,0.5);
    position: relative;
}

.contact-form-wrapper::after {
    content: '';
    position: absolute;
    inset: -1px;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border-radius: 32px;
    z-index: -1;
    opacity: 0.1;
    filter: blur(10px);
}

.contact-form h3 {
    font-size: 2rem;
    margin-bottom: 32px;
    text-align: center;
    color: var(--text-high);
    font-family: 'Outfit', sans-serif;
}

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

.form-group input, 
.form-group select, 
.form-group textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    padding: 16px 20px;
    border-radius: 12px;
    color: var(--text-high);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group select option {
    background: #12121a;
    color: var(--text-high);
}

.form-group input:focus, 
.form-group select:focus, 
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 15px rgba(123, 47, 247, 0.1);
}

.submit-btn {
    width: 100%;
    margin-top: 10px;
}

@media (max-width: 992px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    .contact-text {
        text-align: center;
    }
    .contact-text h2 {
        font-size: 2.5rem;
    }
    .contact-text p {
        margin: 0 auto 48px;
    }
    .contact-details {
        justify-content: center;
        max-width: 320px;
        margin: 0 auto;
        text-align: left;
    }
}

/* --- Final Gallery Refinement --- */
#gallery {
    padding: 180px 0; /* Standardized with other sections */
    position: relative;
    z-index: 1;
}

#gallery .section-header {
    text-align: center;
    margin-bottom: 60px;
}

.gallery-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 40px;
}

.gallery-item {
    width: 100%;
    max-width: 480px; /* Responsive: never exceeds 480px */
    height: 360px;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    position: relative;
    flex-shrink: 1; /* Allow shrinking on small screens */
}

@media (max-width: 480px) {
    .gallery-item {
        height: 280px; /* Shorter on very small screens */
    }
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

@media (max-width: 992px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* --- Course Detail Pages --- */
.course-detail-hero {
    padding: 180px 0 100px;
    background: linear-gradient(to bottom, rgba(188, 19, 254, 0.05), transparent);
    text-align: center;
}

.course-detail-hero h1 {
    font-size: clamp(3rem, 8vw, 5rem);
    margin-bottom: 24px;
    background: linear-gradient(to right, #fff, var(--accent-primary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.course-meta {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 32px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-med);
    font-size: 1.1rem;
}

.meta-item i {
    color: var(--accent-primary);
}

.detail-section {
    padding: 100px 0;
}

.detail-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 80px;
}

/* Curriculum Accordion */
.curriculum-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.curriculum-module {
    background: var(--bg-secondary);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 24px;
    transition: var(--transition);
}

.curriculum-module:hover {
    border-color: var(--accent-primary);
    background: rgba(255, 255, 255, 0.05);
}

.module-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.module-header h4 {
    color: var(--accent-primary);
    font-size: 1.2rem;
}

.module-content ul {
    list-style: none;
    padding-left: 0;
}

.module-content li {
    padding: 8px 0;
    color: var(--text-med);
    display: flex;
    align-items: center;
    gap: 10px;
}

.module-content li::before {
    content: '→';
    color: var(--accent-secondary);
}

/* Instructor Card */
.instructor-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 40px;
    text-align: center;
    position: sticky;
    top: 120px;
}

.instructor-img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin: 0 auto 24px;
    border: 3px solid var(--accent-primary);
    padding: 5px;
    object-fit: cover;
}

.instructor-info h3 {
    margin-bottom: 8px;
    font-size: 1.5rem;
}

.instructor-info .designation {
    color: var(--accent-primary);
    display: block;
    margin-bottom: 20px;
    font-weight: 600;
}

/* Fee & Info Card */
.fee-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 32px;
    margin-bottom: 30px;
    transition: var(--transition);
}

.fee-card:hover {
    border-color: var(--accent-primary);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.fee-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--accent-primary);
    margin-bottom: 12px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.price-tag {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 10px;
    display: block;
}

.fee-features {
    list-style: none;
    margin: 24px 0;
    padding: 0;
}

.fee-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-med);
    margin-bottom: 16px;
    font-size: 1rem;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.fee-features li:last-child {
    border-bottom: none;
}

.fee-features li i {
    color: var(--accent-primary);
    font-size: 1rem;
    width: 20px;
}

/* Suggested Courses */
.suggested-section {
    background: rgba(255, 255, 255, 0.02);
}

@media (max-width: 992px) {
    .detail-grid {
        grid-template-columns: 1fr;
    }
    .instructor-card {
        position: static;
    }
}
/* --- Video Testimonials --- */
.video-review {
    text-decoration: none;
    color: inherit;
    display: block;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.video-overlay {
    position: absolute;
    inset: 0;
    background: rgba(188, 19, 254, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: var(--transition);
    z-index: 2;
    pointer-events: none;
}

.video-overlay i {
    font-size: 3rem;
    color: var(--accent-primary);
    filter: drop-shadow(0 0 15px rgba(188, 19, 254, 0.6));
    transform: scale(0.5);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.video-review:hover .video-overlay {
    opacity: 1;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(2px);
}

.video-review:hover .video-overlay i {
    transform: scale(1);
}

.video-review:hover {
    border-color: var(--accent-primary);
    box-shadow: 0 0 30px rgba(188, 19, 254, 0.2);
    transform: translateY(-5px);
}

/* --- Tabbed Course Layout --- */
.course-tabs-container {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.course-tabs-nav {
    display: flex;
    background: rgba(255, 255, 255, 0.02);
    border-bottom: 2px solid var(--glass-border);
    overflow-x: auto;
    scrollbar-width: none;
}

.course-tabs-nav::-webkit-scrollbar {
    display: none;
}

.tab-btn {
    padding: 20px 30px;
    background: transparent;
    border: none;
    color: var(--text-med);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
}

.tab-btn i {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.tab-btn:hover {
    color: #fff;
    background: rgba(188, 19, 254, 0.05);
}

.tab-btn.active {
    color: var(--accent-primary);
    background: rgba(188, 19, 254, 0.1);
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--accent-primary);
    box-shadow: 0 0 10px var(--accent-primary);
}

.tab-content {
    padding: 40px;
}

.tab-pane {
    display: none;
    animation: fadeIn 0.4s ease-out;
}

.tab-pane.active {
    display: block;
}

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

@media (max-width: 768px) {
    .tab-btn {
        padding: 15px 20px;
        font-size: 0.9rem;
    }
    .tab-content {
        padding: 25px;
    }
}

/* --- Curriculum Accordion --- */
.curriculum-accordion {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

.accordion-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition);
}

.accordion-header {
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    background: transparent;
    transition: var(--transition);
}

.accordion-header h4 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--text-high);
    display: flex;
    align-items: center;
    gap: 12px;
}

.accordion-header .toggle-icon {
    font-size: 0.8rem;
    color: var(--accent-primary);
    transition: transform 0.3s ease;
}

.accordion-item.active {
    border-color: var(--accent-primary);
    background: rgba(123, 47, 247, 0.05);
}

.accordion-item.active .toggle-icon {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.3s ease;
}

.accordion-item.active .accordion-content {
    max-height: 500px;
    padding: 0 25px 25px 25px;
}

.accordion-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.accordion-content li {
    padding: 10px 0;
    color: var(--text-med);
    display: flex;
    align-items: center;
    gap: 10px;
}

.accordion-content li::before {
    content: '→';
    color: var(--accent-primary);
}

/* --- Course Hero Enhancements --- */
.course-hero-img-wrapper {
    width: 100%;
    max-width: 800px;
    margin: 0 auto 40px;
    border-radius: 32px;
    overflow: hidden;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--glass-border);
    position: relative;
    background: var(--glass-bg);
}

.course-hero-img-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1), filter 0.6s ease;
}

/* Base Animations */
.anim-float {
    animation: float 6s ease-in-out infinite;
}

.anim-shutter {
    animation: shutter 1.2s cubic-bezier(0.77, 0, 0.175, 1);
}

.anim-unfold {
    animation: unfold 1.2s cubic-bezier(0.165, 0.84, 0.44, 1);
    transform-origin: top;
}

.anim-reveal-zoom {
    animation: reveal-zoom 1.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

@keyframes shutter {
    0% { clip-path: inset(0 50% 0 50%); opacity: 0; }
    100% { clip-path: inset(0 0 0 0); opacity: 1; }
}

@keyframes unfold {
    0% { transform: translateY(-20px) scaleY(0.9); opacity: 0; }
    100% { transform: translateY(0) scaleY(1); opacity: 1; }
}

@keyframes reveal-zoom {
    0% { transform: scale(0.9); opacity: 0; filter: blur(10px); }
    100% { transform: scale(1); opacity: 1; filter: blur(0); }
}

/* Specialty Hover Effects */
.graphic-design-page .course-hero-img-wrapper:hover img {
    transform: scale(1.05) rotate(-1deg);
}

.ui-ux-design-page .course-hero-img-wrapper:hover img {
    transform: scale(1.08);
    filter: saturate(1.15);
}

.video-editing-page .course-hero-img-wrapper:hover img {
    transform: scale(1.03);
    filter: contrast(1.1);
}

.motion-graphics-page .course-hero-img-wrapper:hover img {
    transform: scale(1.06) translateY(-8px);
}

/* Entrance Animations */
.anim-pop-in {
    animation: popIn 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
}

.anim-slide-up {
    animation: slideUp 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}

@keyframes popIn {
    0% { transform: scale(0.8); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes slideUp {
    0% { transform: translateY(20px); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}

/* --- Form Success Message --- */
.form-success-msg {
    text-align: center;
    padding: 30px;
    background: rgba(46, 213, 115, 0.05);
    border: 1px solid rgba(46, 213, 115, 0.2);
    border-radius: 20px;
    animation: successFadeIn 0.5s ease;
}

.success-icon {
    font-size: 4rem;
    color: #2ed573;
    margin-bottom: 20px;
}

.form-success-msg h3 {
    color: #fff;
    margin-bottom: 10px;
}

.form-success-msg p {
    color: var(--text-med);
    margin-bottom: 24px;
}

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

/* Student Work Gallery Cards */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.gallery-item {
    height: 100%;
}

.gallery-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.gallery-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--accent-primary);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.gallery-image {
    width: 100%;
    aspect-ratio: 16/10;
    overflow: hidden;
}

.gallery-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.gallery-info {
    padding: 24px;
    text-align: left;
}

.gallery-info h3 {
    font-size: 1.4rem;
    color: var(--text-high);
    margin-bottom: 8px;
}

.work-type {
    color: var(--accent-primary);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
}

.student-name {
    font-size: 0.95rem;
    color: var(--text-med);
    border-top: 1px solid var(--glass-border);
    padding-top: 12px;
}

.student-name strong {
    color: var(--text-high);
}

.gallery-footer {
    display: flex;
    justify-content: center;
    margin-top: 50px;
}

.gallery-item.hidden-card {
    display: none;
}

.gallery-item.hidden-card.show {
    display: block;
    animation: successFadeIn 0.6s ease forwards;
}

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

/* Lightbox Modal Stylings */
.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
}

.lightbox-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 85vh;
    border-radius: 12px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
    animation: zoomInLight 0.4s ease forwards;
    object-fit: contain; /* Shows full uncropped image */
}

@keyframes zoomInLight {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

.lightbox-close {
    position: absolute;
    top: 25px;
    right: 35px;
    color: #f1f1f1;
    font-size: 50px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
    line-height: 1;
}

.lightbox-close:hover {
    color: var(--accent-primary);
}

#lightbox-caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: var(--text-high);
    padding: 20px 0;
    font-size: 1.4rem;
    font-weight: 700;
}

/* Ensure images look clickable */
.gallery-image img, .gallery-image video {
    cursor: pointer;
}

.gallery-video {
    position: relative;
}

.gallery-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(var(--accent-primary-rgb, 203, 150, 48), 0.8);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    pointer-events: none;
    transition: var(--transition);
}

.gallery-card:hover .play-overlay {
    background: var(--accent-primary);
    transform: translate(-50%, -50%) scale(1.1);
}

.lightbox-media-container {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
}

#lightbox-video {
    display: none;
    max-width: 90%;
    max-height: 80vh;
    border-radius: 12px;
}

.gallery-card {
    cursor: pointer;
}

.zoom-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.5);
    background: rgba(var(--accent-primary-rgb, 203, 150, 48), 0.9);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    opacity: 0;
    transition: var(--transition);
    pointer-events: none;
    z-index: 5;
}

.gallery-card:hover .zoom-overlay {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.gallery-video .zoom-overlay {
    top: 20%; /* Move up slightly on video cards to not overlap play button */
    left: 80%;
}
