:root {
    --primary-color: #0066ff;
    --secondary-color: #00d4ff;
    --accent-color: #ff6b35;
    --dark-bg: #0a0a0a;
    --light-bg: #1a1a1a;
    --card-bg: #151515;
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --text-muted: #808080;
    --gradient-primary: linear-gradient(135deg, #0066ff, #00d4ff);
    --gradient-accent: linear-gradient(135deg, #ff6b35, #ff8c42);
    --border-color: #333333;
    --glow-color: rgba(0, 102, 255, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    overflow: hidden;
    background: var(--dark-bg);
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Helvetica Neue', 'Inter', sans-serif;
    font-weight: 200;
    color: var(--text-primary);
    height: 100vh;
}

/* Add general h1, h2, h3, h4 styling */
h1, h2, h3, h4, h5, h6 {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Helvetica Neue', 'Inter', sans-serif;
    font-weight: 300;
}

.mono {
    font-family: 'JetBrains Mono', monospace;
}

canvas {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

/* Magnifier with zoom effect */
.magnifier {
    position: absolute;
    border: 2px solid var(--secondary-color);
    border-radius: 50%;
    width: 120px;
    height: 120px;
    pointer-events: none;
    display: none;
    justify-content: center;
    align-items: center;
    color: var(--text-primary);
    background: rgba(0, 102, 255, 0.15);
    backdrop-filter: blur(15px);
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    z-index: 15;
    transition: all 0.3s ease;
    box-shadow: 0 0 30px var(--glow-color);
    transform: scale(0.8);
}

.magnifier.zoom {
    transform: scale(1.5);
    border-color: var(--accent-color);
    box-shadow: 0 0 50px rgba(255, 107, 53, 0.6);
    background: rgba(255, 107, 53, 0.1);
}

/* Logo overlay */
.logo-overlay {
    position: absolute;
    top: 30px;
    left: 30px;
    z-index: 10;
    font-size: 1.8rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 20px rgba(0, 102, 255, 0.5);
}

/* Instructions overlay - Subtle at bottom */
.instructions {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 400;
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
    background: rgba(0, 0, 0, 0.4);
    padding: 8px 16px;
    border-radius: 20px;
    border: 1px solid rgba(0, 102, 255, 0.3);
    box-shadow: 0 0 10px rgba(0, 102, 255, 0.1);
    white-space: nowrap;
    letter-spacing: 0.5px;
}

.instructions.visible {
    opacity: 0.7;
}

/* Content sections */
.content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: var(--dark-bg);
    color: var(--text-primary);
    display: none;
    flex-direction: column;
    z-index: 20;
    animation: fadeIn 0.8s ease forwards;
    overflow-y: auto;
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.back-button {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 8px 16px;
    background: transparent;
    color: var(--secondary-color);
    border: 1px solid var(--secondary-color);
    border-radius: 6px;
    cursor: pointer;
    font-weight: 400;
    font-size: 0.9rem;
    z-index: 25;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.back-button:hover {
    background: var(--secondary-color);
    color: var(--dark-bg);
    transform: translateY(-1px);
}

.content-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 80px 40px 80px;
    min-height: 100vh;
}

.content-header {
    text-align: center;
    margin-bottom: 4rem;
}

.content-header h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 200;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Helvetica Neue', 'Inter', sans-serif;
    margin-bottom: 1.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.2;
}

.content-header p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin: 4rem 0;
}

.stat-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 102, 255, 0.1);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 200;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Helvetica Neue', 'Inter', sans-serif;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

/* Team Grid */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.team-card {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.team-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
}

.team-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(0, 102, 255, 0.15);
}

.team-photo {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: var(--gradient-primary);
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: white;
    position: relative;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 102, 255, 0.3);
}

.team-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.team-card:hover .team-photo img {
    transform: scale(1.05);
}

.team-name {
    font-size: 1.5rem;
    font-weight: 300;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Helvetica Neue', 'Inter', sans-serif;
    margin-bottom: 0.5rem;
}

.team-role {
    color: var(--secondary-color);
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 1px;
}

.team-bio {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Solutions Grid */
.solutions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.solution-card {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 3rem 2rem;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
}

.solution-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 50px rgba(0, 102, 255, 0.1);
}

.solution-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 2rem;
}

.solution-image {
    width: 100%;
    height: 200px;
    background: var(--light-bg);
    border-radius: 12px;
    margin: 1.5rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    border: 2px dashed var(--border-color);
    position: relative;
    overflow: hidden;
}

.solution-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

/* Gaming Section */
.gaming-section {
    background: var(--light-bg);
    border-radius: 20px;
    padding: 3rem;
    margin: 3rem 0;
    border: 1px solid var(--border-color);
    text-align: center;
}

.game-card {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    background: var(--card-bg);
    padding: 1.5rem 2rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
}

.game-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(255, 107, 53, 0.2);
}

.game-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-accent);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

/* Contact Grid */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.contact-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    text-align: center;
    transition: all 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 102, 255, 0.1);
}

.contact-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.5rem;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .content-container {
        padding: 60px 20px 200px; /* Much more bottom padding for mobile */
        min-height: calc(100vh + 150px); /* Ensure content is taller than viewport */
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        margin-bottom: 4rem; /* Add extra margin */
    }

    .team-grid {
        grid-template-columns: 1fr;
        margin-bottom: 4rem; /* Add extra margin */
    }

    .solutions-grid {
        grid-template-columns: 1fr;
        margin-bottom: 4rem; /* Add extra margin */
    }

    .contact-grid {
        margin-bottom: 4rem; /* Add extra margin */
    }

    .gaming-section {
        margin-bottom: 4rem; /* Add extra margin */
    }

    .logo-overlay {
        font-size: 1.4rem;
        top: 15px;
        left: 15px;
    }

    .instructions {
        bottom: 10px;
        font-size: 0.8rem;
        max-width: 90%;
        padding: 6px 12px;
    }

    .back-button {
        top: 15px;
        right: 15px;
        padding: 6px 12px;
        font-size: 0.8rem;
    }

    .content-header h1 {
        font-size: clamp(2rem, 6vw, 3rem);
    }

    .content-header p {
        font-size: 1rem;
    }

    /* Add extra space after last elements on mobile */
    .content > .content-container > *:last-child {
        margin-bottom: 6rem !important;
    }

    /* Force content to be scrollable with extra space */
    .content {
        padding-bottom: 100px;
    }
}

/* Scrollbar */
.content::-webkit-scrollbar {
    width: 8px;
}

.content::-webkit-scrollbar-track {
    background: var(--dark-bg);
}

.content::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

.content::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}
