/* ===================================
   JayGood Agency - Custom Styles
   =================================== */

:root {
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out-circ: cubic-bezier(0.85, 0, 0.15, 1);
    --brand-lime: #ccff00;
    --brand-dark: #030303;
}

/* ===================================
   Base Styles
   =================================== */
html {
    scroll-behavior: smooth;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

html.lenis, html.lenis body {
    height: auto;
}

.lenis.lenis-smooth {
    scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
    overscroll-behavior: contain;
}

.lenis.lenis-stopped {
    overflow: hidden;
}

.lenis.lenis-smooth iframe {
    pointer-events: none;
}

body {
    background-color: #030303;
    color: #ffffff;
    cursor: none;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a, button, input, textarea, select, .cursor-pointer, .cursor-interactive {
    cursor: none;
}

/* ===================================
   Accessibility
   =================================== */
.skip-link {
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--brand-lime);
    color: #000;
    padding: 12px 24px;
    z-index: 10000;
    font-weight: bold;
    transition: top 0.3s;
}

.skip-link:focus {
    top: 10px;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
    outline: 2px solid var(--brand-lime);
    outline-offset: 4px;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ===================================
   Scrollbar
   =================================== */
::-webkit-scrollbar {
    display: none;
}

.scrollbar-hide::-webkit-scrollbar {
    display: none;
}

.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* ===================================
   Selection
   =================================== */
::selection {
    background: #ccff00;
    color: #000;
}

/* ===================================
   Text Utilities
   =================================== */
.text-outline {
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.3);
    color: transparent;
}

.text-outline-hover:hover {
    -webkit-text-stroke: 1px #ccff00;
    color: transparent;
}

.gradient-text {
    background: linear-gradient(135deg, #ffffff 0%, var(--brand-lime) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===================================
   Glass Effect
   =================================== */
.glass {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ===================================
   Magnetic Hover
   =================================== */
.magnetic-hover {
    transition: transform 0.4s var(--ease-out-expo);
}

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

/* ===================================
   Line Reveal
   =================================== */
.line-reveal {
    position: relative;
    overflow: hidden;
}

.line-reveal::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 2px;
    background: var(--brand-lime);
    transition: width 0.6s var(--ease-out-expo);
}

.line-reveal:hover::after {
    width: 100%;
}

/* ===================================
   Glow Effect
   =================================== */
.glow-lime {
    box-shadow: 0 0 40px rgba(204, 255, 0, 0.3);
}

/* ===================================
   Noise Background
   =================================== */
.bg-noise {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9998;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.04'/%3E%3C/svg%3E");
}

/* ===================================
   Shimmer Effect
   =================================== */
.shimmer {
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.05) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    background-size: 200% 100%;
    animation: shimmer 2s linear infinite;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* ===================================
   Stagger Delays
   =================================== */
.stagger-1 { animation-delay: 0.1s; }
.stagger-2 { animation-delay: 0.2s; }
.stagger-3 { animation-delay: 0.3s; }
.stagger-4 { animation-delay: 0.4s; }
.stagger-5 { animation-delay: 0.5s; }
.stagger-6 { animation-delay: 0.6s; }

/* ===================================
   Custom Cursor Styles
   =================================== */
#cursor.is-hovering .cursor-inner {
    width: 64px;
    height: 64px;
    margin-left: -24px;
    margin-top: -24px;
    opacity: 1;
}

#cursor.is-hovering .cursor-text {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

#cursor-trail.is-hovering .cursor-trail-inner {
    width: 80px;
    height: 80px;
    margin-left: -32px;
    margin-top: -32px;
    background-color: var(--brand-lime);
}

/* ===================================
   Preloader Styles
   =================================== */
#preloader.loaded {
    transform: translateY(-100%);
}

/* ===================================
   Mobile Menu
   =================================== */
#mobile-menu.is-open {
    transform: translateX(0);
}

#mobile-menu-btn.is-open span:first-child {
    transform: rotate(45deg) translate(5px, 5px);
}

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

#mobile-menu-btn.is-open span:last-child {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ===================================
   Page Transition
   =================================== */
#page-transition.is-active {
    transform: translateY(0);
}

/* ===================================
   Hero Canvas
   =================================== */
#hero-canvas {
    touch-action: none;
}

/* ===================================
   Horizontal Scroll Section
   =================================== */
#horizontal-scroll-section {
    position: relative;
}

/* ===================================
   Nav Active States
   =================================== */
.nav-link.is-active {
    color: var(--brand-lime);
}

/* ===================================
   Project Card Hover
   =================================== */
[data-cursor="project"]:hover {
    /* Cursor will handle the visual */
}

/* ===================================
   Custom Scrollbar for Scroll Indicator
   =================================== */
.custom-scrollbar {
    position: fixed;
    top: 0;
    right: 4px;
    width: 6px;
    height: 100%;
    z-index: 9999;
    mix-blend-mode: difference;
    pointer-events: none;
}

.custom-scrollbar-thumb {
    width: 100%;
    background: var(--brand-lime);
    border-radius: 9999px;
    pointer-events: auto;
    cursor: grab;
    transition: opacity 0.3s;
    opacity: 0.4;
}

.custom-scrollbar-thumb:hover,
.custom-scrollbar-thumb.is-dragging {
    opacity: 1;
}

.custom-scrollbar-thumb.is-dragging {
    cursor: grabbing;
}
