* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background-color: #0D1D31;
    color: #FFF7EB;
    font-family: "Segoe UI", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.7;
}

.container {
    width: 90%;
    max-width: 1150px;
    margin: 0 auto;
}

a {
    color: inherit;
}

a:focus-visible {
    outline: 3px solid #D8B48A;
    outline-offset: 4px;
}

.site-header {
    border-bottom: 1px solid #34465C;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    min-height: 90px;
}

.logo {
    color: #D8B48A;
    font-size: 20px;
    font-weight: bold;
    text-decoration: none;
    letter-spacing: 1px;
}



.nav-list {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-list a {
    color: #BFCADA;
    text-decoration: none;
    font-size: 15px;
    transition: color 0.3s;
}

.nav-list a:hover,
.nav-list a.active {
    color: #D8B48A;
}


h1,
h2,
h3 {
    line-height: 1.2;
}

h1,
h2 {
    font-family: Georgia, "Times New Roman", serif;
    font-weight: normal;
}

h1 {
    font-size: 72px;
    margin: 15px 0 25px;
}

h1 span {
    color: #D8B48A;
}

h2 {
    font-size: 42px;
    margin: 10px 0 25px;
}

h3 {
    font-size: 22px;
    margin: 10px 0 15px;
}

p {
    margin-top: 0;
}

.subtitle {
    color: #D8B48A;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 13px;
    font-weight: bold;
}



.hero {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 80px;
    min-height: 650px;
    padding-top: 70px;
    padding-bottom: 90px;
}

.hero-text {
    max-width: 600px;
}

.hero-text p {
    color: #BFCADA;
    font-size: 17px;
}

.hero-text .subtitle {
    color: #D8B48A;
    font-size: 13px;
}

.hero-text .intro {
    color: #FFF7EB;
    font-size: 20px;
}


.hero-photo {
    position: relative;
    width: 100%;
    max-width: 420px;
    margin-left: auto;
    border-radius: 180px 180px 20px 20px;
    background-color: #1B314B;
}

.hero-photo::before {
    content: "";
    position: absolute;
    top: -16px;
    right: 16px;
    bottom: 16px;
    left: -16px;
    border: 1px solid #D8B48A;
    border-radius: 180px 180px 20px 20px;
    z-index: -1;
}

.hero-photo img {
    display: block;
    width: 100%;
    height: 500px;
    object-fit: cover;
    object-position: center top;
    border-radius: 180px 180px 20px 20px;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 35px;
}

.btn,
.btn-secondary {
    display: inline-block;
    padding: 13px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 15px;
    font-weight: bold;
    transition: 0.3s;
}

.btn {
    background-color: #D8B48A;
    color: #0D1D31;
    border: 1px solid #D8B48A;
}

.btn:hover {
    background-color: #F3D5B0;
    transform: translateY(-2px);
}

.btn-secondary {
    border: 1px solid #D8B48A;
    color: #D8B48A;
}

.btn-secondary:hover {
    background-color: #D8B48A;
    color: #0D1D31;
}

.text-link {
    display: inline-block;
    color: #D8B48A;
    text-decoration: none;
    font-weight: bold;
    margin-top: 10px;
}

.text-link:hover {
    text-decoration: underline;
}


.section {
    padding: 90px 0;
}

.section p {
    max-width: 750px;
}

.about-preview {
    background-color: #1B314B;
}

.contact-preview {
    background-color: #1B314B;
}


.projects-grid {
    display: grid;
    grid-template-columns: minmax(0, 560px);
    gap: 25px;
    margin: 40px 0;
}

.project-card {
    background-color: #1B314B;
    border: 1px solid #34465C;
    border-radius: 15px;
    padding: 35px;
    transition: transform 0.3s;
}

.project-card:hover {
    transform: translateY(-5px);
}

.project-category {
    color: #D8B48A;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.project-card p {
    color: #BFCADA;
}

.site-footer {
    padding: 35px 0;
    border-top: 1px solid #34465C;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.footer-content p {
    color: #BFCADA;
    margin: 0;
}

.footer-content a {
    color: #D8B48A;
    text-decoration: none;
    font-size: 14px;
}

.footer-content a:hover {
    text-decoration: underline;
}



@media (max-width: 900px) {

    .header-content {
        flex-direction: column;
        justify-content: center;
        padding: 20px 0;
    }

    .nav-list {
        justify-content: center;
    }

    .hero {
        grid-template-columns: 1fr;
        gap: 50px;
        text-align: center;
    }

    .hero-text {
        margin: 0 auto;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-photo {
        margin: 0 auto;
    }

    h1 {
        font-size: 56px;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {

    .nav-list {
        gap: 12px 20px;
    }

    .nav-list a {
        font-size: 14px;
    }

    h1 {
        font-size: 43px;
    }

    h2 {
        font-size: 33px;
    }

    .hero {
        min-height: auto;
        padding-top: 60px;
        padding-bottom: 70px;
    }

    .hero-photo {
        max-width: 300px;
    }

    .hero-photo img {
        height: 380px;
    }

    .section {
        padding: 65px 0;
    }

    .project-card {
        padding: 25px;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }
}

.empty-page {
    min-height: 70vh;
}


.contact-layout {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    margin-top: 45px;
    align-items: start;
}

.contact-card {
    background-color: #1B314B;
    padding: 35px;
    border-radius: 15px;
    border: 1px solid #344A63;
}

.contact-card h2 {
    margin-bottom: 25px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.form-field label {
    font-weight: 600;
    color: #FFF7EB;
}

.form-field input,
.form-field textarea {
    width: 100%;
    padding: 14px;
    border: 1px solid #718096;
    border-radius: 8px;
    background-color: #0D1D31;
    color: #FFF7EB;
    font: inherit;
    box-sizing: border-box;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
    color: #BFCADA;
}

.form-field input:focus,
.form-field textarea:focus {
    outline: 2px solid #D8B48A;
    outline-offset: 2px;
}

.form-field textarea {
    resize: vertical;
}

.contact-form button {
    cursor: pointer;
    border: none;
    font: inherit;
    align-self: flex-start;
}

.contact-info {
    padding: 20px 0;
}

.contact-info h2 {
    margin-bottom: 25px;
}

.contact-info h3 {
    color: #D8B48A;
    margin-top: 30px;
    margin-bottom: 10px;
}

.contact-info a {
    overflow-wrap: anywhere;
}


@media (max-width: 768px) {
    .contact-layout {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .contact-card {
        padding: 22px;
    }
}
