:root {
    --primary-color: #FF8C00;
    --secondary-color: #2c2c2c;
    --background-color: #FFF8F0;
    --text-color: #333;
    --sobre-mim-color: #FF8C00;
}

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

body {
    font-family: 'Baskerville', serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
}

.container {
    width: 80%;
    max-width: 1200px;
    margin: auto;
    overflow: hidden;
}

header {
    background: var(--secondary-color);
    color: #fff;
    padding: 10px 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px; 
    margin: 0 auto;
}

header h1 {
    margin: 0;
}

header nav ul {
    list-style: none;
    display: flex; 
    gap: 20px; 
    margin: 0;
    padding: 0;
}

header nav ul li a {
    color: #fff;
    text-decoration: none;
}

#intro {
    background: linear-gradient(120deg, var(--primary-color), #FFA07A);
    color: #fff;
    padding: 60px 0;
    text-align: center;
}

#intro h2 {
    padding: 15px;
    margin-bottom: 15px;
    font-size: 2.5em;
}

#intro p {
    font-size: 1.2em;
}

#portfolio {
    background: #ececec;
    padding: 30px 0;
    text-align: center;
}

#portfolio h2 {
    margin-bottom: 30px;
    font-size: 2.5em;
}

.portfolio-section {
    margin-bottom: 30px;
}

.portfolio-section h3 {
    font-size: 2em;
    margin-bottom: 10px;
    color: var(--primary-color);
}

#sobre-mim h2 {
    color: var(--sobre-mim-color);
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 15px;
    justify-content: center;
    margin-top: 15px;
}

.gallery img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.3s;
}

.gallery img:hover {
    transform: scale(1.05);
}

#contact {
    background: linear-gradient(120deg, #FF8C00, #FFA07A);
    color: #fff;
    padding: 35px 0;
    text-align: center;
}

#contact h2 {
    margin-bottom: 10px;
    font-size: 2.2em;
}

.contact-description {
    max-width: 800px;
    margin: 0 auto 20px;
    font-size: 1.2em;
    line-height: 1.5;
}

.contact-info {
    margin-bottom: 15px;
}

.contact-info img {
    width: 50px;
    margin: 0 10px;
    transition: transform 0.3s;
}

.contact-info img:hover {
    transform: scale(1.1);
}

#contactForm {
    max-width: 500px;
    margin: auto;
    padding: 20px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: var(--secondary-color);
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1em;
    font-family: 'Baskerville', serif;
    box-sizing: border-box;
    max-width: 100%;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary-color);
    outline: none;
}

button {
    background-color: var(--primary-color);
    color: #fff;
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.3s, transform 0.3s;
}

button:hover {
    background-color: #cc7000;
    transform: translateY(-2px);
}

footer {
    padding: 15px 0;
    text-align: center;
}

footer p {
    margin: 0;
    font-size: 1em;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 80%;
    max-height: 80%;
}

#caption {
    margin: auto;
    display: block;
    text-align: center;
    color: #fff;
    padding: 10px 0;
    height: 150px;
}

.close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

@media (max-width: 768px) {
    nav {
        padding: 12px;
    }
    header h1 {
        font-size: 1.2em;
    }

    header nav ul {
        gap: 10px;
    }

    header nav ul li a {
        font-size: 0.8em;
    }

    #intro h2, #portfolio h2, #contact h2 {
        font-size: 2em;
    }

    #contactForm {
        width: 90%;
    }

    .contact-info img {
        width: 40px;
    }

    .gallery {
        grid-template-columns: 1fr;
    }
}
