:root {
    /* Color Palette - Slate/Blue Dark Theme */
    --bg-main: #020617; /* Very dark slate */
    --bg-surface: #0f172a; /* Lighter slate for cards */
    --bg-surface-hover: #1e293b;
    
    --primary-color: #3b82f6; /* Blue */
    --accent-color: #0ea5e9; /* Light blue */
    
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-tertiary: #64748b;
    
    /* Typography */
    --font-main: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    
    /* Effects */
    --gradient-primary: linear-gradient(to right, var(--primary-color), var(--accent-color));
    --card-shadow: 0 10px 30px -15px rgba(2, 6, 23, 0.7);
    --border-color: rgba(255, 255, 255, 0.05);
    
    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.645, 0.045, 0.355, 1);
    --transition-smooth: 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
}

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

html {
    scroll-behavior: smooth;
    cursor: none;
    scrollbar-width: thin;
    scrollbar-color: var(--text-tertiary) var(--bg-main);
}

::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-main);
}
::-webkit-scrollbar-thumb {
    background-color: var(--text-tertiary);
    border-radius: 10px;
}

body {
    background-color: var(--bg-main);
    color: var(--text-secondary);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
    cursor: none;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a, button, input, textarea {
    cursor: none;
}

::selection {
    background-color: rgba(59, 130, 246, 0.3);
    color: var(--text-primary);
}

/* Background Effect */
.bg-gradient-spotlight {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(circle at 50% 0%, rgba(59, 130, 246, 0.15), transparent 50%);
    pointer-events: none;
    z-index: -1;
}

/* Custom Cursor */
.cursor-dot, .cursor-outline {
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 9999;
    pointer-events: none;
}

.cursor-dot {
    width: 6px;
    height: 6px;
    background-color: var(--primary-color);
}

.cursor-outline {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(59, 130, 246, 0.5);
    transition: width 0.2s, height 0.2s, background-color 0.2s, border-color 0.2s;
}

/* Typography Utilities */
.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.mono-subtitle {
    font-family: var(--font-mono);
    color: var(--primary-color);
    font-size: 1rem;
    margin-bottom: 1rem;
}

.mono-number {
    font-family: var(--font-mono);
    color: var(--primary-color);
    font-size: clamp(1rem, 2vw, 1.25rem);
    font-weight: 400;
    margin-right: 10px;
}

/* Layout */
.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 100px 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.section-title {
    display: flex;
    align-items: center;
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 40px;
    white-space: nowrap;
}

.section-title::after {
    content: "";
    display: block;
    width: 300px;
    height: 1px;
    background-color: var(--bg-surface-hover);
    margin-left: 20px;
}

.text-center {
    justify-content: center;
}
.text-center::after {
    display: none;
}
.text-center::before {
    content: "";
    display: block;
    width: 50px;
    height: 1px;
    background-color: var(--bg-surface-hover);
    margin-right: 20px;
}

/* Navbar */
#navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 2rem 0;
    transition: var(--transition-smooth);
    background: transparent;
}

#navbar.scrolled {
    padding: 1rem 0;
    background: rgba(2, 6, 23, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px -10px rgba(2, 6, 23, 0.7);
}

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

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

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

.nav-links li {
    font-family: var(--font-mono);
    font-size: 0.85rem;
}

.nav-links a {
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition-fast);
}

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

/* Buttons */
.btn-primary, .btn-primary-sm {
    display: inline-block;
    color: var(--primary-color);
    background-color: transparent;
    border: 1px solid var(--primary-color);
    border-radius: 4px;
    text-decoration: none;
    font-family: var(--font-mono);
    transition: var(--transition-fast);
    text-align: center;
}

.btn-primary {
    padding: 1.25rem 1.75rem;
    font-size: 0.9rem;
    margin-top: 2rem;
}

.btn-primary-sm {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
}

.btn-primary:hover, .btn-primary-sm:hover {
    background-color: rgba(59, 130, 246, 0.1);
}

.btn-large {
    padding: 1.25rem 2rem;
    font-size: 1rem;
}

/* Hero Section */
.hero {
    align-items: flex-start;
    padding-top: 150px;
}

.hero-title {
    font-size: clamp(40px, 8vw, 80px);
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.1;
    margin-bottom: 10px;
}

.hero-subtitle {
    font-size: clamp(30px, 6vw, 60px);
    font-weight: 700;
    color: var(--text-secondary);
    line-height: 1.1;
    margin-bottom: 30px;
}

.hero-desc {
    max-width: 540px;
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.cta-group {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-top: 1rem;
}

.social-links {
    display: flex;
    gap: 1.5rem;
    margin-top: 2rem;
}

.social-links a {
    color: var(--text-secondary);
    font-size: 1.25rem;
    transition: var(--transition-fast);
}

.social-links a:hover {
    color: var(--primary-color);
    transform: translateY(-3px);
}

/* About Section */
.about-content {
    display: block;
    max-width: 800px;
}

.about-text p {
    margin-bottom: 15px;
    font-size: 1.05rem;
}

.skills-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(140px, 200px));
    gap: 10px;
    list-style: none;
    margin-top: 20px;
    font-family: var(--font-mono);
    font-size: 0.9rem;
}

.skills-list li {
    position: relative;
    padding-left: 20px;
}

.skills-list li::before {
    content: "▹";
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

/* Projects Section */
.project-featured {
    display: block;
    margin-bottom: 100px;
}

.project-content {
    position: relative;
    text-align: left;
    z-index: 2;
    padding: 30px;
    background-color: var(--bg-surface);
    border-radius: 4px;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-color);
    transition: var(--transition-smooth);
}

.project-content:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px -15px rgba(2, 6, 23, 0.9);
}

.project-overline {
    margin: 10px 0;
    color: var(--primary-color);
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 400;
}

.project-title {
    color: var(--text-primary);
    font-size: clamp(24px, 5vw, 28px);
    margin-bottom: 20px;
}

.spotlight-card {
    color: var(--text-secondary);
    font-size: 1.05rem;
    position: relative;
}

.project-tech-list {
    display: flex;
    flex-wrap: wrap;
    position: relative;
    z-index: 2;
    margin: 25px 0 10px;
    padding: 0;
    list-style: none;
    justify-content: flex-start;
    gap: 20px;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-tertiary);
}

.project-links {
    display: flex;
    justify-content: flex-start;
    gap: 15px;
    margin-top: 20px;
}

.project-links a {
    color: var(--text-primary);
    font-size: 1.2rem;
    transition: var(--transition-fast);
}

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

/* Contact Section */
.contact-section {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    align-items: center;
}

.contact-title {
    font-size: clamp(40px, 5vw, 60px);
    color: var(--text-primary);
    margin-bottom: 20px;
}

.contact-desc {
    margin-bottom: 50px;
}

/* Footer */
footer {
    padding: 20px;
    text-align: center;
    color: var(--text-tertiary);
    font-family: var(--font-mono);
    font-size: 0.85rem;
    margin-top: auto;
}

.footer-social {
    display: none; /* Only show on mobile */
    gap: 20px;
    justify-content: center;
    margin-bottom: 10px;
}

.footer-social a {
    color: var(--text-tertiary);
    font-size: 1.2rem;
}

/* Reveal Animation */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
    .about-content {
        max-width: 100%;
    }
    
    .project-featured {
        margin-bottom: 50px;
    }
    
    .project-content {
        padding: 20px;
    }
    
    .nav-links {
        display: none;
    }
    
    .section-title::after {
        width: 100%;
    }
    
    .footer-social {
        display: flex;
    }
    .hero .social-links {
        display: none;
    }
}
