/* --- Variables & Reset --- */
:root {
    --bg-color: #0f0f11;       /* Very dark grey, almost black */
    --card-bg: #1a1a1d;        /* Slightly lighter for cards */
    --text-main: #ededed;      /* Off-white for readability */
    --text-muted: #a0a0a0;     /* Grey for secondary text */
    --accent: #3b82f6;         /* Subtle blue accent */
    --accent-hover: #60a5fa;
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --spacing-md: 2rem;
    --spacing-lg: 5rem;
}

* {
    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-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s ease;
}

ul {
    list-style: none;
}

/* --- Utilities --- */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: var(--spacing-lg) 0;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: var(--spacing-md);
    color: var(--text-main);
    position: relative;
    display: inline-block;
}

/* --- Navigation --- */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    position: sticky;
    top: 0;
    background-color: rgba(15, 15, 17, 0.9); /* Glass effect */
    backdrop-filter: blur(10px);
    z-index: 100;
}

.logo {
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: -0.02em;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.nav-links a:hover {
    color: var(--accent);
}

/* --- Hero Section --- */
.hero {
    height: 90vh; /* Takes up most of the viewport */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.headline {
    font-size: 3.5rem;
    line-height: 1.1;
    font-weight: 700;
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, #fff, #999);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subheadline {
    font-size: 1.125rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 2.5rem auto;
}

.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 4px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.primary-btn {
    background-color: var(--text-main);
    color: var(--bg-color);
}

.primary-btn:hover {
    background-color: var(--accent);
    color: white;
}

/* --- About Section --- */
.about-content {
    max-width: 800px;
    color: var(--text-muted);
    font-size: 1.1rem;
}

.about-content p {
    margin-bottom: 1rem;
}

/* --- Projects Grid --- */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.project-card {
    background-color: var(--card-bg);
    border: 1px solid #2a2a2d;
    border-radius: 8px;
    padding: 2rem;
    transition: transform 0.3s ease, border-color 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.project-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
}

.project-card h3 {
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

.project-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.tags {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.tags span {
    font-size: 0.75rem;
    background-color: rgba(255, 255, 255, 0.05);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    color: var(--text-muted);
}

.project-link {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--accent);
}

.project-link:hover {
    color: var(--accent-hover);
}

/* --- Footer --- */
footer {
    padding: 5rem 0;
    text-align: center;
    border-top: 1px solid #2a2a2d;
    margin-top: 2rem;
}

footer h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

footer p {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.email-link {
    font-size: 1.5rem;
    font-weight: 700;
    border-bottom: 2px solid var(--accent);
    padding-bottom: 5px;
}

.email-link:hover {
    color: var(--accent);
}

.socials {
    margin-top: 2.5rem;
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.socials a {
    color: var(--text-muted);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.socials a:hover {
    color: var(--text-main);
}

.copyright {
    margin-top: 4rem;
    font-size: 0.8rem;
    opacity: 0.5;
}

/* --- Mobile Responsiveness --- */
@media (max-width: 768px) {
    .headline {
        font-size: 2.5rem;
    }
    
    .nav-links {
        display: none; /* In a real app, you'd add a hamburger menu here */
    }
    
    .hero {
        height: 70vh;
    }
    
    .container {
        padding: 0 1.25rem;
    }
}