/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #020617;
    --bg-secondary: #0f172a;
    --text-primary: rgba(203, 213, 255, 0.95);
    --text-secondary: rgba(96, 165, 250, 0.7);
    --text-muted: rgba(96, 165, 250, 0.6);
    --blue-200: rgba(191, 219, 254, 0.9);
    --blue-300: rgba(147, 197, 253, 0.9);
    --blue-400: rgba(96, 165, 250, 0.9);
    --white-5: rgba(255, 255, 255, 0.05);
    --white-10: rgba(255, 255, 255, 0.1);
    --black-10: rgba(0, 0, 0, 0.1);
    
    --font-mono: 'Consolas', 'Monaco', 'Courier New', monospace;
    --font-sans: 'Arial', 'Helvetica', sans-serif;
}

body {
    font-family: var(--font-sans);
    background: var(--bg-primary);
    color: var(--text-primary);
    overflow-x: hidden;
    min-height: 100vh;
}

/* Background Effects */
#bg-particles {
    background: radial-gradient(circle at 20% 20%, rgba(96, 165, 250, 0.04) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(59, 130, 246, 0.03) 0%, transparent 50%),
                radial-gradient(circle at 50% 50%, rgba(15, 23, 42, 0.95) 0%, rgba(2, 6, 23, 1) 100%);
}

#bg-scanlines {
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(96, 165, 250, 0.015) 2px,
        rgba(96, 165, 250, 0.015) 4px
    );
    animation: scan-move 0.1s linear infinite;
}

@keyframes scan-move {
    0% { transform: translateY(0); }
    100% { transform: translateY(4px); }
}

.floating-particle {
    position: absolute;
    width: 1px;
    height: 1px;
    background: rgba(96, 165, 250, 0.2);
    border-radius: 50%;
    pointer-events: none;
}

@keyframes float {
    0% {
        transform: translateY(100vh) translateX(0px);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100vh) translateX(50px);
        opacity: 0;
    }
}

/* Profile Image Animations */
@keyframes profile-glow {
    0%, 100% { 
        box-shadow: 0 0 10px rgba(96, 165, 250, 0.3);
        transform: scale(1);
    }
    50% { 
        box-shadow: 0 0 20px rgba(96, 165, 250, 0.6);
        transform: scale(1.05);
    }
}

/* Utility Classes */
.fixed { position: fixed; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.overflow-hidden { overflow: hidden; }
.pointer-events-none { pointer-events: none; }
.z-0 { z-index: 0; }
.z-10 { z-index: 10; }
.z-50 { z-index: 50; }

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    background: var(--black-10);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--white-5);
}

.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0.75rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-size: 1.25rem;
    font-family: var(--font-mono);
    font-weight: 500;
    color: rgba(147, 197, 253, 0.9);
    text-decoration: none;
    transition: color 0.2s;
}

.nav-logo:hover {
    color: rgba(191, 219, 254, 0.9);
}

.nav-buttons {
    display: flex;
    gap: 0.25rem;
}

/* Hero Section */
.hero-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 1rem;
    text-align: center;
    position: relative;
    z-index: 10;
}

.hero-container {
    max-width: 768px;
    margin: 0 auto;
}

.hero-content {
    margin-bottom: 3rem;
}

.hero-title {
    font-size: clamp(3rem, 8vw, 5rem);
    font-family: var(--font-mono);
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -0.025em;
}

.hero-subtitle {
    font-size: clamp(1.25rem, 4vw, 1.5rem);
    margin-bottom: 3rem;
    color: var(--text-secondary);
    font-weight: 300;
    letter-spacing: 0.025em;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    justify-content: center;
    align-items: center;
}

@media (min-width: 640px) {
    .hero-buttons {
        flex-direction: row;
    }
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    font-weight: 400;
    font-family: var(--font-mono);
    transition: all 0.3s;
    text-decoration: none;
    cursor: pointer;
    border: none;
    background: none;
    color: inherit;
}

.btn-ghost {
    background: transparent;
    color: inherit;
}

.btn-ghost:hover {
    background: var(--white-5);
}

.btn-ghost.active {
    color: var(--blue-200);
    background: var(--white-5);
}

.btn-outline {
    border: 1px solid rgba(96, 165, 250, 0.2);
    color: var(--blue-200);
}

.btn-outline:hover {
    background: rgba(59, 130, 246, 0.05);
    border-color: rgba(147, 197, 253, 0.3);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-lg {
    padding: 0.75rem 2rem;
    font-size: 1.125rem;
}

/* Credits Section */
.credits-section {
    padding: 6rem 1rem;
    position: relative;
    z-index: 10;
}

.credits-container {
    max-width: 1280px;
    margin: 0 auto;
}

.credits-header {
    text-align: center;
    margin-bottom: 4rem;
}

.credits-title {
    font-size: clamp(2.25rem, 6vw, 3rem);
    font-family: var(--font-mono);
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.credits-subtitle {
    color: var(--text-muted);
    font-size: 1.125rem;
    font-weight: 300;
}

.credits-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 2rem;
}

@media (min-width: 768px) {
    .credits-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .credits-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.credit-card {
    padding: 2rem;
    backdrop-filter: blur(4px);
    border: 1px solid var(--white-5);
    border-radius: 0.5rem;
    background: var(--black-10);
    transition: all 0.3s;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.credit-card:hover {
    transform: scale(1.02);
    border-color: var(--white-10);
}

/* Profile Image Styles */
.credit-profile {
    position: relative;
    width: 80px;
    height: 80px;
    margin-bottom: 0.5rem;
}

.profile-image {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(96, 165, 250, 0.3);
    transition: all 0.3s ease;
    background: var(--bg-secondary);
}

.profile-image:hover {
    animation: profile-glow 2s ease-in-out infinite;
    border-color: rgba(96, 165, 250, 0.6);
}

.profile-fallback {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(96, 165, 250, 0.2), rgba(59, 130, 246, 0.3));
    border: 2px solid rgba(96, 165, 250, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    font-size: 2rem;
    font-weight: 600;
    color: var(--blue-200);
    transition: all 0.3s ease;
}

.profile-fallback:hover {
    animation: profile-glow 2s ease-in-out infinite;
    border-color: rgba(96, 165, 250, 0.6);
    background: linear-gradient(135deg, rgba(96, 165, 250, 0.3), rgba(59, 130, 246, 0.4));
}

/* Credit Info Styles */
.credit-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
}

.credit-card h3,
.credit-name {
    font-size: 1.5rem;
    font-family: var(--font-mono);
    font-weight: 500;
    margin-bottom: 0.75rem;
    color: var(--blue-200);
    transition: color 0.2s;
}

.credit-card:hover h3,
.credit-card:hover .credit-name {
    color: rgba(254, 249, 195, 0.9);
}

.credit-card p,
.credit-handle,
.credit-role {
    font-size: 1rem;
    font-family: var(--font-mono);
    color: var(--text-muted);
    line-height: 1.5;
    transition: color 0.2s;
    margin: 0;
}

.credit-handle {
    font-size: 0.875rem;
    opacity: 0.8;
    font-style: italic;
}

.credit-card:hover p,
.credit-card:hover .credit-handle,
.credit-card:hover .credit-role {
    color: rgba(191, 219, 254, 0.7);
}

.credits-disclaimer {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid var(--white-5);
    text-align: center;
}

.credits-disclaimer p {
    font-size: 0.875rem;
    color: var(--text-muted);
    font-style: italic;
    opacity: 0.8;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out forwards;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-container {
        padding: 0.75rem 1rem;
    }
    
    .hero-section {
        padding: 0.5rem;
    }
    
    .credits-section {
        padding: 4rem 0.5rem;
    }
    
    .credits-grid {
        gap: 1.5rem;
    }
    
    .credit-profile {
        width: 60px;
        height: 60px;
    }
    
    .profile-fallback {
        font-size: 1.5rem;
    }
}