/* ===== GROWTHIVA — Light Premium Theme ===== */
/* White · Green · Sketch Style — Bold & Creative */

:root {
    /* Primary — Mint Green */
    --primary: #69C291;
    --primary-light: #8DD4A8;
    --primary-dark: #4FA874;
    --primary-glow: rgba(105, 194, 145, 0.25);

    /* Accent — Punch Red/Pink */
    --accent: #FA454E;
    --accent-light: #FF6B72;
    --accent-2: #EC1B5D;
    --accent-3: #FBB344;
    --accent-green: #69C291;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #69C291, #4FA874);
    --gradient-secondary: linear-gradient(135deg, #FA454E, #EC1B5D);
    --gradient-warm: linear-gradient(135deg, #69C291, #8DD4A8);
    --gradient-hero: linear-gradient(160deg, #fafcfb 0%, #f5f9f7 50%, #eef5f0 100%);
    --gradient-card: linear-gradient(145deg, #fafcfb, #f5f9f7);
    --gradient-glass: linear-gradient(135deg, rgba(250,252,251,0.95), rgba(245,249,247,0.85));

    /* Backgrounds */
    --bg-primary: #fafcfb;
    --bg-warm: #f5f9f7;
    --bg-section: #eff4f1;
    --bg-teal: #eaf3ee;
    --bg-card: #FFFFFF;
    --bg-card-hover: #f7faf8;
    --bg-dark: #111111;
    --bg-darker: #0C0C0C;
    --bg-footer: #111111;

    /* Text */
    --text-primary: #1a1a1a;
    --text-secondary: #555555;
    --text-muted: #888888;
    --text-light: #FFFFFF;

    /* Borders */
    --border-color: #e0e0e0;
    --border-light: #eeeeee;
    --border-glow: rgba(105, 194, 145, 0.35);

    /* Fonts — Doodle Style */
    --font-primary: 'Cabin Sketch', cursive;
    --font-secondary: 'Patrick Hand', cursive;

    /* Spacing */
    --section-padding: 120px 0;
    --container-width: 1280px;

    /* Radius */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --radius-full: 50%;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.06);
    --shadow-lg: 0 12px 40px rgba(0,0,0,0.08);
    --shadow-xl: 0 20px 60px rgba(0,0,0,0.1);
    --shadow-glow: 0 8px 30px rgba(105, 194, 145, 0.12);
    --shadow-card: 0 2px 16px rgba(0,0,0,0.04);

    /* Transitions */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--primary) #f5f5f4;
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #f5f5f4; }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 4px; }

body {
    font-family: var(--font-secondary);
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 17px;
    line-height: 1.8;
    letter-spacing: 0.2px;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }
img { max-width: 100%; display: block; }

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

.section { padding: var(--section-padding); position: relative; }

/* ===== GRADIENT TEXT ===== */
.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    border-radius: var(--radius-sm);
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: 17px;
    letter-spacing: 0.3px;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    position: relative;
    overflow: hidden;
}

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

.btn:hover::before { left: 100%; }

.btn-primary {
    background: var(--primary);
    color: #FFFFFF;
    box-shadow: none;
}

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

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

.btn-outline:hover {
    border-color: var(--primary);
    background: rgba(105, 194, 145, 0.05);
    color: var(--primary);
    transform: translateY(-2px);
}

.btn-white {
    background: var(--primary);
    color: #0C0C0C;
    font-weight: 800;
}

.btn-white:hover {
    transform: translateY(-2px);
    background: var(--primary-light);
    box-shadow: 0 10px 30px rgba(105, 194, 145, 0.4);
}

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

.btn-outline-white:hover {
    background: rgba(255,255,255,0.1);
    border-color: white;
    transform: translateY(-2px);
}

.btn-lg {
    padding: 18px 40px;
    font-size: 16px;
    border-radius: var(--radius-md);
}

.btn-nav {
    padding: 10px 24px;
    font-size: 14px;
}

/* ===== PRELOADER ===== */
.preloader {
    position: fixed;
    inset: 0;
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 0.5s, visibility 0.5s;
}

.preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loader-ring {
    width: 80px;
    height: 80px;
    border: 3px solid var(--border-color);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loader-text {
    position: absolute;
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 4px;
    color: var(--primary);
}

/* ===== CUSTOM CURSOR ===== */
.cursor, .cursor-follower {
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.15s;
}

.cursor {
    width: 8px;
    height: 8px;
    background: var(--primary);
}

.cursor-follower {
    width: 35px;
    height: 35px;
    border: 1px solid var(--primary-light);
    transition: transform 0.3s, width 0.3s, height 0.3s;
}

/* ===== NAVBAR ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    padding: 12px 0;
    box-shadow: 0 4px 30px rgba(0,0,0,0.08);
}

.nav-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 4px;
    font-family: var(--font-primary);
    font-size: 28px;
    font-weight: 800;
    z-index: 1001;
}

.logo-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: #FFFFFF;
    border-radius: var(--radius-sm);
    color: var(--primary);
    font-size: 24px;
    font-weight: 900;
}

.logo-text { color: #1a1a1a; }

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-links a {
    padding: 10px 18px;
    font-size: 17px;
    font-weight: 700;
    font-family: var(--font-primary);
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
    color: #1a1a1a;
    background: var(--primary);
}

/* Dropdown */
.dropdown { position: relative; }

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 280px;
    background: #f2f6f4;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    box-shadow: var(--shadow-lg);
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    color: var(--text-secondary);
}

.dropdown-menu a:hover {
    background: #FFFFFF;
    color: var(--primary);
}

.dropdown-menu i {
    width: 20px;
    text-align: center;
    color: var(--accent);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 1001;
}

.hamburger span {
    width: 28px;
    height: 2px;
    background: var(--text-primary);
    transition: var(--transition);
    border-radius: 2px;
}

.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(6px, 6px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(6px, -6px); }

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



.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding: 0 24px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: #FFFFFF;
    border: 1px solid #e0e0e0;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    color: var(--primary);
    margin-bottom: 30px;
}

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

.hero-title {
    font-family: var(--font-primary);
    font-size: clamp(40px, 6vw, 76px);
    font-weight: 800;
    line-height: 1.08;
    margin-bottom: 24px;
    letter-spacing: -2px;
    color: var(--text-primary);
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.8;
}

.hero-cta {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 60px;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 48px;
    flex-wrap: wrap;
    padding-top: 40px;
    border-top: 1px solid var(--border-color);
}

.stat { text-align: center; }

.stat-number {
    font-family: var(--font-primary);
    font-size: 36px;
    font-weight: 800;
    color: #1a1a1a;
}

.stat-label {
    display: block;
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 4px;
}

.hero-scroll {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
}

.hero-scroll a {
    display: block;
    width: 28px;
    height: 44px;
    border: 2px solid var(--border-color);
    border-radius: 20px;
    position: relative;
}

.hero-scroll span {
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: var(--primary);
    border-radius: 4px;
    animation: scrollDown 2s ease-in-out infinite;
}

/* ===== CLIENTS MARQUEE ===== */
.clients-marquee {
    padding: 60px 0;
    background: var(--bg-primary);
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
    overflow: hidden;
}

.clients-label {
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--text-muted);
    margin-bottom: 32px;
}

.marquee-wrapper {
    overflow: hidden;
    position: relative;
}

.marquee-wrapper::before,
.marquee-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    width: 120px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.marquee-wrapper::before {
    left: 0;
    background: linear-gradient(to right, var(--bg-primary), transparent);
}

.marquee-wrapper::after {
    right: 0;
    background: linear-gradient(to left, var(--bg-primary), transparent);
}

.marquee-track {
    display: flex;
    gap: 60px;
    animation: marquee 30s linear infinite;
    width: max-content;
}

.marquee-track .client-logo {
    font-family: var(--font-primary);
    font-size: 22px;
    font-weight: 700;
    color: #1a1a1a;
    white-space: nowrap;
    opacity: 0.7;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    border: 2px solid #2a2a2a;
    border-radius: var(--radius-sm);
    background: #f2f6f4;
}

.marquee-track .client-logo:hover {
    opacity: 1;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Individual brand colors */
.marquee-track .client-logo:nth-child(1),
.marquee-track .client-logo:nth-child(11) { border-color: #4285F4; }
.marquee-track .client-logo:nth-child(1) i,
.marquee-track .client-logo:nth-child(11) i { color: #4285F4; }

.marquee-track .client-logo:nth-child(2),
.marquee-track .client-logo:nth-child(12) { border-color: #EA4335; }
.marquee-track .client-logo:nth-child(2) i,
.marquee-track .client-logo:nth-child(12) i { color: #EA4335; }

.marquee-track .client-logo:nth-child(3),
.marquee-track .client-logo:nth-child(13) { border-color: #00B4D8; }
.marquee-track .client-logo:nth-child(3) i,
.marquee-track .client-logo:nth-child(13) i { color: #00B4D8; }

.marquee-track .client-logo:nth-child(4),
.marquee-track .client-logo:nth-child(14) { border-color: #FA454E; }
.marquee-track .client-logo:nth-child(4) i,
.marquee-track .client-logo:nth-child(14) i { color: #FA454E; }

.marquee-track .client-logo:nth-child(5),
.marquee-track .client-logo:nth-child(15) { border-color: #FBBC04; }
.marquee-track .client-logo:nth-child(5) i,
.marquee-track .client-logo:nth-child(15) i { color: #FBBC04; }

.marquee-track .client-logo:nth-child(6),
.marquee-track .client-logo:nth-child(16) { border-color: #34A853; }
.marquee-track .client-logo:nth-child(6) i,
.marquee-track .client-logo:nth-child(16) i { color: #34A853; }

.marquee-track .client-logo:nth-child(7),
.marquee-track .client-logo:nth-child(17) { border-color: #E040FB; }
.marquee-track .client-logo:nth-child(7) i,
.marquee-track .client-logo:nth-child(17) i { color: #E040FB; }

.marquee-track .client-logo:nth-child(8),
.marquee-track .client-logo:nth-child(18) { border-color: #FF3D71; }
.marquee-track .client-logo:nth-child(8) i,
.marquee-track .client-logo:nth-child(18) i { color: #FF3D71; }

.marquee-track .client-logo:nth-child(9),
.marquee-track .client-logo:nth-child(19) { border-color: #00C48C; }
.marquee-track .client-logo:nth-child(9) i,
.marquee-track .client-logo:nth-child(19) i { color: #00C48C; }

.marquee-track .client-logo:nth-child(10),
.marquee-track .client-logo:nth-child(20) { border-color: #7C3AED; }
.marquee-track .client-logo:nth-child(10) i,
.marquee-track .client-logo:nth-child(20) i { color: #7C3AED; }

.marquee-track .client-logo:hover {
    border-color: #1a1a1a;
    background: #FFFFFF;
    color: var(--primary);
}

.marquee-track .client-logo:hover i {
    color: var(--primary) !important;
}

.marquee-track .client-logo i {
    font-size: 28px;
}

/* ===== SECTION HEADERS ===== */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 80px;
}

.section-tag {
    display: inline-block;
    padding: 6px 16px;
    background: #f0f7f3;
    border: 1px solid #d4e8dc;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    color: var(--primary-dark);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.section-title {
    font-family: var(--font-primary);
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.section-subtitle {
    font-size: 17px;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* ===== SERVICES GRID ===== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 0;
    overflow: hidden;
    transition: var(--transition);
    cursor: pointer;
    display: block;
    box-shadow: var(--shadow-card);
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: 0 12px 40px rgba(0,0,0,0.1);
}

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

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

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

.icon-overlay {
    position: absolute;
    inset: 0;
    background: rgba(17, 17, 17, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.icon-overlay i {
    font-size: 40px;
    color: var(--primary);
}

.service-card:hover .icon-overlay { opacity: 1; }

.service-card h3 {
    font-family: var(--font-primary);
    font-size: 20px;
    font-weight: 700;
    margin: 24px 24px 8px;
    color: var(--text-primary);
}

.service-card p {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0 24px 16px;
    line-height: 1.6;
}

.service-link {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 24px 24px;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary);
    transition: var(--transition);
}

.service-card:hover .service-link { gap: 14px; }

/* ===== ABOUT SECTION ===== */
.about { background: var(--bg-section); }

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

.about-images { position: relative; }

.about-img-main img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.about-img-secondary {
    position: absolute;
    bottom: -40px;
    right: -40px;
    width: 250px;
    border: 6px solid var(--bg-section);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.about-img-secondary img { border-radius: var(--radius-md); }

.about-experience {
    position: absolute;
    top: -20px;
    right: -20px;
    background: #FFFFFF;
    padding: 24px 30px;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-glow);
}

.about-experience .exp-number {
    color: var(--primary);
}

.exp-number {
    display: block;
    font-family: var(--font-primary);
    font-size: 42px;
    font-weight: 800;
    color: white;
    line-height: 1;
}

.exp-text {
    font-size: 12px;
    color: rgba(255,255,255,0.85);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.about-text {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 32px;
    line-height: 1.8;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 40px;
}

.feature { display: flex; gap: 16px; }

.feature-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #FFFFFF;
    border: none;
    border-radius: var(--radius-sm);
    color: var(--primary);
    font-size: 18px;
}

.feature h4 {
    font-family: var(--font-primary);
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.feature p {
    font-size: 13px;
    color: var(--text-muted);
}

/* ===== PROCESS ===== */
.process { background: var(--bg-primary); }

.process-timeline {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    position: relative;
}

.process-timeline::before {
    content: '';
    position: absolute;
    top: 50px;
    left: 15%;
    right: 15%;
    height: 2px;
    background: var(--gradient-primary);
    opacity: 0.2;
}

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

.step-number {
    font-family: var(--font-primary);
    font-size: 60px;
    font-weight: 800;
    color: rgba(0, 0, 0, 0.06);
    line-height: 1;
    margin-bottom: 20px;
}

.step-content {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    transition: var(--transition);
    box-shadow: var(--shadow-card);
}

.step-content:hover {
    border-color: #1a1a1a;
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
}

.step-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #FFFFFF;
    border-radius: var(--radius-md);
    margin: 0 auto 20px;
    font-size: 24px;
    color: var(--primary);
}

.step-content h3 {
    font-family: var(--font-primary);
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.step-content p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ===== PORTFOLIO ===== */
.portfolio { background: var(--bg-section); }

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.portfolio-item {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    height: 350px;
    cursor: pointer;
    box-shadow: var(--shadow-md);
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.portfolio-item:hover img { transform: scale(1.1); }

.portfolio-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.92) 0%, transparent 60%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 32px;
    transition: var(--transition);
}

.portfolio-category {
    display: inline-block;
    padding: 4px 12px;
    background: var(--primary);
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 12px;
    width: fit-content;
}

.portfolio-overlay h3 {
    font-family: var(--font-primary);
    font-size: 24px;
    font-weight: 700;
    color: white;
    margin-bottom: 8px;
}

.portfolio-overlay p {
    font-size: 14px;
    color: rgba(255,255,255,0.7);
}

/* ===== AWARDS / STATS BAR ===== */
.awards-bar {
    background: var(--primary);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.awards-bar::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 30% 50%, rgba(0, 0, 0, 0.05) 0%, transparent 60%),
        radial-gradient(ellipse at 70% 50%, rgba(0, 0, 0, 0.03) 0%, transparent 60%);
}

/* Sketch doodle background */
.sketch-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.sketch-element {
    position: absolute;
    opacity: 0.6;
}

.sketch-star { width: 50px; top: 10%; left: 5%; }
.sketch-circle { width: 45px; top: 60%; left: 8%; }
.sketch-arrow { width: 65px; top: 15%; right: 8%; }
.sketch-zigzag { width: 80px; bottom: 15%; left: 15%; }
.sketch-spiral { width: 45px; top: 40%; right: 5%; }
.sketch-cross { width: 35px; bottom: 20%; right: 12%; }
.sketch-heart { width: 40px; top: 8%; left: 40%; }
.sketch-diamond { width: 35px; bottom: 25%; right: 30%; }
.sketch-dots { width: 60px; top: 70%; left: 45%; }
.sketch-squiggle { width: 75px; bottom: 10%; left: 55%; }

/* Floating animations for sketch elements */
@keyframes sketchFloat1 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(10px, -15px) rotate(8deg); }
    50% { transform: translate(-5px, -25px) rotate(-5deg); }
    75% { transform: translate(15px, -10px) rotate(12deg); }
}

@keyframes sketchFloat2 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(-12px, 10px) rotate(-10deg); }
    50% { transform: translate(8px, 20px) rotate(6deg); }
    75% { transform: translate(-15px, 5px) rotate(-8deg); }
}

@keyframes sketchFloat3 {
    0%, 100% { transform: translate(0, 0) rotate(0deg) scale(1); }
    33% { transform: translate(15px, -20px) rotate(15deg) scale(1.05); }
    66% { transform: translate(-10px, 10px) rotate(-10deg) scale(0.95); }
}

@keyframes sketchFloat4 {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

@keyframes sketchFloat5 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); opacity: 0.6; }
    25% { transform: translate(-8px, -12px) rotate(-15deg); opacity: 0.8; }
    50% { transform: translate(5px, -20px) rotate(10deg); opacity: 0.5; }
    75% { transform: translate(12px, -8px) rotate(-5deg); opacity: 0.7; }
}

.sketch-float-1 { animation: sketchFloat1 8s ease-in-out infinite; }
.sketch-float-2 { animation: sketchFloat2 10s ease-in-out infinite; }
.sketch-float-3 { animation: sketchFloat3 7s ease-in-out infinite; }
.sketch-float-4 { animation: sketchFloat4 6s ease-in-out infinite; }
.sketch-float-5 { animation: sketchFloat5 9s ease-in-out infinite; }
.sketch-float-6 { animation: sketchFloat1 11s ease-in-out infinite reverse; }
.sketch-float-7 { animation: sketchFloat2 8s ease-in-out infinite 1s; }
.sketch-float-8 { animation: sketchFloat3 10s ease-in-out infinite 2s; }
.sketch-float-9 { animation: sketchFloat4 7s ease-in-out infinite 0.5s; }
.sketch-float-10 { animation: sketchFloat5 12s ease-in-out infinite 1.5s; }

.awards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    position: relative;
    z-index: 2;
}

.award-item {
    text-align: center;
    padding: 32px 20px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.1);
    transition: var(--transition);
}

.award-item:hover {
    border-color: rgba(255,255,255,0.35);
    background: rgba(255,255,255,0.15);
    transform: translateY(-4px);
}

.award-icon {
    font-size: 36px;
    color: #0C0C0C;
    margin-bottom: 16px;
}

.award-number {
    font-family: var(--font-primary);
    font-size: 42px;
    font-weight: 800;
    color: #0C0C0C;
    margin-bottom: 4px;
}

.award-label {
    font-size: 14px;
    color: rgba(0,0,0,0.7);
}

/* ===== TESTIMONIALS ===== */
.testimonials { background: var(--bg-primary); }

.testimonial-slider {
    position: relative;
    overflow: hidden;
    max-width: 900px;
    margin: 0 auto;
}

.testimonial-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.testimonial-card {
    min-width: 100%;
    padding: 48px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-card);
}

.testimonial-stars {
    color: var(--accent-3);
    font-size: 18px;
    margin-bottom: 24px;
    display: flex;
    gap: 4px;
    justify-content: center;
}

.testimonial-card > p {
    font-size: 18px;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 32px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.testimonial-author img {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary);
}

.testimonial-author strong {
    display: block;
    font-family: var(--font-primary);
    font-size: 16px;
    color: var(--text-primary);
}

.testimonial-author span {
    font-size: 13px;
    color: var(--text-muted);
}

.testimonial-nav {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 32px;
}

.testimonial-btn {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    color: var(--text-primary);
    cursor: pointer;
    transition: var(--transition);
}

.testimonial-btn:hover {
    background: #FFFFFF;
    border-color: #1a1a1a;
    color: var(--primary);
}

/* ===== CTA SECTION ===== */
.cta-section {
    padding: 120px 0;
    background: var(--primary);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="2" fill="rgba(255,255,255,0.05)"/></svg>');
    background-size: 30px 30px;
}

.cta-content {
    text-align: center;
    position: relative;
    z-index: 2;
}

.cta-content h2 {
    font-family: var(--font-primary);
    font-size: clamp(32px, 4vw, 52px);
    font-weight: 800;
    margin-bottom: 16px;
    color: white;
}

.cta-content .gradient-text {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.cta-content p {
    font-size: 18px;
    color: rgba(255,255,255,0.85);
    margin-bottom: 40px;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===== FOOTER ===== */
.footer {
    background: var(--bg-footer);
    padding: 80px 0 0;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: 48px;
    padding-bottom: 60px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand p {
    font-size: 14px;
    color: rgba(255,255,255,0.6);
    margin: 16px 0 24px;
    line-height: 1.7;
}

.footer .logo-text { color: white; }
.footer .logo-icon { background: var(--primary); color: #FFFFFF; }

.footer-socials {
    display: flex;
    gap: 12px;
}

.footer-socials a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-sm);
    color: rgba(255,255,255,0.6);
    font-size: 16px;
    transition: var(--transition);
}

.footer-socials a:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #1a1a1a;
    transform: translateY(-2px);
}

.footer-links h4 {
    font-family: var(--font-primary);
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 20px;
    color: white;
}

.footer-links ul li { margin-bottom: 12px; }

.footer-links ul a {
    font-size: 14px;
    color: rgba(255,255,255,0.5);
}

.footer-links ul a:hover {
    color: var(--primary-light);
    padding-left: 6px;
}

.footer-newsletter h4 {
    font-family: var(--font-primary);
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
    color: white;
}

.footer-newsletter > p {
    font-size: 14px;
    color: rgba(255,255,255,0.5);
    margin-bottom: 16px;
}

.newsletter-form {
    display: flex;
    gap: 0;
    margin-bottom: 24px;
}

.newsletter-form input {
    flex: 1;
    padding: 12px 16px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-sm) 0 0 var(--radius-sm);
    color: white;
    font-size: 14px;
    outline: none;
    transition: var(--transition);
}

.newsletter-form input:focus { border-color: var(--primary); }

.newsletter-form input::placeholder { color: rgba(255,255,255,0.3); }

.newsletter-form button {
    padding: 12px 18px;
    background: var(--gradient-primary);
    border: none;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    color: white;
    cursor: pointer;
    transition: var(--transition);
}

.newsletter-form button:hover { opacity: 0.9; }

.footer-contact-info p {
    font-size: 13px;
    color: rgba(255,255,255,0.5);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-contact-info i {
    color: var(--primary-light);
    width: 16px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 0;
}

.footer-bottom p {
    font-size: 13px;
    color: rgba(255,255,255,0.4);
}

.footer-bottom-links {
    display: flex;
    gap: 24px;
}

.footer-bottom-links a {
    font-size: 13px;
    color: rgba(255,255,255,0.4);
}

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

/* ===== PAGE HERO (inner pages) ===== */
.page-hero {
    padding: 180px 0 100px;
    text-align: center;
    position: relative;
    overflow: hidden;
    background: var(--bg-section);
}

.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 30% 50%, rgba(105, 194, 145, 0.06) 0%, transparent 60%),
        radial-gradient(ellipse at 70% 30%, rgba(250, 69, 78, 0.04) 0%, transparent 60%);
}

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

.page-hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: #FFFFFF;
    border: 1px solid #e0e0e0;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    color: var(--primary);
    margin-bottom: 24px;
}

.page-hero h1 {
    font-family: var(--font-primary);
    font-size: clamp(36px, 5vw, 60px);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.page-hero p {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.8;
}

/* ===== SERVICE DETAIL SECTIONS ===== */
.service-detail { padding: 100px 0; }

.service-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.service-detail-grid.reverse { direction: rtl; }
.service-detail-grid.reverse > * { direction: ltr; }

.service-detail-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
}

.service-detail-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.service-detail-content h2 {
    font-family: var(--font-primary);
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.service-detail-content p {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 24px;
}

.service-detail-list { margin-bottom: 32px; }

.service-detail-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 15px;
    color: var(--text-secondary);
}

.service-detail-list li i {
    color: var(--accent-green);
    margin-top: 4px;
    flex-shrink: 0;
}

/* Feature Cards */
.feature-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    padding: 100px 0;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 40px 32px;
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--shadow-card);
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary);
    box-shadow: var(--shadow-glow);
}

.feature-card-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(105, 194, 145, 0.08);
    border-radius: var(--radius-lg);
    margin: 0 auto 24px;
    font-size: 32px;
    color: var(--primary);
}

.feature-card h3 {
    font-family: var(--font-primary);
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.feature-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Pricing */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    padding: 100px 0;
}

.pricing-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 48px 36px;
    position: relative;
    transition: var(--transition);
    box-shadow: var(--shadow-card);
}

.pricing-card.popular {
    border-color: #1a1a1a;
    box-shadow: 0 12px 40px rgba(0,0,0,0.1);
    transform: scale(1.05);
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    padding: 6px 20px;
    background: #FFFFFF;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.pricing-card h3 {
    font-family: var(--font-primary);
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.pricing-card .price {
    font-family: var(--font-primary);
    font-size: 48px;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.pricing-card .price span {
    font-size: 16px;
    color: var(--text-muted);
    font-weight: 400;
}

.pricing-card .price-desc {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.pricing-features { margin-bottom: 32px; }

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.pricing-features li i {
    color: var(--accent-green);
    font-size: 12px;
}

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

/* ===== FREELANCER CARDS ===== */
.freelancer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.freelancer-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 32px 24px;
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--shadow-card);
}

.freelancer-card:hover {
    transform: translateY(-8px);
    border-color: #1a1a1a;
    box-shadow: 0 12px 40px rgba(0,0,0,0.1);
}

.freelancer-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin: 0 auto 20px;
    overflow: hidden;
    border: 3px solid #2a2a2a;
    padding: 3px;
}

.freelancer-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.freelancer-card h3 {
    font-family: var(--font-primary);
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.freelancer-role {
    font-size: 13px;
    color: var(--primary);
    margin-bottom: 12px;
}

.freelancer-rating {
    color: var(--accent-3);
    font-size: 14px;
    margin-bottom: 16px;
}

.freelancer-rating span {
    color: var(--text-muted);
    font-size: 13px;
}

.freelancer-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-bottom: 20px;
}

.freelancer-skills span {
    padding: 4px 12px;
    background: #FFFFFF;
    border: 1px solid #e0e0e0;
    border-radius: 50px;
    font-size: 11px;
    color: var(--primary);
}

.freelancer-rate {
    font-family: var(--font-primary);
    font-size: 20px;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 16px;
}

.freelancer-rate span {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 400;
}

/* ===== CONTACT ===== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-info-cards {
    display: grid;
    gap: 20px;
    margin-bottom: 32px;
}

.contact-info-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    transition: var(--transition);
    box-shadow: var(--shadow-card);
}

.contact-info-card:hover { border-color: #1a1a1a; }

.contact-info-card .info-icon,
.contact-info-card .contact-info-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #FFFFFF;
    border-radius: var(--radius-sm);
    color: var(--primary);
    font-size: 18px;
    flex-shrink: 0;
}

.contact-info-text h4 {
    font-family: var(--font-primary);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.contact-info-text p {
    font-size: 14px;
    color: var(--text-secondary);
}

.contact-info-side h2 {
    font-family: var(--font-primary);
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.contact-info-side > p {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.contact-socials { margin-top: 16px; }
.contact-socials h4 {
    font-family: var(--font-primary);
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.contact-socials .social-links {
    display: flex;
    gap: 12px;
}

.contact-socials .social-links a {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #FFFFFF;
    border-radius: var(--radius-sm);
    color: var(--primary);
    font-size: 18px;
    transition: var(--transition);
}

.contact-socials .social-links a:hover {
    background: var(--primary);
    color: #1a1a1a;
}

.contact-form-side { /* wrapper for the form card on contact page */ }

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.btn-block { width: 100%; }

.contact-info-card h4 {
    font-family: var(--font-primary);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.contact-info-card p {
    font-size: 14px;
    color: var(--text-secondary);
}

.contact-form {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 48px;
    box-shadow: var(--shadow-md);
}

.contact-form h3 {
    font-family: var(--font-primary);
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.contact-form > p {
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group { margin-bottom: 20px; }
.form-group.full { grid-column: span 2; }

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text-secondary);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    background: var(--bg-warm);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: var(--font-secondary);
    font-size: 16px;
    outline: none;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(105, 194, 145, 0.15);
}

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

.form-group select {
    appearance: none;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23A8A29E' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
}

.form-group select option {
    background: #f2f6f4;
    color: var(--text-primary);
}

/* Tabs */
.tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 48px;
}

.tab-btn {
    padding: 10px 24px;
    background: var(--bg-warm);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.tab-btn.active,
.tab-btn:hover {
    background: #FFFFFF;
    border-color: #1a1a1a;
    color: var(--primary);
}

/* ===== SEO PACKAGES ===== */

/* Package Cards Row */
.pkg-cards {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 24px;
    margin-top: 0;
}

.pkg-card {
    background: var(--white);
    border: 2px solid #2a2a2a;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
}

.pkg-card:hover {
    border-color: var(--primary);
    transform: translateY(-6px);
    box-shadow: 0 16px 48px rgba(0,0,0,0.08);
}

.pkg-card-popular {
    border-color: var(--dark);
    background: var(--dark);
    color: var(--white);
    transform: scale(1.04);
    z-index: 2;
}

.pkg-card-popular:hover {
    border-color: var(--primary);
    transform: scale(1.04) translateY(-6px);
}

.pkg-popular-badge {
    background: var(--primary);
    color: var(--dark);
    text-align: center;
    padding: 6px;
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.pkg-card-header {
    padding: 28px 24px 20px;
    text-align: center;
    border-bottom: 1px solid rgba(0,0,0,0.08);
}

.pkg-card-popular .pkg-card-header {
    border-bottom-color: rgba(255,255,255,0.12);
}

.pkg-card-header h3 {
    font-family: var(--font-primary);
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 4px;
}

.pkg-keywords {
    font-family: var(--font-secondary);
    font-size: 16px;
    color: var(--primary);
    font-weight: 700;
    letter-spacing: 1px;
}

.pkg-card-body {
    padding: 24px;
}

.pkg-card-body ul {
    list-style: none;
    padding: 0;
    margin: 0 0 24px 0;
}

.pkg-card-body ul li {
    padding: 8px 0;
    font-family: var(--font-secondary);
    font-size: 15px;
    border-bottom: 1px dashed rgba(0,0,0,0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pkg-card-popular .pkg-card-body ul li {
    border-bottom-color: rgba(255,255,255,0.1);
}

.pkg-card-body ul li:last-child {
    border-bottom: none;
}

.pkg-card-body ul li span {
    font-size: 12px;
    background: rgba(105,194,145,0.15);
    color: var(--primary);
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 700;
}

.pkg-card-popular .pkg-card-body ul li span {
    background: rgba(105,194,145,0.25);
}

.btn-block {
    display: block;
    width: 100%;
    text-align: center;
}

.btn-outline {
    background: transparent;
    color: var(--dark);
    border: 2px solid var(--dark);
    padding: 12px 24px;
    border-radius: 50px;
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-outline:hover {
    background: var(--dark);
    color: var(--primary);
}

.pkg-card-popular .btn-primary.btn-block {
    background: var(--primary);
    color: var(--dark);
}

.pkg-card-popular .btn-primary.btn-block:hover {
    background: var(--white);
    color: var(--dark);
}

/* Comparison Table */
.pkg-table-wrapper {
    overflow-x: auto;
    border-radius: 16px;
    border: 2px solid #2a2a2a;
    background: var(--white);
    -webkit-overflow-scrolling: touch;
}

.pkg-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 800px;
    font-family: var(--font-secondary);
}

.pkg-table thead {
    position: sticky;
    top: 0;
    z-index: 10;
}

.pkg-table thead tr {
    background: var(--dark);
    color: var(--white);
}

.pkg-table thead th {
    padding: 20px 16px;
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: 17px;
    text-align: center;
    white-space: nowrap;
    letter-spacing: 0.5px;
}

.pkg-table thead th.feature-col {
    text-align: left;
    width: 280px;
    min-width: 220px;
}

.pkg-table thead th.popular-col {
    background: var(--primary);
    color: var(--dark);
}

.pkg-table tbody td {
    padding: 12px 16px;
    font-size: 15px;
    text-align: center;
    border-bottom: 1px solid #f0f0f0;
    vertical-align: middle;
}

.pkg-table tbody td:first-child {
    text-align: left;
    font-weight: 400;
    color: #b7b7b7;
}

.pkg-table tbody tr:hover {
    background: #FFFFFF;
}

.pkg-table tbody tr:nth-child(even) {
    background: #FAFAFA;
}

.pkg-table tbody tr:nth-child(even):hover {
    background: #f2f6f4;
}

/* Section header rows */
.pkg-table-section td {
    background: #FFFFFF !important;
    color: var(--primary) !important;
    font-family: var(--font-primary) !important;
    font-weight: 700 !important;
    font-size: 17px !important;
    padding: 16px !important;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border-bottom: none !important;
}

.pkg-table-section td small {
    font-family: var(--font-secondary);
    font-weight: 400;
    font-size: 13px !important;
    text-transform: none;
    opacity: 0.7;
    margin-left: 6px;
}

/* Check / minus icons */
.pkg-table .fa-check {
    color: #00C48C;
    font-size: 16px;
}

.pkg-table .fa-minus {
    color: #ccc;
    font-size: 14px;
}

/* Popular column highlight */
.pkg-table tbody td:nth-child(4) {
    background: rgba(105,194,145,0.06);
}

.pkg-table tbody tr:hover td:nth-child(4) {
    background: rgba(105,194,145,0.12);
}

.pkg-table-section td:nth-child(4) {
    background: #FFFFFF !important;
}

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

/* Body scroll lock when mobile nav is open */
body.nav-open { overflow: hidden; }

@media (max-width: 1024px) {
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .process-timeline { grid-template-columns: repeat(2, 1fr); }
    .process-timeline::before { display: none; }
    .feature-cards { grid-template-columns: repeat(2, 1fr); }
    .pricing-grid { grid-template-columns: repeat(2, 1fr); }
    .pricing-card.popular { transform: scale(1); }
    .freelancer-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .awards-grid { grid-template-columns: repeat(2, 1fr); }
    .pkg-cards { grid-template-columns: repeat(3, 1fr); }
    .pkg-card-popular { transform: scale(1); }
    .about-img-secondary { right: 0; bottom: -20px; width: 200px; }
    .about-experience { right: 0; top: -10px; }
}

@media (max-width: 768px) {
    :root { --section-padding: 60px 0; }

    /* ---- Mobile Navigation ---- */
    .nav-links {
        position: fixed;
        inset: 0;
        background: #f2f6f4;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 0;
        transform: translateX(100%);
        transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1000;
        overflow-y: auto;
        padding: 80px 0 40px;
    }

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

    .nav-links li { width: 100%; text-align: center; }

    .nav-links a {
        font-size: 20px;
        padding: 14px 24px;
        color: var(--text-primary);
        display: block;
    }

    /* Mobile dropdown — hidden by default, toggle via JS */
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        background: rgba(255,255,255,0.5);
        border: none;
        box-shadow: none;
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.35s ease;
    }

    .dropdown.open .dropdown-menu {
        max-height: 400px;
    }

    .dropdown-menu a {
        font-size: 15px;
        padding: 10px 24px;
        justify-content: center;
    }

    .hamburger { display: flex; }
    .btn-nav { display: none; }

    /* ---- Hero ---- */
    .hero { padding: 120px 0 60px; min-height: auto; }
    .hero-content { padding: 0 16px; }
    .hero-title { font-size: clamp(28px, 8vw, 42px); letter-spacing: -1px; }
    .hero-subtitle { font-size: 15px; margin-bottom: 28px; }
    .hero-badge { font-size: 12px; padding: 6px 14px; margin-bottom: 20px; }
    .hero-cta { gap: 12px; }
    .hero-cta .btn { padding: 12px 24px; font-size: 14px; }
    .hero-stats { gap: 20px; padding-top: 28px; }
    .stat-number { font-size: 28px; }
    .stat-label { font-size: 11px; }
    .hero-scroll { display: none; }

    /* ---- Section Headers ---- */
    .section-header { margin-bottom: 40px; }
    .section-title { font-size: clamp(24px, 6vw, 36px); }
    .section-subtitle { font-size: 15px; }
    .section-tag { font-size: 11px; padding: 5px 12px; letter-spacing: 1.5px; }

    /* ---- Grids → Single Column ---- */
    .services-grid { grid-template-columns: 1fr; gap: 20px; }
    .about-grid { grid-template-columns: 1fr; gap: 32px; }
    .about-features { grid-template-columns: 1fr; }
    .process-timeline { grid-template-columns: 1fr; gap: 20px; }
    .portfolio-grid { grid-template-columns: 1fr; gap: 20px; }
    .portfolio-item { height: 240px; }
    .service-detail-grid { grid-template-columns: 1fr; gap: 32px; }
    .service-detail-grid.reverse { direction: ltr; }
    .feature-cards { grid-template-columns: 1fr; gap: 20px; padding: 60px 0; }
    .pricing-grid { grid-template-columns: 1fr; gap: 20px; padding: 60px 0; }
    .freelancer-grid { grid-template-columns: 1fr; gap: 20px; }
    .contact-grid { grid-template-columns: 1fr; gap: 32px; }
    .form-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .form-group.full { grid-column: span 1; }
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }

    /* ---- About section overflow fix ---- */
    .about-images { margin-bottom: 32px; }
    .about-img-secondary { position: relative; bottom: auto; right: auto; width: 60%; margin-top: -40px; margin-left: auto; border-width: 4px; }
    .about-experience { position: relative; top: auto; right: auto; display: inline-block; margin-top: 16px; padding: 16px 20px; }
    .about-experience .exp-number { font-size: 32px; }

    /* ---- Service Detail ---- */
    .service-detail { padding: 60px 0; }
    .service-detail-content h2 { font-size: 26px; }
    .service-detail-image img { height: 250px; }

    /* ---- Awards / Stats Bar ---- */
    .awards-bar { padding: 50px 0; }
    .awards-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
    .award-item { padding: 20px 12px; }
    .award-number { font-size: 32px; }
    .award-icon { font-size: 28px; }
    .award-label { font-size: 12px; }

    /* ---- Testimonials ---- */
    .testimonial-card { padding: 28px 20px; }
    .testimonial-card > p { font-size: 15px; }
    .testimonial-author img { width: 44px; height: 44px; }

    /* ---- CTA Section ---- */
    .cta-section { padding: 60px 0; }
    .cta-content p { font-size: 15px; }
    .cta-buttons { gap: 12px; }

    /* ---- Contact Form ---- */
    .contact-form { padding: 28px 20px; }
    .contact-form h3 { font-size: 22px; }

    /* ---- Footer ---- */
    .footer { padding: 50px 0 0; }
    .footer-bottom-links { flex-wrap: wrap; justify-content: center; gap: 16px; }
    .newsletter-form { flex-direction: column; }
    .newsletter-form input { border-radius: var(--radius-sm); }
    .newsletter-form button { border-radius: var(--radius-sm); padding: 14px; }

    /* ---- Page Hero (inner pages) ---- */
    .page-hero { padding: 130px 0 60px; }
    .page-hero h1 { font-size: clamp(26px, 7vw, 40px); }
    .page-hero p { font-size: 15px; }

    /* ---- Cursor hide ---- */
    .cursor, .cursor-follower { display: none; }

    /* ---- SEO Packages ---- */
    .pkg-cards { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .pkg-card-header h3 { font-size: 20px; }
    .pkg-keywords { font-size: 14px; }
    .pkg-table { min-width: 600px; }
    .pkg-table thead th { font-size: 13px; padding: 12px 8px; }
    .pkg-table tbody td { font-size: 12px; padding: 8px 6px; }
    .pkg-table thead th.feature-col { min-width: 160px; width: 200px; }

    /* ---- Comparison Grid ---- */
    .comparison-grid { grid-template-columns: 1fr; gap: 20px; }
    .comparison-col.featured { transform: scale(1); }
    .comparison-col.featured:hover { transform: translateY(-4px); }

    /* ---- Freelancer Cards ---- */
    .freelancer-card { padding: 24px 16px; }
    .freelancer-avatar { width: 80px; height: 80px; }

    /* ---- FAQ ---- */
    .faq-question { padding: 16px 18px; }
    .faq-question h4 { font-size: 1rem; }
    .faq-item.active .faq-answer { padding: 0 18px 16px; }

    /* ---- Buttons ---- */
    .btn { padding: 12px 24px; font-size: 15px; }
    .btn-lg { padding: 14px 28px; font-size: 15px; }

    /* ---- Sketch Doodles ---- */
    .sketch-doodles .doodle { opacity: 0.3; }

    /* ---- Fix horizontal overflow everywhere ---- */
    .container { padding: 0 16px; }
    .section { overflow: hidden; }
}

@media (max-width: 480px) {
    :root { --section-padding: 48px 0; }

    .hero { padding: 110px 0 50px; }
    .hero-title { font-size: 28px; letter-spacing: -0.5px; }
    .hero-cta { flex-direction: column; align-items: stretch; }
    .hero-cta .btn { justify-content: center; }
    .hero-stats { flex-direction: column; gap: 16px; }
    .hero-stats .stat { display: flex; align-items: center; gap: 8px; }

    .cta-buttons { flex-direction: column; align-items: stretch; }
    .cta-buttons .btn { justify-content: center; }

    .contact-form { padding: 24px 16px; }

    .awards-grid { grid-template-columns: 1fr; }
    .award-item { display: flex; align-items: center; gap: 16px; text-align: left; padding: 16px 20px; }
    .award-icon { margin-bottom: 0; font-size: 24px; }
    .award-number { font-size: 28px; margin-bottom: 0; }

    .pkg-cards { grid-template-columns: 1fr; }
    .pkg-card-popular { transform: scale(1); }

    .comparison-grid { grid-template-columns: 1fr !important; }
    .faq-grid { grid-template-columns: 1fr !important; }

    .section-header { margin-bottom: 32px; }
    .section-title { font-size: clamp(22px, 6vw, 30px); }

    .page-hero { padding: 110px 0 40px; }
    .page-hero h1 { font-size: clamp(24px, 7vw, 34px); margin-bottom: 12px; }

    .footer-grid { gap: 24px; }
    .footer-socials { justify-content: center; }

    .nav-links a { font-size: 18px; padding: 12px 20px; }

    .service-detail-image img { height: 200px; }
    .service-detail-content h2 { font-size: 22px; }

    .pricing-card { padding: 32px 20px; }
    .pricing-card .price { font-size: 36px; }

    .portfolio-item { height: 200px; }
    .portfolio-overlay { padding: 20px; }
    .portfolio-overlay h3 { font-size: 18px; }

    .testimonial-card > p { font-size: 14px; }

    .step-number { font-size: 40px; }
    .step-content { padding: 24px 16px; }
    .step-icon { width: 48px; height: 48px; font-size: 20px; }

    .feature-card { padding: 28px 20px; }
    .feature-card-icon { width: 60px; height: 60px; font-size: 24px; }
}

/* ===== COMPARISON TABLE ===== */
.comparison-table {
    max-width: 1200px;
    margin: 0 auto;
}

.comparison-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    align-items: start;
}

.comparison-col {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.comparison-col:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.comparison-col.featured {
    border-color: var(--primary);
    transform: scale(1.03);
    box-shadow: 0 20px 60px rgba(105, 194, 145, 0.2);
}

.comparison-col.featured:hover {
    transform: scale(1.03) translateY(-4px);
}

.comparison-header {
    padding: 30px 24px;
    text-align: center;
    color: #fff;
}

.comparison-header h3 {
    font-family: var(--font-primary);
    font-size: 1.5rem;
    margin-bottom: 4px;
}

.comparison-list {
    list-style: none;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.comparison-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.comparison-list li i {
    margin-top: 4px;
    flex-shrink: 0;
}

.comparison-price {
    font-family: var(--font-primary);
    font-weight: 700;
    font-size: 1.1rem !important;
    color: var(--text-primary) !important;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
    display: block !important;
}

/* ===== FAQ SECTION ===== */
.faq-grid {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition);
}

.faq-item:hover {
    border-color: var(--primary);
}

.faq-item.active {
    border-color: var(--primary);
    box-shadow: 0 4px 20px rgba(105, 194, 145, 0.15);
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    cursor: pointer;
    gap: 16px;
}

.faq-question h4 {
    font-family: var(--font-primary);
    font-size: 1.1rem;
    color: var(--text-primary);
    margin: 0;
}

.faq-question i {
    color: var(--primary);
    font-size: 1rem;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.faq-item.active .faq-question i {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq-item.active .faq-answer {
    max-height: 300px;
    padding: 0 24px 20px;
}

.faq-answer p {
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 0.95rem;
}

/* ===== GLOBAL SKETCH DOODLE BACKGROUNDS ===== */
.sketch-doodles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.services.section,
.testimonials.section,
.faq-section,
.page-hero,
.hero {
    position: relative;
    overflow: hidden;
}

.doodle {
    position: absolute;
    opacity: 1;
}

/* ---- HERO SECTION DOODLES ---- */
/* Stars */
.d-star-1 { width: 70px; top: 8%;  left: 3%;  animation: dFloat1 9s ease-in-out infinite; }
.d-star-2 { width: 50px; top: 22%; right: 8%; animation: dSpin1 14s linear infinite; }
.d-star-3 { width: 36px; bottom: 18%; left: 15%; animation: dBounce1 7s ease-in-out infinite 1s; }

/* Circles */
.d-circle-1 { width: 55px; top: 60%; left: 5%;  animation: dPulse1 8s ease-in-out infinite; }
.d-circle-2 { width: 38px; top: 35%; right: 3%; animation: dFloat2 11s ease-in-out infinite 0.5s; }
.d-circle-3 { width: 28px; top: 15%; left: 40%; animation: dDrift1 10s ease-in-out infinite 2s; }
.d-circle-4 { width: 22px; bottom: 35%; right: 25%; animation: dBounce2 6s ease-in-out infinite; }

/* Heart */
.d-heart-1 { width: 55px; top: 42%; left: 8%; animation: dHeartbeat 5s ease-in-out infinite; }

/* Triangles */
.d-tri-1 { width: 48px; bottom: 22%; right: 12%; animation: dSpin2 18s linear infinite; }
.d-tri-2 { width: 36px; top: 70%; left: 30%; animation: dFloat3 12s ease-in-out infinite 1.5s; }

/* Diamond */
.d-diamond-1 { width: 45px; top: 12%; right: 20%; animation: dDrift2 13s ease-in-out infinite; }

/* Squiggles */
.d-squig-1 { width: 100px; bottom: 10%; left: 20%; animation: dFloat1 15s ease-in-out infinite reverse; }
.d-squig-2 { width: 75px; top: 55%; right: 5%; animation: dDrift1 11s ease-in-out infinite 3s; }

/* Dots cluster */
.d-dots-1 { width: 60px; bottom: 28%; right: 35%; animation: dPulse2 9s ease-in-out infinite 1s; }

/* Crosses */
.d-cross-1 { width: 36px; top: 30%; left: 18%; animation: dSpin1 20s linear infinite reverse; }
.d-cross-2 { width: 28px; bottom: 40%; left: 45%; animation: dBounce1 8s ease-in-out infinite 2s; }

/* Arc */
.d-arc-1 { width: 65px; bottom: 15%; right: 18%; animation: dFloat2 10s ease-in-out infinite 1s; }

/* Zigzag */
.d-zig-1 { width: 90px; top: 75%; left: 6%; animation: dDrift2 14s ease-in-out infinite 2s; }


/* ---- SERVICES SECTION DOODLES ---- */
.d-heart-2  { width: 50px; top: 6%;  left: 4%;   animation: dHeartbeat 6s ease-in-out infinite 0.5s; }
.d-star-4   { width: 60px; top: 12%; right: 5%;  animation: dFloat3 10s ease-in-out infinite; }
.d-circle-5 { width: 45px; bottom: 18%; left: 2%; animation: dPulse1 9s ease-in-out infinite 1s; }
.d-tri-3    { width: 42px; top: 50%; left: 1%;   animation: dSpin2 16s linear infinite; }
.d-dots-2   { width: 50px; bottom: 10%; right: 3%; animation: dDrift1 12s ease-in-out infinite 2s; }
.d-diamond-2 { width: 38px; top: 35%; right: 2%; animation: dBounce2 7s ease-in-out infinite; }
.d-squig-3  { width: 85px; bottom: 5%;  left: 25%; animation: dFloat1 13s ease-in-out infinite reverse; }
.d-cross-3  { width: 30px; top: 70%; right: 8%;  animation: dSpin1 22s linear infinite; }


/* ---- TESTIMONIALS SECTION DOODLES ---- */
.d-star-5    { width: 55px; top: 10%; left: 3%;   animation: dFloat2 10s ease-in-out infinite; }
.d-circle-6  { width: 42px; top: 20%; right: 5%; animation: dPulse2 8s ease-in-out infinite 1s; }
.d-heart-3   { width: 46px; bottom: 15%; left: 6%; animation: dHeartbeat 5s ease-in-out infinite 1s; }
.d-tri-4     { width: 38px; top: 55%; right: 3%; animation: dSpin1 15s linear infinite reverse; }
.d-dots-3    { width: 48px; bottom: 25%; right: 12%; animation: dDrift2 11s ease-in-out infinite; }
.d-squig-4   { width: 80px; top: 40%; left: 1%;  animation: dFloat3 14s ease-in-out infinite 2s; }
.d-diamond-3 { width: 36px; bottom: 8%; left: 30%; animation: dBounce1 9s ease-in-out infinite; }


/* ---- FAQ SECTION DOODLES ---- */
.d-circle-7 { width: 40px; top: 8%;  left: 4%;    animation: dPulse1 7s ease-in-out infinite; }
.d-star-6   { width: 45px; top: 15%; right: 3%;   animation: dFloat1 11s ease-in-out infinite 1s; }
.d-squig-5  { width: 70px; bottom: 12%; left: 8%; animation: dDrift1 12s ease-in-out infinite; }
.d-heart-4  { width: 42px; top: 60%; right: 6%;   animation: dHeartbeat 6s ease-in-out infinite 2s; }
.d-tri-5    { width: 34px; bottom: 20%; right: 15%; animation: dSpin2 17s linear infinite; }
.d-dots-4   { width: 45px; top: 40%; left: 2%;    animation: dBounce2 8s ease-in-out infinite 0.5s; }
.d-cross-4  { width: 28px; bottom: 30%; left: 20%; animation: dSpin1 19s linear infinite reverse; }


/* ---- DOODLE ANIMATIONS ---- */

/* Gentle floating — oval path */
@keyframes dFloat1 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25%  { transform: translate(14px, -20px) rotate(8deg); }
    50%  { transform: translate(-6px, -35px) rotate(-5deg); }
    75%  { transform: translate(18px, -14px) rotate(12deg); }
}

/* Rising float with scale */
@keyframes dFloat2 {
    0%, 100% { transform: translate(0, 0) rotate(0deg) scale(1); }
    30%  { transform: translate(-12px, -18px) rotate(-10deg) scale(1.08); }
    60%  { transform: translate(8px, -28px) rotate(6deg) scale(0.94); }
    80%  { transform: translate(14px, -10px) rotate(14deg) scale(1.02); }
}

/* Lazy diagonal drift */
@keyframes dFloat3 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    20%  { transform: translate(10px, -12px) rotate(5deg); }
    40%  { transform: translate(-8px, -24px) rotate(-12deg); }
    60%  { transform: translate(-16px, -8px) rotate(8deg); }
    80%  { transform: translate(6px, -16px) rotate(-4deg); }
}

/* Wandering drift with opacity */
@keyframes dDrift1 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); opacity: 0.7; }
    25%  { transform: translate(8px, -22px) rotate(15deg); opacity: 0.9; }
    50%  { transform: translate(-14px, 8px) rotate(-10deg); opacity: 0.5; }
    75%  { transform: translate(16px, -6px) rotate(5deg); opacity: 0.8; }
}

/* Figure-eight drift */
@keyframes dDrift2 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25%  { transform: translate(20px, -12px) rotate(10deg); }
    50%  { transform: translate(0, -22px) rotate(-8deg); }
    75%  { transform: translate(-18px, -10px) rotate(6deg); }
}

/* Gentle continuous spin */
@keyframes dSpin1 {
    0%   { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Reverse spin with wobble */
@keyframes dSpin2 {
    0%   { transform: rotate(0deg) scale(1); }
    50%  { transform: rotate(180deg) scale(1.06); }
    100% { transform: rotate(360deg) scale(1); }
}

/* Soft bouncing */
@keyframes dBounce1 {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25%  { transform: translateY(-18px) rotate(6deg); }
    50%  { transform: translateY(-8px) rotate(-3deg); }
    75%  { transform: translateY(-22px) rotate(10deg); }
}

/* Bouncing with horizontal sway */
@keyframes dBounce2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25%  { transform: translate(6px, -16px) scale(1.05); }
    50%  { transform: translate(-4px, -6px) scale(0.96); }
    75%  { transform: translate(-8px, -20px) scale(1.08); }
}

/* Pulsing scale */
@keyframes dPulse1 {
    0%, 100% { transform: scale(1) rotate(0deg); opacity: 0.65; }
    33%  { transform: scale(1.15) rotate(5deg); opacity: 0.85; }
    66%  { transform: scale(0.9) rotate(-3deg); opacity: 0.55; }
}

/* Pulsing with translation */
@keyframes dPulse2 {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.7; }
    25%  { transform: translate(6px, -10px) scale(1.1); opacity: 0.9; }
    50%  { transform: translate(-4px, -18px) scale(0.92); opacity: 0.6; }
    75%  { transform: translate(8px, -6px) scale(1.05); opacity: 0.8; }
}

/* Heartbeat — scale throb */
@keyframes dHeartbeat {
    0%, 100% { transform: scale(1); }
    10%  { transform: scale(1.12); }
    20%  { transform: scale(1); }
    30%  { transform: scale(1.08); }
    40%  { transform: scale(1); }
}

/* Responsive: smaller doodles on mobile */
@media (max-width: 768px) {
    .doodle { opacity: 0.7; }
    .d-star-1, .d-star-4, .d-star-5 { width: 40px; }
    .d-star-2, .d-star-3, .d-star-6 { width: 30px; }
    .d-circle-1, .d-circle-5, .d-circle-6 { width: 32px; }
    .d-circle-2, .d-circle-3, .d-circle-7 { width: 24px; }
    .d-circle-4 { width: 18px; }
    .d-heart-1, .d-heart-2, .d-heart-3, .d-heart-4 { width: 34px; }
    .d-tri-1, .d-tri-3, .d-tri-4, .d-tri-5 { width: 28px; }
    .d-tri-2 { width: 24px; }
    .d-diamond-1, .d-diamond-2, .d-diamond-3 { width: 28px; }
    .d-squig-1, .d-squig-3, .d-squig-4, .d-squig-5 { width: 55px; }
    .d-squig-2 { width: 45px; }
    .d-dots-1, .d-dots-2, .d-dots-3, .d-dots-4 { width: 36px; }
    .d-cross-1, .d-cross-2, .d-cross-3, .d-cross-4 { width: 22px; }
    .d-arc-1 { width: 40px; }
    .d-zig-1 { width: 55px; }
}
