/* Font Import */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Inter:wght@400;500;600&display=swap');

:root {
    /* Color Palette - "Trust & Professional" (Google Ads Friendly) */
    --bg-white: #ffffff;
    --bg-light: #f8fafc;
    /* Slate-50 */
    --text-main: #0f172a;
    /* Slate-900 */
    --text-muted: #64748b;
    /* Slate-500 */

    --primary: #2563eb;
    /* Royal Blue - Trustworthy & High Conversion */
    --primary-dark: #1d4ed8;
    --accent: #f59e0b;
    /* Amber - High Contrast for CTAs */

    --border-color: #e2e8f0;
    --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 -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);

    --radius: 8px;
}

/* Dark Theme Overrides */
[data-theme="dark"] {
    --bg-white: #0f172a;
    --bg-light: #1e293b;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --border-color: #334155;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4);
}

/* Click Burst Animation */
.click-burst {
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--primary);
    transform: translate(-50%, -50%) scale(0);
    animation: click-burst-anim 0.4s ease-out forwards;
    z-index: 10000;
}

@keyframes click-burst-anim {
    0% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 1;
        border-width: 10px;
    }

    100% {
        transform: translate(-50%, -50%) scale(2.5);
        opacity: 0;
        border-width: 0px;
    }
}

/* Custom Cursor */
.cursor-dot,
.cursor-outline {
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 9999;
    pointer-events: none;
}

.cursor-dot {
    width: 8px;
    height: 8px;
    background-color: var(--primary);
}

.cursor-outline {
    width: 40px;
    height: 40px;
    border: 2px solid var(--primary);
    transition: width 0.2s, height 0.2s, background-color 0.2s;
}

/* Hide default cursor on desktop when custom is active */
@media (min-width: 1024px) {
    body {
        cursor: none;
    }

    a,
    button,
    .btn,
    .card {
        cursor: none;
        /* Ensure custom cursor is seen */
    }
}

/* Hide custom cursor on mobile to save performance */
@media (max-width: 1023px) {

    .cursor-dot,
    .cursor-outline {
        display: none;
    }

    body {
        cursor: auto;
    }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Body Gradient */
body {
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    background-color: var(--bg-white);
    /* Subtle Mesh Gradient Background */
    background-image:
        radial-gradient(at 0% 0%, hsla(210, 100%, 96%, 1) 0, transparent 50%),
        radial-gradient(at 100% 0%, hsla(220, 100%, 96%, 1) 0, transparent 50%),
        radial-gradient(at 100% 100%, hsla(200, 100%, 96%, 1) 0, transparent 50%),
        radial-gradient(at 0% 100%, hsla(215, 100%, 96%, 1) 0, transparent 50%);
    background-attachment: fixed;
    /* Parallax-like feel */
    line-height: 1.6;
}

/* ... existing typographic styles ... */

/* Typewriter Blink Cursor */
.txt-type>.txt {
    border-right: 0.2rem solid var(--primary);
    animation: blink 0.7s infinite;
}

@keyframes blink {
    0% {
        border-color: transparent;
    }

    50% {
        border-color: var(--primary);
    }

    100% {
        border-color: transparent;
    }
}

/* Enhanced 3D Card Hover */
.card {
    background: rgba(255, 255, 255, 0.8);
    /* Glassy background */
    backdrop-filter: blur(10px);
    padding: 2.5rem;
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;

    /* 3D Tilt Props */
    transform-style: preserve-3d;
    transform: perspective(1000px);
    transition: transform 0.1s;
    /* Faster transition for follow effect */
}

/* Remove the old simple hover transform if we use JS tilt */
.card:hover {
    border-color: var(--primary);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Glare Effect */
.card-glare {
    position: absolute;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0) 70%);
    border-radius: 50%;
    pointer-events: none;
    opacity: 0;
    transform: translate(-50%, -50%);
    z-index: 10;
    mix-blend-mode: overlay;
    transition: opacity 0.2s;
}

.card:hover .card-glare {
    opacity: 1;
}

/* Scroll Animation Classes */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Helper to delay grid items */
.reveal-delay-1 {
    transition-delay: 0.1s;
}

.reveal-delay-2 {
    transition-delay: 0.2s;
}

.reveal-delay-3 {
    transition-delay: 0.3s;
}

h1,
h2,
h3,
h4,
.btn,
.nav-link {
    font-family: 'Plus Jakarta Sans', sans-serif;
}

h1 {
    font-weight: 800;
    letter-spacing: -0.025em;
    line-height: 1.1;
}

h2 {
    font-weight: 700;
    letter-spacing: -0.025em;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.2s;
}

ul {
    list-style: none;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Header & Nav */
header {
    background: var(--bg-white);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: var(--shadow-sm);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.brand {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-menu {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    font-weight: 600;
    color: var(--text-muted);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary);
}

.nav-btn {
    background-color: var(--primary);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius);
    font-weight: 600;
}

.nav-btn:hover {
    background-color: var(--primary-dark);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 1.1rem;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-accent {
    background-color: var(--accent);
    color: white;
}

.btn-accent:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--border-color);
    color: var(--text-main);
}

.btn-outline:hover {
    border-color: var(--text-main);
    background: var(--bg-light);
}

/* Utility */
.section-padding {
    padding: 6rem 0;
}

.bg-light {
    background-color: var(--bg-light);
}

.text-center {
    text-align: center;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 4rem;
    align-items: center;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

/* Components */
.badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: #eff6ff;
    color: var(--primary);
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.card {
    background: white;
    padding: 2.5rem;
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    transition: all 0.3s;
}

.card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {

    /* Layout */
    .container {
        padding: 0 1rem;
    }

    .section-padding {
        padding: 4rem 0;
    }

    /* Grids */
    .grid-2 {
        grid-template-columns: 1fr !important;
        gap: 2.5rem;
    }

    .grid-3 {
        grid-template-columns: 1fr !important;
        gap: 1.5rem;
    }

    /* Navigation */
    nav {
        height: 80px;
        /* Keep header height fixed */
        padding: 0;
        /* Reset padding */
        flex-direction: row;
        /* Keep horizontal flex */
        justify-content: space-between;
    }

    .menu-toggle {
        display: block !important;
    }

    .nav-menu {
        display: none;
        /* Hidden by default */
        flex-direction: column;
        position: absolute;
        top: 80px;
        /* Header height */
        left: 0;
        width: 100%;
        background: var(--bg-white);
        border-top: 1px solid var(--border-color);
        border-bottom: 2px solid var(--primary);
        padding: 2rem 1rem;
        box-shadow: var(--shadow-lg);
        gap: 1.5rem;
    }

    .nav-menu.active {
        display: flex;
        /* Show when active */
    }

    .nav-link {
        font-size: 1.2rem;
        display: block;
        padding: 0.5rem 0;
    }

    .nav-btn {
        display: block;
        width: 100%;
    }

    /* Typography */
    h1 {
        font-size: 2.5rem !important;
    }

    h2 {
        font-size: 2rem !important;
    }

    /* Components */
    .hero-content {
        text-align: center;
    }

    .hero-content .btn {
        width: 100%;
        justify-content: center;
    }

    .hero-content div[style*="flex"] {
        justify-content: center;
    }

    /* Featured Gig Card */
    .card[style*="flex-wrap"] {
        flex-direction: column;
    }

    .card div[style*="min-width: 300px"] {
        width: 100%;
        min-height: 250px;
    }

    /* Floating Button */
    a[style*="fixed"] {
        bottom: 20px !important;
        right: 20px !important;
        padding: 0.8rem 1.5rem !important;
        font-size: 0.9rem !important;
        width: auto;
    }

    /* Hide Footer Nav on Mobile */
    .footer-nav {
        display: none !important;
    }
}