/* ============================================================
   RESET / BASE
   ============================================================ */

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

html {
    background-color: #FED932;
    font-family: "Tilt Neon", sans-serif;
    scroll-behavior: smooth;
    /* Prevent any stray element from causing horizontal scroll */
    overflow-x: hidden;
}

body {
    margin: 0;
    padding: 0;

    /* Offset content so it never hides behind the fixed header.
    JS keeps --header-height in sync with the real header size. */
    padding-top: var(--header-height);
    overflow-x: hidden;
}

img {
    display: block;
    max-width: 100%;
}

/* ============================================================
   COLOR / TYPE TOKENS
   Fluid type: scales smoothly between mobile and desktop so
   text and layout resize together (no more "static" elements).
   ============================================================ */

:root {
    --brand-yellow: #FED932;
    --brand-cream: #FFF4AA;
    --brand-blue: #4E9FDE;
    --brand-azure: #9ADFE7;
    --brand-teal: #02C0D0;

    --header-height: 80px;
}

/* ============================================================
   HEADER
   ============================================================ */

header {
    position: fixed;
    top: 0;
    z-index: 10;
    width: 100%;

    background-color: var(--brand-yellow);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px 20px;

    padding: 8px 20px;
}

.logo_title {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0; /* allow title to shrink instead of overflowing */
}

.logo {
    height: clamp(44px, 8vw, 70px);
    width: auto;
    flex-shrink: 0;
}

h1 {
    font-family: "Galada", cursive;
    font-weight: 100;
    font-size: clamp(1.25rem, 3.5vw, 2.625rem);
    font-weight: 600;
    color: var(--brand-teal);
    letter-spacing: clamp(1px, 0.4vw, 5px);
    margin: 0;
    line-height: 1.1;
}

/* ============================================================
   NAV LINKS
   ============================================================ */

.links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 20px;
}

a {
    font-size: clamp(1rem, 1.8vw, 1.625rem);
    font-weight: 400;
    color: var(--brand-teal);
    text-decoration: none;
}

a:hover,
a:active {
    text-decoration: underline;
}

a.home:hover {
    text-decoration: none;
}

/* ============================================================
   MAIN LAYOUT
   ============================================================ */

main {
    display: flex;
    flex-direction: column;
}

/* Shared section behaviour: each section fills the viewport
   (minus the header) but can GROW if content needs more room. */
main > div {
    width: 100%;
    min-height: calc(100vh - var(--header-height));
    scroll-margin-top: var(--header-height);

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;

    padding: 40px 20px;
    gap: 16px;
}

/* Inner content gets a sensible reading width on large screens */
main > div > * {
    max-width: 1100px;
}

/* ============================================================
   HOME SECTION
   ============================================================ */

#home {
    background-image: url("../images/main_bg.JPEG");
    background-size: cover;
    background-position: center;
    justify-content: flex-start;
}

.main_heading {
    padding-top: 10vh;
}

/* ============================================================
   ABOUT SECTION
   ============================================================ */

#about {
    background-color: var(--brand-yellow);
}

.hs_circle {
    height: clamp(130px, 22vh, 280px);
    width: clamp(130px, 22vh, 280px);
    object-fit: cover;
    border-radius: 50%;
}

.bio {
    width: min(70%, 850px);
    max-width: 100%;
    font-size: clamp(0.9rem, 1.3vw, 1.3rem);
    font-weight: 200;
    color: var(--brand-blue);
    line-height: 1.35;
}

/* ============================================================
   SERVICES SECTION
   ============================================================ */

#services {
    background-color: var(--brand-cream);
}

.services_columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(24px, 6vw, 80px);
    width: min(95vw, 900px);
    margin-top: 16px;
}

.service_col {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

/* Column heading (AUDIO / FILM) — stands out from the service h3 items */
.col_title {
    font-size: clamp(1.4rem, 3.4vw, 2.4rem);
    font-weight: 600;
    color: var(--brand-blue);
    letter-spacing: 3px;
    margin: 0 0 8px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--brand-blue);
}

/* ============================================================
   PROJECTS SECTION
   ============================================================ */

#projects {
    background-color: var(--brand-yellow);
}

.projects_imgs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: clamp(20px, 4vw, 60px);
    width: min(100%, 900px);
    padding-top: 30px;
}

.proj_img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    transition: opacity 0.2s ease;
}

.proj_img:hover {
    opacity: 0.6;
}

/* ============================================================
   CONTACT SECTION
   ============================================================ */

#contact {
    background-color: var(--brand-cream);
}

.contact_lead {
    font-size: clamp(1.05rem, 2.2vw, 1.5rem);
    font-weight: 300;
    color: var(--brand-blue);
    margin: 0;
}

.contact_form {
    display: flex;
    flex-direction: column;
    gap: 14px;
    width: min(92vw, 540px);
    text-align: left;
    margin-top: 8px;
}

.form_field {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.form_field > span {
    font-size: clamp(0.95rem, 1.6vw, 1.15rem);
    font-weight: 300;
    color: var(--brand-blue);
}

.contact_form input,
.contact_form textarea {
    font-family: inherit;
    font-size: 1rem;
    color: #333;
    background-color: #fff;
    border: 2px solid var(--brand-blue);
    border-radius: 8px;
    padding: 10px 12px;
    width: 100%;
    resize: none;
}

.contact_form input:focus,
.contact_form textarea:focus {
    outline: none;
    border-color: var(--brand-teal);
    box-shadow: 0 0 0 3px rgba(2, 192, 208, 0.25);
}

.word_count {
    align-self: flex-end;
    font-size: 0.8rem;
    color: var(--brand-blue);
    opacity: 0.8;
}

.contact_form button {
    align-self: center;
    margin-top: 4px;
    font-family: inherit;
    font-size: clamp(1rem, 2vw, 1.25rem);
    font-weight: 500;
    color: #fff;
    background-color: var(--brand-blue);
    border: none;
    border-radius: 8px;
    padding: 12px 36px;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

.contact_form button:hover {
    background-color: var(--brand-teal);
}

.contact_form button:active {
    transform: translateY(1px);
}

.form_status {
    margin: 2px 0 0;
    text-align: center;
    font-size: 0.95rem;
    min-height: 1.2em;
    color: var(--brand-blue);
}

.form_status.ok {
    color: #1a7f37;
}

.form_status.error {
    color: #c1121f;
}

/* ============================================================
   SECTION HEADINGS
   ============================================================ */

h2 {
    font-size: clamp(2rem, 6vw, 3.75rem);
    font-weight: 500;
    color: var(--brand-blue);
    margin: 0;
    line-height: 1.1;
}

h3 {
    font-size: clamp(1.2rem, 3vw, 2.125rem);
    font-weight: 300;
    color: var(--brand-blue);
    margin: 0;
    line-height: 1.2;
}

/* ============================================================
   FOOTER
   ============================================================ */

footer {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: clamp(16px, 3vw, 28px);
    text-align: center;
    background-color: var(--brand-yellow);
    padding: 32px 20px;
}

h4 {
    font-size: clamp(0.9rem, 1.6vw, 1.5rem);
    font-weight: 300;
    color: var(--brand-teal);
    margin: 0;
}

/* SOCIAL LINKS */

.social_links {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: clamp(16px, 3vw, 28px);
}

.social {
    display: inline-flex;
    line-height: 0;
    color: var(--brand-teal);
}

.social_icon {
    width: clamp(24px, 4vw, 32px);
    height: clamp(24px, 4vw, 32px);
    fill: currentColor;
    display: block;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.social:hover .social_icon {
    opacity: 0.65;
    transform: translateY(-2px);
}

/* ============================================================
   RESPONSIVE — TABLET / MOBILE
   ============================================================ */

   /* Stack the AUDIO / FILM columns on narrow screens. */
@media (max-width: 600px) {
    .services_columns {
        grid-template-columns: 1fr;
        gap: 28px;
    }
}

/* Stack the header (logo/title on top, links below, centered)
   once the single-row layout gets cramped. */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        justify-content: center;
        text-align: center;
        gap: 8px;
    }

    .logo_title {
        justify-content: center;
        flex-wrap: wrap;
    }

    .links {
        justify-content: center;
    }

    /* Header is taller when stacked — give sections room to clear it. */
    :root {
        --header-height: 120px;
    }

    .main_heading {
        padding-top: 6vh;
    }
}

@media (max-width: 480px) {
    main > div {
        padding: 32px 16px;
    }

    .links {
        gap: 6px 14px;
    }

    .bio {
    font-size: 0.85rem;
    line-height: 1.35;
    }
}