:root {
    --primary-blue: #0080ff;
    --accent-purple: #a855f7;
    --neon-green: #39FF14;
    --true-black: #000000;
    --white: #ffffff;
    --gray: #666666;
    --dark-gray: #050505;
    --font-heading: 'Syne', sans-serif;
    --font-body: 'Space Grotesk', sans-serif;
}

/* CRT Scanline Overlay */
.crt-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.15),
        rgba(0, 0, 0, 0.15) 1px,
        transparent 1px,
        transparent 2px
    );
    pointer-events: none;
    background-size: 100% 2px;
}

/* Global Aesthetic Triggers */
.noise-bg::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 1001;
    opacity: 0.05;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* Hero Stabilization */
.hero-container {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    background: #000;
}

#hero-player {
    position: absolute;
    width: 100vw;
    height: 56.25vw;
    min-height: 100vh;
    min-width: 177.77vh;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(1.1);
    pointer-events: none;
    opacity: 0.35;
    z-index: 1;
}

.hero-video-wrapper {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.hero-gradient-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.8) 0%, transparent 40%, transparent 60%, rgba(0,0,0,0.8) 100%);
    z-index: 2;
}

.vignette {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, transparent 10%, var(--true-black) 90%);
    z-index: 2;
}

.hero-ghost-layer {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
    pointer-events: none;
}

.ghost-text {
    font-family: var(--font-heading);
    font-size: clamp(8rem, 28vw, 32rem);
    font-weight: 900;
    color: transparent;
    -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.06);
    letter-spacing: -0.05em;
    mix-blend-mode: screen;
}

.hero-content-primary {
    position: relative;
    z-index: 10;
}

.hero-main-title {
    font-family: var(--font-heading);
    font-size: clamp(4rem, 18vw, 14rem);
    line-height: 0.8;
    font-weight: 800;
    letter-spacing: -0.04em;
    color: #fff;
}

.text-blue.blend-screen {
    color: var(--primary-blue);
    mix-blend-mode: screen;
}

.hero-eyebrow {
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 1.2em;
    color: var(--accent-purple);
    display: block;
    margin-bottom: 30px;
    text-shadow: 0 0 10px rgba(168, 85, 247, 0.5);
}

.hero-subtitle {
    font-size: 0.9rem;
    letter-spacing: 0.6em;
    color: var(--gray);
    margin: 45px 0;
    font-weight: 700;
    text-transform: uppercase;
}

/* Section Centering and Styling */
.section-intro {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
}

.section-heading {
    font-family: var(--font-heading);
    font-weight: 800;
    letter-spacing: 0.15em;
    font-size: clamp(2.2rem, 5vw, 4rem);
    text-transform: uppercase;
    color: var(--white);
    text-shadow: 2px 2px 0px rgba(168, 85, 247, 0.3);
}

.section-subheading {
    color: #666;
    font-weight: 800;
    letter-spacing: 0.8em;
    padding-left: 0.8em;
    font-size: 0.7rem;
    text-transform: uppercase;
    position: relative;
    display: inline-block;
    margin-top: 25px;
}

.section-subheading::before {
    content: "";
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 1px;
    background: #333;
}

/* Centered Header Rows */
.section-header-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 50px;
    gap: 15px;
}

.link-vault {
    font-family: var(--font-heading);
    font-weight: 800;
    text-transform: uppercase;
    color: #0080ff;
    letter-spacing: 0.3em;
    font-size: 0.55rem;
    text-decoration: none;
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    display: inline-block;
    width: fit-content;
}

.link-vault:hover {
    color: var(--accent-purple);
    text-shadow: 0 0 12px rgba(168, 85, 247, 0.8);
    transform: translateY(-2px);
}

/* Grid Systems */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    align-items: center;
    text-align: center;
}

.stat-num {
    font-family: var(--font-heading);
    font-size: clamp(2.2rem, 5vw, 4.5rem);
    font-weight: 800;
    line-height: 1;
    display: block;
    color: white;
    text-shadow: 2px 0 red, -1px 0 blue;
}

.stat-tag { font-size: 0.55rem; font-weight: 800; letter-spacing: 0.5em; color: var(--gray); margin-top: 15px; display: block; }

.grid-4-interactive {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.portfolio-grid-layout {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

/* Refined Drop Card Styling */
.drop-card {
    position: relative;
    border-radius: 40px;
    overflow: hidden;
    aspect-ratio: 1/1;
    background: #000;
    border: 1px solid rgba(255, 255, 255, 0.05);
    cursor: pointer;
    pointer-events: auto;
    transition: all 0.6s cubic-bezier(0.19, 1, 0.22, 1);
}

.drop-card:hover {
    transform: scale(1.03);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
    z-index: 5;
}

.drop-card iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 178%;
    height: 100%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    opacity: 0.45;
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.19, 1, 0.22, 1);
    z-index: 1;
}

.drop-card:hover iframe {
    opacity: 0.75;
    transform: translate(-50%, -50%) scale(1.05);
}

.drop-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.3) 50%, transparent 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    pointer-events: none;
    padding: 30px;
}

.drop-card:hover .drop-overlay {
    background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.5) 100%);
}

/* Interactive Capabilities Grid */
.cap-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: minmax(280px, auto);
    gap: 24px;
    margin-top: 60px;
}

.cap-card {
    position: relative;
    background: rgba(15, 15, 15, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    padding: 50px 30px;
    overflow: hidden;
    transition: all 0.6s cubic-bezier(0.19, 1, 0.22, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.cap-card-bg {
    position: absolute;
    inset: 0;
    background-image: var(--cap-bg);
    background-size: cover;
    background-position: center;
    filter: grayscale(1);
    opacity: 0.15;
    transition: all 0.8s cubic-bezier(0.19, 1, 0.22, 1);
    z-index: 0;
}

.cap-card-content {
    position: relative;
    z-index: 2;
}

.cap-icon {
    font-size: 2.5rem;
    margin-bottom: 25px;
    display: block;
    filter: drop-shadow(0 0 5px #a855f7);
}

.cap-card h3 {
    font-family: var(--font-heading);
    font-weight: 800;
    letter-spacing: 2px;
    font-size: 1rem;
    color: var(--white);
    margin-bottom: 15px;
    text-transform: uppercase;
}

.cap-card p {
    font-family: var(--font-body);
    font-size: 0.8rem;
    color: #999;
    line-height: 1.6;
}

.cap-card:hover {
    border-color: #a855f7;
    transform: translateY(-8px);
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.3);
}

.cap-card:hover .cap-card-bg {
    filter: grayscale(0);
    opacity: 0.4;
    transform: scale(1.05);
}

/* Contact & Form Section Refinement */
.contact-section {
    position: relative;
    background: #030303;
}

.contact-wrapper {
    position: relative;
    background: rgba(10, 10, 10, 0.6);
    backdrop-filter: blur(40px);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 40px;
    padding: 80px 6vw;
    overflow: hidden;
}

.form-watermark-bg {
    position: absolute;
    right: -100px;
    bottom: -50px;
    width: 600px;
    opacity: 0.03;
    pointer-events: none;
    z-index: 0;
}

.contact-header {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    z-index: 1;
}

.contact-sub {
    font-size: 0.6rem;
    font-weight: 800;
    letter-spacing: 0.8em;
    color: var(--gray);
    text-transform: uppercase;
    margin-top: 15px;
}

.sleek-form {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
}

.form-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.form-group label {
    font-size: 0.55rem;
    font-weight: 900;
    letter-spacing: 0.3em;
    color: var(--primary-blue);
    text-transform: uppercase;
}

.form-group input, 
.form-group select, 
.form-group textarea {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 16px 20px;
    color: white;
    font-family: var(--font-body);
    font-size: 0.9rem;
    transition: all 0.3s ease;
    outline: none;
}

.form-group input::placeholder, 
.form-group textarea::placeholder {
    color: #444;
}

.form-group input:focus, 
.form-group select:focus, 
.form-group textarea:focus {
    border-color: var(--accent-purple);
    background: rgba(168, 85, 247, 0.05);
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.1);
}

.form-full-width {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.massive-btn {
    width: 100%;
    max-width: 400px;
    padding: 22px 0;
    font-size: 0.8rem;
    letter-spacing: 0.4em;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.massive-btn:hover {
    background: var(--neon-green) !important;
    color: black !important;
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 20px 40px rgba(57, 255, 20, 0.3);
}

.mt-12 { margin-top: 48px; }
.flex-center { display: flex; justify-content: center; }

/* Modal and Refined Video Wrapper */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99999 !important;
    background: rgba(0,0,0,0.95);
    backdrop-filter: blur(25px);
    align-items: center;
    justify-content: center;
}

.modal-content {
    width: 90%;
    max-width: 1200px;
    position: relative;
}

.modal-video-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border: 2px solid #39FF14;
    box-shadow: 0 0 60px rgba(57, 255, 20, 0.2);
    background: #000;
}

.modal-video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    border: none;
}

.mask-top, .mask-bottom {
    position: absolute;
    left: 0;
    width: 100%;
    height: 50px;
    z-index: 10;
    background: black;
    display: flex;
    align-items: center;
    padding: 0 20px;
    color: #39FF14;
    font-family: var(--font-heading);
    font-size: 0.65rem;
    font-weight: 900;
    letter-spacing: 2px;
    pointer-events: none;
    text-transform: uppercase;
}

.mask-top { top: 0; }
.mask-bottom { bottom: 0; justify-content: flex-end; }

.close-modal {
    position: absolute;
    top: -45px;
    right: 0;
    color: white;
    font-size: 2.5rem;
    cursor: pointer;
    z-index: 100;
    line-height: 1;
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: 0.8s cubic-bezier(0.19, 1, 0.22, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Mobile Fixes */
@media (max-width: 1024px) {
    .cap-cards { grid-template-columns: repeat(2, 1fr); }
    .portfolio-grid-layout { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .form-grid-2 { grid-template-columns: 1fr; }
    
    .section-subheading {
        letter-spacing: 0.4em;
        padding-left: 0.4em;
    }

    .mask-top, .mask-bottom {
        height: 35px;
        font-size: 0.5rem;
        padding: 0 10px;
    }

    .cap-cards {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .cap-card {
        min-height: 150px;
        padding: 30px 20px;
    }

    .stats-grid, 
    .grid-4-interactive, 
    .portfolio-grid-layout {
        grid-template-columns: 1fr;
    }

    .contact-wrapper {
        padding: 60px 25px;
    }

    .hero-container { height: 85vh; }
}