/* Custom Varsity Font */
@font-face {
    font-family: 'Varsity Regular';
    src: url('/static/varsity_regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* Design System Variables */
:root {
    /* Colors - Dark theme with glowing accents */
    --background: #0a0a0a;
    --foreground: #ffffff;
    --card: #1a1a1a;
    --card-foreground: #ffffff;
    --primary: #d97706;
    /* Yellow */
    --secondary: #3b82f6;
    /* Blue */
    --muted: #262626;
    --muted-foreground: #a3a3a3;
    --accent: #f59e0b;
    --border: #404040;
    --success: #3b82f6;
    --warning: #d97706;

    /* Typography */
    --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-varsity: 'Varsity Regular', 'Impact', 'Arial Black', sans-serif;

    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;

    /* Border radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(217, 119, 6, 0.1);
    --shadow-md: 0 4px 6px -1px rgba(217, 119, 6, 0.15), 0 2px 4px -1px rgba(59, 130, 246, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(217, 119, 6, 0.2), 0 4px 6px -2px rgba(59, 130, 246, 0.15);
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    background-color: var(--background);
    color: var(--foreground);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Interactive Background */
.interactive-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
            rgba(217, 119, 6, 0.08) 0%,
            rgba(59, 130, 246, 0.04) 25%,
            transparent 50%),
        linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
    transition: background 0.3s ease;
}

.pixel-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 25% 25%, rgba(217, 119, 6, 0.3) 1px, transparent 3px),
        radial-gradient(circle at 75% 75%, rgba(59, 130, 246, 0.2) 1px, transparent 3px);
    background-size: 80px 80px, 120px 120px;
    background-position: 0 0, 40px 40px;
    animation: glowingFloat 25s ease-in-out infinite;
    filter: blur(0.5px);
}

@keyframes glowingFloat {

    0%,
    100% {
        transform: translateY(0px) scale(1);
        opacity: 0.8;
    }

    25% {
        transform: translateY(-20px) scale(1.03);
        opacity: 1;
    }

    50% {
        transform: translateY(-40px) scale(0.97);
        opacity: 0.6;
    }

    75% {
        transform: translateY(-20px) scale(1.01);
        opacity: 0.9;
    }
}

/* Layout */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: var(--spacing-xl);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
}

/* Header */
.header {
    text-align: center;
    margin-bottom: var(--spacing-2xl);
}

.logo-section {
    max-width: 800px;
    margin: 0 auto;
}

.title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: normal;
    font-family: var(--font-varsity);
    color: var(--primary);
    margin-bottom: var(--spacing-md);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.subtitle {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    color: var(--muted-foreground);
    font-weight: 400;
    max-width: 600px;
    margin: 0 auto;
}

/* Main Content */
.main-content {
    flex: 1;
}

/* Hero Section */
.hero-section {
    text-align: center;
    margin-bottom: var(--spacing-2xl);
    padding: var(--spacing-2xl) var(--spacing-xl);
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    position: relative;
}

.hero-content h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--foreground);
    margin-bottom: var(--spacing-lg);
}

.hero-content p {
    font-size: clamp(1rem, 2vw, 1.125rem);
    color: var(--muted-foreground);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Services Section */
.services-section {
    margin-bottom: var(--spacing-2xl);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-xl);
    justify-items: center;
    padding: var(--spacing-xl) 0;
}

/* Service Cards */
.service-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-md);
    text-decoration: none;
    color: inherit;
}

.service-card {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    cursor: pointer;
    background: var(--card);
    border: 3px solid var(--border);
    box-shadow: var(--shadow-md);
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
}

.service-card.active {
    border-color: var(--primary);
    background: linear-gradient(135deg, var(--card) 0%, rgba(217, 119, 6, 0.05) 100%);
}

.service-card.active:hover {
    transform: translateY(-6px) scale(1.02);
}

.service-card.placeholder {
    opacity: 0.6;
    cursor: default;
    pointer-events: none;
}

/* Service Images */
.service-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    z-index: 1;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease, filter 0.3s ease;
    filter: grayscale(0.2) brightness(0.7) blur(0.5px);
}

.service-card:hover .service-image img {
    transform: scale(1.1);
    filter: grayscale(0) brightness(0.9) blur(0px);
}

.placeholder-icon {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    background: linear-gradient(135deg, var(--muted) 0%, var(--border) 100%);
    color: var(--muted-foreground);
    border-radius: 50%;
    z-index: 1;
}

/* Service Content Overlay */
.service-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: var(--spacing-md);
    z-index: 2;
    background: rgba(26, 26, 26, 0.95);
    border-radius: 50%;
    backdrop-filter: blur(10px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-card:hover .service-content {
    opacity: 1;
}

.service-header h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--foreground);
    margin-bottom: var(--spacing-xs);
    line-height: 1.2;
}

.service-header p {
    color: var(--muted-foreground);
    font-size: 0.75rem;
    line-height: 1.3;
    font-weight: 500;
    margin-bottom: var(--spacing-sm);
}

.service-features {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-xs);
    justify-content: center;
    margin-bottom: var(--spacing-sm);
}

.feature {
    background: var(--primary);
    color: var(--background);
    padding: 2px var(--spacing-xs);
    border-radius: var(--radius-sm);
    font-size: 0.6rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-xs);
    border-radius: var(--radius-sm);
    font-size: 0.65rem;
    font-weight: 600;
    text-align: center;
    line-height: 1.2;
}

.status-badge.available {
    background: var(--success);
    color: var(--foreground);
}

.status-badge.coming-soon {
    background: var(--warning);
    color: var(--foreground);
}

/* Service Labels */
.service-label {
    font-size: 1rem;
    font-weight: 600;
    color: var(--foreground);
    text-align: center;
    transition: all 0.3s ease;
}

.service-wrapper:hover .service-label {
    color: var(--primary);
    transform: translateY(-2px);
}

.service-wrapper.active .service-label {
    color: var(--accent);
    font-weight: 700;
}

/* Info Section */
.info-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-2xl);
}

.info-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    transition: all 0.3s ease;
}

.info-card:hover {
    transform: translateY(-2px);
    border-color: var(--secondary);
    box-shadow: var(--shadow-lg);
}

.info-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    color: var(--foreground);
}

.info-card p {
    color: var(--muted-foreground);
    font-size: 0.875rem;
    line-height: 1.6;
}

/* Footer */
.footer {
    margin-top: auto;
    padding-top: var(--spacing-xl);
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--spacing-md);
}

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

.footer-links {
    display: flex;
    gap: var(--spacing-lg);
}

.footer-links a {
    color: var(--muted-foreground);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.3s ease;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: var(--spacing-lg);
    }

    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: var(--spacing-lg);
    }

    .service-card {
        width: 150px;
        height: 150px;
    }

    .info-section {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }

    .footer {
        flex-direction: column;
        text-align: center;
    }

    .hero-section {
        padding: var(--spacing-xl);
    }
}

@media (max-width: 480px) {
    .service-content {
        padding: var(--spacing-md);
    }

    .info-card {
        padding: var(--spacing-lg);
    }
}

/* Focus styles for accessibility */
.service-card:focus,
.footer-links a:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}