@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    --accent: 245, 158, 11;
    /* amber-500 */
    --accent-glow: rgba(245, 158, 11, 0.4);
    --navy-brand: #112F55;
}

body {
    font-family: 'Inter', sans-serif;
    scroll-behavior: auto;
    /* Managed by Lenis */
    overflow-x: hidden;
    cursor: none;
    /* Hide default cursor for custom cursor */
}

a,
button,
input,
textarea,
[data-magnetic] {
    cursor: none;
}

/* Glassmorphism Classes */
.glass-nav {
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.glass {
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.glass-card {
    background: rgba(30, 41, 59, 0.5);
    /* Solid semi-transparent background */
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: none;
    /* Removed blur to save GPU */
    -webkit-backdrop-filter: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
    /* Hardware acceleration */
}

.glass-card:hover {
    background: rgba(30, 41, 59, 0.7);
    border-color: rgba(245, 158, 11, 0.5);
    transform: translateY(-8px);
    /* slightly more lift */
    box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.7);
}

.project-card {
    cursor: pointer;
}

.project-card .project-img {
    transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-card:hover .project-img {
    filter: brightness(1.1) contrast(1.05);
}

/* Custom Gradients */
.bg-gradient-tech {
    background: radial-gradient(circle at top left, rgba(17, 47, 85, 0.3), transparent 40%),
        radial-gradient(circle at bottom right, rgba(245, 158, 11, 0.1), transparent 40%);
}

.text-gradient {
    background: linear-gradient(to right, #f59e0b, #fbbf24);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Hero Glow */
.hero-glow {
    position: absolute;
    width: 40vw;
    height: 40vw;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    filter: blur(60px);
    z-index: -1;
    pointer-events: none;
}

/* Bento Box Grid */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: minmax(150px, auto);
    gap: 1.5rem;
}

@media (max-width: 1024px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .bento-grid {
        grid-template-columns: 1fr;
    }
}

/* Custom Cursor */
.cursor-dot {
    width: 8px;
    height: 8px;
    background: #f59e0b;
    position: fixed;
    top: 0;
    left: 0;
    border-radius: 50%;
    z-index: 9999;
    pointer-events: none;
    will-change: transform;
    transform: translate(-50%, -50%);
    /* For quickSetter compatibility */
}

.cursor-ring {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(245, 158, 11, 0.5);
    position: fixed;
    top: 0;
    left: 0;
    border-radius: 50%;
    z-index: 9998;
    pointer-events: none;
    transition: width 0.3s, height 0.3s, background 0.3s, border 0.3s;
    will-change: transform;
    transform: translate(-50%, -50%);
    /* For quickSetter compatibility */
}

.cursor-ring.active {
    width: 60px;
    height: 60px;
    background: rgba(245, 158, 11, 0.1);
    border-color: rgba(245, 158, 11, 0.8);
}

/* Preloader */
#preloader {
    position: fixed;
    inset: 0;
    background: #020617;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 1rem;
}

.preloader-text {
    font-size: 2rem;
    font-weight: 800;
    color: white;
    overflow: hidden;
}

.preloader-text span {
    display: inline-block;
}

.preloader-bar {
    width: 200px;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.preloader-progress {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background: #f59e0b;
}

/* Scroll Progress */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(to right, #f59e0b, #fbbf24);
    z-index: 101;
    width: 0%;
}

/* Animation Utilities */
.reveal {
    opacity: 0;
    transform: translateY(30px);
}

@media (max-width: 1024px) {

    body,
    a,
    button,
    input,
    textarea {
        cursor: auto !important;
    }

    .cursor-dot,
    .cursor-ring {
        display: none !important;
    }
}