/* 
   Aimavrik Static Site Styles
   Minimalist / Apple-inspired UI
*/

:root {
    --font-sans: 'Inter', sans-serif;

    /* Colors */
    --bg-page: #F5F7F9;
    --text-primary: #111111;
    --text-secondary: #555555;
    --text-muted: #9CA3AF;
    --white: #FFFFFF;
    --border: rgba(0, 0, 0, 0.08);
    --border-hover: rgba(0, 0, 0, 0.15);
    --success: #10B981;
    --danger: #EF4444;

    /* Effects */
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.02), 0 1px 2px -1px rgba(0, 0, 0, 0.02);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -4px rgba(0, 0, 0, 0.025);
    --backdrop-blur: 16px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

html,
body {
    width: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    /* Fallback */
    overflow-x: clip;
    /* Modern browsers */
    position: relative;
    max-width: 100%;
}

html {
    scroll-behavior: smooth;
    height: -webkit-fill-available;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-page);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
    min-height: -webkit-fill-available;
    letter-spacing: -0.01em;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    outline: none;
}

/* Accessibility Focus */
*:focus-visible {
    outline: 2px solid var(--text-primary);
    outline-offset: 4px;
    border-radius: 4px;
}

ul {
    list-style: none;
}

img,
svg {
    display: block;
}

/* --- Typography Utilities --- */
.text-balance {
    text-wrap: balance;
}

.text-center {
    text-align: center;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

/* --- Layout Utilities --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

@media (max-width: 767px) {
    .container {
        padding: 0 20px;
        width: 100%;
        max-width: 100%;
    }

    /* Extra tightness for very small screens */
    @media (max-width: 360px) {
        .container {
            padding: 0 16px;
        }
    }
}

/* --- Sections General --- */
.section {
    padding: 120px 0;
}

@media (max-width: 767px) {
    .section {
        padding: 80px 0;
    }
}

.section-sm {
    padding: 80px 0;
}

/* ... existing styles ... */

.grid-2 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    /* Tighter mobile rhythm */
}

/* ... existing styles ... */

.visual-card {
    background: rgba(255, 255, 255, 0.5);
    /* Slightly more opaque */
    backdrop-filter: blur(16px);
    /* Stronger blur */
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 24px;
    min-height: 320px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    /* Better spacing for content */
    color: var(--text-primary);
    padding: 32px;
    overflow: hidden;
    position: relative;
    width: 100%;
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.4s ease;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.01), 0 2px 4px -1px rgba(0, 0, 0, 0.01);
}

.visual-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.02);
    border-color: rgba(255, 255, 255, 0.9);
}

.grid-3 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

/* Method Section Grid - 4 Columns Layout */
.process-grid-4 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

@media (min-width: 768px) {
    .grid-2 {
        grid-template-columns: 1fr 1fr;
        align-items: center;
    }

    .grid-3 {
        grid-template-columns: repeat(3, 1fr);
    }

    /* Tablet: 2 columns */
    .process-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {

    /* Desktop: 4 columns - Strict Horizontal Layout */
    .process-grid-4 {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Grid Stabilization */
.grid-2,
.grid-3,
.process-grid-4 {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
}

.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.v-center {
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* --- Background --- */
.bg-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
    /* Strict clipping */
}

.grid-pattern {
    background-size: 40px 40px;
    background-image: linear-gradient(to right, rgba(0, 0, 0, 0.02) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(0, 0, 0, 0.02) 1px, transparent 1px);
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
    animation: float 12s ease-in-out infinite;
    max-width: 80vw;
    max-height: 80vw;
}

@media (max-width: 767px) {
    .orb {
        filter: blur(60px);
        opacity: 0.25;
    }
}

.orb-blue {
    top: -5%;
    left: -10%;
    width: min(600px, 80vw);
    height: min(600px, 80vw);
    background: #E0E7FF;
}

.orb-indigo {
    top: 15%;
    right: -10%;
    width: min(500px, 70vw);
    height: min(500px, 70vw);
    background: #EEF2FF;
    animation-delay: 5s;
}

.orb-gray {
    bottom: -5%;
    left: 10%;
    width: min(700px, 90vw);
    height: min(700px, 90vw);
    background: #F5F5F5;
}

/* --- Navigation --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 24px 0;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}

.navbar.scrolled {
    background: rgba(245, 247, 249, 0.85);
    backdrop-filter: blur(var(--backdrop-blur));
    -webkit-backdrop-filter: blur(var(--backdrop-blur));
    padding: 14px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-primary);
}

.logo-text {
    font-weight: 600;
    font-size: 1.25rem;
    letter-spacing: -0.04em;
}

.nav-links {
    display: none;
    gap: 40px;
    /* Increased from 32px for better breathability */
}

.nav-links a {
    font-size: 0.95rem;
    /* Slight increase for readability */
    font-weight: 500;
    color: var(--text-secondary);
    transition: color 0.2s ease;
    letter-spacing: -0.01em;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -4px;
    left: 0;
    background-color: var(--text-primary);
    transition: width 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text-primary);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text-primary);
}

.nav-actions {
    display: none;
}

.mobile-menu-toggle {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-primary);
    padding: 8px;
    margin-right: -8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (min-width: 768px) {

    .nav-links,
    .nav-actions {
        display: flex;
        align-items: center;
    }

    .mobile-menu-toggle {
        display: none;
    }
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-page);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
    transform: translateX(100%);
    /* Changed to SLIDE FROM RIGHT for better mobile feel */
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    visibility: hidden;
}

.mobile-menu.active {
    transform: translateX(0);
    visibility: visible;
}

.mobile-close {
    position: absolute;
    top: 24px;
    right: 24px;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
}

.mobile-links a {
    font-size: 1.5rem;
    font-weight: 600;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-weight: 500;
    transition: transform 0.2s cubic-bezier(0.23, 1, 0.32, 1),
        box-shadow 0.3s cubic-bezier(0.23, 1, 0.32, 1),
        background-color 0.3s ease;
    cursor: pointer;
    border: 1px solid transparent;
}

.btn-primary {
    background: var(--text-primary);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-primary:hover {
    background: #000;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.btn-primary:active {
    transform: scale(0.96);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
}

.btn-ghost:hover {
    color: var(--text-primary);
    background: rgba(0, 0, 0, 0.03);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.875rem;
}

.btn-lg {
    padding: 14px 32px;
    font-size: min(1.125rem, 4.5vw);
    min-height: 54px;
    /* Better touch target */
}

@media (max-width: 767px) {
    .btn-lg {
        padding: 16px 28px;
        width: 100%;
        /* Most primary CTAs should be full width on mobile */
        max-width: 320px;
    }
}

.btn-full {
    width: 100%;
}

.btn-pill {
    border-radius: 100px;
    padding: 16px 40px;
    font-size: 1rem;
    min-width: 240px;
}

/* CTA Helper Text */
.cta-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.cta-helper {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
}

.full-width {
    width: 100%;
}

.form-actions {
    display: flex;
    justify-content: center;
    margin-top: 24px;
}

.shadow-lg {
    box-shadow: var(--shadow-lg);
}

.group:hover .icon-hover {
    transform: translate(2px, -2px);
    transition: transform 0.2s;
}

/* --- Hero --- */
.hero {
    position: relative;
    padding: 160px 0 100px;
    text-align: center;
    overflow: hidden;
}

@media (max-width: 767px) {
    .hero {
        padding: 120px 0 60px;
    }
}

@media (max-width: 360px) {
    .hero {
        padding: 100px 0 40px;
    }
}

/* Compact hero for simpler pages (Studio, Work, Service pages) */
.hero-compact {
    padding: 140px 0 80px;
}

.hero-bg-graphic {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 900px;
    height: 900px;
    z-index: -1;
    opacity: 0.6;
    color: var(--text-primary);
}

.hero-blueprint {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    color: var(--text-primary);
}

.orbit {
    animation: spin 40s linear infinite;
    transform-origin: 200px 200px;
}

.pulse-slow {
    animation: pulse 4s ease-in-out infinite;
}

.node-sat {
    color: var(--text-muted);
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 100%;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.hero-title {
    font-size: min(2.75rem, 12vw);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.05em;
    margin-bottom: 24px;
    width: 100%;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin-bottom: 48px;
    line-height: 1.5;
    letter-spacing: -0.02em;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 4.25rem;
    }
}

@media (max-width: 767px) {
    .hero-title {
        font-size: 2.25rem;
    }

    .hero {
        padding: 140px 0 80px;
    }
}

/* --- Sections General --- */
.section {
    padding: 100px 0;
}

@media (max-width: 767px) {
    .section {
        padding: 60px 0;
    }
}

.section-sm {
    padding: 60px 0;
}

.border-bottom {
    border-bottom: 1px solid var(--border);
}

.section-heading {
    font-size: min(2.5rem, 9vw);
    /* Slightly larger for authority */
    font-weight: 600;
    line-height: 1.1;
    margin-bottom: 20px;
    /* Tighter to description */
    letter-spacing: -0.04em;
    width: 100%;
    hyphens: auto;
}

.text-muted {
    color: var(--text-muted);
}

.section-desc {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
    /* Increased separation from next element */
    max-width: 580px;
    /* Slightly wider for better reading flow */
    line-height: 1.6;
    letter-spacing: -0.01em;
}

.section-desc:last-child {
    margin-bottom: 0;
}

/* Trust Section (New) */
.trust-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.trust-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 0.2em;
}

.trust-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 32px;
    background: rgba(255, 255, 255, 0.5);
    padding: 24px 40px;
    border-radius: 100px;
    border: 1px solid var(--border);
    backdrop-filter: blur(8px);
}

@media (max-width: 767px) {
    .trust-grid {
        gap: 20px;
        padding: 20px 24px;
        border-radius: 24px;
        width: 100%;
    }
}

.trust-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    line-height: 1.2;
}

.trust-val {
    font-weight: 700;
    color: var(--text-primary);
    font-size: 1.25rem;
}

.trust-key {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.trust-separator {
    width: 1px;
    height: 32px;
    background: var(--border);
    display: none;
}

.trust-stack {
    display: flex;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
}

.trust-stack span {
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.9rem;
    letter-spacing: -0.01em;
}

@media (min-width: 768px) {
    .trust-separator {
        display: block;
    }
}

/* Reality Check */
.check-list {
    border-left: 2px solid var(--border);
    padding-left: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.check-item {
    color: var(--text-secondary);
}

.check-item strong {
    color: var(--text-primary);
    font-weight: 600;
}

.visual-card {
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 24px;
    min-height: 320px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    color: var(--text-primary);
    padding: 32px 24px;
    overflow: hidden;
    position: relative;
    width: 100%;
}

@media (max-width: 767px) {
    .visual-card {
        padding: 32px 20px;
        min-height: 280px;
    }
}

/* Services */
.section-header {
    margin-bottom: 64px;
}

.overline {
    text-transform: uppercase;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    display: block;
    margin-bottom: 12px;
}

.section-title {
    font-size: min(2.5rem, 10vw);
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.1;
    word-wrap: break-word;
}

/* SHARED CARD STYLE */
.card {
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 24px;
    padding: 32px;
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.4s cubic-bezier(0.22, 1, 0.36, 1),
        border-color 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.card:hover {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(0, 0, 0, 0.08);
    transform: translateY(-4px);
    /* Subtle lift, not distracting */
    box-shadow: 0 16px 32px -4px rgba(0, 0, 0, 0.06);
    /* Softer shadow */
}

.card-icon-wrapper {
    width: 64px;
    height: 64px;
    margin-bottom: 24px;
    color: var(--text-primary);
}

.card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.card-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 24px;
    min-height: 60px;
    line-height: 1.6;
}

.card-footer {
    border-top: 1px solid var(--border);
    padding-top: 16px;
    margin-top: auto;
}

.card-detail {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Work Card */
.work-card {
    grid-column: span 1;
}

@media (min-width: 1024px) {
    .work-card-large {
        grid-column: span 2;
    }
}

/* Process / Method Cards (Specific) */
.process-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 32px;
    height: 100%;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
}

.process-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--text-primary);
}

.process-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-muted);
    opacity: 0.3;
    margin-bottom: 16px;
    line-height: 1;
}

.process-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 12px;
}

/* Qualification Section */
.qualification-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
}

@media (min-width: 768px) {
    .qualification-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.qual-col {
    background: rgba(255, 255, 255, 0.5);
    border-radius: 24px;
    padding: 40px;
    border: 1px solid var(--border);
}

.qual-col h3 {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    font-size: 1.25rem;
    font-weight: 600;
}

.qual-col ul {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.qual-col li {
    position: relative;
    padding-left: 24px;
    color: var(--text-secondary);
    font-size: 1rem;
}

.qual-col li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--text-muted);
    font-weight: bold;
}

.qual-good {
    border-color: rgba(16, 185, 129, 0.2);
    background: rgba(16, 185, 129, 0.02);
}

.qual-bad {
    border-color: rgba(239, 68, 68, 0.2);
    background: rgba(239, 68, 68, 0.02);
}

.icon-success {
    color: var(--success);
    width: 24px;
    height: 24px;
}

.icon-danger {
    color: var(--danger);
    width: 24px;
    height: 24px;
}

/* Featured */
.featured-card {
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 32px;
    padding: 0;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
}

.featured-bg-glow {
    position: absolute;
    top: 0;
    right: 0;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(224, 231, 255, 0.5) 0%, transparent 70%);
    pointer-events: none;
}

.featured-content {
    display: flex;
    flex-direction: column;
}

.featured-text {
    padding: 40px;
    flex: 1;
}

.badge-dark {
    display: inline-block;
    padding: 4px 12px;
    background: #000;
    color: #fff;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 24px;
}

.featured-text h3 {
    font-size: min(2.5rem, 10vw);
    font-weight: 600;
    margin-bottom: 16px;
    line-height: 1.1;
}

.featured-text p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.feature-tags {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.feature-tags span {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 8px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.featured-mockup {
    background: #F0F2F5;
    padding: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
}

/* CSS Browser Mockup */
.browser-mockup {
    width: 100%;
    max-width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    background: #fff;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    display: flex;
    overflow: hidden;
    transform: perspective(1000px) rotateY(-5deg) rotateX(2deg);
    transition: transform 0.5s ease;
}

@media (max-width: 767px) {
    .browser-mockup {
        transform: none;
        max-width: 100%;
        width: 100%;
        margin: 0 auto;
    }
}

.featured-card:hover .browser-mockup {
    transform: perspective(1000px) rotateY(0) rotateX(0);
}

.mockup-sidebar {
    width: 60px;
    background: #F9FAFB;
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 16px;
    gap: 12px;
}

.mockup-icon {
    width: 32px;
    height: 32px;
    background: #E5E7EB;
    border-radius: 6px;
}

.mockup-icon-white {
    width: 32px;
    height: 32px;
    background: #fff;
    border: 1px solid #E5E7EB;
    border-radius: 6px;
}

.mockup-body {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.mockup-header-bar {
    height: 40px;
    border-bottom: 1px solid var(--border);
}

.mockup-content-grid {
    padding: 16px;
    display: flex;
    gap: 16px;
    flex: 1;
    background: #F3F4F6;
}

.mockup-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mockup-line {
    height: 8px;
    background: #E5E7EB;
    border-radius: 4px;
    margin-bottom: 8px;
}

.w-full {
    width: 100%;
}

.w-half {
    width: 60%;
}

.mockup-card {
    background: #fff;
    border-radius: 4px;
    height: 60px;
    border: 1px solid #E5E7EB;
}

@media (min-width: 768px) {
    .featured-content {
        flex-direction: row;
    }
}

/* About */
.manifesto-heading {
    font-size: 2.5rem;
    line-height: 1.2;
    font-weight: 600;
    margin-bottom: 32px;
}

.manifesto-text p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 24px;
    max-width: 700px;
}

/* Contact */
.contact-section {
    padding-top: 160px;
}

.contact-wrapper {
    max-width: 500px;
    margin: 0 auto;
    text-align: center;
}

.contact-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 48px;
}

.contact-form {
    background: var(--white);
    padding: 24px 20px;
    border-radius: 24px;
    box-shadow: var(--shadow-md);
    text-align: left;
    width: 100%;
}

@media (max-width: 360px) {
    .contact-form {
        padding: 20px 16px;
    }
}

@media (min-width: 768px) {
    .contact-form {
        padding: 40px;
    }
}

/* Form Submit Button Specifics - Thicker and more prominent */
.contact-form button[type="submit"] {
    padding: 18px 24px;
    font-size: 1.125rem;
    min-height: 60px;
    line-height: 1.2;
}

.form-group {
    margin-bottom: 20px;
}

@media (max-width: 767px) {
    .form-group {
        margin-bottom: 28px;
    }

    /* Increased vertical spacing on mobile */
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 8px;
}

/* Input, Textarea, Select Styling */
.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: 10px;
    font-family: inherit;
    font-size: 1rem;
    line-height: 1.5;
    transition: border-color 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease;
    background: rgba(250, 250, 250, 0.8);
    color: var(--text-primary);
    -webkit-appearance: none;
    appearance: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
    opacity: 0.7;
}

/* Add custom arrow for select */
.form-group select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23525252' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    padding-right: 40px;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--text-primary);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(17, 17, 17, 0.04);
}

.form-helper {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 6px;
}

.hidden {
    display: none;
}

/* Security: Honeypot */
.hp-field {
    display: block;
    position: absolute;
    left: -9999px;
    top: -9999px;
    height: 1px;
    width: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    z-index: -1;
}

.form-success {
    background: #ECFDF5;
    color: #065F46;
    padding: 24px;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    font-weight: 500;
    text-align: center;
    border: 1px solid rgba(16, 185, 129, 0.2);
    margin-bottom: 0;
}

.form-error-box {
    background: #FEF2F2;
    color: #991B1B;
    padding: 16px;
    border-radius: 12px;
    border: 1px solid #FEE2E2;
    margin-bottom: 24px;
    font-size: 0.9rem;
    display: none;
    align-items: center;
    gap: 12px;
}

.form-error-box.active {
    display: flex;
}

/* Loading State for Buttons */
.btn-loading {
    position: relative;
    color: transparent !important;
    pointer-events: none;
}

.btn-loading::after {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    top: calc(50% - 10px);
    left: calc(50% - 10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: btn-spin 0.6s linear infinite;
}

@keyframes btn-spin {
    to {
        transform: rotate(360deg);
    }
}

/* Input validation states */
.form-group input:invalid:not(:placeholder-shown) {
    border-color: #F87171;
}

/* Footer */
footer {
    border-top: 1px solid var(--border);
    padding-top: 80px;
    margin-top: 80px;
}

@media (max-width: 767px) {
    footer {
        padding-top: 60px;
        margin-top: 60px;
        text-align: center;
    }

    .footer-links-group {
        flex-direction: column;
        gap: 40px;
        align-items: center;
    }
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 40px;
    padding-bottom: 60px;
}

.footer-brand {
    flex: 1;
}

.flex-align-center {
    display: flex;
    align-items: center;
}

.footer-links-group {
    display: flex;
    gap: 64px;
}

.col {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.col-head {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.col a {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.col a:hover {
    color: var(--text-primary);
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding: 32px 20px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

@media (max-width: 767px) {
    .footer-bottom {
        padding: 24px 16px 120px;
        /* Space for sticky CTA */
        text-align: center;
    }
}

@media (min-width: 768px) {
    .footer-content {
        flex-direction: row;
    }
}

/* --- Animations --- */
@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
        /* Reduced for calmer motion */
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(24px);
        /* Reduced for subtler entrance */
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-slide-up {
    animation: slideUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    /* Slightly faster, premium easing */
}

.reveal-on-scroll {
    opacity: 0;
    transform: translateY(16px);
    /* Subtle, refined reveal distance */
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
    /* Explicit properties, no layout shift */
}

.reveal-on-scroll.active {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 {
    transition-delay: 0.08s;
    /* Tighter stagger for snappier feel */
}

.delay-2 {
    transition-delay: 0.16s;
}

.delay-3 {
    transition-delay: 0.24s;
}

/* Accessibility: Respect user's motion preferences */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .reveal-on-scroll {
        opacity: 1;
        transform: none;
    }

    .animate-slide-up {
        animation: none;
        opacity: 1;
        transform: none;
    }
}

/* Mobile Sticky CTA */
.mobile-sticky-cta {
    display: none;
    /* Hidden on desktop */
}

/* Mobile-specific sticky CTA with proper overflow containment */
@media (max-width: 767px) {
    .mobile-sticky-cta {
        /* Display */
        display: flex;
        align-items: center;
        justify-content: center;

        /* Fixed positioning - edge-pinned, NO transforms */
        position: fixed;
        bottom: calc(24px + env(safe-area-inset-bottom, 0px));
        left: 20px;
        right: 20px;

        /* Viewport containment - critical for no horizontal scroll */
        max-width: calc(100vw - 40px);
        box-sizing: border-box;

        /* Button styling */
        background-color: var(--text-primary);
        color: var(--white);
        padding: 18px 24px;
        text-align: center;
        border-radius: 100px;
        font-weight: 600;
        font-size: 1rem;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
        z-index: 999;
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        transition: opacity 0.3s ease, box-shadow 0.3s ease;
        text-decoration: none;
        white-space: nowrap;
        border: 1px solid rgba(255, 255, 255, 0.1);

        /* Overflow containment on this element */
        overflow-x: hidden;
    }

    .mobile-sticky-cta:active {
        opacity: 0.92;
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    }

    /* Ensure content isn't hidden behind the sticky button */
    footer {
        padding-bottom: 140px !important;
    }
}

/* WhatsApp Float Button */
.whatsapp-float {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    /* WhatsApp Green */
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}

.whatsapp-float:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.whatsapp-float:active {
    transform: scale(0.95);
}

@media (max-width: 767px) {
    .whatsapp-float {
        bottom: 110px;
        /* Position above the sticky CTA */
        right: 24px;
        width: 50px;
        height: 50px;
    }
}

/* --- Project Proof Modules (New) --- */
.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}

.tech-tag {
    font-size: 0.75rem;
    font-family: monospace;
    color: var(--text-secondary);
    padding: 4px 12px;
    border: 1px solid var(--border);
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(4px);
}

.arch-diagram-container {
    margin-bottom: 32px;
    padding: 20px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(4px);
}

.arch-label {
    display: block;
    text-align: center;
    font-size: 0.7rem;
    font-family: monospace;
    color: var(--text-muted);
    margin-top: 12px;
    letter-spacing: 0.05em;
}

.metric-strip {
    margin-top: 32px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    padding: 20px;
    background: rgba(245, 247, 249, 0.5);
    border: 1px solid var(--border);
    border-radius: 12px;
}

.metric-box {
    display: flex;
    flex-direction: column;
}

.metric-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.metric-value {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
}

.metric-old {
    color: var(--text-muted);
    text-decoration: line-through;
    opacity: 0.7;
}

/* --- Mobile QA + Containment Fixes --- */

/* 1. Keyboard Safety: Hide sticky CTA when screen height is small (e.g. keyboard open) */
@media (max-height: 500px) {
    .mobile-sticky-cta {
        display: none !important;
    }
}

/* 2. iOS Zoom Prevention: Enforce 16px font size on inputs */
@media screen and (max-width: 767px) {

    input,
    select,
    textarea {
        font-size: 16px !important;
    }

    /* Ensure forms have bottom padding so last field isn't hidden behind keyboard/bars */
    .contact-form {
        padding-bottom: 24px;
    }
}

/* 3. Horizontal Scroll Containment - ROOT CAUSE FIXED */
/* Note: Global overflow-x hidden removed. The mobile sticky CTA now uses
   proper edge-pinned positioning (left:0; right:0;) instead of transform-based
   centering, eliminating the viewport overflow at source. */
html,
body {
    /* overflow-x: hidden; -- REMOVED: was masking the real issue */
    width: 100%;
    position: relative;
    -webkit-overflow-scrolling: touch;
}

/* 4. Menu Overflow Safety */
/* Ensure the mobile menu content is accessible on short screens */
@media (max-height: 600px) {
    .mobile-menu {
        justify-content: flex-start;
        padding-top: 80px;
        overflow-y: auto;
    }
}