/* ==== RESET & VARIABLES ==== */
:root {
    --bg-dark: #0a0a0c;
    --bg-darker: #050505;
    --text-main: #f0f0f0;
    --text-muted: #a0a0a0;
    
    --accent-primary: #4facfe;
    --accent-secondary: #00f2fe;
    
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

html {
    scroll-behavior: smooth;
}

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

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ==== UTILITIES ==== */
.gradient-text {
    background: linear-gradient(90deg, var(--accent-secondary), var(--accent-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
}

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

.primary-btn {
    background: linear-gradient(90deg, var(--accent-secondary), var(--accent-primary));
    color: #fff;
    box-shadow: 0 4px 15px rgba(0, 242, 254, 0.3);
}

.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 242, 254, 0.5);
}

.secondary-btn {
    background: transparent;
    color: var(--text-main);
    border: 1px solid var(--glass-border);
}

.secondary-btn:hover {
    background: var(--glass-bg);
    border-color: var(--accent-primary);
    transform: translateY(-2px);
}

/* ==== REVEAL ANIMATIONS ==== */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

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

.reveal-delay {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1) 0.3s;
}

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

/* ==== NAVIGATION ==== */
.glass-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition);
    background: rgba(10, 10, 12, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 20px 0;
}

.glass-nav.scrolled {
    background: rgba(10, 10, 12, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--glass-border);
    padding: 15px 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 1.5rem;
    color: var(--text-main);
    text-decoration: none;
    letter-spacing: 1px;
}
.logo img {
    height: 40px;
    width: auto;
}
.logo span {
    color: var(--accent-primary);
}

.nav-menu {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 30px;
}

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

.nav-links:hover, .nav-links.active-link {
    color: var(--accent-secondary);
}

.nav-btn {
    padding: 8px 20px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    font-weight: 600;
    transition: var(--transition);
}

.nav-btn:hover {
    background: var(--accent-primary);
    color: #fff;
    border-color: var(--accent-primary);
}

.menu-toggle {
    display: none;
    cursor: pointer;
    margin-right: 20px; /* Positioned left of the logo on mobile */
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px 0; /* Align left */
    transition: all 0.3s ease-in-out;
    background-color: #fff;
}

/* ==== PAGE HEADER (For internal pages) ==== */
.page-header {
    padding: 150px 5% 50px;
    text-align: center;
    background: var(--bg-darker);
    position: relative;
    overflow: hidden;
}
.page-title {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    margin-bottom: 15px;
    position: relative;
    z-index: 2;
}
.page-desc {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

/* ==== HERO SECTION ==== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 5% 50px;
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
    background-image: url('images/bg.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(10, 10, 10, 0.7) 0%, var(--bg-dark) 100%);
    z-index: 1;
}

.gradient-sphere {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0,242,254,0.15) 0%, rgba(10,10,12,0) 70%);
    top: -100px;
    right: -100px;
    border-radius: 50%;
    filter: blur(40px);
}

.gradient-sphere.secondary {
    background: radial-gradient(circle, rgba(79,172,254,0.1) 0%, rgba(10,10,12,0) 70%);
    bottom: -200px;
    left: -200px;
    top: auto; right: auto;
}

.hero-content {
    flex: 1;
    max-width: 600px;
    z-index: 2;
}

.hero-title {
    font-size: clamp(3rem, 5vw, 4.5rem);
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 500px;
}

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

.hero-image-container {
    flex: 1;
    position: relative;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    z-index: 1;
}

.hero-image {
    max-width: 100%;
    height: auto;
    border-radius: 20px;
    position: relative;
    z-index: 2;
    transform: perspective(1000px) rotateY(-5deg);
    box-shadow: -20px 20px 60px rgba(0,0,0,0.5);
    transition: var(--transition);
}

.hero-image:hover {
    transform: perspective(1000px) rotateY(0deg) scale(1.02);
}

/* ==== HERO EVENT CARD ==== */
.hero-event-card {
    position: relative;
    width: 100%;
    max-width: 700px;
    aspect-ratio: 16 / 9;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 30px 40px;
    z-index: 2;
    transform: perspective(1000px) rotateY(-5deg);
    box-shadow: -20px 20px 60px rgba(0,0,0,0.5), inset 0 0 0 1px rgba(255,255,255,0.05);
    transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    animation: floatCard 6s ease-in-out infinite;
    overflow: hidden;
}

.hero-event-card:hover {
    transform: perspective(1000px) rotateY(0deg) scale(1.02);
    box-shadow: 0 30px 60px rgba(0,0,0,0.6), inset 0 0 0 1px rgba(0, 242, 254, 0.3);
    border-color: rgba(0, 242, 254, 0.3);
}

.card-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0,242,254,0.15) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
    z-index: -1;
}

.hero-event-card:hover .card-glow {
    opacity: 1;
    animation: rotateGlow 10s linear infinite;
}

.card-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
}

.card-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.3));
    animation: bounceIcon 3s ease-in-out infinite;
}

.card-subtitle {
    font-size: 1rem;
    color: var(--accent-secondary);
    letter-spacing: 3px;
    font-weight: 600;
    margin-bottom: 8px;
}

.card-title {
    font-size: 2.2rem;
    line-height: 1.2;
    margin-bottom: 30px;
    font-weight: 800;
}

.card-title span {
    color: var(--accent-primary);
    font-size: 1.8rem;
}

.card-highlight {
    background: rgba(0, 242, 254, 0.1);
    border: 1px solid rgba(0, 242, 254, 0.2);
    padding: 8px 16px;
    border-radius: 30px;
    font-size: 0.95rem;
    color: #fff;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 25px;
}

.pulse-dot {
    width: 10px;
    height: 10px;
    background-color: #ff4747;
    border-radius: 50%;
    box-shadow: 0 0 0 rgba(255, 71, 71, 0.7);
    animation: pulseDot 2s infinite;
}

.card-details {
    list-style: none;
    width: 100%;
    text-align: left;
    margin-bottom: 25px;
    padding: 0 10px;
}

.card-details li {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 12px;
    color: var(--text-main);
    font-size: 1.05rem;
}

.card-details li span {
    font-size: 1.3rem;
}

.card-divider {
    width: 100%;
    border: none;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    margin-bottom: 25px;
}

.card-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    color: var(--accent-secondary);
    font-weight: 600;
    font-size: 1.15rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.card-btn .arrow {
    transition: transform 0.3s ease;
}

.card-btn:hover {
    color: #fff;
    text-shadow: 0 0 10px rgba(0, 242, 254, 0.5);
}

.card-btn:hover .arrow {
    transform: translateX(5px);
}

@keyframes floatCard {
    0%, 100% { transform: perspective(1000px) rotateY(-5deg) translateY(0); }
    50% { transform: perspective(1000px) rotateY(-5deg) translateY(-15px); }
}

@keyframes rotateGlow {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

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

@keyframes pulseDot {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 71, 71, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(255, 71, 87, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 71, 87, 0); }
}

/* ==== ABOUT SECTION (Home) ==== */
.about {
    padding: 100px 5%;
    background-color: var(--bg-darker);
}

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

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-image-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.about-image-wrapper img.feature-img {
    width: 100%;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    object-fit: cover;
}

.section-title {
    font-size: clamp(2rem, 3.5vw, 3rem);
    margin-bottom: 30px;
}

.section-desc {
    color: var(--text-muted);
    margin-bottom: 20px;
    font-size: 1.05rem;
}

/* ==== PROGRAMS SECTION ==== */
.programs {
    padding: 100px 5%;
}

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

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

.program-card {
    padding: 40px 30px;
    transition: var(--transition);
}

.program-card:hover {
    transform: translateY(-10px);
    border-color: rgba(79, 172, 254, 0.3);
    box-shadow: 0 15px 30px rgba(0,0,0,0.4);
}

.card-icon {
    width: 60px;
    height: 60px;
    background: rgba(0, 242, 254, 0.1);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
}

.card-title {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

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

/* ==== NOTICES (Tabs & Grid) ==== */
.tabs-container {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 10px 25px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 30px;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
    font-family: var(--font-heading);
}

.tab-btn.active, .tab-btn:hover {
    background: var(--accent-primary);
    color: #fff;
    border-color: var(--accent-primary);
}

.tab-content {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
}

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

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

.notice-card {
    padding: 30px;
    margin-bottom: 20px;
}
.notice-meta {
    font-size: 0.85rem;
    color: var(--accent-secondary);
    font-weight: 600;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.notice-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
}
.notice-card p {
    color: var(--text-muted);
    margin-bottom: 15px;
    font-size: 0.95rem;
}
.notice-details {
    background: rgba(0,0,0,0.3);
    padding: 15px;
    border-radius: 10px;
    font-size: 0.9rem;
    color: #ddd;
}
.notice-details ul {
    list-style-type: none;
}
.notice-details li {
    margin-bottom: 5px;
}
.notice-details li strong {
    color: var(--text-main);
}

/* ==== STUDENT SECTION ==== */
.info-block {
    background: var(--bg-darker);
    padding: 80px 5%;
}

.step-card {
    padding: 30px;
    margin-bottom: 30px;
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.step-num {
    background: linear-gradient(90deg, var(--accent-secondary), var(--accent-primary));
    width: 40px; height: 40px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: bold; color: #fff;
    flex-shrink: 0;
}

/* ==== FORMS ==== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}
.contact-info {
    padding-right: 30px;
}
.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 30px;
}
.contact-icon {
    width: 50px; height: 50px;
    border-radius: 50%;
    background: rgba(0, 242, 254, 0.1);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}

.form-group {
    margin-bottom: 25px;
}
.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-muted);
}
.form-control {
    width: 100%;
    padding: 15px 20px;
    background: rgba(0,0,0,0.2);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition);
}
.form-control:focus {
    outline: none;
    border-color: var(--accent-secondary);
    background: rgba(0, 242, 254, 0.05);
}

/* ==== FOOTER ==== */
footer {
    background-color: var(--bg-darker);
    padding: 80px 5% 30px;
    border-top: 1px solid var(--glass-border);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-brand p {
    color: var(--text-muted);
    margin-top: 15px;
    max-width: 300px;
    font-size: 0.9rem;
}

.footer-links h4, .footer-social h4 {
    font-family: var(--font-heading);
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--text-muted);
    transition: var(--transition);
}

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

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

.social-icons a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--glass-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: bold;
    color: var(--text-muted);
    transition: var(--transition);
}

.social-icons a:hover {
    background: var(--accent-secondary);
    color: #000;
    transform: translateY(-3px);
}

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

/* ==== WHATSAPP FLOAT ==== */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 100;
    transition: var(--transition);
    animation: pulse 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

.whatsapp-icon {
    width: 35px;
    height: 35px;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* ==== RESPONSIVE DESIGN ==== */
@media (max-width: 992px) {
    .hero { flex-direction: column; text-align: center; padding-top: 150px; }
    .hero-cta { justify-content: center; }
    .hero-image-container { margin-top: 60px; justify-content: center; width: 100%; }
    .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
    .footer-content { grid-template-columns: 1fr 1fr; }
    .hero-event-card { aspect-ratio: auto; padding: 40px 20px; }
}

@media (max-width: 768px) {
    .nav-container {
        justify-content: flex-start; /* For left-aligned menu button */
    }
    
    .menu-toggle {
        display: block;
        margin-right: 15px; /* Space between menu and logo */
    }

    .logo {
        margin-right: 0; /* Override the margin-right: auto */
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: rgba(10, 10, 12, 0.98);
        backdrop-filter: blur(16px);
        width: 100%;
        height: calc(100vh - 70px);
        text-align: center;
        transition: 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
        padding-top: 50px;
        gap: 40px;
    }

    .nav-menu.active {
        left: 0;
    }

    .menu-toggle.is-active .bar:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.is-active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .menu-toggle.is-active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    .footer-content { grid-template-columns: 1fr; text-align: center; }
    .social-icons { justify-content: center; }
    .hero-title { font-size: 2.5rem; }
    .page-title { font-size: 2rem; }
    
    .hero-cta {
        flex-direction: column;
        align-items: center;
        gap: 15px;
        width: 100%;
    }
    
    .hero-cta .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .hero-event-card {
        transform: perspective(1000px) rotateY(0deg) !important;
        animation: none !important;
        aspect-ratio: auto;
    }

    .card-title {
        font-size: 1.8rem;
    }
    .card-title span {
        font-size: 1.5rem;
    }

    .whatsapp-float { bottom: 20px; right: 20px; width: 50px; height: 50px; }
    .whatsapp-icon { width: 30px; height: 30px; }
}

/* ==== TESTIMONIALS SECTION ==== */
.testimonials {
    padding: 100px 5%;
    background-color: var(--bg-dark);
}

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

.review-card {
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    transition: var(--transition);
}

.review-card:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 242, 254, 0.4);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.stars {
    color: #FFD700;
    font-size: 1.2rem;
    letter-spacing: 2px;
}

.review-text {
    font-style: italic;
    color: var(--text-muted);
    font-size: 0.95rem;
    flex-grow: 1;
}

.reviewer-name {
    font-weight: 700;
    font-family: var(--font-heading);
    color: var(--accent-secondary);
    margin-top: 10px;
}
