/* ==========================================================================
   Base Styles & Variables
   ========================================================================== */
   :root {
    --bg-color: #050505;
    --text-primary: #f2f2f2;
    --text-secondary: #a0a0a0;
    --gold: #FFD700;
    --gold-glow: rgba(255, 215, 0, 0.6);
    --purple: #8A2BE2;
    --purple-glow: rgba(138, 43, 226, 0.4);
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: 'Outfit', sans-serif;
    overflow-x: hidden;
    position: relative;
    cursor: crosshair; /* Sigma targeting cursor */
}

/* ==========================================================================
   Typography & Utilities
   ========================================================================== */
h1, h2, h3 {
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.section-title {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 3rem;
    background: linear-gradient(45deg, var(--gold), var(--purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 4px;
    background: var(--gold);
    border-radius: 2px;
}

/* ==========================================================================
   Navigation
   ========================================================================== */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid var(--glass-border);
}

.logo {
    font-family: 'Oswald', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gold);
    text-shadow: 0 0 10px var(--gold-glow);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.nav-links a::before {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--gold);
    transition: width 0.3s ease;
}

.nav-links a:hover::before {
    width: 100%;
}

.nav-links a:hover {
    color: var(--gold);
    text-shadow: 0 0 8px var(--gold-glow);
}

.btn-sigma {
    background: transparent;
    color: var(--gold);
    border: 2px solid var(--gold);
    padding: 0.5rem 1.5rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    cursor: pointer;
    border-radius: 30px;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.btn-sigma:hover {
    background: var(--gold);
    color: #000;
    box-shadow: 0 0 20px var(--gold-glow);
    transform: scale(1.05);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding-top: 80px; /* Offset for navbar */
    position: relative;
    background: radial-gradient(circle at center, rgba(138,43,226,0.15) 0%, rgba(5,5,5,1) 60%);
}

.hero-content {
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.profile-container {
    position: relative;
    width: 250px;
    height: 250px;
    margin-bottom: 2rem;
}

#profile-pic {
    width: 140%;
    height: 140%;
    object-fit: cover;
    border-radius: 20px;
    border: 4px solid var(--gold);
    z-index: 5;
    position: absolute;
    top: -20%;
    left: -20%;
    filter: grayscale(100%);
    transform: rotate(-10deg);
    transition: transform 0.5s ease, filter 0.5s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,0.8);
}

.profile-container:hover #profile-pic {
    transform: scale(1.05) rotate(-5deg);
    filter: grayscale(50%);
}

.glow-ring {
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, transparent 0%, var(--gold) 25%, transparent 50%, var(--purple) 75%, transparent 100%);
    animation: rotateGlow 4s linear infinite;
    z-index: 1;
    filter: blur(10px);
}

@keyframes rotateGlow {
    100% { transform: rotate(360deg); }
}

.glitch {
    font-size: 5rem;
    font-weight: 900;
    color: #fff;
    position: relative;
    text-shadow: 0 0 20px rgba(255,255,255,0.5);
    margin-bottom: 1rem;
}

.glitch::before, .glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch::before {
    left: 2px;
    text-shadow: -2px 0 var(--gold);
    clip: rect(24px, 550px, 90px, 0);
    animation: glitch-anim-2 3s infinite linear alternate-reverse;
}

.glitch::after {
    left: -2px;
    text-shadow: -2px 0 var(--purple);
    clip: rect(85px, 550px, 140px, 0);
    animation: glitch-anim 2.5s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
    0% { clip: rect(13px, 9999px, 83px, 0); }
    20% { clip: rect(69px, 9999px, 11px, 0); }
    40% { clip: rect(32px, 9999px, 47px, 0); }
    60% { clip: rect(98px, 9999px, 15px, 0); }
    80% { clip: rect(44px, 9999px, 72px, 0); }
    100% { clip: rect(81px, 9999px, 29px, 0); }
}

@keyframes glitch-anim-2 {
    0% { clip: rect(52px, 9999px, 31px, 0); }
    20% { clip: rect(9px, 9999px, 86px, 0); }
    40% { clip: rect(74px, 9999px, 12px, 0); }
    60% { clip: rect(23px, 9999px, 68px, 0); }
    80% { clip: rect(89px, 9999px, 45px, 0); }
    100% { clip: rect(15px, 9999px, 93px, 0); }
}

#sigma-rule {
    font-size: 2rem;
    color: var(--gold);
    font-weight: 500;
    margin-bottom: 1rem;
    min-height: 3rem; /* Prevents layout jump when text changes */
    transition: opacity 0.5s ease;
}

.hero-subtext {
    font-size: 1.2rem;
    color: var(--text-secondary);
    letter-spacing: 5px;
    text-transform: uppercase;
}

/* ==========================================================================
   Stats Section
   ========================================================================== */
.stats-section {
    padding: 100px 5%;
    background: var(--bg-color);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.stat-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 3rem 1.5rem;
    text-align: center;
    backdrop-filter: blur(10px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, var(--purple-glow) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
}

.stat-card:hover {
    transform: translateY(-10px) scale(1.05);
    border-color: var(--gold);
    box-shadow: 0 15px 30px rgba(0,0,0,0.5), 0 0 20px var(--gold-glow);
}

.stat-card:hover::before {
    opacity: 1;
}

.stat-value {
    font-size: 4rem;
    font-weight: 900;
    color: var(--gold);
    font-family: 'Oswald', sans-serif;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
}

.stat-label {
    font-size: 1.2rem;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    z-index: 1;
}

/* ==========================================================================
   Gallery Section
   ========================================================================== */
.gallery-section {
    padding: 100px 5%;
    background: radial-gradient(circle at top right, rgba(255,215,0,0.05) 0%, rgba(5,5,5,1) 50%);
}

.masonry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
    grid-auto-flow: dense;
}

.grid-item {
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: var(--glass-bg);
}

.grid-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.8), 0 0 15px var(--purple-glow);
}

.grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: grayscale(20%);
    transition: filter 0.5s ease, transform 0.5s ease;
}

.grid-item:hover img {
    filter: grayscale(0%);
    transform: scale(1.1);
}

/* Make some items taller for masonry effect (simulated with CSS grid) */
.grid-item:nth-child(2) { grid-row: span 2; }
.grid-item:nth-child(5) { grid-column: span 2; }

/* ==========================================================================
   Footer
   ========================================================================== */
footer {
    text-align: center;
    padding: 2rem;
    background: #000;
    border-top: 1px solid var(--glass-border);
    font-family: 'Oswald', sans-serif;
    color: var(--text-secondary);
    letter-spacing: 2px;
}

/* ==========================================================================
   Sparkle Effects
   ========================================================================== */
.sparkle {
    position: fixed;
    pointer-events: none;
    font-size: 24px;
    animation: sparkleAnim 1s forwards;
    z-index: 9999;
    user-select: none;
}

@keyframes sparkleAnim {
    0% { transform: scale(0) rotate(0deg); opacity: 1; }
    50% { transform: scale(1.5) rotate(180deg); opacity: 1; }
    100% { transform: scale(0) rotate(360deg); opacity: 0; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 768px) {
    .glitch { font-size: 3rem; }
    #sigma-rule { font-size: 1.5rem; }
    .nav-links { display: none; } /* Simplified for mobile */
    .profile-container { width: 200px; height: 200px; }
    .grid-item:nth-child(2) { grid-row: span 1; }
    .grid-item:nth-child(5) { grid-column: span 1; }
}
