@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=Outfit:wght@300;400;600&display=swap');

:root {
    --bg-color: #050505;
    --text-color: #ffffff;
    --accent-color: #f96d00;
    --accent-glow: rgba(249, 109, 0, 0.4);
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
}

/* HIDE DEFAULT CURSOR ONLY WHEN CUSTOM IS ACTIVE (managed by JS) */
body.custom-cursor-active,
body.custom-cursor-active *,
body.custom-cursor-active *::before,
body.custom-cursor-active *::after {
    cursor: none !important;
}

/* RESTORE DEFAULT CURSOR FOR SAFETY */
body,
html,
a,
button,
[role="button"],
.block-3,
.glass-card {
    cursor: auto !important;
}

.cursor-dot,
.cursor-ring {
    pointer-events: none !important;
    display: block !important;
    position: fixed;
    top: 0;
    left: 0;
}

/* Custom Cursor */
.cursor-dot {
    width: 6px;
    height: 6px;
    background-color: var(--accent-color);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 2147483647 !important;
    /* Max value */
    transform: translate(-50%, -50%);
    opacity: 1 !important;
    /* Force visible */
    transition: opacity 0.3s ease;
}

.cursor-ring {
    width: 30px;
    height: 30px;
    border: 2px solid var(--accent-color);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 2147483647 !important;
    /* Max value */
    transform: translate(-50%, -50%);
    opacity: 1 !important;
    /* Force visible */
    transition: width 0.3s, height 0.3s, background-color 0.3s, border-color 0.3s, opacity 0.3s ease;
}

.cursor-hover {
    width: 60px;
    height: 60px;
    background-color: var(--accent-glow);
    border-color: transparent;
}

#starfield {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    opacity: 0.6;
    /* Sightly more visible */
}

/* Hero Typography Refinement */
#dynamic-hero-text {
    line-height: 1.1;
    letter-spacing: -0.02em;
    pointer-events: none !important;
    /* Block all interactions */
    user-select: none;
    transform: none !important;
    /* Force static */
}

.hero-prefix {
    font-family: 'Instrument Serif', serif;
    font-style: italic;
    font-weight: 400;
    font-size: 0.8em;
    display: block;
    margin-bottom: 0.2em;
    opacity: 0.9;
    background: none;
    -webkit-text-fill-color: #fff;
}

.hero-subject {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    display: block;
}

/* Ensure glass-card outline is visible */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1.5px solid var(--glass-border) !important;
    border-radius: 20px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    transition: transform 0.1s ease-out, border-color 0.3s, box-shadow 0.3s;
    overflow: hidden;
}

/* Modern Sections */
.hero-minimal {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at center, rgba(249, 109, 0, 0.05) 0%, transparent 70%);
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    transition: transform 0.1s ease-out, border-color 0.3s;
}

.glass-card:hover {
    border-color: var(--accent-color) !important;
    box-shadow: 0 0 20px var(--accent-glow), 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

/* Project Cards Overhaul */
.block-3 {
    margin-bottom: 30px;
    overflow: hidden;
    position: relative;
    transform-style: preserve-3d;
}

.block-3 .image {
    border-radius: 15px;
    transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.block-3 .text {
    padding: 2rem !important;
    background: transparent !important;
}

/* Scroll Progress Bar */
.KW_progressContainer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: transparent;
    z-index: 9999;
}

.KW_progressBar {
    height: 100%;
    background: var(--accent-color);
    width: 0%;
    box-shadow: 0 0 10px var(--accent-glow);
}

/* Hide cursor on mobile */
@media (max-width: 768px) {

    .cursor-dot,
    .cursor-ring {
        display: none;
    }

    body {
        cursor: auto;
    }
}