:root {
    /* Colors */
    /* --primary-color: #0047ff;  */
    --primary-color: #1b64b6;
    --primary-hover: #0b3a7b;
    --primary-rgb: 27, 100, 182;
    --primary-hover-rgb: 11, 58, 123;
    --bg-light: #f8f9fa;
    --bg-dark: #050505;
    --text-main: #1a1a1a;
    --text-muted: #6b7280;
    --border-color: #e5e7eb;
    --white: #ffffff;
    --black: #000000;

    /* Header Specific */
    --header-bg-dark: rgba(0, 0, 0, 0.55);
    --header-bg-light: rgba(255, 255, 255, 0.95);
    --header-border: rgba(255, 255, 255, 0.10);
    --header-blur: 25px;
    --nav-link-color: #ffffff;
    --nav-link-hover: #ffffff;
    /* --nav-link-active: #0047ff; */
    --nav-link-active: #1b64b6;

    /* Fonts */
    --font-main: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --font-mono: "Source Code Pro", monospace;
    --font-body: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

    /* Spacing */
    --header-padding-y: 18px;
    --header-padding-x: 18px;
    --header-offset: 160px;
    --nav-gap: 26px;
    --nav-font-size: 14px;

    /* Section Padding */
    --section-padding-y: 110px;
    --section-padding-x: 180px;
    --section-padding-y-mobile: 60px;
    --section-padding-y-tablet: 80px;

    /* Portfolio Variables */
    --p-glow: rgba(0, 71, 255, 0.5);
    --p-card-bg: rgba(20, 20, 20, 0.4);
    --p-accent: #0047ff;
    --p-glass: rgba(255, 255, 255, 0.03);
    --p-blackmark: #ffffffb3;

    /* Text Colors */
    --text-light: rgba(255, 255, 255, 0.7);
    --text-light-50: rgba(255, 255, 255, 0.5);
    --text-gray: #555555;

    /* Common Shadow Colors */
    --shadow-primary: rgba(0, 71, 255, 0.2);
    --shadow-dark: rgba(0, 0, 0, 0.4);

    /* Extended Grays */
    --gray-100: #f3f4f6;
    --gray-150: #e8e8e8;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #555555;
    --gray-800: #333333;
    --gray-900: #1a1a1a;
    --gray-950: #0a0a0a;
    --gray-999: #111111;

    /* Accent Colors */
    --star-yellow: #fbbc04;
    --hero-accent: #00d4ff;
    --gradient-blue: #0052cc;
    --gradient-light-blue: #4d80ff;

    /* Hero Gradient Colors */
    --hero-blue-1: #1b64b6;
    --hero-blue-2: #0b3a7b;
    --hero-blue-3: #061e42;

    /* Glass White Opacities */
    --glass-white-01: rgba(255, 255, 255, 0.01);
    --glass-white-02: rgba(255, 255, 255, 0.02);
    --glass-white-04: rgba(255, 255, 255, 0.04);
    --glass-white-06: rgba(255, 255, 255, 0.06);

    /* Hero Subhead */
    --hero-subhead: #94a3b8;

    /* Transitions */
    --transition-fast: all 0.2s ease;
    --transition-normal: all 0.3s ease;
}

.btn-shine {
    position: relative;
    overflow: hidden;
}

.btn-shine::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0.4) 50%,
            rgba(255, 255, 255, 0) 100%);
    transform: skewX(-25deg);
    transition: none;
}

.btn-shine:hover::after {
    left: 150%;
    transition: all 1.9s ease;
}

/* =========================================
           GLOBAL RESET & BASIC STYLES
           ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: none !important;
    
}

body {
    font-family: var(--font-body);
    background: var(--black);
    color: var(--white);
    overflow-x: hidden;
    line-height: 1.5;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-main);
}

p {
    font-family: var(--font-body);
}

/* =========================================
           REUSABLE COMPONENTS
========================================= */

/* Buttons */
.btn {
    font-family: var(--font-mono);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 18px 30px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 2px;
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    transition: opacity 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    white-space: nowrap;
}

.btn-dots {
    display: flex;
    gap: 2px;
}

.btn-dots span {
    width: 3px;
    height: 3px;
    background: currentColor;
    border-radius: 50%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--gradient-blue) 100%);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(0, 71, 255, 0.3);
}

.btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 71, 255, 0.4);
}

.btn-secondary {
    background: var(--white);
    color: var(--black);
    border-color: var(--white);
}

.btn-secondary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.white-title,
.black-title {
    max-width: 980px;
    margin: 0 auto 34px;
    text-align: center;
}

.white-title-left,
.black-title-left {
    max-width: 980px;
    margin: 0 0 34px;
    text-align: left;
}

.white-title h2,
.black-title h2,
.white-title-left h2,
.black-title-left h2 {
    font-family: var(--font-main);
    text-transform: capitalize;
    font-size: clamp(28px, 4vw, 55px);
    line-height: clamp(32px, 22.3px + 3.02vw, 61px);
    font-weight: 500;
    letter-spacing: -0.02em;
    max-width: 920px;
    margin: 0 auto 14px;
}

.white-title-left h2,
.black-title-left h2 {
    margin: 0 0 14px;
}

.white-title h2, .white-title-left h2 { color: var(--white); }
.black-title h2, .black-title-left h2 { color: var(--black); }

.white-title p,
.black-title p,
.white-title-left p,
.black-title-left p {
    font-family: var(--font-body);
    font-size: clamp(14px, 1.5vw, 17px);
    line-height: clamp(26px, 24.7px + 0.42vw, 30px);
    max-width: 760px;
    margin: 0 auto;
}

.white-title-left p,
.black-title-left p {
    margin: 0;
}

.white-title p, .white-title-left p { color: var(--text-light); }
.black-title p, .black-title-left p { color: var(--text-gray); }

/* =========================================
    LAYOUT UTILITIES
           ========================================= */
.container {
    width: 100%;
    max-width: 1680px;
    margin: 0 auto;
    padding: 0 var(--section-padding-x);
}

.portfolio-eyebrow-white {
    font-family: var(--font-mono);
    font-size: clamp(14px, 1.125rem + 0.635vw, 15px);
    font-weight: 400;
    letter-spacing: clamp(-0.42px, -0.03em, -0.2px);
    text-transform: uppercase;
    color: var(--p-blackmark);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.portfolio-eyebrow-white-left {
    font-family: var(--font-mono);
    font-size: clamp(14px, 1.125rem + 0.635vw, 15px);
    font-weight: 400;
    letter-spacing: clamp(-0.42px, -0.03em, -0.2px);
    text-transform: uppercase;
    color: var(--p-blackmark);
    margin-bottom: 24px;
    display: flex;
    align-items: left;
    justify-content: left;
    gap: 15px;
}

.portfolio-eyebrow-black {
    font-family: var(--font-mono);
    font-size: clamp(14px, 1.125rem + 0.635vw, 15px);
    font-weight: 400;
    letter-spacing: clamp(-0.42px, -0.03em, -0.2px);
    text-transform: uppercase;
    color: var(--primary-color);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}


@media (max-width: 1200px) {
    .container {
        padding: 0 32px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 24px;
    }
}

/* Lazy Loading Styles */
.lazy-asset {
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.lazy-asset.loaded {
    opacity: 1;
}

/* Background image specific transition */
div.lazy-asset {
    background-size: cover;
    background-position: center;
}

/* ── Custom Cursor ── */
/* 
   Hide the default browser cursor completely on all elements.
   We use !important to ensure no other styles override this 
   and bring the default pointer back. 
*/
.has-custom-cursor,
.has-custom-cursor * {
    cursor: none !important;
}

/* 
   Inner Cursor (The Arrowhead)
   This is the white SVG arrowhead that replaces the pointer.
*/
.cursor-dot {
    /* Use a CSS variable for size to easily scale it up via JavaScript */
    width: var(--size, 16px);
    height: var(--size, 16px);
    
    /* Fixed positioning keeps it relative to the browser viewport */
    position: fixed;
    top: 0;
    left: 0;
    
    /* Prevent the custom cursor from blocking clicks on buttons/links beneath it */
    pointer-events: none;
    
    /* Ensure it stays on top of all other elements on the page */
    z-index: 99999;
    
    /* Automatically invert colors depending on the background it hovers over */
    mix-blend-mode: difference;
    
    /* The SVG for the tail-less arrowhead */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M0 0l6.5 16 2.5-6.5L15.5 7 0 0z' fill='white'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    
    /* 
       CRUCIAL: We set the transform-origin to top-left.
       Since this is an arrowhead pointer, the very tip (top-left corner)
       is what should align with the actual mouse coordinates to guarantee precise clicking.
    */
    transform-origin: top left;
}

/* 
   Outer Cursor (The Trailing Ring)
   This is the 36px circular ring that smoothly trails behind the inner cursor.
*/
/* .cursor-outline {
    width: var(--size, 36px);
    height: var(--size, 36px);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 99999;
    mix-blend-mode: difference; */
    
    /* Slightly transparent so it's not too overwhelming */
    /* opacity: 0.5; */
    
    /* SVG outline of a circle */
    /* background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 36 36'%3E%3Ccircle cx='18' cy='18' r='16' fill='none' stroke='white' stroke-width='1.5'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat; */
    
    /* 
       Unlike the inner arrowhead, we want this ring to be perfectly centered
       around the tracking coordinates from JavaScript.
    */
    /* transform: translate(-50%, -50%); */
/* } */

/* 
   Touch Device Fallback
   If the screen is less than 1024px wide (likely a tablet or mobile device),
   we disable the custom cursor completely because custom cursors can break touch interactions.
*/
@media (max-width: 1024px) {
    *,
    *::before,
    *::after {
        /* Restore the default system cursor behavior */
        cursor: auto !important;
    }

    /* .cursor-dot,
    .cursor-outline {
        /* Hide the custom cursor elements entirely */
      /*  display: none !important;
    } */
}

/* ── Reveal Animation Base ── */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-left.is-visible {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-right.is-visible {
    opacity: 1;
    transform: translateX(0);
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.92);
    transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-scale.is-visible {
    opacity: 1;
    transform: scale(1);
}