:root {
    --bg-primary: #0E0E0E;
    --bg-secondary: #1A1A1A;
    --bg-tertiary: #252525;

    --accent: #9B59F0;
    --accent-light: #B07AF5;
    --accent-dim: #7B3FD0;

    --text-primary: #F0F0F0;
    --text-secondary: #A0A0A0;
    --text-muted: #666666;

    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-2xl: 5rem;

    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-heading: 'Space Grotesk', 'Inter', sans-serif;

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 24px;

    --max-width: 1100px;
    --transition: 0.25s ease;
}

/* ===== Reset & Base ===== */

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-primary);
    color: var(--text-secondary);
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
}

/* ===== Utility ===== */

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--space-md);
}

/* ===== Navigation ===== */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background-color: rgba(14, 14, 14, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

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

.nav-logo {
    font-family: var(--font-heading);
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-primary);
    transition: color var(--transition);
}

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

.nav-links {
    display: flex;
    gap: var(--space-md);
}

.nav-links a {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    transition: color var(--transition);
}

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

/* ===== Hero Section ===== */

.hero {
    padding-top: calc(var(--space-2xl) + 60px);
    padding-bottom: var(--space-2xl);
}

.hero-name {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.1;
    margin-bottom: var(--space-sm);
}

.hero-tagline {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--accent);
    margin-bottom: var(--space-md);
}

.hero-description {
    font-size: 1.0625rem;
    max-width: 600px;
    line-height: 1.7;
}

/* ===== Projects Section ===== */

.projects {
    padding-bottom: var(--space-2xl);
}

.section-title {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-xl);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
}

/* ===== Project Card ===== */

.project-card {
    display: block;
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform var(--transition), filter var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.project-card:hover {
    transform: translateY(-4px);
    filter: brightness(1.1);
}

.project-image-wrapper {
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.project-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition);
}

.project-card:hover .project-image {
    transform: scale(1.03);
}

.project-info {
    padding: var(--space-md);
    background-color: rgba(0, 0, 0, 0.25);
}

.project-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 500;
    color: #fff;
    margin-bottom: var(--space-xs);
}

.project-meta {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.65);
    margin-bottom: var(--space-sm);
}

.project-description {
    font-size: 0.9375rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
}

/* ===== Contact Section ===== */

.contact {
    padding-bottom: var(--space-2xl);
    text-align: center;
}

.contact-text {
    font-size: 1.0625rem;
    margin-bottom: var(--space-sm);
}

.contact-email a {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--accent);
    transition: color var(--transition);
}

.contact-email a:hover {
    color: var(--accent-light);
}

/* ===== Footer ===== */

.footer {
    padding: var(--space-lg) 0;
    text-align: center;
    font-size: 0.875rem;
    color: var(--text-muted);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* ===== Responsive ===== */

@media (max-width: 768px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        padding-top: calc(var(--space-xl) + 60px);
        padding-bottom: var(--space-xl);
    }
}

@media (max-width: 480px) {
    .nav-links {
        gap: var(--space-sm);
    }

    .hero-name {
        font-size: 2rem;
    }
}
