/* ========================================
   MSUGFI Event 2026 - Retro Pixel Style
   ======================================== */

/* CSS Variables */
:root {
    --primary-color: #0078d4;
    --secondary-color: #00bcf2;
    --accent-color: #ffb900;
    --dark-bg: #1a1a2e;
    --darker-bg: #0f0f1a;
    --light-text: #ffffff;
    --pixel-green: #00ff00;
    --pixel-pink: #ff6b9d;
    --pixel-purple: #a855f7;
    --pixel-cyan: #00ffff;
    --gold: #ffd700;
    --silver: #c0c0c0;
    --bronze: #cd7f32;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'VT323', monospace;
    background-color: var(--darker-bg);
    color: var(--light-text);
    font-size: 18px;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Scanlines Effect */
.scanlines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.1),
        rgba(0, 0, 0, 0.1) 1px,
        transparent 1px,
        transparent 2px
    );
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Pixel Border Effect */
.pixel-border {
    border: 4px solid var(--light-text);
    box-shadow: 
        8px 8px 0 0 var(--primary-color),
        -2px -2px 0 0 var(--secondary-color);
    background: var(--dark-bg);
    position: relative;
}

.pixel-border::before {
    content: '';
    position: absolute;
    top: 4px;
    left: 4px;
    right: -4px;
    bottom: -4px;
    border: 2px solid var(--primary-color);
    pointer-events: none;
}

/* Navigation */
.pixel-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--darker-bg);
    border-bottom: 4px solid var(--primary-color);
    z-index: 1000;
    padding: 15px 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo {
    font-family: 'Press Start 2P', cursive;
    font-size: 24px;
    color: var(--accent-color);
    text-shadow: 3px 3px 0 var(--primary-color);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    font-family: 'Press Start 2P', cursive;
    font-size: 12px;
    color: var(--light-text);
    text-decoration: none;
    transition: all 0.2s;
    padding: 5px 10px;
}

.nav-links a:hover {
    color: var(--accent-color);
    text-shadow: 2px 2px 0 var(--primary-color);
}

/* Sections */
.section {
    padding: 120px 0;
    position: relative;
}

/* Welcome Section */
.welcome-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: 
        linear-gradient(180deg, var(--darker-bg) 0%, var(--dark-bg) 100%),
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 50px,
            rgba(0, 120, 212, 0.03) 50px,
            rgba(0, 120, 212, 0.03) 51px
        );
}

.welcome-box {
    padding: 60px;
    text-align: center;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.glitch-text {
    font-family: 'Press Start 2P', cursive;
    font-size: 36px;
    color: var(--accent-color);
    text-shadow: 
        3px 3px 0 var(--primary-color),
        -3px -3px 0 var(--pixel-pink);
    animation: glitch 2s infinite;
    margin-bottom: 20px;
}

@keyframes glitch {
    0%, 90%, 100% { transform: translate(0); }
    92% { transform: translate(-3px, 3px); }
    94% { transform: translate(3px, -3px); }
    96% { transform: translate(-3px, -3px); }
    98% { transform: translate(3px, 3px); }
}

.subtitle {
    font-family: 'VT323', monospace;
    font-size: 28px;
    color: var(--secondary-color);
    margin-bottom: 40px;
}

.event-info {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
}

.pixel-icon {
    font-size: 24px;
}

.welcome-text {
    font-size: 22px;
    max-width: 600px;
    margin: 0 auto 40px;
    color: #ccc;
}

/* Pixel Button */
.pixel-button {
    display: inline-block;
    padding: 15px 30px;
    background: var(--primary-color);
    border: 4px solid var(--light-text);
    color: var(--light-text);
    font-family: 'Press Start 2P', cursive;
    font-size: 14px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.1s;
    box-shadow: 
        4px 4px 0 0 var(--darker-bg),
        6px 6px 0 0 var(--accent-color);
}

.pixel-button:hover {
    transform: translate(2px, 2px);
    box-shadow: 
        2px 2px 0 0 var(--darker-bg),
        4px 4px 0 0 var(--accent-color);
}

.pixel-button:active {
    transform: translate(4px, 4px);
    box-shadow: none;
}

.pixel-button.small {
    padding: 10px 20px;
    font-size: 10px;
}

/* Pixel Art Decorations */
.pixel-art-decoration {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    overflow: hidden;
}

.pixel-cloud {
    position: absolute;
    width: 80px;
    height: 40px;
    background: var(--primary-color);
    opacity: 0.3;
    border-radius: 0;
    clip-path: polygon(
        10% 50%, 10% 30%, 20% 30%, 20% 20%, 30% 20%, 30% 10%,
        70% 10%, 70% 20%, 80% 20%, 80% 30%, 90% 30%, 90% 50%,
        90% 70%, 80% 70%, 80% 80%, 20% 80%, 20% 70%, 10% 70%
    );
    animation: cloudFloat 20s linear infinite;
}

.cloud-1 { top: 20%; left: -100px; animation-delay: 0s; }
.cloud-2 { top: 60%; left: -100px; animation-delay: 10s; }

@keyframes cloudFloat {
    from { transform: translateX(-100px); }
    to { transform: translateX(calc(100vw + 100px)); }
}

.pixel-star {
    position: absolute;
    font-size: 20px;
    color: var(--accent-color);
    animation: twinkle 1s ease-in-out infinite;
}

.star-1 { top: 15%; right: 20%; animation-delay: 0s; }
.star-2 { top: 25%; right: 10%; animation-delay: 0.3s; }
.star-3 { top: 35%; right: 25%; animation-delay: 0.6s; }

@keyframes twinkle {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
}

/* Section Titles */
.section-title {
    font-family: 'Press Start 2P', cursive;
    font-size: 28px;
    text-align: center;
    margin-bottom: 20px;
    color: var(--accent-color);
    text-shadow: 3px 3px 0 var(--primary-color);
}

.title-decoration {
    color: var(--pixel-cyan);
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.section-subtitle {
    text-align: center;
    font-size: 24px;
    color: #aaa;
    margin-bottom: 60px;
}

/* Speakers Section */
.speakers-section {
    background: var(--dark-bg);
}

.sessions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.session-card {
    padding: 30px;
    transition: transform 0.3s;
}

.session-card:hover {
    transform: translateY(-5px);
}

.speaker-avatar {
    width: 80px;
    height: 80px;
    border: 4px solid var(--light-text);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.avatar-pixel {
    font-size: 40px;
}

.speaker-name {
    font-family: 'Press Start 2P', cursive;
    font-size: 14px;
    color: var(--accent-color);
    margin-bottom: 5px;
}

.speaker-title {
    font-size: 18px;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.session-info {
    border-top: 2px dashed var(--primary-color);
    padding-top: 20px;
    margin-top: 10px;
}

.session-time {
    font-family: 'Press Start 2P', cursive;
    font-size: 10px;
    color: var(--pixel-green);
    background: var(--darker-bg);
    padding: 5px 10px;
    display: inline-block;
    margin-bottom: 10px;
}

.session-title {
    font-size: 22px;
    color: var(--light-text);
    margin-bottom: 10px;
}

.session-desc {
    font-size: 18px;
    color: #aaa;
    margin-bottom: 15px;
}

.skill-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.tag {
    font-family: 'Press Start 2P', cursive;
    font-size: 8px;
    padding: 5px 10px;
    background: var(--primary-color);
    border: 2px solid var(--light-text);
}

/* Team Section */
.team-section {
    background: 
        var(--darker-bg)
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 10px,
            rgba(0, 120, 212, 0.05) 10px,
            rgba(0, 120, 212, 0.05) 20px
        );
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.team-card {
    padding: 30px;
    text-align: center;
    transition: all 0.3s;
}

.team-card:hover {
    transform: scale(1.05);
}

.team-avatar {
    width: 120px;
    height: 120px;
    margin: 0 auto 20px;
    border: 4px solid var(--accent-color);
    background: var(--dark-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.pixel-character {
    width: 80px;
    height: 80px;
    image-rendering: pixelated;
}

/* Pixel Character Sprites using CSS */
.char-1 {
    background: 
        linear-gradient(to right, var(--pixel-cyan) 20%, transparent 20%),
        linear-gradient(to bottom, var(--pixel-cyan) 25%, var(--accent-color) 25%, var(--accent-color) 75%, var(--primary-color) 75%);
}

.char-2 {
    background: 
        linear-gradient(to right, var(--pixel-pink) 20%, transparent 20%),
        linear-gradient(to bottom, var(--pixel-pink) 25%, var(--accent-color) 25%, var(--accent-color) 75%, var(--pixel-purple) 75%);
}

.char-3 {
    background: 
        linear-gradient(to right, var(--pixel-green) 20%, transparent 20%),
        linear-gradient(to bottom, var(--pixel-green) 25%, var(--accent-color) 25%, var(--accent-color) 75%, var(--primary-color) 75%);
}

.char-4 {
    background: 
        linear-gradient(to right, var(--accent-color) 20%, transparent 20%),
        linear-gradient(to bottom, var(--accent-color) 25%, var(--pixel-pink) 25%, var(--pixel-pink) 75%, var(--pixel-purple) 75%);
}

.team-name {
    font-family: 'Press Start 2P', cursive;
    font-size: 12px;
    color: var(--light-text);
    margin-bottom: 10px;
}

.team-role {
    font-size: 20px;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.team-stats {
    display: flex;
    justify-content: center;
    gap: 20px;
    font-size: 16px;
    color: var(--accent-color);
}

/* Sponsors Section */
.sponsors-section {
    background: var(--dark-bg);
}

.sponsor-tier {
    margin-bottom: 50px;
}

.tier-title {
    font-family: 'Press Start 2P', cursive;
    font-size: 16px;
    text-align: center;
    margin-bottom: 30px;
    padding: 10px;
}

.tier-title.gold { color: var(--gold); text-shadow: 2px 2px 0 #b8860b; }
.tier-title.silver { color: var(--silver); text-shadow: 2px 2px 0 #808080; }
.tier-title.bronze { color: var(--bronze); text-shadow: 2px 2px 0 #8b4513; }

.sponsors-row {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.sponsor-card {
    padding: 30px 40px;
    text-align: center;
    transition: all 0.3s;
    min-width: 200px;
}

.sponsor-card:hover {
    transform: translateY(-5px);
}

.sponsor-card.gold { border-color: var(--gold); }
.sponsor-card.silver { border-color: var(--silver); }
.sponsor-card.bronze { border-color: var(--bronze); }

.sponsor-logo {
    font-size: 48px;
    margin-bottom: 15px;
}

.sponsor-name {
    font-family: 'Press Start 2P', cursive;
    font-size: 10px;
    color: var(--light-text);
}

.become-sponsor {
    text-align: center;
    padding: 40px;
    margin-top: 40px;
}

.become-sponsor p {
    font-size: 22px;
    margin-bottom: 20px;
}

/* Questions Section */
.questions-section {
    background: var(--darker-bg);
}

.faq-container {
    max-width: 800px;
    margin: 0 auto 60px;
}

.faq-item {
    margin-bottom: 20px;
    overflow: hidden;
}

.faq-question {
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    transition: background 0.3s;
}

.faq-question:hover {
    background: rgba(0, 120, 212, 0.2);
}

.q-icon {
    font-family: 'Press Start 2P', cursive;
    font-size: 16px;
    color: var(--accent-color);
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-color);
    border: 2px solid var(--light-text);
}

.faq-question span:nth-child(2) {
    flex: 1;
    font-size: 20px;
}

.toggle-icon {
    font-family: 'Press Start 2P', cursive;
    font-size: 16px;
    color: var(--pixel-cyan);
    transition: transform 0.3s;
}

.faq-item.active .toggle-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background: rgba(0, 120, 212, 0.1);
}

.faq-item.active .faq-answer {
    max-height: 200px;
}

.faq-answer p {
    padding: 20px;
    font-size: 18px;
    color: #ccc;
}

/* Contact Form */
.contact-box {
    max-width: 600px;
    margin: 0 auto;
    padding: 40px;
    text-align: center;
}

.contact-box h3 {
    font-family: 'Press Start 2P', cursive;
    font-size: 16px;
    color: var(--accent-color);
    margin-bottom: 10px;
}

.contact-box > p {
    font-size: 20px;
    color: #aaa;
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    font-family: 'Press Start 2P', cursive;
    font-size: 10px;
    color: var(--secondary-color);
    display: block;
    margin-bottom: 10px;
}

.pixel-input {
    width: 100%;
    padding: 15px;
    font-family: 'VT323', monospace;
    font-size: 18px;
    background: var(--darker-bg);
    border: 4px solid var(--primary-color);
    color: var(--light-text);
    outline: none;
    transition: border-color 0.3s;
}

.pixel-input:focus {
    border-color: var(--accent-color);
}

textarea.pixel-input {
    resize: vertical;
    min-height: 100px;
}

.form-message {
    margin-top: 20px;
    padding: 15px;
    font-family: 'Press Start 2P', cursive;
    font-size: 10px;
    display: none;
}

.form-message.success {
    display: block;
    background: rgba(0, 255, 0, 0.2);
    border: 2px solid var(--pixel-green);
    color: var(--pixel-green);
}

.form-message.error {
    display: block;
    background: rgba(255, 0, 0, 0.2);
    border: 2px solid #ff0000;
    color: #ff0000;
}

/* Footer */
.pixel-footer {
    background: var(--darker-bg);
    border-top: 4px solid var(--primary-color);
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo .logo-text {
    font-family: 'Press Start 2P', cursive;
    font-size: 24px;
    color: var(--accent-color);
    text-shadow: 3px 3px 0 var(--primary-color);
}

.footer-logo p {
    font-size: 18px;
    color: #aaa;
    margin-top: 10px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.footer-links a {
    font-family: 'Press Start 2P', cursive;
    font-size: 12px;
    color: var(--light-text);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--accent-color);
}

.footer-credits {
    text-align: right;
}

.footer-credits p {
    font-size: 16px;
    color: #aaa;
}

.pixel-text {
    color: var(--pixel-pink);
}

.konami-hint {
    text-align: center;
    font-family: 'Press Start 2P', cursive;
    font-size: 10px;
    color: rgba(255, 255, 255, 0.1);
    margin-top: 20px;
}

/* Easter Egg Styles */
.party-mode {
    animation: rainbow 0.5s linear infinite;
}

@keyframes rainbow {
    0% { filter: hue-rotate(0deg); }
    100% { filter: hue-rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .glitch-text {
        font-size: 20px;
    }
    
    .subtitle {
        font-size: 20px;
    }
    
    .welcome-box {
        padding: 30px;
    }
    
    .event-info {
        flex-direction: column;
        gap: 20px;
    }
    
    .section-title {
        font-size: 18px;
    }
    
    .sessions-grid {
        grid-template-columns: 1fr;
    }
    
    .team-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-credits {
        text-align: center;
    }
    
    .sponsors-row {
        flex-direction: column;
        align-items: center;
    }
}

/* Loading Animation */
.loading {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--darker-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.loading-text {
    font-family: 'Press Start 2P', cursive;
    font-size: 20px;
    color: var(--accent-color);
    animation: loadingBlink 0.5s infinite;
}

@keyframes loadingBlink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}
