/* ===== RESET DEFAULT BROWSER STYLES ===== */
body {
    margin: 0;
    font-family: Arial, sans-serif;
}

/* ===== WRAPPER ===== */
html, body {
    height: 100%;
}
#wrapper {
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}
/* ===== HEADER ===== */
header {
    background-color: #9fbfc6; /* light blue */
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
}

/* ===== LOGO (YOUR NAME) ===== */
.logo {
    color: #000;
    font-family: Inter, sans-serif;
    font-size: 48px;
    font-weight: 700;
    text-transform: uppercase;
    margin: 0;
}

/* ===== NAVIGATION ===== */
nav a {
    margin-left: 20px;
    text-decoration: none;
    color: black;
    font-size: 18px;
}

/* active page */
nav a.active {
    font-weight: bold;
}

/* ===== GRID BACKGROUND ===== */
main {
    background-color: #e6e6e6;

    /* grid effect */
    background-image: 
        linear-gradient(to right, gray 1px, transparent 1px),
        linear-gradient(to bottom, gray 1px, transparent 1px);

    background-size: 40px 40px;

    padding: 80px;
    position: relative;
}

/* ===== ABOUT TITLE BOX ===== */
.about-title {
    display: inline-block;
    background-color: #dcdcdc;
    border: 6px solid #f4a6b5; /* pink border */
    border-radius: 25px;
    padding: 10px 30px;
    margin-bottom: 20px;
}

/* text inside title */
.about-title h2 {
    margin: 0;
    font-size: 40px;
}

/* ===== ABOUT MAIN BOX ===== */
.about-box {
    background-color: #dcdcdc;
    border: 6px solid #f4a6b5;
    border-radius: 25px;

    padding: 40px;
    width: 600px;

    /* shadow */
    box-shadow: 10px 10px 20px rgba(0,0,0,0.3);
}

/* text inside box */
.about-box p {
    margin: 0;
    font-size: 18px;
}

/* ===== FOOTER ===== */
footer {
    background-color: #a8be7b; /* green */
    padding: 20px;
    text-align: center;
}
/* ===== ABOUT PHOTO ===== */
.about-photo {
    position: absolute;
    right: 120px;
    top: 140px;
}


.about-photo img {
    width: 400px;
    height: 400px;
    object-fit: cover;
}
/* ===== LINKS BOXES ===== */
.link-box {
    background-color: #dcdcdc;
    border: 6px solid #f4a6b5;
    border-radius: 25px;

    padding: 20px 30px;
    width: 600px;
    margin-top: 20px;

    box-shadow: 10px 10px 20px rgba(0,0,0,0.3);
    font-size: 22px;
}

.link-box a {
    color: black;
    text-decoration: underline;
    margin-left: 10px;
}

/* ===== LINKS IMAGE ===== */
.links-image {
    position: absolute;
    right: 80px;
    top: 200px;
}

.links-image img {
    width: 500px;
}
/* ===== CONTACT FORM ===== */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-top: 20px;
}

/* inputs */
.contact-form input {
    width: 300px;
    padding: 15px 20px;
    border-radius: 25px;
    border: 6px solid #f4a6b5;
    background-color: #dcdcdc;
    font-size: 18px;
    outline: none;
}

/* textarea */
.contact-form textarea {
    width: 700px;
    height: 150px;
    padding: 20px;
    border-radius: 25px;
    border: 6px solid #f4a6b5;
    background-color: #dcdcdc;
    font-size: 18px;
    resize: none;
    outline: none;
}

/* button */
.contact-form button {
    width: 150px;
    padding: 15px;
    border: none;
    border-radius: 20px;
    background-color: #e59aa9;
    color: white;
    font-size: 20px;
    cursor: pointer;
}

/* hover эффект (по желанию) */
.contact-form button:hover {
    background-color: #d88495;
}
/* ===== GALLERY ===== */
.gallery {
    display: flex;
    gap: 30px;
    margin-top: 40px;
    align-items: flex-start;
    justify-content: center;
}

/* большие фото */
.gallery .big {
    width: 280px;
    height: 420px;
    object-fit: cover;
    border-radius: 25px;
    border: 6px solid #f4a6b5;
    box-shadow: 10px 10px 20px rgba(0,0,0,0.3);
}

/* колонка маленьких */
.small-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* маленькие фото */
.small-column img {
    width: 180px;
    height: 200px;
    object-fit: cover;
    border-radius: 25px;
    border: 6px solid #f4a6b5;
    box-shadow: 10px 10px 20px rgba(0,0,0,0.3);
}

/* Title box */
.resume-title {
    position: absolute;
    top: 140px;
    left: 100px;
    background: #e6e6e6;
    border: 6px solid #f5a3b7;
    border-radius: 25px;
    padding: 5px 25px;
}

.resume-title h2 {
    margin: 0;
    font-size: 40px;
}

/* Resume container */
.resume-container {
    display: flex;
    justify-content: center;
    margin-top: 200px;}

/* Overlay */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    background: rgba(0,0,0,0.85);

    display: none;
    justify-content: center;
    align-items: center;
}

/* Show overlay when targeted */
.overlay:target {
    display: flex;
}

/* Full image */
.overlay-content {
    max-width: 80%;
    max-height: 80%;
}

/* Close button */
.close {
    position: absolute;
    top: 30px;
    right: 50px;
    font-size: 40px;
    color: white;
    text-decoration: none;
}

/* Hover zoom (оставляем) */
.resume-image {
    width: 420px;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.resume-image:hover {
    transform: scale(1.1);
}
/* === Media Page === */

/* Title block */
.media-title {
    position: absolute;
    top: 120px; /* было 160px → подняли выше */
    left: 120px;

    background: #e6e6e6;
    border: 6px solid #f5a3b7;
    border-radius: 20px; /* чуть меньше */

    padding: 15px 30px; /* уменьшили */

    z-index: 2;
}

.media-title h2 {
    margin: 0;
    font-size: 36px; /* было 48px → уменьшили */
}

/* Main text box */
.media-box {
    position: absolute;
    top: 240px;
    left: 120px;

    width: 700px;
    padding: 40px;

    background: #e6e6e6;
    border: 6px solid #f5a3b7;
    border-radius: 40px;

    font-size: 28px;
    line-height: 1.4;
}