/* ============================================
   StambaAI — Premium Design System
   ============================================ */

/* Reset */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Backgrounds */
    --bg: #050508;
    --bg-card: #0a0a10;
    --bg-card-hover: #0f0f18;

    /* Accents */
    --accent: #6366f1;
    --accent-mid: #a855f7;
    --accent-pink: #ec4899;
    --accent-cyan: #22d3ee;
    --gradient: linear-gradient(135deg, #6366f1 0%, #a855f7 50%, #ec4899 100%);
    --gradient-reverse: linear-gradient(135deg, #ec4899 0%, #a855f7 50%, #6366f1 100%);
    --gradient-subtle: linear-gradient(135deg, rgba(99,102,241,0.12), rgba(168,85,247,0.08), rgba(236,72,153,0.12));

    /* Text */
    --text-1: #f0f0f5;
    --text-2: #8b8b9e;
    --text-3: #52526b;

    /* Borders */
    --border: rgba(255, 255, 255, 0.06);
    --border-hover: rgba(255, 255, 255, 0.12);

    /* Layout */
    --radius: 16px;
    --radius-lg: 24px;
    --max-width: 1200px;

    /* Shadows */
    --shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 60px rgba(99, 102, 241, 0.15);

    /* Motion */
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-out: cubic-bezier(0, 0, 0.2, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg);
    color: var(--text-1);
    overflow-x: hidden;
    line-height: 1.7;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}


/* ============================================
   Background & Ambient Effects
   ============================================ */

.mouse-spotlight {
    position: fixed;
    width: 800px;
    height: 800px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(99,102,241,0.07) 0%, rgba(168,85,247,0.03) 30%, transparent 70%);
    pointer-events: none;
    z-index: 1;
    transition: opacity 0.3s ease;
    transform: translate(-50%, -50%);
}

.background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.grid-overlay {
    position: fixed;
    inset: 0;
    background-image: radial-gradient(circle, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 32px 32px;
    z-index: 0;
    pointer-events: none;
    mask-image: radial-gradient(ellipse 80% 50% at 50% 0%, black 30%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 80% 50% at 50% 0%, black 30%, transparent 100%);
}

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

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(130px);
    opacity: 0.5;
    animation: float 30s infinite ease-in-out;
}

.orb-1 {
    width: 900px;
    height: 900px;
    background: linear-gradient(135deg, rgba(99,102,241,0.35), rgba(168,85,247,0.2));
    top: -450px;
    left: -350px;
}

.orb-2 {
    width: 700px;
    height: 700px;
    background: linear-gradient(135deg, rgba(236,72,153,0.25), rgba(99,102,241,0.15));
    bottom: -350px;
    right: -250px;
    animation-delay: 10s;
}

.orb-3 {
    width: 500px;
    height: 500px;
    background: linear-gradient(135deg, rgba(168,85,247,0.2), rgba(34,211,238,0.1));
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: 20s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(50px, -30px) scale(1.05); }
    50% { transform: translate(-30px, 50px) scale(0.95); }
    75% { transform: translate(-50px, -20px) scale(1.02); }
}


/* ============================================
   Card System
   ============================================ */

.glass-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
    transition: all 0.4s var(--ease);
    box-shadow: var(--shadow);
}

/* Gradient border on hover (mask technique) */
.glass-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius);
    padding: 1px;
    background: var(--gradient);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
    z-index: 1;
}

/* Subtle shimmer line at top */
.glass-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 15%;
    right: 15%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.06), transparent);
    pointer-events: none;
    z-index: 2;
}

.glass-card:hover {
    border-color: transparent;
    box-shadow: var(--shadow-lg);
    background: var(--bg-card-hover);
    transform: translateY(-4px);
}

.glass-card:hover::before {
    opacity: 0.5;
}

/* 3D Tilt */
.tilt-card {
    transform-style: preserve-3d;
}


/* ============================================
   Navigation
   ============================================ */

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.25rem 0;
    transition: all 0.4s var(--ease);
}

.navbar.scrolled {
    background: rgba(5, 5, 8, 0.92);
    border-bottom: 1px solid var(--border);
    padding: 0.875rem 0;
}

@supports (backdrop-filter: blur(20px)) {
    @media (min-width: 769px) and (hover: hover) {
        .navbar.scrolled {
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            background: rgba(5, 5, 8, 0.85);
        }
    }
}

.nav-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
}

.logo-icon {
    width: 40px;
    height: 40px;
    transition: transform 0.3s var(--ease);
}

.logo:hover .logo-icon {
    transform: rotate(-5deg) scale(1.08);
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-1);
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-links a {
    color: var(--text-2);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient);
    transition: width 0.3s var(--ease);
    border-radius: 1px;
}

.nav-links a:hover {
    color: var(--text-1);
}

.nav-links a:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 6px;
    padding: 0.5rem;
}

.hamburger span {
    width: 24px;
    height: 2px;
    background: var(--text-1);
    border-radius: 2px;
    transition: all 0.3s ease;
}


/* ============================================
   Hero Section
   ============================================ */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8rem 2rem 4rem;
    position: relative;
    z-index: 2;
}

/* CSS animation fallback for hero elements */
.hero .reveal-element {
    animation: heroReveal 1s var(--ease-out) forwards;
}

.hero .reveal-element[data-delay="200"] {
    animation-delay: 0.25s;
}

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

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
    align-items: center;
}

.hero-text {
    background: transparent;
    backdrop-filter: none;
    border: none;
    box-shadow: none;
    padding: 0;
}

.hero-text:hover {
    transform: none;
    box-shadow: none;
    border-color: transparent;
}

.hero-text::before,
.hero-text::after {
    display: none;
}

.eyebrow {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.75rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--text-3);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.eyebrow-line {
    width: 40px;
    height: 1px;
    background: var(--gradient);
}

.hero-title {
    font-size: 5.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -3px;
    line-height: 1.05;
}

.title-line {
    display: block;
}

.gradient-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 200%;
    animation: gradient-shift 4s ease infinite;
}

@keyframes gradient-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    color: var(--text-2);
}

.hero-description {
    font-size: 1.1rem;
    line-height: 1.9;
    margin-bottom: 2.5rem;
    color: var(--text-2);
    max-width: 540px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    padding: 0.875rem 2rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s var(--ease);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn span {
    position: relative;
    z-index: 1;
}

.btn-primary {
    background: var(--gradient);
    color: #fff;
    font-weight: 700;
}

.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-reverse);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: inherit;
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(99, 102, 241, 0.35), 0 0 80px rgba(99, 102, 241, 0.15);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-1);
    border: 1px solid var(--border-hover);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}


/* ============================================
   Hero Visual
   ============================================ */

.hero-visual {
    position: relative;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.visual-card {
    position: absolute;
    width: 100%;
    max-width: 380px;
    padding: 2rem;
}

.visual-card.primary {
    z-index: 2;
    animation: float-card 8s ease-in-out infinite;
}

.visual-card.secondary {
    max-width: 300px;
    right: -30px;
    bottom: 40px;
    z-index: 3;
    animation: float-card 10s ease-in-out infinite;
    animation-delay: 2s;
}

@keyframes float-card {
    0%, 100% { transform: translateY(0) rotateX(0) rotateY(0); }
    50% { transform: translateY(-15px) rotateX(2deg) rotateY(-2deg); }
}

.visual-header {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.visual-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--border);
}

.visual-dot:first-child { background: #ef4444; }
.visual-dot:nth-child(2) { background: #eab308; }
.visual-dot:nth-child(3) { background: #22c55e; }

.visual-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-1);
}

.visual-text {
    font-size: 0.9rem;
    color: var(--text-2);
    line-height: 1.6;
}

.visual-bars {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.bar {
    height: 8px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.06);
    position: relative;
    overflow: hidden;
}

.bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: var(--gradient);
    border-radius: 4px;
    animation: bar-fill 2s ease-out forwards;
}

.bar-1::after { width: 85%; animation-delay: 0.5s; }
.bar-2::after { width: 70%; animation-delay: 0.7s; }
.bar-3::after { width: 95%; animation-delay: 0.9s; }

@keyframes bar-fill {
    from { transform: translateX(-100%); }
    to { transform: translateX(0); }
}

.visual-orbit {
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    border: 1px solid rgba(99, 102, 241, 0.08);
    animation: rotate-orbit 40s linear infinite;
    z-index: 1;
}

.orbit-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(168, 85, 247, 0.06);
}

.ring-1 { inset: 60px; }
.ring-2 { inset: 120px; }

.orbit-node {
    position: absolute;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--gradient);
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.5);
}

.node-1 { top: -5px; left: 50%; transform: translateX(-50%); }
.node-2 { right: -5px; top: 50%; transform: translateY(-50%); }
.node-3 { bottom: -5px; left: 30%; }

@keyframes rotate-orbit {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}


/* ============================================
   Scroll Indicator
   ============================================ */

.scroll-indicator {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.scroll-text {
    font-size: 0.7rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-3);
}

.scroll-line {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, var(--accent), transparent);
    animation: scroll-pulse 2s ease-in-out infinite;
}

@keyframes scroll-pulse {
    0%, 100% { opacity: 1; transform: scaleY(1); }
    50% { opacity: 0.4; transform: scaleY(0.7); }
}


/* ============================================
   Section Styles
   ============================================ */

section {
    padding: 8rem 0;
    position: relative;
    z-index: 2;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
}

/* Section divider — animated gradient line */
.about::before,
.portfolio::before,
.services::before,
.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: min(400px, 60%);
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), var(--accent-pink), transparent);
    opacity: 0.25;
}

.section-header {
    text-align: center;
    margin-bottom: 5rem;
    background: transparent;
    backdrop-filter: none;
    border: none;
    box-shadow: none;
    padding: 0;
}

.section-header:hover {
    transform: none;
    box-shadow: none;
    border-color: transparent;
}

.section-header::before,
.section-header::after {
    display: none;
}

.section-eyebrow {
    font-size: 0.75rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    font-weight: 600;
    display: inline-block;
}

.section-header h2 {
    font-size: 3.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -1.5px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-3);
    font-weight: 400;
}


/* ============================================
   About Section
   ============================================ */

.about-main {
    margin-bottom: 4rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.about-intro {
    font-size: 1.15rem;
    line-height: 1.9;
    color: var(--text-2);
    text-align: center;
}

.about-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.about-card {
    text-align: left;
    position: relative;
}

.card-number {
    font-size: 3.5rem;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0.2;
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    line-height: 1;
}

.about-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-1);
}

.about-card p {
    color: var(--text-2);
    line-height: 1.8;
    font-size: 0.95rem;
}


/* ============================================
   Portfolio Section
   ============================================ */

.portfolio {
    background: linear-gradient(180deg, transparent 0%, rgba(99,102,241,0.02) 50%, transparent 100%);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.portfolio-card {
    text-align: left;
    position: relative;
}

/* Accent top bar on portfolio cards */
.portfolio-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 2rem;
    right: 2rem;
    height: 2px;
    background: var(--gradient);
    opacity: 0;
    transition: opacity 0.4s ease;
    border-radius: 0 0 2px 2px;
    z-index: 3;
}

.portfolio-card:hover::after {
    opacity: 0.8;
}

.portfolio-status {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    background: rgba(34, 197, 94, 0.1);
    color: #4ade80;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(34, 197, 94, 0.15);
}

.portfolio-status.coming-soon {
    background: rgba(168, 85, 247, 0.1);
    color: var(--accent-mid);
    border-color: rgba(168, 85, 247, 0.15);
}

.portfolio-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 1.5rem;
    color: var(--accent);
}

.portfolio-icon svg {
    width: 100%;
    height: 100%;
}

.portfolio-card h3 {
    font-size: 1.35rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-1);
}

.portfolio-card p {
    color: var(--text-2);
    line-height: 1.7;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.portfolio-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.portfolio-tags span {
    padding: 0.35rem 0.75rem;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 500;
    background: rgba(99, 102, 241, 0.08);
    color: var(--text-2);
    border: 1px solid rgba(99, 102, 241, 0.1);
}

.portfolio-note {
    text-align: center;
    margin-top: 3rem;
    color: var(--text-3);
    font-size: 0.9rem;
    font-style: italic;
}


/* ============================================
   Services Section
   ============================================ */

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.service-card {
    text-align: left;
}

.service-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 1.5rem;
    padding: 10px;
    border-radius: 12px;
    background: var(--gradient-subtle);
    border: 1px solid rgba(99, 102, 241, 0.1);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-icon svg {
    width: 24px;
    height: 24px;
}

.service-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-1);
}

.service-card p {
    color: var(--text-2);
    line-height: 1.8;
    font-size: 0.95rem;
}


/* ============================================
   Contact Section
   ============================================ */

.contact {
    padding-bottom: 6rem;
}

.contact-content {
    max-width: 700px;
    margin: 0 auto;
    padding: 3.5rem;
}

.contact-intro {
    color: var(--text-2);
    margin-bottom: 2.5rem;
    line-height: 1.8;
    font-size: 1.05rem;
    text-align: center;
}

.contact-details {
    margin: 2.5rem 0;
    padding: 2rem 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    justify-content: center;
}

.contact-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: var(--gradient-subtle);
    border: 1px solid rgba(99, 102, 241, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
}

.contact-icon svg {
    width: 24px;
    height: 24px;
}

.contact-text {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.contact-text strong {
    font-size: 0.75rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-3);
    font-weight: 600;
}

.contact-text a {
    color: var(--text-1);
    text-decoration: none;
    font-size: 1.25rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

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

.contact-note {
    text-align: center;
    color: var(--text-3);
    font-size: 0.875rem;
    font-style: italic;
}


/* ============================================
   Footer
   ============================================ */

.footer {
    padding: 4rem 0 2rem;
    border-top: 1px solid var(--border);
    position: relative;
    z-index: 2;
}

/* Gradient glow above footer border */
.footer::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 300px;
    height: 1px;
    background: var(--gradient);
    opacity: 0.4;
    filter: blur(0.5px);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
    color: var(--text-1);
}

.footer-logo {
    width: 32px;
    height: 32px;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: var(--text-2);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--text-1);
}

.footer-legal-links {
    display: flex;
    gap: 2rem;
}

.footer-legal-links a {
    color: var(--text-3);
    text-decoration: none;
    font-size: 0.8rem;
    transition: color 0.3s ease;
}

.footer-legal-links a:hover {
    color: var(--text-2);
}

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

.footer-info p {
    color: var(--text-3);
    font-size: 0.85rem;
    margin: 0;
}

.footer-info p + p {
    margin-top: 0.5rem;
}

.footer-legal {
    font-size: 0.75rem !important;
}


/* ============================================
   Reveal Animations
   ============================================ */

.reveal-element {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal-element.revealed {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .gradient-text {
        animation: none;
    }
}


/* ============================================
   Responsive Design
   ============================================ */

@media (max-width: 1024px) {
    .about-content,
    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }
}

/* Performance: reduce heavy effects on touch / small screens */
@media (max-width: 768px), (hover: none) {
    .mouse-spotlight {
        display: none !important;
    }

    .gradient-orb {
        filter: none;
        opacity: 0.35;
    }

    .glass-card:hover {
        transform: none;
    }

    .tilt-card {
        transform: none !important;
    }

    .visual-card.primary,
    .visual-card.secondary {
        animation: none;
    }

    .visual-orbit {
        animation: none;
    }

    .noise-overlay {
        opacity: 0.15;
    }
}

@media (max-width: 768px) {
    body {
        cursor: auto;
    }

    .nav-links {
        position: fixed;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100vh;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        background: rgba(5, 5, 8, 0.98);
        transition: left 0.4s ease;
        gap: 2rem;
    }

    .nav-links.active {
        left: 0;
    }

    .hamburger {
        display: flex;
        z-index: 1001;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .hero-title {
        font-size: 3.5rem;
        letter-spacing: -2px;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .hero-visual {
        min-height: 350px;
    }

    .visual-card.secondary {
        right: 0;
        bottom: 0;
    }

    .section-header h2 {
        font-size: 2.25rem;
    }

    .scroll-indicator {
        display: none;
    }

    section {
        padding: 5rem 0;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.75rem;
    }

    .container {
        padding: 0 1.25rem;
    }

    .glass-card {
        padding: 1.75rem;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
    }

    .footer-links,
    .footer-legal-links {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
}
