/* Typographic Smoothing */
html {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    font-size: 16px;
}

@media (min-width: 1024px) {
    html {
        font-size: 18px;
    }
}

@media (min-width: 1536px) {
    html {
        font-size: 19px;
    }
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif !important;
}

body {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

/* ===== ENHANCED ACCENT SYSTEM (Sunset Orange) ===== */
:root {
    --accent: #F97316; /* Sunset Orange */
    --accent-bright: #F59E0B; /* Amber Gold */
    --accent-dark: #9A3412; /* Deep Orange */
}

.text-accent { color: var(--accent) !important; }
.bg-accent { background-color: var(--accent) !important; }
.border-accent { border-color: var(--accent) !important; }

/* ===== CUSTOM CURSOR ===== */
.cursor-dot {
    position: fixed;
    top: 0;
    left: 0;
    width: 8px;
    height: 8px;
    background: #fff;
    border-radius: 50%;
    pointer-events: none;
    z-index: 99999;
    mix-blend-mode: difference;
    transition: width 0.3s, height 0.3s, margin 0.3s;
}

.cursor-follower {
    position: fixed;
    top: 0;
    left: 0;
    width: 40px;
    height: 40px;
    border: 1.5px solid rgba(255, 159, 28, 0.5); /* Orange hint */
    border-radius: 50%;
    pointer-events: none;
    z-index: 99998;
    mix-blend-mode: difference;
    transition: width 0.3s, height 0.3s, margin 0.3s, border-color 0.3s;
}

.cursor-dot.hover {
    width: 60px;
    height: 60px;
    margin: -26px 0 0 -26px;
    background: rgba(249, 115, 22, 0.15);
    border: 1px solid rgba(249, 115, 22, 0.4);
}

.cursor-follower.hover {
    width: 80px;
    height: 80px;
    margin: -36px 0 0 -36px;
    border-color: rgba(249, 115, 22, 0.2);
}

/* Hide custom cursor on touch */
@media (hover: none) and (pointer: coarse) {
    html, body { cursor: auto; }
    .cursor-dot, .cursor-follower { display: none !important; }
}

/* ===== PRELOADER ===== */
.preloader {
    position: fixed;
    inset: 0;
    background: #000;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.preloader-logo {
    width: 120px;
    opacity: 0;
    filter: drop-shadow(0 0 40px rgba(249, 115, 22, 0.5));
}

.preloader-bar {
    width: 200px;
    height: 2px;
    background: rgba(255,255,255,0.1);
    margin-top: 30px;
    border-radius: 2px;
    overflow: hidden;
    opacity: 0;
}

.preloader-bar-fill {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #EA580C, #F97316);
    border-radius: 2px;
}

/* ===== PAGE TRANSITION ===== */
.page-transition {
    position: fixed;
    inset: 0;
    z-index: 99990;
    pointer-events: none;
    display: flex;
}

.page-transition .col {
    flex: 1;
    background: #9A3412;
    transform: scaleY(0);
    transform-origin: bottom;
}

/* ===== LIQUID GLASS (Enhanced) ===== */
.liquid-glass {
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(15px) saturate(180%);
    -webkit-backdrop-filter: blur(15px) saturate(180%);
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255,255,255,0.05);
    transition: background 0.5s ease, border 0.5s ease, box-shadow 0.5s ease;
    will-change: transform;
}

.liquid-glass::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent 50%);
    z-index: 0;
    pointer-events: none;
}

.liquid-glass:hover {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 159, 28, 0.3);
    box-shadow: 0 16px 50px 0 rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255,255,255,0.08);
}

@media (hover: hover) {
    .liquid-glass:hover {
        transform: translateY(-2px);
    }
}

.liquid-glass-content {
    position: relative;
    z-index: 10;
    transition: all 0.4s ease;
}

/* ===== MAGNETIC BUTTON ===== */
.magnetic {
    display: inline-block;
    cursor: none;
}

/* ===== SPLIT TEXT ===== */
.split-text {
    overflow: visible;
    letter-spacing: -0.03em;
    font-weight: 700;
}

.word {
    display: inline-block;
    will-change: transform, opacity;
}

/* ===== NAV LINKS — Underline Slide ===== */
nav a {
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: #F97316;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* ===== TEXT UTILITIES ===== */
.text-shadow-sm {
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2), 0 1px 3px rgba(0, 0, 0, 0.3);
}

.text-shadow-lg {
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), 0 5px 15px rgba(0, 0, 0, 0.2), 0 2px 5px rgba(0, 0, 0, 0.1);
}

.text-shadow-premium {
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3)) drop-shadow(0 15px 30px rgba(67, 20, 7, 0.4));
}

/* ===== SUMMER GLASS (Glassmorphism) ===== */
.summer-glass {
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.liquid-glass {
    backdrop-filter: blur(25px) saturate(200%);
    -webkit-backdrop-filter: blur(25px) saturate(200%);
    background: rgba(0, 0, 0, 0.35);
}

.text-gradient-sunlight {
    background: linear-gradient(135deg, #FFF 0%, #FED7AA 50%, #F97316 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

::selection {
    background: rgba(249, 115, 22, 0.3);
    color: white;
}

/* ===== SCROLL PROGRESS ===== */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(to right, #EA580C, #F97316);
    z-index: 10001;
    transition: width 0.1s ease;
}

/* ===== ACETERNITY CARD ===== */
.container-scroll-card {
    will-change: transform, opacity, box-shadow;
    transition: box-shadow 0.05s linear;
}

.aceternity-img {
    will-change: transform, filter;
    transition: filter 0.05s linear;
}

.aceternity-glow {
    will-change: opacity, transform;
}

.aceternity-shimmer {
    will-change: opacity, background-position;
    z-index: 20;
}

/* ===== CARD TILT ===== */
.tilt-card {
    transition: transform 0.1s ease;
    transform-style: preserve-3d;
}

.tilt-inner {
    transform: translateZ(20px);
}

/* ===== SCROLL INDICATOR ===== */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
}

.scroll-indicator-mouse {
    width: 26px;
    height: 42px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 13px;
    position: relative;
}

.scroll-indicator-wheel {
    width: 4px;
    height: 8px;
    background: #fff;
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollWheel 2s ease-in-out infinite;
}

@keyframes scrollWheel {
    0% { opacity: 1; transform: translateX(-50%) translateY(0); }
    100% { opacity: 0; transform: translateX(-50%) translateY(16px); }
}

/* ===== REVEAL MASK ===== */
.reveal-mask {
    overflow: hidden;
    position: relative;
}

.reveal-mask::after {
    content: '';
    position: absolute;
    inset: 0;
    background: #000;
    transform-origin: right;
}

/* ===== COUNTER ANIMATION ===== */
.counter-value {
    display: inline-block;
    font-variant-numeric: tabular-nums;
}

/* ===== GRADIENT BORDER CARDS ===== */
.glow-card {
    position: relative;
    background: rgba(0,0,0,0.6);
    border-radius: 1.5rem;
    padding: 1.5rem;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (min-width: 640px) {
    .glow-card {
        border-radius: 2rem;
        padding: 2.5rem;
    }
}

.glow-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, rgba(255,255,255,0.1), transparent 50%, rgba(249, 115, 22, 0.1));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    transition: all 0.5s ease;
    pointer-events: none;
}

.glow-card:hover::before {
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.4), rgba(234, 88, 12, 0.3) 50%, rgba(255,255,255,0.1));
}

.glow-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(234, 88, 12, 0.15), 0 0 40px rgba(249, 115, 22, 0.1);
}

@media (min-width: 640px) {
    .glow-card:hover {
        transform: translateY(-8px);
    }
}

.glow-card .card-icon {
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.glow-card:hover .card-icon {
    transform: scale(1.15) rotate(-5deg);
    box-shadow: 0 0 30px rgba(249, 115, 22, 0.3);
}

/* ===== MARQUEE ===== */
.marquee-wrapper {
    overflow: hidden;
    white-space: nowrap;
}

.marquee-track {
    display: inline-flex;
    animation: marqueeScroll 25s linear infinite;
}

.marquee-track:hover {
    animation-play-state: paused;
}

@keyframes marqueeScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.marquee-item {
    display: inline-flex;
    align-items: center;
    padding: 0 1rem;
    font-size: clamp(1.2rem, 4vw, 4rem);
    font-weight: 700;
    color: transparent;
    -webkit-text-stroke: 1px rgba(255,255,255,0.3);
    transition: all 0.4s ease;
    cursor: none;
}

.marquee-item:hover {
    color: #fff;
    -webkit-text-stroke: 0;
}

.marquee-separator {
    display: inline-flex;
    align-items: center;
    padding: 0 0.75rem;
    color: #F97316;
    font-size: 0.8rem;
}

@media (min-width: 640px) {
    .marquee-item { padding: 0 2rem; }
    .marquee-separator { padding: 0 1.5rem; font-size: 1.5rem; }
}

/* ===== FOOTER LINK HOVER ===== */
.footer-link {
    position: relative;
    display: inline-block;
    font-weight: 600;
}

.footer-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: #F97316;
    transition: width 0.3s ease;
}

.footer-link:hover::after {
    width: 100%;
}

/* ===== WIZARD STEP TRANSITION ===== */
.step-content {
    opacity: 1;
    transform: translateX(0);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.step-content.slide-out-left {
    opacity: 0;
    transform: translateX(-40px);
}

.step-content.slide-in-right {
    opacity: 0;
    transform: translateX(40px);
}

/* ===== INPUT GLOW ===== */
.input-glow {
    transition: all 0.4s ease;
    border: 1px solid rgba(255,255,255,0.1);
}

.input-glow:focus {
    border-color: rgba(249, 115, 22, 0.5);
    box-shadow: 0 0 20px rgba(249, 115, 22, 0.15), 0 0 40px rgba(234, 88, 12, 0.05);
}

/* ===== FLOATING GRADIENT BLOBS ===== */
.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    pointer-events: none;
    will-change: transform;
}

/* ===== STAGGER ITEMS INITIAL STATE ===== */
.stagger-item {
    opacity: 0;
    transform: translateY(40px);
}

.reveal-up {
    opacity: 0;
    transform: translateY(40px);
}

/* ===== HORIZONTAL RULE ANIMATED ===== */
.hr-animated {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(249, 115, 22, 0.3), transparent);
    border: none;
    margin: 0;
}

/* ===== PARALLAX CONTAINER ===== */
.parallax-wrap {
    overflow: hidden;
    position: relative;
}

.parallax-img {
    will-change: transform;
    transform: scale(1.2);
}
