/* Advanced Graphics & Animations */

/* Section Tube Light Effect */
.section-tube-light {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 8px;
    background-color: white;
    border-radius: 0 0 10px 10px;
    box-shadow: 
        0px 5px 10px 0px rgba(255, 255, 224, 0.7),
        0px 15px 40px 15px rgba(255, 255, 224, 0.3);
    transition: width 0.2s ease-out, height 0.2s ease-out, box-shadow 0.2s ease-out;
    z-index: 10;
    opacity: 0;
}

/* Section Dark Overlay Effect */
.section-dark-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, 
        rgba(0, 0, 0, 0.9) 0%, 
        rgba(0, 0, 0, 0.8) 50%, 
        rgba(0, 0, 0, 0.9) 100%
    );
    transition: opacity 0.15s ease;
    pointer-events: none;
    z-index: 1;
    opacity: 1;
}

/* Sections with dark overlay on initial load */
.events-section,
.workshops-section,
/* Sections with dark overlay on initial load */
.events-section,
.workshops-section,
.gallery-section,
.teams-section,
.contact-section {
    position: relative;
}

/* Animation Keyframes */
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.05); opacity: 0.8; }
}

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

.animate-in {
    animation: slideInUp 0.15s ease-out forwards;
}

/* Section Tube Light Effect */
.section-tube-light {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 2px;
    background-color: white;
    border-radius: 0 0 10px 10px;
    box-shadow: 
        0px 5px 10px 0px rgba(255, 255, 224, 0.7),
        0px 15px 40px 15px rgba(255, 255, 224, 0.3);
    transition: width 0.2s ease-out, height 0.2s ease-out, box-shadow 0.2s ease-out;
    z-index: 10;
    opacity: 0;
}

/* ===== ADVANCED NAVIGATION ===== */
/* Override old navigation styles */
.navbar {
    position: relative !important;
    background: transparent !important;
    border-bottom: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

.nav-container {
    display: none !important;
}

/* Navigation Bar Glassmorphism */
/* Hide mobile menu button on desktop only */
@media (min-width: 993px) {
    .mobile-menu-btn {
        display: none;
    }
}

.center-glass-nav-standalone {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    width: auto;
}

/* Navigation Container with Logos */
.nav-container-with-logos {
    display: flex;
    align-items: center;
    gap: 30px;
    padding: 0 20px;
}

/* Hero Club Logo */
.hero-club-logo {
    position: absolute;
    top: -45px;
    left: 20px;
    z-index: 1000;
    transition: all 0.15s ease;
}

.hero-logo-img {
    height: 200px;
    width: auto;
    object-fit: contain;
    transition: all 0.15s ease;
}

.hero-logo-img:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.3));
}

/* Navigation Container Styling */
.center-glass-nav-standalone .glass-nav-container {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50px;
    padding: 0.4rem 0.8rem;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: all 0.15s ease;
}

.center-glass-nav-standalone .glass-nav-container:hover {
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* Remove old navigation styles */



/* Center Glass Navigation */
.center-glass-nav {
    justify-self: center;
}

.glass-nav-container {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    padding: 0.5rem 1rem;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: all 0.13s ease;
}

.glass-nav-container:hover {
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}


/* Divider Bar */
.nav-divider-bar {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 2px;
    height: 60px;
    background: linear-gradient(
        to bottom,
        transparent,
        rgba(0, 212, 255, 0.5) 100%,
        rgba(0, 212, 255, 0.8) 50%,
        rgba(11, 58, 67, 0.514) 80%,
        transparent
    );
    opacity: 0.7;
    z-index: -1;
}

/* Tubelight Effect */
.tubelight-container {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 8px;
    z-index: 10;
}

.tubelight-bar {
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent 0%,
        rgba(0, 60, 150, 0.3) 20%,
        rgba(3, 74, 180, 0.512) 50%,
        rgba(0, 60, 150, 0.3) 80%,
        transparent 100%
    );
    border-radius: 10px;
    box-shadow: 
        0 0 10px rgba(0, 60, 150, 0.3),
        inset 0 1px 2px rgba(255, 255, 255, 0.3);
    transition: all 0.15s ease;
}

.tubelight-bar.glow {
    background: linear-gradient(90deg, 
        transparent 0%,
        rgba(255, 255, 255, 0.3) 20%,
        rgba(255, 255, 255, 0.9) 50%,
        rgba(255, 255, 255, 0.3) 80%,
        transparent 100%
    );
    box-shadow: 
        0 0 30px rgba(255, 255, 255, 0.8),
        0 10px 40px rgba(255, 255, 255, 0.4),
        inset 0 1px 2px rgba(255, 255, 255, 0.5);
    animation: tubelightFlicker 0.1s infinite alternate;
}

@keyframes tubelightFlicker {
    0% { opacity: 0.9; }
    100% { opacity: 1; }
}

/* Hero Glass Container - Cosmic Tech Glassmorphism */
.hero-glass-advanced {
    position: relative;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 2px solid rgba(0, 123, 255, 0.2);
    border-radius: 20px;
    padding: 3rem 2rem;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.3),
        0 0 30px rgba(0, 123, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

/* Enhanced glow effect on hover */
.hero-glass-advanced:hover {
    border-color: rgba(0, 123, 255, 0.4);
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.4),
        0 0 40px rgba(0, 123, 255, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

/* Subtle animated border glow */
.hero-glass-advanced::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, 
        rgba(0, 123, 255, 0.3) 0%,
        rgba(0, 162, 255, 0.2) 25%,
        rgba(0, 123, 255, 0.1) 50%,
        rgba(0, 162, 255, 0.2) 75%,
        rgba(0, 123, 255, 0.3) 100%
    );
    border-radius: 22px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.6s ease;
    animation: cosmicGlow 3s ease-in-out infinite alternate;
}

.hero-glass-advanced:hover::before {
    opacity: 1;
}

@keyframes cosmicGlow {
    0% {
        background: linear-gradient(45deg, 
            rgba(0, 123, 255, 0.2) 0%,
            rgba(0, 162, 255, 0.1) 25%,
            rgba(0, 123, 255, 0.05) 50%,
            rgba(0, 162, 255, 0.1) 75%,
            rgba(0, 123, 255, 0.2) 100%
        );
    }
    100% {
        background: linear-gradient(45deg, 
            rgba(0, 162, 255, 0.3) 0%,
            rgba(0, 123, 255, 0.2) 25%,
            rgba(0, 162, 255, 0.1) 50%,
            rgba(0, 123, 255, 0.2) 75%,
            rgba(0, 162, 255, 0.3) 100%
        );
    }
}
.advanced-nav {
    background: rgba(5, 5, 5, 0.95);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 20px;
}


/* Advanced Navigation Menu */
.nav-menu-advanced {
    display: flex;
    align-items: center;
    gap: 0;
    background: rgba(0, 0, 0, 0.3);
    padding: 6px;
    border-radius: 25px;
    backdrop-filter: blur(10px);
}

.nav-item {
    position: relative;
}

.nav-item .nav-link {
    font-family: 'Rajdhani', sans-serif;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    border-radius: 20px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.nav-item .nav-link i {
    font-size: 13px;
    transition: all 0.3s ease;
}

.nav-item .nav-link span {
    font-weight: 500;
    font-size: 14px;
    letter-spacing: 1px;
}

.nav-indicator {
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #00d4ff, #4ecdc4);
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

.nav-item:hover .nav-link {
    color: #ffffff;
    background: rgba(0, 212, 255, 0.1);
    transform: translateY(-2px);
}

.nav-item:hover .nav-indicator {
    width: 80%;
}

.nav-item:hover .nav-link i {
    color: #ffffff;
    transform: scale(1.1);
}

/* Dropdown Menu */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(5, 5, 5, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 8px 0;
    min-width: 180px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.nav-item:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-link {
    display: block;
    padding: 10px 20px;
    color: #E0E0E0;
    text-decoration: none;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.dropdown-link:hover {
    color: #ffffff;
    background: rgba(0, 212, 255, 0.05);
    border-left-color: #00d4ff;
    transform: translateX(5px);
}

/* Advanced Hamburger */
.advanced-hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.advanced-hamburger .line {
    width: 25px;
    height: 3px;
    background: linear-gradient(90deg, #00d4ff, #4ecdc4);
    margin: 3px 0;
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.advanced-hamburger:hover {
    background: rgba(0, 212, 255, 0.1);
}

.advanced-hamburger.active .line1 {
    transform: rotate(45deg) translate(7px, 7px);
}

.advanced-hamburger.active .line2 {
    opacity: 0;
}

.advanced-hamburger.active .line3 {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Remove old navigation styles */

@keyframes progressFlow {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* ===== ADVANCED HERO SECTION ===== */
.advanced-hero {
    min-height: 100vh;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 5vh;
}

.hero-background-advanced {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

/* Cosmic Background */
.cosmic-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../assets/images/image-1756579566869.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1;
    transition: all 0.5s ease;
}

/* Clean Technical Effects */

/* ===== HERO CONTENT ADVANCED ===== */
.hero-content-advanced {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: none;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
    margin-top: 10vh;
}

/* Hero Glass Advanced - Static */
.hero-glass-advanced {
    background: linear-gradient(180deg, 
        rgba(13, 34, 87, 0.4) 0%, 
        rgba(17, 45, 102, 0.35) 25%, 
        rgba(25, 55, 120, 0.3) 50%, 
        rgba(30, 68, 135, 0.25) 75%,
        rgba(37, 79, 148, 0.2) 100%
    );
    backdrop-filter: blur(20px);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 30px;
    padding: 50px 40px;
    text-align: center;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(59, 130, 246, 0.2);
    position: relative;
    overflow: hidden;
    width: min(2900px, 90vw);
    max-width: none;
    margin: 0 auto;
    z-index: 2;
}

.hero-glass-advanced::before {
    display: none;
}

/* Hero Title Advanced - Enhanced for Glassmorphism */
.hero-title-advanced {
    margin-bottom: 30px;
    position: relative;
    z-index: 3;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* Enhanced text glow for better contrast on glass background */
.hero-title-advanced h1,
.hero-title-advanced .welcome-text,
.hero-title-advanced .asimo-text,
.hero-title-advanced .college-name-hero {
    text-shadow: 
        0 2px 10px rgba(0, 0, 0, 0.5),
        0 0 20px rgba(0, 123, 255, 0.1);
}

.hero-title-advanced.scrolled {
    transform: scale(1.5) translateY(-20px);
    opacity: 0.3;
}

.title-line-1 .welcome-text {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.3rem;
    color: #ffffff;
    font-weight: 400;
    display: block;
    margin-bottom: 10px;
    letter-spacing: 2px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.title-line-2 .main-title {
    font-family: 'Pattanakarn', sans-serif;
    font-size: clamp(3rem, 7vw, 5rem);
    font-weight: 800;
    display: block;
    margin-bottom: 5px;
    letter-spacing: 1px;
    transition: inherit;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.8);
}

.title-line-3 .subtitle-title {
    font-family: 'Rajdhani', sans-serif;
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 600;
    color: #ffffff;
    display: block;
    margin-bottom: 15px;
    letter-spacing: 2px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.gradient-text-advanced {
    background: #ffffff;
    color: #ffffff;
    -webkit-background-clip: text;
    -webkit-text-fill-color: #ffffff;
    background-clip: text;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.8);
}

.title-line-4 .college-name-hero {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.2rem;
    color: #ffffff;
    font-weight: 400;
    display: block;
    letter-spacing: 1px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

/* Hero Subtitle Advanced - Enhanced for Glassmorphism */
.hero-subtitle-advanced {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 40px;
}

.subtitle-main {
    font-family: 'Rajdhani', sans-serif;
    font-size: 1.3rem;
    color: #ffffff;
    font-weight: 500;
    font-style: italic;
    letter-spacing: 1px;
    text-shadow: 
        0 2px 10px rgba(0, 0, 0, 0.6),
        0 0 15px rgba(0, 123, 255, 0.1);
}

.subtitle-secondary {
    font-family: 'Pattanakarn', sans-serif;
    font-size: 1.1rem;
    color: #E0E0E0;
    font-weight: 300;
    letter-spacing: 0.5px;
    text-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.7),
        0 0 12px rgba(0, 123, 255, 0.05);
}

/* Force white text in hero box regardless of theme */
.hero-glass-advanced *,
.hero-glass-advanced .title-line-1 .welcome-text,
.hero-glass-advanced .title-line-2 .main-title,
.hero-glass-advanced .title-line-3 .subtitle-title,
.hero-glass-advanced .title-line-4 .college-name-hero,
.hero-glass-advanced .subtitle-main,
.hero-glass-advanced .subtitle-secondary,
.hero-glass-advanced .gradient-text-advanced {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}

/* Override theme variations for hero text */
body.light-theme .hero-glass-advanced *,
body.dark-theme .hero-glass-advanced *,
body.light-theme .hero-glass-advanced .title-line-1 .welcome-text,
body.light-theme .hero-glass-advanced .title-line-2 .main-title,
body.light-theme .hero-glass-advanced .title-line-3 .subtitle-title,
body.light-theme .hero-glass-advanced .title-line-4 .college-name-hero,
body.light-theme .hero-glass-advanced .subtitle-main,
body.light-theme .hero-glass-advanced .subtitle-secondary,
body.light-theme .hero-glass-advanced .gradient-text-advanced {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}

/* Hero Buttons Advanced */
.hero-buttons-advanced {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

/* Explore Timeline Button with Left-to-Right Waterfill */
.btn-explore-timeline {
    font-family: 'Rajdhani', sans-serif;
    padding: 15px 40px;
    border: 2px solid #ffffff;
    border-radius: 50px;
    background: transparent;
    color: #ffffff !important;
    font-weight: 600;
    font-size: 17px;
    cursor: pointer;
    transition: transform 0.07s ease;
    position: relative;
    overflow: hidden;
    text-transform: uppercase;
    letter-spacing: 2px;
    z-index: 1;
}

.btn-explore-timeline .btn-text {
    position: relative;
    z-index: 2;
    transition: color 0.4s ease;
    color: #ffffff !important;
}

/* Force white text for hero buttons regardless of theme */
body.light-theme .btn-explore-timeline,
body.dark-theme .btn-explore-timeline,
body.light-theme .btn-explore-timeline .btn-text,
body.dark-theme .btn-explore-timeline .btn-text {
    color: #ffffff !important;
}

/* Left-to-Right Waterfill Effect */
.waterfill-effect {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        rgba(108, 161, 245, 0.9) 0%, 
        rgba(27, 48, 105, 0.935) 100%
    );
    transition: left 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

.btn-explore-timeline:hover .waterfill-effect {
    left: 0;
}

.btn-explore-timeline:hover .btn-text {
    color: #ffffff;
}

.btn-explore-timeline:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}

/* Hero Stats */
.hero-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
    padding: 20px;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
    background: rgba(0, 212, 255, 0.05);
    border-color: rgba(0, 212, 255, 0.2);
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 5px;
    text-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

.stat-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Scroll Indicator - Static */
.scroll-indicator-advanced {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.scroll-line {
    width: 2px;
    height: 30px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 1px;
}

.scroll-dot {
    width: 8px;
    height: 8px;
    background: #ffffff;
    border-radius: 50%;
    opacity: 0.7;
}

.scroll-text {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 2px;
    writing-mode: vertical-rl;
    text-orientation: mixed;
}

/* Mobile Responsive for Advanced Graphics */
@media (max-width: 768px) {
    .hero-glass-advanced {
        padding: 30px 20px;
    }
    
    .hero-stats {
        gap: 20px;
    }
    
    .stat-item {
        padding: 15px;
    }
    
    .nav-menu-advanced {
        display: none;
    }
    
    .advanced-hamburger {
        display: flex;
    }
}
