/* === BASE STYLES === */
html {
    scroll-behavior: smooth;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: #050505;
}

::-webkit-scrollbar-thumb {
    background-color: #52525b;
    border-radius: 10px;
    border: 3px solid transparent;
    background-clip: content-box;
}

::-webkit-scrollbar-thumb:hover {
    background-color: #71717a;
}

body {
    background-color: #050505;
    color: #EDEDED;
    overflow-x: hidden;
    cursor: none;
    /* Force hide default cursor */
}

/* === CUSTOM CURSOR === */
.cursor-dot {
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: difference;
    transition: transform 0.1s ease-out;
    transform: translate(-50%, -50%);
    display: block;
}

/* Hover effects for cursor */
a:hover~.cursor-dot,
button:hover~.cursor-dot,
input:hover~.cursor-dot,
.cursor-help:hover~.cursor-dot {
    transform: translate(-50%, -50%) scale(2.5);
}

/* Hide custom cursor ONLY on mobile devices */
@media (max-width: 768px) {
    body {
        cursor: auto;
    }

    .cursor-dot {
        display: none !important;
    }
}

/* === TYPEWRITER CURSOR === */
.cursor-blink {
    animation: blink 1s step-end infinite;
    color: #FACC15;
    font-weight: bold;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

/* === ACTIVE NAV === */
.active-nav {
    color: white !important;
    font-weight: bold;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

/* === SCROLL REVEAL ANIMATION === */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
    filter: blur(10px);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
}

/* === CARDS (SPOTLIGHT & TILT) === */
.glow-card {
    background: #0A0A0A;
    border: 1px solid #1F1F1F;
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
    transition: transform 0.1s ease-out, border-color 0.3s ease, box-shadow 0.3s ease;
    will-change: transform;
}

/* Spotlight Effect */
.glow-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(800px circle at var(--mouse-x, 0) var(--mouse-y, 0),
            rgba(255, 255, 255, 0.06),
            transparent 40%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
    z-index: 1;
}

.glow-card:hover::before {
    opacity: 1;
}

/* Border Glow via pseudo-element */
.glow-card::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(600px circle at var(--mouse-x, 0) var(--mouse-y, 0),
            rgba(255, 255, 255, 0.3),
            transparent 40%);
    opacity: 0;
    z-index: -1;
    transition: opacity 0.5s ease;
    border-radius: inherit;
}

.glow-card:hover {
    border-color: rgba(255, 255, 255, 0.1);
    transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) scale(1.02);
    box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.5);
}

.flash-highlight {
    animation: flashBorder 1.5s ease-out;
}

@keyframes flashBorder {
    0% {
        border-color: #FACC15;
        box-shadow: 0 0 20px rgba(250, 204, 21, 0.3);
    }

    100% {
        border-color: #1F1F1F;
        box-shadow: none;
    }
}

/* === LIQUID GLASS === */
.liquid-glass {
    background: rgba(10, 10, 10, 0.2);
    backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

/* === UTILITIES === */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}

.mask-sides {
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

/* === DOTTED LIST === */
ul.dotted-list li {
    position: relative;
    padding-left: 1rem;
}

ul.dotted-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.6rem;
    width: 3px;
    height: 3px;
    background-color: #3B82F6;
    border-radius: 50%;
}

/* === RESPONSIVE TIMELINE === */
.timeline-track {
    position: absolute;
    top: 6px;
    left: 0;
    right: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, #FACC15 0%, #333 40%, #1F1F1F 100%);
    z-index: 0;
}

.timeline-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #1F1F1F;
    border: 2px solid #000;
    position: relative;
    z-index: 10;
    transition: all 0.2s;
}

.timeline-dot.active {
    background: #FACC15;
    box-shadow: 0 0 10px rgba(250, 204, 21, 0.4);
}

.group:hover .timeline-dot {
    background: #fff;
    border-color: #333;
}

/* === ICON STYLES === */
.icon-sm {
    width: 14px;
    height: 14px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

/* === LOGOS FOR MARQUEE === */
.logo-marquee {
    width: auto;
    opacity: 0.5;
    filter: brightness(0) invert(1);
    transition: opacity 0.2s;
    margin-right: 4rem;
}

#pdf-embed {
    width: 100%;
    height: 100%;
    border: none;
}

/* === MAGNETIC BUTTONS === */
.magnetic-btn {
    transition: transform 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}