:root {
    --bg-main: #020914;
    --nav-bg: #01060e;
    --accent: #5effff;
    --accent-hover: #008f8f;
    --text-primary: #e0e6ed;
    --text-muted: #8496a8;
    --panel-bg: rgba(9, 20, 37, 0.85);
    --border-color: rgba(94, 255, 255, 0.2);
    --font-heading: 'Orbitron', sans-serif;
    --font-body: 'Rajdhani', sans-serif;
    --sidebar-left-width: 120px;
    --sidebar-right-width: 60px;
    --top-header-height: 80px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 18px;
    line-height: 1.6;
    letter-spacing: 1px;
    background-image: 
        linear-gradient(rgba(2, 9, 20, 0.92), rgba(2, 9, 20, 0.92)),
        radial-gradient(circle at center, rgba(94, 255, 255, 0.1) 0%, transparent 60%);
    background-size: cover;
    background-attachment: fixed;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60vw;
    height: 60vh;
    background-image: url('logo.jpg');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    opacity: 0.1; /* Translucent watermark effect */
    z-index: -1;
    pointer-events: none;
    mix-blend-mode: screen; /* Helps the logo blend nicely into the dark background */
}

.sidebar-left {
    position: fixed; top: 0; left: 0; width: var(--sidebar-left-width); height: 100vh;
    background: var(--nav-bg); border-right: 1px solid var(--border-color);
    display: flex; flex-direction: column; align-items: center; z-index: 100;
}

.sidebar-logo {
    height: var(--top-header-height); width: 100%; display: flex; justify-content: center; align-items: center;
    border-bottom: 1px solid var(--border-color);
    background: #000;
    overflow: hidden;
}
.sidebar-logo img { 
    width: 100%; height: 100%; object-fit: contain; 
    transform: scale(1.8); /* adjusted zoom to fit narrow sidebar without clipping */
}

.side-nav { display: flex; flex-direction: column; width: 100%; margin-top: 20px; }
.nav-item {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    padding: 15px 0; color: var(--text-muted); text-decoration: none; transition: 0.3s;
}
.nav-item i { font-size: 20px; }
.nav-item span { font-size: 10px; font-weight: 700; margin-top: 5px;}
.nav-item:hover, .nav-item.active {
    color: var(--accent); background: rgba(94, 255, 255, 0.05); border-left: 3px solid var(--accent);
}

.sidebar-right {
    position: fixed; top: 0; right: 0; width: var(--sidebar-right-width); height: 100vh;
    display: flex; align-items: center; justify-content: center; z-index: 100;
}
.social-links { display: flex; flex-direction: column; gap: 20px; }
.social-links a { color: var(--text-muted); font-size: 18px; transition: 0.3s; }
.social-links a:hover { color: var(--accent); transform: scale(1.2); }

.top-header {
    position: fixed; top: 0; left: var(--sidebar-left-width); right: var(--sidebar-right-width);
    height: var(--top-header-height); display: flex; align-items: center; justify-content: space-between;
    padding: 0 40px; background: linear-gradient(to bottom, rgba(1,6,14,0.95), transparent); z-index: 90;
}
.top-nav { display: flex; gap: 30px; }
.top-tab {
    color: var(--text-primary); text-decoration: none; font-size: 16px; font-weight: 700;
    font-family: var(--font-heading); padding-bottom: 5px; position: relative;
}
.top-tab::after {
    content: ''; position: absolute; bottom: 0; left: 0; width: 0%; height: 2px;
    background: var(--accent); transition: width 0.3s;
}
.top-tab:hover::after, .top-tab.active::after { width: 100%; }

.btn-sign-in, .btn-primary {
    background: rgba(94, 255, 255, 0.05); color: var(--accent); border: 1px solid var(--accent);
    padding: 10px 20px; font-family: var(--font-heading); font-size: 14px; text-decoration: none;
    font-weight: 700; cursor: pointer; transition: 0.3s; box-shadow: inset 0 0 10px rgba(94, 255, 255, 0);
}
.btn-sign-in:hover, .btn-primary:hover {
    background: rgba(94, 255, 255, 0.2); box-shadow: 0 0 15px rgba(94, 255, 255, 0.5); text-shadow: 0 0 5px var(--accent);
    color: #fff;
}

.main-content { margin-left: var(--sidebar-left-width); margin-right: var(--sidebar-right-width); padding-top: var(--top-header-height); }

.tech-title { font-family: var(--font-heading); text-transform: uppercase; letter-spacing: 2px; color: #fff; margin-bottom: 1rem; }
.cyber-text { color: var(--accent); font-weight: 600; letter-spacing: 1px; }
.text-accent { color: var(--accent); }
.text-center { text-align: center; }
.text-left { text-align: left; }
.mt-4 { margin-top: 1rem; }
.mb-4 { margin-bottom: 1rem; }
.text-muted { color: var(--text-muted); }

.section { padding: 80px 40px; min-height: 80vh; display: flex; flex-direction: column; justify-content: center; }
.section-title { font-size: 2.5rem; text-align: center; margin-bottom: 3rem; }
.container { margin: 0 auto; max-width: 1200px; width: 100%; }

.cyber-panel {
    background: var(--panel-bg); border: 1px solid var(--border-color); padding: 30px; position: relative; backdrop-filter: blur(4px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
.cyber-panel::before, .cyber-panel::after {
    content: ''; position: absolute; width: 20px; height: 20px; border-color: var(--accent); border-style: solid;
}
.cyber-panel::before { top: -1px; left: -1px; border-width: 2px 0 0 2px; }
.cyber-panel::after { bottom: -1px; right: -1px; border-width: 0 2px 2px 0; }

.hero { position: relative; text-align: center; padding-top: 40px; min-height: 100vh;}
.glitch-text { font-size: 3.5rem; position: relative; color: #fff; text-shadow: 2px 2px 0px rgba(94, 255, 255, 0.5); }
.countdown-card { display: inline-block; padding: 20px 40px; }
.countdown-container { display: flex; gap: 30px; margin-top: 10px; }
.countdown-item { display: flex; flex-direction: column; align-items: center; }
.countdown-item span:first-child { font-family: var(--font-heading); font-size: 2.5rem; font-weight: 700; color: #fff; text-shadow: 0 0 10px rgba(94, 255, 255, 0.5); }
.countdown-item .label { font-size: 0.8rem; color: var(--accent); }

.dual-panel { display: flex; gap: 40px; align-items: stretch; }
.dual-panel > * { flex: 1; }
.cyber-list { list-style: none; padding: 0;}
.cyber-list li { margin-bottom: 15px; display: flex; align-items: center; gap: 10px; font-size: 1.1rem; }

.grid-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; }
.cyber-card {
    background: var(--panel-bg); border: 1px solid var(--border-color); padding: 30px 20px; text-align: center; transition: 0.3s; position: relative; text-align: left;
}
.cyber-card::before {
    content: ''; position: absolute; top: -1px; left: -1px; width: 20px; height: 20px; border-top: 2px solid var(--accent); border-left: 2px solid var(--accent);
}
.cyber-card:hover { border-color: var(--accent); transform: translateY(-5px); box-shadow: 0 0 20px rgba(94, 255, 255, 0.2); }
.card-icon { font-size: 2.5rem; color: var(--accent); margin-bottom: 15px; text-align: center; }
.cyber-card h3 { font-family: var(--font-heading); margin-bottom: 10px; font-size: 1.2rem; color: #fff; text-align: center;}
.cyber-card p { font-size: 1rem; color: var(--text-muted); text-align: center; }

.flex-pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 15px; }
.cyber-pill { padding: 12px 24px; border: 1px solid var(--border-color); font-family: var(--font-heading); font-size: 1rem; background: rgba(9, 20, 37, 0.5); color: var(--text-primary); transition: 0.3s;}
.cyber-pill:hover { border-color: var(--accent); color: #fff; text-shadow: 0 0 5px var(--accent); }

/* Build Section Styles */
.section-title-wrap {
    display: inline-flex;
    align-items: center;
    position: relative;
    padding-left: 20px;
    margin-bottom: 20px;
}
.section-title-wrap::before {
    content: '';
    position: absolute;
    left: 0;
    top: 5px;
    bottom: 5px;
    width: 4px;
    background: var(--accent-color);
    border-radius: 2px;
}
.benefits-list {
    list-style: none !important;
    list-style-type: none !important;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 25px;
}
.benefits-list li {
    list-style: none !important;
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 0;
    padding: 0;
}
.benefit-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #0b2b34;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.benefit-icon i {
    color: #00e5ff;
    font-size: 1rem;
}
.benefit-text {
    color: #a0a0b0;
    font-size: 1.2rem;
    font-family: sans-serif;
    line-height: 1.2;
}
.benefit-text strong {
    color: #fff;
    font-weight: 700;
}

/* Timeline New */
.timeline-container { position: relative; padding-top: 40px; margin: 0 auto; }
.timeline-line {
    position: absolute; top: 40px; left: 10%; right: 10%; height: 2px;
    background: linear-gradient(90deg, rgba(0,229,255,0.4) 0%, rgba(176,0,255,0.4) 50%, rgba(255,204,0,0.4) 100%);
    z-index: 1;
}
.timeline-cards-wrap { display: flex; justify-content: space-between; gap: 20px; position: relative; z-index: 2; }
.t-card {
    background: #090514; border-radius: 12px; border-top: 3px solid var(--card-color);
    padding: 30px 20px; flex: 1; position: relative; box-shadow: 0 10px 20px rgba(0,0,0,0.5); transition: 0.3s;
}
.t-card:hover { transform: translateY(-5px); box-shadow: 0 15px 30px rgba(0,0,0,0.8); }
.t-card::before {
    content: ''; position: absolute; top: -43px; left: 50%; transform: translateX(-50%);
    width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--card-color); background: #020914;
}
.t-card::after {
    content: ''; position: absolute; top: -23px; left: 50%; width: 1px; height: 20px;
    background: var(--card-color); opacity: 0.5;
}
.t-card:nth-child(even) { margin-top: 60px; }
.t-card:nth-child(even)::before { top: -103px; }
.t-card:nth-child(even)::after { top: -83px; height: 80px; }
.t-date {
    background: rgba(255,255,255,0.05); display: inline-block; padding: 4px 10px; border-radius: 4px;
    font-size: 0.75rem; font-weight: 700; color: var(--card-color); margin-bottom: 20px; letter-spacing: 1px;
}
.t-num {
    position: absolute; top: 15px; right: 20px; font-size: 3rem; font-weight: 900;
    font-family: sans-serif; color: rgba(255,255,255,0.05); line-height: 1;
}
.t-card h4 { color: #fff; font-size: 1.1rem; font-family: sans-serif; font-weight: 700; margin-bottom: 10px; }
.t-card p { color: #8496a8; font-size: 0.85rem; line-height: 1.6; }

.prize-rank { font-family: var(--font-heading); color: var(--accent); margin-bottom: 10px; }
.prize-amt { font-size: 2rem; font-weight: bold; color: #fff; }

.cyber-form { display: flex; flex-direction: column; gap: 15px; }
.cyber-form input, .cyber-form select, .cyber-form textarea {
    background: rgba(0,0,0,0.4); border: 1px solid var(--border-color); padding: 12px 15px; color: #fff; font-family: var(--font-body); font-size: 1.1rem; outline: none; transition: 0.3s;
}
.cyber-form input:focus, .cyber-form textarea:focus { border-color: var(--accent); box-shadow: inset 0 0 5px rgba(94, 255, 255, 0.2);}
.cyber-form button { padding: 15px; font-size: 1.1rem; }

/* Rules */
.rules-container {
    background: #090514;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 50px;
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px 60px;
}
.rule-box {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}
.rule-badge {
    background: #1a1525;
    color: #fff;
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.3rem;
    font-weight: 700;
    font-family: sans-serif;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.03);
}
.rule-text h4 {
    color: #fff;
    font-size: 1.2rem;
    margin-bottom: 5px;
    font-family: sans-serif;
    font-weight: 600;
}
.rule-text p {
    color: #a0a0b0;
    font-size: 0.95rem;
    line-height: 1.5;
    font-family: sans-serif;
}

/* FAQ Section */
.faq-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.faq-item {
    background: var(--panel-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    transition: 0.3s;
}
.faq-question {
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.4);
    transition: 0.3s;
}
.faq-question:hover {
    background: rgba(94, 255, 255, 0.05);
}
.faq-question h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
    margin: 0;
}
.faq-question i {
    color: var(--accent);
    transition: transform 0.3s ease;
}
.faq-item.active .faq-question i {
    transform: rotate(180deg);
}
.faq-item.active .faq-question {
    border-bottom: 1px solid rgba(94, 255, 255, 0.1);
}
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    background: rgba(0, 0, 0, 0.2);
}
.faq-item.active .faq-answer {
    max-height: 500px;
    padding: 20px 25px;
}
.faq-answer p {
    color: #a0a0b0;
    margin: 0;
}

/* Footer */
.cyber-footer {
    border-top: 1px solid var(--border-color);
    padding: 10px 40px;
    background: #000;
    margin-left: var(--sidebar-left-width);
    margin-right: var(--sidebar-right-width);
}
.footer-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.footer-logo-container {
    width: 250px;
    height: 60px;
    overflow: hidden;
    display: flex;
    align-items: center;
}
.footer-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transform: scale(1.5);
    transform-origin: left center;
}
.m-0 { margin: 0; }

@media(max-width: 900px) {
    .dual-panel { flex-direction: column; }
    .sidebar-left { width: 60px; }
    .nav-item span { display: none; }
    .main-content { margin-left: 60px; margin-right: 0; }
    .sidebar-right { display: none; }
    .top-header { left: 60px; right: 0; padding: 0 15px;}
    .top-nav { gap: 15px; }
    .top-tab { font-size: 12px;}
    .glitch-text { font-size: 2.2rem; }
    .cyber-footer { margin-left: 60px; margin-right: 0; }
    .footer-flex { flex-direction: column; gap: 15px; text-align: center; }
    .footer-logo { transform-origin: center center; transform: scale(1.7); }
    .rules-container { grid-template-columns: 1fr; gap: 30px; padding: 25px; }
    
    .timeline-cards-wrap { flex-direction: column; gap: 40px; padding: 0 15px; }
    .t-card:nth-child(even) { margin-top: 0; }
    .timeline-line { display: none; }
    .t-card::before, .t-card::after { display: none; }
}

@media(max-width: 768px) {
    /* Transform Sidebar into Bottom Nav */
    .sidebar-left {
        width: 100vw; height: 65px; bottom: 0; top: auto; flex-direction: row; border-right: none; border-top: 1px solid var(--border-color); background: rgba(1, 6, 14, 0.98); backdrop-filter: blur(10px); z-index: 999;
    }
    .sidebar-logo { display: none; }
    .side-nav { margin: 0; flex-direction: row; justify-content: space-around; align-items: center; width: 100%; height: 100%; }
    .nav-item { padding: 0; flex: 1; height: 100%; }
    .nav-item i { font-size: 20px; }
    .nav-item span { display: block; font-size: 9px; margin-top: 4px; }
    .nav-item:hover, .nav-item.active { border-left: none; border-bottom: 3px solid var(--accent); background: rgba(94, 255, 255, 0.05);}

    /* Main Container Offsets */
    .main-content { margin-left: 0; margin-right: 0; padding-bottom: 75px; padding-top: 65px; }
    .cyber-footer { margin-left: 0; margin-right: 0; padding-bottom: 80px; }
    
    /* Top Header Refinements */
    .top-header { left: 0; right: 0; height: 60px; padding: 0 10px; flex-wrap: wrap; justify-content: space-between; gap: 5px; }
    .top-nav { overflow-x: auto; white-space: nowrap; -ms-overflow-style: none; scrollbar-width: none; gap: 12px; max-width: 70%; }
    .top-nav::-webkit-scrollbar { display: none; }
    .top-tab { font-size: 11px; }
    .btn-sign-in { font-size: 10px; padding: 6px 10px; }

    /* General Typography & Spacing */
    .section { padding: 40px 15px; min-height: auto; }
    .glitch-text { font-size: 1.8rem; }
    .section-title { font-size: 1.8rem; margin-bottom: 1.5rem; }
    
    .countdown-container { gap: 15px; flex-wrap: wrap; justify-content: center; }
    .countdown-item span:first-child { font-size: 1.6rem; }

    /* Simplify Complex Structures */
    .rules-container { padding: 20px; gap: 20px; }
    .cyber-form { gap: 10px; }
    .grid-cards { grid-template-columns: 1fr; gap: 15px; }
    .cyber-panel { padding: 20px 15px; }

    .footer-logo-container { width: 180px; }
    .footer-flex { font-size: 0.85rem; }
}
