/* ========================================
   AIONEX 2K26 — Custom Styles
   Apple-like formality + Fiery ember theme
   ======================================== */

/* === Smooth scroll & global === */
html {
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 106, 0, 0.3) transparent;
}

::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 106, 0, 0.3);
    border-radius: 99px;
}

::selection {
    background: rgba(255, 106, 0, 0.25);
    color: #fff;
}

/* === Text Gradients === */
.text-gradient {
    background: linear-gradient(135deg, #ff6a00 0%, #ff9500 50%, #ffcc00 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-gradient-purple {
    background: linear-gradient(135deg, #ff9500 0%, #ffcc00 50%, #ff6a00 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* === Navbar === */
#navbar.scrolled {
    background: rgba(8, 4, 0, 0.75);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    width: 0;
    height: 1.5px;
    background: linear-gradient(90deg, #ff6a00, #ff9500);
    transition: all 0.3s ease;
    transform: translateX(-50%);
    border-radius: 99px;
}

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

.register-btn {
    background: linear-gradient(135deg, rgba(255, 106, 0, 0.15), rgba(255, 149, 0, 0.15));
    border: 1px solid rgba(255, 106, 0, 0.25);
    color: #ff6a00;
}

.register-btn:hover {
    background: linear-gradient(135deg, rgba(255, 106, 0, 0.25), rgba(255, 149, 0, 0.25));
    border-color: rgba(255, 106, 0, 0.5);
    box-shadow: 0 0 24px rgba(255, 106, 0, 0.15);
}

/* Mobile menu */
.mobile-menu-closed {
    max-height: 0;
}

.mobile-menu-open {
    max-height: 400px;
}

/* === Hero === */
.hero-bg-gradient {
    background:
        radial-gradient(ellipse 80% 70% at 20% 40%, rgba(255, 106, 0, 0.06) 0%, transparent 60%),
        radial-gradient(ellipse 60% 50% at 80% 60%, rgba(255, 149, 0, 0.06) 0%, transparent 60%),
        radial-gradient(ellipse 50% 40% at 50% 20%, rgba(255, 204, 0, 0.03) 0%, transparent 50%);
}

.hero-grid {
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
}

.floating-animation {
    animation: floating 6s ease-in-out infinite;
}

@keyframes floating {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-16px);
    }
}

.scroll-line {
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {

    0%,
    100% {
        opacity: 0.3;
        transform: scaleY(1);
    }

    50% {
        opacity: 1;
        transform: scaleY(1.3);
    }
}

/* === Buttons === */
.glow-btn-primary {
    background: linear-gradient(135deg, #ff6a00, #ff9500);
    color: #080400;
    font-weight: 700;
    position: relative;
    overflow: hidden;
}

.glow-btn-primary::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(135deg, #ff6a00, #ff9500);
    z-index: -1;
    filter: blur(16px);
    opacity: 0;
    transition: opacity 0.4s ease;
    border-radius: inherit;
}

.glow-btn-primary:hover::before {
    opacity: 0.6;
}

.glow-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(255, 106, 0, 0.3);
}

.glow-btn-secondary {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
}

.glow-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* === Event Cards === */
.event-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    padding: 32px 28px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.event-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 106, 0, 0.3), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.event-card:hover {
    transform: translateY(-6px);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 106, 0, 0.15);
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 106, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.event-card:hover::before {
    opacity: 1;
}

.event-card.non-tech:hover {
    border-color: rgba(255, 149, 0, 0.15);
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 149, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.event-card.non-tech::before {
    background: linear-gradient(90deg, transparent, rgba(255, 149, 0, 0.3), transparent);
}

.event-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.event-card:hover .event-card-icon {
    transform: scale(1.08);
}

.event-card-icon.tech {
    background: linear-gradient(135deg, rgba(255, 106, 0, 0.12), rgba(255, 106, 0, 0.04));
    border: 1px solid rgba(255, 106, 0, 0.12);
}

.event-card-icon.non-tech {
    background: linear-gradient(135deg, rgba(255, 149, 0, 0.12), rgba(255, 149, 0, 0.04));
    border: 1px solid rgba(255, 149, 0, 0.12);
}

.event-register-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 20px;
    border-radius: 99px;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
}

.event-register-btn.tech {
    background: rgba(255, 106, 0, 0.08);
    border: 1px solid rgba(255, 106, 0, 0.15);
    color: #ff6a00;
}

.event-register-btn.tech:hover {
    background: rgba(255, 106, 0, 0.15);
    border-color: rgba(255, 106, 0, 0.3);
    box-shadow: 0 0 16px rgba(255, 106, 0, 0.1);
}

.event-register-btn.non-tech {
    background: rgba(255, 149, 0, 0.08);
    border: 1px solid rgba(255, 149, 0, 0.15);
    color: #ff9500;
}

.event-register-btn.non-tech:hover {
    background: rgba(255, 149, 0, 0.15);
    border-color: rgba(255, 149, 0, 0.3);
    box-shadow: 0 0 16px rgba(255, 149, 0, 0.1);
}

/* === Faculty Cards === */
.faculty-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    padding: 28px 24px;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.faculty-card:hover {
    transform: translateY(-6px);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 149, 0, 0.15);
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 149, 0, 0.08);
}

.faculty-card-img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 16px;
    border: 2px solid rgba(255, 255, 255, 0.06);
    transition: all 0.4s ease;
}

.faculty-card:hover .faculty-card-img {
    transform: scale(1.06);
    border-color: rgba(255, 149, 0, 0.3);
    box-shadow: 0 0 30px rgba(255, 149, 0, 0.15);
}

.faculty-social-links {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 12px;
    opacity: 0;
    transform: translateY(8px);
    transition: all 0.3s ease;
}

.faculty-card:hover .faculty-social-links {
    opacity: 1;
    transform: translateY(0);
}

.faculty-social-link {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.faculty-social-link:hover {
    border-color: rgba(255, 149, 0, 0.4);
    background: rgba(255, 149, 0, 0.1);
}

/* Featured faculty card (HOD / Symposium Coordinator) */
.faculty-card-featured {
    width: 100%;
    max-width: 320px;
    padding: 36px 32px;
}

.faculty-card-img-featured {
    width: 130px;
    height: 130px;
}

/* === Social Icons (Footer) === */
.social-icon:hover i {
    color: #ff6a00;
}

/* === Mobile hamburger active state === */
.menu-active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(3px, 3px);
}

.menu-active .menu-line:nth-child(2) {
    opacity: 0;
}

.menu-active .menu-line:nth-child(3) {
    width: 1.5rem;
    transform: rotate(-45deg) translate(3px, -3px);
}

/* === Responsive tweaks === */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.75rem;
    }

    .hero-content h1 .block:last-child {
        font-size: 1.5rem;
    }

    .event-card {
        padding: 24px 20px;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2.25rem;
    }
}