/* 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, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: hsl(160, 50%, 12%);
    background-color: hsl(40, 30%, 95%);
}

/* Typography */
h1, h2, h3 {
    font-family: 'Georgia', serif;
    line-height: 1.2;
    color: hsl(160, 40%, 16%);
}

h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: hsl(180, 40%, 30%);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: hsl(33, 54%, 65%);
}

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

/* Buttons */
button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    padding: 0.75rem 2rem;
    font-size: 1rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: hsl(180, 40%, 30%);
    color: hsl(40, 30%, 95%);
}

.btn-primary:hover {
    background-color: hsl(180, 40%, 25%);
}

.btn-accent {
    background-color: hsl(33, 54%, 65%);
    color: hsl(160, 50%, 12%);
    font-weight: 600;
}

.btn-accent:hover {
    background-color: hsl(33, 54%, 55%);
}

.btn-outline {
    background-color: rgba(255, 255, 255, 0.1);
    color: hsl(40, 30%, 95%);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-outline:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.full-width {
    width: 100%;
}

/* Navigation */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.3s ease;
}

#navbar.scrolled {
    background-color: rgba(245, 241, 234, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

#navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#navbar .logo {
    font-family: 'Georgia', serif;
    font-size: 1.5rem;
    background: none;
    color: white;
    padding: 0;
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

#navbar .logo-icon {
    width: 32px;
    height: 32px;
}

#navbar.scrolled .logo {
    color: hsl(160, 40%, 16%);
}

#navbar .logo:hover {
    color: hsl(180, 40%, 30%);
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links button {
    background: none;
    color: white;
    padding: 0.5rem 1rem;
    transition: color 0.3s ease;
}

#navbar.scrolled .nav-links button {
    color: hsl(160, 50%, 12%);
}

.nav-links button:not(.btn-primary):hover {
    color: hsl(180, 40%, 30%);
}

/* Hero Section */
#hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    inset: 0;
    background-image: url('images/gallery/16-rainforest-canopy.jpg');
    background-size: cover;
    background-position: center;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom right,
        hsla(160, 40%, 16%, 0.85),
        hsla(180, 40%, 30%, 0.75),
        hsla(160, 40%, 16%, 0.85));
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 900px;
    animation: fadeIn 1s ease-in;
}

.hero-content h1 {
    color: hsl(40, 30%, 95%);
    font-size: 4rem;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: hsla(40, 30%, 95%, 0.9);
    margin-bottom: 1rem;
}

.hero-description {
    font-size: 1.125rem;
    color: hsla(40, 30%, 95%, 0.8);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    background: none;
    color: hsla(40, 30%, 95%, 0.6);
    padding: 0;
    animation: bounce 2s infinite;
}

.scroll-indicator:hover {
    color: hsl(40, 30%, 95%);
}

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

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* Section Styles */
section {
    padding: 6rem 0;
    position: relative;
}

#work {
    position: relative;
    overflow: hidden;
}

.section-background {
    position: absolute;
    inset: 0;
    background-image: url('images/gallery/08-calm-lake.jpg');
    background-size: cover;
    background-position: center;
}

.section-background + .container {
    position: relative;
    z-index: 10;
}

#work::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom right,
        hsla(40, 30%, 95%, 0.95),
        hsla(40, 30%, 95%, 0.9),
        hsla(40, 30%, 95%, 0.95));
}

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

.section-description {
    font-size: 1.125rem;
    color: hsla(160, 50%, 12%, 0.7);
    max-width: 800px;
    margin: 1rem auto 0;
}

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

.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    max-width: 1100px;
    margin: 0 auto;
}

/* Card */
.card {
    background: white;
    border-radius: 0.75rem;
    padding: 2rem;
    box-shadow: 0 4px 20px hsla(160, 40%, 16%, 0.1);
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 8px 30px hsla(160, 40%, 16%, 0.15);
    transform: translateY(-2px);
}

.icon-circle {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background-color: hsla(180, 40%, 30%, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: hsl(180, 40%, 30%);
}

/* Steps */
.steps {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.step {
    text-align: center;
    position: relative;
}

.step-number {
    font-size: 3rem;
    font-family: 'Georgia', serif;
    color: hsla(33, 54%, 65%, 0.3);
    margin-bottom: 1rem;
}

.step h3 {
    margin-bottom: 0.75rem;
}

.step p {
    font-size: 0.875rem;
    color: hsla(160, 50%, 12%, 0.7);
}

/* Capabilities */
#capabilities {
    position: relative;
}

#capabilities::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url('images/gallery/10-eucalyptus-avenue.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.15;
}

#capabilities > .container {
    position: relative;
    z-index: 10;
}

.capability-card {
    border-radius: 0.75rem;
    overflow: hidden;
    position: relative;
    padding: 0.5rem;
    transition: all 0.3s ease;
}

.capability-card:hover {
    box-shadow: 0 8px 30px hsla(160, 40%, 16%, 0.15);
    transform: translateY(-2px);
}

.capability-content {
    background: hsla(0, 0%, 100%, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 0.5rem;
    padding: 2rem;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.capability-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.icon-box {
    padding: 0.75rem;
    background-color: hsla(160, 40%, 16%, 0.1);
    border-radius: 0.5rem;
    color: hsl(160, 40%, 16%);
}

.capability-content p {
    color: hsla(160, 50%, 12%, 0.7);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: auto;
}

.tag {
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    background-color: hsla(180, 40%, 30%, 0.2);
    color: hsl(160, 50%, 12%);
    border-radius: 0.25rem;
}

.industries {
    max-width: 800px;
    margin: 3rem auto 0;
    text-align: center;
}

.industries p {
    font-size: 1.125rem;
    color: hsla(160, 50%, 12%, 0.7);
    font-style: italic;
}

/* Contact */
#contact {
    position: relative;
    overflow: hidden;
}

.contact-background {
    position: absolute;
    inset: 0;
    background-image: url('images/gallery/27-storm-clouds.jpg');
    background-size: cover;
    background-position: center;
}

#contact::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom right,
        hsla(160, 40%, 16%, 0.9),
        hsla(180, 40%, 30%, 0.85),
        hsla(160, 40%, 16%, 0.9));
    z-index: 1;
}

#contact .container {
    position: relative;
    z-index: 10;
}

#contact .section-header h2,
#contact .section-header p {
    color: hsl(40, 30%, 95%);
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-info h3 {
    font-size: 1.5rem;
    color: hsl(40, 30%, 95%);
    margin-bottom: 2rem;
}

.contact-items {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.contact-item svg {
    color: hsl(33, 54%, 65%);
    flex-shrink: 0;
}

.contact-label {
    font-weight: 600;
    color: hsl(40, 30%, 95%);
    margin-bottom: 0.25rem;
}

.contact-item a,
.contact-item p:not(.contact-label) {
    color: hsla(40, 30%, 95%, 0.8);
}

.contact-item a:hover {
    color: hsl(33, 54%, 65%);
}

/* Form */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: hsl(40, 30%, 95%);
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid hsla(40, 30%, 95%, 0.3);
    border-radius: 0.5rem;
    background-color: hsla(40, 30%, 95%, 0.1);
    color: hsl(40, 30%, 95%);
    font-family: inherit;
    font-size: 1rem;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: hsl(33, 54%, 65%);
}

.form-group textarea {
    resize: vertical;
}

.form-message {
    padding: 1.5rem;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
}

.form-message.success {
    background-color: hsla(160, 50%, 40%, 0.2);
    border: 1px solid hsl(160, 50%, 40%);
    color: hsl(40, 30%, 95%);
}

.form-message.error {
    background-color: hsla(0, 50%, 40%, 0.2);
    border: 1px solid hsl(0, 50%, 50%);
    color: hsl(40, 30%, 95%);
}

/* Footer */
footer {
    padding: 3rem 0;
    background-color: hsl(160, 40%, 16%);
    color: hsl(40, 30%, 95%);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-left p {
    font-size: 0.875rem;
}

.footer-tagline {
    font-size: 0.75rem;
    color: hsla(40, 30%, 95%, 0.6);
}

.footer-brand {
    font-size: 0.875rem;
    font-family: 'Georgia', serif;
    color: hsla(40, 30%, 95%, 0.6);
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social a {
    color: hsla(40, 30%, 95%, 0.7);
}

.footer-social a:hover {
    color: hsl(40, 30%, 95%);
}

/* Tech Stack */
#tech-stack {
    background-color: hsla(160, 40%, 16%, 0.05);
}

.tech-groups {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.tech-group {
    text-align: center;
}

.tech-group h3 {
    font-size: 0.875rem;
    font-weight: 600;
    color: hsl(180, 40%, 30%);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
}

.tech-tag {
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
    background-color: hsla(40, 30%, 95%, 0.5);
    border: 1px solid hsl(40, 20%, 85%);
    border-radius: 0.5rem;
    color: hsl(160, 50%, 12%);
}

/* Notable Firsts */
#firsts {
    position: relative;
    overflow: hidden;
}

.firsts-background {
    position: absolute;
    inset: 0;
    background-image: url('images/gallery/01-harbor-sunrise.jpg');
    background-size: cover;
    background-position: center;
}

#firsts::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom right,
        hsla(40, 30%, 95%, 0.95),
        hsla(40, 30%, 95%, 0.9),
        hsla(40, 30%, 95%, 0.95));
    z-index: 1;
}

#firsts .container {
    position: relative;
    z-index: 10;
}

.section-icon {
    display: inline-flex;
    margin-bottom: 1rem;
    color: hsl(33, 54%, 65%);
}

.firsts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
}

.first-item {
    text-align: center;
}

.first-year {
    font-size: 2.5rem;
    font-family: 'Georgia', serif;
    color: hsl(33, 54%, 65%);
    margin-bottom: 1rem;
}

.first-item p {
    color: hsla(160, 50%, 12%, 0.8);
    line-height: 1.6;
}

/* Projects */
#projects {
    background-color: hsl(40, 30%, 95%);
}

.project-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.project-card > p {
    color: hsla(160, 50%, 12%, 0.7);
    margin-bottom: 1rem;
}

.project-status {
    font-size: 0.875rem;
    color: hsl(33, 54%, 65%);
    font-weight: 600;
    font-style: italic;
    margin-top: 1rem;
    margin-bottom: 0;
}

/* About */
#about {
    background: linear-gradient(180deg, hsl(40, 30%, 95%) 0%, hsl(180, 20%, 92%) 100%);
}

.about-card {
    max-width: 1000px;
    margin: 0 auto;
    background: white;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 8px 30px hsla(160, 40%, 16%, 0.15);
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 0;
}

.about-image {
    position: relative;
    background: linear-gradient(135deg, hsl(160, 40%, 16%) 0%, hsl(180, 40%, 30%) 100%);
    padding: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-image-overlay {
    position: absolute;
    inset: 0;
    background-image: url('images/gallery/01-harbor-sunrise.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.2;
}

.about-photo {
    position: relative;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 8px 30px hsla(0, 0%, 0%, 0.3);
    background-image: url('images/gallery/01-harbor-sunrise.jpg');
    background-size: cover;
    background-position: center 30%;
}

.about-content {
    padding: 3rem;
}

.about-content p {
    color: hsla(160, 50%, 12%, 0.8);
    line-height: 1.8;
    margin-bottom: 1.25rem;
}

.about-content p:last-child {
    margin-bottom: 0;
}

/* Responsive */
@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 2rem;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.125rem;
    }

    .nav-links button:not(.btn-primary) {
        display: none;
    }

    .steps {
        grid-template-columns: 1fr;
    }

    .grid-2,
    .grid-3 {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .about-card {
        grid-template-columns: 1fr;
    }

    .about-image {
        padding: 2rem;
    }

    .about-content {
        padding: 2rem;
    }

    .firsts-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}
