:root {
    --bg-color: #050505;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --accent: #6366f1; /* Deep Indigo / Purple */
    --accent-light: #8b5cf6;
    --accent-glow: rgba(139, 92, 246, 0.4);
    --bento-bg: rgba(255, 255, 255, 0.03);
    --bento-border: rgba(255, 255, 255, 0.08);
    --bento-hover: rgba(255, 255, 255, 0.05);
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
}

body {
    overflow-x: hidden;
    line-height: 1.6;
    cursor: none; /* Hide default cursor for custom cursor */
}

a, button, .magnetic {
    cursor: none; /* Keep custom cursor active */
}

/* Custom Cursor */
.cursor {
    width: 8px;
    height: 8px;
    background: var(--text-primary);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.2s, height 0.2s, background 0.2s;
}

.cursor-follower {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s, transform 0.1s;
}

.cursor.hovered {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    mix-blend-mode: difference;
}
.cursor-follower.hovered {
    opacity: 0;
}

/* Dynamic Background Glow */
.bg-glow {
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 50% 50%, rgba(99, 102, 241, 0.15), transparent 40%);
    z-index: -1;
    pointer-events: none;
    transition: transform 0.1s ease;
}

h1, h2, h3, h4 {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    line-height: 1.2;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
}

.mt-4 { margin-top: 1.5rem; }

/* Header */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    padding: 1.5rem 0;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    background: rgba(5, 5, 5, 0.6);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.logo {
    font-family: 'Outfit', sans-serif;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-primary);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.3s ease;
    display: inline-block;
}

.nav-links a:hover {
    color: var(--text-primary);
}

.section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8rem 0 4rem;
}

.section-title {
    font-size: 3.5rem;
    margin-bottom: 3rem;
    text-align: center;
    background: linear-gradient(135deg, #fff, #94a3b8);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Hero Section */
.hero-container {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-text .subtitle {
    color: var(--accent-light);
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 1rem;
}

.hero-title {
    font-size: clamp(4rem, 8vw, 6.5rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.gradient-text {
    background: linear-gradient(135deg, var(--accent-light), #38bdf8);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-desc {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 3rem;
    line-height: 1.7;
}

.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
    font-family: 'Outfit', sans-serif;
}

.primary-btn {
    background: var(--text-primary);
    color: var(--bg-color);
}

.primary-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.2);
}

.neon-btn {
    background: transparent;
    border: 1px solid var(--accent-light);
    color: var(--accent-light);
}

.neon-btn:hover {
    background: var(--accent-light);
    color: var(--bg-color);
    box-shadow: 0 0 20px var(--accent-glow);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
}

.mouse {
    width: 26px;
    height: 40px;
    border: 2px solid var(--text-secondary);
    border-radius: 20px;
    position: relative;
}

.mouse::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    background: var(--text-secondary);
    border-radius: 50%;
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0% { transform: translate(-50%, 0); opacity: 1; }
    100% { transform: translate(-50%, 15px); opacity: 0; }
}

/* Bento Grid */
.bento-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: minmax(200px, auto);
    gap: 1.5rem;
}

.bento-box {
    background: var(--bento-bg);
    border: 1px solid var(--bento-border);
    border-radius: 24px;
    padding: 2.5rem;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    text-decoration: none; /* for links */
}

.bento-box:hover {
    background: var(--bento-hover);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

.bento-span-2 { grid-column: span 2; }
.bento-span-3 { grid-column: span 3; }
.bento-span-4 { grid-column: span 4; } /* Full width */

.about-box {
    justify-content: flex-start;
}
.about-box h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}
.about-box p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.8;
}

.stat-box {
    align-items: center;
    text-align: center;
}
.stat-box .icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}
.stat-box h3 {
    font-size: 1.2rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}
.stat-box p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.project-box {
    padding: 0; /* image goes full bleed */
    justify-content: flex-end; /* content at bottom */
}

.project-img-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.project-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    opacity: 0.6;
}

.project-box:hover .project-img-wrapper img {
    transform: scale(1.05);
    opacity: 0.8;
}

.project-content {
    position: relative;
    z-index: 1;
    padding: 2rem;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0) 100%);
    width: 100%;
}

.project-content h3 {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.project-content p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Contact Links */
.contact-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.contact-item {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    color: var(--text-primary);
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
}

.text-center { text-align: center; }

.main-footer {
    padding: 3rem 0;
    color: var(--text-secondary);
    border-top: 1px solid var(--bento-border);
}

/* Scroll Animations */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 900px) {
    .bento-container {
        grid-template-columns: 1fr; /* Stack everything on small screens */
    }
    .bento-span-2, .bento-span-3, .bento-span-4 {
        grid-column: span 1;
    }
    .hero-title { font-size: 3.5rem; }
}