/* ============================================
   STK AI Venture Builder - Main Styles
   Component-Specific Styling
   ============================================ */

/* ============================================
   NAVIGATION
   ============================================ */

header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--glass-bg-heavy);
    backdrop-filter: blur(var(--glass-blur-heavy));
    -webkit-backdrop-filter: blur(var(--glass-blur-heavy));
    border-bottom: 1px solid var(--glass-border);
}

nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--space-6);
}

.logo {
    font-family: var(--font-display);
    font-size: var(--text-3xl);
    font-weight: 700;
    color: var(--color-text-primary);
    text-decoration: none;
    letter-spacing: -0.02em;
    transition: color var(--transition-base);
    display: flex;
    align-items: center;
}

.logo-image {
    height: 24px;
    /* Reduced from 40px for elegant scale */
    width: auto;
    transition: all var(--transition-smooth);
    /* Force logo to white/silver for dark background visibility */
    filter: brightness(0) invert(1) brightness(1.1);
}


/* Shiny Logo Effect */
.logo {
    position: relative;
    overflow: hidden;
    /* Ensure sheen doesn't spill out */
}

/* The Sheen */
.logo::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0.8) 50%,
            rgba(255, 255, 255, 0) 100%);
    transform: skewX(-25deg);
    animation: shine 6s infinite;
    pointer-events: none;
}

@keyframes shine {
    0% {
        left: -100%;
        opacity: 0;
    }

    20% {
        left: 200%;
        opacity: 1;
    }

    100% {
        left: 200%;
        opacity: 0;
    }
}

.logo:hover .logo-image {
    filter: brightness(0) invert(1) brightness(1.3) drop-shadow(0 0 10px rgba(8, 72, 136, 0.5));
}

.logo:hover {
    transform: scale(1.05);
}

/* Language Toggle */
.lang-toggle {
    display: flex;
    align-items: center;
    gap: var(--space-1);
    padding: var(--space-2) var(--space-3);
    background: rgba(8, 72, 136, 0.1);
    border: 1px solid rgba(8, 72, 136, 0.2);
    border-radius: var(--radius-full);
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-base);
}

.lang-toggle:hover {
    background: rgba(8, 72, 136, 0.2);
    border-color: var(--color-stk-blue);
}

.lang-option {
    padding: var(--space-1) var(--space-2);
    border-radius: var(--radius-sm);
    color: var(--color-text-secondary);
    transition: all var(--transition-base);
    cursor: pointer;
}

.lang-option.active {
    background: var(--color-stk-blue);
    color: white;
}

.lang-separator {
    color: var(--color-text-tertiary);
    user-select: none;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: var(--space-8);
    list-style: none;
}

.nav-links a {
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--color-text-secondary);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: color var(--transition-base);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-blue-bright);
    transition: width var(--transition-smooth);
}

.nav-links a:hover {
    color: var(--color-text-primary);
}

.nav-links a:hover::after {
    width: 100%;
}

/* Mobile menu toggle - hidden by default, shown on mobile */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: var(--space-2);
}

.menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--color-text-primary);
    transition: all var(--transition-base);
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 80px;
    overflow: hidden;
}

/* Particle canvas background */
#particle-canvas {
    position: absolute;
    inset: 0;
    z-index: 0;
    opacity: 0.4;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 900px;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    margin-bottom: var(--space-6);
    padding: var(--space-2) var(--space-4);
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    color: var(--color-cyan-bright);
    background: rgba(0, 217, 255, 0.05);
    border: 1px solid rgba(0, 217, 255, 0.2);
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.hero-eyebrow::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--color-cyan-bright);
    border-radius: 50%;
    animation: glow-pulse 2s ease-in-out infinite;
}

.hero h1 {
    margin-bottom: var(--space-6);
    background: linear-gradient(135deg, var(--color-text-primary) 0%, var(--color-text-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: var(--text-xl);
    color: var(--color-text-secondary);
    margin-bottom: var(--space-8);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-4);
    flex-wrap: wrap;
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: var(--space-8);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-2);
    color: var(--color-text-tertiary);
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    animation: fade-in-subtle 1s ease-in 1.5s forwards;
    opacity: 0;
}

.scroll-indicator::after {
    content: '';
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--color-stk-blue), transparent);
    animation: scroll-line-elegant 2.5s ease-in-out infinite;
}

@keyframes scroll-line-elegant {

    0%,
    100% {
        opacity: 0;
        transform: translateY(-10px);
    }

    50% {
        opacity: 0.6;
        transform: translateY(10px);
    }
}

@keyframes fade-in-subtle {
    to {
        opacity: 0.7;
    }
}

/* ============================================
   BENTO GRID - PORTFOLIO SHOWCASE
   ============================================ */

.portfolio-section {
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-12);
}

.section-label {
    display: inline-block;
    margin-bottom: var(--space-4);
    font-family: var(--font-mono);
    font-size: var(--text-sm);
    color: var(--color-stk-blue-light);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.section-title {
    margin-bottom: var(--space-4);
}

.section-description {
    font-size: var(--text-lg);
    color: var(--color-text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Bento Grid Layout */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: 240px;
    gap: var(--space-6);
    margin-bottom: var(--space-12);
}

/* Grid Item Sizes */
.bento-item {
    position: relative;
    overflow: hidden;
    transition: all var(--transition-smooth);
}

.bento-item.bento-item-wide {
    overflow: visible;
}

.bento-item-large {
    grid-column: span 6;
    /* Changed to 6 for 2-column layout */
    grid-row: span 2;
}

.bento-item-medium {
    grid-column: span 6;
    /* Changed to 6 for 2-column layout */
    grid-row: span 2;
}

.bento-item-small {
    grid-column: span 4;
    grid-row: span 1;
}

.bento-item-wide {
    grid-column: span 12;
    grid-row: span 1;
    min-height: 280px;
}

.bento-item-featured {
    grid-column: span 12;
    grid-row: span 2;
    /* Double height for featured content */
}

/* Product Cards - Enhanced with 3D Tilt */
.product-card {
    height: 100%;
    padding: var(--space-6);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
    transform-style: preserve-3d;
}

/* Dynamic glow effect that follows mouse */
.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(8, 72, 136, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(30%, -30%);
    transition: all var(--transition-smooth);
    pointer-events: none;
}

/* Mouse tracking glow (will be controlled by JS) */
.product-card::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(0, 217, 255, 0.15) 0%, transparent 60%);
    border-radius: 50%;
    opacity: 0;
    transition: opacity var(--transition-smooth);
    pointer-events: none;
    left: var(--mouse-x, 50%);
    top: var(--mouse-y, 50%);
    transform: translate(-50%, -50%);
}

.product-card:hover::after {
    opacity: 1;
}

.product-header {
    position: relative;
    z-index: 1;
}

.product-category {
    display: inline-block;
    margin-bottom: var(--space-3);
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    color: var(--color-text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.product-title {
    font-size: var(--text-4xl);
    margin-bottom: var(--space-4);
    color: var(--color-text-primary);
}

.product-description {
    font-size: var(--text-lg);
    color: var(--color-text-secondary);
    margin-bottom: var(--space-6);
    line-height: var(--leading-relaxed);
}

.product-tags {
    display: flex;
    flex-wrap: nowrap;
    /* Forces single line */
    width: 100%;
    margin-bottom: var(--space-6);
    background: rgba(8, 72, 136, 0.05);
    border: 1px solid rgba(8, 72, 136, 0.2);
    border-radius: var(--radius-md);
    overflow: hidden;
    /* Important for rounding corners of child elements */
}

.product-tags .tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    /* Distribute width equally */
    gap: var(--space-2);
    padding: 12px 0;
    /* Vertical padding only, let flex handle horizontal */
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--color-stk-blue-light);
    background: transparent;
    border: none;
    border-right: 1px solid rgba(8, 72, 136, 0.2);
    /* Separator line */
    border-radius: 0;
    transition: all var(--transition-smooth);
    cursor: default;
    white-space: nowrap;
    min-width: 0;
    /* Allow shrinking if text is long */
}

.product-tags .tag:last-child {
    border-right: none;
}

.product-tags .tag i {
    font-size: 1.1em;
    opacity: 0.9;
}

.product-tags .tag:hover {
    background: rgba(8, 72, 136, 0.15);
    color: var(--color-white);
}

.product-footer {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.product-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--color-stk-blue-light);
    text-decoration: none;
    transition: gap var(--transition-smooth);
}

.product-link:hover {
    gap: var(--space-3);
}

.product-link::after {
    content: '→';
    font-size: var(--text-lg);
}

/* Stealth Mode Badge */
.stealth-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-4);
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    font-weight: 500;
    color: var(--color-text-tertiary);
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.stealth-badge i {
    font-size: var(--text-xs);
    opacity: 0.7;
}



/* Google Credibility Banner - Promoted Position */
.credibility-banner {
    position: relative;
    padding: var(--space-8) 0;
    margin: var(--space-12) 0;
    background: var(--glass-bg-heavy);
    backdrop-filter: blur(var(--glass-blur-heavy));
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
    overflow: hidden;
}

.credibility-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 50%, rgba(8, 72, 136, 0.1) 0%, transparent 70%);
    animation: glow-pulse 4s ease-in-out infinite;
}

.credibility-content {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-8);
    flex-wrap: wrap;
}

.credibility-badge {
    display: flex;
    align-items: center;
    gap: var(--space-6);
    padding: var(--space-6) var(--space-8);
    background: rgba(8, 72, 136, 0.05);
    border: 1px solid rgba(8, 72, 136, 0.2);
    border-radius: var(--radius-lg);
    transition: all var(--transition-smooth);
}

.credibility-badge:hover {
    background: rgba(8, 72, 136, 0.1);
    border-color: var(--color-stk-blue);
    box-shadow: var(--glow-blue);
}

.badge-logo {
    height: 80px;
    /* Increased from 60px for prominence */
    width: auto;
    filter: brightness(1.3);
    /* Brighter for better visibility */
}

.badge-info {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.badge-label {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    color: var(--color-text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.badge-title {
    font-family: var(--font-display);
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--color-text-primary);
}

/* Google Badge Card - Keep for backward compatibility */
.badge-card {
    height: 100%;
    padding: var(--space-6);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: var(--space-4);
}

.badge-image {
    max-width: 100%;
    height: auto;
    filter: brightness(1.1);
}

.badge-text {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    color: var(--color-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Tech Stack Card */
/* Tech Stack Card - Obsidian Mode Enhanced */
.tech-stack-card {
    height: 100%;
    padding: var(--space-8) var(--space-8) var(--space-6);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    background: linear-gradient(145deg, #0a0a0a 0%, #050505 50%, #080808 100%);
    border: 1px solid rgba(0, 217, 255, 0.25);
    border-radius: var(--radius-lg);
    box-shadow:
        0 0 40px rgba(0, 0, 0, 0.7),
        0 0 60px rgba(0, 217, 255, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.03);
    position: relative;
    overflow: visible;
    transition: all var(--transition-smooth);
}

.tech-stack-card:hover {
    border-color: rgba(0, 217, 255, 0.4);
    box-shadow:
        0 0 50px rgba(0, 0, 0, 0.8),
        0 0 80px rgba(0, 217, 255, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* Subtle grid overlay */
.tech-stack-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0, 217, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 217, 255, 0.02) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: 0;
    pointer-events: none;
    border-radius: var(--radius-lg);
}

/* Decorative corner accent */
.tech-stack-card::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 120px;
    height: 120px;
    background: radial-gradient(circle at top right, rgba(0, 217, 255, 0.15) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.tech-stack-title {
    font-family: var(--font-display);
    font-size: var(--text-2xl);
    font-weight: 700;
    margin-bottom: var(--space-4);
    color: #fff;
    position: relative;
    z-index: 1;
    text-shadow: 0 0 20px rgba(0, 217, 255, 0.4);
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.tech-stack-title::before {
    content: '\f5dc';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 0.8em;
    color: var(--color-cyan-bright);
    text-shadow: 0 0 15px rgba(0, 217, 255, 0.6);
}

.tech-stack-card .section-description {
    position: relative;
    z-index: 1;
    color: rgba(255, 255, 255, 0.7);
}

.tech-icons {
    display: flex !important;
    flex-wrap: nowrap;
    align-items: center;
    width: 100%;
    min-height: 60px;
    margin-top: var(--space-6);
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(0, 217, 255, 0.15);
    border-radius: var(--radius-md);
    padding: 0;
    gap: 0;
    position: relative;
    z-index: 5;
    visibility: visible !important;
    opacity: 1 !important;
    overflow: visible;
}

.tech-icon {
    display: flex !important;
    align-items: center;
    justify-content: center;
    flex: 1;
    gap: var(--space-3);
    padding: 18px 16px;
    background: transparent;
    border: none;
    border-right: 1px solid rgba(0, 217, 255, 0.15);
    border-radius: 0;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.9) !important;
    transition: all var(--transition-base);
    white-space: nowrap;
    min-width: 0;
    position: relative;
    z-index: 5;
}

.tech-icon span {
    display: inline-block !important;
    visibility: visible !important;
    opacity: 1 !important;
    color: rgba(255, 255, 255, 0.9) !important;
}

.tech-icon i {
    font-size: 1.2em;
    color: var(--color-cyan-bright) !important;
    transition: all var(--transition-smooth);
    flex-shrink: 0;
}

.tech-icon:last-child {
    border-right: none;
}

.tech-icon:hover {
    background: rgba(0, 217, 255, 0.1);
    /* Cyan hover */
    color: #fff;
}

.tech-icon:hover i {
    transform: scale(1.1);
    text-shadow: 0 0 10px var(--color-cyan-bright);
}

/* ============================================
   VALUES SECTION
   ============================================ */

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-6);
}

.value-card {
    padding: var(--space-8);
    text-align: center;
}

.value-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto var(--space-4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-3xl);
    color: var(--color-stk-blue-light);
    background: rgba(8, 72, 136, 0.1);
    border-radius: var(--radius-md);
    transition: all var(--transition-smooth);
}

.value-card:hover .value-icon {
    background: rgba(8, 72, 136, 0.2);
    transform: scale(1.1);
    box-shadow: var(--glow-blue);
}

.value-title {
    font-size: var(--text-2xl);
    margin-bottom: var(--space-3);
    color: var(--color-text-primary);
}

.value-description {
    color: var(--color-text-secondary);
    line-height: var(--leading-relaxed);
}


/* ============================================
   TEAM SECTION - Professional Carousel
   ============================================ */

.team-carousel-container {
    position: relative;
    margin-top: var(--space-12);
    padding: var(--space-8) 0;
}

/* Navigation Arrows */
.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 50px;
    height: 50px;
    border: none;
    border-radius: 50%;
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    color: var(--color-text-primary);
    cursor: pointer;
    transition: all var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-lg);
}

.carousel-nav:hover {
    background: rgba(8, 72, 136, 0.3);
    border-color: var(--color-stk-blue);
    box-shadow: var(--glow-blue);
    transform: translateY(-50%) scale(1.1);
}

.carousel-nav-prev {
    left: -80px;
}

.carousel-nav-next {
    right: -80px;
}

.carousel-nav:active {
    transform: translateY(-50%) scale(0.95);
}

/* Carousel Wrapper */
.team-carousel-wrapper {
    overflow: hidden;
    border-radius: var(--radius-lg);
    position: relative;
}

.team-carousel {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    gap: var(--space-6);
}

/* Team Cards */
.team-card {
    flex: 0 0 calc(33.333% - var(--space-4));
    min-width: 320px;
    padding: 0;
    overflow: hidden;
    position: relative;
    border-radius: var(--radius-lg);
    transition: all var(--transition-smooth);
}

.team-card-inner {
    padding: var(--space-8);
    height: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* Tech Pattern Background */
.tech-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.05;
    background-image:
        repeating-linear-gradient(0deg, transparent, transparent 2px, var(--color-stk-blue) 2px, var(--color-stk-blue) 3px),
        repeating-linear-gradient(90deg, transparent, transparent 2px, var(--color-stk-blue) 2px, var(--color-stk-blue) 3px);
    background-size: 30px 30px;
    pointer-events: none;
    transition: opacity var(--transition-smooth);
}

.team-card:hover .tech-pattern {
    opacity: 0.1;
    animation: pattern-slide 20s linear infinite;
}

@keyframes pattern-slide {
    0% {
        background-position: 0 0;
    }

    100% {
        background-position: 30px 30px;
    }
}

/* Avatar Wrapper with Advanced Effects */
.team-avatar-wrapper {
    position: relative;
    width: 200px;
    height: 200px;
    margin-bottom: var(--space-6);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Glowing Background Effect */
.avatar-glow {
    position: absolute;
    inset: -20px;
    background: radial-gradient(circle, rgba(0, 217, 255, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    opacity: 0;
    transition: opacity var(--transition-smooth);
    animation: pulse-glow 3s ease-in-out infinite;
    pointer-events: none;
}

@keyframes pulse-glow {

    0%,
    100% {
        transform: scale(0.95);
        opacity: 0.5;
    }

    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }
}

.team-card:hover .avatar-glow {
    opacity: 1;
}

/* Team Avatar */
.team-avatar {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: contain;
    border: 4px solid transparent;
    background: linear-gradient(var(--color-slate), var(--color-slate)) padding-box,
        linear-gradient(135deg, var(--color-stk-blue), var(--color-cyan-bright)) border-box;
    position: relative;
    z-index: 2;
    transition: all var(--transition-smooth);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.team-card:hover .team-avatar {
    transform: scale(1.05) translateY(-5px);
    box-shadow: 0 20px 60px rgba(0, 217, 255, 0.4);
}

/* Rotating Ring Effect */
.avatar-ring {
    position: absolute;
    inset: -10px;
    border-radius: 50%;
    border: 2px solid transparent;
    border-top-color: var(--color-stk-blue-light);
    border-right-color: var(--color-cyan-bright);
    opacity: 0;
    transition: opacity var(--transition-smooth);
    pointer-events: none;
}

.team-card:hover .avatar-ring {
    opacity: 1;
    animation: rotate-ring 3s linear infinite;
}

@keyframes rotate-ring {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Team Info */
.team-info {
    position: relative;
    z-index: 1;
}

.team-name {
    font-size: var(--text-2xl);
    font-weight: 700;
    margin-bottom: var(--space-3);
    color: var(--color-text-primary);
    background: linear-gradient(135deg, var(--color-text-primary), var(--color-stk-blue-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: all var(--transition-smooth);
}

.team-card:hover .team-name {
    transform: translateY(-2px);
}

.team-role {
    font-family: var(--font-body);
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
    margin-bottom: var(--space-2);
    line-height: 1.5;
}

.team-role-abbr {
    display: inline-block;
    margin-top: var(--space-3);
    padding: var(--space-2) var(--space-4);
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    font-weight: 600;
    color: var(--color-stk-blue-light);
    background: rgba(8, 72, 136, 0.15);
    border: 1px solid rgba(8, 72, 136, 0.3);
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: all var(--transition-smooth);
}

.team-card:hover .team-role-abbr {
    background: rgba(0, 217, 255, 0.2);
    border-color: var(--color-cyan-bright);
    color: var(--color-cyan-bright);
    box-shadow: 0 0 20px rgba(0, 217, 255, 0.3);
}

/* Carousel Indicators */
.carousel-indicators {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-3);
    margin-top: var(--space-8);
}

.indicator {
    width: 12px;
    height: 12px;
    border: none;
    border-radius: 50%;
    background: rgba(8, 72, 136, 0.3);
    cursor: pointer;
    transition: all var(--transition-smooth);
    position: relative;
}

.indicator::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid transparent;
    transition: all var(--transition-smooth);
}

.indicator.active {
    background: var(--color-stk-blue);
    box-shadow: 0 0 15px rgba(8, 72, 136, 0.6);
}

.indicator.active::before {
    border-color: var(--color-stk-blue-light);
}

.indicator:hover:not(.active) {
    background: rgba(8, 72, 136, 0.6);
    transform: scale(1.2);
}

/* Card Hover Effect - Enhanced */
.team-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(0, 217, 255, 0.15);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .carousel-nav-prev {
        left: -60px;
    }

    .carousel-nav-next {
        right: -60px;
    }

    .team-card {
        flex: 0 0 calc(50% - var(--space-3));
    }
}

@media (max-width: 768px) {
    .carousel-nav {
        width: 40px;
        height: 40px;
        font-size: var(--text-base);
    }

    .carousel-nav-prev {
        left: 10px;
    }

    .carousel-nav-next {
        right: 10px;
    }

    .team-card {
        flex: 0 0 100%;
        min-width: 280px;
    }

    .team-avatar-wrapper {
        width: 160px;
        height: 160px;
    }

    .team-avatar {
        width: 140px;
        height: 140px;
    }

    .team-name {
        font-size: var(--text-xl);
    }
}

/* ============================================
   CONTACT SECTION
   ============================================ */

.contact-section {
    text-align: center;
}

.contact-form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: var(--space-4) var(--space-5);
    font-family: var(--font-body);
    font-size: var(--text-base);
    color: var(--color-text-primary);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
    -webkit-appearance: none;
    appearance: none;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--color-stk-blue);
    box-shadow: 0 0 0 3px rgba(8, 72, 136, 0.1);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: var(--color-text-tertiary);
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

.select-wrapper {
    position: relative;
}

.select-wrapper::after {
    content: '▼';
    position: absolute;
    right: var(--space-5);
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-text-secondary);
    pointer-events: none;
}

/* ============================================
   FOOTER
   ============================================ */

footer {
    border-top: 1px solid var(--color-border);
    padding: var(--space-10) 0 var(--space-6);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-6);
}

.footer-logo {
    font-family: var(--font-display);
    font-size: var(--text-2xl);
    font-weight: 700;
    color: var(--color-text-primary);
}

.footer-text {
    font-size: var(--text-sm);
    color: var(--color-text-tertiary);
}

.footer-links {
    display: flex;
    gap: var(--space-6);
    list-style: none;
}

.footer-links a {
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
    text-decoration: none;
    transition: color var(--transition-base);
}

.footer-links a:hover {
    color: var(--color-stk-blue-light);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 1024px) {
    .bento-grid {
        grid-auto-rows: 220px;
    }

    .bento-item-large {
        grid-column: span 12;
    }

    .bento-item-medium {
        grid-column: span 6;
    }

    .bento-item-small {
        grid-column: span 6;
    }
}

@media (max-width: 768px) {

    /* Navigation */
    nav {
        padding: var(--space-3) var(--space-4);
    }

    .nav-links {
        display: none;
    }

    .menu-toggle {
        display: flex;
        z-index: 100;
    }

    .logo-image {
        max-width: 80px;
        /* Smaller logo on mobile */
    }

    /* Mobile Menu Active State */
    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 80px;
        left: 0;
        right: 0;
        background: var(--glass-bg-heavy);
        backdrop-filter: blur(var(--glass-blur-heavy));
        padding: var(--space-6);
        border-bottom: 1px solid var(--glass-border);
        gap: var(--space-4);
        box-shadow: var(--shadow-xl);
        animation: slideDown 0.3s ease-out forwards;
        z-index: 99;
    }

    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    /* Hero Section */
    .hero {
        min-height: 80vh;
        padding: var(--space-12) 0 var(--space-8);
    }

    .hero h1 {
        font-size: var(--text-4xl);
        line-height: 1.1;
    }

    .hero-description {
        font-size: var(--text-base);
    }

    .hero-eyebrow {
        font-size: 0.7rem;
        padding: var(--space-1) var(--space-3);
        margin-bottom: var(--space-4);
    }

    .hero-cta {
        flex-direction: column;
        width: 100%;
        gap: var(--space-3);
    }

    .hero-cta .btn {
        width: 100%;
        justify-content: center;
    }

    /* Bento Grid */
    .bento-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: min-content;
        /* Allow cards to size based on content */
        gap: var(--space-4);
    }

    .bento-item-large,
    .bento-item-medium,
    .bento-item-small,
    .bento-item-wide,
    .bento-item-featured {
        grid-column: span 1;
        grid-row: span 1;
    }

    .bento-item-featured {
        min-height: 500px;
        /* Ensure stealth card has enough height */
    }

    .product-card {
        min-height: 280px;
        padding: var(--space-6) var(--space-4);
    }

    /* Tech Stack Card */
    .tech-stack-card {
        padding: var(--space-6) var(--space-4);
    }

    .tech-stack-title {
        font-size: var(--text-xl);
    }

    .tech-icons {
        flex-wrap: wrap;
        /* Allow icons to wrap */
        justify-content: center;
        gap: var(--space-2);
        padding: var(--space-3);
    }

    .tech-icon {
        flex: 0 1 calc(50% - var(--space-1));
        /* 2 icons per row */
        min-width: 120px;
        padding: 12px 8px;
        border-right: none;
        border-bottom: 1px solid rgba(0, 217, 255, 0.15);
    }

    .tech-icon:nth-child(2n) {
        border-right: none;
        /* Remove right border for even items */
    }

    .tech-icon:nth-last-child(-n+2) {
        border-bottom: none;
        /* Remove bottom border for last row */
    }

    .tech-icon span {
        font-size: 0.75rem;
    }

    /* Fix Product Tags Overlap on Mobile */
    .product-tags {
        flex-wrap: wrap;
        border: none;
        background: transparent;
        padding: 0;
        gap: var(--space-2);
        height: auto;
    }

    .product-tags .tag {
        flex: initial;
        width: auto;
        border: 1px solid rgba(8, 72, 136, 0.2);
        border-radius: var(--radius-full);
        background: rgba(8, 72, 136, 0.05);
        padding: 8px 16px;
    }

    /* Values and Team Grids */
    .team-grid,
    .values-grid {
        grid-template-columns: 1fr;
    }

    /* Footer */
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}

/* ============================================
   STEALTH CARD / PROJECT RUNWAY STYLES
   ============================================ */

.card-stealth {
    background: rgba(5, 5, 5, 0.95);
    /* Obsidian High Opacity */
    border: 1px solid rgba(8, 72, 136, 0.3);
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* Scanline/Grid Texture Overlay */
.stealth-grid-overlay {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0, 255, 136, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 136, 0.03) 1px, transparent 1px);
    background-size: 20px 20px;
    z-index: 0;
    pointer-events: none;
    mask-image: linear-gradient(to bottom, transparent, black 15%, black 85%, transparent);
    -webkit-mask-image: linear-gradient(to bottom, transparent, black 15%, black 85%, transparent);
}

.card-stealth:hover {
    background: #000;
    border-color: rgba(0, 217, 255, 0.6);
    /* Metallic/Cyber Border */
    box-shadow: 0 0 30px rgba(0, 217, 255, 0.15), inset 0 0 20px rgba(8, 72, 136, 0.2);
    /* Removed translateY for stability as requested previously */
}

/* Header Row Layout */
.stealth-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-4);
    position: relative;
    z-index: 1;
}

.stealth-category {
    color: var(--color-cyan-bright);
    margin-bottom: 0;
    /* Override default */
    background: rgba(0, 217, 255, 0.1);
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    border: 1px solid rgba(0, 217, 255, 0.2);
}

/* Alpha Status Badge */
.alpha-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: #ffb700;
    /* Amber Alert Color */
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 4px 12px;
    border: 1px solid rgba(255, 183, 0, 0.3);
    border-radius: 99px;
    background: rgba(255, 183, 0, 0.05);
}

.status-dot {
    width: 6px;
    height: 6px;
    background-color: #ffb700;
    border-radius: 50%;
    animation: pulse-amber 2s infinite;
}

@keyframes pulse-amber {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 183, 0, 0.4);
    }

    70% {
        box-shadow: 0 0 0 6px rgba(255, 183, 0, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 183, 0, 0);
    }
}

.stealth-title {
    color: white;
    font-size: 2.5rem;
    /* Larger title */
    letter-spacing: -0.03em;
    background: linear-gradient(to right, #ffffff, #94a3b8);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.text-highlight {
    color: var(--color-cyan-bright);
    -webkit-text-fill-color: var(--color-cyan-bright);
}

.stealth-tags-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-4);
    margin-top: var(--space-6);
}

.stealth-tags {
    margin-bottom: 0 !important;
    max-width: 65%;
    border-color: rgba(255, 255, 255, 0.1);
    background: transparent;
}

.stealth-tags .tag {
    color: #a5f3fc;
    border-color: rgba(165, 243, 252, 0.2);
}

/* Stealth Button */
.btn-stealth {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 12px 24px;
}

.btn-stealth:hover {
    background: var(--color-cyan-bright);
    color: black;
    border-color: var(--color-cyan-bright);
    box-shadow: 0 0 20px rgba(0, 217, 255, 0.4);
    transform: none;
    /* No movement as per guidelines */
}

/* Mobile Adjustments for Stealth Card */
@media (max-width: 768px) {
    .stealth-header-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .stealth-tags-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .stealth-tags {
        max-width: 100%;
    }

    .btn-stealth {
        width: 100%;
        justify-content: center;
    }

    .stealth-title {
        font-size: 2rem;
    }
}

/* ============================================
   EXTRA SMALL SMARTPHONES (≤480px)
   ============================================ */

@media (max-width: 480px) {

    /* Tighter spacing for very small screens */
    .container {
        padding-left: var(--space-3);
        padding-right: var(--space-3);
    }

    .section {
        padding-top: var(--space-8);
        padding-bottom: var(--space-8);
    }

    /* Typography adjustments */
    .hero h1 {
        font-size: var(--text-3xl);
        line-height: 1.1;
    }

    .hero-description {
        font-size: 0.9rem;
    }

    .section-title {
        font-size: var(--text-2xl);
    }

    /* Tech Icons - Single column */
    .tech-icon {
        flex: 0 1 100%;
        /* 1 icon per row on very small screens */
        border-bottom: 1px solid rgba(0, 217, 255, 0.15);
    }

    .tech-icon:last-child {
        border-bottom: none;
    }

    /* Product Tags */
    .product-tags .tag {
        font-size: 0.65rem;
        padding: 6px 12px;
    }

    /* Stealth Card */
    .stealth-title {
        font-size: 1.5rem;
    }

    .stealth-tags .tag {
        font-size: 0.6rem;
        padding: 4px 10px;
    }

    /* Buttons */
    .btn {
        padding: var(--space-3) var(--space-4);
        font-size: 0.9rem;
    }

    /* Reduce card padding */
    .product-card {
        padding: var(--space-5) var(--space-3);
    }

    .value-card {
        padding: var(--space-6);
    }

    /* Navigation */
    .logo-image {
        max-width: 70px;
    }

    /* Hero CTA spacing */
    .hero-cta {
        gap: var(--space-2);
    }

    /* Carousel indicators */
    .carousel-indicators {
        gap: var(--space-2);
    }

    .indicator {
        width: 10px;
        height: 10px;
    }
}


/* Stealth Footer Animation */
.stealth-footer {
    margin-top: auto;
    /* Pushes to bottom if flex container */
    padding-top: var(--space-6);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.monitor-container {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(0, 217, 255, 0.1);
    padding: 12px;
    border-radius: 4px;
}

.monitor-header {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--color-text-tertiary);
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 0.1em;
    margin-bottom: 8px;
}

.monitor-label {
    color: var(--color-cyan-bright);
}

.monitor-id {
    margin-left: auto;
    opacity: 0.5;
}

.monitor-graph {
    display: flex;
    align-items: flex-end;
    gap: 2px;
    height: 40px;
    overflow: hidden;
}

.monitor-graph .bar {
    flex: 1;
    background: var(--color-cyan-bright);
    opacity: 0.2;
    border-radius: 1px 1px 0 0;
    animation: bar-fluctuate 1.5s infinite ease-in-out;
}

/* Randomize animation delays for bars */
.monitor-graph .bar:nth-child(2n) {
    animation-duration: 1.2s;
    animation-delay: 0.1s;
}


.monitor-graph .bar:nth-child(3n) {
    animation-duration: 0.8s;
    animation-delay: 0.2s;
}

.monitor-graph .bar:nth-child(4n) {
    animation-duration: 1.7s;
    animation-delay: 0.05s;
}

.monitor-graph .bar:nth-child(5n) {
    animation-duration: 1.1s;
    animation-delay: 0.3s;
}

.monitor-graph .bar:nth-child(7n) {
    animation-duration: 1.4s;
    animation-delay: 0.15s;
}

@keyframes bar-fluctuate {

    0%,
    100% {
        height: 15%;
        opacity: 0.15;
    }

    25% {
        height: 45%;
        opacity: 0.35;
    }

    50% {
        height: 80%;
        opacity: 0.5;
        box-shadow: 0 0 10px rgba(0, 217, 255, 0.3);
    }

    75% {
        height: 30%;
        opacity: 0.25;
    }
}

/* Enhanced Stealth Card - Subtle Border Pulse */
.bento-item-featured .product-card {
    animation: border-pulse-subtle 4s ease-in-out infinite;
}

@keyframes border-pulse-subtle {

    0%,
    100% {
        box-shadow: 0 0 15px rgba(0, 217, 255, 0.08);
    }

    50% {
        box-shadow: 0 0 25px rgba(0, 217, 255, 0.12);
    }
}