/* Stratonally Design System - Neon Velocity Style Guide */

:root {
    /* Core Palette - Neon Velocity Spec */
    --accent: #BFFF00;
    --bg: #050505;
    --bg-secondary: #080808;
    --bg-tertiary: #030303;
    --text-primary: #FFFFFF;
    --text-secondary: rgba(255, 255, 255, 0.4);
    --border-primary: rgba(255, 255, 255, 0.1);
    --border-secondary: rgba(255, 255, 255, 0.05);
    --bezier: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ============================================ */
/* KEYFRAME ANIMATIONS */
/* ============================================ */

@keyframes float {
    0%, 100% { transform: translate(0, 0); }
    33% { transform: translate(2%, 4%); }
    66% { transform: translate(-3%, 2%); }
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes heroReveal {
    from { opacity: 0; transform: translateY(60px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes shimmer {
    from { transform: translateX(-100%); }
    to { transform: translateX(100%); }
}

@keyframes drawCheck {
    0% { stroke-dashoffset: 100; }
    100% { stroke-dashoffset: 0; }
}

@keyframes pulseGlow {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.1); }
}

@keyframes countdownPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

@keyframes cubeRotate {
    0% { transform: rotateX(0deg) rotateY(0deg) rotateZ(0deg); }
    100% { transform: rotateX(360deg) rotateY(360deg) rotateZ(360deg); }
}

@keyframes shimmerText {
    0% { background-position: -200% center; }
    100% { background-position: 200% center; }
}

@keyframes gridTravel {
    0% { background-position: 0 0; }
    100% { background-position: 0 50px; }
}

@keyframes morphBlob {
    0%, 100% {
        border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
        transform: scale(1) rotate(0deg);
    }
    33% {
        border-radius: 70% 30% 50% 50% / 30% 30% 70% 70%;
        transform: scale(1.1) rotate(120deg);
    }
    66% {
        border-radius: 100% 60% 60% 100% / 100% 100% 60% 60%;
        transform: scale(0.9) rotate(240deg);
    }
}

@keyframes strokeDraw {
    to { stroke-dashoffset: 0; }
}

/* ============================================ */
/* BASE STYLES */
/* ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-weight: 300;
    background-color: var(--bg);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.75;
    margin: 0;
    padding: 0;
}

html {
    margin: 0;
    padding: 0;
}

/* ============================================ */
/* TYPOGRAPHY - NEON VELOCITY SPEC */
/* ============================================ */

/* Headlines - Plus Jakarta Sans 800 */
.headline-fluid {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: clamp(2rem, 8vw, 5.5rem);
    line-height: 1;
    letter-spacing: -0.05em;
    font-weight: 800;
    text-transform: uppercase;
    transition: letter-spacing 0.8s var(--bezier);
    cursor: default;
}

.headline-fluid:hover {
    letter-spacing: -0.02em;
}

.headline-brutalist {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: clamp(2rem, 6vw, 5rem);
    line-height: 0.92;
    letter-spacing: -0.05em;
    font-weight: 800;
    text-transform: uppercase;
}

.headline-large {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: clamp(3rem, 8vw, 6rem);
    line-height: 0.9;
    letter-spacing: -0.05em;
    font-weight: 800;
    text-transform: uppercase;
}

/* Technical Meta - Geist Mono */
.font-mono {
    font-family: 'Geist Mono', monospace;
    font-weight: 400;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    font-size: 10px;
}

.font-mono-label {
    font-family: 'Geist Mono', monospace;
    font-weight: 600;
    letter-spacing: 0.5em;
    text-transform: uppercase;
    font-size: 10px;
}

.font-mono-wide {
    font-family: 'Geist Mono', monospace;
    font-weight: 400;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    font-size: 12px;
}

/* Body Text - Inter */
p {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    line-height: 1.75;
}

.body-light {
    font-weight: 300;
}

.body-regular {
    font-weight: 400;
}

/* ============================================ */
/* GLASS EFFECTS - NEON VELOCITY SPEC */
/* ============================================ */

.glass-panel {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-primary);
}

/* 3D Glass Effect for Hero */
.glass-3d {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-primary);
    perspective: 1000px;
    transform-style: preserve-3d;
}

.glass-3d-tilt {
    transform: perspective(1000px) rotateX(15deg);
    transition: transform 0.8s var(--bezier);
}

.glass-3d-tilt:hover {
    transform: perspective(1000px) rotateX(0deg);
}

/* ============================================ */
/* BRUTALIST COMPONENTS */
/* ============================================ */

/* Brutalist Hero Box - Sharp corners, heavy borders */
.brutalist-hero-box {
    border: 12px solid #ffffff;
    border-radius: 0 !important;
    background: rgba(5, 5, 5, 0.6);
}

.brutalist-border {
    border: 8px solid #ffffff;
    border-radius: 0;
}

/* ============================================ */
/* LUMINOSITY CARD - NEON VELOCITY SPEC */
/* ============================================ */

.luminosity-card {
    min-height: 450px;
    border-radius: 2rem;
    transition: all 0.5s ease;
    background: radial-gradient(circle at top left, rgba(255, 255, 255, 0.03), transparent);
    border: 1px solid var(--border-secondary);
    transform-style: preserve-3d;
    perspective: 1000px;
    will-change: transform, border-color, background;
    position: relative;
}

.luminosity-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 2rem;
    background: radial-gradient(circle at top left, rgba(191, 255, 0, 0.05), transparent);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

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

.luminosity-card:hover {
    border-color: rgba(191, 255, 0, 0.3);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 30px rgba(191, 255, 0, 0.15);
    transform: translateY(-12px) rotateX(3deg) rotateY(1deg);
}

/* Compact version for smaller cards */
.luminosity-card-compact {
    min-height: 300px;
}

/* ============================================ */
/* LASER BUTTON - NEON VELOCITY SPEC */
/* ============================================ */

.laser-btn {
    background: var(--accent);
    color: #000000;
    border-radius: 9999px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(191, 255, 0, 0.3);
    transition: all 0.4s var(--bezier);
    will-change: transform;
    font-weight: 600;
    border: none;
    cursor: pointer;
}

.laser-btn::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -150%;
    width: 100%;
    height: 200%;
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.4), transparent);
    transform: rotate(45deg);
    transition: 0.6s var(--bezier);
}

.laser-btn:hover::after {
    left: 150%;
}

.laser-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 35px rgba(191, 255, 0, 0.6);
}

.laser-btn:active {
    transform: translateY(0);
    box-shadow: 0 0 25px rgba(191, 255, 0, 0.5);
}

/* ============================================ */
/* NOISE OVERLAY - NEON VELOCITY SPEC */
/* ============================================ */

.noise-overlay {
    position: fixed;
    inset: 0;
    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");
    opacity: 0.03;
    pointer-events: none;
    z-index: 9999;
}

/* ============================================ */
/* REFRACTION GLOW - NEON VELOCITY SPEC */
/* ============================================ */

.glow-accent {
    position: absolute;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, rgba(191, 255, 0, 0.15) 0%, transparent 70%);
    filter: blur(140px);
    pointer-events: none;
    z-index: 0;
    animation: float 20s infinite ease-in-out alternate;
}

.glow-accent-lg {
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(191, 255, 0, 0.18) 0%, transparent 65%);
    filter: blur(160px);
}

.glow-accent-sm {
    width: 40vw;
    height: 40vw;
    filter: blur(100px);
}

/* ============================================ */
/* SCROLL REVEAL ANIMATION */
/* ============================================ */

.scroll-reveal {
    opacity: 0;
    transform: translateY(40px) scale(0.98);
    transition: opacity 1s var(--bezier), transform 1s var(--bezier);
    will-change: transform, opacity;
}

.scroll-reveal.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Stagger Delays */
.stagger-1 { transition-delay: 100ms; }
.stagger-2 { transition-delay: 200ms; }
.stagger-3 { transition-delay: 300ms; }
.stagger-4 { transition-delay: 400ms; }
.stagger-5 { transition-delay: 500ms; }
.stagger-6 { transition-delay: 600ms; }

/* ============================================ */
/* TABULAR NUMBERS - NEON VELOCITY SPEC */
/* ============================================ */

.tab-nums {
    font-variant-numeric: tabular-nums;
}

.countdown-timer {
    font-variant-numeric: tabular-nums;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 800;
    animation: countdownPulse 2s infinite;
}

/* ============================================ */
/* FORM STYLES */
/* ============================================ */

input, select, textarea {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid var(--border-primary) !important;
    color: var(--text-primary) !important;
    transition: all 0.3s var(--bezier) !important;
}

input:focus, select:focus, textarea:focus {
    outline: none !important;
    border-color: var(--accent) !important;
    box-shadow: 0 0 15px rgba(191, 255, 0, 0.15) !important;
    background: rgba(255, 255, 255, 0.08) !important;
}

input::placeholder, textarea::placeholder {
    color: var(--text-secondary);
}

/* ============================================ */
/* FILTER BUTTONS */
/* ============================================ */

.filter-btn {
    transition: all 0.3s var(--bezier);
    border: 1px solid var(--border-primary);
    background: transparent;
    color: var(--text-primary);
}

.filter-btn.active {
    background: var(--accent);
    color: #000000;
    border-color: var(--accent);
}

.filter-btn:hover:not(.active) {
    border-color: rgba(191, 255, 0, 0.3);
    background: rgba(191, 255, 0, 0.05);
}

/* ============================================ */
/* SERVICE GRID */
/* ============================================ */

.service-grid-item {
    transition: all 0.5s var(--bezier);
}

.service-grid-item.hidden {
    display: none;
    opacity: 0;
    transform: scale(0.95);
}

/* ============================================ */
/* BREADCRUMB & NAVIGATION */
/* ============================================ */

.breadcrumb-link {
    transition: color 0.3s var(--bezier);
}

.breadcrumb-link:hover {
    color: var(--accent);
}

/* ============================================ */
/* CHECKMARK SVG ANIMATION */
/* ============================================ */

.checkmark-svg {
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
    animation: drawCheck 1.2s var(--bezier) forwards;
}

/* ============================================ */
/* MAGNETIC BUTTON WRAPPER */
/* ============================================ */

.magnetic-wrap {
    display: inline-block;
    position: relative;
}

/* ============================================ */
/* AVATAR STACK - NEON VELOCITY SPEC */
/* ============================================ */

.avatar-stack {
    display: flex;
    margin-left: -12px;
}

.avatar-stack img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid var(--accent);
    box-shadow: 0 0 15px rgba(191, 255, 0, 0.4);
    margin-left: -12px;
    transition: transform 0.3s var(--bezier);
}

.avatar-stack img:hover {
    transform: translateY(-4px) scale(1.1);
    z-index: 10;
}

/* ============================================ */
/* BENTO GRID LAYOUT - NEON VELOCITY SPEC */
/* ============================================ */

.bento-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.bento-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 3rem;
}

.bento-card-index {
    font-family: 'Geist Mono', monospace;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.5em;
    color: var(--accent);
    text-transform: uppercase;
}

.bento-card-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    text-transform: uppercase;
    margin: 2rem 0;
}

.bento-card-description {
    font-family: 'Inter', sans-serif;
    font-weight: 300;
    line-height: 1.75;
    color: var(--text-secondary);
}

/* ============================================ */
/* MOBILE BOTTOM NAVIGATION - NEON VELOCITY SPEC */
/* ============================================ */

.mobile-nav-pill {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-primary);
    border-radius: 9999px;
    padding: 12px 24px;
    display: flex;
    gap: 32px;
    z-index: 1000;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
}

.mobile-nav-pill a {
    min-width: 48px;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: color 0.3s var(--bezier), transform 0.3s var(--bezier);
}

.mobile-nav-pill a:hover,
.mobile-nav-pill a.active {
    color: var(--accent);
    transform: translateY(-2px);
}

/* ============================================ */
/* RESPONSIVE TYPOGRAPHY */
/* ============================================ */

@media (max-width: 768px) {
    .headline-fluid {
        letter-spacing: -0.03em;
    }

    .font-mono {
        letter-spacing: 0.2em;
    }

    .luminosity-card {
        min-height: 350px;
    }
}

/* ============================================ */
/* UTILITY CLASSES */
/* ============================================ */

.container-wide {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 2rem;
}

.text-accent {
    color: var(--accent);
}

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

.bg-accent {
    background-color: var(--accent);
}

.border-accent {
    border-color: var(--accent);
}

/* Neon glow effect */
.neon-glow {
    text-shadow: 0 0 10px rgba(191, 255, 0, 0.5),
                 0 0 20px rgba(191, 255, 0, 0.3),
                 0 0 30px rgba(191, 255, 0, 0.1);
}

.neon-border {
    border: 1px solid var(--accent);
    box-shadow: 0 0 10px rgba(191, 255, 0, 0.3),
                inset 0 0 10px rgba(191, 255, 0, 0.1);
}

/* ============================================ */
/* 3D HERO EFFECTS */
/* ============================================ */

.hero-3d-wrapper {
    perspective: 2000px;
    transform-style: preserve-3d;
}

.scene-3d {
    position: absolute;
    inset: 0;
    transform-style: preserve-3d;
    pointer-events: none;
    z-index: 0;
}

.hero-grid-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200vw;
    height: 200vh;
    background-image:
        linear-gradient(to right, rgba(191, 255, 0, 0.1) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(191, 255, 0, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    transform: translate(-50%, -50%) rotateX(75deg) translateZ(-400px);
    animation: gridTravel 10s linear infinite;
    mask-image: radial-gradient(circle, black, transparent 80%);
}

.cube-container {
    position: absolute;
    transform-style: preserve-3d;
    animation: cubeRotate 20s linear infinite;
}

.cube {
    width: 40px;
    height: 40px;
    position: relative;
    transform-style: preserve-3d;
}

.cube-face {
    position: absolute;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(191, 255, 0, 0.4);
    background: rgba(191, 255, 0, 0.05);
    box-shadow: 0 0 10px rgba(191, 255, 0, 0.2);
}

.face-front  { transform: rotateY(0deg) translateZ(20px); }
.face-back   { transform: rotateY(180deg) translateZ(20px); }
.face-right  { transform: rotateY(90deg) translateZ(20px); }
.face-left   { transform: rotateY(-90deg) translateZ(20px); }
.face-top    { transform: rotateX(90deg) translateZ(20px); }
.face-bottom { transform: rotateX(-90deg) translateZ(20px); }

.morphing-blob {
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(191, 255, 0, 0.15) 0%, transparent 70%);
    animation: morphBlob 15s ease-in-out infinite;
    filter: blur(40px);
    z-index: -1;
}

.shimmer-text {
    background: linear-gradient(90deg, #ffffff 0%, rgba(255,255,255,0.4) 25%, #ffffff 50%, rgba(255,255,255,0.4) 75%, #ffffff 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmerText 4s linear infinite;
}

.parallax-text {
    transform: rotateX(var(--ty, 0deg)) rotateY(var(--tx, 0deg));
    transition: transform 0.1s var(--bezier);
    transform-style: preserve-3d;
}

.layer-depth-1 { transform: translateZ(40px); }
.layer-depth-2 { transform: translateZ(80px); }
.layer-depth-3 { transform: translateZ(120px); }

/* ============================================ */
/* PORTFOLIO VERTICAL STICKY SLIDES */
/* ============================================ */

.portfolio-section {
    position: relative;
    background: #000;
}

.portfolio-slides-container {
    position: relative;
}

.portfolio-slide {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, opacity 0.3s ease;
    will-change: transform, opacity;
    padding: 2rem;
}

.portfolio-slide > div {
    width: 100%;
    max-width: 1100px;
    min-height: 70vh;
    border-radius: 0 !important;
    border: none;
}

/* Alternating slide backgrounds - White and Green */
.portfolio-slide:nth-child(1) > div {
    background: #ffffff;
    color: #000000;
}

.portfolio-slide:nth-child(2) > div {
    background: #BFFF00;
    color: #000000;
}

.portfolio-slide:nth-child(3) > div {
    background: #ffffff;
    color: #000000;
}

.portfolio-slide:nth-child(4) > div {
    background: #BFFF00;
    color: #000000;
}

.portfolio-slide:nth-child(5) > div {
    background: #ffffff;
    color: #000000;
}

.portfolio-slide:nth-child(6) > div {
    background: #BFFF00;
    color: #000000;
}

/* Text colors for alternating slides - all black text on white/green backgrounds */
.portfolio-slide > div {
    color: #000000;
}

.portfolio-slide > div h3,
.portfolio-slide > div p {
    color: #000000;
}

/* Override text opacity classes */
.portfolio-slide > div [class*="text-white"] {
    color: #000000 !important;
}

.portfolio-slide > div [class*="text-white/60"] {
    color: rgba(0, 0, 0, 0.6) !important;
}

/* Icon backgrounds - dark on both colors */
.portfolio-slide > div [class*="bg-[#BFFF00]"] {
    background: rgba(0, 0, 0, 0.1) !important;
}

.portfolio-slide > div [class*="text-[#BFFF00]"],
.portfolio-slide > div [class*="hover:text-[#BFFF00]"] {
    color: #000000 !important;
}

/* Tag styles */
.portfolio-slide > div [class*="bg-[#BFFF00]/10"] {
    background: rgba(0, 0, 0, 0.1) !important;
}

.portfolio-slide > div [class*="border-[#BFFF00]/20"] {
    border-color: rgba(0, 0, 0, 0.2) !important;
}

/* Tech tags */
.portfolio-slide > div [class*="bg-white/5"] {
    background: rgba(0, 0, 0, 0.1) !important;
    color: #000000 !important;
}

/* Link colors */
.portfolio-slide > div a {
    color: #000000 !important;
}

/* Glass panel override for slides */
.portfolio-slide > div.glass-panel {
    background: #ffffff;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

/* Ensure smooth stacking */
.portfolio-slide:nth-child(1) { z-index: 1; }
.portfolio-slide:nth-child(2) { z-index: 2; }
.portfolio-slide:nth-child(3) { z-index: 3; }
.portfolio-slide:nth-child(4) { z-index: 4; }
.portfolio-slide:nth-child(5) { z-index: 5; }
.portfolio-slide:nth-child(6) { z-index: 6; }

/* ============================================ */
/* FOOTER STICKY TO BOTTOM */
/* ============================================ */

#footer-container {
    margin-top: auto;
    line-height: 0;
}

footer {
    margin-top: 0;
    line-height: 1.75;
}
