:root {
    /* Colors - Premium Monochrome & Gradients */
    --color-primary: #000000;
    --color-secondary: #ffffff;
    --color-text-main: #111111;
    --color-text-light: #666666;
    --color-background: #E8EBF0;
    /* Light cool grey/blue base */

    --color-accent: #000000;
    /* Monochrome accent */
    --color-accent-hover: #333333;

    /* Compatibility Variables */
    --color-surface: #ffffff;
    --color-border: #d1d5db;
    --color-text-muted: #64748b;

    /* Gradient assets */
    --gradient-mesh: radial-gradient(at 0% 0%, hsla(210, 40%, 85%, 1) 0, transparent 50%),
        radial-gradient(at 100% 0%, hsla(190, 40%, 85%, 1) 0, transparent 50%),
        radial-gradient(at 50% 100%, hsla(240, 20%, 90%, 1) 0, transparent 50%);

    /* Typography */
    --font-heading: 'Sora', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 20px;
    --radius-lg: 32px;
    --radius-full: 9999px;

    /* Transitions */
    --transition-smooth: cubic-bezier(0.4, 0, 0.2, 1) 0.4s;
}

/* Utilities Definitions */
.text-muted {
    color: var(--color-text-muted);
}

/* Reset */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* 1. Global Default Cursor */
body,
html {
    cursor: url('../assets/cursor/png_cursor_normal.png'), auto;
}

/* 2. Interactive/Hover State (Should also be Normal Cursor usually, replacing the Hand) */
a,
button,
.btn,
[role="button"],
input[type="submit"],
label,
select,
summary {
    cursor: url('../assets/cursor/png_cursor_normal.png'), pointer !important;
}

/* 3. Pressed/Active State */
a:active,
button:active,
.btn:active,
[role="button"]:active,
input[type="submit"]:active,
label:active {
    cursor: url('../assets/cursor/png_cursor_press.png'), pointer !important;
}

/* Text cursor only for actual input fields */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="search"],
input[type="tel"],
input[type="url"],
input[type="number"],
textarea,
[contenteditable="true"] {
    cursor: text;
}

/* Content Protection - Disable selection & copying */
*,
*::before,
*::after {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
}

/* Allow selection in input fields */
input,
textarea,
[contenteditable="true"] {
    -webkit-user-select: text !important;
    -moz-user-select: text !important;
    -ms-user-select: text !important;
    user-select: text !important;
}



/* Disable image dragging */
img {
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    pointer-events: none;
}

/* Remove selection highlight globally */
::selection {
    background: transparent;
}

::-moz-selection {
    background: transparent;
}

/* Restore selection highlight for inputs */
input::selection,
textarea::selection {
    background: rgba(0, 0, 0, 0.2);
    color: inherit;
}

input::-moz-selection,
textarea::-moz-selection {
    background: rgba(0, 0, 0, 0.2);
    color: inherit;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-background);
    background-image: var(--gradient-mesh);
    background-attachment: fixed;
    /* Parallax-like fix for background */
    color: var(--color-text-main);
    line-height: 1.5;
    overflow-x: hidden;
    min-height: 100vh;

    /* Hide scrollbar but keep scrolling functionality */
    -ms-overflow-style: none;
    /* IE and Edge */
    scrollbar-width: none;
    /* Firefox */
}

/* Hide scrollbar for Chrome, Safari and Opera */
body::-webkit-scrollbar {
    display: none;
}

html {
    /* Also hide scrollbar on html element */
    -ms-overflow-style: none;
    scrollbar-width: none;
}

html::-webkit-scrollbar {
    display: none;
}

h1,
h2,
h3,
h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    /* Bold weight */
    letter-spacing: -0.02em;
    color: var(--color-primary);
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Utilities */
.container {
    width: 92%;
    max-width: 1600px;
    margin: 0 auto;
}

.text-center {
    text-align: center;
}

.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.grid {
    display: grid;
    gap: var(--spacing-md);
}

/* Buttons - Monochrome System */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: var(--radius-full);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all var(--transition-smooth);
    border: 1px solid transparent;
}

/* Helper for button container */
.btn-group {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-secondary);
}

.btn-primary:hover {
    background-color: #333;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.btn-secondary {
    background-color: var(--color-secondary);
    color: var(--color-primary);
    border-color: transparent;
    /* Clean look */
}

.btn-secondary:hover {
    background-color: #f0f0f0;
    transform: translateY(-2px);
}

.tech-tag {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 50px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    font-size: 0.8rem;
    color: #64748b;
    font-weight: 500;
}

/* Navigation - Clean Split Layout */
/* Navigation - Clean Split Layout */
.navbar {
    position: absolute;
    /* Changed from fixed to absolute so it scrolls away */
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 0;
    transition: transform 0.4s ease-in-out, background 0.3s ease;

    /* Fully Transparent as requested */
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom: none;
}

.navbar.navbar-hidden {
    transform: translateY(-100%);
}

/* Tablet/Mobile: Fixed Navbar */
@media (max-width: 1400px) {
    .navbar {
        position: fixed;
        /* Ensure it sits on top */
        top: 0;
        width: 100%;
    }
}

/* Scroll to Top Button */
.scroll-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: #000;
    color: #fff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    z-index: 9999;
    font-size: 1.2rem;
    border: none;
}

.scroll-top-btn i {
    color: #ffffff !important;
}

.scroll-top-btn.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top-btn:hover {
    background: #333;
    transform: translateY(-5px);
}

/* Optional: Add slight background on scroll via JS later, 
   for now keep it clean transparent or subtle gradient if user wants, 
   but user asked for "everything new/normal". 
   Let's stick to transparent or slight blur for readability if content scrolls under?
   User said "entferne hintergrund", usually implies the shape background. 
   I will add a very subtle glass effect to the whole bar for usability, or leave transparent.
*/
.navbar.scrolled {
    background: rgba(232, 235, 240, 0.9);
    backdrop-filter: blur(10px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.nav-container {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    width: 92%;
    max-width: 1600px;
    margin: 0 auto;
}

.nav-left {
    display: flex;
    justify-content: flex-start;
    gap: 3rem;
}

.nav-right {
    display: flex;
    justify-content: flex-end;
    gap: 3rem;
    align-items: center;
}

.nav-link {
    font-size: 0.9rem;
    font-weight: 600;
    /* Sora/Inter standard bold */
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-primary);
    /* Black */
    position: relative;
    padding: 0.6rem 1.2rem;
    /* Added padding for pill shape */
    border-radius: 30px;
    /* Rounded corners */
    transition: all 0.3s ease;
}

/* Specific styling for the Contact Button in Navbar */
/* We target the last link in nav-right assuming it's Kontakt based on provided HTML structure 
   OR we can add a specific class in HTML. Since I can't edit HTML simultaneously in one tool call easily 
   without potentially missing context, I will target the last-child of .nav-right a 
   BUT standard .btn class usage is better. 
   
   PROPER FIX: The HTML already uses .btn class on the SECOND contact link in some files, 
   but user wants "den kontakt reiter" (the nav item) to be a button. 
   
   Let's create a .nav-btn class or style the specific element.
*/
.nav-link.nav-cta {
    background: #000;
    color: #fff;
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    opacity: 1;
    /* Ensure visibility */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 1rem;
    /* Separation */
    transition: transform 0.2s ease, background-color 0.2s;
}

.nav-link.nav-cta:hover {
    transform: translateY(-2px);
    background: #222;
    opacity: 1;
}

/* Rounded Pill Hover/Active State */
.nav-link:not(.nav-cta):hover,
.nav-link:not(.nav-cta).active {
    background-color: #e2e8f0;
    /* Visible slate-200 gray */
    color: #1a1a1a;
}



/* Logo - Clean & Center */
.nav-center {
    display: flex;
    justify-content: center;
    align-items: center;
    /* No backgrounds, no shapes */
}

.logo {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.8rem;
    letter-spacing: -0.04em;
    text-transform: uppercase;
    color: var(--color-primary);
    /* Black */
    text-decoration: none;
}

/* Error fixed */

/* .logo duplicate removed */

/* Hero Section - Refined */
.hero {
    height: 100vh;
    min-height: 800px;
    /* Increased min-height */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    /* Aligns content from top to control via padding */
    align-items: center;
    text-align: center;
    position: relative;
    padding-top: 220px;
    /* Significantly increased to push text down */
    overflow: hidden;
    /* For animation containment */
}

.hero h1 {
    font-size: clamp(2rem, 4vw, 3.5rem);
    /* Significantly reduced size */
    line-height: 1.2;
    text-transform: uppercase;
    font-weight: 800;
    margin-bottom: 2rem;
    max-width: 900px;
    /* Narrower width */
    background: linear-gradient(135deg, #000 0%, #444 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    /* Subtle gradient text */
    background-clip: text;
    color: #000;
    /* Fallback */
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
    z-index: 10;
}

/* START MOCKUP REDESIGN - HIGH DETAIL */
.hero-animation-wrapper {
    width: 100%;
    max-width: 900px;
    /* Reduced from 1200px */
    aspect-ratio: 16/9;
    /* Standard ratio */
    min-height: 350px;
    /* Reduced min-height */
    position: relative;
    margin-top: 2rem;
    perspective: 1000px;
}

.mockup-window {
    width: 85%;
    /* Slightly smaller width relative to container */
    height: 100%;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 50px 100px -20px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(0, 0, 0, 0.05);
    /* Deeper shadow */
    margin: 0 auto;
    overflow: hidden;
    position: relative;
    transform-style: preserve-3d;
    transform: rotateX(8deg) scale(0.95);
    transition: transform 4s cubic-bezier(0.1, 0.8, 0.1, 1);
}

.hero-animation-wrapper:hover .mockup-window {
    transform: rotateX(0deg) scale(1);
}

.mockup-header {
    height: 44px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    padding: 0 1.2rem;
    gap: 1.2rem;
}

.dots {
    display: flex;
    gap: 8px;
}

.dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.1);
}

.dot.red {
    background: #ff5f56;
}

.dot.yellow {
    background: #ffbd2e;
}

.dot.green {
    background: #27c93f;
}

.address-bar {
    flex: 1;
    height: 26px;
    background: #fff;
    border-radius: 6px;
    border: 1px solid #e6e6e6;
    max-width: 500px;
    margin: 0 auto;
    position: relative;
}

.address-bar::after {
    content: '';
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 40%;
    height: 6px;
    background: #f1f5f9;
    border-radius: 2px;
}

/* Detailed Mockup Body */
.mockup-body {
    padding: 0;
    display: flex;
    flex-direction: column;
    height: calc(100% - 44px);
    /* Adjusted for new header height */
    overflow: hidden;
    background: #ffffff;
}

.mock-nav {
    height: 70px;
    border-bottom: 1px solid #f1f5f9;
    padding: 0 3rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.mock-logo {
    width: 32px;
    height: 32px;
    background: #111;
    border-radius: 8px;
    position: relative;
}

.mock-logo::after {
    content: '';
    position: absolute;
    left: 40px;
    top: 8px;
    width: 80px;
    height: 16px;
    background: #333;
    border-radius: 4px;
}

.mock-links {
    display: flex;
    gap: 1.5rem;
}

.link-pill {
    width: 60px;
    height: 10px;
    background: #e2e8f0;
    border-radius: 4px;
}

.mock-hero-split {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 0;
    height: 380px;
    background: #fff;
}

.mock-content-side {
    padding: 4rem 3rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.mock-badge {
    width: 80px;
    height: 24px;
    background: #e0f2fe;
    border-radius: 12px;
    border: 1px solid #bae6fd;
}

/* Blue tint badge */
.mock-h1 {
    width: 90%;
    height: 32px;
    background: #111;
    border-radius: 6px;
}

.mock-h1.secondary {
    width: 60%;
}

.mock-p-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 0.5rem;
}

.mock-p {
    width: 100%;
    height: 10px;
    background: #cbd5e1;
    border-radius: 3px;
}

.mock-p.short {
    width: 80%;
}

.mock-btn-group {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.mock-btn-primary {
    width: 140px;
    height: 44px;
    background: #111;
    border-radius: 8px;
}

.mock-btn-outline {
    width: 140px;
    height: 44px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
}

.mock-visual-side {
    padding: 2rem 3rem 2rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mock-img-placeholder {
    width: 100%;
    height: 100%;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.08);
}

.mock-img-placeholder::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    bottom: 20px;
    border: 2px dashed #cbd5e1;
    border-radius: 8px;
}

.mock-img-overlay {
    position: absolute;
    bottom: 30px;
    left: 30px;
    width: 160px;
    height: 50px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* NEW: Real Text Mockup Styles */
.mock-logo-text {
    font-weight: 800;
    font-size: 1.2rem;
    color: #0f172a;
    letter-spacing: -0.03em;
}

.mock-link-text {
    font-size: 0.9rem;
    font-weight: 500;
    color: #64748b;
    color: #64748b;
}

.mock-badge-text {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    background: #eff6ff;
    color: #3b82f6;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 20px;
    margin-bottom: 0.5rem;
}

.mock-h1-text {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.1;
    color: #0f172a;
    letter-spacing: -0.04em;
    margin-bottom: 1rem;
}

.mock-p-text {
    font-size: 1rem;
    color: #64748b;
    line-height: 1.6;
    max-width: 400px;
    margin-bottom: 2rem;
}

.mock-btn-primary-text {
    background: #0f172a;
    color: #fff;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mock-btn-outline-text {
    border: 1px solid #e2e8f0;
    color: #0f172a;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
}

.mock-img-overlay-text {
    position: absolute;
    bottom: 2rem;
    left: 2rem;
    background: #fff;
    padding: 1rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.1);
    border: 1px solid #f1f5f9;
    z-index: 2;
}


/* Floating Elements - More Movement */
.floating-ui-card {
    position: absolute;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.12);
    border-radius: 16px;
    padding: 1.5rem;
    z-index: 20;
    /* Increased Animation Range */
    animation: floatBig 8s ease-in-out infinite;
}

/* Large Floater Wrappers (Positioning & Rotation) */
.float-stats-wrapper {
    position: absolute;
    top: -5%;
    right: -30%;
    z-index: 5;
    transform: rotate(6deg);
}

.float-user-wrapper {
    position: absolute;
    top: 25%;
    left: -30%;
    z-index: 5;
    transform: rotate(-6deg);
}

/* Inner Cards (Visuals + JS Magnetic) */
.float-stats {
    width: 220px;
    animation: none;
    transition: none;
}

.float-user {
    width: 200px;
    flex-direction: row;
    align-items: center;
    gap: 1rem;
    animation: none;
    transition: none;
}

/* Background Particles (Random Decor) */
.particle-wrapper {
    position: absolute;
    z-index: 5;
}

.bg-particle {
    /* Visuals Only */
    position: relative;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    font-size: 0.85rem;
    font-weight: 600;
    color: #334155;
}

/* Particle Positions (Spread out to avoid overlap) */
.bg-p-1 {
    top: 12%;
    left: 5%;
}

.bg-p-2 {
    top: 18%;
    right: 3%;
}

.bg-p-3 {
    bottom: 55%;
    left: 8%;
}

.bg-p-4 {
    bottom: 10%;
    right: 5%;
}

/* ============================================ */
/* RESPONSIVE: Floating Elements               */
/* ============================================ */

/* Hide ALL floating elements at 1400px or smaller */
@media (max-width: 1400px) {

    .particle-wrapper,
    .bg-particle,
    .bg-p-1,
    .bg-p-2,
    .bg-p-3,
    .bg-p-4,
    .float-stats-wrapper,
    .float-user-wrapper,
    .floating-ui-card {
        display: none !important;
    }
}


@keyframes floatParticle1 {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }

    50% {
        transform: translate(20px, -30px) rotate(4deg);
    }
}

@keyframes floatParticle2 {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }

    50% {
        transform: translate(-20px, -25px) rotate(-4deg);
    }
}

/* Detailed content for floaters */
.f-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.f-circle {
    width: 32px;
    height: 32px;
    background: #f1f5f9;
    border-radius: 50%;
}

.f-lines {
    flex: 1;
    margin-left: 10px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    justify-content: center;
}

.f-line {
    height: 6px;
    background: #e2e8f0;
    border-radius: 2px;
    width: 100%;
}

.f-line.short {
    width: 60%;
}

.f-chart-area {
    display: flex;
    align-items: flex-end;
    gap: 4px;
    height: 50px;
    margin-top: 1rem;
}

.f-bar {
    flex: 1;
    background: #f1f5f9;
    border-radius: 3px;
    height: 30%;
    transition: height 0.5s;
}

.f-bar:nth-child(2) {
    height: 60%;
    background: #111;
}

.f-bar:nth-child(3) {
    height: 40%;
}

.f-bar:nth-child(4) {
    height: 80%;
}

@keyframes floatBig {

    0%,
    100% {
        transform: translateY(0) rotate(5deg);
    }

    50% {
        transform: translateY(-40px) rotate(8deg);
        /* Much bigger movement */
    }
}

@keyframes floatBigReverse {

    /* For left side */
    0%,
    100% {
        transform: translateY(0) rotate(-5deg);
    }

    50% {
        transform: translateY(-40px) rotate(-8deg);
    }
}

.float-stats {
    animation-name: floatBig;
}

.float-user {
    animation-name: floatBigReverse;
}


/* ============================================ */
/* MOBILE NAVIGATION & RESPONSIVE              */
/* ============================================ */

/* --- Default State (Desktop) --- */
/* Ensure mobile elements are hidden on desktop */
.nav-mobile-logo,
.hamburger-btn,
.mobile-menu {
    display: none !important;
}

/* Ensure desktop elements are visible */
.nav-left,
.nav-center,
.nav-right {
    display: flex;
}

/* Hamburger Button Styling */
.hamburger-btn {
    background: none;
    border: none;
    padding: 10px;
    z-index: 1001;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.hamburger-line {
    width: 24px;
    height: 2px;
    background: #000;
    transition: all 0.3s ease;
}

/* Hamburger to X animation */
.hamburger-btn.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger-btn.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.hamburger-btn.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile Menu Overlay */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    display: flex;
    /* Always display flex inside to center content */
    align-items: center;
    justify-content: center;
}

.mobile-menu.active {
    opacity: 1;
    visibility: visible;
    display: flex !important;
}

.mobile-menu-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    width: 100%;
}

.mobile-menu-link {
    font-size: 1.5rem;
    font-weight: 600;
    color: #111;
    text-decoration: none;
    transition: color 0.2s;
}

.mobile-menu-link:hover {
    color: #666;
}

.mobile-menu-cta {
    background: #000;
    color: #fff !important;
    padding: 12px 32px;
    border-radius: 50px;
    margin-top: 1rem;
}

/* ============================================ */
/* ============================================ */
/* MOBILE RESPONSIVE (< 1400px)                */
/* ============================================ */
@media (max-width: 1400px) {

    /* Show mobile elements */
    .nav-mobile-logo,
    .hamburger-btn {
        display: flex !important;
    }

    .mobile-menu {
        display: block;
    }

    /* Hide desktop nav elements */
    .nav-left,
    .nav-center,
    .nav-right {
        display: none !important;
    }

    /* Mobile nav container layout */
    .nav-container {
        display: flex !important;
        justify-content: space-between;
        align-items: center;
        padding: 1rem 1.5rem;
        background: rgba(255, 255, 255, 0.9);
        backdrop-filter: blur(10px);
    }

    .nav-mobile-logo .logo {
        font-size: 1.2rem;
        font-weight: 700;
        color: #000;
    }

    /* Hero adjustments */
    .hero {
        padding-top: 100px;
        min-height: auto;
    }

    .hero h1 {
        font-size: 2rem !important;
        text-align: center;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
        padding: 0 1rem;
    }

    .hero-buttons .btn {
        width: 100%;
        text-align: center;
    }



    /* General mobile adjustments */
    .mock-hero-split {
        grid-template-columns: 1fr;
        height: auto;
    }

    .mock-visual-side {
        display: none;
    }

    .floating-ui-card {
        display: none;
    }

    .hero-animation-wrapper {
        max-width: 100%;
        margin-top: 2rem;
        aspect-ratio: auto;
    }

    .mockup-window {
        width: 100%;
    }

    .container {
        padding: 0 1.5rem;
    }
}

/* Content Sections */
.section {
    padding: var(--spacing-xl) 0;
}

/* Cards - Premium Glass */
.card {
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    transition: var(--transition-smooth);
}

.card:hover {
    background: rgba(255, 255, 255, 0.6);
    transform: translateY(-5px);
}

/* Footer Styling */
footer {
    background: #fff;
    padding: 5rem 0;
    border-top: none;
}

/* Mobile Nav Adjustments (Basic) */
@media (max-width: 768px) {
    .nav-container {
        grid-template-columns: 1fr;
        justify-items: center;
        background: var(--color-background);
        padding-bottom: 1rem;
    }

    .nav-center {
        order: -1;
        border-radius: 0;
        width: 100%;
        padding: 1rem;
        margin-bottom: 1rem;
    }

    .nav-left,
    .nav-right {
        padding: 0.5rem;
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* Compatibility & Animations */
.hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

/* --- ADVANCED ANIMATIONS (GRANULAR) --- */

/* Base Class for any animated element */
.anim-item {
    opacity: 0;
    will-change: transform, opacity;
}

/* 1. Fade Up (Standard Text/Blocks) */
.anim-fade-up {
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* 2. Fade Right (Sidebar/Lists - Left to Right) */
.anim-fade-right {
    transform: translateX(-30px);
    transition: opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* 3. Zoom In (Images/Icons) */
.anim-zoom-in {
    transform: scale(0.95);
    transition: opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* --- Active States --- */
.anim-item.anim-active {
    opacity: 1;
    transform: translate(0, 0) scale(1);
}

/* --- Stagger Delays --- */
.delay-100 {
    transition-delay: 0.1s;
}

.delay-200 {
    transition-delay: 0.2s;
}

.delay-300 {
    transition-delay: 0.3s;
}

.delay-400 {
    transition-delay: 0.4s;
}

.delay-500 {
    transition-delay: 0.5s;
}

.delay-600 {
    transition-delay: 0.6s;
}

.delay-800 {
    transition-delay: 0.8s;
}



/* Service Block Styles */
.service-block {
    padding: 4rem 0;
    border-bottom: 1px solid #f1f1f1;
}

.service-block:last-child {
    border-bottom: none;
}

/* Icon Box Utility */
.icon-box {
    width: 60px;
    height: 60px;
    background: var(--color-primary);
    color: #fff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
    transition: transform 0.3s ease;
}

.service-block:hover .icon-box {
    transform: scale(1.05) rotate(-5deg);
}

/* Ensure tech-tags are consistent */
.tech-tag {
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
}

/* --- ADVANCED CUSTOM ILLUSTRATIONS --- */

/* Unified Palette for Illustrations */
:root {
    --ill-blue: #3b82f6;
    --ill-pink: #ec4899;
    --ill-purple: #8b5cf6;
    --ill-bg-soft: #f8fafc;
    --ill-border: #e2e8f0;
    --ill-shadow: rgba(0, 0, 0, 0.08);
}

/* Container for all illustrations - Now transparent (No outer box) */
.illustration-stage {
    width: 100%;
    aspect-ratio: 1/1;
    /* Changed from 4/3 to 1/1 for larger display */
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    /* Ensure minimum size */
}

/* ---- 1. DESIGN ILLUSTRATION (Drag & Drop) ---- */
.ill-design-window {
    width: 95%;
    height: 90%;
    background: white;
    border-radius: 12px;
    box-shadow: 0 25px 50px -12px var(--ill-shadow);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
}

.ill-design-toolbar {
    height: 40px;
    border-bottom: 1px solid var(--ill-border);
    display: flex;
    align-items: center;
    padding: 0 16px;
    justify-content: space-between;
    background: #fff;
    z-index: 10;
}

.ill-design-dots {
    display: flex;
    gap: 6px;
}

.ill-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--ill-border);
}

.ill-design-content {
    flex: 1;
    display: flex;
    position: relative;
}

.ill-sidebar {
    width: 60px;
    border-right: 1px solid var(--ill-border);
    background: #f8fafc;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 20px;
    gap: 15px;
}

.ill-tool-icon {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    background: #e2e8f0;
}

.ill-tool-icon.active {
    background: var(--ill-blue);
    position: relative;
}

.ill-canvas {
    flex: 1;
    padding: 24px;
    position: relative;
    background: #ffffff;
    background-image: radial-gradient(var(--ill-border) 1px, transparent 1px);
    background-size: 20px 20px;
}

/* The Draggable Element */
.ill-draggable-card {
    width: 140px;
    height: 100px;
    background: white;
    border: 2px solid var(--ill-blue);
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.15);
    position: absolute;
    top: 50%;
    left: -50px;
    /* Start outside */
    transform: translateY(-50%);
    padding: 12px;
    opacity: 0;

    /* Animation Sequence */
    animation: dragIn 4s cubic-bezier(0.2, 0.8, 0.2, 1) infinite;
}

.ill-card-skeleton {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--ill-blue), var(--ill-purple));
    margin-bottom: 10px;
}

.ill-card-line {
    height: 8px;
    background: #f1f5f9;
    border-radius: 4px;
    width: 80%;
    margin-bottom: 6px;
}

.ill-cursor {
    width: 24px;
    height: 24px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23111827'%3E%3Cpath d='M3.464 3.464C3.855 3.073 4.5 3.35 4.5 3.902v13.56c0 .835 1.056 1.206 1.586.554L9 14.5l3.5 8.5 2.5-1-3.5-8.5h6.06c.835 0 1.206-1.056.554-1.586L3.464 3.464z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    position: absolute;
    top: 110%;
    /* Start slightly below element */
    left: 110%;
    z-index: 100;

    /* Follow the card animation */
    animation: cursorTrace 4s cubic-bezier(0.2, 0.8, 0.2, 1) infinite;
}

@keyframes dragIn {
    0% {
        opacity: 0;
        left: -50px;
        transform: translateY(-50%) scale(0.9);
    }

    10% {
        opacity: 1;
        left: 20px;
        transform: translateY(-50%) scale(1);
    }

    20% {
        opacity: 1;
        left: 20px;
        transform: translateY(-50%) scale(1);
    }

    /* Wait for cursor */
    50% {
        opacity: 1;
        left: 50%;
        transform: translate(-50%, -50%) scale(1.05);
        border-color: var(--ill-pink);
    }

    /* Dragged center */
    80% {
        opacity: 1;
        left: 50%;
        transform: translate(-50%, -50%) scale(1);
        border-color: var(--ill-blue);
    }

    /* Drop */
    100% {
        opacity: 0;
        left: 50%;
        transform: translate(-50%, -50%) scale(1);
    }
}

@keyframes cursorTrace {
    0% {
        opacity: 1;
        top: 60%;
        left: 0%;
        transform: translate(0, 0);
    }

    20% {
        top: 55%;
        left: 70px;
    }

    /* Grab position */
    50% {
        top: 50%;
        left: 55%;
    }

    /* Drag position */
    70% {
        top: 70%;
        left: 70%;
        opacity: 1;
    }

    /* Move away */
    100% {
        top: 70%;
        left: 70%;
        opacity: 0;
    }
}


/* ---- 2. DEVELOPMENT ILLUSTRATION (Modern Terminal) ---- */
/* Color Scheme: Black, White, #0066ff */
.ill-dev-window {
    width: 95%;
    height: 90%;
    background: #000;
    border-radius: 16px;
    border: 1px solid #222;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
}

.ill-dev-header {
    background: #111;
    height: 40px;
    display: flex;
    align-items: center;
    padding: 0 16px;
    gap: 8px;
    border-bottom: 1px solid #222;
}

.ill-dev-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #333;
}

.ill-dev-dot.red {
    background: #ff5f57;
}

.ill-dev-dot.yellow {
    background: #ffbd2e;
}

.ill-dev-dot.green {
    background: #28ca41;
}

.ill-dev-title {
    flex: 1;
    text-align: center;
    color: #666;
    font-size: 12px;
    font-family: -apple-system, BlinkMacSystemFont, sans-serif;
}

.ill-dev-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 20px;
    font-family: 'SF Mono', 'Monaco', 'Consolas', monospace;
    font-size: 13px;
    line-height: 1.8;
}

.ill-dev-line {
    display: flex;
    gap: 12px;
    opacity: 0;
    animation: typeIn 0.3s ease forwards;
}

.ill-dev-line:nth-child(1) {
    animation-delay: 0.2s;
}

.ill-dev-line:nth-child(2) {
    animation-delay: 0.4s;
}

.ill-dev-line:nth-child(3) {
    animation-delay: 0.6s;
}

.ill-dev-line:nth-child(4) {
    animation-delay: 0.8s;
}

.ill-dev-line:nth-child(5) {
    animation-delay: 1s;
}

.ill-dev-line:nth-child(6) {
    animation-delay: 1.2s;
}

@keyframes typeIn {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.ill-line-num {
    color: #444;
    width: 24px;
    text-align: right;
    user-select: none;
}

.ill-line-code {
    color: #fff;
}

.ill-line-code .kw {
    color: #0066ff;
    font-weight: 500;
}

.ill-line-code .fn {
    color: #fff;
}

.ill-line-code .str {
    color: #0066ff;
    opacity: 0.7;
}

.ill-line-code .bracket {
    color: #666;
}

.ill-line-code .comment {
    color: #444;
    font-style: italic;
}

/* Floating Status Badge */
.ill-dev-status {
    position: absolute;
    bottom: 16px;
    right: 16px;
    background: #0066ff;
    color: #fff;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    font-family: -apple-system, BlinkMacSystemFont, sans-serif;
    display: flex;
    align-items: center;
    gap: 6px;
    animation: pulseGlow 2s ease-in-out infinite;
}

.ill-dev-status::before {
    content: '';
    width: 6px;
    height: 6px;
    background: #fff;
    border-radius: 50%;
    animation: blink 1s infinite;
}

@keyframes pulseGlow {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(0, 102, 255, 0.4);
    }

    50% {
        box-shadow: 0 0 20px 5px rgba(0, 102, 255, 0.2);
    }
}

/* Terminal Output */
.ill-dev-output {
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid #222;
}

.ill-dev-output-line {
    color: #28ca41;
    font-size: 12px;
    opacity: 0;
    animation: fadeIn 0.5s ease forwards;
    animation-delay: 1.5s;
}

.ill-dev-output-line::before {
    content: '$ ';
    color: #0066ff;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* Legacy support - keep old tabs working */
.ill-dev-tabs {
    background: #111;
    height: 40px;
    display: flex;
    align-items: center;
    padding: 0 16px;
    gap: 8px;
    border-bottom: 1px solid #222;
}

.ill-tab {
    background: transparent;
    color: #666;
    padding: 6px 14px;
    font-size: 12px;
    border-radius: 6px;
    font-family: -apple-system, BlinkMacSystemFont, sans-serif;
}

.ill-tab.active {
    background: #0066ff;
    color: #fff;
}

.ill-code-area {
    padding: 20px;
    color: #d4d4d4;
    line-height: 1.6;
    font-family: 'SF Mono', 'Monaco', 'Consolas', monospace;
    font-size: 13px;
}

.syntax-kw {
    color: #0066ff;
}

.syntax-func {
    color: #fff;
}

.syntax-str {
    color: #0066ff;
    opacity: 0.6;
}

.syntax-obj {
    color: #aaa;
}

.syntax-num {
    color: #0066ff;
}

.ill-typing-cursor {
    display: inline-block;
    width: 2px;
    height: 14px;
    background: #0066ff;
    animation: blink 1s infinite;
    vertical-align: middle;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

.ill-success-toast {
    position: absolute;
    bottom: 16px;
    right: 16px;
    background: #111;
    border: 1px solid #0066ff;
    color: white;
    padding: 10px 16px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 102, 255, 0.2);
    display: flex;
    gap: 10px;
    align-items: center;
    font-family: -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 12px;
    animation: toastSlide 4s infinite;
}

.ill-success-toast span:first-child {
    color: #0066ff;
}

@keyframes toastSlide {

    0%,
    100% {
        transform: translateY(80px);
        opacity: 0;
    }

    20%,
    80% {
        transform: translateY(0);
        opacity: 1;
    }
}


/* ---- 3. SEO ILLUSTRATION (Keyword Rankings Dashboard) ---- */
/* Color Scheme: Black, White, #0066ff */
.ill-seo-dashboard {
    width: 95%;
    height: 90%;
    background: #fff;
    border-radius: 16px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, sans-serif;
}

.ill-seo-header {
    background: #fafafa;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ill-seo-title {
    font-size: 14px;
    font-weight: 600;
    color: #111;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ill-seo-title::before {
    content: '📊';
    font-size: 16px;
}

.ill-seo-badge {
    background: #0066ff;
    color: #fff;
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 12px;
    font-weight: 600;
}

.ill-seo-body {
    flex: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Keyword Ranking Rows */
.ill-keyword-row {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    background: #fafafa;
    border-radius: 10px;
    gap: 16px;
    opacity: 0;
    animation: slideIn 0.4s ease forwards;
}

.ill-keyword-row:nth-child(1) {
    animation-delay: 0.2s;
}

.ill-keyword-row:nth-child(2) {
    animation-delay: 0.4s;
}

.ill-keyword-row:nth-child(3) {
    animation-delay: 0.6s;
}

.ill-keyword-row:nth-child(4) {
    animation-delay: 0.8s;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.ill-rank {
    width: 32px;
    height: 32px;
    background: #000;
    color: #fff;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
}

.ill-rank.top {
    background: #0066ff;
}

.ill-keyword-info {
    flex: 1;
}

.ill-keyword-text {
    font-size: 13px;
    font-weight: 600;
    color: #111;
    margin-bottom: 2px;
}

.ill-keyword-url {
    font-size: 11px;
    color: #888;
}

.ill-keyword-change {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 600;
}

.ill-keyword-change.up {
    color: #0066ff;
}

.ill-keyword-change.up::before {
    content: '↑';
}

.ill-keyword-change.down {
    color: #888;
}

.ill-keyword-change.down::before {
    content: '↓';
}

/* Stats Footer */
.ill-seo-footer {
    border-top: 1px solid #e5e7eb;
    padding: 16px 20px;
    display: flex;
    justify-content: space-around;
}

.ill-seo-stat {
    text-align: center;
}

.ill-seo-stat-value {
    font-size: 18px;
    font-weight: 700;
    color: #000;
}

.ill-seo-stat-value.blue {
    color: #0066ff;
}

.ill-seo-stat-label {
    font-size: 11px;
    color: #888;
    margin-top: 2px;
}

/* Legacy Support for old dashboard */
.ill-stat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding: 16px 20px;
    background: #fafafa;
    border-bottom: 1px solid #e5e7eb;
}

.ill-stat-title h4 {
    font-size: 12px;
    color: #888;
    margin: 0;
    font-weight: 500;
}

.ill-stat-title strong {
    font-size: 22px;
    color: #000;
    display: block;
    font-weight: 700;
}

.ill-trend {
    color: #0066ff;
    font-weight: 600;
    font-size: 12px;
    background: rgba(0, 102, 255, 0.1);
    padding: 4px 10px;
    border-radius: 12px;
}

.ill-chart-area {
    flex: 1;
    display: flex;
    align-items: flex-end;
    gap: 8px;
    padding: 20px;
    position: relative;
}

.ill-bar {
    flex: 1;
    background: #f1f5f9;
    border-radius: 4px 4px 0 0;
    position: relative;
    transition: all 0.3s ease;
}

.ill-bar:hover {
    background: #0066ff;
}

.ill-bar[data-h="1"] {
    height: 25%;
    background: #e5e7eb;
    animation: growBar 0.8s ease forwards 0.1s;
}

.ill-bar[data-h="2"] {
    height: 45%;
    background: #ccc;
    animation: growBar 0.8s ease forwards 0.2s;
}

.ill-bar[data-h="3"] {
    height: 35%;
    background: #bbb;
    animation: growBar 0.8s ease forwards 0.3s;
}

.ill-bar[data-h="4"] {
    height: 65%;
    background: #0066ff;
    opacity: 0.6;
    animation: growBar 0.8s ease forwards 0.4s;
}

.ill-bar[data-h="5"] {
    height: 55%;
    background: #0066ff;
    opacity: 0.8;
    animation: growBar 0.8s ease forwards 0.5s;
}

.ill-bar[data-h="6"] {
    height: 85%;
    background: #0066ff;
    animation: growBar 0.8s ease forwards 0.6s;
    box-shadow: 0 0 20px rgba(0, 102, 255, 0.3);
}

@keyframes growBar {
    from {
        height: 0;
    }
}

.ill-tooltip {
    position: absolute;
    top: 5%;
    right: 10%;
    background: #000;
    color: white;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    font-family: -apple-system, BlinkMacSystemFont, sans-serif;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    animation: float 3s ease-in-out infinite;
    z-index: 10;
}

.ill-tooltip::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 6px 6px 0;
    border-style: solid;
    border-color: #000 transparent transparent transparent;
}



/* ---- GLOBAL ANIMATION UTILITIES ---- */
/* ---- REFINED SMOOTH ANIMATIONS ---- */
.anim-item {
    opacity: 0;
    will-change: opacity, transform;
}

/* 1. Fade Up - Smooth & Subtle */
.anim-fade-up {
    opacity: 0;
}

.anim-fade-up.anim-active {
    animation: fadeUpSmooth 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeUpSmooth {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 2. Fade Right - Smooth Slide from Left */
.anim-fade-right {
    opacity: 0;
}

.anim-fade-right.anim-active {
    animation: fadeRightSmooth 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeRightSmooth {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* 3. Fade Left - Smooth Slide from Right */
.anim-fade-left {
    opacity: 0;
}

.anim-fade-left.anim-active {
    animation: fadeLeftSmooth 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeLeftSmooth {
    from {
        opacity: 0;
        transform: translateX(20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Stagger Delays - Clearly Visible Cascade */
.delay-100 {
    animation-delay: 0.1s;
}

.delay-200 {
    animation-delay: 0.2s;
}

.delay-300 {
    animation-delay: 0.3s;
}

.delay-400 {
    animation-delay: 0.4s;
}

.delay-500 {
    animation-delay: 0.5s;
}

.delay-600 {
    animation-delay: 0.6s;
}

.delay-700 {
    animation-delay: 0.7s;
}

.delay-800 {
    animation-delay: 0.8s;
}

.delay-900 {
    animation-delay: 0.9s;
}

.delay-1000 {
    animation-delay: 1s;
}

/* Cleaned Duplicate Animations */
/* (Empty, removal is the goal) */

/* ---- NEW SUPER ANIMATIONS ---- */

/* 1. Navbar One-Time Slide (Home Only) */
.home-nav-anim {
    animation: navSlideDown 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    transform: translateY(-100%);
    /* Start hidden */
}

@keyframes navSlideDown {
    from {
        transform: translateY(-100%);
    }

    to {
        transform: translateY(0);
    }
}

/* 2. Hero Typewriter/Reveal JS Support */
/* 2. Headline & Buttons - Basic Clean Animation */
.hero-h1-reveal {
    opacity: 0;
    /* Start hidden for animation */
    animation: simpleFadeUp 1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards 0.3s;
}

/* Target the buttons specifically in the hero to animate them without JS dependency if preferred, 
   or let the 'reveal' class handle it. 
   User asked to "introduce" them. Let's make a specific class to be sure. */
.hero-buttons-anim {
    opacity: 0;
    animation: simpleFadeUp 1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards 0.5s;
}

@keyframes simpleFadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 3. Mockup Entrance - SYNCED START */
.anim-hero-mockup-wrapper {
    opacity: 0;
    transform: translateY(100px) scale(0.95);
    /* Faster: 1.3s */
    animation: heroMockupEnter 1.3s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

@keyframes heroMockupEnter {
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* 4. Floating Elements - SYNCED START (Fly with Mockup) */
.anim-float-left {
    opacity: 0;
    transform: translateX(-100px);
    /* Matches mockup speed roughly */
    animation: floatFlyIn 1.3s cubic-bezier(0.2, 0.8, 0.2, 1) forwards 0.2s;
}

.anim-float-right {
    opacity: 0;
    transform: translateX(100px);
    animation: floatFlyIn 1.3s cubic-bezier(0.2, 0.8, 0.2, 1) forwards 0.2s;
}

@keyframes floatFlyIn {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* 5. SVG Line Draw - SPEEDED UP (3s) */
.trend-line-path {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    /* Faster: 3s */
    transition: stroke-dashoffset 3s linear;
}

.anim-active .trend-line-path,
.trend-line-path.draw-active {
    stroke-dashoffset: 0;
}

/* 6. General Complex Section Reveals */
/* Blur Reveal */
.anim-blur-up {
    opacity: 0;
    filter: blur(10px);
    transform: translateY(30px);
    transition: opacity 1s ease, filter 1s ease, transform 1s ease;
}

.anim-blur-up.anim-active {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
}

/* Zoom In Reveal */
.anim-zoom-in {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.anim-zoom-in.anim-active {
    opacity: 1;
    transform: scale(1);
}

/* ============================================ */
/* CUSTOM FORM STYLING (Modern & Functional)   */
/* ============================================ */

/* Unified Layout for Inputs & Custom Select */
.form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

.form-label {
    display: block;
    margin-bottom: 0.6rem;
    font-weight: 500;
    font-size: 0.9rem;
    color: #1e293b;
}

/* Modern Input Style */
.form-input,
.form-textarea,
.custom-select-trigger {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    /* Smooth rounded corners */
    font-family: var(--font-body);
    font-size: 1rem;
    background: #fff;
    color: var(--color-text-main);
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    /* Subtle depth */
}

.form-input:hover,
.form-textarea:hover,
.custom-select-trigger:hover {
    border-color: #cbd5e1;
}

.form-input:focus,
.form-textarea:focus,
.custom-select.open .custom-select-trigger {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05);
}

/* Custom Dropdown Structure */
.custom-select-wrapper {
    position: relative;
    user-select: none;
    -webkit-user-select: none;
}

.custom-select {
    position: relative;
    display: flex;
    flex-direction: column;
}

.custom-select-trigger {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.custom-select-trigger span {
    color: #64748b;
    /* Placeholder color by default */
}

.custom-select-trigger span.selected-value {
    color: var(--color-text-main);
    /* Active value color */
}

/* Arrow Icon */
.custom-select-trigger .arrow {
    width: 10px;
    height: 10px;
    border-right: 2px solid #64748b;
    border-bottom: 2px solid #64748b;
    transform: rotate(45deg);
    transition: transform 0.2s;
    margin-right: 4px;
    margin-top: -4px;
}

.custom-select.open .custom-select-trigger .arrow {
    transform: rotate(225deg) translate(-2px, -2px);
}

/* Options Wrapper */
.custom-options {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #f1f5f9;
    border-radius: 12px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    z-index: 50;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    pointer-events: none;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
    max-height: 250px;
    overflow-y: auto;
}

.custom-select.open .custom-options {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: all;
}

/* Individual Option */
.custom-option {
    display: block;
    padding: 12px 16px;
    font-size: 0.95rem;
    color: #334155;
    cursor: pointer;
    transition: all 0.15s;
    border-bottom: 1px solid #f8fafc;
}

.custom-option:last-child {
    border-bottom: none;
}

.custom-option:hover {
    background: #f8fafc;
    color: var(--color-primary);
    padding-left: 20px;
    /* Slight movement on hover */
}

.custom-option.selected {
    background: #f1f5f9;
    font-weight: 500;
    color: var(--color-primary);
}

/* Loader for Submit Button */
.loader {
    width: 20px;
    height: 20px;
    border: 2px solid #fff;
    border-bottom-color: transparent;
    border-radius: 50%;
    display: inline-block;
    box-sizing: border-box;
    animation: rotation 1s linear infinite;
    margin-left: 10px;
}

@keyframes rotation {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.success-message {
    color: #10b981 !important;
    font-weight: 600;
}

.error-message {
    color: #ef4444 !important;
    font-weight: 500;
}

/* ============================================ */
/* MOBILE NAVIGATION OVERHAUL (GLOBAL)          */
/* ============================================ */
@media (max-width: 1400px) {

    /* GLOBAL OVERFLOW FIX */
    html,
    body {
        overflow-x: hidden;
    }

    .hero,
    .navbar,
    .nav-container,
    .mobile-menu {
        overflow: visible !important;
    }

    /* 1. Rounded Nav - WIDE but CLEAN */
    .nav-container {
        margin: 15px auto !important;
        width: 94% !important;
        max-width: none !important;
        border-radius: 30px !important;
        border: 1px solid rgba(255, 255, 255, 0.6);
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
        background: rgba(255, 255, 255, 0.90) !important;
        backdrop-filter: blur(12px);
        padding: 10px 24px !important;
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        position: relative;
        z-index: 1000;
        height: 70px !important;
        transition: all 0.3s ease !important;
        /* Smooth morphing */
    }

    /* MERGED STATE - Toggled by JS */
    .nav-container.menu-open {
        border-radius: 30px 30px 0 0 !important;
        /* Forces top to stay 60px, bottom 0 */
        border-bottom: none !important;
        /* Fully remove bottom border */
        box-shadow: none !important;
        background: #ffffff !important;
        border-color: rgba(0, 0, 0, 0.08) !important;
    }

    /* 2. Hamburger - High Contrast & Accessible */
    .hamburger-btn {
        gap: 6px !important;
        padding: 12px !important;
        margin-right: -8px;
        height: auto !important;
        width: auto !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        background: transparent !important;
        border-radius: 50%;
        transition: background 0.2s;
    }

    .hamburger-btn:active {
        background: rgba(0, 0, 0, 0.05) !important;
    }

    .hamburger-line {
        width: 28px !important;
        height: 2.5px !important;
        background: #000 !important;
        border-radius: 4px;
        display: block !important;
    }

    /* Animations */
    .hamburger-btn.active .hamburger-line:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px) !important;
    }

    .hamburger-btn.active .hamburger-line:nth-child(2) {
        opacity: 0 !important;
    }

    .hamburger-btn.active .hamburger-line:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px) !important;
    }

    /* 3. Dropdown Menu - SEAMLESS PILL EXTENSION */
    .mobile-menu {
        position: fixed !important;
        top: 85px !important;
        left: 50% !important;

        width: 94% !important;
        max-width: none !important;
        height: auto !important;

        background: #ffffff !important;

        border: 1px solid rgba(0, 0, 0, 0.08);
        border-top: none !important;

        /* Top Square, Bottom matches Nav text radius (30px) */
        border-radius: 0 0 30px 30px !important;

        box-shadow: 0 20px 80px rgba(0, 0, 0, 0.15) !important;

        padding: 1rem 2rem 2.5rem 2rem !important;

        display: flex;
        flex-direction: column;

        z-index: 999 !important;

        /* Animation State - Simple Reveal (Wipe) */
        opacity: 0;
        visibility: hidden;
        transform: translateX(-50%) !important;
        /* Stay centered */

        /* Wipe from top to bottom (Bottom edge moves down) */
        /* Negative horizontal/bottom values ensure shadow is not clipped when revealed */
        clip-path: inset(0 -100px 100% -100px);

        transition: clip-path 0.4s ease-out, opacity 0.3s ease, visibility 0.4s !important;
    }

    .mobile-menu.active {
        opacity: 1;
        visibility: visible;
        /* Reveal fully */
        clip-path: inset(0 -100px -100px -100px);
        display: flex !important;
    }

    .mobile-menu-content {
        width: 100%;
        align-items: center !important;
        gap: 1rem !important;
    }

    .mobile-menu-link {
        font-size: 1.4rem !important;
        font-weight: 700 !important;
        color: #1e293b !important;
        padding: 16px 24px !important;
        width: 100% !important;
        border-radius: 20px !important;
        transition: background 0.2s !important;
        text-align: center !important;
    }

    .mobile-menu-link:hover,
    .mobile-menu-link:active {
        background: #f8fafc !important;
        color: #0f172a !important;
    }

    .mobile-menu-cta {
        margin-top: 1.5rem !important;
        background: #000000 !important;
        color: #fff !important;
        text-align: center !important;
        justify-content: center !important;
        font-size: 1.4rem !important;
        padding: 18px 40px !important;
    }

    .mobile-menu-cta:active {
        background: #333333 !important;
    }

    /* 4. Hero Layout */
    .hero {
        padding-top: 200px !important;
        overflow: visible !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
    }

    /* 5. Hero Text - Custom Big Font */
    .hero h1 {
        font-size: 3.5rem !important;
        /* Good balance */
        line-height: 1.1 !important;
        margin-bottom: 2rem !important;
        padding: 0 10px;
        overflow: visible !important;
    }

    /* 6. Buttons */
    .hero-buttons {
        flex-direction: row !important;
        gap: 12px !important;
        justify-content: center !important;
        width: 100% !important;
        padding: 0 20px !important;
        /* Prevent edge touching */
    }

    .hero-buttons .btn {
        width: auto !important;
        padding: 14px 28px !important;
        flex: 0 1 auto !important;
        /* Allow shrinking if needed */
    }
}

/* ============================================ */
/* CONTACT PAGE STYLES                          */
/* ============================================ */
.contact-card {
    background: #fff;
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid var(--color-border);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.05);
}

.ai-quote-card {
    background: linear-gradient(145deg, #111, #222);
    color: white;
    padding: 2.5rem;
    border-radius: 20px;
    margin-bottom: 3rem;
    position: relative;
    overflow: hidden;
}

.ai-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.15);
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 1rem;
    color: #fff;
}

/* ============================================ */
/* MOBILE OPTIMIZATIONS (Max-Width: 768px)      */
/* ============================================ */

/* Responsive Grid Utility */
.grid-2-cols {
    grid-template-columns: 1fr 1fr;
}

@media (max-width: 900px) {
    .grid-2-cols {
        grid-template-columns: 1fr !important;
        gap: 3rem !important;
    }

    /* Reverse order for specific sections if needed (like text left, image right on desktop -> image top on mobile) */
    .grid-2-cols.mobile-reverse {
        display: flex;
        flex-direction: column-reverse;
    }
}

@media (max-width: 768px) {

    /* General Container Padding */
    .container {
        width: 90% !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .section {
        padding: 4rem 0 !important;
    }

    /* Typography Scaling */
    h1 {
        font-size: 2.5rem !important;
        line-height: 1.1 !important;
    }

    h2 {
        font-size: 2rem !important;
    }

    /* Hero Section Specifics */
    .hero {
        padding-top: 150px !important;
        min-height: auto !important;
        height: auto !important;
        padding-bottom: 4rem !important;
    }

    .hero h1 {
        font-size: clamp(2.5rem, 10vw, 3.5rem) !important;
    }

    .hero-buttons {
        flex-direction: column !important;
        width: 100% !important;
        align-items: center !important;
    }

    .hero-buttons .btn {
        width: 100% !important;
        max-width: 350px !important;
    }

    /* Fix Complex Illustrations */
    .illustration-stage {
        transform: scale(0.8) !important;
        transform-origin: center top !important;
        margin-top: -2rem !important;
        margin-bottom: -2rem !important;
        width: 100% !important;
        overflow-x: hidden !important;
    }

    /* Mockups & Animations */
    .anim-hero-mockup-wrapper {
        transform: scale(0.9) !important;
        margin-top: 2rem !important;
        width: 100% !important;
    }

    /* Floating elements in Hero */
    .float-stats-wrapper,
    .float-user-wrapper {
        display: none !important;
        /* Hide floating widgets on very small screens to avoid clutter/overflow */
    }

    /* Services & Sticky Elements */
    .service-block .grid {
        grid-template-columns: 1fr !important;
        gap: 3rem !important;
    }

    div[style*="position: sticky"] {
        position: relative !important;
        top: 0 !important;
    }

    /* Pricing Cards */
    .pricing-card {
        margin-bottom: 2rem !important;
    }

    /* Contact Form on Mobile */
    .contact-card {
        padding: 1.5rem !important;
    }

    /* Footer Grid */
    footer .grid {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
        text-align: center;
    }

    footer .nav-mobile-logo,
    footer .logo {
        margin: 0 auto 1.5rem auto !important;
    }

    footer .grid>div {
        align-items: center !important;
    }

    /* Center aligning text in footer columns usually aligned start */
    footer h4,
    footer ul {
        text-align: center !important;
        align-items: center !important;
    }

    /* Ensure inputs are easily tappable */
    .form-input,
    .form-textarea,
    .btn {
        font-size: 16px !important;
        /* Prevents iOS zoom on focus */
    }

    /* Index Page specific grid overrides */
    /* Target grids that were previously 1fr 1fr inline */
    .grid[style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
    }
}

/* ============================================ */
/* UNIVERSAL FOOTER COMPONENT                   */
/* ============================================ */

.site-footer {
    background: #fff;
    border-top: 1px solid #e2e8f0;
    padding: 4rem 0 2rem 0;
    margin-top: auto;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
    align-items: start;
}

/* Footer Brand Section */
.footer-brand {
    max-width: 350px;
}

.footer-logo {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    color: var(--color-primary);
    text-decoration: none;
    display: block;
    margin-bottom: 1rem;
    transition: color 0.2s;
}

.footer-logo:hover {
    color: var(--color-accent-hover);
}

.footer-description {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #64748b;
    margin: 0;
}

/* Footer Headings */
.footer-heading {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1.25rem;
    color: #0f172a;
    font-weight: 600;
}

/* Social Links */
.social-links {
    display: flex;
    gap: 0.75rem;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: #000;
    color: #fff;
    border-color: #000;
    transform: translateY(-3px);
}

.social-link svg {
    width: 18px;
    height: 18px;
}

/* Legal Links */
.legal-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.legal-links a {
    font-size: 0.95rem;
    color: #64748b;
    text-decoration: none;
    transition: color 0.2s;
    display: inline-block;
}

.legal-links a:hover {
    color: #0f172a;
}

/* Footer CTA Button */
.footer-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    background: #000;
    color: #fff;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-cta-btn:hover {
    background: #333;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

/* Footer Bottom */
.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid #e2e8f0;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.85rem;
    color: #94a3b8;
    margin: 0;
}

/* Mobile Footer Optimization */
@media (max-width: 900px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 2.5rem;
    }

    .footer-brand {
        grid-column: 1 / -1;
        max-width: 100%;
        text-align: center;
        margin-bottom: 1rem;
    }

    .footer-social,
    .footer-legal,
    .footer-contact {
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }

    .legal-links {
        align-items: center;
    }

    .footer-contact {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .site-footer {
        padding: 3rem 0 1.5rem 0;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .footer-brand,
    .footer-social,
    .footer-legal,
    .footer-contact {
        grid-column: 1;
        text-align: center;
    }

    .footer-heading {
        margin-bottom: 1rem;
    }

    .social-links {
        justify-content: center;
    }

    .legal-links {
        align-items: center;
    }

    .footer-cta-btn {
        width: 100%;
        max-width: 300px;
    }

    .footer-bottom {
        padding-top: 1.5rem;
        margin-top: 0.5rem;
    }
}