/* ============================================
   Reset & Variables
   ============================================ */
:root {
    --text-primary: #1a1a1a;
    --text-secondary: #666666;
    --accent: #2563eb;
    --bg-light: #f5f5f5;
    --border: #e0e0e0;
    
    --max-width: 800px;
    --spacing: 80px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-primary);
    line-height: 1.6;
    background: white;
    -webkit-font-smoothing: antialiased;
}

/* ============================================
   Typography
   ============================================ */
h1, h2, h3, h4, h5, h6 {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

h1 {
    font-size: 2.5rem;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 2rem;
}

h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

a {
    color: var(--accent);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* ============================================
   Layout
   ============================================ */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

section {
    padding: var(--spacing) 0;
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
    padding: 120px 0 var(--spacing);
    background: transparent;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../images/oregoncoast.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    opacity: 0.15;
    z-index: -1;
}

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

.hero h1 {
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ============================================
   Button
   ============================================ */
.btn {
    display: inline-block;
    padding: 14px 32px;
    background: var(--accent);
    color: white;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
}

.btn:hover {
    background: #1d4ed8;
    text-decoration: none;
}

/* ============================================
   Projects Section
   ============================================ */
.projects {
    background: var(--bg-light);
}

.project {
    background: white;
    margin-bottom: 3rem;
    border: 1px solid var(--border);
}

.project:last-child {
    margin-bottom: 0;
}

.project-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #e8e8e8;
    position: relative;
    overflow: hidden;
}

.slideshow {
    position: relative;
}

.slideshow img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.slideshow img.active {
    opacity: 1;
}

.placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 1rem;
}

.slideshow-dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.slideshow-dot {
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transition: background 0.3s;
}

.slideshow-dot.active {
    background: rgba(255, 255, 255, 0.9);
}

.project-content {
    padding: 2rem;
}

.project-content h3 {
    margin-bottom: 1rem;
}

.project-content p {
    margin-bottom: 1rem;
}

.project-tech {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 500;
    margin-top: 1.5rem;
    margin-bottom: 0;
}

.project-link {
    display: inline-block;
    margin-top: 1.5rem;
    color: var(--accent);
    font-weight: 500;
    transition: color 0.2s;
}

.project-link:hover {
    color: #1d4ed8;
    text-decoration: none;
}

/* ============================================
   About Section
   ============================================ */
.about {
    background: transparent;
}

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

.headshot {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 2rem;
    display: block;
    border: 4px solid var(--accent);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.about p {
    margin-bottom: 1.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* ============================================
   Contact Section
   ============================================ */
.contact {
    background: var(--bg-light);
}

.contact-info {
    margin-top: 2rem;
}

.contact-info p {
    font-size: 1.125rem;
    color: var(--text-primary);
}

.contact-info a {
    color: var(--accent);
    font-weight: 500;
}

/* ============================================
   Footer
   ============================================ */
.footer {
    padding: 3rem 0;
    background: transparent;
    border-top: 1px solid var(--border);
}

.footer p {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 768px) {
    :root {
        --spacing: 60px;
    }
    
    .hero {
        padding: 80px 0 60px;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1.125rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    h3 {
        font-size: 1.25rem;
    }
    
    p {
        font-size: 1rem;
    }
    
    .project-content {
        padding: 1.5rem;
    }
    
    .btn {
        padding: 12px 28px;
        font-size: 0.9375rem;
    }
}

@media (max-width: 480px) {
    :root {
        --spacing: 48px;
    }
    
    .hero {
        padding: 60px 0 48px;
    }
    
    .hero h1 {
        font-size: 1.75rem;
    }
    
    .project-content {
        padding: 1.25rem;
    }
}
