:root {
    --bg-color: #050505;
    --surface-color: #111;
    --text-color: #fff;
    --primary-color: #FF0055;
    /* Neon Pink/Red */
    --accent-color: #00E5FF;
    /* Cyan */
    --gradient: linear-gradient(135deg, var(--primary-color), var(--accent-color));

    --font-heading: 'Oswald', sans-serif;
    --font-body: 'Space Grotesk', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: none;
    /* Hide default cursor for custom one */
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-body);
    overflow-x: hidden;
}

#webgl-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -10;
    pointer-events: none;
}

/* Custom Cursor */
.cursor {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--text-color);
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: difference;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s;
}

.cursor-follower {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--text-color);
    position: fixed;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: transform 0.1s;
}

/* Typography & Utilities */
.text-gradient {
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.text-outline {
    -webkit-text-stroke: 1px white;
    color: transparent;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 2rem 0;
    z-index: 100;
    transition: padding 0.3s, background 0.3s;
}

.navbar.scrolled {
    padding: 1rem 0;
    background: rgba(5, 5, 5, 0.6);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 2px;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.btn-primary {
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    transition: all 0.3s;
}

.btn-primary:hover {
    background: var(--text-color);
    color: var(--bg-color);
    border-color: var(--text-color);
}

/* Hero Section */
.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, transparent 0%, var(--bg-color) 90%);
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 8vw, 6rem);
    line-height: 0.9;
    margin-bottom: 1.5rem;
    opacity: 0;
    /* JS Reveal */
    transform: translateY(30px);
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 3rem;
    color: rgba(255, 255, 255, 0.7);
    opacity: 0;
    transform: translateY(20px);
}

.btn-glow {
    display: inline-block;
    padding: 1rem 3rem;
    background: var(--gradient);
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 0 20px rgba(255, 0, 85, 0.4);
    transition: transform 0.3s, box-shadow 0.3s;
    opacity: 0;
    transform: translateY(20px);
}

.btn-glow:hover {
    transform: scale(1.05);
    box-shadow: 0 0 40px rgba(255, 0, 85, 0.6);
}

.reveal-text.active {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    letter-spacing: 2px;
    opacity: 0.7;
}

.scroll-indicator .line {
    width: 1px;
    height: 50px;
    background: linear-gradient(to bottom, #fff, transparent);
    animation: scrollLine 2s infinite;
}

@keyframes scrollLine {
    0% {
        transform: scaleY(0);
        transform-origin: top;
    }

    50% {
        transform: scaleY(1);
        transform-origin: top;
    }

    51% {
        transform: scaleY(1);
        transform-origin: bottom;
    }

    100% {
        transform: scaleY(0);
        transform-origin: bottom;
    }
}

/* Social Feed (TikTok Wall) */
.social-feed-section {
    padding: 8rem 0;
    background: var(--bg-color);
}

.section-title {
    font-family: var(--font-heading);
    font-size: 4rem;
    margin-bottom: 4rem;
    text-align: center;
}

.feed-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.feed-item {
    aspect-ratio: 9/16;
    background: var(--surface-color);
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    transition: transform 0.3s;
    cursor: pointer;
}

.feed-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.feed-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.feed-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
}

.feed-overlay h4 {
    font-size: 1rem;
    margin-bottom: 0.2rem;
}

.feed-overlay p {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
}

/* Services */
.services-section {
    padding: 8rem 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: rgba(255, 255, 255, 0.03);
    padding: 3rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: background 0.3s, border-color 0.3s;
}

.service-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--primary-color);
}

.service-card .icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.service-card h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.service-card p {
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.6;
}

.service-list {
    list-style: none;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.service-list li {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    color: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.service-list li::before {
    content: '⚡';
    font-size: 0.8rem;
    color: var(--primary-color);
}

/* Contact */
.contact-section {
    padding: 8rem 0;
    background: radial-gradient(circle at 100% 100%, #1a000a, var(--bg-color) 60%);
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info h2 {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    line-height: 1;
    margin-bottom: 2rem;
}

.contact-details {
    list-style: none;
    margin-top: 3rem;
}

.contact-details li {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.8);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-form input,
.contact-form textarea {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.2rem;
    color: white;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent-color);
}

.honeypot-group {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    position: absolute;
    left: -5000px;
}

.form-feedback {
    font-size: 0.9rem;
    padding: 0.5rem;
    border-radius: 4px;
    margin-bottom: 1rem;
    display: none;
    transition: all 0.3s ease;
}

.form-feedback.error {
    display: block;
    background: rgba(255, 0, 85, 0.1);
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
}

.form-feedback.success {
    display: block;
    background: rgba(0, 229, 255, 0.1);
    border: 1px solid var(--accent-color);
    color: var(--accent-color);
}

footer {
    padding: 2rem 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    .contact-container {
        grid-template-columns: 1fr;
    }

    .hero-title {
        font-size: 3rem;
    }

    .nav-links {
        display: none;
        /* simple mobile hide for now */
    }
}

/* --- Glitch Effect --- */
@keyframes glitch {
    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);
    }
}

.glitch-hover:hover {
    animation: glitch 0.3s cubic-bezier(.25, .46, .45, .94) both infinite;
    color: var(--primary-color);
}

/* About Section */
.about-section {
    padding: 8rem 0;
    position: relative;
    background: linear-gradient(to bottom, var(--bg-color), #080808);
}

.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-content p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.about-image-wrapper {
    position: relative;
    border-radius: 4px;
    overflow: hidden;
}

.about-image {
    width: 100%;
    border-radius: 4px;
    /* small radius */
    filter: grayscale(20%) contrast(1.1);
    transition: filter 0.5s;
    box-shadow: 20px 20px 0px rgba(255, 0, 85, 0.1);
}

.about-image:hover {
    filter: grayscale(0%) contrast(1.1);
}

@media (max-width: 768px) {
    .about-container {
        grid-template-columns: 1fr;
    }
}

/* Optimization Section */
.optimization-section {
    padding: 8rem 0;
    background: linear-gradient(to top, var(--bg-color), #0a0a0a);
    position: relative;
    overflow: hidden;
}

.optimization-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(rgba(255, 0, 85, 0.05) 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.3;
}

.optimization-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    position: relative;
    z-index: 1;
}

.opt-card {
    background: rgba(255, 255, 255, 0.02);
    padding: 3rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    position: relative;
    transition: all 0.4s ease;
    backdrop-filter: blur(10px);
}

.opt-card:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--accent-color);
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(0, 229, 255, 0.1);
}

.opt-number {
    position: absolute;
    top: 1rem;
    right: 2rem;
    font-family: var(--font-heading);
    font-size: 4rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.03);
    line-height: 1;
}

.opt-icon {
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.opt-card h3 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    margin-bottom: 1rem;
    letter-spacing: 1px;
}

.opt-card p {
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.6;
    font-size: 1rem;
}

/* Custom Service Highlight */
.service-card.highlight-card {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, rgba(255, 0, 85, 0.1), rgba(0, 229, 255, 0.05));
    box-shadow: 0 0 30px rgba(255, 0, 85, 0.15);
}

/* Interactive Studio Section */
.interactive-section {
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}

.interactive-container {
    position: relative;
    width: 100%;
    max-width: 1000px;
    /* Or full width */
    margin: 0 auto;
    aspect-ratio: 16/9;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
    /* cursor: none; Handled by global cursor */
}

.interactive-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.1);
    /* Allow for pan movement */
    transition: transform 0.1s ease-out;
    will-change: transform;
}

.scene-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
    background: radial-gradient(circle at center, transparent 40%, rgba(0, 0, 0, 0.6) 100%);
}

.rec-indicator {
    position: absolute;
    top: 2rem;
    right: 2rem;
    color: red;
    font-weight: bold;
    font-family: monospace;
    font-size: 1.2rem;
    animation: blink 2s infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

.camera-ui {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.crosshair {
    position: absolute;
    width: 20px;
    height: 20px;
    border-color: rgba(255, 255, 255, 0.5);
    border-style: solid;
}

.crosshair.tl {
    top: 2rem;
    left: 2rem;
    border-width: 2px 0 0 2px;
}

.crosshair.tr {
    top: 2rem;
    right: 2rem;
    border-width: 2px 2px 0 0;
}

.crosshair.bl {
    bottom: 2rem;
    left: 2rem;
    border-width: 0 0 2px 2px;
}

.crosshair.br {
    bottom: 2rem;
    right: 2rem;
    border-width: 0 2px 2px 0;
}

.focus-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    border: 1px dashed rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transition: transform 0.2s ease;
}