/* Fonts Setup */
@import url('https://fonts.googleapis.com/css2?family=Caveat:wght@400..700&display=swap');
/* For 'Agency' script look */

:root {
    --bg-color: #020b1c;
    /* Deep Navy */
    --text-color: #ffffff;
    --accent-primary: #ff5400;
    /* Fiery Orange */
    --accent-secondary: #00f0ff;
    /* Electric Teal */
    --font-heading: 'Russo One', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-script: 'Caveat', cursive;

    --container-width: 1400px;
    --header-height: 80px;
}

body {
    background-color: var(--bg-color);
    background-image:
        radial-gradient(circle at 10% 20%, rgba(255, 84, 0, 0.1) 0%, transparent 20%),
        radial-gradient(circle at 90% 80%, rgba(0, 240, 255, 0.1) 0%, transparent 20%);
    color: var(--text-color);
    font-family: var(--font-body);
    font-weight: 500;
    overflow-x: hidden;
}

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 40px;
}

.flex {
    display: flex;
}

.justify-between {
    justify-content: space-between;
}

.justify-center {
    justify-content: center;
}

.items-center {
    align-items: center;
}

.flex-col {
    flex-direction: column;
}

.gap-10 {
    gap: 10px;
}

.gap-15 {
    gap: 15px;
}

.gap-20 {
    gap: 20px;
}

.h-100 {
    height: 100%;
}

.relative {
    position: relative;
}

.z-10 {
    z-index: 10;
}

.text-center {
    text-align: center;
}

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

.nav-link {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.3s;
}

.nav-link:hover {
    color: white;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.nav ul {
    display: flex;
    gap: 30px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: 4px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    font-family: var(--font-heading);
}

.btn-primary {
    background: transparent;
    border: 1px solid var(--accent-primary);
    /* Placeholder style */
    background: linear-gradient(90deg, var(--accent-primary), #ff8a00);
    font-size: 0.8rem;
    gap: 8px;
    border-radius: 30px;
}

.btn-primary:hover {
    background: #ffffff;
    color: var(--accent-primary);
    box-shadow: 0 0 20px var(--accent-primary);
    transform: translateY(-2px);
}

.btn-pixel:hover {
    background: #020b1c;
    color: var(--accent-secondary);
    border: 2px solid var(--accent-secondary);
    box-shadow: 0 0 25px var(--accent-secondary);
    transform: scale(1.05);
}

/* Hero */
.hero {
    min-height: 100vh;
    padding-top: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 12rem;
    line-height: 0.85;
    text-transform: lowercase;
    margin: 0;
    color: white;
    position: relative;
    z-index: 2;
}

.hero-title .line-1 {
    display: block;
    /* Glitch effect could go here */
}

.hero-title .line-2 {
    display: block;
    margin-left: 200px;
}

@keyframes breathe {
    0% {
        transform: scale(1);
        opacity: 0.6;
    }

    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }

    100% {
        transform: scale(1);
        opacity: 0.6;
    }
}

@keyframes float-prop {
    0% {
        transform: translateY(0) rotate(0);
    }

    33% {
        transform: translateY(-15px) rotate(2deg);
    }

    66% {
        transform: translateY(10px) rotate(-2deg);
    }

    100% {
        transform: translateY(0) rotate(0);
    }
}

@keyframes glitch-anim {
    0% {
        transform: translate(0);
    }

    20% {
        transform: translate(-2px, 2px);
    }

    40% {
        transform: translate(-2px, -2px);
    }

    60% {
        transform: translate(2px, 2px);
    }

    80% {
        transform: translate(2px, -2px);
    }

    100% {
        transform: translate(0);
    }
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(2, 11, 28, 0.9), rgba(40, 0, 80, 0.4)), url('../images/hero/cyber_arcade_bg.png') no-repeat center center/cover;
    z-index: 1;
    animation: breathe 15s ease-in-out infinite;
}

.glitch-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://www.transparenttextures.com/patterns/carbon-fibre.png');
    /* Pattern for texture */
    opacity: 0.05;
    z-index: 2;
    pointer-events: none;
}

.hero-props {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
    pointer-events: none;
}

/* Floating Animations */
@keyframes float-1 {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }

    25% {
        transform: translate(80vw, 10vh) rotate(10deg);
    }

    50% {
        transform: translate(40vw, 60vh) rotate(-5deg);
    }

    75% {
        transform: translate(-10vw, 40vh) rotate(5deg);
    }

    100% {
        transform: translate(0, 0) rotate(0deg);
    }
}

@keyframes float-2 {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }

    33% {
        transform: translate(-50vw, 50vh) rotate(-10deg);
    }

    66% {
        transform: translate(-20vw, 10vh) rotate(15deg);
    }

    100% {
        transform: translate(0, 0) rotate(0deg);
    }
}

@keyframes float-3 {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }

    25% {
        transform: translate(50vw, -40vh) rotate(5deg);
    }

    50% {
        transform: translate(80vw, -10vh) rotate(-10deg);
    }

    75% {
        transform: translate(20vw, -50vh) rotate(10deg);
    }

    100% {
        transform: translate(0, 0) rotate(0deg);
    }
}

.prop {
    position: absolute;
    width: 150px;
    height: auto;
    filter: drop-shadow(0 0 20px var(--accent-secondary));
    will-change: transform;
}

.prop-joystick {
    top: 10%;
    left: 10%;
    animation: float-1 45s ease-in-out infinite;
}

.prop-trophy {
    top: 10%;
    right: 10%;
    width: 220px;
    animation: float-2 50s ease-in-out infinite;
    filter: drop-shadow(0 0 30px #ffcc00);
}

.prop-headset {
    bottom: 10%;
    left: 10%;
    width: 200px;
    animation: float-3 55s ease-in-out infinite;
}

.agency-script {
    font-family: var(--font-script);
    font-size: 8rem;
    /* Larger */
    position: absolute;
    right: 18%;
    bottom: 30%;
    transform: rotate(-12deg);
    z-index: 10;
    color: #ffffff;
    text-shadow:
        0 0 15px #ff00ff,
        0 0 30px #ff00ff,
        3px 3px 0px #020b1c;
    opacity: 1;
}

.slogan {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    letter-spacing: 4px;
    margin-bottom: 40px;
    margin-top: 60px;
    color: var(--accent-secondary);
    text-shadow: 0 0 15px var(--accent-secondary);
}

.btn-pixel {
    background: linear-gradient(90deg, var(--accent-secondary), #00aaff);
    color: #020b1c;
    /* Dark text for contrast */
    padding: 15px 40px;
    font-size: 1.2rem;
    border-radius: 8px;
    box-shadow: 0 5px 0 #0088cc;
    /* Pixel/3D feel */
    margin-bottom: 50px;
    font-weight: bold;
}

.btn-pixel .arrow {
    margin: 0 10px;
}

.btn-pixel:active {
    transform: translateY(5px);
    box-shadow: none;
}

/* Stats Section (Dark Themed) */
.stats-bg {
    background-color: var(--bg-color);
    background-image:
        radial-gradient(circle at 80% 20%, rgba(255, 84, 0, 0.15) 0%, transparent 35%),
        radial-gradient(circle at 20% 80%, rgba(0, 240, 255, 0.15) 0%, transparent 35%);
    color: #ffffff;
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.stats-bg .stat-number,
.stats-bg .huge-stat {
    color: #ffffff;
    text-shadow: 0 0 20px rgba(0, 240, 255, 0.3);
}

.stats-bg .stat-label,
.stats-bg .huge-stat-label {
    color: rgba(255, 255, 255, 0.9);
}

.stats-bg .section-desc {
    color: rgba(255, 255, 255, 0.7);
}

.stats-bg .divider {
    border-bottom-color: rgba(255, 255, 255, 0.2);
}

.stats-bg .btn-text {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s;
}

.stats-bg .btn-text:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
}

.light-theme {
    background-color: #ffffff;
    color: #050510;
    position: relative;
    /* Noise texture overlay logic would go here */
}

.py-100 {
    padding-top: 100px;
    padding-bottom: 100px;
}

.mb-50 {
    margin-bottom: 50px;
}

.mt-30 {
    margin-top: 30px;
}

.mt-50 {
    margin-top: 50px;
}

.mt-100 {
    margin-top: 100px;
}

.width-50 {
    width: 48%;
}

.width-40 {
    width: 40%;
}

.w-100 {
    width: 100%;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 6rem;
    line-height: 1;
    color: #050510;
}

.stat-label {
    font-weight: 700;
    font-size: 1.2rem;
    text-transform: uppercase;
}

.huge-stat {
    font-family: var(--font-heading);
    font-size: 15rem;
    line-height: 0.8;
    color: #050510;
}

.huge-stat-label {
    font-weight: 700;
    font-size: 1.2rem;
    text-transform: uppercase;
    padding-right: 50px;
}

.btn-text {
    background: #f0f0f0;
    padding: 10px 20px;
    border-radius: 4px;
    font-weight: bold;
}

.section-title-small {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    line-height: 1.1;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.text-accent-secondary {
    color: var(--accent-secondary);
    text-shadow: 2px 2px 0px rgba(0, 0, 0, 0.1);
}

.text-accent-primary {
    color: var(--accent-primary);
    text-shadow: 2px 2px 0px rgba(0, 0, 0, 0.1);
}

/* Services Section (Dark) */
.dark-theme {
    background-color: var(--bg-color);
    color: white;
    overflow: hidden;
}

.huge-bg-text {
    position: absolute;
    top: -50px;
    left: -50px;
    font-family: var(--font-heading);
    font-size: 25rem;
    color: rgba(255, 255, 255, 0.03);
    z-index: 0;
    line-height: 1;
    pointer-events: none;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    line-height: 1.1;
    text-transform: uppercase;
}

.section-desc {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 20px;
}

.light-theme .section-desc {
    color: rgba(0, 0, 0, 0.7);
}

.divider {
    border-bottom: 2px solid #000;
    display: inline-block;
    padding-bottom: 5px;
    margin: 20px 0;
    font-family: var(--font-heading);
}

.grid-2-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.service-card {
    text-align: center;
    position: relative;
}

.service-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    color: var(--accent-primary);
    /* Placeholder for pixel icon */
}

.service-card h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    line-height: 1.2;
    margin-bottom: 5px;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

.service-card p {
    font-size: 0.9rem;
    opacity: 0.8;
    line-height: 1.4;
}

/* Footer */
.footer {
    background-color: var(--bg-color);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
}

.footer-logo {
    display: flex;
    align-items: center;
}

.ml-10 {
    margin-left: 10px;
}

.font-bold {
    font-weight: bold;
}

.copyright {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.8rem;
    line-height: 1.5;
}

/* Glitch Effect */
@keyframes glitch-anim-1 {
    0% {
        clip: rect(20px, 9999px, 15px, 0);
        transform: translate(-2px) skew(1deg);
    }

    20% {
        clip: rect(50px, 9999px, 60px, 0);
        transform: translate(1px) skew(0deg);
    }

    40% {
        clip: rect(10px, 9999px, 80px, 0);
        transform: translate(-1px) skew(-2deg);
    }

    60% {
        clip: rect(30px, 9999px, 5px, 0);
        transform: translate(2px) skew(1deg);
    }

    80% {
        clip: rect(60px, 9999px, 40px, 0);
        transform: translate(0) skew(0deg);
    }

    100% {
        clip: rect(40px, 9999px, 70px, 0);
        transform: translate(-2px) skew(2deg);
    }
}

.hero-title:hover {
    animation: glitch-anim-1 0.3s infinite linear alternate-reverse;
}

.btn-primary.small {
    padding: 5px 15px;
    font-size: 0.7rem;
}

/* Button Caption */
.btn-caption {
    font-size: 0.8rem;
    margin-top: 15px;
    opacity: 0.7;
    font-weight: 500;
}

/* Reveal Animations */
.reveal-init {
    opacity: 0;
    transform: translateY(30px) scale(0.98);
    filter: blur(5px);
    transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
    clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
    /* Horizontal wipe */
}

.revealed {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}

/* Specific reveal deltas */
.stat-item.revealed {
    transition-delay: 0.1s;
}

.service-card.revealed {
    transition-delay: 0.2s;
}

.platform-card.revealed {
    transition-delay: 0.15s;
}

/* Scroll-Glitch Effect */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%),
        linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
    background-size: 100% 4px, 3px 100%;
    pointer-events: none;
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s;
}

body.is-scrolling::before {
    opacity: 0.15;
    animation: scanline 0.2s infinite;
}

@keyframes scanline {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(4px);
    }
}

/* Header transition refinement */
.header {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), background 0.3s, box-shadow 0.3s;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }

    .hero-title {
        font-size: 4rem;
    }

    .agency-script {
        font-size: 3rem;
        bottom: 25%;
        right: 5%;
    }

    .hero-title .line-2 {
        margin-left: 50px;
    }

    .stats .flex,
    .services .flex,
    .footer .flex,
    .platforms-grid {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .stats-right,
    .stats-left,
    .width-40,
    .width-50 {
        width: 100%;
        margin-bottom: 40px;
    }

    .huge-stat {
        font-size: 8rem;
    }

    .grid-2-cols {
        grid-template-columns: 1fr;
    }

    .nav {
        display: none;
        /* simple hide for now */
    }
}

/* Platforms Section */
.border-top-glow {
    border-top: 1px solid rgba(255, 84, 0, 0.3);
    box-shadow: 0 -10px 30px rgba(255, 84, 0, 0.05);
}

.center-desc {
    max-width: 700px;
    margin: 0 auto;
}

/* Platform Cards Neon Style */
.platform-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 160px;
    /* Slightly wider */
    height: 160px;
    /* Taller to fit spacing */
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    backdrop-filter: blur(5px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

/* Stagger animations */
.platform-card:nth-child(2) {
    animation-delay: 1s;
}

.platform-card:nth-child(3) {
    animation-delay: 2s;
}

.platform-card:nth-child(4) {
    animation-delay: 3s;
}

.platform-card:hover {
    transform: translateY(-15px) scale(1.05) !important;
    /* Override float */
    background: rgba(255, 255, 255, 0.08);
}

/* Brand Colors */
.card-youtube:hover {
    border-color: #ff0000;
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.4), inset 0 0 20px rgba(255, 0, 0, 0.1);
}

.card-youtube:hover .platform-icon {
    filter: drop-shadow(0 0 15px #ff0000);
}

.card-twitch:hover {
    border-color: #9146ff;
    box-shadow: 0 0 20px rgba(145, 70, 255, 0.4), inset 0 0 20px rgba(145, 70, 255, 0.1);
}

.card-twitch:hover .platform-icon {
    filter: drop-shadow(0 0 15px #9146ff);
}

.card-tiktok:hover {
    border-color: #fe2c55;
    box-shadow: 0 0 20px rgba(254, 44, 85, 0.4), inset 0 0 20px rgba(254, 44, 85, 0.1);
}

.card-tiktok:hover .platform-icon {
    filter: drop-shadow(0 0 15px #fe2c55);
}

.card-telegram:hover {
    border-color: #0088cc;
    box-shadow: 0 0 20px rgba(0, 136, 204, 0.4), inset 0 0 20px rgba(0, 136, 204, 0.1);
}

.card-telegram:hover .platform-icon {
    filter: drop-shadow(0 0 15px #0088cc);
}

.platform-icon {
    color: var(--accent-secondary);
    transition: all 0.3s;
    filter: drop-shadow(0 0 5px rgba(0, 240, 255, 0.5));
}

.platform-card:hover .platform-icon {
    color: white;
    transform: scale(1.1);
}

.platform-name {
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s;
}

.platform-card:hover .platform-name {
    color: white;
    text-shadow: 0 0 5px white;
}

/* Spacing Utilities */
.mb-20 {
    margin-bottom: 20px;
}

.mb-80 {
    margin-bottom: 80px;
}

.gap-50 {
    gap: 50px;
}

/* Lang Switcher */
.lang-switch {
    position: relative;
    cursor: pointer;
    padding: 5px 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    min-width: 100px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
}

.lang-switch:hover {
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.1);
}

.lang-dropdown {
    position: absolute;
    top: 100%;
    left: -1px;
    /* Align with border */
    width: calc(100% + 2px);
    /* Compensation for borders */
    background: #020b1c;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-top: none;
    z-index: 100;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
    border-radius: 0 0 4px 4px;
}

.hide {
    display: none;
}

.lang-dropdown.show {
    display: block;
}

.lang-option {
    padding: 10px 15px;
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.2s;
}

.lang-option:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--accent-secondary);
}

/* Header Socials */
.socials a,
.socials a:visited {
    color: rgba(255, 255, 255, 0.7) !important;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9rem;
    padding: 5px;
    transition: all 0.3s;
}

.socials a:hover {
    color: var(--accent-primary) !important;
    text-shadow: 0 0 10px var(--accent-primary);
}