/* ==========================================
   Global Styles – Reusable for All Pages
   ========================================== */

/* Base Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    overflow-x: hidden;
    scroll-behavior: smooth;
    font-family: 'Montserrat', sans-serif;
    background-color: #020617; /* darker */
    color: #f9fafb; /* light */
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #020617;
}

::-webkit-scrollbar-thumb {
    background: #B91C1C;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #991b1b;
}

/* Custom Cursor – Only on desktop */
@media (pointer: fine) and (min-width: 769px) {
    body {
        cursor: none !important;
    }

    .cursor-dot {
        width: 10px;
        height: 10px;
        background: #ffffff;
        position: fixed;
        top: 0;
        left: 0;
        border-radius: 50%;
        pointer-events: none;
        z-index: 999999;
        mix-blend-mode: difference;
        box-shadow: 0 0 15px rgba(255, 255, 255, 0.7);
        transform: translate(-50%, -50%);
        transition: transform 0.2s ease;
    }

    .cursor-outline {
        width: 45px;
        height: 45px;
        border: 2px solid #B91C1C;
        position: fixed;
        top: 0;
        left: 0;
        border-radius: 50%;
        pointer-events: none;
        z-index: 999998;
        transform: translate(-50%, -50%);
        transition: all 0.25s ease-out;
        will-change: transform, border-color, background;
    }

    body.hovering .cursor-outline {
        transform: translate(-50%, -50%) scale(1.8);
        background: rgba(185, 28, 28, 0.15);
        border-color: #FFD700;
    }
}

/* Mobile pe default cursor */
@media (max-width: 768px) {
    .cursor-dot, .cursor-outline {
        display: none !important;
    }
}

/* Glassmorphism – Reusable classes */
.glass {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
}

.glass-nav {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* Search Animation Classes */
.search-expand {
    width: 0;
    opacity: 0;
    padding: 0;
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.27, 1.55);
}

.search-active {
    width: 160px !important;
    opacity: 1 !important;
    padding-left: 0.75rem !important;
    padding-right: 2.5rem !important;
}

@media (min-width: 768px) {
    .search-active {
        width: 240px !important;
    }
}

/* Image Hover Zoom – Reusable */
.image-hover-zoom {
    transition: transform 0.5s ease;
}

.image-hover-zoom:hover {
    transform: scale(1.05) rotate(1deg);
}

/* Highlight for Search Results */
.highlight {
    background-color: #fbbf24;
    color: #000;
    padding: 2px 5px;
    border-radius: 4px;
    font-weight: 600;
    box-shadow: 0 0 8px rgba(251, 191, 36, 0.4);
}

/* Text Selection */
::selection {
    background: #B91C1C;
    color: white;
}

/* Marquee (if used anywhere) */
.marquee-container {
    mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
    overflow: hidden;
}

.marquee-wrapper {
    display: flex;
    width: max-content;
    animation: marquee 30s linear infinite;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.glass-card { background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, 0.05);
}


.no-scrollbar::-webkit-scrollbar {display: none; }
        .glass-card { background: rgba(255, 255, 255, 0.03);
            backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, 0.05);}