:root {
    --bg: #050505;
    --primary: #00ff84;
    --primary-glow: rgba(0, 255, 132, 0.4);
    --glass: rgba(255, 255, 255, 0.03);
    --border: rgba(255, 255, 255, 0.1);
}

/* Reset & Base */
* { margin: 0; padding: 0; box-sizing: border-box; }

/* Desktop Cursor - Hidden on Mobile via JS or Media Query */
.cursor { width: 8px; height: 8px; background: var(--primary); border-radius: 50%; position: fixed; z-index: 999; pointer-events: none; }
.cursor-f { width: 40px; height: 40px; border: 1px solid var(--primary); border-radius: 50%; position: fixed; z-index: 998; pointer-events: none; transition: 0.1s; }

body {
    background-color: var(--bg);
    color: white;
    font-family: 'Space Grotesk', sans-serif;
    overflow-x: hidden;
    line-height: 1.5;
}

/* Navigation */
nav { 
    display: flex; justify-content: space-between; align-items: center;
    padding: 20px 5%; position: fixed; width: 100%; top: 0; z-index: 100; 
    backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); 
}
.logo { font-size: 1.5rem; font-weight: 700; }
.logo span { color: var(--primary); }
.nav-links a { text-decoration: none; color: white; margin-left: 20px; font-size: 0.9rem; }

/* Hero Section */
.hero { 
    min-height: 100vh; display: flex; align-items: center; justify-content: center; 
    text-align: center; position: relative; padding: 0 20px;
}
.hero-bg-text { position: absolute; font-size: 20vw; font-weight: 900; color: rgba(255,255,255,0.02); z-index: -1; pointer-events: none; }
h1 { font-size: clamp(2.5rem, 8vw, 5rem); line-height: 1.1; margin-bottom: 20px; font-weight: 700; }
.glow-text { color: var(--primary); text-shadow: 0 0 30px var(--primary-glow); }
p { max-width: 600px; margin: 0 auto 30px; color: #aaa; font-size: 1.1rem; }

.main-btn {
    background: var(--primary); border: none; padding: 15px 40px; 
    font-weight: 700; border-radius: 5px; cursor: pointer; transition: 0.3s;
}

/* Bento Grid System */
.work { padding: 80px 5%; }
.section-title { font-size: 2.5rem; margin-bottom: 40px; text-align: center; }

.bento-grid { 
    display: grid; 
    grid-template-columns: repeat(3, 1fr); 
    gap: 20px; 
    /* Removed fixed height so it expands on mobile */
}

.bento-card { 
    background: var(--glass); border: 1px solid var(--border); 
    border-radius: 20px; position: relative; overflow: hidden; 
    padding: 30px; display: flex; align-items: flex-end; 
    min-height: 250px; transition: 0.5s; 
}
.large { grid-column: span 2; }

/* Hover effect */
.card-glow { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: radial-gradient(circle at var(--x) var(--y), var(--primary-glow), transparent 70%); opacity: 0; pointer-events: none; }
.bento-card:hover .card-glow { opacity: 1; }

/* -----------------------------------------
   MOBILE RESPONSIVE FIXES
----------------------------------------- */
@media (max-width: 992px) {
    .bento-grid {
        grid-template-columns: 1fr 1fr; /* 2 columns for tablets */
    }
}

@media (max-width: 768px) {
    /* Hide custom cursor on mobile as it causes lag/bugs on touch */
    .cursor, .cursor-f { display: none; }
    * { cursor: auto !important; }

    nav { padding: 15px 5%; }
    .nav-links { display: none; } /* Simplified mobile nav */

    .hero-bg-text { display: none; }
    h1 { font-size: 2.8rem; }
    
    .bento-grid {
        grid-template-columns: 1fr; /* 1 column for phones */
    }
    .large { grid-column: span 1; } /* Reset large cards to normal */
    
    .bento-card {
        min-height: 200px;
        padding: 20px;
    }

    .modal-content {
        width: 90%;
        margin: 20% auto;
        padding: 20px;
    }
}