/* ==========================================================================
   CSS Variables & Global Styles
   ========================================================================== */
   :root {
    --bg-dark: #0a0a0f;
    --text-light: #ffffff;
    --text-muted: #b3b3b3;
    --primary-color: #8a2be2;
    --secondary-color: #00d2ff;
    --gradient-1: linear-gradient(135deg, #8a2be2, #00d2ff);
    --gradient-2: linear-gradient(135deg, #12101a, #0b0f19);
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5);
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

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

ul {
    list-style: none;
}

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

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

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

.text-center {
    text-align: center;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-title span {
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 50px;
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    transition: var(--transition);
}

.btn-primary {
    background: var(--gradient-1);
    color: #fff;
    box-shadow: 0 4px 15px rgba(138, 43, 226, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(138, 43, 226, 0.6);
}

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

.btn-secondary:hover {
    background: var(--secondary-color);
    color: #fff;
    transform: translateY(-3px);
}

/* Glassmorphism Utilities */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    padding: 30px;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.glass-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 40px rgba(0, 210, 255, 0.1);
}

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

.navbar.sticky {
    padding: 10px 0;
    background: rgba(10, 10, 15, 0.9);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--glass-border);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

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

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
}

.logo span {
    color: var(--secondary-color);
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links li a {
    font-weight: 500;
    font-size: 1rem;
    position: relative;
    padding-bottom: 5px;
}

.nav-links li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--gradient-1);
    transition: var(--transition);
}

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

.hamburger {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #fff;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    background: url('assets/images/hero-bg.jpg') center/cover no-repeat;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(10,10,15,0.95) 0%, rgba(10,10,15,0.7) 100%);
    z-index: -1;
}

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

.animate-text {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 20px;
    font-weight: 700;
}

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

.tagline {
    font-size: 1.2rem;
    margin-bottom: 40px;
    color: #e0e0e0;
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

/* ==========================================================================
   About Section
   ========================================================================== */
.about {
    background: var(--gradient-2);
}

.split-layout {
    display: flex;
    align-items: center;
    gap: 60px;
}

.about-image, .about-text {
    flex: 1;
}

.about-image {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
}

.about-image img {
    border-radius: 15px;
    transition: var(--transition);
}

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

.glass-box {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: rgba(138, 43, 226, 0.2);
    backdrop-filter: blur(15px);
    padding: 20px 30px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.1);
    font-weight: 600;
    color: #fff;
    box-shadow: var(--box-shadow);
}

.about-text p {
    color: var(--text-muted);
    margin-bottom: 30px;
    font-size: 1.1rem;
}

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

.stat-item h3 {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 5px;
    font-weight: 700;
}

.stat-item p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ==========================================================================
   Programs Section
   ========================================================================== */
.programs {
    background: url('assets/images/cubes-pattern.png'), radial-gradient(circle at top right, #1a1025, #0a0a0f);
}

.programs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.program-card {
    text-align: center;
    position: relative;
    overflow: hidden;
}

.program-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-1);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.program-card:hover::before {
    transform: scaleX(1);
}

.program-card .icon {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.program-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
}

.program-card p {
    color: var(--text-muted);
    margin-bottom: 25px;
    font-size: 0.95rem;
}

.learn-more {
    color: var(--primary-color);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.learn-more:hover {
    color: var(--secondary-color);
    gap: 12px;
}

/* ==========================================================================
   Campus Life
   ========================================================================== */
.campus {
    background: var(--gradient-2);
}

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

.gallery-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
}

.gallery-item img {
    border-radius: 15px;
    transition: transform 0.5s ease;
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    opacity: 0;
    display: flex;
    align-items: flex-end;
    padding: 20px;
    transition: var(--transition);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

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

.gallery-overlay h4 {
    font-size: 1.2rem;
    color: #fff;
    transform: translateY(20px);
    transition: transform 0.4s ease;
}

.gallery-item:hover .gallery-overlay h4 {
    transform: translateY(0);
}

/* ==========================================================================
   Testimonials
   ========================================================================== */
.testimonials {
    background: radial-gradient(circle at bottom left, #1a1025, #0a0a0f);
    overflow: hidden;
}

.carousel-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.testimonial-card {
    min-width: 100%;
    padding: 40px;
    text-align: left;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.user-info img {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-color);
}

.user-info h4 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.user-info span {
    color: var(--secondary-color);
    font-size: 0.9rem;
}

.testimonial-card p {
    font-size: 1.1rem;
    font-style: italic;
    color: var(--text-muted);
    line-height: 1.8;
}

.carousel-nav {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 30px;
}

.carousel-nav button {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
}

.carousel-nav button:hover {
    background: var(--primary-color);
    transform: scale(1.1);
}

/* ==========================================================================
   Admission Process
   ========================================================================== */
.admission {
    background: var(--gradient-2);
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background: var(--glass-border);
    top: 0;
    bottom: 0;
    left: 50%;
    left: 40px; /* Mobile first */
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    width: 100%;
    padding-left: 100px;
    margin-bottom: 40px;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-dot {
    position: absolute;
    left: 20px;
    top: 20px;
    width: 44px;
    height: 44px;
    background: var(--gradient-1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
    color: #fff;
    z-index: 10;
    box-shadow: 0 0 0 6px var(--bg-dark);
}

.timeline-content {
    padding: 25px;
}

.timeline-content h3 {
    font-size: 1.3rem;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.timeline-content p {
    color: var(--text-muted);
}

@media screen and (min-width: 768px) {
    .timeline::after {
        left: 50%;
        margin-left: -2px;
    }
    .timeline-item {
        width: 50%;
        padding-left: 0;
        padding-right: 50px;
    }
    .timeline-item:nth-child(even) {
        left: 50%;
        padding-left: 50px;
        padding-right: 0;
    }
    .timeline-dot {
        left: 100%;
        margin-left: -22px;
    }
    .timeline-item:nth-child(even) .timeline-dot {
        left: 0;
        margin-left: -22px;
    }
}

/* ==========================================================================
   Contact Section
   ========================================================================== */
.contact {
    background: radial-gradient(circle at top left, #1a1025, #0a0a0f);
}

.contact-wrapper {
    display: flex;
    gap: 40px;
}

.contact-form {
    flex: 1;
}

.contact-form h3 {
    font-size: 1.8rem;
    margin-bottom: 30px;
}

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

.input-group input,
.input-group textarea {
    width: 100%;
    padding: 15px;
    background: rgba(0,0,0,0.2);
    border: 1px solid var(--glass-border);
    border-radius: 8px;
    color: #fff;
    font-family: inherit;
    font-size: 1rem;
    outline: none;
    transition: var(--transition);
}

.input-group input:focus,
.input-group textarea:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 10px rgba(0, 210, 255, 0.2);
}

.contact-map {
    flex: 1;
    min-height: 400px;
    padding: 10px;
    overflow: hidden;
}

.contact-map iframe {
    border-radius: 10px;
    border: none;
}

.w-100 {
    width: 100%;
}

/* ==========================================================================
   Footer
   ========================================================================== */
footer {
    background: #050508;
    padding: 80px 0 20px;
    border-top: 1px solid rgba(255,255,255,0.05);
}

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

.footer-col h4 {
    font-size: 1.2rem;
    margin-bottom: 25px;
    position: relative;
    display: inline-block;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 40px;
    height: 2px;
    background: var(--gradient-1);
}

.about-col p {
    color: var(--text-muted);
    margin: 20px 0;
    font-size: 0.95rem;
}

.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    margin-right: 10px;
    color: #fff;
}

.social-icons a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

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

.links-col ul li a {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.links-col ul li a:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}

.newsletter-col p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 15px;
}

.newsletter-form {
    display: flex;
}

.newsletter-form input {
    flex: 1;
    padding: 12px 15px;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--glass-border);
    border-radius: 5px 0 0 5px;
    color: #fff;
    outline: none;
}

.newsletter-form button {
    padding: 0 20px;
    background: var(--gradient-1);
    border: none;
    border-radius: 0 5px 5px 0;
    color: #fff;
    cursor: pointer;
    transition: var(--transition);
}

.newsletter-form button:hover {
    opacity: 0.9;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.05);
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ==========================================================================
   Animations & Scroll Reveal
   ========================================================================== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

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

.fade-left {
    transform: translateX(-50px);
}
.fade-left.active {
    transform: translateX(0);
}

.fade-right {
    transform: translateX(50px);
}
.fade-right.active {
    transform: translateX(0);
}

.zoom-in {
    transform: scale(0.9);
}
.zoom-in.active {
    transform: scale(1);
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */
@media screen and (max-width: 992px) {
    .split-layout, .contact-wrapper {
        flex-direction: column;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    .hero-content .animate-text {
        font-size: 3.5rem;
    }
    .about-image .glass-box {
        right: 10px;
        bottom: 10px;
    }
}

@media screen and (max-width: 768px) {
    .nav-links {
        position: absolute;
        right: -100%;
        top: 70px;
        flex-direction: column;
        background: rgba(10, 10, 15, 0.95);
        backdrop-filter: blur(15px);
        width: 100%;
        text-align: center;
        padding: 30px 0;
        transition: 0.5s ease;
        border-bottom: 1px solid var(--glass-border);
    }
    
    .nav-links.active {
        right: 0;
    }

    .hamburger {
        display: block;
    }

    .hero-content .animate-text {
        font-size: 2.8rem;
    }

    .statistics {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .section-title {
        font-size: 2rem;
    }

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