:root {
    --bg-color: #050505;
    --red-glow: #ff0000;
    --cyan-glow: #00f2ff;
    --text-color: #ffffff;
    --panel-color: rgba(20, 20, 20, 0.8);
    --font-main: 'Inter', sans-serif;
    --font-tech: 'Orbitron', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-main);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Background Effects */
.scanline {
    width: 100%;
    height: 100px;
    z-index: 10;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0) 0%, rgba(255, 255, 255, 0.05) 50%, rgba(0, 0, 0, 0) 100%);
    opacity: 0.1;
    position: fixed;
    bottom: 100%;
    animation: scanline 10s linear infinite;
    pointer-events: none;
}

@keyframes scanline {
    0% {
        bottom: 100%;
    }

    100% {
        bottom: -100px;
    }
}

/* .noise removed to eliminate placeholder text */
.noise {
    display: none;
}

.bg-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.grid-overlay {
    position: absolute;
    width: 200%;
    height: 200%;
    top: -50%;
    left: -50%;
    background-image:
        linear-gradient(rgba(255, 0, 0, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 0, 0, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    transform: perspective(500px) rotateX(60deg);
    animation: grid-move 20s linear infinite;
}

@keyframes grid-move {
    0% {
        transform: perspective(500px) rotateX(60deg) translateY(0);
    }

    100% {
        transform: perspective(500px) rotateX(60deg) translateY(50px);
    }
}

.portal {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
}

/* .portal-red removed to eliminate red glow */
.portal-red {
    display: none;
}

.portal-cyan {
    width: 300px;
    height: 300px;
    background: var(--cyan-glow);
    bottom: 10%;
    left: -50px;
    animation: pulse-cyan 10s ease-in-out infinite alternate;
}

@keyframes pulse-red {
    0% {
        transform: scale(1);
        opacity: 0.2;
    }

    100% {
        transform: scale(1.5);
        opacity: 0.4;
    }
}

@keyframes pulse-cyan {
    0% {
        transform: scale(1);
        opacity: 0.2;
    }

    100% {
        transform: scale(1.3);
        opacity: 0.3;
    }
}

/* Navigation */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 5%;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    background: rgba(5, 5, 5, 0.7);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 0, 0, 0.1);
}

.logo {
    font-family: var(--font-tech);
    font-weight: 900;
    font-size: 1.5rem;
    letter-spacing: 2px;
    color: var(--text-color);
}

.logo span {
    color: var(--red-glow);
    text-shadow: 0 0 10px var(--red-glow);
}

.nav-links {
    display: flex;
    gap: 2rem;
    transition: 0.3s ease;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-size: 0.9rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--cyan-glow);
    box-shadow: 0 0 10px var(--cyan-glow);
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: var(--cyan-glow);
    text-shadow: 0 0 10px var(--cyan-glow), 0 0 20px var(--cyan-glow);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-links a.nav-register {
    color: var(--red-glow);
    font-weight: 700;
}

.nav-links a.nav-register:hover {
    color: #ff3333;
    text-shadow: 0 0 10px var(--red-glow), 0 0 20px var(--red-glow);
}

.nav-links a.nav-register::after {
    background: var(--red-glow);
    box-shadow: 0 0 10px var(--red-glow);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 1001;
}

.mobile-menu-btn span {
    width: 25px;
    height: 2px;
    background: var(--text-color);
    transition: 0.3s;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    padding: 80px 5% 50px;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.8)), url('stranger_hero_bg.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.main-title-container {
    margin-bottom: 1rem;
    /* Reduced from 2rem */
    animation: fadeInDown 1.5s ease-out;
}

.hero-title-img {
    max-width: 800px;
    width: 95%;
    /* mix-blend-mode: screen removes the black background and rectangular edges */
    mix-blend-mode: screen;
    filter: brightness(1.1);
}

@keyframes title-flicker {

    0%,
    19%,
    21%,
    23%,
    25%,
    54%,
    56%,
    100% {
        filter: drop-shadow(0 0 20px rgba(255, 0, 0, 0.6));
        opacity: 1;
    }

    20%,
    22%,
    24%,
    55% {
        filter: drop-shadow(0 0 5px rgba(255, 0, 0, 0.2));
        opacity: 0.8;
    }
}

.subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    letter-spacing: 8px;
    color: var(--cyan-glow);
    margin-bottom: 2rem;
    /* Reduced from 3rem */
    text-transform: uppercase;
    text-shadow: 0 0 10px var(--cyan-glow);
    animation: fadeInUp 1.5s ease-out 0.5s both;
}

.btn-register {
    display: inline-block;
    padding: 1rem 3rem;
    font-family: var(--font-tech);
    color: var(--text-color);
    text-decoration: none;
    border: 1px solid var(--cyan-glow);
    position: relative;
    overflow: hidden;
    transition: all 0.4s ease;
    background: rgba(0, 242, 255, 0.1);
    animation: fadeInUp 1.5s ease-out 1s both;
    letter-spacing: 2px;
    font-weight: 700;
}

.btn-register:hover {
    background: var(--cyan-glow);
    color: var(--bg-color);
    box-shadow: 0 0 30px var(--cyan-glow);
    transform: translateY(-5px);
}

.btn-energy {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: 0.5s;
}

.btn-register:hover .btn-energy {
    left: 100%;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.scroll-indicator span {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #666;
}

.mouse {
    width: 25px;
    height: 40px;
    border: 2px solid #444;
    border-radius: 20px;
    position: relative;
}

.mouse::after {
    content: '';
    position: absolute;
    top: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: var(--red-glow);
    border-radius: 2px;
    animation: mouse-scroll 1.5s infinite;
}

@keyframes mouse-scroll {
    0% {
        top: 5px;
        opacity: 1;
    }

    100% {
        top: 25px;
        opacity: 0;
    }
}

/* Section Containers */
.section-container {
    min-height: 100vh;
    padding: 120px 10%;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.5s ease;
    border-bottom: 1px solid rgba(255, 0, 0, 0.1);
}

.section-container.alternate {
    background: linear-gradient(rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.9)), url('stranger_events_bg.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

#rules {
    background: linear-gradient(rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.9)), url('stranger_rules_bg.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

#about {
    background: linear-gradient(rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.9)), url('stranger_about_bg.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-title {
    font-family: var(--font-tech);
    font-size: 3rem;
    letter-spacing: 10px;
    position: relative;
    display: inline-block;
    text-shadow: 0 0 15px var(--red-glow);
}

.alternate .section-title {
    text-shadow: 0 0 15px var(--cyan-glow);
}

.section-title::before {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.3;
    animation: flicker 4s infinite;
}

@keyframes flicker {

    0%,
    19.999%,
    22%,
    62.999%,
    64%,
    64.999%,
    70%,
    100% {
        opacity: 0.3;
    }

    20%,
    21.999%,
    63%,
    63.999%,
    65%,
    69.999% {
        opacity: 0.1;
    }
}

.title-underline {
    width: 80px;
    height: 4px;
    background: var(--red-glow);
    margin: 10px auto;
    box-shadow: 0 0 10px var(--red-glow);
}

.underline-cyan {
    background: var(--cyan-glow);
    box-shadow: 0 0 10px var(--cyan-glow);
}

.about-content {
    width: 100%;
    max-width: 900px;
    text-align: center;
}

.about-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #ccc;
    margin-bottom: 2rem;
    font-weight: 300;
}

.about-content strong {
    color: var(--red-glow);
    text-shadow: 0 0 5px var(--red-glow);
}

.placeholder-content {
    width: 100%;
    max-width: 900px;
}

/* Events & Multi-Column Layouts */
.events-wrapper {
    width: 100%;
    max-width: 1200px;
}

.subsection-header {
    margin: 4rem 0 2rem;
    text-align: left;
    border-left: 4px solid var(--red-glow);
    padding-left: 1.5rem;
}

.subsection-header.non-tech {
    border-color: var(--cyan-glow);
}

.subsection-header h3 {
    font-family: var(--font-tech);
    font-size: 1.8rem;
    letter-spacing: 4px;
    color: #fff;
    text-transform: uppercase;
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.event-card {
    background: rgba(10, 10, 10, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 2rem;
    position: relative;
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    overflow: hidden;
}

.event-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 2px;
    height: 0;
    background: var(--red-glow);
    transition: height 0.4s ease;
}

.event-card:hover {
    background: rgba(20, 20, 20, 0.9);
    border-color: rgba(255, 0, 0, 0.3);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.event-card:hover::before {
    height: 100%;
}

.event-title {
    font-family: var(--font-tech);
    font-size: 1.2rem;
    color: var(--red-glow);
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
}

.event-desc {
    font-size: 0.95rem;
    color: #ccc;
    line-height: 1.5;
}

.event-rules-list {
    list-style: none;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.event-rules-list li {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 0.5rem;
    padding-left: 1.2rem;
    position: relative;
}

.event-rules-list li::before {
    content: '>';
    position: absolute;
    left: 0;
    color: var(--red-glow);
    font-weight: bold;
}

.non-tech-card::before {
    background: var(--cyan-glow);
}

.non-tech-card .event-title {
    color: var(--cyan-glow);
}

.non-tech-card .event-rules-list li::before {
    color: var(--cyan-glow);
}

/* General Rules Styling */
.rules-content {
    width: 100%;
    max-width: 800px;
    background: rgba(255, 0, 0, 0.02);
    border: 1px solid rgba(255, 0, 0, 0.1);
    padding: 3rem;
    position: relative;
}

.rules-list {
    list-style: none;
}

.rules-list li {
    font-size: 1.1rem;
    color: #fff;
    margin-bottom: 1.5rem;
    padding-left: 2rem;
    position: relative;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: 300;
}

.rules-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 10px;
    height: 10px;
    background: var(--red-glow);
    box-shadow: 0 0 10px var(--red-glow);
}

.contact-content {
    width: 100%;
    max-width: 900px;
    text-align: center;
}

.contact-content p {
    font-size: 1.1rem;
    color: #ccc;
    margin-bottom: 1.5rem;
    letter-spacing: 2px;
}

.contact-details {
    margin-top: 2rem;
    padding: 2rem;
    border: 1px solid rgba(0, 242, 255, 0.1);
    background: rgba(0, 242, 255, 0.02);
}

.contact-details p {
    color: var(--cyan-glow);
    font-family: var(--font-tech);
    margin-bottom: 1rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.social-links a {
    color: var(--text-color);
    text-decoration: none;
    font-family: var(--font-tech);
    font-size: 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    min-width: 150px;
    height: 45px;
    padding: 0 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
    letter-spacing: 2px;
}

.social-links a:hover {
    border-color: var(--red-glow);
    color: var(--red-glow);
    text-shadow: 0 0 10px var(--red-glow);
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.2);
    transform: translateY(-3px);
}

/* Coordinators Section */
.coordinators-section {
    background: linear-gradient(rgba(0, 0, 0, 0.85), rgba(0, 0, 0, 0.9)), url('stranger_coordinators_bg.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.coordinators-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    width: 100%;
    max-width: 1200px;
    margin-top: 2rem;
}

.coordinator-card {
    background: rgba(15, 15, 15, 0.6);
    border: 1px solid rgba(255, 0, 0, 0.1);
    padding: 2.5rem 1.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(10px);
}

.coordinator-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--red-glow);
    background: rgba(30, 0, 0, 0.3);
    box-shadow: 0 10px 30px rgba(255, 0, 0, 0.1);
}

.coord-name {
    font-family: var(--font-tech);
    font-weight: 700;
    font-size: 1.4rem;
    letter-spacing: 3px;
    color: #fff;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.coord-phone {
    font-size: 1.2rem;
    color: var(--red-glow);
    font-weight: 700;
    letter-spacing: 2px;
    text-shadow: 0 0 10px rgba(255, 0, 0, 0.3);
}

.card-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(255, 0, 0, 0.05) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.coordinator-card:hover .card-glow {
    opacity: 1;
}

/* Footer styling update */
footer {
    padding: 80px 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
    background: #000;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

.footer-logo {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.college-full-name {
    font-size: 0.9rem;
    letter-spacing: 3px;
    color: #888;
    margin-bottom: 2rem;
    font-weight: 500;
}

.copyright {
    font-size: 0.7rem;
    color: #444;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.footer-glow {
    position: absolute;
    bottom: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: 500px;
    height: 200px;
    background: var(--red-glow);
    filter: blur(100px);
    opacity: 0.1;
    z-index: -1;
}

/* Reveal Animations */
.reveal-init {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-init.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--bg-color);
    border: 1px solid var(--red-glow);
    color: var(--red-glow);
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--red-glow);
    color: #fff;
    box-shadow: 0 0 20px var(--red-glow);
    transform: translateY(-5px);
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Refinements */
@media (max-width: 1024px) {
    .glitch-title {
        font-size: 4rem;
    }

    .hero-title-img {
        max-width: 650px;
    }

    .section-container {
        padding: 80px 5%;
    }
}

@media (max-width: 768px) {
    nav {
        padding: 1rem 5%;
    }

    .logo {
        font-size: 1.2rem;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 80%;
        background: rgba(5, 5, 5, 0.98);
        backdrop-filter: blur(15px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 3rem;
        z-index: 1000;
        border-left: 1px solid rgba(255, 0, 0, 0.1);
    }

    .nav-links.active {
        right: 0;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .hero {
        padding-top: 100px;
    }

    .hero-title-img {
        max-width: 500px;
    }

    .subtitle {
        font-size: 1rem;
        letter-spacing: 4px;
    }

    .section-title {
        font-size: 2.2rem;
        letter-spacing: 6px;
    }

    .events-grid,
    .coordinators-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.5rem;
    }

    .rules-content {
        padding: 2rem;
    }
}

@media (max-width: 480px) {
    .hero {
        padding-top: 80px;
    }

    .hero-title-img {
        max-width: 100%;
    }

    .subtitle {
        font-size: 0.8rem;
        letter-spacing: 3px;
    }

    .section-title {
        font-size: 1.8rem;
        letter-spacing: 4px;
    }

    .btn-register {
        padding: 0.8rem 2rem;
        width: 90%;
    }

    .coord-name {
        font-size: 1.2rem;
    }
}