/* ===================================
   Tornado.io 3 - Battle Arena
   Professional Modern Gaming Design System
   =================================== */

/* === CSS Variables === */
:root {
    /* Primary Colors - Refined Orange */
    --color-primary: #FF5E2B;
    --color-primary-light: #FF8559;
    --color-primary-dark: #D94115;
    
    /* Secondary Colors - Cyber Teal */
    --color-secondary: #00F0FF;
    --color-secondary-light: #66F5FF;
    --color-secondary-dark: #00B8C4;
    
    /* Accent Colors - Neon Palette */
    --color-accent-purple: #9D00FF;
    --color-accent-pink: #FF0055;
    --color-accent-blue: #2D6CFF;
    
    /* Backgrounds - Deep Space Theme */
    --bg-primary: #0B0D14;
    --bg-secondary: #12151F;
    --bg-card: rgba(22, 27, 40, 0.7);
    --bg-overlay: rgba(11, 13, 20, 0.9);
    
    /* Text Colors */
    --text-primary: #FFFFFF;
    --text-secondary: #9CA3AF;
    --text-muted: #6B7280;
    --text-highlight: #E2E8F0;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #FF5E2B 0%, #FF3A00 100%);
    --gradient-secondary: linear-gradient(135deg, #00F0FF 0%, #00A8FF 100%);
    --gradient-dark: linear-gradient(180deg, rgba(18, 21, 31, 0) 0%, #12151F 100%);
    --gradient-card: linear-gradient(145deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%);
    --gradient-glow: radial-gradient(circle at center, rgba(255, 94, 43, 0.15) 0%, transparent 70%);
    
    /* Shadows & Glows */
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 10px 15px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 20px 25px rgba(0, 0, 0, 0.2);
    --glow-primary: 0 0 20px rgba(255, 94, 43, 0.4);
    --glow-secondary: 0 0 20px rgba(0, 240, 255, 0.3);
    
    /* Spacing System */
    --space-xs: 0.25rem;  /* 4px */
    --space-sm: 0.5rem;   /* 8px */
    --space-md: 1rem;     /* 16px */
    --space-lg: 1.5rem;   /* 24px */
    --space-xl: 2.5rem;   /* 40px */
    --space-2xl: 4rem;    /* 64px */
    --space-3xl: 6rem;    /* 96px */
    
    /* Typography */
    --font-display: 'Outfit', sans-serif; /* Changed from Rajdhani for cleaner look */
    --font-body: 'Outfit', sans-serif;
    
    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-full: 9999px;
    
    /* Transitions */
    --ease-out: cubic-bezier(0.215, 0.61, 0.355, 1);
    --duration-fast: 0.2s;
    --duration-normal: 0.3s;
    --duration-slow: 0.5s;

    /* Header Height */
    --header-height: 80px;
}

/* === Reset & Base Styles === */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: var(--font-body);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* === Typography === */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    line-height: 1.1;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

p {
    color: var(--text-secondary);
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--duration-fast) ease;
}

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

/* === Layout Utilities === */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

section {
    padding: var(--space-3xl) 0;
    position: relative;
    overflow: hidden;
}

/* === Navigation === */
.nav-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    z-index: 1000;
    background: rgba(11, 13, 20, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform var(--duration-normal) var(--ease-out);
}

.nav-container {
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

/* Brand */
.brand {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    text-decoration: none;
}

.brand-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
}

.brand-name {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--text-primary);
    letter-spacing: 0.05em;
}

/* Nav Menu */
.nav-menu {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    position: relative;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-primary);
    transition: width var(--duration-normal) var(--ease-out);
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Language Selector */
.language-selector {
    position: relative;
}

.language-button {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-xs) var(--space-md);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.875rem;
    transition: all var(--duration-fast) ease;
}

.language-button:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.language-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 160px;
    background: var(--bg-secondary);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    padding: var(--space-xs);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all var(--duration-normal) var(--ease-out);
    box-shadow: var(--shadow-lg);
}

.language-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.language-option {
    width: 100%;
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-sm) var(--space-md);
    color: var(--text-secondary);
    font-weight: 500;
    border-radius: var(--radius-sm);
    transition: all var(--duration-fast);
    text-align: left;
}

.language-option:hover,
.language-option.active {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}

.nav-toggle {
    display: none;
    width: 32px;
    height: 32px;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    z-index: 1001;
}

.nav-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text-primary);
    transition: all var(--duration-normal);
}

/* === Hero Section === */
.hero-section {
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 0;
}

.hero-video-background {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.hero-video-background iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 177.78vh; /* default to cover tall viewports */
    height: 100vh;
    min-width: 100vw;
    min-height: 100vh;
    transform: translate(-50%, -50%) scale(1.05);
    pointer-events: none;
    object-fit: cover;
    background: #000;
}

@media (min-aspect-ratio: 16/9) {
    .hero-video-background iframe {
        width: 100vw;
        height: 56.25vw;
    }
}

.hero-video-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(11, 13, 20, 0.65) 0%, rgba(5, 6, 8, 0.95) 95%);
    background-color: rgba(5, 6, 8, 0.85); /* Stronger overlay for readability */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 900px;
    padding: var(--space-2xl) var(--space-lg); /* Added padding */
    animation: heroFadeIn 1s var(--ease-out);
    background: radial-gradient(closest-side, rgba(0,0,0,0.4) 0%, transparent 100%); /* Subtle spotlight behind text */
    border-radius: var(--radius-lg);
}

@keyframes heroFadeIn {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-title {
    margin-bottom: var(--space-lg);
}

.hero-title-main {
    display: block;
    font-size: clamp(3.5rem, 8vw, 6rem);
    line-height: 0.9;
    background: linear-gradient(to bottom, #fff 0%, #e2e8f0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.hero-title-sub {
    display: block;
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    color: var(--color-primary);
    margin-top: var(--space-xs);
    text-shadow: 0 0 20px rgba(255, 94, 43, 0.5);
}

.hero-tagline {
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    color: #fff;
    margin-bottom: var(--space-sm);
    font-weight: 600;
    text-shadow: 0 6px 20px rgba(0,0,0,0.4);
}

.hero-description {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto var(--space-xl);
    color: rgba(255,255,255,0.9);
    text-shadow: 0 4px 15px rgba(0,0,0,0.45);
}

/* CTA Buttons */
.hero-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-lg);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.5rem;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all var(--duration-normal) var(--ease-out);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--glow-primary);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(255, 94, 43, 0.6);
}

.store-buttons {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
    justify-content: center;
}

.store-button {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    padding: var(--space-sm) var(--space-lg);
    transition: all var(--duration-fast);
    backdrop-filter: blur(8px);
}

.store-button:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--text-primary);
    transform: translateY(-2px);
}

.store-badge {
    height: 40px;
    width: auto;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: var(--space-xl);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-xs);
    opacity: 0.7;
    transition: opacity var(--duration-normal);
    cursor: pointer;
    z-index: 5;
}

.scroll-indicator:hover {
    opacity: 1;
}

.scroll-icon {
    width: 30px;
    height: 30px;
    border: none;
    border-right: 3px solid var(--color-primary);
    border-bottom: 3px solid var(--color-primary);
    transform: rotate(45deg);
    margin-bottom: var(--space-sm);
    animation: scrollBounce 2s infinite;
}

.scroll-icon::before {
    display: none;
}

@keyframes scrollBounce {
    0% { transform: rotate(45deg) translate(0, 0); opacity: 1; }
    50% { transform: rotate(45deg) translate(10px, 10px); opacity: 0.5; }
    100% { transform: rotate(45deg) translate(0, 0); opacity: 1; }
}

.scroll-text {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
}

/* === Section Headers === */
.section-header {
    text-align: center;
    margin-bottom: var(--space-3xl);
    position: relative;
}

.section-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: var(--space-sm);
    background: linear-gradient(to right, #fff, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
}

/* === Features Carousel === */
.features-section {
    background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}

.features-carousel-wrapper {
    position: relative;
    padding: 0 60px;
    max-width: 1400px;
    margin: 0 auto;
}

.features-track {
    display: flex;
    gap: var(--space-xl);
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
    padding: var(--space-xl) 0;
    position: relative;
}

.feature-card {
    min-width: 340px;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    text-align: center;
    position: relative;
    transition: all 0.4s var(--ease-out);
    transform: scale(0.9);
    opacity: 0.5;
    backdrop-filter: blur(10px);
}

.feature-card.center {
    transform: scale(1);
    opacity: 1;
    border-color: var(--color-primary);
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.3), inset 0 0 20px rgba(255, 94, 43, 0.1);
    z-index: 2;
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: var(--space-md);
    display: inline-block;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
}

.feature-title {
    font-size: 1.5rem;
    margin-bottom: var(--space-sm);
    color: var(--text-primary);
}

.feature-description {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

/* Circular Progress - Integrated nicely */
.card-progress {
    position: absolute;
    inset: -2px;
    width: calc(100% + 4px);
    height: calc(100% + 4px);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s;
}

.feature-card.center .card-progress {
    opacity: 1;
}

.progress-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.05);
    stroke-width: 2;
}

.progress-fill {
    fill: none;
    stroke: var(--color-primary);
    stroke-width: 2;
    stroke-dasharray: 390;
    stroke-dashoffset: 390;
    transition: none;
}

/* Carousel Navigation */
.carousel-nav {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: all var(--duration-fast);
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
}

.carousel-nav:hover {
    background: var(--color-primary);
    border-color: var(--color-primary);
    box-shadow: var(--glow-primary);
}

.carousel-prev { left: 0; }
.carousel-next { right: 0; }

.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: var(--space-sm);
    margin-top: var(--space-lg);
}

.carousel-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transition: all var(--duration-normal);
}

.carousel-indicator.active {
    background: var(--color-primary);
    width: 24px;
    border-radius: 4px;
}

/* === Game Modes === */
.game-modes-section {
    background-color: var(--bg-secondary);
    position: relative;
}

/* Subtle background decoration */
.game-modes-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 10% 20%, rgba(255, 94, 43, 0.05) 0%, transparent 20%),
        radial-gradient(circle at 90% 80%, rgba(0, 240, 255, 0.05) 0%, transparent 20%);
    pointer-events: none;
}

.game-modes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--space-lg);
}

.mode-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    transition: all var(--duration-normal);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.mode-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: var(--shadow-lg);
    background: rgba(30, 35, 50, 0.8);
}

.mode-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--color-primary);
    opacity: 0;
    transition: opacity var(--duration-normal);
}

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

.mode-header {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
}

.mode-icon {
    font-size: 2rem;
}

.mode-title {
    font-size: 1.5rem;
    color: var(--text-primary);
}

.mode-type {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--color-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-md);
    align-self: flex-start;
}

.mode-description {
    font-size: 0.95rem;
    margin-bottom: var(--space-lg);
    flex-grow: 1;
}

.mode-highlight {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-highlight);
    padding-top: var(--space-md);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* === Screenshots === */
.screenshots-section {
    background: var(--bg-primary);
}

.screenshots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--space-md);
}

.screenshot-item {
    position: relative;
    aspect-ratio: 16/9;
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: zoom-in;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.screenshot-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.screenshot-item:hover .screenshot-image {
    transform: scale(1.05);
}

.screenshot-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    display: flex;
    align-items: flex-end;
    padding: var(--space-md);
    opacity: 0;
    transition: opacity var(--duration-fast);
}

.screenshot-item:hover .screenshot-overlay {
    opacity: 1;
}

.screenshot-title {
    color: white;
    font-weight: 600;
    font-size: 1rem;
}

/* === About Section === */
.about-section {
    background: var(--bg-secondary);
    position: relative;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: center;
}

.about-text .section-title {
    text-align: left;
    margin-bottom: var(--space-lg);
}

.about-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-xl);
}

.about-highlights {
    list-style: none;
    display: grid;
    gap: var(--space-md);
}

.about-highlights li {
    position: relative;
    padding-left: var(--space-xl);
    font-weight: 500;
    color: var(--text-highlight);
}

.about-highlights li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 2px;
    width: 24px;
    height: 24px;
    background: rgba(46, 204, 113, 0.2);
    color: #2ecc71;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: bold;
}

.about-visual {
    position: relative;
}

.about-image {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* === Social & Contact === */
.social-section {
    background: var(--bg-primary); /* Changed from gradient for separation */
    padding: var(--space-3xl) 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05); /* Added border for separation */
}

.social-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
    max-width: 1000px;
    margin: 0 auto;
    align-items: center;
}

.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
    justify-content: center;
}

.social-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-lg);
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    width: 120px;
    transition: all var(--duration-normal);
}

.social-link:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--color-primary);
}

.social-icon {
    font-size: 2rem;
}

.social-name {
    font-size: 0.875rem;
    font-weight: 600;
}

.contact-card {
    background: var(--bg-card);
    padding: var(--space-2xl);
    border-radius: var(--radius-lg);
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* === Footer === */
.footer {
    background: #050608;
    padding: var(--space-xl) 0 var(--space-lg); /* Reduced padding */
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
    display: flex; /* Changed to flex for better control */
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-xl);
    margin-bottom: var(--space-xl);
    max-width: 1000px;
    margin: 0 auto var(--space-xl);
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    /* Removed margin-bottom */
}

.footer-icon {
    width: 40px; /* Fixed small size */
    height: 40px;
    border-radius: var(--radius-sm);
    object-fit: cover;
}

.footer-name {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
}

.footer-links {
    display: flex;
    flex-direction: row; /* Horizontal links */
    gap: var(--space-lg);
}

.footer-link {
    color: var(--text-muted);
    font-size: 0.9rem;
    transition: color var(--duration-fast);
}

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

.footer-social {
    display: flex;
    gap: var(--space-md);
}

.footer-social-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    color: var(--text-secondary);
    transition: all var(--duration-fast);
}

.footer-social-icon:hover {
    background: var(--color-primary);
    color: white;
}

.footer-bottom {
    padding-top: var(--space-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
    font-size: 0.875rem;
    color: var(--text-muted);
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

/* === Modals === */
.modal, .video-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
}

.modal.active, .video-modal.active {
    display: flex;
}

.modal-overlay, .video-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(8px);
}

.modal-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    z-index: 2001;
}

.modal-image {
    border-radius: var(--radius-sm);
    box-shadow: 0 0 50px rgba(0,0,0,0.5);
}

.modal-close, .video-modal-close {
    position: absolute;
    top: -50px;
    right: 0;
    color: white;
    font-size: 2rem;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.modal-close:hover, .video-modal-close:hover {
    opacity: 1;
}

.modal-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: white;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: background 0.2s;
    z-index: 2002;
}

.modal-nav-btn:hover {
    background: var(--color-primary);
}

.modal-prev { left: -70px; }
.modal-next { right: -70px; }

.modal-caption {
    position: absolute;
    bottom: -40px;
    left: 0;
    width: 100%;
    text-align: center;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Video Modal Specifics */
.video-modal-container {
    width: 80vw;
    max-width: 1200px;
    aspect-ratio: 16/9;
    background: black;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    position: relative;
    z-index: 3001;
}

.video-modal-container iframe {
    width: 100%;
    height: 100%;
}

/* === Loading === */
.loading-indicator {
    position: fixed;
    inset: 0;
    background: var(--bg-primary);
    z-index: 5000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.loading-indicator.active {
    opacity: 1;
    pointer-events: all;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 94, 43, 0.3);
    border-top-color: var(--color-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* === Responsive === */
@media (max-width: 1024px) {
    .hero-title-main { font-size: 4rem; }
    .about-content { grid-template-columns: 1fr; }
    .about-text { text-align: center; }
    .about-text .section-title { text-align: center; }
    .social-content { grid-template-columns: 1fr; }
    .nav-menu { display: none; }
    .nav-toggle { display: flex; }
    
    /* Mobile Nav Logic */
    .nav-menu.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: var(--header-height);
        left: 0;
        width: 100%;
        background: var(--bg-secondary);
        padding: var(--space-lg);
        border-bottom: 1px solid rgba(255,255,255,0.1);
        gap: var(--space-md);
    }
    
    .modal-prev { left: 10px; }
    .modal-next { right: 10px; }
}

@media (max-width: 768px) {
    .hero-content { padding-top: var(--header-height); }
    .features-carousel-wrapper { padding: 0 20px; }
    .feature-card { min-width: 280px; padding: var(--space-lg); }
    .footer-content { grid-template-columns: 1fr; text-align: center; }
    .footer-brand, .footer-social { justify-content: center; }
    .store-buttons { flex-direction: column; align-items: center; }
}
