/* ================================
   AECENDIR - Premium Dark Theme
   Using Inter font with CSS animations
   ================================ */

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

:root {
    /* Colors */
    --bg-primary: #050505;
    --bg-secondary: #0a0a0a;
    --bg-tertiary: #111111;
    --bg-card: #0d0d0d;
    --bg-card-hover: #141414;

    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-muted: rgba(255, 255, 255, 0.5);
    --text-subtle: rgba(255, 255, 255, 0.3);

    --accent: #ff5c35;
    --accent-hover: #ff7a5a;
    --accent-glow: rgba(255, 92, 53, 0.4);
    --accent-subtle: rgba(255, 92, 53, 0.1);

    --border: rgba(255, 255, 255, 0.06);
    --border-hover: rgba(255, 255, 255, 0.12);
    --border-accent: rgba(255, 92, 53, 0.3);

    /* Gradients */
    --gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-2: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-3: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --gradient-accent: linear-gradient(135deg, #ff5c35 0%, #ff8a65 100%);

    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'JetBrains Mono', 'SF Mono', monospace;

    /* Spacing */
    --section-padding: clamp(80px, 12vw, 140px);
    --container-max: 1400px;
    --container-padding: clamp(20px, 5vw, 48px);

    /* Transitions */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

    /* Durations */
    --duration-fast: 0.2s;
    --duration-normal: 0.4s;
    --duration-slow: 0.8s;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background: var(--bg-primary);
    overflow-x: hidden;
    overscroll-behavior-x: none;
}

body {
    font-family: var(--font-primary);
    background: transparent;
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    overscroll-behavior-x: none;
    position: relative;
    width: 100%;
    max-width: 100vw;
}

/* ================================
   SPLINE BACKGROUND
   ================================ */

.spline-background {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.6s ease;
    overflow: hidden;
    -webkit-clip-path: inset(0);
    clip-path: inset(0);
}

.spline-background.loaded {
    opacity: 1;
}

.spline-background canvas {
    width: 100% !important;
    height: 100% !important;
    max-width: 100vw !important;
    display: block;
    pointer-events: auto;
    object-fit: cover;
}

/* Fade spline as user scrolls past hero */
.spline-background.faded {
    opacity: 0.3;
}

/* Ensure navbar stays on top */
.navbar {
    z-index: 100;
}

/* Hero has transparent background to show Spline */
.hero {
    background: transparent !important;
    position: relative;
    z-index: 1;
}

/* Gradient fade at bottom of hero */
.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 300px;
    background: linear-gradient(to bottom, transparent 0%, var(--bg-primary) 100%);
    pointer-events: none;
    z-index: 1;
}

/* Other sections with gradient backgrounds */
.services {
    position: relative;
    z-index: 2;
    background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    overflow: hidden;
}

.services::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(180deg, rgba(255, 92, 53, 0.08) 0%, transparent 100%);
    pointer-events: none;
}

.work {
    position: relative;
    z-index: 2;
    background: var(--bg-secondary);
    overflow: hidden;
}

.work::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255, 92, 53, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.work::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.research {
    position: relative;
    z-index: 2;
    background: linear-gradient(180deg, var(--bg-primary) 0%, #0a0812 100%);
    overflow: hidden;
}

.research::before {
    content: '';
    position: absolute;
    top: 20%;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 400px;
    background: radial-gradient(ellipse, rgba(255, 92, 53, 0.06) 0%, transparent 60%);
    pointer-events: none;
}

.about {
    position: relative;
    z-index: 2;
    background: var(--bg-secondary);
    overflow: hidden;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: -20%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(240, 147, 251, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

.contact {
    position: relative;
    z-index: 2;
    background: linear-gradient(180deg, var(--bg-primary) 0%, #080508 100%);
    overflow: hidden;
}

.contact::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 1000px;
    height: 600px;
    background: radial-gradient(ellipse, rgba(255, 92, 53, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.footer {
    position: relative;
    z-index: 2;
    background: #030303;
}

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

/* Selection */
::selection {
    background: var(--accent);
    color: var(--bg-primary);
}

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

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.75rem, 7vw, 5rem); }
h2 { font-size: clamp(2rem, 4.5vw, 3.25rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }

p {
    color: var(--text-secondary);
    font-size: clamp(1rem, 1.1vw, 1.125rem);
    font-weight: 400;
}

em {
    font-style: italic;
    color: var(--accent);
}

/* ================================
   CSS ANIMATIONS
   ================================ */

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

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.animate-fade-up {
    animation: fadeInUp 0.8s var(--ease-out) forwards;
    opacity: 0;
}

.animate-fade-in {
    animation: fadeIn 0.8s var(--ease-out) forwards;
    opacity: 0;
}

.animate-delay-1 { animation-delay: 0.1s; }
.animate-delay-2 { animation-delay: 0.2s; }
.animate-delay-3 { animation-delay: 0.3s; }
.animate-delay-4 { animation-delay: 0.4s; }
.animate-delay-5 { animation-delay: 0.6s; }

/* Scroll reveal */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s var(--ease-out);
}

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

/* ================================
   NAVIGATION
   ================================ */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 1.25rem 0;
    transition: all var(--duration-normal) var(--ease-out);
}

.navbar.scrolled {
    padding: 1rem 0;
    background: rgba(5, 5, 5, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

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

.logo {
    font-family: var(--font-mono);
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    text-decoration: none;
    color: var(--text-primary);
    transition: opacity var(--duration-fast) ease;
}

.logo:hover { opacity: 0.7; }

.logo-bracket { color: var(--accent); }

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

.nav-menu a {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.9375rem;
    font-weight: 500;
    transition: color var(--duration-fast) ease;
    position: relative;
}

.nav-menu a:not(.nav-cta)::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: width var(--duration-normal) var(--ease-out);
}

.nav-menu a:not(.nav-cta):hover {
    color: var(--text-primary);
}

.nav-menu a:not(.nav-cta):hover::after {
    width: 100%;
}

.nav-cta {
    background: var(--text-primary);
    color: var(--bg-primary) !important;
    padding: 0.625rem 1.25rem;
    border-radius: 100px;
    font-weight: 500;
    transition: all var(--duration-fast) ease;
}

.nav-cta:hover {
    background: var(--accent);
    color: var(--text-primary) !important;
    transform: translateY(-1px);
}

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

.mobile-menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: all var(--duration-fast) ease;
    transform-origin: center;
}

/* ================================
   HERO SECTION
   ================================ */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 140px 0 100px;
    position: relative;
    overflow: hidden;
    background: transparent;
}

.hero .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

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

.hero-eyebrow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

.eyebrow-dot {
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

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

.hero-title {
    margin-bottom: 1.5rem;
}

.hero-title .title-line {
    display: block;
    overflow: visible;
    padding-right: 0.1em;
}

.hero-description {
    font-size: clamp(1.0625rem, 1.3vw, 1.1875rem);
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.875rem 1.5rem;
    font-family: var(--font-primary);
    font-size: 0.9375rem;
    font-weight: 500;
    text-decoration: none;
    border: none;
    border-radius: 100px;
    cursor: pointer;
    transition: all var(--duration-fast) var(--ease-out);
    position: relative;
    overflow: hidden;
}

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

.btn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform var(--duration-fast) var(--ease-out);
}

.btn:hover .btn-icon {
    transform: translateX(3px);
}

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

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px var(--accent-glow);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-hover);
}

.btn-outline:hover {
    background: var(--text-primary);
    color: var(--bg-primary);
    border-color: var(--text-primary);
}

.btn-full {
    width: 100%;
    justify-content: center;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: var(--container-padding);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.6875rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.2em;
}

.scroll-line {
    width: 1px;
    height: 50px;
    background: var(--border);
    position: relative;
    overflow: hidden;
}

.scroll-dot {
    position: absolute;
    top: 0;
    left: -2px;
    width: 5px;
    height: 5px;
    background: var(--accent);
    border-radius: 50%;
    animation: scrollDot 2s ease-in-out infinite;
}

@keyframes scrollDot {
    0% { top: 0; opacity: 1; }
    100% { top: 100%; opacity: 0; }
}

/* ================================
   SECTION HEADERS
   ================================ */

.section-header {
    margin-bottom: 4rem;
}

.section-header.centered {
    text-align: center;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.section-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 1rem;
}

.section-title {
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.0625rem;
    color: var(--text-secondary);
    max-width: 550px;
}

.section-header.centered .section-subtitle {
    margin-left: auto;
    margin-right: auto;
}

/* ================================
   SERVICES SECTION
   ================================ */

.services {
    padding: var(--section-padding) 0;
    background: var(--bg-primary);
}

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

.service-card {
    background: linear-gradient(135deg, var(--bg-card) 0%, rgba(13, 13, 13, 0.8) 100%);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
    transition: all var(--duration-normal) var(--ease-out);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.service-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--accent-subtle) 0%, transparent 50%);
    opacity: 0;
    transition: opacity var(--duration-normal) ease;
}

.service-card:hover {
    border-color: var(--border-hover);
    background: var(--bg-card-hover);
    transform: translateY(-4px);
}

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

.service-large {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 2.5rem;
    padding: 2.5rem;
}

.service-number {
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    color: var(--accent);
    margin-bottom: 1.25rem;
    display: block;
    letter-spacing: 0.1em;
}

.service-title {
    font-size: clamp(1.25rem, 2vw, 1.5rem);
    color: var(--text-primary);
    margin-bottom: 0.875rem;
}

.service-description {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 0.9375rem;
}

.service-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.service-list li {
    font-size: 0.8125rem;
    padding: 0.375rem 0.875rem;
    background: var(--accent-subtle);
    border: 1px solid var(--border-accent);
    border-radius: 100px;
    color: var(--accent);
}

.service-visual {
    display: flex;
    align-items: center;
    justify-content: center;
}

.visual-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    width: 120px;
}

.grid-cell {
    aspect-ratio: 1;
    background: var(--bg-tertiary);
    border-radius: 6px;
    transition: all var(--duration-normal) ease;
}

.grid-cell.active {
    background: var(--accent);
    box-shadow: 0 0 15px var(--accent-glow);
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--accent);
    text-decoration: none;
    transition: all var(--duration-fast) ease;
}

.service-link:hover { gap: 0.75rem; }

.service-link svg {
    transition: transform var(--duration-fast) var(--ease-out);
}

.service-link:hover svg {
    transform: translateX(3px);
}

.service-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.25rem;
}

.service-tags span {
    font-size: 0.75rem;
    padding: 0.3125rem 0.75rem;
    background: var(--bg-tertiary);
    border-radius: 100px;
    color: var(--text-muted);
}

/* ================================
   PROJECTS / WORK SECTION
   ================================ */

.work {
    padding: var(--section-padding) 0;
    background: var(--bg-secondary);
}

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

.project-card {
    background: linear-gradient(145deg, var(--bg-card) 0%, rgba(10, 10, 10, 0.9) 100%);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 2rem;
    transition: all var(--duration-normal) var(--ease-out);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.project-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-accent);
    opacity: 0;
    transition: opacity var(--duration-normal) ease;
}

.project-card:hover {
    border-color: var(--border-hover);
    background: var(--bg-card-hover);
    transform: translateY(-6px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.project-card:hover::after {
    opacity: 1;
}

.project-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.project-logo {
    flex-shrink: 0;
}

.logo-placeholder {
    width: 56px;
    height: 56px;
    background: var(--gradient-accent);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    transition: transform var(--duration-fast) ease;
}

.logo-placeholder.gradient-1 { background: var(--gradient-1); }
.logo-placeholder.gradient-2 { background: var(--gradient-2); }
.logo-placeholder.gradient-3 { background: var(--gradient-3); }

.project-card:hover .logo-placeholder {
    transform: scale(1.05);
}

.project-meta {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.project-client {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-primary);
}

.project-location {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.project-content {
    flex: 1;
}

.project-name {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.875rem;
    letter-spacing: -0.01em;
}

.project-description {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1.25rem;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.project-tags span {
    font-size: 0.6875rem;
    font-weight: 500;
    padding: 0.3125rem 0.625rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: 100px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all var(--duration-fast) ease;
}

.project-card:hover .project-tags span {
    border-color: var(--border-hover);
}

.project-footer {
    margin-top: auto;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
    text-decoration: none;
    transition: all var(--duration-fast) ease;
}

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

.project-link svg {
    transition: transform var(--duration-fast) var(--ease-out);
}

.project-link:hover svg {
    transform: translate(3px, -3px);
}

/* ================================
   RESEARCH SECTION
   ================================ */

.research {
    padding: var(--section-padding) 0;
    background: var(--bg-primary);
}

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

@media (max-width: 1200px) {
    .research-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .research-grid {
        grid-template-columns: 1fr;
    }
}

.research-card {
    background: linear-gradient(135deg, var(--bg-card) 0%, rgba(15, 10, 20, 0.9) 100%);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.75rem;
    transition: all var(--duration-normal) var(--ease-out);
    backdrop-filter: blur(10px);
}

.research-card:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
}

.research-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-subtle);
    border-radius: 10px;
    margin-bottom: 1.25rem;
    color: var(--accent);
}

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

.research-card p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.research-tag {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.35rem 0.75rem;
    border-radius: 4px;
    margin-bottom: 1rem;
    background: var(--accent-subtle);
    color: var(--accent);
}

.research-tag.tag-applied {
    background: rgba(102, 126, 234, 0.15);
    color: #667eea;
}

/* ================================
   ABOUT SECTION
   ================================ */

.about {
    padding: var(--section-padding) 0;
    background: var(--bg-secondary);
}

.about-layout {
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    gap: 5rem;
    align-items: start;
}

.about-text {
    margin-bottom: 2.5rem;
}

.about-text p {
    font-size: 1.0625rem;
    line-height: 1.8;
    margin-bottom: 1.25rem;
}

.about-values {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.value-item {
    display: flex;
    align-items: flex-start;
    gap: 0.875rem;
}

.value-marker {
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    margin-top: 0.5rem;
    flex-shrink: 0;
}

.value-content {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.value-content strong {
    font-weight: 600;
    color: var(--text-primary);
}

.value-content span {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* Stats */
.about-stats {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2.5rem;
    position: sticky;
    top: 100px;
}

.stat-item {
    padding: 1.25rem 0;
    border-bottom: 1px solid var(--border);
}

.stat-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.stat-item:first-child {
    padding-top: 0;
}

.stat-number {
    font-size: clamp(2.5rem, 4vw, 3rem);
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1;
    letter-spacing: -0.02em;
    display: block;
}

.stat-suffix {
    color: var(--accent);
}

.stat-label {
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
    display: block;
}

/* ================================
   CONTACT SECTION
   ================================ */

.contact {
    padding: var(--section-padding) 0;
    background: var(--bg-primary);
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: start;
}

.contact-content .section-title {
    max-width: 400px;
}

.contact-description {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    max-width: 380px;
}

.email-link {
    font-size: clamp(1.125rem, 1.8vw, 1.375rem);
    font-weight: 500;
    color: var(--text-primary);
    text-decoration: none;
    border-bottom: 2px solid var(--accent);
    padding-bottom: 3px;
    transition: all var(--duration-fast) ease;
    display: inline-block;
}

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

/* Contact Form */
.contact-form-wrapper {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.form-group input,
.form-group textarea {
    padding: 0.875rem 1rem;
    font-family: var(--font-primary);
    font-size: 0.9375rem;
    color: var(--text-primary);
    background: var(--bg-tertiary);
    border: 1px solid var(--border);
    border-radius: 8px;
    transition: all var(--duration-fast) ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-subtle);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-subtle);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

/* ================================
   FOOTER
   ================================ */

.footer {
    background: #030303;
    padding: 3.5rem 0;
    border-top: 1px solid var(--border);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.footer-brand .logo {
    margin-bottom: 0.5rem;
    display: inline-block;
}

.footer-tagline {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

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

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

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

.footer-info {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

/* ================================
   RESPONSIVE DESIGN
   ================================ */

@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: 1fr;
    }

    .service-large {
        grid-template-columns: 1fr;
    }

    .about-layout,
    .contact-layout {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

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

    .stat-item {
        padding: 1rem 0;
        border-bottom: none;
        text-align: center;
    }
}

@media (max-width: 768px) {
    html, body {
        touch-action: pan-y;
        -webkit-overflow-scrolling: touch;
    }

    /* Hide large decorative pseudo-elements on mobile to prevent overflow */
    .work::before,
    .work::after,
    .research::before,
    .about::before,
    .contact::before {
        display: none;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--bg-primary);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 1.5rem;
        opacity: 0;
        visibility: hidden;
        transition: all var(--duration-normal) var(--ease-out);
    }

    .nav-menu.active {
        opacity: 1;
        visibility: visible;
    }

    .nav-menu a {
        font-size: 1.5rem;
        font-weight: 500;
    }

    .nav-cta {
        font-size: 1rem !important;
    }

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

    .mobile-menu-toggle.active span:first-child {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .mobile-menu-toggle.active span:last-child {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .hero {
        padding: 120px 0 60px;
    }

    .scroll-indicator {
        display: none;
    }

    .hero-actions {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

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

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

    .about-stats {
        grid-template-columns: 1fr;
    }

    .stat-item {
        border-bottom: 1px solid var(--border);
        text-align: left;
    }

    .stat-item:last-child {
        border-bottom: none;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .service-card,
    .project-card {
        padding: 1.5rem;
    }

    .service-large,
    .project-featured {
        padding: 1.5rem;
    }

    .research-card {
        padding: 1.25rem;
    }

    .contact-form-wrapper {
        padding: 1.5rem;
    }

    .stat-number {
        font-size: 2.25rem;
    }
}

/* Animated Background Elements */
@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

@keyframes glow {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.6; }
}

.services .container,
.work .container,
.research .container,
.about .container,
.contact .container {
    position: relative;
    z-index: 1;
}

/* Subtle grid pattern overlay for sections */
.services::after,
.research::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
    z-index: 0;
}

/* Glowing accent line at section tops */
.services > .container::before,
.work > .container::before,
.research > .container::before {
    content: '';
    position: absolute;
    top: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: 0.5;
}

/* 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;
    }

    .marquee-content {
        animation: none;
    }

    .animate-fade-up,
    .animate-fade-in {
        opacity: 1;
        transform: none;
    }
}
