/* ===========================================
   PREMIUM WEBSITE - RAFAEL BROCHADO
   High-End Tech & Corporate Modern | Dynamic Edition
   =========================================== */

/* Reset & Variables */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Premium Colors - Corporate/Tech */
    --color-bg: #05050A;
    --color-bg-light: #0F1218;
    --color-text: #FFFFFF;
    --color-text-secondary: #94A3B8;
    --color-accent: #0F52BA;
    --color-accent-light: #3B82F6;
    --color-accent-glow: rgba(59, 130, 246, 0.5);
    --color-border: rgba(255, 255, 255, 0.08);

    --gradient-primary: linear-gradient(135deg, #0F52BA, #3B82F6);
    --gradient-glow: radial-gradient(circle at center, rgba(59, 130, 246, 0.15), transparent 70%);

    /* Liquid Glass (Optimized for Performance) */
    --glass-bg: rgba(30, 30, 40, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-highlight: rgba(255, 255, 255, 0.15);
    --glass-blur: 12px;
    /* Reduced from 40px for massive performance gain */
    --glass-saturate: 180%;
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);

    /* Typography */
    --font-primary: 'Space Grotesk', sans-serif;
    --font-secondary: 'Inter', sans-serif;

    /* Spacing */
    --container-padding: clamp(1.5rem, 5vw, 3rem);

    /* Effects */
    --ease-in-out-cubic: cubic-bezier(0.65, 0, 0.35, 1);
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-magnetic: cubic-bezier(0.23, 1, 0.32, 1);
    --shadow-card: 0 10px 40px -10px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 20px rgba(59, 130, 246, 0.15);

    /* Z-INDEX SYSTEM (Centralized) */
    --z-background: -1;
    --z-content: 10;
    --z-header: 1000;
    --z-overlay: 20000;
    --z-modal: 21000;
    --z-cursor: 2147483647;
}

html {
    /* scroll-behavior: smooth;  <-- REMOVED: Causes lag/jank on heavy pages */
    overflow-x: hidden;
    background-color: #05050A;
}

body {
    background: transparent;
    color: var(--color-text);
    font-family: var(--font-primary);
    overflow-x: hidden;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    cursor: auto;
    position: relative;
    min-height: 100vh;
}

body.has-custom-cursor {
    cursor: none;
}

/* Removed is-scrolling optimization */

/* Ensure all content sits ABOVE the fixed background */
nav,
section,
footer,
.container-fluid,
.container-large {
    position: relative;
    z-index: 10;
}

/* ===========================================
   IMMERSIVE BACKGROUND
   =========================================== */

/* Wrapper for JS Scroll Parallax */
.parallax-wrapper {
    position: fixed;
    top: -20%;
    left: 0;
    width: 100%;
    height: 140%;
    z-index: -1;
    /* Changed from 0 to -1 to be absolutely sure it is behind */
    pointer-events: none;
    will-change: transform;
    transform: translate3d(0, 0, 0);
}

/* ... existing code ... */

.calendar-wrapper {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    background: rgba(15, 18, 24, 0.6);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    /* overflow: hidden;  <-- REMOVED: In some browsers this traps scroll gestures */
    position: relative;
    z-index: 5;
    padding: 2px;
}

/* Inner Layer for Auto-Animation (CSS) */
.background-animate {
    position: absolute;
    top: -25%;
    left: -25%;
    width: 150%;
    height: 150%;
    background:
        radial-gradient(circle at 15% 50%, rgba(59, 130, 246, 0.1), transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(59, 130, 246, 0.1), transparent 25%),
        linear-gradient(to bottom, #05050A, #0f172a);
    background-size: cover;
    will-change: transform;
    /* GPU layer */
    transform: translate3d(0, 0, 0);
    /* Animation (respects prefers-reduced-motion) */
    animation: backgroundShift 60s ease-in-out infinite alternate;
}

/* Respect user's motion preferences */
@media (prefers-reduced-motion: reduce) {
    .background-animate {
        animation: none;
    }
}

/* Subtle Grid Overlay */
.background-animate::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
    z-index: 0;
    opacity: 0.1;
    /* Reduced opacity for subtlety */
}

@keyframes backgroundShift {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(-5%, -5%);
    }
}

.container-fluid {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 4rem;
    position: relative;
    z-index: 1;
}

.container-large {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--container-padding);
    position: relative;
    z-index: 1;
}

/* ===========================================
   CUSTOM CURSOR
   =========================================== */
/* ===========================================
   NAVIGATION
   =========================================== */

/* Hamburger Menu (Mobile Only) */
.nav-hamburger {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    width: 40px;
    height: 40px;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    z-index: 2100;
    /* Above menu overlay */
    position: relative;
    padding: 0;
}

.hamburger-line {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--color-text);
    transition: all 0.3s ease;
    margin: 0 auto;
}

.nav-hamburger.active .hamburger-line:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.nav-hamburger.active .hamburger-line:nth-child(2) {
    transform: translateY(0) rotate(-45deg);
    /* Adjusted to overlap correctly */
    margin-top: -8px;
    /* Pull back up to center */
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100dvh;
    background: rgba(5, 5, 10, 0.98);
    backdrop-filter: blur(20px);
    z-index: 20000;
    /* Increased Z-Index */
    /* mix-blend-mode: difference; REMOVED for stability */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.mobile-menu-links {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    text-align: center;
}

.mobile-menu-link {
    font-family: var(--font-primary);
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-text);
    text-decoration: none;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.mobile-menu-link:hover {
    color: var(--color-accent);
}

.mobile-menu-overlay.active .mobile-menu-link {
    opacity: 1;
    transform: translateY(0);
    transition-delay: calc(0.1s * var(--delay, 1));
}

.mobile-socials {
    margin-top: 3rem;
    display: flex;
    gap: 2rem;
}

.mobile-socials a {
    color: var(--color-text-secondary);
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.mobile-socials a:hover {
    background: #fff;
    color: #000;
    border-color: #fff;
}

.mobile-socials svg {
    width: 24px;
    height: 24px;
}

/* Cursor Logic */
.cursor,
.cursor-follower {
    display: none;
    /* Hidden by default */
}

/* Desktop/Laptop (Broad definition) */
@media (min-width: 769px) {

    .cursor,
    .cursor-follower {
        display: block !important;
    }

    /* Restore custom cursor visibility */
    body.has-custom-cursor {
        cursor: none !important;
    }
}

/* Mobile Only */
@media (max-width: 768px) {

    .cursor,
    .cursor-follower {
        display: none !important;
    }

    body {
        cursor: auto !important;
    }
}

.nav-premium {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1.5rem 0;
    /* Liquid Glass Effect */
    background: rgba(10, 10, 15, 0.7);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s var(--ease-in-out-cubic);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
}

/* Reduce backdrop-filter on mobile for performance */
@media (max-width: 768px) {
    .nav-premium {
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        background: rgba(10, 10, 15, 0.85);
    }
}

.nav-premium.scrolled {
    padding: 1rem 0;
    background: rgba(10, 10, 15, 0.6);
    /* Slightly darker on scroll */
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: var(--glass-shadow);
}

.nav-premium-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-premium {
    font-family: var(--font-primary);
    font-size: 2rem;
    font-weight: 800;
    color: var(--color-text);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.1rem;
    letter-spacing: 0.05em;
    position: relative;
    overflow: hidden;
}

.logo-text {
    position: relative;
    z-index: 1;
    display: inline-block;
    color: #fff;
}

.logo-bracket {
    color: var(--color-accent-light);
    display: inline-block;
    font-weight: 400;
    animation: bracketPulse 2s ease-in-out infinite;
}

@keyframes bracketPulse {

    0%,
    100% {
        transform: translateX(0);
        opacity: 0.7;
    }

    50% {
        transform: scale(1.1);
        opacity: 1;
        text-shadow: 0 0 10px var(--color-accent);
    }
}

.nav-premium-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

@media (max-width: 768px) {
    .nav-premium-links {
        display: none;
    }

    .nav-hamburger {
        display: flex;
    }
}

.nav-premium-link {
    font-family: var(--font-secondary);
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
}

.nav-premium-link:hover {
    color: var(--color-text);
}

.nav-social-link {
    color: var(--color-text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    opacity: 0.7;
}

.nav-social-link svg {
    width: 20px;
    height: 20px;
}

.nav-social-link:hover {
    color: #fff;
    opacity: 1;
    transform: translateY(-2px);
}

.nav-separator {
    color: var(--color-border);
    font-size: 0.8rem;
    opacity: 0.5;
}

.nav-premium-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--color-accent-light);
    transition: width 0.3s var(--ease-out-expo);
}

.nav-premium-link:hover {
    color: var(--color-text);
}

.nav-premium-link:hover::before {
    width: 100%;
}

/* ===========================================
   HERO SECTION
   =========================================== */
.hero-premium {
    min-height: 100dvh;
    /* Dynamic viewport height for mobile stability */
    display: flex;
    align-items: center;
    position: relative;
    padding: 8rem 0 4rem;
    will-change: transform;
}

/* Center Focus Effect - CSS Variables (Updated by IntersectionObserver) */
.velocity-anim {
    /* CSS Variables set by JS IntersectionObserver */
    --focus-intensity: 0;

    /* GPU-accelerated animations using CSS calc */
    transform: scale(calc(1 + var(--focus-intensity) * 0.05));
    opacity: calc(0.6 + var(--focus-intensity) * 0.4);

    /* Smooth transitions */
    transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1),
        opacity 0.3s cubic-bezier(0.23, 1, 0.32, 1);

    /* Force GPU layer */
    will-change: transform, opacity;
}

/* Reset on mobile to avoid any issues */
@media (max-width: 768px) {
    .velocity-anim {
        transform: scale(1) !important;
        opacity: 1 !important;
        will-change: auto;
    }
}

/* Active State for Mobile (Touch Feedback) */
.btn-premium:active,
.pillar-card:active,
.action-card:active {
    transform: scale(0.98);
}

.hero-premium-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    align-items: center;
}

@media (min-width: 1024px) {
    .hero-premium-grid {
        grid-template-columns: 1.2fr 1fr;
        gap: 6rem;
    }
}

/* MOBILE HERO IMAGE WRAPPER - HIDDEN ON DESKTOP BY DEFAULT */
.mobile-hero-visual-wrapper {
    display: none;
}

.hero-premium-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--color-border);
    border-radius: 50px;
    font-size: 0.8rem;
    margin-bottom: 2rem;
    color: var(--color-text-secondary);
    backdrop-filter: blur(4px);
    /* REMOVED ANIMATION FOR STABILITY */
    border-left: 2px solid var(--color-accent);
}

.badge-dot {
    width: 6px;
    height: 6px;
    background: #10B981;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.6);
    animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.5);
        opacity: 0.5;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.hero-premium-title {
    font-family: var(--font-primary);
    font-size: clamp(3rem, 7vw, 5.5rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.03em;
    background: linear-gradient(to right, #ffffff, #94a3b8);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    /* REMOVED ANIMATION FOR STABILITY */
}

.hero-premium-subtitle {
    font-family: var(--font-secondary);
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    font-weight: 500;
    color: var(--color-text);
    margin-bottom: 1.5rem;
    line-height: 1.4;
    /* REMOVED ANIMATION FOR STABILITY */
}

.hero-premium-text {
    font-size: 1.125rem;
    color: var(--color-text-secondary);
    max-width: 600px;
    margin-bottom: 3rem;
    line-height: 1.7;
    /* REMOVED ANIMATION FOR STABILITY */
}

.hero-premium-cta {
    display: flex;
    gap: 1.5rem;
    /* REMOVED ANIMATION FOR STABILITY */
}

.btn-premium {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    border-radius: 12px;
    /* More rounded for glass effect */
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 10;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* ===========================================
   CUSTOM CURSOR (Re-defined Correctly)
   =========================================== */
.cursor,
.cursor-follower {
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 2147483647;
    /* GPU acceleration for cursor */
    will-change: transform;
}

.cursor {
    width: 8px;
    height: 8px;
    background: #FFFFFF;
    border-radius: 50%;
    /* Note: JS now uses translate3d directly, this is just default */
    transform: translate3d(-50%, -50%, 0);
    transition: width 0.3s var(--ease-magnetic), height 0.3s var(--ease-magnetic);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.cursor-follower {
    width: 40px;
    height: 40px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate3d(-50%, -50%, 0);
    transition: width 0.3s, height 0.3s, border-color 0.3s, background 0.3s;
}

.btn-premium::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 150%;
    height: 150%;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.5s var(--ease-out-expo);
    z-index: -1;
}

.btn-premium:hover::before {
    transform: translate(-50%, -50%) scale(1);
}

.btn-premium-primary {
    background: linear-gradient(135deg, rgba(15, 82, 186, 0.9), rgba(59, 130, 246, 0.9));
    color: #FFFFFF;
    box-shadow: 0 4px 16px rgba(15, 82, 186, 0.3);
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.btn-premium-primary:hover {
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.4);
    transform: translateY(-2px);
    background: linear-gradient(135deg, rgba(59, 130, 246, 1), rgba(99, 170, 255, 1));
    border-color: rgba(99, 170, 255, 0.5);
}

.btn-premium-ghost {
    background: transparent;
    color: var(--color-text);
    border: 1px solid var(--color-border);
}

.btn-premium-ghost:hover {
    border-color: var(--color-accent-light);
    color: var(--color-accent-light);
    background: rgba(255, 255, 255, 0.05);
}

.hero-premium-visual {
    position: relative;
    perspective: 1000px;
}

.visual-container {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {

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

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

/* Logo Animation */
.logo-bracket {
    display: inline-block;
    color: var(--color-accent-light);
    transition: color 0.3s ease;
    will-change: transform;
}

.logo-premium:hover .logo-bracket {
    color: #fff;
    /* Reset animation on hover impact if needed, or let it flow */
}

/* Async Horizontal Movement */
.logo-premium .logo-bracket:first-child {
    animation: bracketMoveLeft 4s ease-in-out infinite alternate;
}

.logo-premium .logo-bracket:last-child {
    animation: bracketMoveRight 5s ease-in-out infinite alternate;
}

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

    100% {
        transform: translateX(-4px);
    }
}

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

    100% {
        transform: translateX(4px);
    }
}

.visual-frame {
    position: relative;
    background: transparent;
    border: none;
    box-shadow: none;
    transition: all 0.5s var(--ease-out-expo);
    /* Glow Container */
}

/* The Blue Glow CENTERED Behind Subject */
.visual-frame::before {
    content: '';
    position: absolute;
    width: 60%;
    height: 70%;
    left: 20%;
    top: 15%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.6) 0%, transparent 80%);
    filter: blur(50px);
    z-index: -1;
    /* Behind image */
    opacity: 0.8;
    transition: opacity 0.5s ease;
}

.visual-frame:hover::before {
    opacity: 1;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.8) 0%, transparent 80%);
}

.visual-frame::after {
    display: none;
    /* Removed gloss */
}

.visual-frame:hover {
    transform: scale(1.02);
}

.hero-photo {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.8s var(--ease-out-expo);
    /* NO FILTER DROP-SHADOW */
    filter: none;

    /* Aggressive Fade Mask for bottom-left cut */
    -webkit-mask-image: linear-gradient(to bottom, black 75%, transparent 95%);
    mask-image: linear-gradient(to bottom, black 75%, transparent 95%);
}

.visual-frame:hover .hero-photo {
    transform: scale(1.05);
    /* No shadow on hover either, just glow intensity */
    filter: none;
}

.visual-frame:hover::after {
    opacity: 1;
}

.hero-photo {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.8s var(--ease-out-expo);
}

.visual-frame:hover .hero-photo {
    transform: scale(1.05);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    /* REMOVED ANIMATION */
}

.scroll-text {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-text-secondary);
}

.scroll-line {
    width: 2px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    border-radius: 4px;
}

.scroll-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: var(--color-accent-light);
    transform: translateY(-100%);
    animation: scrollDrop 2s infinite;
}

@keyframes scrollDrop {
    0% {
        transform: translateY(-100%);
        opacity: 0;
    }

    30% {
        opacity: 1;
    }

    100% {
        transform: translateY(200%);
        opacity: 0;
    }
}

/* ===========================================
   SECTIONS & PILLARS
   =========================================== */
.section-premium {
    padding: clamp(6rem, 12vw, 10rem) 0;
    position: relative;
}

.section-dark {
    background: rgba(15, 18, 24, 0.4);
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    backdrop-filter: blur(10px);
}

.section-header {
    margin-bottom: 5rem;
    text-align: center;
}

.section-title-large {
    font-family: var(--font-primary);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #fff, #94a3b8);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    border-bottom: 3px solid var(--color-accent);
    padding-bottom: 0.5rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--color-text-secondary);
    font-weight: 400;
    max-width: 600px;
    margin: 1rem auto 0;
}

/* Scroll Reveal */
.reveal {
    opacity: 0;
    transform: translateY(80px) scale(0.95);
    transition: all 1.2s var(--ease-out-expo);
    will-change: opacity, transform;
}

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

.reveal-delay-1 {
    transition-delay: 0.15s;
}

.reveal-delay-2 {
    transition-delay: 0.3s;
}

.reveal-delay-3 {
    transition-delay: 0.45s;
}

/* Philosophy */
.philosophy-content {
    max-width: 900px;
    margin: 0 auto;
}

.philosophy-content p {
    font-size: clamp(1.25rem, 3vw, 1.85rem);
    line-height: 1.5;
    color: var(--color-text-secondary);
    margin-bottom: 3rem;
    transition: color 0.3s ease;
}

.philosophy-content p:hover {
    color: var(--color-text);
}

.highlight {
    position: relative;
    display: inline-block;
    padding: 0 5px;
    color: var(--color-text);
}

.highlight::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--color-accent-glow);
    transform: skewX(-10deg);
    z-index: -1;
    border-radius: 4px;
}

/* Pillars Cards */
.pillars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 2.5rem;
    perspective: 1000px;
}

.pillar-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--color-border);
    padding: 3.5rem 2.5rem;
    border-radius: 12px;
    transition: transform 0.1s linear, box-shadow 0.3s ease, background 0.3s ease, border 0.3s ease;
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
}

.pillar-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(800px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(59, 130, 246, 0.08), transparent 40%);
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 0;
}

.pillar-card:hover::before {
    opacity: 1;
}

.pillar-card:hover {
    border-color: var(--color-accent-light);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 20px rgba(15, 82, 186, 0.2);
}

.pillar-icon {
    margin-bottom: 2rem;
    color: var(--color-accent-light);
    width: 56px;
    height: 56px;
    transform: translateZ(20px);
}

.pillar-title {
    font-family: var(--font-primary);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    line-height: 1.3;
    transform: translateZ(10px);
}

.pillar-text {
    font-size: 1rem;
    color: var(--color-text-secondary);
    line-height: 1.7;
    transform: translateZ(5px);
}

/* ===========================================
   TECH STACK - BRAND COLORS FIXED
   =========================================== */
.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 4rem;
    margin-top: 4rem;
}

.tech-group {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.tech-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-accent-light);
    padding-left: 1rem;
    border-left: 2px solid var(--color-accent-light);
}

.tech-logos {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 1rem;
}

.tech-item {
    padding: 1rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--color-border);
    border-radius: 6px;
    transition: all 0.3s ease;
    cursor: default;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    /* Icon top, Text bottom */
    justify-content: center;
    align-items: center;
    height: 120px;
    /* Increased height for label */
    gap: 0.75rem;
    color: var(--color-text-secondary);
}

.tech-name {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--color-text-secondary);
    transition: color 0.3s ease;
    text-align: center;
}

.tech-item:hover .tech-name {
    color: #fff;
}

.tech-item svg,
.tech-logo {
    width: 48px;
    height: 48px;
    object-fit: contain;
    transition: all 0.3s ease;
}

/* SVG logos */
.tech-item svg {
    color: #94A3B8;
}

/* Image logos - Elegant grayscale with color on hover */
.tech-logo {
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all 0.4s ease;
}

.tech-item:hover .tech-logo {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.05);
}

/* SVG logos - Grayscale effect */
.tech-item svg {
    color: #94A3B8;
    opacity: 0.6;
    transition: all 0.4s ease;
}

.tech-item:hover svg {
    color: #3B82F6;
    opacity: 1;
    transform: scale(1.05);
}

/* Text-based logo for ActiveCampaign fallback */
.tech-logo-text {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 700;
    color: #94A3B8;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    transition: all 0.3s ease;
}

.tech-item svg {
    opacity: 1 !important;
    /* FIXED VISIBILITY */
}

.tech-item::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 150%;
    height: 150%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.2), transparent 60%);
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.4s ease;
    z-index: 0;
}

.tech-item:hover {
    color: #fff;
    border-color: var(--color-accent-light);
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(59, 130, 246, 0.15);
}

.tech-item:hover::before {
    transform: translate(-50%, -50%) scale(1);
}

.tech-item:hover svg {
    transform: scale(1.1);
}

/* BRAND SPECIFIC COLORS - DEFAULT (VISIBLE NOW) */
.tech-item[title="OpenAI"] svg {
    color: #ffffff;
}

.tech-item[title="Claude (Anthropic)"] svg {
    color: #d97757;
}

.tech-item[title="Google Gemini"] svg {
    color: #4E86F8;
}

.tech-item[title="n8n"] svg {
    color: #ff6584;
}

.tech-item[title="Zapier"] svg {
    color: #ff4f00;
}

.tech-item[title="GoHighLevel"] svg {
    color: #188bf6;
}

.tech-item[title="ActiveCampaign"] svg {
    color: #356ae6;
}


/* ===========================================
   NEW CONTACT / CTA SECTION ("Business Card")
   =========================================== */
/* ===========================================
   CONTACT HUB PREMIUM (SPLIT LAYOUT)
   =========================================== */
/* ===========================================
   CONTACT HUB PREMIUM (SPLIT LAYOUT)
   =========================================== */
.contact-hub-section {
    position: relative;
    padding: 8rem 0 0;
    /* Add top padding to push content down */
    min-height: 90vh;
    /* Increased height for distinction */
    display: flex;
    flex-direction: column;
    /* justify-content: center; REMOVED to prevent clipping */
    /* overflow: hidden; REMOVED - Using wrapper instead so content isn't clipped */
    /* Clips the pulse to prevent scroll */
    /* NEW: Visual Distinction via Background */
    background: radial-gradient(circle at center, #0a0a0f 0%, #000000 100%);
    box-shadow: 0 -50px 100px rgba(0, 0, 0, 1);
}

/* New Wrapper to contain the pulse without clipping content */
.pulse-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

/* Shadow to blend top edge */

/* Staggered Animation Parent Control */
.reveal.visible .reveal-child {
    opacity: 1;
    transform: translateY(0);
}

.reveal-child {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.delay-1 {
    transition-delay: 0.1s;
}

.delay-2 {
    transition-delay: 0.2s;
}

.delay-3 {
    transition-delay: 0.3s;
}

.delay-4 {
    transition-delay: 0.4s;
}

.delay-5 {
    transition-delay: 0.6s;
}


.contact-hub-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 4rem;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 8rem;
    /* Increased gap */
    align-items: center;
    position: relative;
    z-index: 2;
    width: 100%;
}

/* Background Pulse Effect - Now attached to Wrapper */
.pulse-wrapper::before {
    content: '';
    position: absolute;
    top: 50%;
    right: 10%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.05) 0%, transparent 60%);
    filter: blur(100px);
    z-index: 1;
    animation: hubPulse 10s ease-in-out infinite alternate;
}

@keyframes hubPulse {
    0% {
        transform: scale(0.9) translate(0, 0);
        opacity: 0.3;
    }

    100% {
        transform: scale(1.1) translate(-30px, 30px);
        opacity: 0.6;
    }
}

/* Left Col: Content */
.contact-content-col {
    position: relative;
}

.hub-label {
    display: inline-block;
    color: var(--color-accent-light);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 2rem;
    font-weight: 600;
    opacity: 0.8;
}

.hub-title {
    font-family: var(--font-primary);
    font-size: clamp(3rem, 6vw, 5.5rem);
    /* Slightly smaller min constraint for mobile */
    line-height: 1.05;
    font-weight: 700;
    margin-bottom: 2.5rem;
    background: linear-gradient(135deg, #fff, #94a3b8);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hub-description {
    font-size: 1.35rem;
    /* Larger text */
    color: var(--color-text-secondary);
    line-height: 1.6;
    max-width: 550px;
    margin-bottom: 3rem;
    font-weight: 300;
}

/* Status Pill */
.hub-status {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 1rem;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 100px;
    font-size: 0.9rem;
    color: #10b981;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 10px #10b981;
    animation: statusBlink 2s infinite;
}

@keyframes statusBlink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.4;
    }
}

/* Right Col: Actions */
.contact-actions-col {
    position: relative;
}

.action-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Action Card - High End */
.action-card {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    text-decoration: none;
    color: var(--color-text);
    transition: all 0.4s var(--ease-out-expo);
    /* Bouncy */
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
    -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.calendar-wrapper {
    width: 100%;
    max-width: 1000px;
    /* Limit width so there's always space on sides to scroll */
    margin: 0 auto;
    /* Center it */
    background: rgba(15, 18, 24, 0.6);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    overflow: hidden;
    position: relative;
    /* Ensure z-index works */
    z-index: 5;
    /* Below nav but above background */
    padding: 2px;
    /* Tiny padding */
}

.pillar-card {
    background: rgba(15, 15, 25, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 24px;
    padding: 3rem;
    position: relative;
    overflow: hidden;
    transition: all 0.5s var(--ease-out-expo);
    transform-style: preserve-3d;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(16px) saturate(150%);
    -webkit-backdrop-filter: blur(16px) saturate(150%);
}

.pillar-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
}

.pillar-card:hover {
    transform: translateY(-8px);
    border-color: rgba(59, 130, 246, 0.4);
    box-shadow: 0 16px 48px rgba(15, 82, 186, 0.2);
    background: rgba(20, 20, 35, 0.7);
}

.action-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.03), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.action-card:hover {
    transform: translateY(-4px) scale(1.01);
    border-color: var(--glass-highlight);
    background: rgba(40, 40, 50, 0.7);
    box-shadow: var(--glass-shadow);
}

.action-card:hover::before {
    transform: translateX(100%);
}

.action-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 14px;
    color: var(--color-text-secondary);
    transition: all 0.3s ease;
}

.action-icon svg {
    width: 26px;
    height: 26px;
}

.action-card:hover .action-icon {
    background: var(--color-accent);
    color: #fff;
    transform: scale(1.1) rotate(-5deg);
}

.action-details {
    flex: 1;
}

.action-title {
    display: block;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 0.35rem;
}

.action-sub {
    font-size: 0.95rem;
    color: var(--color-text-secondary);
}

.action-arrow {
    font-size: 1.8rem;
    color: var(--color-text-secondary);
    transition: transform 0.3s ease, color 0.3s ease;
    opacity: 0.5;
}

.action-card:hover .action-arrow {
    transform: translateX(5px);
    color: var(--color-accent-light);
    opacity: 1;
}

/* Footer Integration */
.hub-footer {
    display: flex;
    justify-content: center;
    padding: 4rem 0 2rem;
    margin-top: auto;
    width: 100%;
    position: relative;
    z-index: 10;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1400px;
    padding: 0 4rem;
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    opacity: 0.7;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 2rem;
}

.social-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.social-links a,
.footer-links a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
}

.social-links a:hover,
.footer-links a:hover {
    color: #fff;
    text-decoration: underline;
}

.separator {
    margin: 0 0.5rem;
    opacity: 0.3;
}

/* Hide Custom Cursor on Mobile/Touch */
@media (hover: none) and (pointer: coarse) {

    .cursor,
    .cursor-follower {
        display: none !important;
    }
}

/* Mobile Responsive */
@media (max-width: 992px) {

    .container-fluid,
    .container-large {
        padding: 0 1.5rem;
        /* Global reduction */
    }

    .hero-premium-title {
        font-size: clamp(2.5rem, 9vw, 3.5rem);
        /* Prevent overflow on small screens */
    }

    .contact-hub-section {
        padding: 4rem 0 0;
        min-height: auto;
    }

    .contact-hub-container {
        grid-template-columns: 1fr;
        gap: 3rem;
        /* Reduced from 4rem */
        padding: 0 1rem;
        /* Tight padding for max width */
        text-align: center;
        width: 100%;
        overflow: hidden;
        /* Prevent horizontal spill */
    }

    .pillars-grid,
    .tech-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .pillar-card {
        padding: 2rem;
    }

    /* FIX: Optimization for Mobile Actions */
    .action-card {
        padding: 1.25rem;
        /* Reduced from 1.5rem */
        gap: 1rem;
        width: 100%;
        box-sizing: border-box;
    }

    .action-details {
        min-width: 0;
        /* Critical for flex text wrapping */
        text-align: left;
        /* Keep text readable */
    }

    .action-title {
        font-size: 1.1rem;
        /* Slightly smaller */
    }

    .action-sub {
        font-size: 0.85rem;
    }

    .action-icon {
        width: 42px;
        /* Smaller icon container */
        height: 42px;
        flex-shrink: 0;
        /* Prevent squishing */
    }

    .action-icon svg {
        width: 18px;
        height: 18px;
    }

    .hub-title {
        font-size: 2.5rem;
        /* Force smaller size on mobile */
    }

    .hub-description {
        margin: 0 auto 3rem;
        font-size: 1rem;
        padding: 0 1rem;
    }

}

/* ==============================================
   MASTER MOBILE OPTIMIZATION (Optimized v21)
   ============================================== */
@media screen and (max-width: 992px) {

    /* --- NAVIGATION SYSTEM --- */
    .nav-premium {
        z-index: var(--z-header) !important;
        position: fixed !important;
        width: 100% !important;
        padding: 1rem 0 !important;
    }

    .nav-premium-links,
    .nav-social-link,
    .nav-separator {
        display: none !important;
    }

    /* ESCAPE HATCH: Hamburger Button fixed to viewport */
    .nav-hamburger {
        display: flex !important;
        position: fixed !important;
        top: 20px !important;
        right: 20px !important;
        z-index: var(--z-modal) !important;
        /* Above Overlay (21000) */
        cursor: pointer !important;
        background: rgba(10, 10, 15, 0.5) !important;
        border-radius: 8px !important;
        padding: 8px !important;
        backdrop-filter: blur(4px) !important;
    }

    /* Ensure icon is visible */
    .nav-hamburger span {
        background-color: #fff !important;
    }

    /* --- HERO SECTION LAYOUT --- */
    .hero-premium {
        padding-top: 140px !important;
        /* Clear fixed header safely */
        align-items: flex-start !important;
        min-height: auto !important;
    }

    /* Force Vertical Stacking */
    .hero-premium-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 3rem !important;
        text-align: center !important;
        width: 100% !important;
    }

    /* Mobile Image Ordering Logic */
    .hero-premium-content {
        order: 1 !important;
        width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
    }

    /* The new wrapper inside content */
    .mobile-hero-visual-wrapper {
        display: block !important;
        order: 2 !important;
        /* Place between text and CTA */
        margin: 2rem 0 !important;
        width: 100% !important;
    }

    .hero-premium-cta {
        order: 3 !important;
        width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 1rem !important;
        margin-top: 1rem !important;
    }

    /* Hide Desktop Image Column */
    .visual-container {
        display: none !important;
    }

    /* --- TYPOGRAPHY & VISUALS --- */

    /* Verified Gradient Title - MATCHING SECTION TITLE STYLE */
    .hero-premium-title {
        display: inline-block !important;
        /* Critical for border-bottom width */
        width: auto !important;
        /* Don't stretch */
        max-width: 100% !important;

        font-family: var(--font-primary) !important;
        font-size: clamp(2.5rem, 8vw, 3.5rem) !important;
        line-height: 1.1 !important;
        font-weight: 700 !important;
        letter-spacing: -0.02em !important;

        margin-bottom: 1.5rem !important;
        margin-top: 1rem !important;

        /* VISIBILITY CORE: White Fallback */
        color: #fff !important;
        position: relative !important;
        background: none !important;
        /* Ensure main element has no bg to conflict */

        /* DECORATION: Border via Pseudo-element to avoid conflict */
        border-bottom: none !important;
        padding-bottom: 0.5rem !important;
    }

    /* THE GRADIENT TRICK: Separate the text rendering */
    .hero-premium-title span,
    .hero-premium-title {
        background: linear-gradient(135deg, #fff 0%, #94a3b8 100%) !important;
        -webkit-background-clip: text !important;
        background-clip: text !important;
        -webkit-text-fill-color: transparent !important;

        /* NUCLEAR BORDER REMOVAL */
        border: none !important;
        outline: none !important;
        box-shadow: none !important;
        text-decoration: none !important;
        text-shadow: none !important;
    }

    /* THE UNDERLINE: REMOVED as requested */
    .hero-premium-title::after,
    .hero-premium-title::before {
        content: none !important;
        display: none !important;
    }

    /* FIX CARD STRETCHING/DIFFERENCE */
    .action-card {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 auto !important;
        display: flex !important;
        align-items: center !important;
        gap: 1.5rem !important;
        padding: 1.5rem !important;
        /* Ensure it looks like the others */
        background: rgba(15, 15, 25, 0.6) !important;
        border: 1px solid rgba(255, 255, 255, 0.12) !important;
    }

    .contact-hub-container {
        display: flex !important;
        flex-direction: column !important;
        gap: 2rem !important;
    }

    /* DISABLE CUSTOM CURSOR ON MOBILE */
    .cursor,
    .cursor-follower {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
    }

    .hero-premium-subtitle {
        font-size: 1.1rem !important;
        line-height: 1.5 !important;
        max-width: 90% !important;
    }

    .hero-premium-text {
        font-size: 1rem !important;
        max-width: 100% !important;
        margin-bottom: 1rem !important;
        /* Reduced because image is next */
    }

    /* --- COMPONENTS --- */
    .contact-hub-container {
        grid-template-columns: 1fr !important;
        gap: 4rem !important;
        padding: 0 1.5rem !important;
    }

    .footer-content {
        flex-direction: column !important;
        gap: 2rem !important;
    }

    /* FIX MEETING PAGE CUT-OFF */
    .meeting-page {
        padding-top: 150px !important;
        /* Ensure clears header */
        min-height: 100vh !important;
    }

    .meeting-container {
        padding: 0 1.5rem !important;
    }
}