/* CSS Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #e4e4e7;
    background-color: #1a1a1a;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
}

h2 {
    font-size: 2rem;
    color: #f8fafc;
}

h3 {
    font-size: 1.25rem;
    color: #e4e4e7;
}

p {
    margin-bottom: 1rem;
    font-size: 1rem;
    color: #a1a1aa;
}

a {
    color: #60a5fa;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: #93c5fd;
    text-decoration: underline;
}

/* Layout Components */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 4rem 0;
}

.section-alternate {
    background-color: #262626;
}

/* Header and Navigation */
.header {
    background-color: #1a1a1a;
    border-bottom: 1px solid #404040;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

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

.nav-brand h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #f8fafc;
    margin: 0;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    font-weight: 500;
    color: #a1a1aa;
    transition: color 0.2s ease;
}

.nav-links a:hover {
    color: #60a5fa;
    text-decoration: none;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #1a1a1a 0%, #262626 100%);
    padding: 8rem 0 6rem 0;
    margin-top: 80px; /* Account for fixed header */
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 800px;
    text-align: center;
    position: relative;
    z-index: 2;
}

.hero-headline {
    font-size: 3.5rem;
    font-weight: 700;
    color: #f8fafc;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero-subheading {
    font-size: 1.25rem;
    color: #a1a1aa;
    line-height: 1.6;
}

.hero-background-graphic {
    position: absolute;
    top: 50%;
    right: -200px;
    transform: translateY(-50%);
    z-index: 1;
    opacity: 0.1;
}

.hero-bg-image {
    width: 600px;
    height: auto;
}

.headshot {
    width: 100%;
    max-width: 300px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

/* Services Grid */
.intro-paragraph {
    font-size: 1.125rem;
    line-height: 1.7;
    margin-bottom: 3rem;
    color: #d4d4d8;
    max-width: 800px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    background: #262626;
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid #404040;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
    transition: all 0.2s ease;
}

.service-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
    border-color: #60a5fa;
}

.service-card h3 {
    margin-bottom: 1rem;
    color: #f8fafc;
}

.service-card p {
    color: #a1a1aa;
    margin-bottom: 0;
}

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

.project-card {
    background: #262626;
    border-radius: 12px;
    border: 1px solid #404040;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
    transition: all 0.2s ease;
    overflow: hidden;
}

.project-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
    border-color: #60a5fa;
}

.project-image {
    width: 100%;
    height: 200px;
    background: #1a1a1a;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid #404040;
}

.project-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
    border-radius: 4px;
}

.project-card h3 {
    margin-bottom: 1rem;
    color: #f8fafc;
    padding: 1.5rem 2rem 0 2rem;
}

.project-card p {
    color: #a1a1aa;
    margin-bottom: 1.5rem;
    padding: 0 2rem;
}

.project-links {
    padding: 0 2rem 2rem 2rem;
}

.project-link {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: #60a5fa;
    color: #1a1a1a;
    border-radius: 6px;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.2s ease;
}

.project-link:hover {
    background: #93c5fd;
    text-decoration: none;
}

/* About Section */
.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1000px;
}

.about-text p {
    font-size: 1.125rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    color: #d4d4d8;
}

.about-image {
    display: flex;
    justify-content: center;
}

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

.contact-content p {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    color: #d4d4d8;
}

.contact-info {
    padding: 2rem;
    background: #262626;
    border-radius: 12px;
    border: 1px solid #404040;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}

.contact-info p {
    margin: 0;
    font-size: 1.125rem;
    color: #e4e4e7;
}

/* Footer */
.footer {
    background-color: #0f0f0f;
    color: #d4d4d8;
    padding: 2rem 0;
    text-align: center;
    border-top: 1px solid #404040;
}

.footer p {
    margin: 0;
    color: #a1a1aa;
}

/* Responsive Design */

/* Tablet Styles */
@media (max-width: 768px) {
    .container {
        padding: 0 1.5rem;
    }
    
    .nav {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }
    
    .nav-links {
        gap: 1.5rem;
    }
    
    .hero {
        padding: 6rem 0 4rem 0;
        margin-top: 120px; /* Account for taller mobile header */
        text-align: center;
    }
    
    .hero-content {
        text-align: center;
    }
    
    .hero-headline {
        font-size: 2.5rem;
    }
    
    .hero-subheading {
        font-size: 1.125rem;
    }
    
    .hero-background-graphic {
        display: none;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .section {
        padding: 3rem 0;
    }
}

/* Mobile Styles */
@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    
    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }
    
    .hero-content {
        text-align: center;
    }
    
    .hero-headline {
        font-size: 2rem;
    }
    
    .hero-subheading {
        font-size: 1rem;
    }
    
    .about-content {
        gap: 1.5rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    .service-card,
    .project-card {
        padding: 1.5rem;
    }
    
    .contact-info {
        padding: 1.5rem;
    }
}