:root {
    /* Clean, Refined Monochrome Palette */
    --bg-primary: #050505;
    --bg-secondary: #0a0a0a;
    --bg-card: rgba(255, 255, 255, 0.03);
    --border-color: rgba(255, 255, 255, 0.08);
    
    --text-primary: #ffffff;
    --text-secondary: #888888;
    --accent: #4f46e5;
    --blob-gradient: radial-gradient(circle, rgba(79,70,229,0.3) 0%, rgba(168,85,247,0.1) 100%);
    
    /* Typography */
    --font-heading: 'Plus Jakarta Sans', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    
    /* Layout */
    --container-width: 1200px;
    --section-padding: 100px 0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: none; /* Hide default cursor to use custom one */
}

html {
    scroll-behavior: smooth;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
}

body {
    overflow-x: hidden;
}

/* Custom Cursor */
#cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 12px;
    height: 12px;
    background-color: var(--text-primary);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.2s, height 0.2s, background-color 0.2s;
    mix-blend-mode: difference;
}

#cursor.expand {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 1);
}

/* Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 40px;
}

.section {
    padding: var(--section-padding);
}

/* Typography Utilities */
h1, h2, h3, h4, .logo {
    font-family: var(--font-heading);
}

.section-header {
    margin-bottom: 3rem;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    letter-spacing: -1px;
    margin-bottom: 0.5rem;
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: transform 0.2s, background-color 0.2s, color 0.2s;
}

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

.btn-primary:hover {
    background-color: #e0e0e0;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background-color: rgba(255,255,255,0.1);
    transform: translateY(-2px);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    background: transparent;
    transition: background 0.3s ease;
}

.navbar.scrolled {
    background: rgba(5, 5, 5, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
}

.nav-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    text-decoration: none;
    color: var(--text-primary);
    letter-spacing: -0.5px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-links {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s;
}

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

.nav-links.btn-primary {
    color: var(--bg-primary);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    z-index: 1001;
}

.bar {
    width: 24px;
    height: 2px;
    background-color: var(--text-primary);
    transition: 0.3s ease;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    max-width: var(--container-width);
    margin: 0 auto;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
    position: absolute;
    top: 0;
    left: 0;
}

/* Animated Blob - Super Subtle */
.blob {
    width: 500px;
    height: 500px;
    background: var(--blob-gradient);
    border-radius: 50%;
    filter: blur(100px);
    animation: pulse 10s infinite alternate ease-in-out;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.5; }
    100% { transform: scale(1.2); opacity: 0.8; }
}

.hero-content {
    position: relative;
    z-index: 1;
    width: 100%;
}

.hero-text-wrapper {
    max-width: 800px;
}

.greeting {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.name {
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -2px;
    margin-bottom: 1.5rem;
}

.hero-content .description {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 600px;
    line-height: 1.6;
}

/* Bento Grid System */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.bento-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 2.5rem;
    transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}

.bento-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255,255,255,0.15);
    background: rgba(255,255,255,0.05);
}

.col-span-2 {
    grid-column: span 2;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.header-with-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.school-logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
    background-color: white;
    border-radius: 8px;
    padding: 4px;
}

.bento-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.badge {
    background: rgba(255,255,255,0.1);
    color: var(--text-primary);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.degree {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.highlight-text {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 2rem;
}

.card-tags span {
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
}

/* Skills Marquee */
.marquee-container {
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 2.5rem 0;
    width: 100%;
    display: flex;
    align-items: center;
}

.marquee-content {
    display: flex;
    animation: marquee 20s linear infinite;
    /* Make sure it's twice as wide so the duplicate scrolls seamlessly */
    min-width: 200%;
}

.skill-item {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding: 0 3rem;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
}

.skill-item img {
    width: 48px;
    height: 48px;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Projects */
.project-card {
    display: flex;
    flex-direction: column;
}

.project-num {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.project-cat {
    color: var(--text-primary);
    font-weight: 500;
    margin-bottom: 1rem;
}

.project-desc {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
    flex-grow: 1;
}

/* Contact */
.contact-container {
    padding-bottom: 100px;
}

.contact-card {
    text-align: center;
    padding: 4rem 2rem;
}

.contact-sub {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

/* Footer */
footer {
    text-align: center;
    padding: 3rem 0;
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* Responsive */
@media (max-width: 768px) {
    * { cursor: auto; } /* Disable custom cursor on mobile */
    #cursor { display: none; }
    
    .bento-grid {
        grid-template-columns: 1fr;
    }
    
    .col-span-2 {
        grid-column: span 1;
    }
    
    .nav-menu {
        display: none;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .hero-text-wrapper {
        text-align: center;
    }
    
    .card-header {
        flex-direction: column;
        gap: 1rem;
    }
}
