/* CSS Variables */
:root {
    --primary-blue: #2B5A8A;
    --primary-dark: #1a3a5c;
    --accent-gold: #C4A535;
    --bg-dark: #0d1117;
    --bg-card: #161b22;
    --bg-terminal: #1a1e24;
    --text-primary: #e6edf3;
    --text-secondary: #8b949e;
    --text-muted: #6e7681;
    --border-color: #30363d;
    --success-green: #3fb950;
    --terminal-prompt: #58a6ff;
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

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

/* Background Grid Effect */
.background-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(43, 90, 138, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(43, 90, 138, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    z-index: -1;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(13, 17, 23, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 72px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    height: 44px;
    width: auto;
}

.logo-text {
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--text-primary);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.nav-links a:hover {
    color: var(--text-primary);
}

/* Buttons */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--primary-blue);
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    color: var(--text-primary);
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    border: 1px solid var(--border-color);
    transition: all 0.2s ease;
}

.btn-secondary:hover {
    border-color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.05);
}

.btn-large {
    padding: 14px 28px;
    font-size: 1.1rem;
}

.btn-icon {
    font-size: 1.2em;
}

/* Hero Section */
.hero {
    padding: 160px 0 100px;
    text-align: center;
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    margin: 40px 0 20px;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent-gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 40px;
}

.hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Terminal Window */
.terminal-window {
    background: var(--bg-terminal);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    max-width: 500px;
    margin: 0 auto;
    text-align: left;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.terminal-small {
    max-width: 400px;
    margin: 30px auto;
}

.terminal-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid var(--border-color);
    border-radius: 12px 12px 0 0;
}

.terminal-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.terminal-dot.red { background: #ff5f56; }
.terminal-dot.yellow { background: #ffbd2e; }
.terminal-dot.green { background: #27ca40; }

.terminal-title {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-left: auto;
}

.terminal-body {
    padding: 20px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.95rem;
}

.terminal-line {
    margin-bottom: 8px;
}

.prompt {
    color: var(--terminal-prompt);
}

.command {
    color: var(--text-primary);
}

.terminal-output {
    color: var(--text-secondary);
    padding-left: 0;
    margin-bottom: 8px;
}

.terminal-output strong {
    color: var(--accent-gold);
}

.terminal-output.success {
    color: var(--success-green);
}

.typing {
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

/* About Section */
.about {
    padding: 100px 0;
}

.about h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 60px;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-bottom: 50px;
}

.about-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 32px;
    transition: all 0.3s ease;
}

.about-card:hover {
    border-color: var(--primary-blue);
    transform: translateY(-4px);
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.about-card h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.about-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.info-box {
    background: rgba(43, 90, 138, 0.1);
    border-left: 4px solid var(--primary-blue);
    padding: 24px 32px;
    border-radius: 0 8px 8px 0;
}

.info-box p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.7;
}

/* Join Section */
.join {
    padding: 100px 0;
    background: linear-gradient(180deg, transparent 0%, rgba(43, 90, 138, 0.1) 100%);
}

.join-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.join h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.join p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 20px;
}

/* Footer */
footer {
    padding: 60px 0;
    border-top: 1px solid var(--border-color);
}

.footer-content {
    text-align: center;
}

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 16px;
}

.footer-logo-img {
    height: 36px;
    width: auto;
}

.footer-logo span {
    font-weight: 600;
    color: var(--text-primary);
}

.footer-text {
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.footer-copy {
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* Responsive */
@media (max-width: 768px) {
    .logo-text {
        display: none;
    }
    
    .nav-links {
        gap: 16px;
    }
    
    .nav-links a:not(.btn-primary) {
        display: none;
    }
    
    .hero {
        padding: 120px 0 80px;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .terminal-body {
        font-size: 0.85rem;
        padding: 16px;
    }
    
    .about, .join {
        padding: 60px 0;
    }
    
    .about h2, .join h2 {
        font-size: 1.75rem;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
    }
}

/* Smooth animations on load */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero .terminal-window {
    animation: fadeInUp 0.6s ease-out;
}

.hero h1 {
    animation: fadeInUp 0.6s ease-out 0.2s both;
}

.hero-subtitle {
    animation: fadeInUp 0.6s ease-out 0.4s both;
}

.hero-cta {
    animation: fadeInUp 0.6s ease-out 0.6s both;
}

/* Ticket Section */
.ticket-section {
    padding: 100px 0;
    background: linear-gradient(180deg, var(--bg-dark) 0%, rgba(43, 90, 138, 0.05) 50%, var(--bg-dark) 100%);
}

.ticket-section h2 {
    font-size: 2.25rem;
    margin-bottom: 16px;
    text-align: center;
}

.section-intro {
    color: var(--text-secondary);
    text-align: center;
    max-width: 600px;
    margin: 0 auto 48px;
    font-size: 1.1rem;
}

.ticket-form {
    max-width: 600px;
    margin: 0 auto;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 32px;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(43, 90, 138, 0.2);
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%238b949e' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
}

.form-group select option {
    background: var(--bg-card);
    color: var(--text-primary);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.ticket-form .btn-primary {
    width: 100%;
    justify-content: center;
    padding: 14px 24px;
    font-size: 1.05rem;
}

.ticket-success {
    max-width: 600px;
    margin: 32px auto 0;
    text-align: center;
}

@media (max-width: 768px) {
    .ticket-section {
        padding: 60px 0;
    }
    
    .ticket-form {
        padding: 24px;
    }
    
    .section-intro {
        font-size: 1rem;
    }
}
