:root {
    --radius-md: 14px;
    --radius-lg: 24px;
}

body {
    font-family: 'DM Sans', sans-serif;
    background-color: #f4f4f5;
    color: #0f0f0f;
    overflow-x: hidden;
}

/* Hide default cursor on desktop */
@media (min-width: 768px) {
    body {
        cursor: none;
    }
}

h1,
h2,
h3,
h4,
.font-display {
    font-family: 'DM Sans', sans-serif;
}

/* Serif Accent Font */
/* Serif Accent Font */
.font-serif-display {
    font-family: "Instrument Serif", serif !important;
    font-style: italic;
}

/* Custom Cursor Styles */
.cursor-dot {
    width: 8px;
    height: 8px;
    background-color: white;
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 9999;
    pointer-events: none;
    mix-blend-mode: difference;
}

.cursor-outline {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 9998;
    pointer-events: none;
    mix-blend-mode: difference;
    transition: width 0.3s, height 0.3s, background-color 0.3s;
}

/* Hover State for Cursor (Expands and becomes solid) */
body.hovering .cursor-dot {
    opacity: 0;
}

body.hovering .cursor-outline {
    width: 80px;
    height: 80px;
    background-color: rgba(255, 255, 255, 1);
    border-color: transparent;
    mix-blend-mode: difference;
}

/* Subtle Grid Background */
.bg-grid {
    background-size: 60px 60px;
    background-image:
        linear-gradient(to right, rgba(0, 0, 0, 0.04) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(0, 0, 0, 0.04) 1px, transparent 1px);
}

/* Utility classes */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}

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

.pill-tag {
    padding: 0.5rem 1.25rem;
    /* px-5 py-2 */
    border: 1px solid #e5e7eb;
    /* border border-gray-200 */
    border-radius: 9999px;
    /* rounded-full */
    font-size: 0.875rem;
    /* text-sm */
    line-height: 1.25rem;
    font-weight: 500;
    /* font-medium */
    transition: all 300ms cubic-bezier(0.4, 0, 0.2, 1);
    /* transition-all duration-300 */
    cursor: default;
    /* cursor-default */
    background-color: rgba(255, 255, 255, 0.5);
    /* bg-white/50 */
    backdrop-filter: blur(4px);
    /* backdrop-blur-sm */
    -webkit-backdrop-filter: blur(4px);
}

.pill-tag:hover {
    background-color: #000000;
    /* hover:bg-black */
    color: #ffffff;
    /* hover:text-white */
}

/* Marquee Animation */
.marquee-container {
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.marquee-content {
    display: flex;
    gap: 1.5rem;
    width: max-content;
}

/* Loading Screen */
#loader {
    transition: transform 0.8s cubic-bezier(0.76, 0, 0.24, 1);
}

/* Project Stacking */
.project-card-wrapper {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1000px;
}

.project-card-inner {
    transform-origin: center top;
    will-change: transform, filter;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}



/* Experience Reveal Animation */
.exp-details {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.5s ease-out;
}

.exp-details>div {
    overflow: hidden;
}

.experience-item:hover .exp-details {
    grid-template-rows: 1fr;
}

/* Lightbox Open State - Force default cursor and hide custom cursor */
body.lightbox-open {
    cursor: auto !important;
    overflow: hidden;
}

body.lightbox-open .cursor-dot,
body.lightbox-open .cursor-outline {
    display: none !important;
}