/* 
 * DOMMO POKER TEAM - STYLE GUIDE & MAIN CSS
 * Theme: E-sports, Dark Mode, Glassmorphism, Neon Red
 */

/* =========================================
   1. VARIABLES & THEME SETUP
   ========================================= */
:root {
    /* Palette */
    --color-primary: #FF4C43;
    --color-primary-dark: #cc3d36;
    --color-primary-light: #ff7c75;
    
    --color-neutral-black: #0a0a0a;
    --color-neutral-dark: #1a1a1a;
    --color-neutral-text: #e1e1e1;
    --color-accent: #ffefef; /* Leve rosado digital */
    
    /* Typography */
    --font-main: 'Inter', sans-serif;
    
    /* Dimensions & Spacing */
    --header-height: 80px;
    --border-radius: 12px;
    
    /* Effects */
    --glass-bg: rgba(255, 255, 255, 0.06);
    --glass-border: 1px solid rgba(255, 255, 255, 0.08);
    --glass-blur: blur(12px);
    
    --shadow-neon: 0 0 15px rgba(255, 76, 67, 0.4), 0 0 30px rgba(255, 76, 67, 0.1);
    --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.3);
    
    --transition: all 0.3s ease;
    --z-fixed: 100;
    --z-modal: 200;
}

/* =========================================
   2. MODERN RESET
   ========================================= */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: none; /* Hide default cursor for custom one */
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-main);
    background-color: var(--color-neutral-black);
    color: var(--color-neutral-text);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* Subtle grid pattern for "pixel/tech" feel */
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 50px 50px;
}

ul { list-style: none; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
img { max-width: 100%; height: auto; display: block; }
button, input, textarea { font-family: inherit; border: none; outline: none; }

/* =========================================
   3. CUSTOM CURSOR & PARTICLES
   ========================================= */
.cursor-dot {
    width: 5px;
    height: 5px;
    background-color: var(--color-primary);
    box-shadow: 0 0 10px var(--color-primary);
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 9999;
    pointer-events: none;
}

.cursor-outline {
    width: 30px;
    height: 30px;
    border: 1px solid rgba(255, 76, 67, 0.5);
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 9998;
    pointer-events: none;
    transition: width 0.2s, height 0.2s, background-color 0.2s;
}

/* Expanded state on hover */
.cursor-outline.hovered {
    width: 50px;
    height: 50px;
    background-color: rgba(255, 76, 67, 0.1);
    border-color: var(--color-primary);
}

.cursor-dot.hovered {
    background-color: #fff;
    box-shadow: 0 0 15px #fff;
}

#global-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

/* =========================================
   4. TYPOGRAPHY
   ========================================= */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700; /* Inter Bold */
    color: #fff;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

p {
    font-weight: 400; /* Inter Regular */
    margin-bottom: 1rem;
}

.section-title {
    font-size: 2.5rem;
    text-transform: uppercase;
    position: relative;
    display: inline-block;
}

.section-subtitle {
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.875rem;
    font-weight: 700;
    display: block;
    margin-bottom: 0.5rem;
}

/* =========================================
   5. UTILITY CLASSES & ANIMATIONS
   ========================================= */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: 6rem 0;
}

/* Glassmorphism Utility */
.glass {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: var(--glass-border);
    border-radius: var(--border-radius);
}

/* Neon Shadow Utility */
.neon-shadow {
    box-shadow: var(--shadow-neon);
}

/* Text Gradient (Optional E-sports flair) */
.text-gradient {
    background: linear-gradient(90deg, #fff, var(--color-neutral-text));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Animation Classes */
@keyframes float {
    0% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0); }
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

@keyframes pulse-glow {
    0% { box-shadow: 0 0 0 0 rgba(255, 76, 67, 0.4); }
    70% { box-shadow: 0 0 0 15px rgba(255, 76, 67, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 76, 67, 0); }
}

.btn-pulse {
    animation: pulse-glow 2s infinite;
}

@keyframes text-pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.05); opacity: 0.8; text-shadow: 0 0 10px var(--color-primary); }
    100% { transform: scale(1); opacity: 1; }
}

.pulse-text {
    display: inline-block;
    animation: text-pulse 2s infinite;
}

/* =========================================
   6. COMPONENTS
   ========================================= */

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.9rem 2.2rem;
    border-radius: var(--border-radius);
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background-color: var(--color-primary);
    color: #fff;
}

.btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(255, 76, 67, 0.6);
    background-color: var(--color-primary-dark);
}

/* Glow effect on hover */
.btn-glow {
    position: relative;
}
.btn-glow::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: 0.5s;
}
.btn-glow:hover::before {
    left: 100%;
}

.btn-outline {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
}

.btn-outline:hover {
    border-color: var(--color-primary);
    background: rgba(255, 76, 67, 0.1);
    box-shadow: 0 0 15px rgba(255, 76, 67, 0.2);
}

/* Cards (Glassmorphism) */
.card-glass {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: var(--glass-border);
    border-radius: var(--border-radius);
    padding: 2rem;
    transition: var(--transition);
}

.card-glass:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 76, 67, 0.3);
    box-shadow: var(--shadow-neon);
}

/* =========================================
   7. LAYOUT SECTIONS
   ========================================= */

/* Header */
.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: var(--header-height);
}

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: var(--z-fixed);
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.logo {
    font-weight: 800;
    font-size: 1.5rem;
    color: #fff;
    letter-spacing: -1px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.logo span {
    color: var(--color-primary);
}

/* Nav */
.nav-list { display: flex; gap: 2.5rem; }
.nav-link {
    font-weight: 500;
    color: var(--color-neutral-text);
    font-size: 0.95rem;
    position: relative;
}
.nav-link:hover, .nav-link.active { color: var(--color-primary); }
.nav-link::after {
    content: '';
    position: absolute;
    width: 0; height: 2px;
    bottom: -4px; left: 0;
    background-color: var(--color-primary);
    box-shadow: 0 0 10px var(--color-primary); /* Neon glow */
    transition: var(--transition);
}
.nav-link:hover::after { width: 100%; }

.nav-toggle { display: none; color: #fff; font-size: 1.5rem; cursor: pointer; }

/* Hero Section */
.hero {
    padding-top: var(--header-height);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center; /* Center content for single column layout */
    position: relative;
    overflow: hidden;
    text-align: center; /* Default center alignment */
}

/* Hero Animated Background */
.hero-bg-anim {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: -1;
    overflow: hidden;
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: float-orb 15s infinite alternate ease-in-out;
}

.orb-1 {
    width: 500px; height: 500px;
    background: radial-gradient(circle, var(--color-primary-dark), transparent);
    top: -10%; right: -10%;
}

.orb-2 {
    width: 400px; height: 400px;
    background: radial-gradient(circle, #4343ff, transparent); /* Slight blue tint for contrast */
    bottom: -10%; left: -10%;
    animation-duration: 20s;
    animation-delay: -5s;
}

@keyframes float-orb {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(50px, 50px) scale(1.1); }
}

/* Floating Pixel Elements */
.floating-elements {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: -1;
    pointer-events: none;
}

.pixel-shape {
    position: absolute;
    width: 40px; height: 40px;
    background-image: linear-gradient(45deg, var(--color-primary) 25%, transparent 25%, transparent 75%, var(--color-primary) 75%, var(--color-primary)), 
                      linear-gradient(45deg, var(--color-primary) 25%, transparent 25%, transparent 75%, var(--color-primary) 75%, var(--color-primary));
    background-position: 0 0, 20px 20px;
    background-size: 40px 40px;
    opacity: 0.15;
}

/* Specific shapes/positions */
.shape-1 { top: 20%; left: 10%; width: 60px; height: 60px; opacity: 0.2; }
.shape-2 { top: 15%; right: 15%; width: 40px; height: 40px; }
.shape-3 { bottom: 20%; left: 20%; width: 30px; height: 30px; }
.shape-4 { bottom: 25%; right: 10%; width: 50px; height: 50px; }


.hero-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    max-width: 900px; /* Constrain width for better typography */
}

.hero-content {
    z-index: 1;
}

.hero-content .subtitle {
    display: inline-block;
    color: var(--color-primary);
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    opacity: 0; /* Hidden initially for GSAP */
}

.hero-content .title {
    font-size: 5rem; /* Massive title */
    line-height: 1.1;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: -2px;
    background: linear-gradient(180deg, #fff 0%, #aaa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0; /* Hidden initially for GSAP */
}

.hero-buttons { 
    display: flex; 
    gap: 1.5rem; 
    justify-content: center;
    margin-top: 2rem;
    opacity: 0; /* Hidden initially for GSAP */
}

/* Historia Section */
.historia-intro {
    max-width: 800px;
    margin: 0 auto 4rem;
    text-align: center;
    font-size: 1.1rem;
    color: var(--color-text-muted);
}

.historia-intro strong {
    color: white;
    font-weight: 600;
}

/* Timeline */
.timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

.timeline-line {
    content: '';
    position: absolute;
    width: 4px;
    background-color: rgba(255, 255, 255, 0.1);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
    border-radius: 2px;
    /* Initial height for animation will be handled by GSAP */
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    width: 50%;
    box-sizing: border-box;
    margin-bottom: 2rem;
}

.timeline-item.left {
    left: 0;
    text-align: right;
}

.timeline-item.right {
    left: 50%;
    text-align: left;
}

/* Timeline Dots */
.timeline-item::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    right: -10px;
    background-color: var(--color-neutral-black);
    border: 4px solid var(--color-primary);
    top: 25px;
    border-radius: 50%;
    z-index: 1;
    transition: var(--transition);
}

.timeline-item.right::after {
    left: -10px;
}

.timeline-item:hover::after {
    background-color: var(--color-primary);
    box-shadow: 0 0 15px var(--color-primary);
}

/* Timeline Content Cards */
.timeline-content {
    padding: 2rem;
    position: relative;
    transition: var(--transition);
}

.timeline-content:hover {
    transform: translateY(-6px);
    border-color: var(--color-primary);
    box-shadow: var(--shadow-neon);
}

.timeline-content h3 {
    font-size: 1.8rem;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.timeline-content p {
    margin: 0;
    color: #ccc;
}

.pixel-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    display: inline-block;
}


/* Team Section */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Default flexible grid */
    gap: 2.5rem;
    perspective: 1000px; /* 3D Perspective context */
}

/* Responsive Columns Override for specific requirements */
@media (min-width: 1024px) {
    .team-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 768px) and (max-width: 1023px) {
    .team-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 767px) {
    .team-grid { grid-template-columns: 1fr; }
}


.team-card {
    /* Base styles */
    background: transparent; /* Tilt.js handles the background/glare inside or on this element */
    border-radius: var(--border-radius);
    /* We'll use a child for the glass look to keep 3D clean */
}

.card-inner {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border: var(--glass-border);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    transform-style: preserve-3d;
}

.tilt-card {
    transform-style: preserve-3d;
}

.tilt-card:hover .card-inner {
    border-color: var(--color-primary);
    box-shadow: var(--shadow-neon), 0 20px 40px rgba(0,0,0,0.6); /* Deep shadow for lift */
    /* TranslateZ handled by tilt.js or we can add subtle scale */
}

.member-img {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4 / 5;
    background-color: #1a1a1a; /* Placeholder background */
}

.member-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Image overlay effect */
.member-img::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    opacity: 0.6;
    transition: var(--transition);
}

.team-card:hover .member-img::after {
    opacity: 0.3;
}

.avatar-icon {
    font-size: 4rem;
    filter: grayscale(100%);
    transition: var(--transition);
    transform: translateZ(20px); /* Pop out in 3D */
}

.team-card:hover .avatar-icon {
    filter: grayscale(0%);
    transform: translateZ(30px) scale(1.1);
}

.member-info { 
    padding: 1.5rem; 
    text-align: center; 
    transform: translateZ(20px); /* Pop out text */
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.member-info h3 { 
    margin-bottom: 0.2rem; 
    font-size: 1.4rem; 
    color: #fff;
}

.member-info .role { 
    color: var(--color-primary); 
    font-weight: 600; 
    font-size: 0.9rem; 
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 1rem;
}
.member-info .member-desc {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

.social-mini {
    margin-top: auto;
    font-size: 0.85rem;
    color: #888;
}

.social-mini a {
    color: #aaa;
    transition: var(--transition);
}

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

/* Resultados (Stats) */
.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.result-card {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 200px;
    position: relative;
    overflow: hidden;
    transition: var(--transition);
}

.result-card:hover {
    border-color: var(--color-primary);
    transform: translateY(-5px);
    box-shadow: var(--shadow-neon);
}

/* Animated Side Shine */
.result-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 76, 67, 0.1), transparent);
    transform: skewX(-25deg);
    transition: 0.5s;
}

.result-card:hover::before {
    left: 150%;
}

.tournament-info {
    margin-bottom: 1.5rem;
}

.result-img {
    width: 100%;
    height: 220px;
    overflow: hidden;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
}

.result-img img {
    width: 100%;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center;
    display: block;
}

.buyin {
    font-size: 0.9rem;
    color: #aaa;
    display: block;
    margin-bottom: 0.5rem;
}

.tournament-info h3 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    color: #fff;
}

.position {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    background: rgba(255, 76, 67, 0.2);
    border: 1px solid var(--color-primary);
    border-radius: 50px;
    color: var(--color-primary);
    font-weight: 700;
    font-size: 0.9rem;
}

.prize-info {
    text-align: right;
}

.prize-label {
    display: block;
    font-size: 0.8rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.prize-value {
    font-size: 2rem;
    font-weight: 800;
    color: #fff;
}

/* Chart Container */
.chart-container {
    padding: 2rem;
    margin-bottom: 4rem;
    height: 400px;
    position: relative;
    width: 100%;
}

.chart-container h3 {
    margin-bottom: 2rem;
    text-align: center;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}
.stat-item {
    padding: 2.5rem;
    background: linear-gradient(145deg, var(--color-neutral-dark), #0f0f0f);
    border-radius: var(--border-radius);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
}
.stat-item:hover {
    border-color: var(--color-primary);
    box-shadow: inset 0 0 20px rgba(255, 76, 67, 0.1);
}
.stat-number {
    display: block;
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--color-primary);
    text-shadow: 0 0 15px rgba(255, 76, 67, 0.3);
    margin-bottom: 0.5rem;
}

/* Benefícios */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}
.benefit-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    border: var(--glass-border);
    border-radius: var(--border-radius);
    padding: 2.5rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}
.benefit-card:hover {
    transform: translateY(-10px);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%);
    border-color: var(--color-primary);
    box-shadow: var(--shadow-neon);
}

@keyframes glowPulse {
    0% { text-shadow: 0 0 10px rgba(255, 76, 67, 0.4); transform: scale(1); }
    50% { text-shadow: 0 0 25px rgba(255, 76, 67, 0.8), 0 0 10px rgba(255, 76, 67, 0.4); transform: scale(1.1); }
    100% { text-shadow: 0 0 10px rgba(255, 76, 67, 0.4); transform: scale(1); }
}

.icon-box { 
    font-size: 3rem; 
    margin-bottom: 1.5rem; 
    color: var(--color-primary);
    transition: var(--transition);
    display: inline-block;
}

.benefit-card:hover .icon-box {
    transform: rotate(8deg) scale(1.1);
    animation: glowPulse 2s infinite;
}

.benefit-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #fff;
}

.benefit-card p {
    color: var(--color-text-muted);
    line-height: 1.7;
}

#instagram .benefits-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(326px, 540px));
    gap: 2rem;
    justify-content: center;
}
@media (max-width: 1024px) {
    #instagram .benefits-grid {
        grid-template-columns: repeat(2, minmax(300px, 1fr));
    }
}
@media (max-width: 768px) {
    #instagram .benefits-grid {
        grid-template-columns: 1fr;
    }
}
#instagram .benefit-card { width: 100%; margin-bottom: 0; padding: 0; }
#instagram .benefit-card iframe.instagram-media { width: 100% !important; height: 680px !important; min-height: 680px !important; display: block; }


/* Contato */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    /* Uses glass background instead of solid */
    padding: 4rem;
    /* Inherits glass styles from HTML class */
    align-items: start;
}

.contact-info h2 { font-size: 2.2rem; margin-bottom: 1rem; }
.info-item {
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    color: #fff;
}
.info-item .icon { 
    font-size: 1.5rem; 
    width: 50px; height: 50px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--color-primary); 
}

.form-group { margin-bottom: 1.5rem; position: relative; }
.form-group label { display: block; margin-bottom: 0.5rem; color: #aaa; font-size: 0.9rem; font-weight: 600; }
.form-group input, .form-group textarea {
    width: 100%;
    padding: 1.2rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    color: #fff;
    transition: var(--transition);
}
.form-group input:focus, .form-group textarea:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 15px rgba(255, 76, 67, 0.2);
    background: rgba(0, 0, 0, 0.5);
}

/* Validation Error Styles */
.error-msg {
    color: var(--color-primary);
    font-size: 0.8rem;
    margin-top: 0.5rem;
    display: none;
    opacity: 0;
    transform: translateY(-10px);
    transition: var(--transition);
}

.form-group.error input, .form-group.error textarea {
    border-color: var(--color-primary);
}

.form-group.error .error-msg {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* Submit Button Loading State */
.btn-submit {
    min-width: 180px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
}

.btn-loader {
    display: none;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.btn.loading .btn-text {
    display: none;
}

.btn.loading .btn-loader {
    display: block;
}

/* Footer */
.footer {
    background: #050505;
    padding: 3rem 0;
    border-top: 1px solid #222;
    margin-top: 4rem;
}
.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.footer-powered { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.footer-powered img { height: 48px; width: 48px; border-radius: 6px; object-fit: contain; }
.footer-powered-name { color: var(--color-neutral-text); font-weight: 600; font-size: 0.95rem; letter-spacing: 0.2px; }
.copyright { color: #666; font-size: 0.9rem; }
.social-links { display: flex; gap: 1.5rem; }
.social-links a { color: #888; transition: var(--transition); }
.social-links a:hover { color: var(--color-primary); transform: translateY(-3px); }

/* =========================================
   8. RESPONSIVE
   ========================================= */
@media (max-width: 968px) {
    .hero-container { grid-template-columns: 1fr; text-align: center; }
    .hero-content .description { margin: 0 auto 2.5rem; }
    .hero-buttons { justify-content: center; }
    .contact-wrapper { grid-template-columns: 1fr; padding: 2rem; }
    .hero-content .title { font-size: 3rem; }

    /* Timeline Responsive */
    .timeline::after { left: 31px; }
    .timeline-line { left: 31px; }
    .timeline-item { width: 100%; padding-left: 70px; padding-right: 25px; }
    .timeline-item.left, .timeline-item.right { left: 0; text-align: left; }
    .timeline-item::after { left: 21px; } /* Adjust dot position */
    .timeline-item.right::after { left: 21px; }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 0;
        left: -100%; /* Hidden initially */
        width: 100%;
        height: 100vh;
        background: rgba(10, 10, 10, 0.95);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        display: flex;
        justify-content: center;
        align-items: center;
        transition: left 0.4s ease; /* Fallback transition */
        z-index: 90; /* Below header but above content */
        opacity: 0; /* For GSAP */
        visibility: hidden; /* For GSAP */
    }

    /* Class added by JS/GSAP to show */
    .nav-menu.show-menu {
        /* GSAP will handle transform/left/opacity */
        visibility: visible;
    }

    .nav-list {
        flex-direction: column;
        align-items: center;
        gap: 3rem;
    }

    .nav-link {
        font-size: 1.5rem;
        font-weight: 700;
        opacity: 0; /* For stagger animation */
        transform: translateY(20px); /* For stagger animation */
    }

    .nav-toggle {
        display: flex;
        flex-direction: column;
        gap: 6px;
        z-index: 101; /* Above menu */
        position: relative;
    }
    
    .nav-toggle .bar {
        width: 30px;
        height: 3px;
        background-color: #fff;
        transition: all 0.3s ease;
        border-radius: 3px;
        transform-origin: center;
    }
    
    /* Hamburger Animation classes */
    .nav-toggle.active .bar:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }
    .nav-toggle.active .bar:nth-child(2) {
        opacity: 0;
        transform: translateX(20px);
    }
    .nav-toggle.active .bar:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

    .section-title { font-size: 2rem; }
    .stat-number { font-size: 2.5rem; }
    .footer-container { flex-direction: column; gap: 1.5rem; text-align: center; }
    .footer-powered { align-self: flex-start; text-align: left; }
    
    .hero-content .title { font-size: 2.5rem; }
    .hero-content .subtitle { font-size: 0.9rem; letter-spacing: 2px; }
    .hero-buttons { flex-direction: column; gap: 1rem; padding: 0 2rem; }
    .btn { width: 100%; }
    
    .chart-container { height: 300px; padding: 1rem; }
}

/* Mobile: Hide Custom Cursor */
@media (hover: none) and (pointer: coarse) {
    .cursor-dot, .cursor-outline {
        display: none;
    }
    *, *::before, *::after {
        cursor: auto;
    }
}

/* =========================================
   9. LAZY LOAD
   ========================================= */
.lazy-img {
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.lazy-img.loaded {
    opacity: 1;
}
