﻿/* ==========================================
   3SIGMA STUDIO - DARK GAMING PREMIUM DA
   ========================================== */

@import url('https://fonts.googleapis.com/css2?family=Chakra+Petch:wght@500;700;800&family=Inter:wght@400;500;600;700&family=Orbitron:wght@600;700;800;900&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
    /* 3Sigma Studio Gaming Color Tokens.
       Red and purple sampled straight from the logo artwork; both sit at
       ~4.9:1 against the near-black background, so either reads as body text. */
    --color-bg: #0A0A0A;
    --color-bg-alt: #121212;
    --color-surface: #161616;
    --color-surface-hover: #1F1F1F;
    --color-surface-solid: #161616;

    --color-primary: #F9173A;          /* 3Sigma red */
    --color-primary-hover: #FF4A63;
    --color-primary-rgb: 249, 23, 58;

    --color-secondary: #B644FA;        /* 3Sigma purple */
    --color-secondary-hover: #C86BFF;
    --color-secondary-rgb: 182, 68, 250;

    --color-accent: #B644FA;
    --color-accent-hover: #C86BFF;

    /* The red-to-purple sweep used by the logo, for text & rule accents */
    --gradient-brand: linear-gradient(100deg, #F9173A 0%, #B644FA 100%);

    --color-text-main: #F5F5F5;
    --color-text-muted: #A8A8A8;
    --color-text-dim: #707070;

    --color-border: rgba(249, 23, 58, 0.2);
    --color-border-glow: rgba(249, 23, 58, 0.6);
    --color-border-solid: #1C1C1C;

    /* Typography System */
    --font-heading: 'Orbitron', 'Chakra Petch', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-body: 'Outfit', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-code: 'Courier New', monospace;

    /* Radii & Shadows */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 9999px;

    --shadow-glass: 0 12px 40px 0 rgba(0, 0, 0, 0.85);
    --shadow-neon-primary: 0 0 25px rgba(249, 23, 58, 0.35);
    --shadow-neon-secondary: 0 0 30px rgba(182, 68, 250, 0.45);
    
    /* Transitions */
    --transition-fast: 0.15s cubic-bezier(0.23, 1, 0.32, 1);
    --transition-normal: 0.25s cubic-bezier(0.23, 1, 0.32, 1);
    --transition-slow: 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

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

html {
    scroll-behavior: smooth;
    color-scheme: dark;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-bg);
    background-image: 
        radial-gradient(circle at 15% 15%, rgba(var(--color-primary-rgb), 0.07) 0%, transparent 45%),
        radial-gradient(circle at 85% 75%, rgba(var(--color-secondary-rgb), 0.05) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(10, 10, 10, 0.95) 0%, transparent 70%);
    background-attachment: fixed;
    color: var(--color-text-main);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Selection Highlight */
::selection {
    background: var(--color-primary);
    color: #0A0A0A;
}

/* Typography Hierarchy */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    letter-spacing: 0.03em;
    line-height: 1.25;
    color: var(--color-text-main);
    text-transform: uppercase;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

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

/* Main Layout */
main {
    flex: 1;
    max-width: 1280px;
    margin: 0 auto;
    padding: 2.5rem 1.5rem;
    width: 100%;
}

/* Hero Section Banner */
.hero {
    background: linear-gradient(180deg, rgba(10, 10, 10, 0.6) 0%, rgba(10, 10, 10, 0.92) 100%), 
                url('../images/hero-bg.jpg') center/cover no-repeat;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 4.5rem 3rem;
    margin-bottom: 3rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.9), 0 0 30px rgba(var(--color-primary-rgb), 0.08);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--color-primary) 30%, var(--color-secondary) 70%, transparent);
}

.hero h2 {
    font-size: 2.8rem;
    font-weight: 900;
    margin-bottom: 1rem;
    color: #FFFFFF;
    text-shadow: 0 4px 25px rgba(0, 0, 0, 0.9), 0 0 15px rgba(var(--color-primary-rgb), 0.4);
    letter-spacing: 0.05em;
}

.hero p {
    font-size: 1.15rem;
    color: var(--color-text-muted);
    max-width: 750px;
    font-weight: 500;
}

/* Panels */
.glass-panel {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-glass);
    transition: all var(--transition-normal);
}

.glass-panel:hover {
    border-color: rgba(var(--color-primary-rgb), 0.45);
    box-shadow: var(--shadow-glass), var(--shadow-neon-primary);
    transform: translateY(-2px);
}

/* Buttons System */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    background: var(--color-primary);
    color: #0A0A0A;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 0.95rem;
    padding: 0.9rem 2rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--color-primary);
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 4px 20px rgba(var(--color-primary-rgb), 0.3);
    transition: all var(--transition-fast);
}

.btn-primary:hover {
    background: var(--color-primary-hover);
    border-color: var(--color-primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(var(--color-primary-rgb), 0.5);
    color: #0A0A0A;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    background: transparent;
    color: var(--color-text-main);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.95rem;
    padding: 0.9rem 2rem;
    border-radius: var(--radius-sm);
    /* Purple is the counterpart to the red primary, per the logo's two tones */
    border: 1.5px solid var(--color-secondary);
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all var(--transition-fast);
}

.btn-secondary:hover {
    background: var(--color-secondary);
    color: #0A0A0A;
    box-shadow: 0 4px 20px rgba(var(--color-secondary-rgb), 0.35);
    transform: translateY(-2px);
}

/* Scroll to Top Floating Button */
.scroll-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 48px;
    height: 48px;
    border-radius: var(--radius-full);
    background: #161616;
    border: 1.5px solid var(--color-primary);
    color: var(--color-primary);
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-neon-primary);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--transition-normal);
    z-index: 99;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top:hover {
    background: var(--color-primary);
    color: #0A0A0A;
    transform: translateY(-4px);
    box-shadow: 0 0 30px rgba(var(--color-primary-rgb), 0.6);
}

/* 3Sigma Studio Official Footer */
.s2-footer {
    background: #0A0A0A;
    border-top: 1px solid var(--color-border);
    padding: 3rem 1.5rem 2rem 1.5rem;
    margin-top: 5rem;
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.footer-content {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: center;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.footer-brand img {
    height: 40px;
    width: auto;
}

/* Full 3Sigma Studio lockup; `screen` blending drops the PNG's black backdrop */
.footer-logo {
    height: 150px !important;
    mix-blend-mode: screen;
    transition: transform var(--transition-fast);
}

.footer-logo:hover {
    transform: scale(1.03);
}

.footer-links {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-links a {
    color: var(--color-text-muted);
    font-family: var(--font-heading);
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    transition: color var(--transition-fast);
}

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

.footer-copyright {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    width: 100%;
    padding-top: 1.5rem;
    font-size: 0.85rem;
    color: var(--color-text-dim);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--color-bg);
}
::-webkit-scrollbar-thumb {
    background: #1C1C1C;
    border: 1px solid rgba(var(--color-primary-rgb), 0.2);
    border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--color-primary);
}

@media (max-width: 768px) {
    main {
        padding: 1.5rem 1rem;
    }

    .hero {
        padding: 2.5rem 1.5rem;
    }

    .hero h2 {
        font-size: 1.9rem;
    }
}
