/* Variables */
:root {
    --bg-color: #FDFCFA;
    --text-color: #0C0B0B;
    --accent-color: #2D3748;
    --gray-light: #f5f5f5;
    --gray-medium: #666;
}

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

/* Base Styles */
body {
    font-family: system-ui, -apple-system, sans-serif;
    background: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    padding-top: 80px; /* Added to account for fixed nav */
}

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--bg-color);
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    border-bottom: 1px solid rgba(0,0,0,0.1);
}

.nav-logo {
    font-weight: 700;
    text-decoration: none;
    color: var(--text-color);
    font-size: 1.5rem;
}

.nav-menu {
    display: flex;
    gap: 2rem;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
}

/* Hero Section */
.hero {
    min-height: calc(100vh - 80px);
    background: var(--text-color);
    color: var(--bg-color);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 4rem 2rem;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

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

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    opacity: 0.8;
}

/* Section Styles */
.section {
    padding: 6rem 2rem;
}

/* Projects Grid */
.projects-grid, .projects {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.project-card, .project-item {
    background: var(--gray-light);
    padding: 2rem;
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-color);
    transition: transform 0.3s ease;
}

.project-card:hover, .project-item:hover {
    transform: translateY(-4px);
}

.project-info h2, .project-item h3 {
    margin-bottom: 1rem;
}

/* Blog Styles */
.blog-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.blog-header {
    text-align: center;
    margin-bottom: 4rem;
}

.blog-card {
    background: var(--bg-color);
    border: 1px solid var(--gray-light);
    border-radius: 8px;
    overflow: hidden;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav {
        padding: 1rem;
    }
    
    .nav-menu {
        gap: 1rem;
    }
    
    .section {
        padding: 4rem 1rem;
    }
}

/* Navigation Styles */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--bg-color);
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.nav-logo {
    font-weight: 700;
    text-decoration: none;
    color: var(--text-color);
    font-size: 1.5rem;
    transition: opacity 0.2s ease;
}

.nav-logo:hover {
    opacity: 0.8;
}

.nav-menu {
    display: flex;
    gap: 2rem;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: opacity 0.2s ease;
    position: relative;
}

.nav-menu a:hover {
    opacity: 0.8;
}

.nav-menu a.active {
    color: var(--accent-color);
}

.nav-menu a.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent-color);
}

/* Adjust main content to account for fixed nav */
body {
    padding-top: 80px; /* Height of nav */
}

.hero {
    min-height: calc(100vh - 80px);
}

@media (max-width: 768px) {
    .nav {
        padding: 1rem;
    }
    
    .nav-menu {
        gap: 1rem;
    }
    
    body {
        padding-top: 60px; /* Smaller nav height on mobile */
    }
    
    .hero {
        min-height: calc(100vh - 60px);
    }
}