﻿/* ==========================================================================   INKMEDIA - Premium Agency Website   Design System & Core Styles   ========================================================================== */
/* --------------------------------------------------------------------------   1. CSS CUSTOM PROPERTIES (Design Tokens)   -------------------------------------------------------------------------- */
:root {
    /* Brand Colors */
    --ink-blue: #0047AB;
    --ink-blue-dark: #003380;
    --ink-blue-light: #1E5FBE;
    --ink-red: #DC2626;
    --ink-red-dark: #B91C1C;
    --ink-orange: #F97316;
    --ink-gold: #F59E0B;
    --logo-white: #FFFFFF;
    /* Neutral Colors */
    --ink-white: #FFFFFF;
    --ink-black: #0A0A0A;
    --ink-gray-50: #FAFAFA;
    --ink-gray-100: #F4F4F5;
    --ink-gray-200: #E4E4E7;
    --ink-gray-300: #D4D4D8;
    --ink-gray-400: #A1A1AA;
    --ink-gray-500: #71717A;
    --ink-gray-600: #52525B;
    --ink-gray-700: #3F3F46;
    --ink-gray-800: #27272A;
    --ink-gray-900: #18181B;
    /* Gradient Colors */
    --gradient-primary: linear-gradient(135deg, var(--ink-blue) 0%, var(--ink-blue-dark) 100%);
    --gradient-accent: linear-gradient(135deg, var(--ink-red) 0%, var(--ink-orange) 100%);
    --gradient-dark: linear-gradient(135deg, var(--ink-gray-900) 0%, var(--ink-gray-800) 100%);
    --gradient-hero: linear-gradient(180deg, rgba(0, 71, 171, 0.95) 0%, rgba(0, 51, 128, 0.98) 100%);
    /* Typography */
    --font-display: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    /* Font Sizes (Fluid Typography) */
    --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
    --text-sm: clamp(0.875rem, 0.8rem + 0.375vw, 1rem);
    --text-base: clamp(1rem, 0.9rem + 0.5vw, 1.125rem);
    --text-lg: clamp(1.125rem, 1rem + 0.625vw, 1.25rem);
    --text-xl: clamp(1.25rem, 1.1rem + 0.75vw, 1.5rem);
    --text-2xl: clamp(1.5rem, 1.3rem + 1vw, 2rem);
    --text-3xl: clamp(1.875rem, 1.5rem + 1.875vw, 2.5rem);
    --text-4xl: clamp(2.25rem, 1.75rem + 2.5vw, 3.5rem);
    --text-5xl: clamp(3rem, 2rem + 5vw, 5rem);
    --text-6xl: clamp(3.75rem, 2.5rem + 6.25vw, 6rem);
    /* Spacing */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;
    --space-24: 6rem;
    --space-32: 8rem;
    /* Layout */
    --container-max: 1400px;
    --container-wide: 1600px;
    --container-narrow: 900px;
    --header-height: 80px;
    --header-height-scrolled: 70px;
    /* Borders & Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-2xl: 24px;
    --radius-full: 9999px;
    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --shadow-glow-blue: 0 0 40px rgba(0, 71, 171, 0.3);
    --shadow-glow-red: 0 0 40px rgba(220, 38, 38, 0.3);
    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 500ms cubic-bezier(0.68, -0.55, 0.265, 1.55);
    /* Z-Index Scale */
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-fixed: 300;
    --z-modal-backdrop: 400;
    --z-modal: 500;
    --z-popover: 600;
    --z-tooltip: 700;
}

/* Dark mode colors (optional) */
@media (prefers-color-scheme: dark) {
    :root.auto-dark {
        --ink-white: #0A0A0A;
        --ink-gray-50: #18181B;
        --ink-gray-100: #27272A;
    }
}

/* --------------------------------------------------------------------------   2. RESET & BASE STYLES   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    font-feature-settings: 'kern' 1, 'liga' 1;
}

body {
    font-family: var(--font-body);
    font-size: var(--text-base);
    line-height: 1.7;
    color: var(--ink-gray-800);
    background-color: var(--ink-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: clip;
    width: 100%;
}

html {
    overflow-x: clip;
}

/* Selection */
::selection {
    background-color: var(--ink-blue);
    color: var(--ink-white);
}

/* Focus styles */
:focus-visible {
    outline: 2px solid var(--ink-blue);
    outline-offset: 2px;
}

/* Links */
a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition-fast);
}

/* Images */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Lists */
ul,
ol {
    list-style: none;
}

/* Buttons */
button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

/* --------------------------------------------------------------------------   3. TYPOGRAPHY   -------------------------------------------------------------------------- */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.2;
    color: var(--ink-gray-900);
    margin-bottom: var(--space-4);
}

h1 {
    font-size: var(--text-5xl);
}

h2 {
    font-size: var(--text-4xl);
}

h3 {
    font-size: var(--text-3xl);
}

h4 {
    font-size: var(--text-2xl);
}

h5 {
    font-size: var(--text-xl);
}

h6 {
    font-size: var(--text-lg);
}

p {
    margin-bottom: var(--space-4);
    color: var(--ink-gray-600);
}

.text-display {
    font-family: var(--font-display);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.02em;
}

.text-label {
    font-size: var(--text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--ink-blue);
}

.text-lead {
    font-size: var(--text-xl);
    line-height: 1.6;
    color: var(--ink-gray-600);
}

/* --------------------------------------------------------------------------   4. LAYOUT & CONTAINERS   -------------------------------------------------------------------------- */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-6);
}

.container-wide {
    max-width: var(--container-wide);
}

.container-narrow {
    max-width: var(--container-narrow);
}

.section {
    padding: var(--space-20) 0;
}

.section-lg {
    padding: var(--space-32) 0;
}

.section-sm {
    padding: var(--space-12) 0;
}

/* Grid System */
.grid {
    display: grid;
    gap: var(--space-8);
}

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

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

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

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

    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {

    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }
}

/* Flex utilities */
.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.flex-wrap {
    flex-wrap: wrap;
}

.items-center {
    align-items: center;
}

.items-start {
    align-items: flex-start;
}

.items-end {
    align-items: flex-end;
}

.justify-center {
    justify-content: center;
}

.justify-between {
    justify-content: space-between;
}

.justify-end {
    justify-content: flex-end;
}

.gap-2 {
    gap: var(--space-2);
}

.gap-4 {
    gap: var(--space-4);
}

.gap-6 {
    gap: var(--space-6);
}

.gap-8 {
    gap: var(--space-8);
}

/* --------------------------------------------------------------------------   5. BUTTONS   -------------------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-4) var(--space-8);
    font-family: var(--font-display);
    font-size: var(--text-sm);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: var(--radius-full);
    transition: all var(--transition-base);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, transparent 100%);
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.btn:hover::before {
    opacity: 1;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--ink-white);
    box-shadow: var(--shadow-lg), var(--shadow-glow-blue);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl), 0 0 60px rgba(0, 71, 171, 0.4);
}

.btn-secondary {
    background: var(--ink-white);
    color: var(--ink-blue);
    border: 2px solid var(--ink-blue);
}

.btn-secondary:hover {
    background: var(--ink-blue);
    color: var(--ink-white);
    transform: translateY(-2px);
}

.btn-accent {
    background: var(--gradient-accent);
    color: var(--ink-white);
    box-shadow: var(--shadow-lg), var(--shadow-glow-red);
}

.btn-accent:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl), 0 0 60px rgba(220, 38, 38, 0.4);
}

.btn-ghost {
    background: transparent;
    color: var(--ink-white);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--ink-white);
}

.btn-dark {
    background: var(--ink-gray-900);
    color: var(--ink-white);
}

.btn-dark:hover {
    background: var(--ink-gray-800);
    transform: translateY(-2px);
}

.btn-lg {
    padding: var(--space-5) var(--space-10);
    font-size: var(--text-base);
}

.btn-sm {
    padding: var(--space-2) var(--space-5);
    font-size: var(--text-xs);
}

.btn-icon {
    width: 48px;
    height: 48px;
    padding: 0;
    border-radius: var(--radius-full);
}

/* --------------------------------------------------------------------------   6. HEADER & NAVIGATION   -------------------------------------------------------------------------- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: var(--z-fixed);
    padding: var(--space-4) 0;
    transition: all var(--transition-base);
}

.site-header.transparent {
    background: transparent;
}

.site-header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-md);
    padding: var(--space-3) 0;
    --logo-white: var(--ink-blue);
}

.site-header.scrolled .nav-link {
    color: var(--ink-gray-700);
}

.site-header.scrolled .logo-text {
    color: var(--ink-blue);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    font-family: var(--font-display);
    font-size: var(--text-xl);
    font-weight: 700;
}

.logo-icon {
    width: 48px;
    height: 48px;
}

.logo-text {
    color: var(--ink-white);
    transition: color var(--transition-base);
}

.logo-text span {
    color: var(--ink-red);
}

.logo-brush {
    color: #FFFFFF !important;
    transition: color var(--transition-base);
}

.logo-caps {
    color: var(--logo-white) !important;
    transition: color var(--transition-base);
}

/* Navigation */
.main-nav {
    display: flex;
    align-items: center;
    gap: var(--space-8);
}

.nav-list {
    display: flex;
    gap: var(--space-8);
}

.nav-link {
    font-family: var(--font-display);
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--ink-white);
    position: relative;
    padding: var(--space-2) 0;
    transition: color var(--transition-fast);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--ink-red);
    transition: width var(--transition-base);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-cta {
    margin-left: var(--space-4);
}

/* Mobile Navigation */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: var(--space-2);
    cursor: pointer;
}

.mobile-menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--ink-red);
    /* Matches Start a Project accent */
    transition: all var(--transition-fast);
}

/* Ensure hamburger is visible when header is white (scrolled) */
.site-header.scrolled .mobile-menu-toggle span,
.site-header:not(.transparent) .mobile-menu-toggle span {
    background: var(--ink-gray-900);
}

.site-header.scrolled .mobile-menu-toggle span {
    background: var(--ink-gray-800);
}

/* --- MOBILE MENU OPEN STATE FIXES --- */
/* When mobile menu is open, force header to be transparent and white-themed   regardless of scroll position. This merges the header with the menu overlay. */
.site-header:has(.mobile-open) {
    background: transparent !important;
    backdrop-filter: none !important;
    box-shadow: none !important;
}

.site-header:has(.mobile-open) .logo-text,
.site-header:has(.mobile-open) .mobile-menu-toggle span,
.site-header:has(.mobile-open) .logo-text span {
    color: var(--ink-white) !important;
    background: var(--ink-white) !important;
    /* For hamburger lines */
}

/* Fix SVG Logo colors when menu is open */
.site-header:has(.mobile-open) .logo svg circle {
    stroke: #ffffff !important;
}

.site-header:has(.mobile-open) .logo svg text {
    fill: #ffffff !important;
}

@media (max-width: 1024px) {
    .mobile-menu-toggle {
        display: flex;
        z-index: 100;
        /* Above everything */
        position: relative;
    }

    /* Mobile Menu Container */
    .main-nav {
        position: fixed;
        inset: 0;
        background: radial-gradient(circle at top right, #0047AB, #001f4d);
        /* Premium Depth */
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: space-between;
        /* Spacing between nav and footer */
        align-items: flex-start;
        padding: var(--space-24) var(--space-8) var(--space-8);
        /* Top padding for header clearance */
        z-index: 90;
        overflow-y: auto;
        /* Allow scrolling if content is too tall */
        /* Animation State */
        clip-path: circle(0% at 100% 0);
        /* Circle reveal from corner */
        opacity: 0;
        visibility: hidden;
        transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    }

    /* Active State */
    .main-nav.mobile-open {
        opacity: 1;
        visibility: visible;
        clip-path: circle(150% at 100% 0);
    }

    /* Nav List Styling */
    .nav-list {
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        /* Removing gap for border style */
        width: 100%;
    }

    /* Nav Links */
    .nav-link {
        font-size: clamp(1.8rem, 6vw, 2.2rem);
        /* More compact but still bold */
        font-weight: 700;
        color: var(--ink-white) !important;
        display: block;
        width: 100%;
        padding: var(--space-3) 0;
        /* Tightened padding */
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        /* Subtle separator */
        transform: translateY(20px);
        opacity: 0;
        transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .nav-link:active {
        color: var(--ink-red) !important;
    }

    /* Staggered Animation for Links */
    .main-nav.mobile-open .nav-link {
        transform: translateY(0);
        opacity: 1;
    }

    .main-nav.mobile-open .nav-list li:nth-child(1) .nav-link {
        transition-delay: 0.1s;
    }

    .main-nav.mobile-open .nav-list li:nth-child(2) .nav-link {
        transition-delay: 0.15s;
    }

    .main-nav.mobile-open .nav-list li:nth-child(3) .nav-link {
        transition-delay: 0.2s;
    }

    .main-nav.mobile-open .nav-list li:nth-child(4) .nav-link {
        transition-delay: 0.25s;
    }

    .main-nav.mobile-open .nav-list li:nth-child(5) .nav-link {
        transition-delay: 0.3s;
    }

    .main-nav.mobile-open .nav-list li:nth-child(6) .nav-link {
        transition-delay: 0.35s;
    }

    /* CTA Button on Mobile */
    .nav-cta {
        margin: var(--space-8) 0 0 0;
        width: 100%;
        text-align: center;
        padding: var(--space-6);
        font-size: var(--text-lg);
        background: var(--ink-white);
        color: var(--ink-blue);
        transform: translateY(20px);
        opacity: 0;
        transition: all 0.5s ease 0.5s;
        /* Delay after links */
    }

    .main-nav.mobile-open .nav-cta {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Hamburger to X Animation */
.mobile-menu-toggle.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.open span:nth-child(2) {
    opacity: 0;
}

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

/* --------------------------------------------------------------------------   7. HERO SECTION   -------------------------------------------------------------------------- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--gradient-hero);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 47, 130, 0.9) 0%, rgba(0, 71, 171, 0.85) 50%, rgba(0, 51, 128, 0.95) 100%);
    z-index: 1;
}

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

/* Animated background shapes */
.hero-shapes {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 0;
}

.hero-shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    animation: float 20s infinite;
}

.hero-shape:nth-child(1) {
    width: 600px;
    height: 600px;
    top: -200px;
    right: -200px;
}

.hero-shape:nth-child(2) {
    width: 400px;
    height: 400px;
    bottom: -100px;
    left: -100px;
    animation-delay: -5s;
}

.hero-shape:nth-child(3) {
    width: 300px;
    height: 300px;
    top: 50%;
    left: 30%;
    animation-delay: -10s;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-30px) rotate(10deg);
    }
}

.hero-grid {
    position: relative;
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    /* Vertically center content */
    z-index: 5;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 20;
    width: 100%;
    max-width: 1100px;
    /* Restore the broad, presentable width from early design */
    padding: var(--space-12) 0;
}

/* Consolidated with secondary hero-visual definition below */
.hero-label {
    display: inline-block;
    padding: var(--space-2) var(--space-4);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: 700;
    /* Bolder */
    text-transform: uppercase;
    letter-spacing: 0.15em;
    /* Wider spacing */
    color: var(--ink-white);
    margin-bottom: var(--space-8);
    backdrop-filter: blur(10px);
    box-shadow: 0 0 20px rgba(0, 71, 171, 0.5);
    /* Glow effect */
    position: relative;
    overflow: hidden;
}

/* Subtle Shimmer for Label */
.hero-label::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% {
        left: -100%;
    }

    20% {
        left: 200%;
    }

    100% {
        left: 200%;
    }
}

.hero-title {
    font-size: clamp(3.5rem, 5vw + 1rem, 7rem);
    /* Bigger, fluid sizing */
    font-weight: 800;
    color: var(--ink-white);
    margin-bottom: var(--space-6);
    line-height: 1.05;
    /* Tighter line height */
    letter-spacing: -0.03em;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    /* Depth */
}

.hero-title span {
    display: block;
    background: linear-gradient(135deg, var(--ink-white) 0%, rgba(255, 255, 255, 0.8) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    padding-bottom: 0.1em;
    /* Prevent clipper descenders */
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.hero-subtitle {
    font-size: var(--text-xl);
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: var(--space-10);
    max-width: 600px;
    line-height: 1.6;
}

.hero-ctas {
    display: flex;
    gap: var(--space-6);
    /* Increased gap */
    flex-wrap: wrap;
    align-items: center;
    margin-top: var(--space-8);
}

.hero-ctas .btn {
    backdrop-filter: blur(4px);
    /* subtle glass effect on buttons */
    transition: all var(--transition-bounce);
}

.hero-ctas .btn-accent {
    box-shadow: 0 10px 20px rgba(220, 38, 38, 0.4), 0 0 0 2px rgba(255, 255, 255, 0.1);
}

.hero-ctas .btn-accent:hover {
    box-shadow: 0 15px 30px rgba(220, 38, 38, 0.6), 0 0 0 4px rgba(255, 255, 255, 0.2);
    transform: translateY(-3px) scale(1.02);
}

.hero-ctas .btn-ghost {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
}

.hero-ctas .btn-ghost:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--ink-white);
    transform: translateY(-3px);
}

/* --------------------------------------------------------------------------   HERO VISUAL - WORK CARDS LOOP   -------------------------------------------------------------------------- */
.hero-visual {
    position: absolute;
    right: -20%;
    top: 15%;
    /* Moved UP to 15% as requested */
    transform: translateY(-15%);
    width: 65vw;
    height: 100%;
    z-index: 1;
    /* Keep in background as per previous request */
    display: flex;
    align-items: center;
    justify-content: flex-end;
    pointer-events: none;
    opacity: 0.7;
    /* Increased slightly for visibility */
    mask-image: linear-gradient(to right, transparent 0%, black 30%, black 100%);
}

.hero-slider-wrap {
    width: 100%;
    overflow: hidden;
    padding: var(--space-12) 0;
    mask-image: linear-gradient(to right, transparent, black 40%, black 100%);
}

.hero-slider-track {
    display: flex;
    gap: var(--space-6);
    animation: heroMarquee 40s linear infinite;
    width: max-content;
}

@keyframes heroMarquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-50% - (var(--space-6) / 2)));
    }
}

.hero-work-card {
    width: 280px;
    height: 380px;
    flex-shrink: 0;
    border-radius: var(--radius-2xl);
    overflow: hidden;
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    transform: perspective(1000px) rotateY(-15deg);
    transition: all var(--transition-base);
}

.hero-work-card:nth-child(even) {
    margin-top: 40px;
}

.hero-work-card:nth-child(odd) {
    margin-top: -40px;
}

.hero-work-card:hover {
    transform: perspective(1000px) rotateY(0) scale(1.1);
    z-index: 50;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.5);
    margin-top: 0;
    /* Align on hover */
}

.hero-work-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.hero-work-card .card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.4), transparent);
    opacity: 0.6;
}

/* Floating Tags */
.floating-tag {
    position: absolute;
    padding: var(--space-2) var(--space-5);
    background: var(--ink-red);
    color: white;
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: 700;
    box-shadow: var(--shadow-lg);
    z-index: 60;
    animation: floatTag 6s ease-in-out infinite;
}

.floating-tag.tag-1 {
    top: 10%;
    left: 10%;
    background: var(--ink-blue);
}

.floating-tag.tag-2 {
    bottom: 15%;
    right: 5%;
    animation-delay: -3s;
}

@keyframes floatTag {

    0%,
    100% {
        transform: translateY(0) rotate(-5deg);
    }

    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

/* --------------------------------------------------------------------------   MOBILE RESPONSIVENESS (HERO)   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
    .hero-grid {
        justify-content: center;
        text-align: center;
        flex-direction: column;
        padding-top: var(--space-20);
    }

    .hero-content {
        max-width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        z-index: 30;
        /* Ensure on top */
    }

    .hero-title {
        font-size: 3.5rem;
        /* Smaller on mobile */
    }

    .hero-ctas {
        justify-content: center;
    }

    .hero-visual {
        top: auto;
        bottom: 5%;
        right: auto;
        left: 50%;
        transform: translateX(-50%);
        height: 50%;
        width: 100vw;
        /* Fix: Don't exceed screen width */
        max-width: 100%;
        opacity: 0.3;
        opacity: 0.3;
        mask-image: linear-gradient(to top, black, transparent);
        align-items: flex-end;
        /* Align cards to bottom */
        justify-content: center;
    }

    .hero-work-card {
        width: 180px;
        /* Even smaller cards */
        height: 260px;
    }

    .hero-slider-wrap {
        width: 100%;
        margin-top: 0;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: var(--text-base);
        padding: 0 var(--space-4);
    }

    .hero-visual {
        bottom: 10%;
        opacity: 0.25;
    }
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: var(--space-10);
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-2);
    color: rgba(255, 255, 255, 0.6);
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    animation: bounce 2s infinite;
}

.scroll-indicator::after {
    content: '';
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.6), transparent);
}

@keyframes bounce {

    0%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    50% {
        transform: translateX(-50%) translateY(10px);
    }
}

/* --------------------------------------------------------------------------   8. SECTIONS   -------------------------------------------------------------------------- */
/* Section Headers */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto var(--space-16);
}

.section-header.left {
    text-align: left;
    margin-left: 0;
}

.section-label {
    display: inline-block;
    font-size: var(--text-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--ink-blue);
    margin-bottom: var(--space-4);
    padding: var(--space-2) var(--space-4);
    background: rgba(0, 71, 171, 0.08);
    border-radius: var(--radius-full);
}

.section-title {
    margin-bottom: var(--space-4);
}

.section-subtitle {
    font-size: var(--text-lg);
    color: var(--ink-gray-500);
    max-width: 600px;
    margin: 0 auto;
}

/* Trust Section / Stats */
.trust-section {
    background: var(--ink-gray-50);
    border-top: 1px solid var(--ink-gray-200);
    border-bottom: 1px solid var(--ink-gray-200);
}

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

.stat-item {
    text-align: center;
    padding: var(--space-8);
    position: relative;
}

.stat-item::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 60%;
    background: var(--ink-gray-200);
}

.stat-item:last-child::after {
    display: none;
}

.stat-number {
    font-family: var(--font-display);
    font-size: var(--text-5xl);
    font-weight: 800;
    color: var(--ink-blue);
    line-height: 1;
    margin-bottom: var(--space-2);
}

.stat-label {
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--ink-gray-800);
    margin-bottom: var(--space-1);
}

.stat-description {
    font-size: var(--text-sm);
    color: var(--ink-gray-500);
}

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

    .stat-item:nth-child(2)::after {
        display: none;
    }

    .stat-item:nth-child(1)::after,
    .stat-item:nth-child(2)::after,
    .stat-item:nth-child(3)::after,
    .stat-item:nth-child(4)::after {
        top: auto;
        bottom: 0;
        right: 50%;
        transform: translateX(50%);
        width: 60%;
        height: 1px;
    }
}

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

    .stat-item::after {
        display: none;
    }

    .stat-item {
        padding: var(--space-6);
        border-bottom: 1px solid var(--ink-gray-200);
    }

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

/* Services Grid */
.services-section {
    position: relative;
    overflow: hidden;
}

.services-section::before {
    content: '';
    position: absolute;
    top: -10%;
    right: -10%;
    width: 40%;
    height: 40%;
    background: radial-gradient(circle, var(--ink-blue-light) 0%, transparent 70%);
    opacity: 0.1;
    filter: blur(80px);
    pointer-events: none;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-6);
    position: relative;
    z-index: 2;
}

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

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

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

/* Service Card */
.service-card {
    position: relative;
    background: var(--ink-white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-md);
    height: 100%;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-2xl);
}

.service-card-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.service-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.service-card:hover .service-card-image img {
    transform: scale(1.1);
}

.service-card-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.6) 100%);
}

.service-card-icon {
    position: absolute;
    bottom: var(--space-4);
    left: var(--space-4);
    z-index: 1;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--ink-blue);
    border-radius: var(--radius-lg);
    color: var(--ink-white);
    font-size: 1.5rem;
    box-shadow: var(--shadow-lg);
}

.service-card-content {
    padding: var(--space-6);
}

.service-card-title {
    font-size: var(--text-lg);
    font-weight: 700;
    margin-bottom: var(--space-1);
    color: var(--ink-gray-900);
}

.service-card-tagline {
    font-size: var(--text-sm);
    color: var(--ink-blue);
    font-weight: 500;
    margin-bottom: var(--space-3);
}

.service-card-description {
    font-size: var(--text-sm);
    color: var(--ink-gray-500);
    margin-bottom: var(--space-4);
    line-height: 1.6;
}

.service-card-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--ink-blue);
    transition: gap var(--transition-fast);
}

.service-card-link:hover {
    gap: var(--space-3);
}

/* Portfolio Grid */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-6);
}

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

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

/* Portfolio Card */
.portfolio-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 4/3;
    cursor: pointer;
}

.portfolio-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.portfolio-card:hover .portfolio-card-image {
    transform: scale(1.1);
}

.portfolio-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(0, 47, 130, 0.95) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: var(--space-6);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.portfolio-card:hover .portfolio-card-overlay {
    opacity: 1;
}

.portfolio-card-category {
    font-size: var(--text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: var(--space-2);
}

.portfolio-card-title {
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--ink-white);
    margin-bottom: var(--space-2);
}

.portfolio-card-client {
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.8);
}

/* Process Section */
.process-section {
    background: var(--ink-gray-900);
    color: var(--ink-white);
}

.process-section .section-label {
    color: var(--ink-red);
    background: rgba(220, 38, 38, 0.1);
}

.process-section .section-title {
    color: var(--ink-white);
}

.process-section .section-subtitle {
    color: var(--ink-gray-400);
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-8);
    position: relative;
}

.process-grid::before {
    content: '';
    position: absolute;
    top: 40px;
    left: 10%;
    right: 10%;
    height: 2px;
    background: linear-gradient(90deg, var(--ink-blue) 0%, var(--ink-red) 100%);
}

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

    .process-grid::before {
        display: none;
    }
}

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

.process-step {
    text-align: center;
    position: relative;
}

.process-step-number {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--space-6);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    font-family: var(--font-display);
    font-size: var(--text-2xl);
    font-weight: 800;
    color: var(--ink-white);
    position: relative;
    z-index: 1;
    box-shadow: var(--shadow-lg), var(--shadow-glow-blue);
}

.process-step-title {
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--ink-white);
    margin-bottom: var(--space-3);
}

.process-step-description {
    font-size: var(--text-base);
    color: var(--ink-gray-400);
    line-height: 1.6;
}

/* Testimonials */
.testimonials-section {
    background: linear-gradient(180deg, var(--ink-gray-50) 0%, var(--ink-white) 100%);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-8);
}

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

.testimonial-card {
    background: var(--ink-white);
    padding: var(--space-10);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    position: relative;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: var(--space-6);
    left: var(--space-8);
    font-family: var(--font-display);
    font-size: 8rem;
    line-height: 1;
    color: var(--ink-blue);
    opacity: 0.1;
}

.testimonial-content {
    font-size: var(--text-lg);
    line-height: 1.8;
    color: var(--ink-gray-700);
    margin-bottom: var(--space-8);
    position: relative;
    z-index: 1;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: var(--space-4);
}

.testimonial-avatar {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-full);
    object-fit: cover;
    border: 3px solid var(--ink-gray-100);
}

.testimonial-info h4 {
    font-size: var(--text-base);
    font-weight: 700;
    color: var(--ink-gray-900);
    margin-bottom: var(--space-1);
}

.testimonial-info p {
    font-size: var(--text-sm);
    color: var(--ink-gray-500);
    margin: 0;
}

.testimonial-rating {
    display: flex;
    gap: var(--space-1);
    margin-left: auto;
    color: var(--ink-gold);
}

/* Client Logos */
.clients-section {
    padding: var(--space-12) 0;
    background: var(--ink-white);
    border-top: 1px solid var(--ink-gray-100);
}

.clients-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: var(--space-10);
    align-items: center;
}

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

@media (max-width: 768px) {
    .clients-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

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

.client-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-4);
    opacity: 0.6;
    filter: grayscale(100%);
    transition: all var(--transition-base);
}

.client-logo:hover {
    opacity: 1;
    filter: grayscale(0%);
}

.client-logo img {
    max-height: 60px;
    width: auto;
}

/* CTA Section */
.cta-section {
    background: var(--gradient-primary);
    padding: var(--space-24) 0;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.cta-content {
    position: relative;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.cta-title {
    font-size: var(--text-4xl);
    font-weight: 800;
    color: var(--ink-white);
    margin-bottom: var(--space-4);
}

.cta-subtitle {
    font-size: var(--text-xl);
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: var(--space-10);
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: var(--space-4);
    flex-wrap: wrap;
}

/* --------------------------------------------------------------------------   9. FOOTER   -------------------------------------------------------------------------- */
.site-footer {
    background: var(--ink-gray-900);
    color: var(--ink-gray-300);
    padding-top: var(--space-20);
}

.footer-main {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--space-12);
    padding-bottom: var(--space-16);
    border-bottom: 1px solid var(--ink-gray-800);
}

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

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

.footer-brand {
    max-width: 360px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin-bottom: var(--space-4);
}

.footer-logo-icon {
    width: 48px;
    height: 48px;
}

.footer-logo-text {
    font-family: var(--font-display);
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--ink-white);
}

.footer-logo-text span {
    color: var(--ink-red);
}

.footer-tagline {
    font-size: var(--text-lg);
    margin-bottom: var(--space-6);
    color: var(--ink-gray-400);
}

.footer-social {
    display: flex;
    gap: var(--space-3);
}

.footer-social a {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--ink-gray-800);
    border-radius: var(--radius-full);
    color: var(--ink-gray-400);
    font-size: 1.25rem;
    transition: all var(--transition-fast);
}

.footer-social a:hover {
    background: var(--ink-blue);
    color: var(--ink-white);
    transform: translateY(-2px);
}

.footer-column h5 {
    font-size: var(--text-sm);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--ink-white);
    margin-bottom: var(--space-6);
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.footer-links a {
    font-size: var(--text-base);
    color: var(--ink-gray-400);
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--ink-white);
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    margin-bottom: var(--space-4);
}

.footer-contact-item i {
    color: var(--ink-blue);
    margin-top: 4px;
}

.footer-contact-item p {
    margin: 0;
    color: var(--ink-gray-400);
}

.footer-contact-item strong {
    color: var(--ink-white);
    display: block;
    margin-bottom: var(--space-1);
}

.footer-bottom {
    padding: var(--space-6) 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--space-4);
}

.footer-copyright {
    font-size: var(--text-sm);
    color: var(--ink-gray-500);
}

.footer-legal {
    display: flex;
    gap: var(--space-6);
}

.footer-legal a {
    font-size: var(--text-sm);
    color: var(--ink-gray-500);
    transition: color var(--transition-fast);
}

.footer-legal a:hover {
    color: var(--ink-white);
}

/* --------------------------------------------------------------------------   10. WHATSAPP FLOATING BUTTON   -------------------------------------------------------------------------- */
.whatsapp-float {
    position: fixed;
    bottom: var(--space-8);
    right: var(--space-8);
    z-index: var(--z-fixed);
}

.whatsapp-btn {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #25D366;
    border-radius: var(--radius-full);
    color: var(--ink-white);
    font-size: 1.75rem;
    box-shadow: var(--shadow-xl), 0 0 30px rgba(37, 211, 102, 0.4);
    transition: all var(--transition-base);
    animation: pulse 2s infinite;
}

.whatsapp-btn:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-2xl), 0 0 50px rgba(37, 211, 102, 0.5);
}

@keyframes pulse {
    0% {
        box-shadow: var(--shadow-xl), 0 0 0 0 rgba(37, 211, 102, 0.4);
    }

    70% {
        box-shadow: var(--shadow-xl), 0 0 0 20px rgba(37, 211, 102, 0);
    }

    100% {
        box-shadow: var(--shadow-xl), 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

@media (max-width: 640px) {
    .whatsapp-float {
        bottom: var(--space-4);
        right: var(--space-4);
    }

    .whatsapp-btn {
        width: 54px;
        height: 54px;
        font-size: 1.5rem;
    }
}

/* --------------------------------------------------------------------------   11. FORMS   -------------------------------------------------------------------------- */
.form-group {
    margin-bottom: var(--space-6);
}

.form-label {
    display: block;
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--ink-gray-700);
    margin-bottom: var(--space-2);
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: var(--space-4) var(--space-5);
    font-family: inherit;
    font-size: var(--text-base);
    color: var(--ink-gray-800);
    background: var(--ink-white);
    border: 2px solid var(--ink-gray-200);
    border-radius: var(--radius-lg);
    transition: all var(--transition-fast);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: var(--ink-blue);
    box-shadow: 0 0 0 4px rgba(0, 71, 171, 0.1);
}

.form-input::placeholder {
    color: var(--ink-gray-400);
}

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

.form-error {
    font-size: var(--text-sm);
    color: var(--ink-red);
    margin-top: var(--space-2);
}

/* --------------------------------------------------------------------------   12. PAGE TRANSITIONS & ANIMATIONS   -------------------------------------------------------------------------- */
/* Fade in on scroll */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.fade-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger animations */
.stagger-children>* {
    transition-delay: calc(var(--stagger-index, 0) * 100ms);
}

/* Scale on hover */
.scale-hover {
    transition: transform var(--transition-base);
}

.scale-hover:hover {
    transform: scale(1.05);
}

/* --------------------------------------------------------------------------   13. UTILITIES   -------------------------------------------------------------------------- */
/* Text alignment */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

/* Colors */
.text-white {
    color: var(--ink-white);
}

.text-primary {
    color: var(--ink-blue);
}

.text-accent {
    color: var(--ink-red);
}

.text-muted {
    color: var(--ink-gray-500);
}

.bg-primary {
    background: var(--gradient-primary);
}

.bg-dark {
    background: var(--ink-gray-900);
}

.bg-light {
    background: var(--ink-gray-50);
}

/* Spacing */
.mt-0 {
    margin-top: 0;
}

.mb-0 {
    margin-bottom: 0;
}

.py-section {
    padding: var(--space-20) 0;
}

/* Display */
.hidden {
    display: none;
}

.block {
    display: block;
}

/* Responsive visibility */
@media (max-width: 1024px) {
    .hidden-tablet {
        display: none !important;
    }
}

@media (max-width: 640px) {
    .hidden-mobile {
        display: none !important;
    }
}

/* Screen reader only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ==========================================================================   SERVICE SINGLE PAGE REDESIGN   ========================================================================== */
/* Theme Gradients */
.theme-blue {
    --theme-gradient: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%);
    --theme-color: #2563EB;
    --theme-light: #EFF6FF;
}

.theme-purple {
    --theme-gradient: linear-gradient(135deg, #D946EF 0%, #A855F7 100%);
    --theme-color: #A855F7;
    --theme-light: #FAF5FF;
}

.theme-orange {
    --theme-gradient: linear-gradient(135deg, #F59E0B 0%, #EA580C 100%);
    --theme-color: #EA580C;
    --theme-light: #FFF7ED;
}

.theme-green {
    --theme-gradient: linear-gradient(135deg, #22C55E 0%, #16A34A 100%);
    --theme-color: #16A34A;
    --theme-light: #F0FDF4;
}

.theme-indigo {
    --theme-gradient: linear-gradient(135deg, #6366F1 0%, #4F46E5 100%);
    --theme-color: #4F46E5;
    --theme-light: #EEF2FF;
}

.theme-pink {
    --theme-gradient: linear-gradient(135deg, #EC4899 0%, #DB2777 100%);
    --theme-color: #DB2777;
    --theme-light: #FDF2F8;
}

.theme-teal {
    --theme-gradient: linear-gradient(135deg, #14B8A6 0%, #0D9488 100%);
    --theme-color: #0D9488;
    --theme-light: #F0FDFA;
}

.theme-gray {
    --theme-gradient: linear-gradient(135deg, #64748B 0%, #475569 100%);
    --theme-color: #475569;
    --theme-light: #F8FAFC;
}

/* Service Hero - Forced White Text */
.service-hero,
.service-hero *,
.service-single-wrapper .service-hero,
.service-single-wrapper .service-hero * {
    color: #ffffff !important;
}

.service-hero {
    background: var(--theme-gradient);
    padding: 120px 0 80px;
    position: relative;
    z-index: 1;
}

.service-breadcrumb {
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
}

.service-breadcrumb a {
    text-decoration: none;
}

.service-breadcrumb a:hover {
    text-decoration: underline;
}

.service-title {
    font-size: var(--text-5xl);
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.1;
}

.service-hero-desc {
    font-size: var(--text-lg);
    max-width: 800px;
    line-height: 1.6;
    margin-bottom: 0;
}

/* Service Layout */
.service-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 4rem;
    padding-top: 5rem;
    padding-bottom: 5rem;
}

@media (max-width: 1024px) {
    .service-layout {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

/* Sidebar */
.service-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.offer-card {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
}

.offer-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--ink-gray-900);
    margin-bottom: 1.5rem;
}

.offer-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.offer-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    font-size: 0.9375rem;
    color: var(--ink-gray-600);
}

.offer-item i {
    color: var(--theme-color);
    font-size: 0.875rem;
}

.cta-card {
    background: var(--theme-light);
    border-radius: 1rem;
    padding: 2rem;
    color: var(--ink-gray-900);
    text-align: center;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.cta-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--ink-gray-900) !important;
}

.cta-card-text {
    font-size: 0.875rem;
    opacity: 0.9;
    margin-bottom: 1.5rem;
    line-height: 1.5;
    color: var(--ink-gray-600) !important;
}

.btn-cta-theme {
    background: var(--theme-gradient);
    color: white !important;
    font-weight: 600;
    padding: 0.875rem 1.5rem;
    border-radius: 0.75rem;
    border: none;
    cursor: pointer;
    width: 100%;
    display: inline-block;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    font-size: 1rem;
}

.btn-cta-theme:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
    filter: brightness(1.1);
}

/* Main Content */
.content-block {
    margin-bottom: 4rem;
}

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

.block-icon {
    width: 32px;
    height: 32px;
    background: var(--theme-gradient);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.875rem;
}

.block-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--ink-gray-900);
}

.block-text {
    color: var(--ink-gray-600);
    line-height: 1.7;
    padding-left: calc(32px + 1rem);
    /* Align with title text */
}

/* Benefits Grid */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    padding-left: calc(32px + 1rem);
}

.benefit-item {
    background: var(--theme-light);
    /* Or generic gray light */
    background: #F8FAFC;
    padding: 1.25rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--ink-gray-800);
}

.benefit-item i {
    color: var(--theme-color);
    /* Green check usually, but theme color works */
    color: #10B981;
    /* Standard success green for checkmarks */
}

/* Service Visual */
.service-visual-box {
    height: 400px;
    background: var(--theme-gradient);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    margin-top: 2rem;
}

/* Dot pattern overlay using CSS */
.service-visual-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.2) 2px, transparent 2px);
    background-size: 30px 30px;
    background-position: center;
}

.visual-placeholder {
    color: white;
    font-weight: 500;
    font-size: 1.125rem;
    opacity: 0.8;
    z-index: 1;
}

/* Other Services Footer */
.other-services-section {
    background: #F8FAFC;
    /* Light gray background from image bottom */
    padding: 5rem 0;
    text-align: center;
}

.section-title-center {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--ink-gray-900);
    margin-bottom: 3rem;
    text-align: center;
}

.services-nav-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

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

@media (max-width: 600px) {
    .services-nav-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .service-nav-card {
        padding: 1.5rem 0.75rem;
    }
}

.service-nav-card {
    background: white;
    padding: 2rem 1rem;
    border-radius: 1rem;
    text-decoration: none;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.service-nav-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.nav-icon-box {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
}

/* Specific icon colors based on theme classes helper */
.bg-blue {
    background: linear-gradient(135deg, #3B82F6, #2563EB);
}

.bg-purple {
    background: linear-gradient(135deg, #D946EF, #A855F7);
}

.bg-orange {
    background: linear-gradient(135deg, #F59E0B, #EA580C);
}

.bg-green {
    background: linear-gradient(135deg, #22C55E, #16A34A);
}

.bg-indigo {
    background: linear-gradient(135deg, #6366F1, #4F46E5);
}

.bg-pink {
    background: linear-gradient(135deg, #EC4899, #DB2777);
}

.bg-teal {
    background: linear-gradient(135deg, #14B8A6, #0D9488);
}

.bg-gray {
    background: linear-gradient(135deg, #64748B, #475569);
}

.nav-service-name {
    color: var(--ink-gray-900);
    font-weight: 700;
    font-size: 0.875rem;
}

/* --------------------------------------------------------------------------   MOBILE BOTTOM NAVIGATION (App-like Interface)   -------------------------------------------------------------------------- */
.mobile-bottom-nav {
    display: none;
    /* Hidden by default */
}

@media (max-width: 1024px) {
    .mobile-bottom-nav {
        display: flex;
        position: fixed;
        bottom: 25px;
        /* Floating above the bottom */
        left: 50%;
        transform: translateX(-50%);
        width: 90%;
        max-width: 450px;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        padding: 8px 15px;
        border-radius: 100px;
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15), 0 5px 15px rgba(0, 0, 0, 0.05);
        z-index: 1000;
        justify-content: space-around;
        align-items: center;
        border: 1px solid rgba(255, 255, 255, 0.3);
    }

    .bottom-nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-decoration: none;
        color: var(--ink-gray-600);
        gap: 4px;
        transition: all 0.3s ease;
        padding: 5px;
        position: relative;
        flex: 1;
    }

    .nav-icon-wrapper {
        width: 42px;
        height: 42px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        font-size: 1.2rem;
        transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    }

    .bottom-nav-item span {
        font-size: 0.65rem;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        opacity: 0.8;
    }

    /* Active State - Inspired by user image but branded with 'Start a Project' accent */
    .bottom-nav-item.active {
        color: var(--ink-red);
    }

    .bottom-nav-item.active .nav-icon-wrapper {
        background: var(--gradient-accent);
        /* Red/Orange gradient like 'Start a Project' */
        color: var(--ink-white);
        transform: translateY(-8px) scale(1.1);
        box-shadow: 0 8px 20px rgba(220, 38, 38, 0.4);
    }

    .bottom-nav-item.active span {
        font-weight: 700;
        opacity: 1;
        color: var(--ink-red);
    }

    /* Hide the top header toggle when bottom nav is active to avoid 'two menus' confusion */
    .mobile-menu-toggle {
        display: none !important;
    }

    /* Ensure the logo is still visible and centered if toggle is gone */
    .header-inner {
        justify-content: center;
    }
}

/* Landscape adjustment */
@media (max-width: 1024px) and (orientation: landscape) {
    .mobile-bottom-nav {
        bottom: 10px;
        padding: 5px 15px;
        max-width: 600px;
    }

    .nav-icon-wrapper {
        width: 38px;
        height: 38px;
    }
}

/* ==========================================================================   TOAST NOTIFICATIONS   ========================================================================== */
.toast-container {
    position: fixed;
    top: 2rem;
    right: 2rem;
    z-index: 9999;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.toast {
    pointer-events: auto;
    min-width: 320px;
    max-width: 450px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    border-radius: var(--radius-xl);
    padding: 1.25rem 1.5rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.5);
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    transform: translateX(120%);
    transition: transform 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.toast.active {
    transform: translateX(0);
}

.toast-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.toast-success .toast-icon {
    background: rgba(34, 197, 94, 0.15);
    color: #16a34a;
}

.toast-error .toast-icon {
    background: rgba(220, 38, 38, 0.15);
    color: var(--ink-red);
}

.toast-content {
    flex: 1;
}

.toast-title {
    font-weight: 700;
    font-family: var(--font-display);
    margin-bottom: 0.25rem;
    color: var(--ink-black);
}

.toast-message {
    font-size: var(--text-sm);
    color: var(--ink-gray-600);
    line-height: 1.5;
}

.toast-close {
    background: none;
    border: none;
    color: var(--ink-gray-400);
    cursor: pointer;
    font-size: 1rem;
    padding: 5px;
    transition: color 0.2s;
}

.toast-close:hover {
    color: var(--ink-black);
}

@media (max-width: 768px) {
    .toast-container {
        top: 1rem;
        right: 1rem;
        left: 1rem;
    }

    .toast {
        min-width: 0;
        width: 100%;
    }
}