/* =============================================================
   TABLE OF CONTENTS
   -------------------------------------------------------------
   1. BASE / RESET
   2. HEADER & NAV
   3. HAMBURGER
   4. HERO
   5. ABOUT
   6. WEB PROJECTS
   7. PHOTOGRAPHY
   8. CONTACT
   9. SCROLL REVEAL
   10. FOOTER
   11. RESPONSIVE / BREAKPOINTS

   Top-level banners are wrapped with =====, subsections with ---.
   Search for "===== NAME" to jump straight to a section.
   ============================================================= */


/* ===== BASE / RESET ===== */
:root {
    --brand: #A61C35;
    --brand-rgb: 166, 28, 53;
    --brand-hover: #D95B72;
    --brand-bg: #fcf3f5;
}

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


html {
    scroll-behavior: smooth;
}


body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: #F2F2F2;
    color: #333;
    padding-top: 70px;
}

body.about-page,
body.photography-page {
    background: linear-gradient(130deg, #fff 5%, var(--brand-bg));
    background-attachment: fixed;
}

h1,
h2,
h3 {
    font-family: 'Montserrat', sans-serif;
    color: var(--brand);
    font-weight: 700;
}

p {
    font-family: 'Montserrat', sans-serif;
    color: #333;
}

/* --- Focus styles --- */
:focus:not(:focus-visible) {
    outline: none;
}

:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 3px;
    border-radius: 2px;
}

/* --- Scroll progress bar --- */
#scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0;
    background: var(--brand);
    z-index: 1000;
    pointer-events: none;
    transition: width 0.08s linear;
}


/* ===== HEADER & NAV ===== */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px clamp(20px, 6vw, 250px);
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 100;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    background-color: rgba(242, 242, 242, 0.2);
    backdrop-filter: blur(10px);
}

header .logo img {
    height: 60px;
    width: auto;
}

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

nav ul li a {
    position: relative;
    text-decoration: none;
    color: var(--brand);
    font-weight: 600;
    font-size: 15px;
    transition: color 0.3s, transform 0.2s;
    padding: 5px 10px;
}

nav ul li a.active::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 20px;
    height: 2px;
    background-color: var(--brand);
    border-radius: 2px;
    transform: translateX(-50%);
}

nav ul li a:hover {
    color: var(--brand-hover);
    transform: scale(1.05);
}

nav ul li.lang-switcher {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 4px 14px;
    border: 1px solid rgba(var(--brand-rgb), 0.25);
    border-radius: 999px;
}

.lang-switcher a {
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 1.5px;
    color: var(--brand);
    opacity: 0.5;
    padding: 2px 0;
    text-decoration: none;
    transition: opacity 0.2s;
}

.lang-switcher a:hover {
    opacity: 0.8;
    transform: none;
}

.lang-switcher a.active {
    border-bottom: none;
    font-weight: 700;
    opacity: 1;
}

.lang-switcher a.active::after {
    display: none;
}

/* Lock body scroll when mobile menu is open */
body.menu-open {
    overflow: hidden;
    touch-action: none;
}

/* Disable the header's backdrop-filter while the menu is open.
   Otherwise it makes the header the containing block for the
   position: fixed nav, breaking full-viewport centering. */
body.menu-open header {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
}

/* ===== HAMBURGER — 3-bar, polished tap target ===== */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    width: 44px;
    height: 44px;
    padding: 0;
    cursor: pointer;
    z-index: 200;
    border: 0;
    border-radius: 10px;
    background-color: transparent;
    transition: background-color 0.25s ease;
    -webkit-tap-highlight-color: transparent;
    box-sizing: border-box;
}

.hamburger:hover,
.hamburger:focus-visible {
    background-color: rgba(var(--brand-rgb), 0.1);
    outline: none;
}

.hamburger.active,
.hamburger.active:hover,
.hamburger.active:focus-visible {
    background-color: transparent;
}

.hamburger span {
    display: block;
    width: 26px;
    height: 2.5px;
    background-color: var(--brand);
    border-radius: 3px;
    transform-origin: center;
    transition: transform 0.35s cubic-bezier(0.65, 0, 0.35, 1),
                opacity 0.2s ease;
}

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

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

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


#overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgb(250, 248, 248);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 50;
}

#overlay.active {
    opacity: 5;
    pointer-events: auto;
}

/* ===== HERO ===== */
.hero {
    position: relative;
    width: 100%;
    height: 90vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 40px;
    text-align: center;
    gap: 10px;

    /* elegant mesh gradient */
    background: radial-gradient(circle at 20% 30%, var(--brand-hover) 0%, rgba(255, 255, 255, 0) 60%),
        radial-gradient(circle at 80% 70%, #a61c35 0%, rgba(255, 255, 255, 0) 70%),
        #f7f7f7;
}

.hero.hero--notfound {
    background: linear-gradient(130deg, #fff 5%, var(--brand-bg));
}

.hero-content {
    position: relative;
    z-index: 5;
}

/* --- Hero text --- */

.hero-title {
    letter-spacing: 1.3px;
    font-size: 1.5rem;
}

.hero-subtitle {
    font-size: 1.1rem;
    line-height: 1.6;
    letter-spacing: 1.5px;
    color: #444;
    margin-bottom: 30px;
}

/* --- Role rotator --- */

.hero-roles {
    height: 76px;
    margin-bottom: 45px;
    overflow: hidden;
    position: relative;
    width: 80vw;
    max-width: none;
    margin-left: calc(50% - 40vw);
}

.hero-roles .role {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    font-size: 35px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 5px;
    color: #a61c35;
}

.hero-roles .role.active {
    opacity: 1;
    transform: translateY(0);
}


.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 50px;
    margin-top: 30px;
}

.btn {
    position: relative;
    font-family: 'Montserrat', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: white;
    background-color: var(--brand);
    text-decoration: none;
    padding: 18px 28px;
    border-radius: 50px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.3s;
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.2);
}

.btn:hover {
    transform: scale(1.1);
    box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.3);
}

.btn::before {
    content: '';
    position: absolute;
    top: var(--y, 50%);
    left: var(--x, 50%);
    width: 150%;
    height: 150%;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.2), transparent 40%);
    transform: translate(-50%, -50%);
    pointer-events: none;
    border-radius: 50px;
    transition: background 0.2s;
}

.hero-photo {
    padding-top: 100px;
}

.hero-photo img {
    height: 650px;
    width: auto;
    filter: drop-shadow(0 14px 28px rgba(var(--brand-rgb), 0.25));
}



/* ===== ABOUT ===== */
#about {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 50px 10%;
    background-color: transparent;
}

.about-left {
    flex: 1;
    max-width: 80%;
}

.about-right {
    margin-top: 60px;
    flex: 1;
}

.contact-me {
    text-align: left;
    margin-top: 30px;
    margin-bottom: 40px;
}

.contact-me a {
    display: inline-block;
    padding: 14px 36px;
    background-color: var(--brand);
    color: white;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-decoration: none;
    border-radius: 30px;
    box-shadow: 0 4px 14px rgba(var(--brand-rgb), 0.18);
    transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
}

.contact-me a:hover {
    background-color: var(--brand-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(var(--brand-rgb), 0.25);
}

.about-container {
    display: flex;
    flex-direction: column;
}

.toggle-more {
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    text-align: left;
    cursor: pointer;
    display: inline-block;
    padding: 6px 16px;
    background-color: var(--brand);
    color: white;
    text-decoration: none;
    border-radius: 20px;
    transition: background 0.3s ease;
    border: none;
}

.toggle-more:hover {
    background-color: var(--brand-hover);
}

@media (max-width: 1024px) {
    .section.section-background {
        flex: 1 1 calc(50% - 20px);
    }
}

@media (max-width: 600px) {
    .section.section-background {
        flex: 1 1 100%;
    }
}

.section-left,
.section-right {
    flex: 1;
    min-width: 300px;
}

.personal-info {
    padding: 0;
    background: none;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    animation: fadeIn 1s ease-in-out;
}

.personal-info p {
    font-size: 15px;
    margin: 0;
    color: #555;
    line-height: 1.5;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0;
    background: none;
    border: none;
}

.personal-info p b {
    color: #1a1a1a;
    font-weight: 600;
    margin-right: 4px;
}

.personal-info i {
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    background-color: rgba(var(--brand-rgb), 0.1);
    color: var(--brand);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    margin: 0;
}

/* Shared section title — used by About, Web Projects, Photography */
#about h1,
#webprojects h1,
#photography h1 {
    font-size: 60px;
    font-weight: 700;
    color: var(--brand);
    margin: 20px 0;
}

#about p {
    font-size: 15px;
    line-height: 1.8;
    max-width: 900px;
    margin: 0 auto;
    text-align: justify;
}

#about b {
    font-weight: bold;
    color: var(--brand);
}

#AboutMePic1 {
    margin-bottom: 45px;
    align-self: center;
    width: 350px;
    height: 350px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}


#AboutMePic1:hover {
    transform: scale(1.1);
    transition: transform 0.3s ease-in-out;
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.3);
}

.about-sections {
    background: transparent;
    padding: 30px 8%;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.section {
    margin: 0 auto 20px;
    padding: 25px 20px;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    max-width: 800px;
}

.about-sections>section:nth-child(5) {
    grid-column: 1 / -1;
}

@media (max-width: 900px) {
    .about-sections {
        grid-template-columns: 1fr;
    }
}

h3 i {
    color: var(--brand);
    margin-right: 10px;
    font-size: 15px;
    vertical-align: middle;
}

.section-background {
    background: #fffafa;
    padding: 28px 22px;
    border-radius: 15px;
    box-shadow: 0 6px 28px rgba(var(--brand-rgb), 0.05);
    display: flex;
    flex-direction: column;
    height: 100%;
    box-sizing: border-box;
}

/* Education + Experience: inverted brand-red cards as focal points.
   Inner timeline items stay light so the content reads cleanly. */
.about-sections > :nth-child(-n+2) .section-background {
    background: var(--brand);
    box-shadow: 0 8px 28px rgba(var(--brand-rgb), 0.22);
}

.about-sections > :nth-child(-n+2) .section-background > h3 {
    color: #fff;
}

.about-sections > :nth-child(-n+2) .section-background > h3 i {
    color: #fff;
}

.about-sections > :nth-child(-n+2) .section-background .timeline-item {
    background-color: #fff8f8;
    border-color: rgba(255, 255, 255, 0.3);
}

.about-sections > :nth-child(-n+2) .section-background .timeline-item:hover {
    background-color: #fff;
    border-color: #fff;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
}


.section-background h3 {
    font-size: 22px;
    margin-bottom: 18px;
    text-align: center;
}

.section-background .timeline {
    flex: 1;
}

.section-background p {
    color: #333;
}

.timeline {
    position: relative;
}

.timeline-item {
    position: relative;
    background-color: rgba(255, 255, 255, 0.6);
    padding: 12px 14px;
    margin: 8px 0;
    border: 1px solid rgba(217, 173, 181, 0.5);
    border-radius: 8px;
    box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.06);
    animation: fadeIn 1s ease-in-out;
    transition: background-color 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    display: flex;
    flex-direction: column;
}

/* Hide the legacy <br> tags that sit between the year, the short-text,
   and the See-more button — they were creating big empty gaps. */
.timeline-item p + br {
    display: none;
}

/* Visually move the See-more button up to sit right under the year,
   and push the description + bullet list to render below it on expand. */
.timeline-item .toggle-more {
    order: 10;
    align-self: flex-start;
    margin-top: 16px;
}

.timeline-item .short-text {
    order: 11;
    margin-top: 12px;
}

.timeline-item .full-list {
    order: 12;
}

.timeline-item:hover {
    background-color: #fff;
    border-color: rgba(var(--brand-rgb), 0.4);
    box-shadow: 0px 4px 10px rgba(var(--brand-rgb), 0.12);
}

/* Collapsed by default — revealed when .timeline-item has .expanded */
.timeline-item .short-text,
.timeline-item .full-list {
    display: none;
}

.timeline-item.expanded .short-text {
    display: block;
}

.timeline-item.expanded .full-list {
    display: block;
}


.timeline-item h3 {
    margin: 0;
    font-size: 15px;
    color: var(--brand);
}

.timeline-item p {
    margin: 5px 0 0;
    color: #333;
}

/* --- Skills --- */
.skills-container {
    display: flex;
    gap: 20px;
}

.skills-column {
    flex: 1;
}

.skills-column h3 {
    font-size: 15px;
    color: var(--brand);
    border-bottom: 2px solid var(--brand);
    padding-bottom: 5px;
    margin-bottom: 10px;
}

.skills-column ul {
    list-style: none;
    padding: 0;
    text-align: center;
}

.skills-column li {
    margin: 5px 0;
}

/* --- Languages --- */
.languages-container {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.language-item {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
}

.progress-bar {
    flex: 1;
    height: 8px;
    background-color: rgba(var(--brand-rgb), 0.12);
    border-radius: 4px;
    overflow: hidden;
}

.progress {
    height: 10px;
    background-color: var(--brand);
    border-radius: 5px;
}

/* --- Hobbies --- */
.hobbies-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 14px;
    text-align: center;
}

.hobbies-grid .hobby {
    text-align: center;
    background-color: #fff;
    border: 1px solid rgba(217, 173, 181, 0.5);
    border-radius: 10px;
    padding: 12px 8px;
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.04);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.hobbies-grid .hobby:hover {
    transform: translateY(-3px);
    box-shadow: 0px 6px 14px rgba(var(--brand-rgb), 0.12);
    border-color: rgba(var(--brand-rgb), 0.4);
}

.hobby i {
    font-size: 15px;
    color: var(--brand-hover);
}

.hobby i:hover {
    transform: scale(1.1);
    color: var(--brand);
    transition: transform 0.2s, color 0.3s;
}

.hobby p {
    margin-top: 10px;
    font-size: 15px;
    color: #333;
}

/* ===== WEB PROJECTS ===== */
#webprojects {
    padding: 50px 0;
    background: linear-gradient(130deg, #fff 5%, var(--brand-bg));
}

.tab-nav {
    display: flex;
    justify-content: center;
    gap: 100px;
    flex-wrap: wrap;
}

.tab {
    position: relative;
    cursor: pointer;
    font-size: 1.2em;
    font-weight: 600;
    transition: color 0.3s;
    font-family: 'Montserrat', sans-serif;
}

.tab::after {
    content: "";
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background-color: var(--brand);
    transition: width 0.3s;
}

.tab:hover::after,
.tab.active::after {
    width: 100%;
}

.tab:hover {
    color: var(--brand);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}


#webprojects h1 {
    padding-left: 130px;
}

#webprojects .container {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #ffffffa2;
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
    border-radius: 10px;
    gap: 100px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
}

#webprojects .intro {
    flex: 0 0 auto;
    max-width: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
}

#webprojects .project-image {
    width: 116%;
    height: auto;
    display: block;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#webprojects .project-image:hover {
    transform: scale(1.03);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

#webprojects .project-info {
    flex: 0 0 auto;
    max-width: 600px;
}

#webprojects h2 {
    color: var(--brand);
    font-family: 'Montserrat', sans-serif;
    font-size: 30px;
    margin-bottom: 10px;
    text-align: left;
}

#webprojects p {
    font-size: 15px;
    color: #333;
    margin-bottom: 20px;
    text-align: justify;
}

#webprojects .programs-list {
    color: grey;
    padding-top: 20px;
}

.scroll-container {
    width: 100%;
    max-width: 1500px;
    max-height: 90vh;
    overflow: auto;
    background-color: #fff;
    padding: 20px;
    box-sizing: border-box;
    margin: 0 auto;
}

.scroll-container img {
    width: 100%;
    height: auto;
    display: block;
}

@media (max-width: 767px) {
    .scroll-container {
        padding: 10px;
        max-height: 70vh;
    }
}

@media (min-width: 768px) and (max-width: 1024px) {
    .scroll-container {
        padding: 15px;
        max-height: 80vh;
    }
}

@media (min-width: 1501px) {
    .scroll-container {
        width: 1500px;
    }
}

.intro.vr-intro {
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

#webprojects .intro.vr-intro .click-text {
    margin-top: -10px;
    text-align: center;
    font-size: 14px;
    color: var(--brand);
}

#webprojects .moretocome {
    padding-top: 40px;
    text-align: center;
    padding-left: 0px;
}

.back-top {
    text-align: left;
    position: fixed;
    bottom: 50px;
    right: 20px;
    z-index: 200;
}

.back-top button {
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    padding: 10px 20px;
    color: white;
    background-color: var(--brand);
    border: none;
    border-radius: 100px;
    cursor: pointer;
    transition: transform 0.2s, background-color 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
}

.back-top button:hover {
    background-color: var(--brand-hover);
    transform: scale(1.1);
}

.back-top button.show {
    opacity: 1;
    visibility: visible;
}


/* ===== PHOTOGRAPHY ===== */
#photography {
    padding: 50px 130px;
    text-align: justify;
}

#photography p {
    font-size: 15px;
}

#photography b {
    font-weight: bold;
    color: var(--brand);
}

#photos {
    padding: 0 0 30px;
    margin: 0;
}

#photos .container h1 {
    text-align: center;
    margin-top: 50px;
    font-size: 35px;
}

#photos .container h2 {
    text-align: center;
    margin-top: 50px;
    font-size: 25px;
}

#photos .container {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: flex-start;
    padding-top: 80px;
    padding-left: 20px;
    padding-right: 20px;
    flex-wrap: wrap;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

#photos .container .box,
#photos .container .box2 {
    flex: 1 1 48%;
    padding: 20px;
    box-sizing: border-box;
}

.box2 h2,
.box2 h1 {
    color: var(--brand);
}

.box h2,
.box h1 {
    color: #f2f2f2 !important;
}

.box {
    padding: 20px;
    background-color: var(--brand);
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}

.box2 {
    padding: 20px;
    background-color: #ffffffa2;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
}


/* --- Gallery --- */
.gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.box2 .gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    max-width: 600px;
    margin: 20px auto;
    box-sizing: border-box;
}

.box2 .gallery img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    cursor: pointer;
    transform-origin: center center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery img {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    cursor: pointer;
    transform-origin: center center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Video thumbnail (opens in lightbox).
   .video-thumb itself is just a positioning context — it does NOT scale.
   The inner <img> scales on hover so videos behave exactly like pics,
   and the play-icon overlay stays put (no zoom-in feel). */
.video-thumb {
    position: relative;
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
    border-radius: 8px;
}

.video-thumb img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
    transform-origin: center center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.video-thumb .play-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    padding-left: 4px;
    box-sizing: border-box;
    pointer-events: none;
    transition: background 0.25s ease;
}

.video-thumb:hover .play-icon,
.video-thumb:focus-visible .play-icon {
    background: rgba(var(--brand-rgb), 0.85);
}

.gallery img:hover,
.video-thumb:hover img {
    transform: scale(1.05);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
}

/* --- Lightbox --- */
#lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

#lightbox img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 10px;
    transform-origin: center center;
    transition: transform 0.3s ease;
}

#lightbox-video {
    display: none;
    max-width: 90%;
    max-height: 90%;
    border-radius: 10px;
    background: #000;
}

#lightbox.video-mode #lightbox-image {
    display: none;
}

#lightbox.video-mode #lightbox-video {
    display: block;
}

#lightbox .close,
#lightbox .prev,
#lightbox .next {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.45);
    color: #fff;
    border: 0;
    border-radius: 50%;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    z-index: 1001;
    transition: background 0.25s ease;
    -webkit-tap-highlight-color: transparent;
}

#lightbox .close:hover,
#lightbox .prev:hover,
#lightbox .next:hover,
#lightbox .close:focus-visible,
#lightbox .prev:focus-visible,
#lightbox .next:focus-visible {
    background: rgba(var(--brand-rgb), 0.9);
    outline: none;
}

#lightbox .close {
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    font-size: 26px;
}

#lightbox .prev,
#lightbox .next {
    top: 50%;
    width: 48px;
    height: 48px;
    font-size: 20px;
    transform: translateY(-50%);
}

#lightbox .prev { left: 20px; }
#lightbox .next { right: 20px; }

@media (max-width: 600px) {
    #lightbox .close,
    #lightbox .prev,
    #lightbox .next {
        width: 38px;
        height: 38px;
        font-size: 16px;
    }
    #lightbox .close { top: 12px; right: 12px; }
    #lightbox .prev { left: 8px; }
    #lightbox .next { right: 8px; }
}

.glightbox-container .scroll-container {
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x pan-y;
}

.glightbox-container .scroll-container img {
    width: 100%;
    max-width: none;
    transform-origin: center center;
    transition: transform 0.3s ease;
    cursor: grab;
}

/* ===== CONTACT ===== */
#contact {
    background: linear-gradient(160deg, #fff 60%, var(--brand-bg));
    position: relative;
    padding: 100px 10%;
    font-family: 'Montserrat', sans-serif;
    color: #333;
    overflow: hidden;
}

/* --- Animated gradient highlight --- */
#contact::before {
    content: "";
    position: absolute;
    top: -30%;
    left: -30%;
    width: 160%;
    height: 160%;
    background: radial-gradient(circle at center, rgba(var(--brand-rgb), 0.1), transparent 70%);
    animation: moveBg 12s ease-in-out infinite alternate;
    z-index: 0;
}

@keyframes moveBg {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(-10%, -10%);
    }
}

/* --- Entrance animation --- */
@keyframes fadeUp {
    0% {
        opacity: 0;
        transform: translateY(40px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Layout --- */
.contact-container {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 80px;
    flex-wrap: wrap;
}

.contact-text {
    flex: 1;
    min-width: 320px;
}

.contact-text h1 {
    font-size: 56px;
    font-weight: 700;
    color: var(--brand);
    margin-bottom: 20px;
}

.contact-text p {
    font-size: 17px;
    line-height: 1.6;
    margin-bottom: 25px;
}

.contact-text ul {
    list-style: none;
    padding: 0;
}

.contact-text li {
    font-size: 16px;
    margin-bottom: 10px;
}

.contact-text i {
    color: var(--brand);
    margin-right: 10px;
}

.contact-text i:hover {
    transform: scale(1.1);
    color: var(--brand-hover);
    transition: transform 0.2s, color 0.3s;
}

/* --- Form --- */
.contact-form {
    flex: 1;
    min-width: 320px;
    background: #fff;
    padding: 45px 50px;
    border-radius: 18px;
    box-shadow: 0 6px 28px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    animation: fadeUp 1.6s ease forwards;
}

.contact-form label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: var(--brand);
    font-size: 14px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 18px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s ease;
    background: #fafafa;
    resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--brand);
    background: #fff;
    outline: none;
    box-shadow: 0 0 8px rgba(var(--brand-rgb), 0.15);
}

.contact-form input.invalid,
.contact-form textarea.invalid {
    border-color: #c33;
    background: #fff7f7;
}

.field-error {
    color: #c33;
    font-size: 13px;
    margin: -10px 0 8px;
    min-height: 18px;
}

.email-row {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.direct-contact {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    margin-top: 28px;
    padding-top: 22px;
    border-top: 1px solid rgba(var(--brand-rgb), 0.18);
    text-align: left;
}

.direct-contact p {
    margin: 0;
    color: #444;
    font-size: 15px;
}

.direct-contact a.email {
    color: var(--brand);
    font-weight: 600;
    font-size: 17px;
    text-decoration: none;
}

.direct-contact a.email:hover {
    color: var(--brand-hover);
}

.optional-hint {
    color: #888;
    font-size: 0.85em;
    font-weight: normal;
}

.copy-email-btn {
    background: transparent;
    border: 1px solid var(--brand);
    color: var(--brand);
    padding: 2px 10px;
    border-radius: 999px;
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.5;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.copy-email-btn:hover {
    background: var(--brand);
    color: #fff;
}

.copy-email-btn.copied {
    background: #2e7d32;
    border-color: #2e7d32;
    color: #fff;
}

.contact-form form button {
    background: var(--brand);
    color: #fff;
    border: none;
    padding: 14px 32px;
    border-radius: 30px;
    font-family: 'Montserrat', sans-serif;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
}

.contact-form form button:hover {
    background: var(--brand-hover);
    transform: translateY(-2px);
}

/* --- Social icons --- */
.socials {
    margin-top: 30px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 25px;
}

.socials a {
    font-size: 25px;
    color: var(--brand);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: color 0.3s ease;
}

.socials a i {
    display: block;
    line-height: 1;
    transform-origin: center center;
    transition: transform 0.2s ease;
}

.socials a:hover {
    color: var(--brand-hover);
}

.socials a:hover i {
    transform: scale(1.08);
}

.form-status {
    margin-top: 15px;
    font-size: 15px;
    font-weight: 600;
    text-align: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.form-status.success {
    color: #2ecc71;
    opacity: 1;
}

.form-status.error {
    color: #e74c3c;
    opacity: 1;
}


/* ===== SCROLL REVEAL ===== */
.reveal {
    opacity: 0;
    transform: translateY(60px);
    transition: opacity 1s ease, transform 1s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* --- Contact responsive --- */
@media (max-width: 1024px) {
    .contact-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 50px;
    }

    .contact-text {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .contact-text h1 {
        font-size: 44px;
    }

    #contact {
        padding: 80px 8%;
    }

    .direct-contact {
        align-items: center;
        text-align: center;
    }

    .contact-form {
        padding: 35px;
        align-items: center;
    }
}

@media (max-width: 768px) {
    .contact-text h1 {
        font-size: 36px;
    }

    .contact-form {
        padding: 25px;
    }
}

@media (max-width: 430px) {
    .contact-text h1 {
        font-size: 32px;
    }

    .contact-form {
        padding: 25px;
    }
}



/* ===== FOOTER ===== */
footer {
    background-color: #f5e6e8;
    color: #333;
    text-align: center;
    position: relative;
    width: 100%;
    font-size: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0;
    padding: 30px 20px;
    z-index: 10;
    justify-content: space-between;
    border-top: 1px solid rgba(var(--brand-rgb), 0.15);
}

footer p {
    color: #333;
}

footer a {
    color: var(--brand);
    text-decoration: none;
    transition: color 0.3s;
    margin: 5px;
    font-weight: 600;
}

footer a:hover {
    color: var(--brand-hover);
}

footer nav a {
    font-weight: 500;
}

/* --- Footer socials --- */
.footer-socials {
    display: flex;
    align-items: center;
    gap: 22px;
    margin: 12px 0 6px;
}

.footer-socials a {
    color: var(--brand);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    margin: 0;
    padding: 4px;
    font-size: 22px;
    transition: color 0.3s;
}

.footer-socials a i {
    display: block;
    line-height: 1;
    transform-origin: center center;
    transition: transform 0.2s ease;
}

.footer-socials a:hover {
    color: var(--brand-hover);
}

.footer-socials a:hover i {
    transform: scale(1.1);
}


footer nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 8px;
}

footer nav::after {
    content: '';
    display: block;
    width: 350px;
    height: 1px;
    background: rgba(var(--brand-rgb), 0.18);
    margin-top: 14px;
}

footer nav ul {
    list-style: none;
    padding: 0;
    display: flex;
    margin: 10px 0;
}

footer nav ul li {
    margin: 0 10px;
}


/* ===== RESPONSIVE / BREAKPOINTS =====
   Global responsive overrides: 1024px, 768px, 430px.
   Per-section breakpoints live with their section above. */
@media (max-width: 1024px) {

    /* --- Header & Nav --- */
    header {
        padding: 10px 80px;
    }

    header .logo img {
        height: 50px;
    }

    nav {
        position: fixed;
        inset: 0;
        width: 100%;
        height: 100%;
        background-color: #F2F2F2;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 24px;
        box-sizing: border-box;
        opacity: 0;
        visibility: hidden;
        transform: scale(1.03);
        transition: opacity 0.3s ease, transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.3s;
        z-index: 180;
    }

    nav.show {
        opacity: 1;
        visibility: visible;
        transform: scale(1);
    }

    nav ul {
        flex-direction: column;
        align-items: center;
        gap: 10px;
        margin: 0;
        padding: 0;
        text-align: center;
        list-style: none;
    }

    nav ul li {
        opacity: 0;
        transform: translateY(10px);
        transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1);
    }

    nav.show ul li {
        opacity: 1;
        transform: translateY(0);
    }

    nav.show ul li:nth-child(1) { transition-delay: 0.06s; }
    nav.show ul li:nth-child(2) { transition-delay: 0.11s; }
    nav.show ul li:nth-child(3) { transition-delay: 0.16s; }
    nav.show ul li:nth-child(4) { transition-delay: 0.21s; }
    nav.show ul li:nth-child(5) { transition-delay: 0.26s; }
    nav.show ul li:nth-child(6) { transition-delay: 0.33s; }

    nav ul li a {
        display: inline-block;
        position: relative;
        font-family: 'Montserrat', sans-serif;
        font-size: 22px;
        font-weight: 400;
        letter-spacing: 0.5px;
        color: #1a1a1a;
        padding: 6px 4px;
        transition: color 0.25s ease;
    }

    nav ul li a:hover {
        color: var(--brand);
        transform: none;
    }

    nav ul li a.active {
        color: var(--brand);
        font-weight: 500;
        border-bottom: 0;
    }

    nav ul li a.active::after {
        content: "";
        position: absolute;
        left: 50%;
        bottom: -1px;
        width: 20px;
        height: 2px;
        background-color: var(--brand);
        border-radius: 2px;
        transform: translateX(-50%);
    }

    nav ul li.lang-switcher {
        margin-top: 20px;
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 5px 16px;
        border: 1px solid rgba(var(--brand-rgb), 0.25);
        border-radius: 999px;
    }

    nav ul li.lang-switcher a {
        font-size: 12px;
        font-weight: 500;
        letter-spacing: 1.5px;
        padding: 2px 0;
        color: var(--brand);
    }

    nav ul li.lang-switcher a.active::after {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    /*Hero*/
    .hero {
        flex-direction: column;
        height: 1000px;
        text-align: center;
        padding: 0px;
        margin: 0px;
    }

    .hero-title {
        padding-top: 90px;
    }

    .hero-subtitle {
        padding-top: 0px;
        padding-bottom: 20px;
    }

    .hero-roles {
        width: 90vw;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-roles .role {
        font-size: 28px;
        letter-spacing: 4px;
    }

    .hero-buttons {
        gap: 30px;
    }

    .btn {
        font-size: 18px;
        padding: 16px 24px;
    }

    .hero-photo img {
        height: 500px;
        width: auto;
        padding-bottom: 0px;
    }

    /*Web Projects*/
    #webprojects .container {
        flex-direction: column;
        align-items: center;
        padding: 20px 10px;
        gap: 10px;
        margin: 20px 70px;
    }

    #webprojects .tab-nav {
        flex-direction: row;
        align-items: center;
        gap: 60px;
    }

    #webprojects .tab {
        font-size: 20px;
        text-align: center;
        width: auto;
    }

    #webprojects .tab::after {
        height: 2px;
    }

    #webprojects .intro,
    #webprojects .project-info {
        width: 100%;
        padding: 10px 0;
    }

    #webprojects .project-info h2 {
        font-size: 22px;
        margin-top: 20px;
        text-align: center;
    }

    #webprojects .project-info p {
        font-size: 15px;
        line-height: 1.5;
        text-align: center;
    }

    #webprojects h1 {
        font-size: 40px;
        text-align: center;
        padding-left: 0;
        margin-top: 20px;
    }

    .project-image {
        max-width: 100%;
        height: auto;
        margin: 0 auto;
        border-radius: 10px;
    }

}

@media (max-width: 768px) {

    /* Header — only padding differs from the 1024px overrides above */
    header {
        padding: 10px 20px;
    }

    /* Hero */
    .hero {
        padding-bottom: 0;
        padding-top: 0;
    }

    .hero .hero-buttons {
        flex-direction: row;
        gap: 25px;
        margin-top: -20px;
    }

    .btn {
        font-size: 20px;
        padding: 15px 30px;
    }

    /* About */
    #about {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 30px;
        padding: 20px;
    }

    .about-left {
        max-width: 100%;
        flex: none;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    #about .about-left h1 {
        font-size: 40px;
    }

    #about .about-left p {
        font-size: 15px;
        line-height: 1.6;
        text-align: center;
    }

    .contact-me {
        margin-top: 50px;
    }

    .about-right {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        margin-top: -20px;
    }

    .about-right img {
        max-width: 250px;
        width: 100%;
        height: auto;
        border-radius: 10px;
    }

    .personal-info {
        text-align: center;
        margin-top: 10px;
    }

    #AboutMePic1 {
        margin-bottom: 20px;
        width: 280px;
        height: 300px;
    }

    .skills-container {
        flex-direction: column;
        gap: 30px;
    }

    .skills-column {
        flex: unset;
        width: 100%;
    }

    .skills-column h3 {
        font-size: 18px;
        text-align: center;
    }

    .skills-column ul {
        padding: 0 10px;
    }

    .skills-column li {
        font-size: 15px;
        margin: 8px 0;
    }

    .hobbies-grid {
        grid-template-columns: repeat(3, 2fr);
    }

    /* Web Projects — only tab-nav gap differs from 1024px overrides above */
    #webprojects .tab-nav {
        gap: 50px;
    }

    /* Contact */
    #contact {
        padding: 30px 15px;
        text-align: center;
    }

    #contact h1 {
        font-size: 40px;
    }

    #contact p,
    #contact ul li {
        font-size: 15px;
    }

    #contact ul {
        margin-left: 0;
        padding-left: 0;
        list-style-position: inside;
    }

    /* Photography */
    #photos .container {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 40px;
        padding-top: 20px;
    }

    #photos .box,
    #photos .box2 {
        width: 100%;
        max-width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    #photos .box h1,
    #photos .box2 h1 {
        font-size: 30px;
        margin-bottom: 5px;
        margin-top: 20px;
    }

    #photos .box h2,
    #photos .box2 h2 {
        margin-top: 30px;
    }

    #photography {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 30px;
        padding: 20px;
    }

    #photography h1 {
        font-size: 40px;
        text-align: center;
    }

    #photography p {
        font-size: 15px;
        line-height: 1.6;
        text-align: center;
    }

    .video-thumb .play-icon {
        width: 42px;
        height: 42px;
        font-size: 16px;
        padding-left: 3px;
    }

    /* Footer */
    footer {
        padding: 20px;
    }

    footer nav ul {
        flex-direction: column;
        gap: 15px;
    }

    footer p {
        font-size: 15px;
        margin-top: 15px;
    }

    footer img {
        max-width: 200px;
        height: auto;
    }
}

@media (max-width: 430px) {

    .hero {
        padding: 15px;
        height: 750px;
    }

    .hero-title {
        font-size: 1.1rem;
    }

    .hero-subtitle {
        font-size: 0.9rem;
        line-height: 1.4;
    }

    .hero-roles {
        margin-bottom: 5px;
    }

    .hero-roles .role {
        font-size: 20px;
        letter-spacing: 2px;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .btn {
        font-size: 15px;
        padding: 12px 20px;
    }

    .hero-photo {
        padding-top: 30px;
    }

    .hero-photo img {
        height: 380px;
    }

    /* About */
    .hobbies-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .contact-me a {
        padding: 10px 65px;
        border-radius: 20px;
    }

    /* Photography */
    .category {
        width: 100%;
        text-align: center;
    }

    main .box h1,
    main .box2 h1 {
        font-size: 30px;
        margin-bottom: 15px;
    }

    .box,
    .box2 {
        flex: none;
    }

    /* Web Projects */
    #webprojects .container {
        margin: 20px;
    }

    #webprojects .tab-nav {
        gap: 40px;
    }

    #webprojects .tab {
        font-size: 15px;
    }

    /* Footer */
    footer {
        padding: 15px;
    }

    footer p {
        font-size: 14px;
    }

    footer img {
        padding-top: 15px;
        max-width: 160px;
        height: auto;
    }
}



@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}