:root {
    --bg-color: #0f172a;
    --bg-secondary: #1e293b;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --accent: #3b82f6;
    --accent-hover: #2563eb;
    --accent-glow: rgba(59, 130, 246, 0.5);
    --glass-bg: rgba(30, 41, 59, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
    
    --font-sans: 'Outfit', sans-serif;
    --font-mono: 'Space Grotesk', monospace;
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Background Blobs */
.blob-bg {
    position: fixed;
    top: -10%;
    left: -10%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, rgba(59,130,246,0.15) 0%, rgba(15,23,42,0) 70%);
    z-index: -1;
    animation: float 20s infinite alternate ease-in-out;
}

.blob-2 {
    top: auto;
    bottom: -10%;
    left: auto;
    right: -10%;
    background: radial-gradient(circle, rgba(139,92,246,0.15) 0%, rgba(15,23,42,0) 70%);
    animation-delay: -10s;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(5%, 10%) scale(1.1); }
}

/* Typography */
h1, h2, h3 {
    line-height: 1.1;
    font-weight: 700;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: var(--transition);
}

ul {
    list-style: none;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 0;
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    z-index: 100;
    transition: var(--transition);
}

.navbar.scrolled {
    padding: 1rem 0;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

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

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

.logo span {
    color: var(--accent);
}

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

.nav-links a {
    color: var(--text-main);
    font-weight: 600;
    font-size: 0.95rem;
}

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

/* Buttons */
.btn-primary {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: transparent;
    color: var(--accent) !important;
    border: 1px solid var(--accent);
    border-radius: 6px;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary:hover {
    background-color: rgba(59, 130, 246, 0.1);
    box-shadow: 0 0 15px var(--accent-glow);
    transform: translateY(-2px);
}

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

.btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    color: var(--text-main);
    font-size: 1.2rem;
}

.btn-icon:hover {
    color: var(--accent);
    border-color: var(--accent);
    transform: translateY(-2px);
}

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

section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 5rem;
}

.section-title {
    font-size: 2rem;
    margin-bottom: 3rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.section-title::after {
    content: "";
    height: 1px;
    flex-grow: 1;
    background-color: var(--glass-border);
}

/* Hero Section */
.hero-content {
    max-width: 800px;
}

.greeting {
    font-family: var(--font-mono);
    color: var(--accent);
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.hero h1 {
    font-size: clamp(3rem, 8vw, 5rem);
    color: var(--text-main);
    margin-bottom: 0.5rem;
}

.hero h2 {
    font-size: clamp(2rem, 6vw, 4rem);
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.summary {
    color: var(--text-muted);
    font-size: 1.15rem;
    max-width: 540px;
    margin-bottom: 3rem;
}

.cta-group {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

/* Projects Section */
.projects {
    padding: 6rem 0;
}

.project-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

.project-card {
    background: var(--bg-secondary);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 2rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.project-card::before {
    content: "";
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom right, rgba(255,255,255,0.05), transparent);
    opacity: 0;
    transition: var(--transition);
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px -15px rgba(0,0,0,0.7);
    border-color: rgba(59, 130, 246, 0.3);
}

.project-card:hover::before {
    opacity: 1;
}

.project-overline {
    font-family: var(--font-mono);
    color: var(--accent);
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.project-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.project-description {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.project-tech-list {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-muted);
}

.project-links {
    display: flex;
    gap: 1rem;
}

.project-links a {
    color: var(--text-muted);
    font-size: 1.25rem;
}

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

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

.contact .section-title {
    font-family: var(--font-mono);
    color: var(--accent);
    font-size: 1rem;
    margin-bottom: 1rem;
    justify-content: center;
}

.contact .section-title::after { display: none; }

.contact-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: 1.5rem;
}

.contact-desc {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

/* Footer */
footer {
    text-align: center;
    padding: 2rem;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--text-muted);
}

.social-links-footer {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 1rem;
}

.social-links-footer a {
    color: var(--text-muted);
    font-size: 1.25rem;
}

.social-links-footer a:hover {
    color: var(--accent);
}

/* Animations */
.slide-up {
    opacity: 0;
    transform: translateY(30px);
    animation: slideUp 0.8s forwards cubic-bezier(0.4, 0, 0.2, 1);
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }

@keyframes slideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none; /* Can add hamburger menu later */
    }
    
    .section-title {
        font-size: 1.5rem;
    }
}
