/* style.css — cleaned and enhanced for a11y & performance.
   Visual appearance and layout are preserved. */

/* Color scheme hint for form controls, scrollbars, etc. */
:root {
    color-scheme: light dark;
    --primary-color: #FF5A5F;
    --secondary-color: #00A699;
    --accent-color: #FC642D;
    --light-gray: #F7F7F7;
    --dark-gray: #484848;
    --text-color: #222222;
    --white: #FFFFFF;
    --section-bg: #FFFFFF;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --border-radius: 16px;
}

/* Accessible skip link: hidden until focused */
.skip-link {
    position: absolute;
    left: -10000px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
    background: var(--primary-color);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    text-decoration: none;
    z-index: 10000;
}

.skip-link:focus {
    left: 1rem;
    top: 1rem;
    width: auto;
    height: auto;
}

/* Reduced motion support (no visual change to static layout) */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Circular', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background: var(--light-gray);
}

/* Dark theme variables */
[data-theme="dark"] {
    --primary-color: #FF6B70;
    --secondary-color: #4ECDC4;
    --accent-color: #FF7043;
    --light-gray: #2C2C2C;
    --dark-gray: #E0E0E0;
    --text-color: #FFFFFF;
    --white: #1A1A1A;
    --section-bg: #242424;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Accessibility: focus outlines (doesn't affect resting visuals) */
:focus-visible {
    outline: 3px solid var(--secondary-color);
    outline-offset: 2px;
}

.nav-link:focus-visible,
.btn:focus-visible,
.hamburger:focus-visible,
.theme-toggle:focus-visible {
    outline: 3px solid var(--secondary-color);
    outline-offset: 3px;
}

/* Dark theme hero override (unchanged visuals) */
[data-theme="dark"] .hero {
    padding: 8rem 0 4rem;
    background: url('../img/eu1.jpg') top right no-repeat;
    background-size: cover;
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

@media (max-width: 900px) {
    [data-theme="dark"] .hero {
        padding: 8rem 0 4rem;
        background: url('../img/eu1.jpg') top center no-repeat;
        background-size: cover;
        position: relative;
        min-height: 100vh;
        display: flex;
        align-items: center;
        justify-content: flex-end;
    }
}

[data-theme="dark"] .hero::before {
    content: "";
    background: rgba(0, 0, 0, 0.3);
    position: absolute;
    inset: 0;
}

[data-theme="dark"] .portfolio-description {
    color: #fff !important;
}

[data-theme="dark"] #fullscreenImageOverlay button#fullscreenImageClose span {
    color: #fff !important;
}

/* ================= NAVBAR ================= */
.navbar {
    position: fixed;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    height: auto;
    width: 80px;
    background: transparent !important;
    box-shadow: none;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0;
    transition: left 0.3s;
}

.navbar ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    width: 100%;
    align-items: center;
}

.navbar li {
    width: 100%;
}

.navbar .nav-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-color);
    text-decoration: none;
    font-size: 1.1rem;
    padding: 0.5rem 0;
    border-radius: 12px;
    transition: background 0.2s, color 0.2s;
    width: 100%;
    background: transparent;
    position: relative;
    min-height: 56px;
}

.navbar .nav-link span {
    opacity: 0;
    visibility: hidden;
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%) translateX(10px);
    background: var(--white);
    color: var(--primary-color);
    padding: 0.3rem 0.8rem;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    box-shadow: var(--shadow);
    white-space: nowrap;
    transition: opacity 0.2s, visibility 0.2s;
    z-index: 2;
}

/* ================= LANGUAGE SELECTOR ================= */
/* Styles for the custom language selector. It appears in the header and allows users to switch languages. */
.language-selector {
    position: relative;
    font-size: 2rem;
    z-index: 10001;
    color: var(--white);
    border-radius: 12px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 1.2rem;
}

/* Button that shows the current language flag */
.language-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.25rem;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
}

@media screen and (max-width: 600px) {
    .language-btn {
        width: 100%;
        height: 100%;
        justify-content: center;
    }

}

/* Flags are represented via emoji within spans */
.language-btn .flag {
    font-size: 1.25rem;
}

/* The dropdown list of languages */
.language-list {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--white);
    color: var(--text-color);
    list-style: none;
    margin: 0;
    padding: 0.5rem 0;
    box-shadow: var(--shadow);
    border-radius: 8px;
    z-index: 3000;
    min-width: 160px;
}

.language-list li {
    padding: 0.4rem 1rem;
    cursor: pointer;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
}

.language-list li:hover {
    background: var(--light-gray);
}

/* Hide list when hidden attribute is present */
.language-list[hidden] {
    display: none;
}

/* Dark theme adjustments for language selector */
[data-theme="dark"] .language-list {
    background: var(--section-bg);
    color: var(--text-color);
}

[data-theme="dark"] .language-list li:hover {
    background: var(--dark-gray);
}

.navbar .nav-link:hover span,
.navbar .nav-link.active span {
    opacity: 1;
    visibility: visible;
}

.navbar .nav-link i {
    font-size: 1.7rem;
    margin-bottom: 0.2rem;
    transition: color 0.2s;
}

.navbar .nav-link.active,
.navbar .nav-link.active i {
    color: var(--primary-color);
}

.navbar .nav-link.active {
    font-weight: 700;
}

/* Hamburger & Theme buttons */
.hamburger {
    position: fixed;
    top: 1.5rem;
    left: 1.5rem;
    z-index: 10001;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 12px;
    width: 48px;
    height: 48px;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 1.2rem;
}

.hamburger:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.hamburger i {
    transition: transform 0.3s ease;
}

.hamburger.open i:before {
    content: "\f00d";
    /* Font Awesome times/X icon */
    transform: rotate(180deg);
}

.language-and-theme-wrapper {
    position: fixed;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    top: 1.5rem;
    right: 1.5rem;
    z-index: 10001;
}

.theme-toggle {
    position: relative;
    font-size: 2rem;
    z-index: 10001;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 12px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 1.2rem;
}

.theme-toggle:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

/* Mobile nav (overlay/slide-in) — merged rules, visuals preserved */

/* ================= NAVBAR ================= */
.navbar {
    /* Desktop: skinny vertical rail centered left */
    position: fixed;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    height: auto;
    width: 80px;
    /* transparent by default on desktop (NO !important) */
    background: transparent;
    box-shadow: none;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0;
    transition: left 0.3s;
}

.navbar ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    width: 100%;
    align-items: center;
}

.navbar li {
    width: 100%;
}

.navbar .nav-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-color);
    text-decoration: none;
    font-size: 1.1rem;
    padding: 0.5rem 0;
    border-radius: 12px;
    transition: background 0.2s, color 0.2s;
    width: 100%;
    background: transparent;
    position: relative;
    min-height: 56px;
}

.navbar .nav-link span {
    opacity: 0;
    visibility: hidden;
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%) translateX(10px);
    background: var(--white);
    color: var(--primary-color);
    padding: 0.3rem 0.8rem;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    box-shadow: var(--shadow);
    white-space: nowrap;
    transition: opacity 0.2s, visibility 0.2s;
    z-index: 2;
}

.navbar .nav-link:hover span,
.navbar .nav-link.active span {
    opacity: 1;
    visibility: visible;
}

.navbar .nav-link i {
    font-size: 1.7rem;
    margin-bottom: 0.2rem;
    transition: color 0.2s;
}

.navbar .nav-link.active,
.navbar .nav-link.active i {
    color: var(--primary-color);
}

.navbar .nav-link.active {
    font-weight: 700;
}

/* Mobile / Tablet: off-canvas drawer */
@media (max-width: 900px) {
    .navbar {
        position: fixed;
        top: 0;
        left: 0;
        width: 80vw;
        height: 100vh;
        background: var(--section-bg) !important;
        box-shadow: 2px 0 24px rgba(0, 0, 0, 0.12);
        z-index: 9999;

        transform: translateX(-100%);
        opacity: 0;
        pointer-events: none;

        transition: transform .3s cubic-bezier(.4, 0, .2, 1), opacity .2s ease;
        display: flex !important;
        flex-direction: column;
        justify-content: center;
        padding-top: 4rem;
    }

    /* OPEN state (toggled by JS via .open on #navbar) */
    .navbar.open {
        transform: translateX(0);
        opacity: 1;
        pointer-events: auto;
    }

    /* prevent body scroll when open (JS adds .navbar-open to body) */
    body.navbar-open {
        overflow: hidden;
        padding-left: 0 !important;
    }

    .navbar .nav-link {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
        padding: 1rem 1.5rem;
        border-radius: 12px;
        margin: 0 1rem 0.5rem 1rem;
        min-height: 56px;
        background: var(--light-gray);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
        transition: all 0.3s ease;
        color: var(--text-color);
        text-decoration: none;
    }

    [data-theme="dark"] .navbar {
        background: var(--section-bg);
    }

    [data-theme="dark"] .navbar .nav-link {
        background: var(--white);
        color: var(--text-color);
    }

    .navbar .nav-link:hover,
    .navbar .nav-link.active {
        background: var(--primary-color);
        color: var(--white);
        transform: translateY(-2px);
        box-shadow: 0 4px 16px rgba(255, 90, 95, 0.3);
    }

    .navbar .nav-link.active,
    .navbar .nav-link.active i {
        color: var(--white);
    }

    .navbar .nav-link i {
        margin: 0 1rem 0 0;
        font-size: 1.5rem;
        width: 24px;
        text-align: center;
        color: inherit;
    }

    .navbar .nav-link span {
        position: static;
        transform: none;
        opacity: 1;
        visibility: visible;
        background: transparent;
        color: inherit;
        padding: 0;
        box-shadow: none;
        font-size: 1.1rem;
        font-weight: 500;
        white-space: normal;
    }

    .hamburger {
        display: flex !important;
    }
}

@media (max-width: 600px) {
    .navbar {
        width: 85vw;
        max-width: 280px;
        padding-top: 4.5rem;
    }

    .hamburger {
        top: 1.2rem;
    }

    .hamburger,
    .theme-toggle,
    .language-btn {
        width: 44px;
        height: 44px;
        font-size: 1.1rem;
    }

    .hamburger {
        left: 1.2rem;
    }

}

@media (min-width: 901px) {
    .hamburger {
        display: none !important;
    }

    body {
        padding-left: 80px;
    }

    /* room for left rail */
}



@media (max-width: 900px) {
    .hamburger {
        display: flex !important;
    }
}

@media (max-width: 600px) {

    .hamburger {
        top: 1.2rem;
    }

    .hamburger,
    .theme-toggle {
        width: 44px;
        height: 44px;
        font-size: 1.1rem;
    }

    .hamburger {
        left: 1.2rem;
    }

    .navbar {
        width: 85vw;
        max-width: 280px;
        padding-top: 4.5rem;
    }
}

@media (min-width: 901px) {
    .hamburger {
        display: none !important;
    }

    body {
        padding-left: 80px;
    }
}

/* ================= HERO ================= */
.hero {
    padding: 8rem 0 4rem;
    background: url('../img/eu1.jpg') top right no-repeat;
    background-size: cover;
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

@media (max-width: 900px) {
    .hero {
        padding: 8rem 0 4rem;
        background: url('../img/eu1.jpg') top center no-repeat;
        background-size: cover;
        position: relative;
        min-height: 100vh;
        display: flex;
        align-items: center;
        justify-content: flex-end;
    }
}

.hero::before {
    content: "";
    background: rgba(255, 255, 255, 0.6);
    position: absolute;
    inset: 0;
}

.hero-container {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 10%;
    top: auto;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    text-align: center;
    background: transparent;
}

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--dark-gray);
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 1rem 2rem;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background: #E04A50;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 90, 95, 0.3);
}

.btn-secondary {
    background: var(--secondary-color);
    color: var(--white);
}

.btn-secondary:hover {
    background: #008A80;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 166, 153, 0.3);
}

/* ================= RESUME ================= */

/* Resume Section */
.resume-content {
    background: var(--white);
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.resume-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.resume-section h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--light-gray);
    padding-bottom: 0.5rem;
}

.resume-item {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--light-gray);
    border-radius: 12px;
}

.resume-item h4 {
    font-size: 1.2rem;
    color: var(--text-color);
    margin-bottom: 0.5rem;
}

.resume-item h5 {
    font-size: 1rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.resume-item em {
    color: var(--dark-gray);
    font-size: 0.9rem;
}

.resume-item ul {
    margin-top: 1rem;
    padding-left: 1.5rem;
    list-style: disc;
}

.resume-item li {
    margin-bottom: 0.5rem;
    color: var(--dark-gray);
}

@media (max-width: 768px) {
    .resume-grid {
        grid-template-columns: 1fr;
    }

    .resume-content {
        padding: 1em;
    }

    .resume-grid {
        gap: 1em;
    }
}

/* ================= LAYOUT ================= */
.section {
    padding: 4rem 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.section-title p {
    font-size: 1.2rem;
    color: var(--dark-gray);
    /* fixed var() typo */
}

/* ================= ABOUT ================= */
.about-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    align-items: center;
    background: var(--white);
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

@media (max-width: 900px) {
    .about-content {
        padding: 1rem;
    }
}

.about-image {
    display: flex;
    justify-content: center;
}

.about-image img {
    width: 300px;
    height: auto;
    border-radius: 15px;
    object-fit: fill;
    box-shadow: var(--shadow);
}

.about-text h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.about-info {
    list-style: none;
    margin: 2rem 0;
    padding: 0;
}

.about-info li {
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.about-info strong {
    color: var(--primary-color);
    font-weight: 600;
}

.skills-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.skill-tag {
    background: var(--light-gray);
    color: var(--primary-color);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

/* ================= PORTFOLIO ================= */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.portfolio-card {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.portfolio-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.portfolio-image {
    height: 250px;
    background: var(--light-gray);
    position: relative;
    overflow: hidden;
}

.portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.portfolio-content {
    padding: 1.5rem;
}

.portfolio-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.portfolio-category {
    color: var(--primary-color);
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 1rem;
}

.portfolio-description {
    color: var(--dark-gray);
    /* fixed var() typo */
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.portfolio-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.portfolio-link:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

.portfolio-link.disabled {
    color: var(--primary-color);
    transition: none;
}

.portfolio-link.disabled:hover {
    color: var(--primary-color);
    text-decoration: none;
}

/* Modal */
.portfolio-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.6);
    justify-content: center;
    align-items: center;
}

.portfolio-modal-content {
    background: var(--white);
    border-radius: 24px;
    max-width: 60vw;
    width: 60vw;
    min-width: 320px;
    min-height: 320px;
    max-height: 80vh;
    margin: auto;
    padding: 2rem;
    position: relative;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow-y: auto;
    transition: background 0.3s;
}

[data-theme="dark"] .portfolio-modal-content {
    background: #232323;
    color: var(--text-color);
}

.portfolio-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 2rem;
    cursor: pointer;
    color: #888;
    z-index: 2;
}

.portfolio-modal-slider {
    width: 100%;
    max-width: 700px;
    margin: 0 auto 2rem auto;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.portfolio-modal-slider img {
    width: 100%;
    max-height: 400px;
    object-fit: contain;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    background: #f8f8f8;
    transition: background 0.3s;
}

[data-theme="dark"] .portfolio-modal-slider img {
    background: #232323;
}

.portfolio-modal-slider-btn {
    background: rgba(255, 255, 255, 0.8);
    border: none;
    width: 48px;
    height: 48px;
    font-size: 2rem;
    color: #888;
    cursor: pointer;
    z-index: 2;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    position: absolute;
    padding: 0;
}

.portfolio-modal-slider-btn.left {
    left: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
}

.portfolio-modal-slider-btn.right {
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
}

.portfolio-modal-slider-btn span {
    padding-bottom: 8px;
}

.portfolio-modal-img-wrapper {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.portfolio-modal-fullscreen-btn {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    z-index: 10;
    background: rgba(0, 0, 0, 0.4);
    color: #FFF;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    cursor: pointer;
    transition: background 0.2s;
    font-size: 1.3rem;
}

.portfolio-modal-fullscreen-btn:hover {
    background: var(--primary-color);
    color: var(--white);
}

#fullscreenImageOverlay button#fullscreenImageClose {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.85);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    position: absolute;
    top: 32px;
    right: 32px;
    z-index: 2;
    cursor: pointer;
    font-size: 1.5rem;
    transition: background 0.2s;
}

#fullscreenImageOverlay button#fullscreenImageClose span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 2rem;
    color: var(--dark-gray);
    padding-bottom: 8px;
}

#fullscreenImageOverlay button#fullscreenImageClose:hover {
    background: var(--primary-color);
}

#fullscreenImageOverlay button#fullscreenImageClose:hover span {
    color: var(--white);
}

@media (max-width: 900px) {
    .portfolio-modal-content {
        max-width: 96vw;
        width: 96vw;
        padding: 1rem;
    }

    .portfolio-modal-slider img {
        max-height: 220px;
    }
}

@media (max-width: 600px) {
    .portfolio-modal-content {
        padding-top: 3.2rem;
        padding-right: 0.8rem;
        padding-bottom: 1.2rem;
        padding-left: 0.8rem;
    }

    .portfolio-modal-slider {
        flex-direction: column;
        gap: 0.5rem;
        align-items: center;
        justify-content: center;
        position: relative;
    }

    .portfolio-modal-slider img {
        max-height: 140px;
        margin-bottom: 0.7rem;
    }

    .portfolio-modal-slider-btns {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 1.5rem;
        margin-top: 0.2rem;
        width: 100%;
        position: static;
        left: auto;
        right: auto;
        bottom: auto;
    }

    .portfolio-modal-slider-btn.left,
    .portfolio-modal-slider-btn.right {
        position: static !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        transform: none !important;
        margin: 0 0.5rem;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 48px;
        height: 48px;
    }

    .portfolio-modal-slider-btn span {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        height: 100%;
    }

    .portfolio-modal-img-wrapper {
        width: 100%;
        min-height: 140px;
    }

    .portfolio-modal-fullscreen-btn {
        top: 0.3rem;
        right: 0.3rem;
        width: 36px;
        height: 36px;
        font-size: 1.1rem;
    }

    .portfolio-modal-close {
        position: absolute;
        top: 0;
        right: 1rem;
        left: auto;
        transform: none;
        font-size: 2rem;
        cursor: pointer;
        color: #888;
        z-index: 10;
        margin-bottom: 0;
    }
}

/* ================= CONTACT & FOOTER ================= */
.contact-content {
    background: var(--white);
    padding: 3rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    text-align: center;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.contact-item {
    padding: 1.5rem;
    border-radius: 12px;
    background: var(--light-gray);
}

.contact-item i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.contact-item h4 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.contact-item a {
    color: var(--dark-gray);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: var(--primary-color);
}

.footer {
    background: var(--white);
    padding: 3rem 0;
    text-align: center;
    box-shadow: var(--shadow);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    text-decoration: none;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 166, 153, 0.3);
}

/* ================= RESPONSIVE TEXT ================= */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }

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

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

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

    .section-title h2 {
        font-size: 2rem;
    }

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

    .contact-info {
        grid-template-columns: 1fr;
    }
}

/* ================= ANIMATION ================= */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

.fade-in {
    animation: fadeInUp 0.8s ease forwards;
}

/* Desktop padding to make room for left navbar */
@media (min-width: 901px) {
    body {
        padding-left: 80px;
    }
}

/* CV Download Section */
.cv-download-section {
    text-align: center;
    margin-top: 3rem;
    padding: 3rem;
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.cv-download-content {
    position: relative;
}

.cv-download-title {
    color: var(--text-color);
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.cv-download-subtitle {
    color: var(--dark-gray);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.cv-download-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--primary-color);
    color: var(--white);
    padding: 1rem 2rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.cv-download-btn:hover {
    background: #E04A50;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 90, 95, 0.3);
}

.cv-download-btn:active {
    transform: translateY(0);
}

.cv-download-btn i {
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.cv-download-btn:hover i {
    transform: translateY(-1px);
}