/* debugging {
    border: 1px solid red;
} */

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    border: 0;
    box-sizing: border-box;
    text-wrap: pretty;
}

html {
    font-size: 16px;
}

:root {
    /* Primary Colors */
    --primary-main: #5f6d5a;
    --primary-lighter: #6f7c6b;
    --secondary-main: #ca9951;
    --secondary-darker: #b68a49;


    /* Background Colors */
    --background-main: #f8f5f0;
    --background-darker: #f3eadb;

    /* Text Colors */
    --text-main: #1a1a1a;
    --text-lighter: #333333;

    /* Accent Colors */
    --accent-color: #D78D59;

    /* Element Styling */
    --border-radius: 1.25rem;
    /* --section-margin: 62rem; */

    /* Fonts Styling */
    --header-font: "Domine", serif;
    --body-font: "Inter", sans-serif;
}

body {
    font-size: 1rem;
    line-height: 1.5;
    background-color: var(--background-main);
}

section {
    width: 100%;
    padding: 3.5rem 0rem;
}

h1,
h2,
h3,
h4 {
    font-family: var(--header-font);
    font-optical-sizing: auto;
    font-style: normal;
    color: var(--text-main);
}

p,
.btn,
a,
span {
    font-family: var(--body-font);
    font-optical-sizing: auto;
    font-style: normal;
}

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

h2 {
    font-weight: 500;
    font-size: 2.5rem;
    /* margin-bottom: 2rem; */
}

h3 {
    font-weight: 450;
    font-size: 1.5rem;
    margin-bottom: 0.4rem;
}

h4 {
    font-weight: 430;
    font-size: 1.3rem;
    margin-bottom: 0.4rem;
}

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

.btn {
    display: inline-block;
    font-size: 1rem;
    line-height: 1.5;
    align-items: center;
    text-align: center;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease-in;
    min-width: 120px;
    width: fit-content;
}

.primary-CTA,
form button {
    background-color: var(--secondary-main);
    color: var(--background-main);
    border: 2px solid transparent;
}

.primary-CTA:hover,
form button:hover {
    background-color: var(--secondary-darker);
}

.secondary-CTA {
    background-color: transparent;
    color: var(--secondary-main);
    border: 2px solid var(--secondary-main);
}

.secondary-CTA:hover {
    color: var(--background-darker);
    color: var(--secondary-darker);
}

.text-link {
    width: fit-content;
    font-weight: 600;
    color: var(--secondary-darker);
    text-decoration: none;
    border-bottom: 2.5px solid var(--secondary-darker);
    transition: all 0.2s ease-in;
}

.text-link:hover {
    color: var(--secondary-main);
    border-bottom: 2.5px solid var(--secondary-main);
}

.eyebrow {
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--secondary-darker);
    margin-bottom: 0.25rem;
}

.filled-icon {
    filter: invert(62%) sepia(23%) saturate(857%) hue-rotate(356deg) brightness(96%) contrast(94%);
}

/* Accessibility */
.visually-hidden {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
}

/* Hero section */
#hero {
    background: linear-gradient(to top, var(--primary-main), var(--primary-lighter));
    border-radius: 0 0 var(--border-radius) var(--border-radius);
}

#hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    margin: 0 auto;
    max-width: 992px;
    padding: 2rem 1rem;
}

#profile-picture {
    width: 18rem;
    height: 18rem;
    border-radius: var(--border-radius);
}

#profile-picture img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--border-radius);
    /* border: 2px solid var(--secondary-main); */
}

#hero-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
}

#hero-copy {
    margin-bottom: 0.5rem;
    padding-left: 0rem;
}

#hero-copy h1 {
    font-size: 4.25rem;
    margin-top: 1rem;
    margin-bottom: 0rem;
    color: var(--background-main);
}

#hero-copy p {
    font-weight: 400;
    font-size: 1.25rem;
    margin-top: 0.5rem;
    margin-bottom: 1.5rem;
    color: var(--background-main);
}

#hero-CTAs {
    display: flex;
    gap: 1rem;
}

#hero-CTAs .primary-CTA {
    color: var(--background-main);
}

#hero-CTAs .secondary-CTA {
    color: var(--background-main);
}

#hero-CTAs .secondary-CTA:hover {
    color: var(--background-darker);
}

#my-work-button {
    display: none;
}

/* Services section */
#services {
    display: none;
    margin-top: 2rem;
}

#services-container {
    display: flex;
    gap: 4rem;
    margin: 0 auto;
    max-width: 992px;
    padding: 0rem 1rem;
}

.service-card {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

#services img {
    width: 3rem;
    height: auto;
}

.icon-container {
    width: 3rem;
    height: 3rem;
    background-color: var(--secondary-main);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    /* margin-bottom: .25rem; */
}

#services svg {
    width: 1.75rem;
    height: auto;
    fill: var(--background-main);
    display: block;
}

#services h3 {
    margin: 0;
}

#services p {
    margin: 0;
}

/* Styling for Featured Work section */
.work-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 992px;
    margin: 0 auto;
    gap: 2rem;
}

.work-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, auto);
    gap: 2rem;
    width: 100%;
}

.project-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    background-color: var(--background-darker);
    border-radius: var(--border-radius);
    padding: 1.5rem;
}

.project-card.expandable {
    height: fit-content;
}

.project-card.expandable .project-description,
.project-card.expandable .primary-CTA {
    display: none;
}

.project-card.expandable.active .project-description,
.project-card.expandable.active .primary-CTA {
    display: block;
}

.project-card img,
.project-card video {
    width: 100%;
    height: auto;
    aspect-ratio: 16/9;
    object-fit: cover;
    margin-bottom: 1rem;
    border-radius: var(--border-radius);
}

.project-card p {
    margin-top: 0;
}

.project-card a {
    margin-top: auto;
}

#view-more-portfolio {
    display: none;
}

/* Past Clients Section */
#past-clients-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 992px;
    margin: 0 auto;
    text-align: center;
    gap: 2rem;
}

.logo-wall {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 2.5rem 2rem;
    justify-content: center;
}

.logo-wall img {
    width: auto;
    height: 2rem;
}

/* Testimonials Section */
#testimonials {
    padding-top: 1rem;  /* Make Testimonials and Past Clients look like the same section */
}

#testimonials-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    justify-content: space-between;
    margin: 0 auto;
    padding: 3rem 4rem;
    max-width: 992px;
    height: 31rem;
    border-radius: var(--border-radius);
    background-color: var(--background-darker);
}

#testimonials-top-row {
    display: flex;
    flex-direction: row;
    width: 100%;
    justify-content: space-between;
    align-items: center;
}

#testimonials-top-row img {
    height: 1.8rem;
    width: auto;
}

#testimonials-top-row svg {
    height: 1.8rem;
    width: auto;
    fill: var(--secondary-main);
    display: block;
}

.carousel-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0;
}

.carousel-controls svg {
    stroke: var(--secondary-main);
    transition: all 0.2s ease-in;
}

#carousel-prev:hover svg, 
#carousel-next:hover svg,
#carousel-pause-play:hover svg {
    fill: var(--secondary-darker);
    stroke: var(--secondary-darker);
}

#carousel-prev, #carousel-next {
    background-color: transparent;
    cursor: pointer;
    padding: 0;
    margin: 0;
}

#carousel-pause-play {
    background-color: transparent;
    cursor: pointer;
    padding: 0;
}

#testimonials-carousel {
    width: 100%;
}

.testimonial-slide {
    display: none;
    flex: 1;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
    transition: opacity 0.5s ease;
    text-align: center;
    width: 100%;
    margin-top: -1rem;
}

.quotation {
    flex: 2;
    text-align: left;
    font-style: italic;
    margin-bottom: 0;
    font-size: 1.25rem;
    font-weight: 450;
}

.quotee {
    flex: 1;
    display: flex;
    flex-direction: column;
    text-align: right;
}

.quotee-name {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--secondary-darker);
    margin: 0;
}

.quotee-detail {
    font-size: 1rem;
    color: var(--secondary-main);
    margin: 0;
}

.carousel-dots {
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
}

.carousel-dot {
    border-radius: 2px;
    background-color: var(--secondary-main);
    opacity: 40%;
    cursor: pointer;
    flex: 1;
    height: 5px;
    transition: opacity 0.5s ease;
}

.carousel-dot.active {
    opacity: 100%;
}

.carousel-dot:not(.active):hover {
    opacity: 60%;
}

.callout-CTA {
    max-width: 992px;
    margin: 0 auto;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 3rem 1.5rem 0 1.5rem;
}

.callout-message {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

/* .callout-message p {
    font-size: 1.25rem;
    margin: 0;
} */

.callout-message h4 {
    margin: 0;
    padding: 0;
    border: 0;
}

.vertical-line {
    height: 3rem;
    width: 5px;
    background-color: var(--primary-lighter);
    border-radius: 2px;
}

/* Contact section */
#contact-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    margin: 0 auto;
    max-width: 992px;
    gap: 2rem;
}

#contact-copy {
    display: none; /* Hide when employed */
    text-align: center;
}

#contact-copy-break::before {
    content: "\A"; /* Unicode line break character */
    white-space: pre;
}

#contact-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    width: 100%;
}

/* Contact Form */
textarea {
    resize: none;
}

form {
    grid-column: span 2;
    display: flex;
    flex-direction: column;
    padding-left: 5rem;
}

#form-inputs {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-input input,
.form-input textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--secondary-main);
    border-radius: 5px;
    font-family: var(--body-font);
}

form button {
    align-self: flex-end;
}

#socials {
    grid-column: span 1;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-self: flex-start;
    justify-content: space-between;
    gap: 1.5rem;
    margin: 0 auto;
    padding-right: 5rem;
}

.social-button {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    font-weight: 600;
    gap: 0.75rem;
    transition: all 0.2s ease-in;
}

.social-button:link {
    color: var(--secondary-main);
}

.social-button:visited {
    color: var(--secondary-main);
}

.social-button:hover {
    color: var(--secondary-darker);
}

.social-button:active {
    color: var(--secondary-darker);
}

.social-button:focus {
    color: var(--secondary-darker);
}

.social-button img {
    width: 2.5rem;
    height: auto;
}

#signal {   /* HIDDEN SOCIALS */
    display: none;
}

#bluesky {
    display: none;
}

#signal-button {
    border-radius: 3px;
}

/* TABLET STYLES */
@media (min-width: 761px) and (max-width: 960px) {

    /* Global adjustments */
    html {
        font-size: 16px;
    }
    
    section {
        padding: 2.5rem 1rem;
    }

    /* Hero Section */
    #hero-container {
        gap: 3rem;
    }

    #hero-copy h1 {
        font-size: 3.25rem;
    }

    #hero-copy p {
        font-size: 1.1rem;
    }

    /* Featured Work - 2 column layout */
    .work-grid {
        grid-template-columns: repeat(2, 1fr);
        padding: 1rem;
    }

    /* Past Clients Section - Tablet */
    .logo-wall {
        gap: 2rem 1.5rem;
    }
    
    .logo-wall img {
        width: auto;
        height: 1.8rem;
    }

    /* Testimonials Section - Tablet */
    #testimonials-container {
        gap: 1rem;
        padding: 3rem 3rem;
        height: 32rem;
    }

    .testimonial-slide {
        flex-direction: column;
        align-items: flex-start;
        justify-content: space-between;
        gap: 1.75rem;
        text-align: left;
    }
    
    .quotation {
        font-size: 1.2rem;
    }
    
    .quotee {
        text-align: left;
    }
    
    .quotee-name {
        font-size: 0.9rem;
    }

    .quotee-detail {
        font-size: 0.8rem;
    }

    /* Contact - Same as mobile */
    #contact-options {
        display: flex;
        flex-direction: column;
        width: 100%;
        gap: 0rem;
    }

    form {
        width: 100%;
        padding: 0;
        margin-bottom: 0rem;
    }

    #form-inputs {
        margin-bottom: 0rem;
    }

    .form-input {
        width: 100%;
    }

    .form-input input,
    .form-input textarea {
        width: 100%;
        padding: 0.75rem;
    }

    form button {
        display: block;
        margin: 1rem auto;
    }

    .success-button {
        background-color: var(--secondary-darker) !important;
        transition: all 0.3s ease;
    }

    .error-message {
        color: #d32f2f;
        padding: 0.5rem;
        margin-top: 0.5rem;
        margin-bottom: 0.5rem;
        font-size: 0.9rem;
    }

    #socials {
        display: flex;
        flex-direction: row;
        align-self: center;
        padding: 0rem;
        justify-content: space-around;
        width: auto;
        gap: 2rem;
    }

    .social-button {
        flex: 1;
        margin-top: 1rem;
    }

    .social-button img {
        align-self: center;
        margin: 0 auto;
    }

    .social-button span {
        display: none;
    }
}

/* MOBILE STYLES */
@media (max-width: 760px) {

    /* Global adjustments */
    html {
        font-size: 15px;
    }

    section {
        padding: 2rem 1rem;
        /* Reduced top/bottom padding, maintain some side padding */
    }

    h2 {
        font-size: 2.25rem;
    }

    .btn {
        min-width: 100px;
        /* Slightly smaller min-width */
    }

    /* Hero Section - Mobile */
    #hero-container {
        flex-direction: column;
        text-align: center;
    }

    #profile-picture {
        width: 16rem;;
        height: 16rem;
        margin: 0 auto;
    }

    #hero-content {
        align-items: center;
        text-align: center;
    }

    #hero-copy h1 {
        font-size: 2rem;
        margin-top: 0.5rem;
    }

    #hero-copy p {
        font-size: 1rem;
    }

    /* Services Section - Mobile */
    #services-container {
        display: flex;
        flex-direction: column;
        gap: 2rem;
    }

    .service-card {
        gap: .75rem;
    }

    #services-container img {
        margin-bottom: 0.5rem;
    }

    /* Featured Work Section - Mobile */
    #featured-work {
        padding: 2rem 0;
    }

    .work-grid {
        display: flex;
        overflow-x: auto;
        padding: 0 1rem;
        gap: 1.2rem;
        /* scroll-snap-type: x mandatory; */
    }

    .project-card {
        flex: 0 0 20rem;
        /* Fixed width, no shrinking */
        /* scroll-snap-align: start; */
    }

    .work-container h2 {
        text-align: center;
    }

    /* Past Clients Section - Mobile */
    .logo-wall {
        gap: 1.5rem 1rem;
    }
    
    .logo-wall img {
        width: auto;
        height: 1.25rem;
    }

    /* Testimonials Section - Mobile */
    #testimonials-container {
        gap: 1rem;
        padding: 2.5rem 2.5rem;
        height: 36rem;
    }
    
    .testimonial-slide {
        flex-direction: column;
        align-items: flex-start;
        justify-content: space-between;
        gap: 1.5rem;
        text-align: left;
    }
    
    .quotation {
        font-size: 0.95rem;
    }
    
    .quotee {
        text-align: left;
    }
    
    .quotee-name {
        font-size: 0.9rem;
    }
    
    .quotee-detail {
        font-size: 0.8rem;
    }

    .callout-CTA {
        flex-direction: column;
        gap: .75rem;
    }

    .vertical-line {
        display: none;
    }

    /* Contact Me Section - Mobile */
    #contact-options {
        display: flex;
        flex-direction: column;
        width: 100%;
        gap: 0rem;
    }

    #contact-copy-break::before {
        content: " ";
        white-space: normal;
    }

    form {
        width: 100%;
        padding: 0;
        margin-bottom: 0rem;
    }

    #form-inputs {
       margin-bottom: 0rem;
    }

    .form-input {
        width: 100%;
    }

    .form-input input,
    .form-input textarea {
        width: 100%;
        padding: 0.75rem;
    }

    form button {
        display: block;
        margin: 1rem auto;
    }

    #socials {
        display: flex;
        flex-direction: row;
        align-self: center;
        padding: 0rem;
        justify-content: space-around;
        width: auto;
        gap: 2rem;
    }

    .social-button {
        flex: 1;
        margin-top: 1rem;
    }

    .social-button img {
        align-self: center;
        margin: 0 auto;
    }

    .social-button span {
        display: none;
    }
}