/* ===================================
   Digital Solutions Consulting
   Main Stylesheet - 21st.dev inspired
   Brand Colors:
   - Primary Red: rgb(251, 57, 66)
   - Secondary Gold: rgb(252, 213, 120)
   =================================== */

/* === RESET & BASE === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-red: rgb(251, 57, 66);
    --secondary-gold: rgb(252, 213, 120);
    --dark-gold: rgb(224, 150, 37);
    --dark-bg: #080808;
    --dark-bg-secondary: #111111;
    --dark-bg-tertiary: #181818;
    --dark-bg-elevated: #202020;
    --text-primary: #f5f5f5;
    --text-secondary: #999999;
    --text-tertiary: #555555;
    --gradient: linear-gradient(135deg, var(--primary-red), var(--dark-gold));
    --border-subtle: rgba(255, 255, 255, 0.06);
    --border-soft: rgba(255, 255, 255, 0.1);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.25);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.5);
    --transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--dark-bg);
    color: var(--text-primary);
    line-height: 1.6;
    font-size: 16px;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.hidden {
    display: none !important;
}

/* === TYPOGRAPHY === */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); }

p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

.lead {
    font-size: 1.25rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

.gradient-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* === FLOATING GLASSMORPHISM NAVBAR === */
.navbar {
    position: fixed;
    top: 14px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 48px);
    max-width: 1200px;
    background: rgba(8, 8, 8, 0.72);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1000;
    padding: 0.8rem 1.5rem;
    border-radius: 14px;
    border: 1px solid var(--border-subtle);
    transition: var(--transition);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4),
                inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.navbar.scrolled {
    background: rgba(8, 8, 8, 0.88);
    border-color: rgba(255, 255, 255, 0.09);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6),
                inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 36px;
    width: auto;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0.125rem;
    align-items: center;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.875rem;
    transition: var(--transition);
    padding: 0.5rem 0.875rem;
    border-radius: 8px;
    position: relative;
    letter-spacing: 0.01em;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 3px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 1.5px;
    background: var(--gradient);
    border-radius: 1px;
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: calc(100% - 1.75rem);
}

.nav-link.btn-primary {
    background: var(--gradient);
    padding: 0.55rem 1.2rem;
    border-radius: 8px;
    color: #fff;
    font-weight: 600;
    box-shadow: 0 2px 12px rgba(251, 57, 66, 0.35);
}

.nav-link.btn-primary::after {
    display: none;
}

.nav-link.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(251, 57, 66, 0.5);
    background: var(--gradient);
    color: #fff;
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    position: relative;
    z-index: 1001;
}

.mobile-menu-toggle span {
    width: 22px;
    height: 2px;
    background-color: var(--text-primary);
    border-radius: 1px;
    transition: var(--transition);
    display: block;
}

/* === BUTTONS === */
.btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-size: 0.95rem;
    letter-spacing: 0.01em;
}

.btn-primary {
    background: var(--gradient);
    color: #fff;
    box-shadow: 0 4px 20px rgba(251, 57, 66, 0.35);
    position: relative;
    overflow: hidden;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(251, 57, 66, 0.5);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
}

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

.btn-large {
    padding: 1.125rem 2.5rem;
    font-size: 1.05rem;
}

/* === HERO SECTION === */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding: 140px 0 100px;
}

/* Subtle grid texture */
.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.022) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: radial-gradient(ellipse at 50% 40%, black 20%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at 50% 40%, black 20%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
}

.hero-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.1;
}

/* Animated gradient orbs */
.hero-orb {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.hero-orb-1 {
    width: 650px;
    height: 650px;
    background: radial-gradient(circle at center, rgba(251, 57, 66, 0.16) 0%, transparent 65%);
    top: -180px;
    left: -180px;
    animation: orbFloat1 14s ease-in-out infinite;
    filter: blur(48px);
}

.hero-orb-2 {
    width: 550px;
    height: 550px;
    background: radial-gradient(circle at center, rgba(224, 150, 37, 0.13) 0%, transparent 65%);
    bottom: -120px;
    right: -120px;
    animation: orbFloat2 18s ease-in-out infinite;
    filter: blur(48px);
}

.hero-orb-3 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle at center, rgba(251, 57, 66, 0.09) 0%, transparent 65%);
    top: 40%;
    left: 58%;
    animation: orbFloat3 11s ease-in-out infinite;
    filter: blur(60px);
}

.hero-content {
    text-align: center;
    max-width: 920px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* Announcement badge */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(251, 57, 66, 0.07);
    border: 1px solid rgba(251, 57, 66, 0.22);
    border-radius: 100px;
    padding: 0.375rem 1rem;
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--secondary-gold);
    margin-bottom: 1.75rem;
    letter-spacing: 0.03em;
    animation: fadeInUp 0.7s ease both;
}

.badge-dot {
    width: 6px;
    height: 6px;
    background: var(--primary-red);
    border-radius: 50%;
    flex-shrink: 0;
    animation: pulseDot 2.2s ease-in-out infinite;
    box-shadow: 0 0 6px rgba(251, 57, 66, 0.6);
}

.hero-title {
    margin-bottom: 1rem;
    /* animation handled by JS word-fade; CSS fallback for no-JS */
    animation: fadeInUp 0.7s ease 0.1s both;
}

.hero-title.words-ready {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
}

.hero-title .word {
    display: inline-block;
    opacity: 0;
    transform: translateY(12px);
    filter: blur(5px);
    animation: wordFadeIn 0.65s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: calc(var(--i, 0) * 110ms + 80ms);
}

.hero-subtitle {
    font-size: 1.45rem;
    color: var(--secondary-gold);
    font-weight: 600;
    margin-bottom: 1.5rem;
    letter-spacing: 0.06em;
    min-height: 2rem;
}

.hero-description {
    font-size: 1.1rem;
    line-height: 1.85;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 0.7s ease 0.32s both;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.7s ease 0.46s both;
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
    z-index: 1;
}

.scroll-indicator span {
    display: block;
    width: 22px;
    height: 34px;
    border: 1.5px solid rgba(251, 57, 66, 0.45);
    border-radius: 12px;
    position: relative;
}

.scroll-indicator span::before {
    content: '';
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 7px;
    background: var(--primary-red);
    border-radius: 2px;
    animation: scroll 2s infinite;
}

/* === STATS STRIP === */
.stats {
    background: var(--dark-bg-secondary);
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
    padding: 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.stat-item {
    padding: 2.5rem 1.5rem;
    text-align: center;
    position: relative;
}

.stat-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 20%;
    height: 60%;
    width: 1px;
    background: var(--border-subtle);
}

.stat-number {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.03em;
    line-height: 1;
    margin-bottom: 0.5rem;
    display: block;
}

.stat-label {
    color: var(--text-tertiary);
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* === SECTIONS === */
section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.section-header h2 {
    margin-bottom: 0.875rem;
}

.section-header p {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 580px;
    margin: 0 auto;
}

/* === PAGE HEADER === */
.page-header {
    padding: 160px 0 80px;
    text-align: center;
    background: var(--dark-bg-secondary);
    border-bottom: 1px solid var(--border-subtle);
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: -80px;
    left: 50%;
    transform: translateX(-50%);
    width: 700px;
    height: 420px;
    background: radial-gradient(ellipse at center, rgba(251, 57, 66, 0.07) 0%, transparent 65%);
    pointer-events: none;
}

.page-header h1 { margin-bottom: 1rem; }

.page-header p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 580px;
    margin: 0 auto;
}

/* === SERVICES PREVIEW === */
.services-preview {
    background: var(--dark-bg-secondary);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.125rem;
}

.service-card {
    background: var(--dark-bg-tertiary);
    padding: 2.25rem;
    border-radius: 16px;
    transition: var(--transition);
    border: 1px solid var(--border-subtle);
    position: relative;
    overflow: hidden;
}

/* Radial glow reveal on hover */
.service-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 0%, rgba(251, 57, 66, 0.07) 0%, transparent 55%);
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
}

.service-card:hover {
    transform: translateY(-6px);
    border-color: rgba(251, 57, 66, 0.38);
    box-shadow: 0 12px 40px rgba(251, 57, 66, 0.13),
                0 0 0 1px rgba(251, 57, 66, 0.08);
}

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

.service-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 1.5rem;
    border-radius: 14px;
    background: rgba(251, 57, 66, 0.07);
    padding: 10px;
    border: 1px solid rgba(251, 57, 66, 0.14);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Photo version of service-icon on home cards */
.service-photo-card {
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 1.5rem;
    position: relative;
}

.service-photo-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.service-card:hover .service-photo-card img {
    transform: scale(1.04);
}

.service-photo-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(8, 8, 8, 0.0) 40%,
        rgba(8, 8, 8, 0.55) 100%
    );
    pointer-events: none;
}

.service-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.service-card h3 {
    color: var(--text-primary);
    margin-bottom: 0.625rem;
    font-size: 1.125rem;
}

.service-card h4 {
    color: var(--secondary-gold);
    font-size: 0.825rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    letter-spacing: 0.03em;
}

.service-card p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    line-height: 1.75;
}

.service-link {
    color: var(--primary-red);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    transition: var(--transition);
    letter-spacing: 0.02em;
}

.service-link:hover {
    color: var(--secondary-gold);
    letter-spacing: 0.04em;
}

/* === 4D FRAMEWORK === */
.framework {
    background: var(--dark-bg);
    position: relative;
    overflow: hidden;
}

.framework::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 900px;
    height: 500px;
    background: radial-gradient(ellipse, rgba(251, 57, 66, 0.035) 0%, transparent 65%);
    pointer-events: none;
}

.framework-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    position: relative;
}

/* Connecting gradient line between steps */
.framework-grid::after {
    content: '';
    position: absolute;
    top: 2.25rem;
    left: calc(12.5% + 0.75rem);
    right: calc(12.5% + 0.75rem);
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(251, 57, 66, 0.35) 20%,
        rgba(224, 150, 37, 0.35) 80%,
        transparent
    );
    pointer-events: none;
    z-index: 0;
}

.framework-step {
    text-align: center;
    padding: 2.25rem 1.75rem;
    background: var(--dark-bg-secondary);
    border-radius: 16px;
    border: 1px solid var(--border-subtle);
    transition: var(--transition);
    position: relative;
    z-index: 1;
}

.framework-step:hover {
    border-color: rgba(251, 57, 66, 0.3);
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(251, 57, 66, 0.08);
}

.step-number {
    font-size: 2.25rem;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.875rem;
    letter-spacing: -0.03em;
    display: block;
    line-height: 1;
}

.framework-step h3 {
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
}

.framework-step p {
    font-size: 0.88rem;
    line-height: 1.75;
}

/* === WHY CHOOSE - BENTO GRID === */
.why-choose {
    background: var(--dark-bg-secondary);
}

.why-choose h2 {
    text-align: center;
    margin-bottom: 2.75rem;
}

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

.bento-card {
    background: var(--dark-bg-tertiary);
    border-radius: 16px;
    border: 1px solid var(--border-subtle);
    padding: 2rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.bento-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 0% 0%, rgba(251, 57, 66, 0.06) 0%, transparent 55%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.bento-card:hover {
    border-color: rgba(251, 57, 66, 0.28);
    transform: translateY(-3px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

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

/* First card is featured and spans 2 columns */
.bento-card:first-child {
    grid-column: span 2;
    background: linear-gradient(
        135deg,
        rgba(251, 57, 66, 0.07) 0%,
        rgba(224, 150, 37, 0.04) 100%
    );
    border-color: rgba(251, 57, 66, 0.18);
    padding: 2.5rem;
}

.bento-card:first-child::before {
    opacity: 1;
    background: radial-gradient(circle at 100% 100%, rgba(224, 150, 37, 0.07) 0%, transparent 55%);
}

.bento-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(251, 57, 66, 0.14), rgba(224, 150, 37, 0.08));
    border: 1px solid rgba(251, 57, 66, 0.22);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.bento-icon svg {
    width: 22px;
    height: 22px;
    stroke: var(--primary-red);
    flex-shrink: 0;
}

.bento-card h3 {
    font-size: 1.05rem;
    margin-bottom: 0.625rem;
    color: var(--text-primary);
}

.bento-card p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.75;
}

/* === CTA SECTION === */
.cta {
    position: relative;
    overflow: hidden;
    background: var(--dark-bg);
    text-align: center;
    padding: 100px 0;
}

/* Radial glow mesh */
.cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 50% 0%, rgba(251, 57, 66, 0.18) 0%, transparent 55%),
        radial-gradient(ellipse at 100% 100%, rgba(224, 150, 37, 0.09) 0%, transparent 50%),
        radial-gradient(ellipse at 0% 100%, rgba(251, 57, 66, 0.07) 0%, transparent 45%);
    pointer-events: none;
}

/* Grid texture overlay */
.cta::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-content h2 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: clamp(2rem, 4vw, 3rem);
}

.cta-content p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
}

.cta .btn-primary {
    background: var(--gradient);
    color: #fff;
    box-shadow: 0 4px 24px rgba(251, 57, 66, 0.4);
}

.cta .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 40px rgba(251, 57, 66, 0.55);
}

/* === FOOTER === */
.footer {
    background: var(--dark-bg-secondary);
    padding: 60px 0 24px;
    position: relative;
}

/* Gradient top border */
.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        var(--border-subtle) 15%,
        rgba(251, 57, 66, 0.2) 50%,
        var(--border-subtle) 85%,
        transparent 100%
    );
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 2.75rem;
    margin-bottom: 3rem;
}

.footer-logo {
    height: 36px;
    margin-bottom: 1rem;
}

.footer-column h4 {
    color: var(--text-tertiary);
    margin-bottom: 1.25rem;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 0.6rem;
}

.footer-column a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
    font-size: 0.875rem;
}

.footer-column a:hover {
    color: var(--text-primary);
}

.footer-column > p {
    font-size: 0.875rem;
}

.footer-description,
.footer-contact {
    font-size: 0.82rem;
    color: var(--text-tertiary);
}

.footer-email,
.footer-domain {
    display: block;
    font-size: 0.82rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s ease;
    margin-top: 0.3rem;
}

.footer-email:hover {
    color: var(--primary-red);
}

.footer-domain:hover {
    color: var(--dark-gold);
}

.info-email-link {
    color: var(--primary-red);
    text-decoration: none;
    font-weight: 500;
}

.info-email-link:hover {
    text-decoration: underline;
}

.footer-bottom {
    text-align: center;
    padding-top: 1.75rem;
    border-top: 1px solid var(--border-subtle);
    color: var(--text-tertiary);
    font-size: 0.78rem;
}

/* === ABOUT PAGE === */
.about-intro { padding: 80px 0; }

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

/* Brand composition card - replaces static image */
.brand-composition {
    position: relative;
    background: var(--dark-bg-tertiary);
    border: 1px solid rgba(251, 57, 66, 0.25);
    border-radius: 20px;
    padding: 2rem;
    overflow: hidden;
    box-shadow: 0 0 0 1px rgba(251, 57, 66, 0.06),
                0 24px 48px rgba(0, 0, 0, 0.4),
                inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

/* Dot-grid texture */
.brand-comp-bg {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(251, 57, 66, 0.12) 1px, transparent 1px);
    background-size: 22px 22px;
    opacity: 0.5;
    pointer-events: none;
}

/* Top-left corner glow */
.brand-composition::before {
    content: '';
    position: absolute;
    top: -40px;
    right: -40px;
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, rgba(224, 150, 37, 0.12) 0%, transparent 70%);
    pointer-events: none;
}

.brand-comp-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    position: relative;
}

.brand-comp-label {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--primary-red);
    white-space: nowrap;
}

.brand-comp-rule {
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, rgba(251, 57, 66, 0.35), transparent);
}

.brand-comp-services {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    position: relative;
}

.brand-comp-service {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 0.75rem 0.875rem;
    border-radius: 10px;
    border: 1px solid transparent;
    transition: background 0.2s ease, border-color 0.2s ease;
    cursor: default;
}

.brand-comp-service:hover {
    background: rgba(251, 57, 66, 0.06);
    border-color: rgba(251, 57, 66, 0.15);
}

.bcs-icon {
    width: 36px;
    height: 36px;
    border-radius: 9px;
    background: linear-gradient(135deg, rgba(251, 57, 66, 0.15), rgba(224, 150, 37, 0.08));
    border: 1px solid rgba(251, 57, 66, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.bcs-icon svg {
    width: 17px;
    height: 17px;
    stroke: var(--primary-red);
}

.bcs-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.bcs-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.2;
}

.bcs-sub {
    font-size: 0.72rem;
    color: var(--text-tertiary);
}

.bcs-arrow {
    opacity: 0;
    transition: opacity 0.2s ease;
}

.brand-comp-service:hover .bcs-arrow {
    opacity: 1;
}

.bcs-arrow svg {
    width: 14px;
    height: 14px;
    stroke: var(--primary-red);
}

.brand-comp-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border-subtle);
    position: relative;
}

.bcf-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.15rem;
    flex: 1;
}

.bcf-num {
    font-size: 1.25rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-red), var(--dark-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.bcf-label {
    font-size: 0.65rem;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.bcf-divider {
    width: 1px;
    height: 32px;
    background: var(--border-subtle);
}

.vision-mission { background: var(--dark-bg-secondary); }

.vm-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 1.5rem;
}

.vm-card {
    background: var(--dark-bg-tertiary);
    padding: 3rem;
    border-radius: 16px;
    text-align: center;
    border: 1px solid var(--border-subtle);
}

.vm-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(251, 57, 66, 0.14), rgba(224, 150, 37, 0.08));
    border: 1px solid rgba(251, 57, 66, 0.22);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.vm-icon svg {
    width: 26px;
    height: 26px;
    stroke: var(--primary-red);
}

.values { background: var(--dark-bg); }

.values-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.125rem;
}

.value-card {
    background: var(--dark-bg-secondary);
    padding: 2.25rem;
    border-radius: 16px;
    border: 1px solid var(--border-subtle);
    transition: var(--transition);
}

.value-card:hover { border-color: rgba(251, 57, 66, 0.28); }

.value-number {
    font-size: 1.2rem;
    color: var(--primary-red);
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.founder { background: var(--dark-bg-secondary); }

.founder-card {
    background: var(--dark-bg-tertiary);
    padding: 3rem;
    border-radius: 16px;
    max-width: 900px;
    margin: 0 auto;
    border: 1px solid var(--border-subtle);
}

.founder-title {
    color: var(--secondary-gold);
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    letter-spacing: 0.02em;
}

.expertise-list,
.projects-list {
    list-style: none;
    padding-left: 0;
    margin: 1rem 0;
}

.expertise-list li,
.projects-list li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-secondary);
    font-size: 0.925rem;
}

.expertise-list li::before,
.projects-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary-red);
}

.advantages { background: var(--dark-bg); }

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

.advantage-card {
    background: var(--dark-bg-secondary);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid var(--border-subtle);
    border-left: 3px solid var(--primary-red);
}

/* === SERVICES PAGE === */
.services-intro { padding: 60px 0; text-align: center; }
.intro-content { max-width: 800px; margin: 0 auto; }
.service-detail { padding: 80px 0; }
.service-detail.alternate { background: var(--dark-bg-secondary); }

.service-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.service-badge {
    display: inline-block;
    background: var(--gradient);
    color: #fff;
    padding: 0.375rem 1rem;
    border-radius: 100px;
    font-weight: 600;
    font-size: 0.78rem;
    margin-bottom: 1.25rem;
    letter-spacing: 0.03em;
}

.service-subtitle {
    color: var(--secondary-gold);
    font-size: 1.15rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

.service-description {
    font-size: 1.025rem;
    line-height: 1.85;
    margin-bottom: 2rem;
}

.service-list { list-style: none; margin: 1.5rem 0; }

.service-list li {
    margin-bottom: 1.25rem;
    padding-left: 1.5rem;
    position: relative;
}

.service-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-red);
    font-weight: 700;
}

.service-list strong {
    color: var(--text-primary);
    display: block;
    margin-bottom: 0.2rem;
    font-size: 0.925rem;
}

.service-visual {
    border-radius: 16px;
    overflow: hidden;
    position: relative;
}

.service-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    min-height: 280px;
    transition: transform 0.6s ease;
}

.service-visual:hover img {
    transform: scale(1.03);
}

.service-visual::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(251,57,66,0.08) 0%, transparent 60%);
    pointer-events: none;
}

/* Legacy fallback (unused) */
.service-visual-legacy img {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
    display: block;
}

.benefits-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 1.75rem;
}

.benefit-tag {
    background: rgba(251, 57, 66, 0.06);
    color: var(--secondary-gold);
    padding: 0.375rem 0.875rem;
    border-radius: 100px;
    font-size: 0.78rem;
    font-weight: 500;
    border: 1px solid rgba(251, 57, 66, 0.18);
}

.pricing-section { background: var(--dark-bg-secondary); }

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

.pricing-card {
    background: var(--dark-bg-tertiary);
    padding: 3rem 2rem;
    border-radius: 16px;
    text-align: center;
    border: 1px solid var(--border-subtle);
    transition: var(--transition);
    position: relative;
}

.pricing-card:hover,
.pricing-card.featured {
    border-color: rgba(251, 57, 66, 0.38);
    box-shadow: 0 8px 32px rgba(251, 57, 66, 0.1);
}

.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient);
    color: #fff;
    padding: 0.375rem 1.25rem;
    border-radius: 100px;
    font-size: 0.78rem;
    font-weight: 600;
    white-space: nowrap;
}

.price-range {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--primary-red);
    margin: 1.5rem 0;
    letter-spacing: -0.02em;
}

.pricing-features {
    list-style: none;
    text-align: left;
    margin-top: 1.75rem;
}

.pricing-features li {
    padding: 0.625rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-secondary);
    font-size: 0.875rem;
    border-bottom: 1px solid var(--border-subtle);
}

.pricing-features li:last-child { border-bottom: none; }

.pricing-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-red);
    font-weight: 700;
}

/* === PORTFOLIO PAGE === */
.portfolio-intro { padding: 60px 0; text-align: center; }
.case-study { padding: 80px 0; }
.case-study.alternate { background: var(--dark-bg-secondary); }
.case-study-header { text-align: center; margin-bottom: 3rem; }

.industry-tag {
    display: inline-block;
    background: var(--primary-red);
    color: #fff;
    padding: 0.375rem 1.25rem;
    border-radius: 100px;
    font-size: 0.78rem;
    font-weight: 600;
    margin-bottom: 1rem;
    letter-spacing: 0.03em;
}

.case-study-subtitle { color: var(--secondary-gold); font-size: 1.15rem; }
.case-study-content { max-width: 900px; margin: 0 auto; }

.case-study-overview, .case-study-challenge, .case-study-solution,
.case-study-results, .case-study-tech { margin-bottom: 3rem; }

.case-study-content ul { list-style: none; margin: 1rem 0; }

.case-study-content ul li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-secondary);
    font-size: 0.925rem;
}

.case-study-content ul li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary-red);
    font-weight: 700;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.125rem;
    margin-top: 2rem;
}

.result-card {
    background: var(--dark-bg-tertiary);
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    border: 1px solid var(--border-subtle);
}

.result-metric {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--primary-red);
    margin-bottom: 0.5rem;
    letter-spacing: -0.03em;
}

.tech-tags { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1rem; }

.tech-tag {
    background: rgba(251, 57, 66, 0.06);
    color: var(--secondary-gold);
    padding: 0.375rem 0.875rem;
    border-radius: 100px;
    font-size: 0.78rem;
    font-weight: 500;
    border: 1px solid rgba(251, 57, 66, 0.18);
}

.industries { background: var(--dark-bg); }

.industries-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.125rem;
}

.industry-card {
    background: var(--dark-bg-secondary);
    padding: 2.25rem;
    border-radius: 16px;
    text-align: center;
    border: 1px solid var(--border-subtle);
    transition: var(--transition);
}

.industry-card:hover {
    border-color: rgba(251, 57, 66, 0.28);
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(251, 57, 66, 0.07);
}

/* === CONTACT PAGE === */
.contact-section { padding: 80px 0; }

.contact-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 4rem;
}

.contact-form-wrapper h2,
.contact-info-wrapper h2 { margin-bottom: 1.5rem; }

.form-description { color: var(--text-secondary); margin-bottom: 2rem; }

.contact-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.form-group { display: flex; flex-direction: column; }
.form-group.full-width { grid-column: 1 / -1; }

.form-group label {
    color: var(--text-primary);
    font-weight: 500;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    background: var(--dark-bg-tertiary);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
    padding: 0.875rem;
    border-radius: 10px;
    font-family: inherit;
    font-size: 0.925rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: rgba(251, 57, 66, 0.5);
    box-shadow: 0 0 0 3px rgba(251, 57, 66, 0.07);
}

.form-group textarea { resize: vertical; }

.contact-form button[type="submit"] {
    grid-column: 1 / -1;
    margin-top: 0.5rem;
}

.contact-info { display: flex; flex-direction: column; gap: 1.125rem; }

.info-card {
    background: var(--dark-bg-secondary);
    padding: 1.75rem;
    border-radius: 16px;
    border: 1px solid var(--border-subtle);
}

.info-icon {
    width: 44px;
    height: 44px;
    border-radius: 11px;
    background: linear-gradient(135deg, rgba(251, 57, 66, 0.14), rgba(224, 150, 37, 0.08));
    border: 1px solid rgba(251, 57, 66, 0.22);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.75rem;
}

.info-icon svg {
    width: 20px;
    height: 20px;
    stroke: var(--primary-red);
}
.info-card h3 { margin-bottom: 0.5rem; font-size: 1rem; }
.info-card p { margin-bottom: 0.25rem; font-size: 0.875rem; }
.info-detail { font-size: 0.78rem; color: var(--text-tertiary); }

.consultation-cta,
.engagement-options {
    background: var(--dark-bg-secondary);
    padding: 2rem;
    border-radius: 16px;
    margin-top: 1.125rem;
    border: 1px solid var(--border-subtle);
}

.consultation-benefits { list-style: none; margin-top: 1rem; }

.consultation-benefits li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.consultation-benefits li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-red);
}

.engagement-list { display: flex; flex-direction: column; gap: 0.75rem; margin-top: 1rem; }

.engagement-item {
    padding: 1rem;
    background: var(--dark-bg-tertiary);
    border-radius: 10px;
    border: 1px solid var(--border-subtle);
}

.engagement-item strong {
    color: var(--text-primary);
    display: block;
    margin-bottom: 0.25rem;
    font-size: 0.875rem;
}

.engagement-item p { color: var(--primary-red); margin: 0; font-weight: 600; font-size: 0.85rem; }

.why-contact { background: var(--dark-bg-secondary); }

.why-contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.125rem;
}

.why-card {
    background: var(--dark-bg-tertiary);
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    border: 1px solid var(--border-subtle);
}

.faq-section { background: var(--dark-bg); }

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.125rem;
}

.faq-item {
    background: var(--dark-bg-secondary);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid var(--border-subtle);
}

.faq-item h3 { color: var(--primary-red); font-size: 0.95rem; margin-bottom: 0.75rem; }

/* === ANIMATIONS === */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(22px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-8px); }
    60% { transform: translateX(-50%) translateY(-4px); }
}

@keyframes scroll {
    0%   { opacity: 1; transform: translateX(-50%) translateY(0); }
    100% { opacity: 0; transform: translateX(-50%) translateY(10px); }
}

@keyframes orbFloat1 {
    0%, 100% { transform: translate(0, 0)    scale(1); }
    33%      { transform: translate(45px, -45px) scale(1.06); }
    66%      { transform: translate(-25px, 30px) scale(0.94); }
}

@keyframes orbFloat2 {
    0%, 100% { transform: translate(0, 0)     scale(1); }
    33%      { transform: translate(-50px, 35px) scale(0.94); }
    66%      { transform: translate(30px, -45px) scale(1.06); }
}

@keyframes orbFloat3 {
    0%, 100% { transform: translate(0, 0); }
    50%      { transform: translate(-45px, -45px) scale(1.12); }
}

@keyframes pulseDot {
    0%, 100% { opacity: 1; transform: scale(1); box-shadow: 0 0 6px rgba(251, 57, 66, 0.6); }
    50%      { opacity: 0.55; transform: scale(1.4); box-shadow: 0 0 10px rgba(251, 57, 66, 0.3); }
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
    .about-grid,
    .service-layout { grid-template-columns: 1fr; gap: 2.5rem; }

    .contact-grid { grid-template-columns: 1fr; }
    .vm-grid      { grid-template-columns: 1fr; }

    .framework-grid { grid-template-columns: repeat(2, 1fr); }
    .framework-grid::after { display: none; }

    .bento-grid { grid-template-columns: repeat(2, 1fr); }
    .bento-card:first-child { grid-column: span 2; }

    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .stat-item:nth-child(2)::after { display: none; }
}

@media (max-width: 768px) {
    .navbar {
        top: 10px;
        width: calc(100% - 24px);
        padding: 0.75rem 1.125rem;
        border-radius: 12px;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(8, 8, 8, 0.97);
        backdrop-filter: blur(24px);
        -webkit-backdrop-filter: blur(24px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 0.5rem;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 999;
        border-radius: 0;
    }

    .nav-menu.active { transform: translateX(0); }

    .nav-link {
        font-size: 1.05rem;
        padding: 0.75rem 1.75rem;
    }

    .mobile-menu-toggle { display: flex; }

    .hero { padding: 120px 0 80px; }
    .hero-cta { flex-direction: column; align-items: center; }

    .contact-form { grid-template-columns: 1fr; }

    section { padding: 64px 0; }

    .bento-grid { grid-template-columns: 1fr; }
    .bento-card:first-child { grid-column: span 1; }

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

    .services-grid, .values-grid, .advantages-grid,
    .pricing-grid, .industries-grid, .why-contact-grid,
    .faq-grid, .results-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .container { padding: 0 16px; }

    .navbar { width: calc(100% - 16px); }

    h1 { font-size: 2.125rem; }
    h2 { font-size: 1.75rem; }

    .btn { padding: 0.75rem 1.5rem; font-size: 0.9rem; }

    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .stat-item  { padding: 1.75rem 1rem; }

    .hero-badge { font-size: 0.72rem; }
}

/* === SCROLL TO TOP BUTTON === */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--gradient);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    z-index: 999;
    box-shadow: 0 4px 16px rgba(251, 57, 66, 0.3);
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 24px rgba(251, 57, 66, 0.4);
}

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

    html {
        scroll-behavior: auto;
    }
}

/* ============================================
   21ST.DEV INSPIRED ENHANCEMENTS - HOME PAGE
   ============================================ */

/* === WORD FADE ANIMATION === */
@keyframes wordFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0px);
    }
}

/* === TYPEWRITER CURSOR === */
.tw-cursor {
    display: inline-block;
    width: 2px;
    height: 0.85em;
    background: var(--secondary-gold);
    margin-left: 2px;
    vertical-align: middle;
    border-radius: 1px;
    animation: cursorBlink 0.75s step-end infinite;
}

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

/* === HERO CURSOR SPOTLIGHT === */
.hero-spotlight {
    position: absolute;
    width: 520px;
    height: 520px;
    background: radial-gradient(
        circle at center,
        rgba(251, 57, 66, 0.07) 0%,
        rgba(224, 150, 37, 0.04) 40%,
        transparent 65%
    );
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.6s ease;
    z-index: 0;
}

/* === MARQUEE === */
.marquee-section {
    overflow: hidden;
    background: var(--dark-bg);
    padding: 1.625rem 0;
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
    -webkit-mask-image: linear-gradient(
        90deg, transparent 0%, black 7%, black 93%, transparent 100%
    );
    mask-image: linear-gradient(
        90deg, transparent 0%, black 7%, black 93%, transparent 100%
    );
}

.marquee-row {
    overflow: hidden;
    margin-bottom: 0.5rem;
}
.marquee-row:last-child { margin-bottom: 0; }

.marquee-track {
    display: flex;
    gap: 0.5rem;
    width: max-content;
    animation: marqueeLeft 30s linear infinite;
    will-change: transform;
}

.marquee-track.marquee-reverse {
    animation-direction: reverse;
    animation-duration: 38s;
}

.marquee-track:hover { animation-play-state: paused; }

@keyframes marqueeLeft {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

.marquee-item {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.875rem;
    background: var(--dark-bg-tertiary);
    border: 1px solid var(--border-subtle);
    border-radius: 100px;
    font-size: 0.78rem;
    color: var(--text-secondary);
    white-space: nowrap;
    transition: border-color 0.3s ease, color 0.3s ease;
    cursor: default;
    user-select: none;
}

.marquee-item:hover {
    border-color: rgba(255, 255, 255, 0.14);
    color: var(--text-primary);
}

.marquee-item-alt {
    background: rgba(251, 57, 66, 0.04);
    border-color: rgba(251, 57, 66, 0.1);
    color: var(--secondary-gold);
}

.marquee-item-alt:hover {
    border-color: rgba(251, 57, 66, 0.32);
    color: var(--secondary-gold);
}

/* === BORDER BEAM (Service Cards) === */
@property --border-angle {
    syntax: '<angle>';
    inherits: false;
    initial-value: 0deg;
}

.service-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    padding: 1px;
    background: conic-gradient(
        from var(--border-angle),
        transparent 70%,
        var(--primary-red) 82%,
        var(--secondary-gold) 91%,
        transparent 100%
    );
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
    animation: borderBeam 3s linear infinite;
    animation-play-state: paused;
    pointer-events: none;
    z-index: 3;
}

.service-card:hover::after {
    opacity: 1;
    animation-play-state: running;
}

@keyframes borderBeam {
    to { --border-angle: 360deg; }
}

/* === SHIMMER BUTTON === */
.btn-primary::after {
    content: '';
    position: absolute;
    top: 0;
    left: -110%;
    width: 55%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transform: skewX(-20deg);
    animation: shimmerBtn 5s ease-in-out infinite;
    animation-delay: 2.5s;
    pointer-events: none;
}

/* Don't double-shimmer the nav pill button */
.nav-link.btn-primary::after { display: none; }

@keyframes shimmerBtn {
    0%   { left: -110%; opacity: 1; }
    45%  { left: 160%;  opacity: 1; }
    46%  { opacity: 0; }
    100% { left: 160%;  opacity: 0; }
}

/* ===================================
   SERVICES TABS
   =================================== */
.services-tabs-section {
    padding: 4rem 0 0;
}

.services-tabs-section .intro-content {
    text-align: center;
    max-width: 780px;
    margin: 0 auto 3rem;
}

.services-tab-nav {
    display: flex;
    gap: 0.375rem;
    background: var(--dark-bg-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: 14px;
    padding: 6px;
    margin-bottom: 2.5rem;
    overflow-x: auto;
    scrollbar-width: none;
}

.services-tab-nav::-webkit-scrollbar { display: none; }

.tab-btn {
    flex: 1;
    min-width: 130px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding: 0.75rem 1rem;
    background: transparent;
    border: none;
    border-radius: 10px;
    color: var(--text-secondary);
    font-family: inherit;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.tab-btn:hover {
    background: var(--dark-bg-tertiary);
    color: var(--text-primary);
}

.tab-btn.active {
    background: var(--dark-bg-elevated);
    color: var(--text-primary);
    box-shadow: inset 0 0 0 1px var(--border-soft);
}

.tab-btn .tab-num {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tab-panel {
    display: none;
    animation: tabFadeIn 0.35s ease;
    padding-bottom: 4rem;
}

.tab-panel.active { display: block; }

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

/* ===================================
   FAQ ACCORDION
   =================================== */
.accordion {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.accordion-item {
    background: var(--dark-bg-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    overflow: hidden;
    transition: border-color 0.3s ease;
}

.accordion-item.open {
    border-color: var(--border-soft);
}

.accordion-trigger {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    font-weight: 500;
    text-align: left;
    cursor: pointer;
    transition: var(--transition);
}

.accordion-trigger:hover { color: var(--secondary-gold); }

.accordion-chevron {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    color: var(--text-secondary);
    transition: transform 0.3s ease;
}

.accordion-item.open .accordion-chevron {
    transform: rotate(180deg);
    color: var(--primary-red);
}

.accordion-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.accordion-body p {
    padding: 0 1.5rem 1.5rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ===================================
   FOUNDER CARD - ENHANCED
   =================================== */
.founder-card {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 2.5rem;
    background: var(--dark-bg-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
}

.founder-card::before {
    content: '';
    position: absolute;
    top: -60px;
    right: -60px;
    width: 220px;
    height: 220px;
    background: radial-gradient(circle, rgba(251, 57, 66, 0.12) 0%, transparent 70%);
    pointer-events: none;
}

.founder-avatar-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.founder-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-red), var(--dark-gold));
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.founder-initials {
    font-size: 2.25rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.02em;
}

.founder-badges {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
}

.cert-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.375rem 0.75rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    font-size: 0.7rem;
    color: var(--text-secondary);
    white-space: nowrap;
}

.cert-badge svg {
    width: 12px;
    height: 12px;
    stroke: var(--primary-red);
    flex-shrink: 0;
}

.founder-info h3 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
}

.founder-title {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.founder-bio-text {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1.25rem;
}

.founder-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.skill-tag {
    padding: 0.3rem 0.75rem;
    background: rgba(251, 57, 66, 0.08);
    border: 1px solid rgba(251, 57, 66, 0.2);
    border-radius: 6px;
    font-size: 0.75rem;
    color: var(--primary-red);
    font-weight: 500;
}

.founder-projects h4 {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-tertiary);
    margin-bottom: 0.75rem;
}

.project-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.project-chip {
    display: flex;
    flex-direction: column;
    padding: 0.625rem 1rem;
    background: var(--dark-bg-tertiary);
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    min-width: 140px;
}

.project-chip strong {
    font-size: 0.875rem;
    color: var(--text-primary);
}

.project-chip span {
    font-size: 0.7rem;
    color: var(--text-secondary);
    margin-top: 0.15rem;
}

/* ===================================
   RESULT METRIC ANIMATION (portfolio)
   =================================== */
.result-metric {
    transition: color 0.3s ease;
}

.result-metric.counting {
    color: var(--secondary-gold);
}

/* ===================================
   RESPONSIVE: TABS + FOUNDER
   =================================== */
@media (max-width: 768px) {
    .services-tab-nav {
        flex-wrap: nowrap;
        justify-content: flex-start;
    }

    .tab-btn {
        min-width: 100px;
        font-size: 0.72rem;
    }

    .founder-card {
        grid-template-columns: 1fr;
    }

    .founder-avatar-col {
        flex-direction: row;
        align-items: flex-start;
        flex-wrap: wrap;
        gap: 1rem;
    }

    .founder-badges {
        flex-direction: row;
        width: auto;
    }
}

/* ===================================
   MARQUEE ICON STYLES
   =================================== */
.marquee-item {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* Simple Icons (tech brand SVG images) */
.si-icon {
    width: 15px;
    height: 15px;
    display: inline-block;
    flex-shrink: 0;
    filter: brightness(0) invert(0.65);
}

/* Lucide icons in marquee */
.marquee-item svg {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
    stroke: var(--text-secondary);
}

.marquee-item-alt svg {
    stroke: rgba(252, 213, 120, 0.6);
}
