:root {
    --primary-font: "Cinzel", serif;
    --secondary-font: "Poppins", sans-serif;
    --backgroud-color: #e7d7c0;
}

body {
    background-color: var(--backgroud-color);
}

.hero {
    margin-top: 150px;
    text-align: center;
}

h1,
h2 {
    font-family: var(--primary-font);
    font-size: 90px;
    color: #9a280e;
    font-weight: bold;
} 

h3 {
    font-family: var(--secondary-font);
    font-size: 28px;
    font-weight: 300;
    margin-bottom: 50px;
    opacity: 0.7;
}

.branding-button {
    border-radius: 6px;
    background-color: #9a280e;
    padding: 16px 20px; 
    color: white;
    text-decoration: none;
    font-size: 18px;
    font-family: var(--secondary-font);
    margin: 0 10px;
}

.branding-button:hover {
    background-color: white;
    color: #9a280e;
}

.projects-section {
    margin: 150px auto;
    padding: 80px 0;
    background-color: rgb(243, 228, 207, 0.4);
}

.projects {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.projects-section h4 {
    text-align: center;
    font-family: var(--secondary-font);
    margin-bottom: 50px;
    font-size: 20px;
    opacity: 0.7;
}

.project-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    align-items: center;
    margin: 60px 0;
    border-bottom: 1px solid #9a280e;
}

.reverse .project-image {
    justify-self: end;
}

.project-image img {
    width: 100%;
    max-width: 400px;
    border-radius: 8px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    display: block;
}

.project-text {
    text-align: left;
}

.project-text h5 {
    font-size: 30px;
    font-family: var(--primary-font);
    color: #9a280e;
    margin-bottom: 20px;
    font-weight: bold;
}

.project-text p {
    margin: 20px 0;
    line-height: 1.8;
    font-family: var(--secondary-font);
    font-size: 18px;
}

.project-text a {
    display: inline-block;
    padding: 12px 24px;
    background: #9a280e;
    color: white;
    text-decoration: none;
    border-radius: 5px;
}

.my-works-header {
    font-size: 40px;
    margin: 10px 0 0 70px;
    text-align: center;
}

.content-container h2 {
    font-size: 20px;
    text-align: center;
    font-family: var(--primary-font);
    margin-top: 20px;
    color: #8b210a;
}

.content-container p {
    font-size: 16px;
    color: black;
    text-align: center;
    font-family: var(--secondary-font);
    opacity: 0.6;
}

.work-imgs {
    border: 35px solid white;
    border-radius: 15px;
}

.learn-more-button {
    border-radius: 6px;
    background-color: #9a280e;
    padding: 10px 10px; 
    color: white;
    text-decoration: none;
    font-size: 14px;
    font-family: var(--secondary-font);
    border: none;
}

.learn-more-button:hover {
    background-color: white;
    color: #9a280e;
    border: none;
}

.about-section h1 {
    font-size: 45px;
    margin-top: 20px;
}

.about-section h2 {
    font-size: 25px;
}

.about-section img {
    border: 15px solid black;
    box-shadow: 5px 5px 5px  grey;
    border-radius: 6px;
    max-width: 400px;
    width: 100%;
    height: auto;
    margin: 20px 80px;
}

.contact-content {
    margin-top: 70px;
    text-align: center;
}

.contact-header {
    text-align: center;
    font-size: 70px;
}

.contact-content h2 {
    font-family: var(--secondary-font);
    font-size: 28px;
    font-weight: 300;
    margin-bottom: 50px;
    color: #000;
    opacity: 0.7;
}

.contact-content a {
    color: black;
    text-decoration: none;
    font-size: 20px;
    text-align: center;
}

.contact-links {
    display: grid;
}

.links {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
}

.contact-content a:hover {
    color: #9a280e;
    text-decoration: underline;
}

.portfolio-nav {
    margin-top: 20px;
    padding: 0;
}

.portfolio-nav ul {
    margin: 0;
    padding: 0;
}

.portfolio-nav li {
    display: inline;
    list-style: none;
    padding-left: 20px;
}

.portfolio-nav a {
    text-decoration: none;
    color: #9a280e;
    font-weight: bold;
    font-size: 20px;
}

.portfolio-nav li a {
    text-decoration: none;
    font-size: 20px;
}

.portfolio-nav li.active a {
    color: #000;
}

.contact-section {
    max-width: 50%;
    margin-left: auto;
    margin-right: auto;
    padding: 3rem 1rem;
}

.contact-title {
    font-size: 1.875rem;
    line-height: 2.25rem;
    font-weight: 700;
}

.contact-description {
    color: rgb(107 114 128);
}

.form-group-container {
    display: grid;
    gap: 1rem;
    margin: 10px 50px;
    max-width: 70%;
}
  
.form-group {
    display: flex;
    flex-direction: column;
}

.form-input,
.form-textarea {
    padding: 0.5rem;
    border: 1px solid #e5e7eb;
    display: flex;
    height: 2.5rem;
    width: 100%;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    line-height: 1.25rem;
}

.form-input::placeholder,
.form-textarea:focus-visible {
    color: #6b7280;
}

.form-input:focus-visible,
.form-textarea:focus-visible {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}

.form-textarea {
    min-height: 120px;
}

.form-submit {
    width: 70%;
    margin-left: 50px;
    background-color: #9a280e;
    color: #fff;
    padding: 13px 5px;
    border-radius: 0.375rem;
    border: none;
}

.contact-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.contact-row {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

.contact-container .col-5 {
    flex: 5;
}

.contact-container .col-4 {
    flex: 4;
}

.contact-container .col-3 {
    flex: 3;
}

.contact-container .col-4 img {
    width: 100%;
    height: auto;
    display: block;
}

.my-contacts {
    list-style: none;
    padding: 0;
    margin: 50px 20px;
}

.my-contacts li {
    margin-bottom: 40px;
    text-align: center;
}

.my-works-container {
    margin: 50px;
}

@media (max-width: 900px) {
    h1,
    h2 {
        font-size: 50px
    }

    h3 {
        font-size: 20px;
    }

    .container h4 {
        font-size: 35px
    }

    .container p {
        font-size: 17px;
    }

    .container {
        text-align: center;
    }

    .about-section h1 {
        font-size: 25x;
    }

    .about-section h2 {
        font-size: 20px;
    }

    .about-section {
        text-align: center;
        padding: 20px;
    }

    .about-section img {
        margin: 30px 0;
    }

    .my-works-header {
        font-size: 30px;
        margin: 50px 0 0 0;
    }

    .img {
        margin-top: 20px;
    }

    .content-container p {
        margin-bottom: 30px;
    }

    .contact-img {
        width: 100%;
    }

    .work-imgs {
        margin-top: 30px;
    }

    .form-submit {
        width: 100%;
        margin-left: 0;
    }

    .row {
        flex-direction: column;
        align-items: center;
    }

    .col-5,
    .col-4,
    .col-3 {
        width: 100%;
        max-width: 600px;
    }
    
    .contact-form {
        width: 100%;
    }
    
    .my-contacts {
        margin: 20px 0 !important;
        text-align: center;
    }

    .form-submit {
        width: 100%;
    }

    .project-row {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .project-image img {
        margin: 0 auto;
    }

    .project-text h2 {
         font-size: 32px;
    }

}