@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700&family=Roboto:wght@300;400;500&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', Arial, sans-serif;
    line-height: 1.7;
    color: #f5f5f5;
    background: linear-gradient(120deg, #111 0%, #222 100%);
    font-size: 1.08rem;
    letter-spacing: 0.01em;
}

/* --- Header --- */
.portfolio-header {
    text-align: center;
    padding: 4rem 1rem;
    background: linear-gradient(135deg, #181818 0%, #23232a 100%);
    color: #f5f5f5;
    position: relative;
    overflow: hidden;
}

.portfolio-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('BACK.gif') center/cover no-repeat, linear-gradient(135deg, #111 0%, #23232a 100%);
    opacity: 0.08;
    z-index: 1;
}

.portfolio-header > * {
    position: relative;
    z-index: 2;
}

.profile-img {
    width: 250px;
    height: 250px;
    border-radius: 32px;
    object-fit: cover;
    margin-bottom: 1.5rem;
    border: 6px solid #23232a;
    box-shadow: 0 6px 12px rgba(0,0,0,0.4);
    background: #181818;
    transition: transform 0.3s ease;
}

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

.portfolio-header h1,
h2, h3, h4 {
    font-family: 'Playfair Display', serif;
    color: #fff;
    letter-spacing: 0.03em;
}

.subtitle {
    font-size: 1.3rem;
    font-weight: 300;
    margin: 0.5rem 0;
    color: #bbb;
}

.contact {
    margin: 1.5rem 0;
    font-size: 1.1rem;
}

.contact a {
    color: #fff;
    text-decoration: none;
    transition: color 0.2s;
}

.contact a:hover {
    color: #bbb;
}

.social-icons {
    margin: 20px 0;
}

.social-icons a {
    color: #fff;
    font-size: 1.5rem;
    margin: 0 10px;
    text-decoration: none;
    transition: color 0.2s;
}

.social-icons a:hover {
    color: #bbb;
}

.download-btn,
.contact-btn {
    display: inline-block;
    padding: 12px 32px;
    background: #fff;
    color: #111;
    border: none;
    border-radius: 24px;
    font-size: 1.08rem;
    font-family: 'Roboto', sans-serif;
    font-weight: 600;
    letter-spacing: 0.04em;
    box-shadow: 0 2px 12px rgba(0,0,0,0.18);
    cursor: pointer;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
    margin-top: 18px;
}

.download-btn:hover,
.contact-btn:hover {
    background: #23232a;
    color: #fff;
    box-shadow: 0 4px 24px rgba(255,255,255,0.08);
    text-decoration: none;
}

/* --- Navigation --- */
.nav-wrapper {
    display: flex;
    align-items: center;
    background: #181818;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    border-radius: 0 0 18px 18px;
    z-index: 100;
}

nav.menu {
    display: flex;
    justify-content: center;
    gap: 2rem;
    background: #181818;
    padding: 1rem 0;
    border-radius: 0 0 18px 18px;
    z-index: 100;
}

nav.menu a {
    color: #fff;
    font-weight: 600;
    font-size: 1.1rem;
    text-decoration: none;
    padding: 0.3rem 1rem;
    border-radius: 18px;
    transition: background 0.2s, color 0.2s;
    display: flex;
    align-items: center;
    gap: 0.5em;
}

nav.menu a.home-link::before {
    content: "\f015";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    margin-right: 0.5em;
    font-size: 1.1em;
}

nav.menu a.about-link::before {
    content: "\f007";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    margin-right: 0.5em;
    font-size: 1.1em;
}

nav.menu a.work-link::before {
    content: "\f0b1";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    margin-right: 0.5em;
    font-size: 1.1em;
}

nav.menu a.contact-link::before {
    content: "\f0e0";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    margin-right: 0.5em;
    font-size: 1.1em;
}

nav.menu a:hover,
nav.menu a.active {
    background: #fff;
    color: #111;
}

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    width: 40px;
    height: 40px;
    cursor: pointer;
    margin-left: 1rem;
    z-index: 200;
    background: none;
    border: none;
}

.hamburger span {
    height: 4px;
    width: 28px;
    background: #fff;
    margin: 4px 0;
    border-radius: 2px;
    transition: 0.3s;
    display: block;
}

.hamburger.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* --- Sections --- */
.intro, .experience, .contact {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 40px;
    color: #fff;
}

/* --- About Section --- */
.about-content {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    background: #181818;
    border-radius: 18px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.18);
    padding: 40px 32px;
    margin: 0 auto 40px auto;
    max-width: 900px;
}

.about-img {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    background: linear-gradient(135deg, #23232a 60%, #181818 100%);
    border: 6px solid #fff;
    box-shadow: 0 8px 32px rgba(0,0,0,0.25), 0 0 0 8px #23232a;
    margin-right: 32px;
    margin-bottom: 0;
    transition: box-shadow 0.3s, transform 0.3s;
}

.about-img:hover {
    box-shadow: 0 12px 48px rgba(255,255,255,0.08), 0 0 0 12px #23232a;
    transform: scale(1.04);
}

.about-content p {
    flex: 1;
    color: #f5f5f5;
    font-size: 1.13rem;
    line-height: 1.8;
    letter-spacing: 0.01em;
    margin: 0;
    padding: 0 0 0 10px;
}

/* --- Gallery --- */
.projects-gallery {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.project {
    background: #23232a;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.18);
}

.project h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: #fff;
}

.gallery-flex {
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
    justify-content: center;
    margin-bottom: 2rem;
}

.gallery-item {
    background: #181818;
    border: 2px solid #23232a;
    border-radius: 18px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.18);
    overflow: hidden;
    width: 260px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.gallery-item img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 0;
    background: #23232a;
    border: none;
    cursor: pointer;
    margin-bottom: 0;
}

.gallery-item:hover {
    border-color: #fff;
    box-shadow: 0 8px 32px rgba(255,255,255,0.08);
}

.gallery-item img:hover {
    filter: none;
    opacity: 1;
}

/* --- Modal --- */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(17,17,17,0.97);
    justify-content: center;
    align-items: center;
    flex-direction: column;
    z-index: 1000;
}

.modal-content {
    max-width: 90vw;
    max-height: 70vh;
    border-radius: 8px;
    background: #181818;
    box-shadow: 0 8px 32px rgba(0,0,0,0.35);
    display: block;
    margin: 0 auto;
}

.close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10;
    text-shadow: 0 2px 8px #111;
}

.modal-thumbs {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-top: 24px;
    margin-bottom: 8px;
    width: 100%;
}

.modal-thumbs img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    opacity: 0.7;
    border: 2px solid #23232a;
    background: #181818;
    transition: opacity 0.3s, border 0.2s;
}

.modal-thumbs img:hover,
.modal-thumbs img.active {
    opacity: 1;
    border: 2px solid #fff;
}

/* --- Contact --- */
.contact-card {
    background: #181818;
    box-shadow: 0 4px 8px rgba(0,0,0,0.18);
    padding: 20px;
    border-radius: 8px;
}

.contact-form h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    text-align: center;
    color: #fff;
}

.input-group {
    position: relative;
    margin-bottom: 20px;
}

.input-group input,
.input-group textarea {
    width: 100%;
    padding: 10px;
    border: 1.5px solid #23232a;
    border-radius: 8px;
    font-size: 1rem;
    background: #23232a;
    color: #fff;
    margin-bottom: 10px;
    transition: border 0.2s;
}

.input-group textarea {
    resize: vertical;
}

.input-group label {
    position: absolute;
    top: 10px;
    left: 10px;
    color: #bbb;
    font-size: 1rem;
    transition: all 0.2s;
    pointer-events: none;
    background: transparent;
}

.input-group input:focus + label,
.input-group textarea:focus + label,
.input-group input:not(:placeholder-shown) + label,
.input-group textarea:not(:placeholder-shown) + label {
    top: -20px;
    left: 0;
    font-size: 0.8rem;
    color: #fff;
    background: transparent;
}

.contact-btn {
    display: block;
    width: 100%;
    padding: 12px 32px;
    background: #fff;
    color: #111;
    border: none;
    border-radius: 24px;
    font-size: 1.08rem;
    font-family: 'Roboto', sans-serif;
    font-weight: 600;
    letter-spacing: 0.04em;
    box-shadow: 0 2px 12px rgba(0,0,0,0.18);
    cursor: pointer;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}

.contact-btn:hover {
    background: #23232a;
    color: #fff;
    box-shadow: 0 4px 24px rgba(255,255,255,0.08);
    text-decoration: none;
}

.contact-info {
    text-align: center;
    margin-top: 20px;
    color: #bbb;
}

.contact-info a {
    color: #fff;
    text-decoration: none;
}

.contact-info a:hover {
    text-decoration: underline;
    color: #bbb;
}

/* --- Footer --- */
footer {
    text-align: center;
    padding: 20px;
    background: #181818;
    margin-top: 40px;
    box-shadow: 0 -2px 8px rgba(0,0,0,0.18);
    color: #bbb;
}

footer p {
    margin-top: 10px;
    color: #bbb;
}

/* --- Responsive Styles --- */
@media (min-width: 901px) {
    .nav-wrapper {
        justify-content: center;
        position: sticky !important;
        top: 0 !important;
        z-index: 100;
    }
    nav.menu {
        display: flex !important;
        position: sticky !important;
        top: 0 !important;
        background: #181818;
        box-shadow: 0 2px 8px rgba(0,0,0,0.15);
        border-radius: 0 0 18px 18px;
        padding: 1rem 0;
        z-index: 100;
        left: 0 !important;
    }
    .hamburger {
        display: none !important;
    }
    nav.menu .close-menu {
        display: none !important;
    }
}

@media (max-width: 900px) {
    .nav-wrapper {
        justify-content: space-between;
        position: sticky;
        top: 0;
        padding: 0.5rem 1rem;
        z-index: 100;
    }
    .hamburger {
        display: flex;
    }
    nav.menu {
        display: none;
        position: fixed;
        top: 0;
        left: -220px;
        height: 100vh;
        width: 200px;
        flex-direction: column;
        align-items: flex-start;
        padding: 60px 20px 0 20px;
        border-radius: 0 18px 18px 0;
        box-shadow: 2px 0 8px rgba(0,0,0,0.15);
        transition: left 0.3s ease;
        z-index: 99;
    }
    nav.menu.open {
        display: flex;
        left: 0;
    }
    nav.menu a {
        padding: 0.5rem 1rem;
        width: 100%;
        justify-content: flex-start;
    }
    nav.menu .close-menu {
        display: block;
        position: absolute;
        top: 10px;
        right: 10px;
        background: none;
        border: none;
        color: #fff;
        font-size: 1.5rem;
        cursor: pointer;
    }
    .about-content {
        flex-direction: column;
        align-items: center;
        padding: 24px 10px;
        gap: 24px;
    }
    .about-img {
        margin-right: 0;
        margin-bottom: 20px;
        width: 140px;
        height: 140px;
        max-width: 70vw;
        max-height: 70vw;
    }
    .about-content p {
        padding: 0;
        font-size: 1rem;
    }
    .projects-gallery {
        gap: 24px;
    }
    .gallery-item {
        width: 95vw;
        max-width: 400px;
        min-width: 0;
        border-radius: 24px;
        box-shadow: 0 2px 12px rgba(0,0,0,0.18);
        margin: 0 auto;
        background: #23232a;
        display: flex;
        flex-direction: row;
        align-items: center;
        padding: 10px;
        gap: 16px;
    }
    .gallery-item img {
        width: 110px;
        height: 110px;
        border-radius: 20px;
        object-fit: cover;
        margin: 0;
        background: #181818;
        box-shadow: 0 2px 8px rgba(0,0,0,0.10);
    }
    .gallery-caption {
        color: #fff;
        font-size: 1rem;
        padding-left: 10px;
        flex: 1;
        text-align: left;
    }
}

@media (max-width: 600px) {
    nav.menu {
        gap: 0.5rem;
        font-size: 0.95rem;
        padding: 50px 10px 0 10px;
        width: 180px;
    }
    .intro, .experience, .contact {
        padding: 24px 5vw;
    }
    h2 {
        font-size: 2rem;
        margin-bottom: 24px;
    }
    .about-content {
        padding: 16px 2vw;
        gap: 16px;
    }
    .about-img {
        width: 100px;
        height: 100px;
        max-width: 60vw;
        max-height: 60vw;
    }
    .gallery-flex {
        gap: 12px;
    }
    .gallery-item {
        width: 99vw;
        max-width: 99vw;
        flex-direction: column;
        align-items: stretch;
        padding: 8px;
        gap: 8px;
        border-radius: 20px;
    }
    .gallery-item img {
        width: 100%;
        height: 90px;
        border-radius: 18px;
    }
    .gallery-caption {
        padding-left: 0;
        padding-top: 4px;
        text-align: center;
    }
    .modal-content {
        max-width: 98vw;
        max-height: 40vh;
    }
    .contact-card {
        padding: 10px;
    }
    .contact-form h3 {
        font-size: 1.2rem;
    }
    .input-group input,
    .input-group textarea {
        font-size: 0.95rem;
        padding: 8px;
    }
    .contact-btn {
        padding: 10px 10px;
        font-size: 1rem;
    }
    footer {
        padding: 10px;
        font-size: 0.95rem;
    }
}