/* ============================================
   RESET & BASE STYLES
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Minimalist Color Palette */
    --primary: hsl(0, 0%, 98%);
    --accent: hsl(0, 0%, 20%);
    
    --background: hsl(0, 0%, 100%);
    --surface: hsl(0, 0%, 98%);
    --border: hsl(0, 0%, 90%);
    --border-hover: hsl(0, 0%, 20%);
    
    --text-primary: hsl(0, 0%, 10%);
    --text-secondary: hsl(0, 0%, 45%);
    --text-muted: hsl(0, 0%, 60%);
    
    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-2xl: 4rem;
    
    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-heading: 'Space Grotesk', var(--font-primary);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background: var(--background);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* ============================================
   NAVIGATION
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--background);
    border-bottom: 1px solid var(--border);
    transition: all 0.3s ease;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--space-md);
    padding-bottom: var(--space-md);
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
}

.logo-image {
    height: 40px;
    width: auto;
    display: block;
}

.logo-text {
    color: var(--text-primary);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: var(--space-xl);
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: width 0.3s ease;
}

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

.nav-links a:hover::after {
    width: 100%;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding-top: 80px;
    border-bottom: 1px solid var(--border);
}

.hero-background {
    position: absolute;
    inset: 0;
    z-index: -1;
}

.gradient-bg {
    display: none;
}

.grid-overlay {
    display: none;
}

.hero-container {
    position: relative;
    z-index: 1;
}

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

.label {
    display: inline-block;
    padding: var(--space-xs) var(--space-md);
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: var(--space-xl);
    animation: fadeInUp 0.6s ease;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 8vw, 5rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: var(--space-md);
    animation: fadeInUp 0.6s ease 0.1s backwards;
    color: var(--text-primary);
}

.gradient-text {
    color: var(--accent);
    display: inline-block;
    position: relative;
}

.gradient-text::after {
    content: '';
    position: absolute;
    bottom: 0.1em;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--accent);
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--text-secondary);
    margin-bottom: var(--space-2xl);
    animation: fadeInUp 0.6s ease 0.2s backwards;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.6s ease 0.3s backwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: 1rem 2rem;
    border-radius: 0;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid var(--accent);
    font-size: 1rem;
}

.btn-primary {
    background: var(--accent);
    color: white;
}

.btn-primary:hover {
    background: transparent;
    color: var(--accent);
}

.btn-secondary {
    background: transparent;
    color: var(--accent);
}

.btn-secondary:hover {
    background: var(--accent);
    color: white;
}

.scroll-indicator {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: var(--text-muted);
    font-size: 0.875rem;
    animation: bounce 2s infinite;
    z-index: 1;
    cursor: pointer;
}

.scroll-arrow {
    width: 20px;
    height: 20px;
    border-right: 1px solid var(--text-muted);
    border-bottom: 1px solid var(--text-muted);
    transform: rotate(45deg);
    margin: var(--space-xs) auto 0;
}

@keyframes bounce {
    0%, 100% { transform: translate(-50%, 0); }
    50% { transform: translate(-50%, 8px); }
}

/* Adjust spacing on shorter screens */
@media (max-height: 900px) {
    .hero {
        padding-bottom: 6rem;
    }
    
    .hero-subtitle {
        margin-bottom: var(--space-xl);
    }
    
    .scroll-indicator {
        bottom: 2rem;
        font-size: 0.75rem;
    }
    
    .scroll-arrow {
        width: 16px;
        height: 16px;
    }
}

/* ============================================
   SECTIONS
   ============================================ */
section {
    padding: var(--space-2xl) 0;
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-2xl);
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    margin-bottom: var(--space-sm);
    color: var(--text-primary);
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 1.125rem;
}

/* ============================================
   PROJECTS
   ============================================ */
.projects {
    background: var(--surface);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--space-xl);
}

.project-card {
    position: relative;
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: 0;
    padding: var(--space-xl);
    transition: all 0.3s ease;
}

.project-card:hover {
    border-color: var(--accent);
}

.project-card.featured {
    border: 2px solid var(--accent);
}

.project-badge {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    padding: 0.375rem 0.75rem;
    background: var(--accent);
    border-radius: 0;
    font-size: 0.75rem;
    font-weight: 600;
    color: white;
}

.project-icon {
    font-size: 3rem;
    margin-bottom: var(--space-md);
}

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

.project-description {
    color: var(--text-secondary);
    margin-bottom: var(--space-md);
    line-height: 1.7;
}

.project-highlights {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    color: var(--text-secondary);
    font-size: 0.9375rem;
}

.highlight-icon {
    font-size: 1.25rem;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-xs);
    margin-bottom: var(--space-lg);
}

.tech-tag {
    padding: 0.375rem 0.75rem;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 0;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all 0.3s ease;
}

.tech-tag:hover {
    border-color: var(--accent);
    color: var(--accent);
}

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

.project-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: 0.75rem 1.5rem;
    background: var(--accent);
    color: white;
    text-decoration: none;
    border-radius: 0;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 0.9375rem;
    border: 2px solid var(--accent);
}

.project-link:hover {
    background: transparent;
    color: var(--accent);
}

.project-link.secondary {
    background: transparent;
    color: var(--accent);
    border: 2px solid var(--border);
}

.project-link.secondary:hover {
    border-color: var(--accent);
}

.project-status {
    margin-top: var(--space-md);
}

.status-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 0;
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* ============================================
   ABOUT
   ============================================ */
.about {
    background: var(--background);
    border-bottom: 1px solid var(--border);
}

.about-container {
    max-width: 900px;
}

.about-content {
    text-align: center;
}

.about-text {
    color: var(--text-secondary);
    font-size: 1.125rem;
    line-height: 1.8;
    margin-bottom: var(--space-md);
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: var(--space-lg);
    margin-top: var(--space-2xl);
}

.stat-item {
    padding: var(--space-lg);
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 0;
    transition: all 0.3s ease;
}

.stat-item:hover {
    border-color: var(--accent);
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: var(--space-xs);
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.9375rem;
}

/* ============================================
   SKILLS
   ============================================ */
.skills {
    background: var(--surface);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-xl);
}

.skill-category {
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: 0;
    padding: var(--space-xl);
    transition: all 0.3s ease;
}

.skill-category:hover {
    border-color: var(--accent);
}

.skill-category-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: var(--space-md);
    color: var(--text-primary);
}

.skill-items {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.skill-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-sm);
    background: transparent;
    border-left: 2px solid transparent;
    transition: all 0.3s ease;
}

.skill-item:hover {
    border-left-color: var(--accent);
    padding-left: var(--space-md);
}

.skill-name {
    color: var(--text-primary);
    font-weight: 500;
}

.skill-proof {
    padding: 0.25rem 0.625rem;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 0;
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* ============================================
   CONTACT
   ============================================ */
.contact {
    background: var(--background);
}

.contact-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.contact-text {
    color: var(--text-secondary);
    font-size: 1.125rem;
    margin-bottom: var(--space-2xl);
}

.contact-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-lg);
}

.contact-card {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-lg);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 0;
    text-decoration: none;
    transition: all 0.3s ease;
}

.contact-card:hover {
    border-color: var(--accent);
}

.contact-icon {
    font-size: 2rem;
}

.contact-info {
    text-align: left;
}

.contact-label {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}

.contact-value {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1rem;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--surface);
    padding: var(--space-xl) 0;
    border-top: 1px solid var(--border);
}

.footer-content {
    text-align: center;
    color: var(--text-muted);
}

.footer-subtitle {
    font-size: 0.875rem;
    margin-top: var(--space-xs);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .nav-links {
        gap: var(--space-md);
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .about-stats {
        grid-template-columns: 1fr;
    }
    
    .contact-links {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--space-md);
    }
    
    .nav-links {
        display: none;
    }
    
    .project-card {
        padding: var(--space-lg);
    }
}
