/* Reset & base */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Source Sans 3', ui-sans-serif, system-ui, -apple-system, sans-serif;
    font-size: 1rem;
    color: #334155;
    line-height: 1.65;
}

h1, h2, h3 {
    font-family: 'Merriweather', Georgia, 'Times New Roman', serif;
    line-height: 1.3;
}

a {
    color: #14532d;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

p {
    padding-bottom: 0.75rem;
}

/* Page layout */

.page-layout {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: #0f172a;
}

/* Header */

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.header.scrolled {
    background-color: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

.header-inner {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 0.875rem 1.25rem;
    max-width: 72rem;
    margin: 0 auto;
    width: 100%;
}

@media (min-width: 768px) {
    .header-inner {
        padding: 1rem 2rem;
    }
}

.logo {
    font-family: 'Merriweather', Georgia, serif;
    font-weight: 700;
    font-size: 1rem;
    color: white;
    text-decoration: none;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

@media (min-width: 768px) {
    .logo {
        font-size: 1.25rem;
    }
}

.header.scrolled .logo {
    color: #14532d;
    text-shadow: none;
}

.logo:hover {
    text-decoration: none;
}

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

@media (min-width: 640px) {
    .nav {
        gap: 1.5rem;
    }
}

.nav-link {
    display: none;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

@media (min-width: 480px) {
    .nav-link {
        display: inline;
    }
}

.header.scrolled .nav-link {
    color: #475569;
    text-shadow: none;
}

.nav-link:hover {
    color: white;
    text-decoration: none;
}

.header.scrolled .nav-link:hover {
    color: #14532d;
}

/* Buttons */

.btn {
    display: inline-block;
    font-family: 'Source Sans 3', ui-sans-serif, system-ui, sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    padding: 0.5rem 1.125rem;
    border-radius: 0.5rem;
    background-color: rgba(255, 255, 255, 0.18);
    border: 1.5px solid rgba(255, 255, 255, 0.65);
    color: #fff;
    text-decoration: none;
    transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.btn:hover {
    background-color: rgba(255, 255, 255, 0.28);
    border-color: white;
    text-decoration: none;
    transform: translateY(-1px);
}

.header.scrolled .btn {
    background-color: #14532d;
    border-color: #14532d;
    color: #fff;
}

.header.scrolled .btn:hover {
    background-color: #166534;
    border-color: #166534;
}

.btn-lg {
    font-size: 1.0625rem;
    padding: 0.75rem 2rem;
    background-color: #14532d;
    border-color: #14532d;
    border-radius: 0.625rem;
}

.btn-lg:hover {
    background-color: #166534;
    border-color: #166534;
}

/* Hero */

.hero {
    position: relative;
    height: 60vh;
    min-height: 360px;
    max-height: 900px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 35%;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.1) 0%,
        rgba(15, 23, 42, 0.55) 100%
    );
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: white;
    padding: 2rem;
    animation: heroFadeIn 1s 0.2s ease-out both;
}

.hero-title {
    font-size: 2.75rem;
    font-weight: 700;
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.35);
    margin-bottom: 0.5rem;
    letter-spacing: -0.01em;
}

@media (min-width: 768px) {
    .hero {
        height: 100vh;
    }

    .hero-title {
        font-size: 4rem;
    }
}

.hero-subtitle {
    font-size: 1.125rem;
    font-weight: 300;
    letter-spacing: 0.06em;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.35);
    color: rgba(255, 255, 255, 0.9);
    padding-bottom: 2rem;
}

@media (min-width: 768px) {
    .hero-subtitle {
        font-size: 1.375rem;
    }
}

.hero-cta {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.75);
    padding: 0.625rem 1.75rem;
    border-radius: 2rem;
    transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.hero-cta:hover {
    background-color: rgba(255, 255, 255, 0.15);
    border-color: white;
    text-decoration: none;
    transform: translateY(-2px);
}

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

/* Fade-in on scroll */

.fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.65s ease-out, transform 0.65s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Shared section styles */

.section-inner {
    max-width: 60rem;
    margin: 0 auto;
    width: 100%;
}

.section-title {
    font-size: 1.625rem;
    color: #14532d;
    margin-bottom: 1.5rem;
    padding-bottom: 0.625rem;
    border-bottom: 2px solid #dcfce7;
}

/* Scroll offset for fixed header */

#about, #expertise, #interests, #contact {
    scroll-margin-top: 5rem;
}

/* Main */

main {
    flex: 1;
}

/* About */

.about {
    padding: 3.5rem 1.5rem;
    background: linear-gradient(to bottom, #f8fafc, #e8edf2);
}

@media (min-width: 768px) {
    .about {
        padding: 4.5rem 2rem;
    }
}

.about-inner {
    max-width: 48rem;
    width: 100%;
    margin: 0 auto;
    font-size: 1.0625rem;
}

.about-image-wrapper {
    float: left;
    width: 8rem;
    height: 8rem;
    margin: 0.25rem 1.75rem 0.75rem 0;
    shape-outside: circle(50%);
}

@media (min-width: 768px) {
    .about-image-wrapper {
        width: 10rem;
        height: 10rem;
    }
}

@media (min-width: 1024px) {
    .about-image-wrapper {
        width: 13rem;
        height: 13rem;
    }
}

@media (min-width: 1280px) {
    .about-image-wrapper {
        width: 16rem;
        height: 16rem;
    }
}

.about-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    box-shadow:
        0 0 0 4px #fff,
        0 0 0 7px #14532d,
        0 8px 24px rgba(0, 0, 0, 0.18);
}

/* Expertise */

.expertise {
    padding: 3.5rem 1.5rem;
    background-color: #fff;
}

@media (min-width: 768px) {
    .expertise {
        padding: 4.5rem 2rem;
    }
}

.expertise-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.625rem;
}

.expertise-card {
    background-color: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-left: 4px solid #14532d;
    color: #166534;
    font-weight: 600;
    font-size: 0.9375rem;
    padding: 0.5625rem 1rem;
    border-radius: 0.375rem;
    transition: background-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
    cursor: default;
}

.expertise-card:hover {
    background-color: #dcfce7;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(20, 83, 45, 0.12);
}

/* Interests */

.interests {
    padding: 3.5rem 1.5rem;
    background: linear-gradient(to bottom, #e8edf2, #f1f5f9);
}

@media (min-width: 768px) {
    .interests {
        padding: 4.5rem 2rem;
    }
}

.interests-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

@media (min-width: 560px) {
    .interests-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.interest-card {
    background-color: #fff;
    border-radius: 0.75rem;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    border-top: 3px solid #14532d;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.interest-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    transform: translateY(-3px);
}

.interest-card h3 {
    font-size: 1.0625rem;
    color: #14532d;
    margin-bottom: 0.5rem;
}

.interest-card p {
    font-size: 0.9375rem;
    color: #475569;
    line-height: 1.6;
    padding-bottom: 0;
}

/* Contact */

.contact {
    padding: 5rem 1.5rem;
    background-color: #0f172a;
    text-align: center;
}

.contact-inner {
    max-width: 36rem;
    margin: 0 auto;
}

.contact .section-title {
    color: #fff;
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

.contact-description {
    color: #94a3b8;
    font-size: 1.0625rem;
    margin-bottom: 2rem;
    padding-bottom: 0;
}

/* Footer */

.footer {
    padding: 1.25rem;
    background-color: #080e1c;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-copyright {
    text-align: center;
    font-weight: 300;
    font-size: 0.8125rem;
    color: #475569;
    padding-bottom: 0;
}
