/*
Theme Name: Nexgrow Agency
Description: Engineered for Dominance. Digital Growth Agency Theme.
Author: Nexgrow
Version: 1.0
*/

:root {
    --bg-color: #000000;
    --text-color: #ffffff;
    --accent-color: #ff0000;
    --accent-dark: #cc0000;
    --accent-hover: #ff3333;
    --gray: #cccccc;
    --dark-gray: #1a1a1a;
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Space Grotesk', sans-serif;
    --easing: cubic-bezier(0.25, 1, 0.5, 1);
    --transition: 0.6s var(--easing);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: none;
}

/* Red Overlay for 50% Red feel */
.red-glow-bg {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80vw;
    height: 80vh;
    background: radial-gradient(circle, rgba(255, 0, 0, 0.15) 0%, transparent 70%);
    pointer-events: none;
    z-index: -1;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #000;
}

::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: 10px;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-body);
    font-size: 16px;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

body.loading {
    overflow: hidden;
}

/* Custom Cursor */
.cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10000;
}

.cursor-dot {
    position: absolute;
    width: 8px;
    height: 8px;
    background: var(--accent-color);
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.cursor-circle {
    position: absolute;
    width: 40px;
    height: 40px;
    border: 1px solid var(--accent-color);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s, background 0.3s;
}

.cursor.hovered .cursor-circle {
    width: 80px;
    height: 80px;
    background: rgba(255, 0, 0, 0.1);
    border-color: transparent;
}

.cursor-text {
    position: absolute;
    transform: translate(-50%, -50%);
    font-size: 10px;
    font-weight: 800;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
    pointer-events: none;
}

/* Loader */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.loader-content {
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: 900;
    letter-spacing: -2px;
    color: var(--accent-color);
}

.loader-line {
    width: 0;
    height: 3px;
    background: #fff;
    margin-top: 20px;
    transition: width 0.5s ease;
}

/* Three.js Canvas */
#webgl-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    pointer-events: none;
}

.grid-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(255, 0, 0, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 0, 0, 0.05) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
    z-index: -1;
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 200;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 201;
}

.logo-text {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.8rem;
    letter-spacing: -1px;
    text-transform: uppercase;
    color: #fff;
}

.logo-text span {
    color: var(--accent-color);
}

.menu-btn {
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 201;
}

.hamburger {
    width: 30px;
    height: 15px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.hamburger span {
    display: block;
    width: 100%;
    height: 2px;
    background: #fff;
    transition: 0.3s;
}

/* Menu Toggle State */
.menu-open .hamburger span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
    background: var(--accent-color);
}

.menu-open .hamburger span:nth-child(2) {
    opacity: 0;
}

.menu-open .hamburger span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
    background: var(--accent-color);
}

/* Menu Overlay */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.98);
    backdrop-filter: blur(20px);
    z-index: 150;
    display: flex;
    justify-content: center;
    align-items: center;
    visibility: hidden;
    opacity: 0;
    transition: 0.5s;
}

.menu-overlay.active {
    visibility: visible;
    opacity: 1;
}

.menu-links {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    text-align: center;
}

.menu-link {
    font-family: var(--font-heading);
    font-size: 5rem;
    font-weight: 900;
    color: #fff;
    text-decoration: none;
    text-transform: uppercase;
    transition: 0.3s;
}

.menu-link:hover {
    color: var(--accent-color);
    letter-spacing: 5px;
}

.menu-footer {
    position: absolute;
    bottom: 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--gray);
    font-size: 0.9rem;
}

.accent {
    color: var(--accent-color);
}

/* Sections */
section {
    position: relative;
    padding: 10rem 10%;
    min-height: 100vh;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    text-transform: uppercase;
    line-height: 0.9;
    letter-spacing: -0.04em;
}

/* Hero Section */
.hero {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding-top: 0;
}

.hero-title {
    font-size: 10vw;
    line-height: 0.85;
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 2rem;
}

.hero-title .outline {
    color: transparent;
    -webkit-text-stroke: 2px #fff;
}

.hero-title .red {
    color: var(--accent-color);
}

.hero-sub {
    font-size: 1.2rem;
    color: var(--gray);
    margin-bottom: 3rem;
    max-width: 500px;
    line-height: 1.6;
}

.hero-cta-container {
    display: flex;
    gap: 2rem;
}

/* Magnetic Button */
.magnetic-btn {
    position: relative;
    padding: 1.5rem 3rem;
    background: #fff;
    color: #000;
    text-decoration: none;
    font-weight: 800;
    text-transform: uppercase;
    border-radius: 100px;
    display: inline-block;
    overflow: hidden;
    transition: transform 0.3s;
}

.magnetic-btn.red-btn {
    background: var(--accent-color);
    color: #fff;
}

.btn-fill {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 150%;
    height: 150%;
    background: #000;
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.5s;
    z-index: 0;
}

.red-btn .btn-fill {
    background: #fff;
}

.magnetic-btn:hover .btn-fill {
    transform: translate(-50%, -50%) scale(1);
}

.magnetic-btn:hover {
    color: #fff;
}

.red-btn:hover {
    color: var(--accent-color);
}

.btn-text {
    position: relative;
    z-index: 1;
}

.scroll-indicator {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    font-size: 0.8rem;
    letter-spacing: 2px;
    opacity: 0.6;
}

.scroll-indicator .line {
    width: 1px;
    height: 60px;
    background: #fff;
    opacity: 1;
    transform: none;
}

/* Interactive ROI Feature */
.roi-section {
    background: #0a0a0a;
    border-top: 1px solid var(--accent-color);
    border-bottom: 1px solid var(--accent-color);
    overflow: hidden;
}

.roi-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.roi-controls {
    background: #111;
    padding: 3rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 0, 0, 0.2);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.roi-controls h3 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--accent-color);
}

.slider-group {
    margin-bottom: 2.5rem;
}

.slider-group label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    color: var(--gray);
}

.slider-group span {
    color: #fff;
}

input[type="range"] {
    width: 100%;
    height: 4px;
    background: #333;
    appearance: none;
    outline: none;
    border-radius: 2px;
}

input[type="range"]::-webkit-slider-thumb {
    appearance: none;
    width: 20px;
    height: 20px;
    background: var(--accent-color);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 10px var(--accent-color);
}

.roi-result {
    text-align: center;
}

.roi-value {
    font-size: 8rem;
    font-weight: 900;
    color: #fff;
    line-height: 1;
    margin-bottom: 1rem;
}

.roi-label {
    font-size: 1.5rem;
    color: var(--accent-color);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 2px;
}

/* Marquee */
.marquee {
    background: var(--accent-color);
    padding: 2rem 0;
    white-space: nowrap;
    overflow: hidden;
    position: relative;
    z-index: 10;
}

.marquee-content {
    display: inline-block;
    animation: marquee 30s linear infinite;
}

.marquee-content span {
    font-size: 4rem;
    font-weight: 900;
    text-transform: uppercase;
    margin: 0 3rem;
    color: #000;
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Buttons */
/* The original magnetic-btn is replaced by the new one above */

/* Brand Statement */
.brand-statement {
    text-align: left;
}

.statement-text {
    font-size: 5vw;
    font-weight: 500;
    max-width: 90%;
}

.highlight-text {
    color: var(--gray);
    transition: color 0.3s;
    position: relative;
    display: inline-block;
}

.highlight-text:hover {
    color: var(--accent-color);
}

.highlight-text::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0%;
    height: 4px;
    background: var(--accent-color);
    transition: width 0.4s var(--easing);
}

.highlight-text:hover::after {
    width: 100%;
}

.subtitle {
    margin-top: 2rem;
    font-size: 1.2rem;
    color: var(--gray);
    max-width: 600px;
    line-height: 1.6;
}

.subtitle strong {
    color: #fff;
    font-weight: 500;
}

/* Features/Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 4rem;
}

.service-card {
    background: #111;
    padding: 3rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: 0.3s;
}

.service-card:hover {
    border-color: var(--accent-color);
    transform: translateY(-10px);
}

.service-card h4 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--accent-color);
}

.service-card p {
    color: var(--gray);
    line-height: 1.6;
}

/* Process */
.process {
    align-items: flex-start;
}

.process-line-container {
    position: absolute;
    left: 100px;
    top: 0;
    bottom: 0;
    width: 2px;
}

.process-line {
    width: 1px;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    position: absolute;
}

.process-progress {
    width: 3px;
    background: var(--accent-color);
    height: 0%;
    position: absolute;
    left: -1px;
    top: 0;
}

.process-steps {
    margin-left: 15vw;
}

.step-card {
    margin-bottom: 15vh;
    opacity: 0.3;
    transform: translateX(50px);
    transition: all 0.5s ease;
}

.step-card.active {
    opacity: 1;
    transform: translateX(0);
}

.step-num {
    font-size: 4rem;
    font-weight: 800;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.2);
    color: transparent;
    margin-bottom: 1rem;
    font-family: var(--font-heading);
}

.step-card.active .step-num {
    color: var(--accent-color);
    -webkit-text-stroke: 0px;
}

.step-card h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.step-card p {
    color: var(--gray);
    max-width: 400px;
    line-height: 1.6;
}

/* Results */
.results-grid {
    display: flex;
    justify-content: space-around;
    text-align: center;
}

.stat-item {
    padding: 2rem;
}

.stat-item .label {
    display: block;
    margin-bottom: 1rem;
    color: var(--gray);
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.stat-item .number {
    display: inline-block;
    font-size: 6rem;
    font-weight: 800;
    font-family: var(--font-heading);
    color: #fff;
    background: linear-gradient(180deg, #fff 20%, #666 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-item .suffix {
    font-size: 2rem;
    color: var(--accent-color);
    font-weight: 800;
    vertical-align: top;
    margin-left: 5px;
}

/* CTA */
.cta {
    text-align: center;
    min-height: 70vh;
}

.cta-subtitle {
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

.cta-title {
    font-size: 5vw;
    margin-bottom: 4rem;
}

.interaction-form {
    max-width: 600px;
    margin: 0 auto;
}

.input-group {
    display: flex;
    border-bottom: 2px solid #333;
    padding-bottom: 10px;
    transition: border-color 0.3s;
}

.input-group:focus-within {
    border-color: var(--accent-color);
}

.input-group input {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    flex: 1;
    outline: none;
    font-family: var(--font-body);
}

.input-group button {
    border: none;
}


/* Footer */
footer {
    padding: 5rem 10%;
    background: #000;
    border-top: 1px solid rgba(255, 0, 0, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-logo {
    font-size: 2rem;
    font-weight: 900;
    text-transform: uppercase;
}

.socials {
    display: flex;
    gap: 2rem;
}

.socials a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: 0.3s;
}

.socials a:hover {
    color: var(--accent-color);
}

.copyright {
    color: #444;
    text-align: center;
    border-top: 1px solid #111;
    padding-top: 2rem;
}

/* Responsiveness */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 15vw;
    }

    .roi-container {
        grid-template-columns: 1fr;
    }

    .services-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    nav {
        padding: 1.5rem 2rem;
    }

    .hero-title {
        font-size: 15vw;
    }

    .statement-text {
        font-size: 2.5rem;
    }

    .service-item {
        flex-direction: column;
        align-items: flex-start;
        padding-bottom: 2rem;
    }

    .service-info {
        margin-left: 0;
        margin-top: 1rem;
        margin-bottom: 1rem;
    }

    .service-item h4 {
        margin-left: 0;
        font-size: 2rem;
    }

    .process-line-container {
        display: none;
    }

    .process-steps {
        margin-left: 0;
    }

    .results-grid {
        flex-direction: column;
        gap: 3rem;
    }

    .large-btn {
        padding: 1rem 2rem;
        font-size: 1.1rem;
    }

    .cursor {
        display: none;
    }

    * {
        cursor: auto;
    }

    .menu-link {
        font-size: 2.5rem;
    }

    .marquee-track span {
        font-size: 1.5rem;
    }
}