/* Custom CSS for ECEHackathon Website */

/* Venue Section Styles */
.footer-address {
    text-align: center;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
    transition: all 0.3s ease;
}

.footer-address:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.address-box {
    display: flex;
    align-items: center;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Small square map */
.mini-map {
    width: 50px;   /* Reduced from 75px */
    height: 50px;  /* Reduced from 75px */
    border: none;
    border-radius: 8px;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.mini-map:hover {
    transform: scale(1.1);
}

:root {
    --bg-dark: #0A0F1F;
    --primary-cyan: #00ffff;
    --primary-yellow: #FFD700;
    --primary-purple: #9966ff;
    --primary-green: #00ff00;
    --secondary-purple: #9966ff;
    --accent-green: #22C55E;
    --accent-orange: #F97316;
    --text-white: #FFFFFF;
    --text-gray: #94a3b8;
    --border-cyan: rgba(0, 255, 255, 0.3);
    --border-yellow: rgba(255, 215, 0, 0.3);
    --glow-cyan: 0 0 20px rgba(0, 255, 255, 0.5);
    --glow-yellow: 0 0 20px rgba(255, 215, 0, 0.5);
    --glow-purple: 0 0 20px rgba(153, 102, 255, 0.5);
    --glow-green: 0 0 20px rgba(34, 197, 94, 0.5);
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-white);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    overflow-x: hidden;
}

/* Mobile Navigation Menu Styles */
#mobileMenu {
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    pointer-events: none;
}

/* Hamburger menu animation */
.hamburger-line {
    transition: all 0.3s ease-in-out;
    transform-origin: center;
}

.hamburger-menu.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger-menu.active .hamburger-line:nth-child(2) {
    opacity: 0;
    transform: translateX(20px);
}

.hamburger-menu.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Enhanced glowing register button styles */
.register-btn {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    transition: all 0.3s ease;
    animation: glow-pulse 2s ease-in-out infinite;
}

.register-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.register-btn:hover::before {
    left: 100%;
}

.register-btn:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 
        0 0 30px rgba(255, 215, 0, 0.8),
        0 0 60px rgba(255, 215, 0, 0.5),
        0 0 90px rgba(255, 215, 0, 0.3),
        inset 0 0 20px rgba(255, 255, 255, 0.2);
    background: linear-gradient(135deg, #FFD700, #FF8C00);
}

@keyframes glow-pulse {
    0%, 100% {
        box-shadow: 
            0 0 20px rgba(255, 215, 0, 0.5),
            0 0 40px rgba(255, 215, 0, 0.3);
    }
    50% {
        box-shadow: 
            0 0 30px rgba(255, 215, 0, 0.7),
            0 0 60px rgba(255, 215, 0, 0.4);
    }
}

/* Remove focus outline from navigation elements */
.nav-link:focus,
.nav-link:focus-visible,
button:focus,
button:focus-visible,
a:focus,
a:focus-visible {
    outline: none !important;
    box-shadow: none !important;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Loading Screen Styles */
#loadingScreen {
    position: fixed;
    inset: 0;
    background: #0A0F1F;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Loading Text Animation */
.loading-text p {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease-out forwards;
}

.loading-text p:nth-child(1) { animation-delay: 0.2s; }
.loading-text p:nth-child(2) { animation-delay: 0.8s; }
.loading-text p:nth-child(3) { animation-delay: 1.4s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Loading Bar Animation */
@keyframes loadingBar {
    0% { 
        width: 0%; 
        background-position: 0% 50%;
        box-shadow: 
            0 0 10px #00ffff,
            0 0 20px #9966ff,
            0 0 30px #00ff88;
    }
    50% { 
        width: 50%;
        background-position: 100% 50%;
        box-shadow: 
            0 0 20px #9966ff,
            0 0 30px #00ff88,
            0 0 40px #00ffff;
    }
    100% { 
        width: 100%; 
        background-position: 0% 50%;
        box-shadow: 
            0 0 30px #00ff88,
            0 0 40px #00ffff,
            0 0 50px #9966ff;
    }
}

.animate-loading-bar {
    width: 0%;
    height: 100%;
    animation: loadingBar 3s ease-in-out forwards;
    background: linear-gradient(
        90deg,
        #00ffff 0%,
        #9966ff 25%,
        #00ff88 50%,
        #00ffff 75%,
        #9966ff 100%
    );
    background-size: 300% 100%;
    box-shadow: 
        0 0 15px #00ffff,
        0 0 25px #9966ff,
        0 0 35px #00ff88;
    filter: brightness(1.3) saturate(1.5);
    will-change: width, background-position, box-shadow;
    transform: translateZ(0);
    border-radius: 999px;
}

/* Loading Screen Exit Animation */
#loadingScreen.fade-out {
    opacity: 0;
    pointer-events: none;
    transition: opacity 1s ease-out;
}

#loadingScreen.hidden {
    display: none !important;
    visibility: hidden !important;
}

/* Main content should be hidden initially */
body.loading-active {
    overflow: hidden;
}

body.loading-active > :not(#loadingScreen) {
    opacity: 0;
    pointer-events: none;
}

body:not(.loading-active) > :not(#loadingScreen) {
    opacity: 1;
    transition: opacity 0.5s ease-in;
    pointer-events: auto;
}

/* Slow Spin */
@keyframes spin-slow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.animate-spin-slow {
    animation: spin-slow 6s linear infinite;
}

/* Animation Classes */
.animate-glow {
    animation: glow 2s ease-in-out infinite;
}

/* Circuit Background */
.circuit-bg {
    background-image:
        linear-gradient(rgba(0,255,255,0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,255,255,0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: circuitMove 20s linear infinite;
}

@keyframes circuitMove {
    0% { background-position: 0 0; }
    100% { background-position: 100px 100px; }
}

/* Navigation Styles */
.nav-link {
    position: relative;
    transition: all 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-cyan), var(--secondary-purple));
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Hero Section Styles */
.hero-gradient {
    background: linear-gradient(135deg, 
        rgba(0, 255, 255, 0.1) 0%, 
        rgba(153, 69, 255, 0.1) 50%, 
        rgba(0, 255, 136, 0.1) 100%);
}

/* Card Styles */
.highlight-card,
.track-card,
.project-card {
    transition: all 0.3s ease;
}

.highlight-card:hover,
.track-card:hover,
.project-card:hover {
    transform: translateY(-5px);
}

/* Glassmorphism Effect */
.glass {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Timeline Styles */
.timeline {
    position: relative;
    padding: 20px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--primary-cyan), var(--secondary-purple));
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin: 40px 0;
}

.timeline-dot {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    box-shadow: 0 0 20px currentColor;
}

.timeline-content {
    width: calc(50% - 40px);
    position: relative;
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-left: auto;
    margin-right: 0;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-left: 0;
    margin-right: auto;
}

/* FAQ Styles */
.faq-question {
    transition: all 0.3s ease;
}

.faq-question:hover {
    transform: translateX(5px);
}

.faq-question i {
    transition: transform 0.3s ease;
}

.faq-question.active i {
    transform: rotate(180deg);
}

.faq-answer {
    animation: slideDown 0.3s ease-out;
}

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

/* Countdown Timer Styles */
#countdown div {
    transition: all 0.3s ease;
}

#countdown div:hover {
    transform: scale(1.05);
}

/* Mobile Viewport Fix */
html, body {
    height: 100%;
    min-height: 100%;
    overflow-x: hidden;
}

/* Mobile Menu */
#mobileMenu {
    display: none;
    transition: all 0.3s ease-in-out;
}

#mobileMenu.active {
    display: block;
}

/* Responsive Design */
@media (max-width: 768px) {
    .timeline::before {
        left: 20px;
    }
    
    .timeline-dot {
        left: 20px;
    }
    
    .timeline-content {
        width: calc(100% - 60px);
        margin-left: 40px !important;
    }
    
    .timeline-item:nth-child(even) .timeline-content {
        margin-left: 40px !important;
    }
    
    .hero h1 {
        font-size: 3rem;
    }
    
    .hero p {
        font-size: 1.5rem;
    }
}

/* Floating Animation */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

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

.animate-pulse {
    animation: pulse 2s ease-in-out infinite;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--primary-cyan), var(--secondary-purple));
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--secondary-purple), var(--primary-cyan));
}

/* Selection Color */
::selection {
    background: var(--primary-cyan);
    color: var(--bg-dark);
}

/* Focus States */
button:focus,
a:focus {
    outline: 2px solid var(--primary-cyan);
    outline-offset: 2px;
}

/* Loading Screen Exit Animation */
#loadingScreen.fade-out {
    opacity: 0;
    pointer-events: none;
    transition: opacity 1s ease-out;
}

#loadingScreen.hidden {
    display: none !important;
    visibility: hidden !important;
}

/* Main content should be hidden initially */
body.loading-active {
    overflow: hidden;
}

body.loading-active > :not(#loadingScreen) {
    opacity: 0;
    pointer-events: none;
}

body:not(.loading-active) > :not(#loadingScreen) {
    opacity: 1;
    transition: opacity 0.5s ease-in;
    pointer-events: auto;
}

/* Particle Container */
#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
}

/* Text Gradient */
.text-gradient {
    background: linear-gradient(90deg, var(--primary-cyan), var(--secondary-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Border Gradient */
.border-gradient {
    border: 2px solid transparent;
    background: linear-gradient(var(--bg-dark), var(--bg-dark)) padding-box,
                linear-gradient(90deg, var(--primary-cyan), var(--secondary-purple)) border-box;
}

/* Hover Effects */
.hover-lift {
    transition: transform 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
}

.hover-scale {
    transition: transform 0.3s ease;
}

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

/* Glow Effects */
.animate-glow:hover {
    box-shadow:
        0 0 10px #00ffff,
        0 0 20px #00ffff,
        0 0 40px #00ffff;
}

.glow-cyan {
    box-shadow: var(--glow-cyan);
}

.glow-purple {
    box-shadow: var(--glow-purple);
}

.glow-green {
    box-shadow: var(--glow-green);
}

/* Circuit Pattern Overlay */
.circuit-pattern {
    position: relative;
    overflow: hidden;
}

.circuit-pattern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(0, 255, 255, 0.2) 0%, transparent 2%),
        radial-gradient(circle at 75% 75%, rgba(153, 69, 255, 0.2) 0%, transparent 2%),
        linear-gradient(45deg, transparent 48%, rgba(0, 255, 255, 0.1) 49%, rgba(0, 255, 255, 0.1) 51%, transparent 52%);
    background-size: 50px 50px, 50px 50px, 20px 20px;
    pointer-events: none;
    z-index: 1;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
}

p {
    line-height: 1.6;
}

/* Button Styles */
.btn-primary {
    background: linear-gradient(135deg, var(--primary-cyan), var(--secondary-purple));
    color: var(--bg-dark);
    font-weight: 600;
    padding: 12px 24px;
    border-radius: 50px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    transform: scale(1);
}

.btn-primary:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 10px 30px rgba(0, 255, 255, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-cyan);
    font-weight: 600;
    padding: 12px 24px;
    border-radius: 50px;
    border: 2px solid var(--primary-cyan);
    transition: all 0.3s ease;
    cursor: pointer;
    transform: scale(1);
}

.btn-secondary:hover {
    background: var(--primary-cyan);
    color: var(--bg-dark);
    transform: translateY(-2px) scale(1.05);
}

/* Scale transition for buttons */
[class*="bg-"].rounded-full {
    transition: all 0.3s ease;
    transform: scale(1);
}

[class*="bg-"].rounded-full:hover {
    transform: scale(1.05);
}

/* Form Styles */
.form-input {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(0, 255, 255, 0.3);
    color: var(--text-white);
    padding: 12px 16px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-cyan);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.2);
}

.form-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

/* Success/Error Messages */
.message {
    padding: 12px 16px;
    border-radius: 8px;
    margin: 10px 0;
    font-weight: 500;
}

.message.success {
    background: rgba(0, 255, 136, 0.2);
    border: 1px solid var(--accent-green);
    color: var(--accent-green);
}

.message.error {
    background: rgba(255, 107, 53, 0.2);
    border: 1px solid var(--accent-orange);
    color: var(--accent-orange);
}

/* Loading Spinner */
.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 107, 53, 0.3);
}

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

@keyframes spin-slow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes glow {
    0%, 100% { 
        box-shadow: 0 0 20px rgba(0, 255, 255, 0.5),
                   0 0 40px rgba(0, 255, 255, 0.3),
                   0 0 60px rgba(0, 255, 255, 0.1);
    }
    50% { 
        box-shadow: 0 0 30px rgba(0, 255, 255, 0.8),
                   0 0 60px rgba(0, 255, 255, 0.5),
                   0 0 90px rgba(0, 255, 255, 0.3);
    }
}

/* Animation Classes */
.loading-bar {
    height: 100%;
    animation: loadingBar 2s ease-out forwards;
}

.animate-spin {
    animation: spin 2s linear infinite;
}

.animate-spin-slow {
    animation: spin-slow 6s linear infinite;
}

.animate-glow {
    animation: glow 2s ease-in-out infinite;
}

.animate-loading-bar.finished {
    animation: none !important;
    width: 100% !important;
}

/* Email Suggestion Styles */
.email-item {
    padding: 10px;
    cursor: pointer;
    color: white;
    transition: all 0.2s ease;
}

.email-item:hover {
    background: rgba(0, 255, 255, 0.1);
    color: #00ffff;
}

/* Hardware Section Animation */
#hardwareProblemSection {
    transition: all 0.3s ease;
}

select:focus {
    background-color: transparent !important;
    background-image: none !important;
    outline: none;
    box-shadow: none;
    color: inherit !important;
}

select:active {
    background-color: transparent !important;
    background-image: none !important;
    color: inherit !important;
}

select:hover {
    background-color: transparent !important;
    background-image: none !important;
    color: inherit !important;
}

select::-ms-expand {
    display: none;
}

select option {
    background-color: #1f2937 !important;
    color: white !important;
    background-image: none !important;
}

/* Force transparent for all possible states */
select:disabled,
select:read-only,
select:visited,
select:link {
    background-color: transparent !important;
    background-image: none !important;
    color: inherit !important;
}

/* Webkit specific fixes */
select::-webkit-calendar-picker-indicator {
    background: transparent !important;
    color: transparent !important;
}

/* Force override any browser defaults */
select * {
    background-color: transparent !important;
    background-image: none !important;
}

