/* ===== FONTES ===== */
@font-face {
    font-family: 'Bright Melody';
    src: url('Bright Melody Personal Use Only.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* ===== VARIÁVEIS ===== */
:root {
    --bege: #F2E6D9;
    --salmon: #F5C6BC;
    --lilac: #E8C4D8;
    --pink: #E8839E;

    --bege-light: #FAF3ED;
    --bege-dark: #D9C4AC;
    --salmon-light: #FBE0DA;
    --lilac-light: #F3DDE9;
    --lilac-dark: #C9A0B8;
    --pink-dark: #D06B86;
    --pink-light: #F2A8BC;
    --pink-glow: rgba(232, 131, 158, 0.25);
    --rose: #F0B8C8;
    --blush: #F7D1D8;

    --text: #3A2832;
    --text-light: #6B5560;
    --text-muted: #9A8A90;
    --white: #FFFAF6;
    --black: #2A1A22;

    --font-display: 'Bright Melody', 'Outfit', -apple-system, sans-serif;
    --font-heading: 'Outfit', -apple-system, sans-serif;
    --font-body: 'Outfit', -apple-system, sans-serif;

    --shadow-sm: 0 2px 12px rgba(58, 40, 50, 0.06);
    --shadow-md: 0 8px 30px rgba(58, 40, 50, 0.08);
    --shadow-lg: 0 20px 60px rgba(58, 40, 50, 0.1);
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 40px;

    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --transition: 0.4s var(--ease-out);
}

/* ===== DARK MODE ===== */
[data-theme="dark"] {
    --white: #1A1216;
    --text: #E8DDE2;
    --text-light: #B8A8B0;
    --text-muted: #8A7A82;
    --black: #2A1A22;

    --bege-light: #221A1E;
    --bege-dark: #3A2832;

    --shadow-sm: 0 2px 12px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.25);
    --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* Body transition for smooth theme switch */
body {
    transition: background-color 0.4s, color 0.4s;
}

/* Navbar scrolled in dark */
[data-theme="dark"] .navbar.scrolled {
    background: rgba(26, 18, 22, 0.96);
    box-shadow: 0 1px 10px rgba(0, 0, 0, 0.3);
}

/* Menu toggle in dark when scrolled */
[data-theme="dark"] .menu-toggle span {
    background-color: var(--text);
}

/* Mobile nav in dark */
@media (max-width: 900px) {
    [data-theme="dark"] .nav-links {
        background: #1A1216;
        box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
    }
    [data-theme="dark"] .nav-links a {
        color: var(--text) !important;
    }
}

/* Navbar not-scrolled — over hero, always keep text light */
[data-theme="dark"] .navbar:not(.scrolled) .logo a {
    color: #FFFAF6;
}
[data-theme="dark"] .navbar:not(.scrolled) .nav-links a {
    color: rgba(255, 255, 255, 0.75);
}
[data-theme="dark"] .navbar:not(.scrolled) .menu-toggle span {
    background-color: #FFFAF6;
}

/* Sections alternating backgrounds */
[data-theme="dark"] .seccao:nth-child(odd) {
    background-color: #1A1216;
}

[data-theme="dark"] .seccao:nth-child(even) {
    background: linear-gradient(180deg, #221A1E 0%, rgba(50, 30, 42, 0.4) 100%);
}

/* CV section */
[data-theme="dark"] .seccao-cv {
    background: linear-gradient(135deg, #2A1A22 0%, #321E2A 50%, #2A2028 100%) !important;
}

[data-theme="dark"] .cv-about {
    border-left-color: rgba(232, 131, 158, 0.15);
}

@media (max-width: 768px) {
    [data-theme="dark"] .cv-about {
        border-top-color: rgba(232, 131, 158, 0.15);
    }
}

/* Contacto */
[data-theme="dark"] .seccao-contacto {
    background: #1A1216 !important;
}

/* Gallery images */
[data-theme="dark"] .galeria-item img {
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

[data-theme="dark"] .galeria-item:hover img {
    box-shadow: 0 10px 25px rgba(232, 131, 158, 0.15);
}

/* Hero must stay dark-themed always */
[data-theme="dark"] .hero-content {
    color: #FFFAF6;
}

[data-theme="dark"] .hero .btn-secondary {
    color: #FFFAF6;
}

/* Hero overlay adjustments */
[data-theme="dark"] .hero-overlay {
    background:
        radial-gradient(ellipse at 25% 40%, rgba(232, 196, 216, 0.1) 0%, transparent 55%),
        radial-gradient(ellipse at 75% 30%, rgba(232, 131, 158, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 80%, rgba(240, 184, 200, 0.06) 0%, transparent 45%),
        linear-gradient(to bottom, rgba(26, 18, 22, 0.2) 0%, rgba(26, 18, 22, 0.7) 100%);
}

/* Buttons — keep text light on pink backgrounds */
[data-theme="dark"] .btn-primary,
[data-theme="dark"] .btn-cv,
[data-theme="dark"] .btn-cv-view:hover,
[data-theme="dark"] .cookie-btn.accept {
    color: #FFFAF6 !important;
}

[data-theme="dark"] .btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.15) !important;
    color: #FFFAF6 !important;
}

[data-theme="dark"] .btn-cv-view {
    background: rgba(232, 131, 158, 0.12) !important;
}

[data-theme="dark"] .back-to-top:hover {
    color: #FFFAF6;
}

[data-theme="dark"] .theme-toggle:hover {
    color: #FFFAF6;
}

/* Footer */
[data-theme="dark"] .footer-portfolio {
    background: linear-gradient(135deg, #0F0A0D 0%, #1A1216 100%);
}

/* Modal */
[data-theme="dark"] .modal-content {
    background: #221A1E;
}

[data-theme="dark"] .modal-header {
    border-bottom-color: rgba(232, 131, 158, 0.08);
}

/* Back to top */
[data-theme="dark"] .back-to-top {
    background: #221A1E;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Cookie banner */
[data-theme="dark"] .cookie-banner-content {
    background: #0F0A0D;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.4);
}

/* Scrollbar */
[data-theme="dark"]::-webkit-scrollbar-track {
    background: #1A1216;
}

/* Selection */
[data-theme="dark"] ::selection {
    background: rgba(232, 131, 158, 0.3);
    color: #fff;
}


/* Footer logo must stay light */
[data-theme="dark"] .footer-logo {
    color: #FFFAF6;
}

/* Active hamburger X on hero in dark mode */
[data-theme="dark"] .navbar:not(.scrolled) .menu-toggle.active span {
    background-color: #FFFAF6;
}

/* Mobile nav hover/active on hero in dark mode */
@media (max-width: 900px) {
    [data-theme="dark"] .navbar:not(.scrolled) .nav-links a:hover,
    [data-theme="dark"] .navbar:not(.scrolled) .nav-links a.active {
        color: #FFFAF6 !important;
    }
}

/* Language toggle button */
.lang-toggle {
    background: none;
    border: 1.5px solid var(--pink);
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    color: var(--pink);
    padding: 0.3rem 0.75rem;
    flex-shrink: 0;
    margin-left: auto;
    margin-right: 0.8rem;
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 1px;
}

.lang-toggle:hover {
    background: var(--pink);
    color: var(--white);
}

.navbar:not(.scrolled) .lang-toggle {
    border-color: rgba(255, 255, 255, 0.4);
    color: rgba(255, 255, 255, 0.8);
}

.navbar:not(.scrolled) .lang-toggle:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.6);
    color: #fff;
}

[data-theme="dark"] .lang-toggle:hover {
    color: #FFFAF6;
}

/* Theme toggle button */
.theme-toggle {
    background: none;
    border: 1.5px solid var(--pink);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    color: var(--pink);
    padding: 0;
    flex-shrink: 0;
}

.theme-toggle:hover {
    background: var(--pink);
    color: var(--white);
}

.navbar:not(.scrolled) .theme-toggle {
    border-color: rgba(255, 255, 255, 0.4);
    color: rgba(255, 255, 255, 0.8);
}

.navbar:not(.scrolled) .theme-toggle:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.6);
    color: #fff;
}

.theme-toggle .icon-sun,
.theme-toggle .icon-moon { display: none; }

.theme-toggle .icon-sun { display: block; }

[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-moon { display: block; }

/* ===== RESET ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    background-color: var(--white);
    color: var(--text);
    line-height: 1.7;
    font-size: 1rem;
    overflow-x: hidden;
    cursor: default;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    font-family: inherit;
    cursor: pointer;
}


/* ===== CURSOR PERSONALIZADO ===== */
.cursor-dot {
    position: fixed;
    top: 0;
    left: 0;
    width: 6px;
    height: 6px;
    background: var(--pink);
    border-radius: 50%;
    pointer-events: none;
    z-index: 99999;
    will-change: transform;
    transition: width 0.2s, height 0.2s, background 0.2s;
}

.cursor-ring {
    position: fixed;
    top: 0;
    left: 0;
    width: 36px;
    height: 36px;
    border: 1.5px solid var(--pink);
    border-radius: 50%;
    pointer-events: none;
    z-index: 99998;
    will-change: transform;
    transition: width 0.3s var(--ease-out), height 0.3s var(--ease-out), border-color 0.3s, opacity 0.3s;
    opacity: 0.5;
}

.cursor-dot.hover {
    width: 12px;
    height: 12px;
    background: var(--salmon);
}

.cursor-ring.hover {
    width: 56px;
    height: 56px;
    border-color: var(--salmon);
    opacity: 0.3;
}

@media (pointer: coarse) {
    .cursor-dot, .cursor-ring { display: none; }
}

/* ===== PROGRESS BAR ===== */
.progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, var(--rose), var(--pink), var(--lilac));
    z-index: 10001;
    will-change: width;
}

/* ===== NAVBAR ===== */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 0;
    transition: background 0.4s, padding 0.4s, box-shadow 0.4s, opacity 0.6s, transform 0.6s;
    opacity: 0;
    transform: translateY(-20px);
    animation: navbarEntrance 0.8s var(--ease-out) 0.3s forwards;
}

@keyframes navbarEntrance {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.navbar.scrolled {
    background: rgba(255, 250, 246, 0.96);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 0.6rem 0;
    box-shadow: 0 1px 10px rgba(232, 131, 158, 0.08);
}

.nav-container {
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2.5rem;
}

.logo a {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: normal;
    color: var(--text);
    letter-spacing: 0.5px;
    transition: var(--transition);
}

.logo a span {
    color: var(--pink);
}

.navbar:not(.scrolled) .logo a {
    color: var(--white);
}

.navbar:not(.scrolled) .logo a span {
    color: var(--salmon-light);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 0.3rem;
    margin-left: auto;
}

.nav-links li {
    opacity: 0;
    transform: translateY(-10px);
    animation: navItemIn 0.5s var(--ease-out) forwards;
}
.nav-links li:nth-child(1) { animation-delay: 0.5s; }
.nav-links li:nth-child(2) { animation-delay: 0.6s; }
.nav-links li:nth-child(3) { animation-delay: 0.7s; }
.nav-links li:nth-child(4) { animation-delay: 0.8s; }
.nav-links li:nth-child(5) { animation-delay: 0.9s; }

.nav-lang-mobile {
    display: none;
}

@keyframes navItemIn {
    to { opacity: 1; transform: translateY(0); }
}

.nav-links a {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-xl);
    transition: var(--transition);
    position: relative;
    color: var(--text-muted);
}

.navbar:not(.scrolled) .nav-links a {
    color: rgba(255, 255, 255, 0.75);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--pink);
    background: rgba(232, 131, 158, 0.1);
}

.navbar:not(.scrolled) .nav-links a:hover,
.navbar:not(.scrolled) .nav-links a.active {
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
}

/* Menu hamburger */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    padding: 8px;
    z-index: 1001;
    cursor: pointer;
}

.menu-toggle.active span {
    background-color: var(--text);
}

.navbar:not(.scrolled) .menu-toggle.active span {
    background-color: var(--white);
}

.menu-toggle span {
    width: 24px;
    height: 2px;
    background-color: var(--text);
    border-radius: 2px;
    transition: 0.4s var(--ease-out);
    transform-origin: center;
}

.navbar:not(.scrolled) .menu-toggle span {
    background-color: var(--white);
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

@media (max-width: 900px) {
    .menu-toggle {
        display: flex;
        order: 3;
    }
    .lang-toggle {
        display: none;
    }
    .theme-toggle {
        order: 2;
    }
    .nav-lang-mobile {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
        padding: 1rem 1.2rem 0.5rem;
        opacity: 0;
        transform: translateY(-8px);
        transition: opacity 0.3s ease, transform 0.3s ease;
    }
    .nav-links.active .nav-lang-mobile {
        opacity: 1;
        transform: translateY(0);
        transition-delay: 0.24s;
    }
    .nav-lang-mobile button {
        background: none;
        border: 1.5px solid var(--pink);
        border-radius: var(--radius-xl);
        padding: 0.5rem 1.2rem;
        font-family: var(--font-body);
        font-size: 0.85rem;
        font-weight: 500;
        color: var(--text-muted);
        cursor: pointer;
        transition: var(--transition);
        letter-spacing: 0.5px;
    }
    .nav-lang-mobile button.active {
        background: var(--pink);
        color: #FFFAF6;
        border-color: var(--pink);
    }
    .navbar:not(.scrolled) .nav-lang-mobile button {
        border-color: rgba(255, 255, 255, 0.3);
        color: rgba(255, 255, 255, 0.6);
    }
    .navbar:not(.scrolled) .nav-lang-mobile button.active {
        background: var(--pink);
        color: #FFFAF6;
        border-color: var(--pink);
    }
    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        height: auto;
        max-height: 0;
        overflow: hidden;
        background: var(--white);
        flex-direction: column;
        align-items: stretch;
        padding: 0;
        gap: 0;
        transition: max-height 0.5s var(--ease-out), padding 0.5s var(--ease-out), background 0.4s;
        box-shadow: 0 12px 40px rgba(58, 40, 50, 0.08);
    }
    .nav-links.active {
        max-height: 100vh;
        padding: 0.8rem 1.5rem 1.2rem;
    }
    .nav-links li {
        list-style: none;
    }
    .nav-links a {
        font-size: 0.95rem;
        font-weight: 500;
        letter-spacing: 0.8px;
        text-transform: uppercase;
        padding: 1.1rem 1.2rem;
        color: var(--text) !important;
        width: 100%;
        text-align: center;
        border-radius: var(--radius-sm);
        opacity: 0;
        transform: translateY(-8px);
        transition: opacity 0.3s ease, transform 0.3s ease, background 0.3s ease, color 0.3s ease;
        display: block;
        position: relative;
    }
    .nav-links.active a {
        opacity: 1;
        transform: translateY(0);
    }
    .nav-links.active a:nth-child(1) { transition-delay: 0.04s; }
    .nav-links.active a:nth-child(2) { transition-delay: 0.08s; }
    .nav-links.active a:nth-child(3) { transition-delay: 0.12s; }
    .nav-links.active a:nth-child(4) { transition-delay: 0.16s; }
    .nav-links.active a:nth-child(5) { transition-delay: 0.2s; }
    .nav-links a:hover,
    .nav-links a.active {
        background: rgba(232, 131, 158, 0.08) !important;
        color: var(--pink) !important;
    }

    /* Menu no topo (navbar transparente) */
    .navbar:not(.scrolled) .nav-links {
        background: rgba(42, 26, 34, 0.92);
        backdrop-filter: blur(14px);
        -webkit-backdrop-filter: blur(14px);
        box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
    }
    .navbar:not(.scrolled) .nav-links a {
        color: rgba(255, 255, 255, 0.85) !important;
    }
    .navbar:not(.scrolled) .nav-links a:hover,
    .navbar:not(.scrolled) .nav-links a.active {
        background: rgba(255, 255, 255, 0.1) !important;
        color: var(--white) !important;
    }
}

/* ===== HERO ===== */
.hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    overflow: hidden;
    background: var(--black);
}

.hero-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    will-change: auto;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 25% 40%, rgba(232, 196, 216, 0.2) 0%, transparent 55%),
        radial-gradient(ellipse at 75% 30%, rgba(232, 131, 158, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 80%, rgba(240, 184, 200, 0.1) 0%, transparent 45%),
        linear-gradient(to bottom, rgba(42, 26, 34, 0.05) 0%, rgba(42, 26, 34, 0.55) 100%);
    pointer-events: none;
}

/* Floating decorative blobs */
.hero-float {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    pointer-events: none;
    opacity: 0.12;
    will-change: transform;
}

.hero-float--1 {
    width: 400px;
    height: 400px;
    background: var(--pink);
    top: 10%;
    left: -5%;
    animation: heroFloat1 12s linear infinite;
}

.hero-float--2 {
    width: 300px;
    height: 300px;
    background: var(--lilac);
    bottom: 15%;
    right: -5%;
    animation: heroFloat2 15s linear infinite;
}

.hero-float--3 {
    width: 250px;
    height: 250px;
    background: var(--salmon);
    top: 50%;
    left: 50%;
    animation: heroFloat3 18s linear infinite;
}

.hero:not(.in-viewport) .hero-float {
    animation-play-state: paused;
}

@keyframes heroFloat1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(50px, 30px) scale(1.1); }
    66% { transform: translate(-20px, -40px) scale(0.95); }
}

@keyframes heroFloat2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(-40px, -30px) scale(1.05); }
    66% { transform: translate(30px, 20px) scale(0.9); }
}

@keyframes heroFloat3 {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.2); }
}

.hero-content {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
    text-align: center;
    color: var(--white);
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 0.55rem 1.4rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-xl);
    background: rgba(255, 255, 255, 0.1);
    margin-bottom: 2rem;
    animation: heroFadeDown 1s var(--ease-out) 0.2s both;
}

.hero-tag-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--pink);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.4); }
}

.hero-content h1 {
    font-family: var(--font-display);
    font-weight: normal;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-line {
    display: block;
}

.hero-line--1 {
    font-family: var(--font-heading);
    font-size: clamp(1.2rem, 2.5vw, 1.8rem);
    font-weight: 400;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 1px;
    animation: heroFadeDown 1s var(--ease-out) 0.4s both;
}

.hero-line--2 {
    font-size: clamp(3.5rem, 9vw, 7rem);
    letter-spacing: -1px;
    animation: heroFadeDown 1s var(--ease-out) 0.6s both;
}

.hero-line--2 em {
    font-style: normal;
    background: linear-gradient(135deg, var(--rose), var(--pink), var(--lilac));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-family: var(--font-body);
    font-size: clamp(1rem, 2vw, 1.15rem);
    font-weight: 300;
    max-width: 540px;
    margin: 0 auto 2.5rem;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.7;
    animation: heroFadeDown 1s var(--ease-out) 0.8s both;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    animation: heroFadeDown 1s var(--ease-out) 1s both;
}

@keyframes heroFadeDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hero scroll indicator */
.hero-scroll-indicator {
    position: absolute;
    bottom: 2.5rem;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    animation: heroFadeDown 1s var(--ease-out) 1.4s both;
}

.hero-scroll-indicator span {
    font-family: var(--font-body);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: rgba(255, 255, 255, 0.4);
}

.hero-scroll-line {
    width: 1px;
    height: 50px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.4), transparent);
    animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
    0% { transform: scaleY(0); transform-origin: top; }
    50% { transform: scaleY(1); transform-origin: top; }
    51% { transform-origin: bottom; }
    100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ===== BUTTONS ===== */
.btn-hero {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.9rem 2rem;
    border-radius: var(--radius-xl);
    border: none;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--pink) 0%, var(--pink-dark) 100%);
    color: var(--white);
    box-shadow: 0 4px 20px rgba(232, 131, 158, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(232, 131, 158, 0.35);
    background: linear-gradient(135deg, var(--pink-light) 0%, var(--pink) 100%);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    color: var(--white);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

/* ===== SECÇÕES ===== */
.seccao {
    padding: 100px 2rem 80px;
    position: relative;
    overflow: hidden;
    content-visibility: auto;
    contain-intrinsic-size: auto 800px;
}

@media (max-width: 768px) {
    .seccao {
        content-visibility: visible;
        contain-intrinsic-size: none;
    }
}

.seccao:nth-child(odd) {
    background-color: var(--white);
}

.seccao:nth-child(even) {
    background: linear-gradient(180deg, var(--bege-light) 0%, rgba(243, 221, 233, 0.2) 100%);
}

/* Section header */
.seccao-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3.5rem;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.seccao.in-view .seccao-header {
    opacity: 1;
    transform: translateY(0);
}

.seccao-header h2,
.seccao-cv h2,
.contacto-info h2 {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: normal;
    color: var(--text);
    line-height: 1.15;
    margin-bottom: 1rem;
}

.seccao-header h2 em,
.contacto-info h2 em {
    font-style: normal;
    color: var(--pink);
}

.seccao-line {
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, var(--rose), var(--pink), var(--lilac));
    margin: 0 auto 1.2rem;
    border-radius: 2px;
}

.seccao-desc {
    font-size: 1.05rem;
    color: var(--text-muted);
    font-weight: 300;
}

/* ===== GALERIA ===== */
.galeria {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.galeria-item {
    position: relative;
    transition: transform 0.4s var(--ease-out);
    transform-style: preserve-3d;
}

.galeria-item img {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: transform 0.2s ease-out, box-shadow 0.3s var(--ease-out);
    box-shadow: var(--shadow-sm);
    opacity: 0;
    transform: translateY(30px) scale(0.97);
    border: 2px solid transparent;
}

.galeria-item .tilt-glare {
    position: absolute;
    inset: 0;
    border-radius: var(--radius-md);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
}

.galeria-item:hover .tilt-glare {
    opacity: 1;
}

.seccao.in-view .galeria-item img {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.seccao.in-view .galeria-item:nth-child(1) img { transition-delay: 0.1s; }
.seccao.in-view .galeria-item:nth-child(2) img { transition-delay: 0.2s; }
.seccao.in-view .galeria-item:nth-child(3) img { transition-delay: 0.3s; }
.seccao.in-view .galeria-item:nth-child(4) img { transition-delay: 0.4s; }

.galeria-item:hover img {
    box-shadow: 0 10px 25px rgba(232, 131, 158, 0.2);
    border-color: var(--rose);
}

@media (max-width: 768px) {
    .galeria {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .galeria-item img {
        opacity: 1 !important;
        transform: translateY(0) scale(1) !important;
    }
}

/* ===== CV SECTION ===== */
.seccao-cv {
    background: linear-gradient(135deg, var(--blush) 0%, var(--lilac-light) 50%, var(--salmon-light) 100%) !important;
}

.cv-container {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 4rem;
    position: relative;
}

.cv-content {
    flex: 1;
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.seccao-cv.in-view .cv-content {
    opacity: 1;
    transform: translateX(0);
}

.cv-content h2 {
    margin-bottom: 1rem;
}

.cv-content p {
    color: var(--text-light);
    margin-bottom: 2rem;
    font-size: 1.05rem;
    line-height: 1.7;
}

.cv-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-cv {
    background: linear-gradient(135deg, var(--pink) 0%, var(--pink-dark) 100%) !important;
    color: var(--white) !important;
}

.btn-cv:hover {
    box-shadow: 0 8px 30px rgba(232, 131, 158, 0.35) !important;
    background: linear-gradient(135deg, var(--pink-light) 0%, var(--pink) 100%) !important;
}

.btn-cv-view {
    background: rgba(232, 131, 158, 0.08) !important;
    border: 1.5px solid var(--pink) !important;
    color: var(--pink-dark) !important;
    backdrop-filter: none;
}

.btn-cv-view:hover {
    background: var(--pink) !important;
    color: var(--white) !important;
    box-shadow: 0 8px 30px rgba(232, 131, 158, 0.25) !important;
}

.cv-about {
    flex: 1;
    padding-left: 2rem;
    border-left: 2px solid rgba(232, 131, 158, 0.2);
    opacity: 0;
    transform: translateX(30px);
    transition: opacity 0.8s var(--ease-out) 0.2s, transform 0.8s var(--ease-out) 0.2s;
}

.seccao-cv.in-view .cv-about {
    opacity: 1;
    transform: translateX(0);
}

.cv-about h3 {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 3vw, 2rem);
    font-weight: normal;
    color: var(--text);
    margin-bottom: 1rem;
}

.cv-about h3 em {
    font-style: normal;
    color: var(--pink);
}

.cv-about p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 0.8rem;
}

@keyframes cvSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@media (max-width: 768px) {
    .cv-container {
        flex-direction: column;
        text-align: center;
        gap: 2.5rem;
    }
    .cv-about {
        padding-left: 0;
        border-left: none;
        border-top: 2px solid rgba(232, 131, 158, 0.2);
        padding-top: 2rem;
    }
}

/* ===== CONTACTO ===== */
.seccao-contacto {
    background: var(--white) !important;
}

.contacto-center {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.seccao-contacto.in-view .contacto-center {
    opacity: 1;
    transform: translateY(0);
}

.contacto-center h2 {
    margin-bottom: 1rem;
}

.btn-contacto-mail {
    font-size: 1.15rem;
    padding: 1.2rem 3rem;
    margin-bottom: 2.5rem;
}

.contacto-center > p {
    color: var(--text);
    font-family: var(--font-heading);
    font-size: 1.6rem;
    line-height: 1.4;
    margin-bottom: 0.5rem;
}

.contacto-subtexto {
    color: var(--text-light) !important;
    font-family: var(--font-body) !important;
    font-size: 1rem !important;
    margin-bottom: 0 !important;
}

.contacto-email {
    margin-top: 1.5rem !important;
    font-size: 0.9rem !important;
    color: var(--text-muted) !important;
    letter-spacing: 0.5px;
}

/* ===== FOOTER ===== */
.footer-portfolio {
    background: linear-gradient(135deg, var(--text) 0%, #3d2535 100%);
    color: rgba(255, 255, 255, 0.6);
    padding: 3rem 2rem 2rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-logo {
    font-family: var(--font-display);
    font-size: 1.6rem;
    color: var(--white);
    transition: var(--transition);
}

.footer-logo span {
    color: var(--pink);
}

.footer-tagline {
    font-size: 0.85rem;
    margin-top: 0.3rem;
    color: rgba(255, 255, 255, 0.35);
    font-weight: 300;
}

.footer-contact {
    text-align: right;
}

.footer-contact-label {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.35);
    margin-bottom: 0.4rem;
    font-weight: 300;
}

.footer-email {
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--pink-light);
    transition: color 0.3s;
}

.footer-email:hover {
    color: var(--pink);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom p {
    font-size: 0.8rem;
}

.footer-legal {
    list-style: none;
    display: flex;
    gap: 1.5rem;
}

.footer-legal a {
    font-size: 0.75rem;
    opacity: 0.5;
    transition: opacity 0.3s, color 0.3s;
}

.footer-legal a:hover {
    opacity: 1;
    color: var(--pink);
}

@media (max-width: 768px) {
    .footer-top {
        flex-direction: column;
        gap: 1.5rem;
    }
    .footer-contact {
        text-align: left;
    }
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    .footer-legal {
        justify-content: center;
    }
}

/* ===== LIGHTBOX ===== */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(26, 18, 22, 0.95);
    backdrop-filter: blur(10px);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.lightbox.active {
    display: flex;
    animation: fadeIn 0.3s var(--ease-out);
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    text-align: center;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 80vh;
    border-radius: var(--radius-md);
    box-shadow: 0 0 60px rgba(0, 0, 0, 0.4);
    cursor: default;
}

.lightbox-caption {
    color: rgba(255, 255, 255, 0.7);
    margin-top: 1rem;
    font-size: 0.9rem;
    font-family: var(--font-body);
    font-weight: 300;
    letter-spacing: 1px;
}

.lightbox-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.8rem;
    font-family: var(--font-body);
    letter-spacing: 2px;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 2rem;
    cursor: pointer;
    transition: color 0.3s, transform 0.3s;
    z-index: 2100;
    padding: 1rem;
}

.lightbox-close {
    top: 1rem;
    right: 1.5rem;
    font-size: 2.2rem;
}

.lightbox-prev {
    left: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-next {
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
    color: var(--pink);
}

@media (max-width: 768px) {
    .lightbox-prev,
    .lightbox-next {
        top: auto;
        bottom: 4rem;
        transform: none;
        font-size: 1.5rem;
    }
    .lightbox-prev { left: 2rem; }
    .lightbox-next { right: 2rem; }
}

/* ===== MODAIS ===== */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(26, 18, 22, 0.7);
    backdrop-filter: blur(8px);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.modal.active {
    display: flex;
    animation: fadeIn 0.3s var(--ease-out);
}

.modal-content {
    background: var(--white);
    border-radius: var(--radius-lg);
    max-width: 680px;
    max-height: 80vh;
    overflow: hidden;
    position: relative;
    margin: 1.5rem;
    box-shadow: var(--shadow-lg);
    cursor: default;
    display: flex;
    flex-direction: column;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2rem 2.5rem 1.2rem;
    flex-shrink: 0;
    border-bottom: 1px solid rgba(232, 131, 158, 0.1);
}

.modal-header h2 {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 600;
    color: var(--text);
    margin: 0;
}

.modal-body {
    padding: 1.5rem 2.5rem 2.5rem;
    overflow-y: auto;
    flex: 1;
}

.modal-content h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.6rem;
    color: var(--pink);
}

.modal-content p {
    color: var(--text-light);
    margin-bottom: 0.8rem;
    line-height: 1.7;
    font-size: 0.95rem;
}

.modal-content ul {
    margin: 0.5rem 0 1rem 1.5rem;
    color: var(--text-light);
    font-size: 0.95rem;
}

.modal-content li {
    margin-bottom: 0.3rem;
}

/* Modal scrollbar */
.modal-body::-webkit-scrollbar {
    width: 5px;
}

.modal-body::-webkit-scrollbar-track {
    background: transparent;
    margin: 0.5rem 0;
}

.modal-body::-webkit-scrollbar-thumb {
    background: var(--rose);
    border-radius: 10px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
    background: var(--pink);
}

.modal-body {
    scrollbar-width: thin;
    scrollbar-color: var(--rose) transparent;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.8rem;
    color: var(--text-muted);
    transition: color 0.3s, transform 0.3s;
    padding: 0.5rem;
    flex-shrink: 0;
    line-height: 1;
}

.modal-close:hover {
    color: var(--pink);
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .modal-content {
        margin: 0.8rem;
        max-height: 90vh;
    }
    .modal-header {
        padding: 1.5rem 1.5rem 1rem;
    }
    .modal-header h2 {
        font-size: 1.8rem;
    }
    .modal-body {
        padding: 1rem 1.5rem 2rem;
    }
}

/* ===== BACK TO TOP ===== */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 48px;
    height: 48px;
    background: var(--white);
    border: 2px solid var(--pink);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    box-shadow: 0 4px 20px rgba(232, 131, 158, 0.15);
    transition: var(--transition);
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
    cursor: pointer;
    color: var(--pink);
}

.back-to-top.show {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.back-to-top.hidden-by-overlay {
    opacity: 0 !important;
    pointer-events: none !important;
}

.back-to-top:hover {
    background: var(--pink);
    border-color: var(--pink);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(232, 131, 158, 0.35);
}

/* ===== COOKIE BANNER ===== */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 9999;
    padding: 0;
    animation: slideUp 0.5s var(--ease-out);
}

@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

.cookie-banner-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: 1.2rem 2rem;
    background: var(--text);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.15);
}

.cookie-text {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    flex: 1;
}

.cookie-text svg {
    flex-shrink: 0;
    color: var(--pink);
    margin-top: 2px;
}

.cookie-text p {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.5;
    margin: 0;
}

.cookie-text a {
    color: var(--salmon);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.cookie-text a:hover {
    color: var(--pink);
}

.cookie-buttons {
    display: flex;
    gap: 0.6rem;
    flex-shrink: 0;
}

.cookie-btn {
    padding: 0.55rem 1.4rem;
    border-radius: var(--radius-xl);
    font-size: 0.82rem;
    font-weight: 500;
    border: none;
    transition: var(--transition);
    letter-spacing: 0.3px;
}

.cookie-btn.accept {
    background: var(--pink);
    color: var(--white);
}

.cookie-btn.accept:hover {
    background: var(--pink-dark);
    transform: translateY(-1px);
}

.cookie-btn.reject {
    background: transparent;
    color: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.cookie-btn.reject:hover {
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.8);
}

@media (max-width: 768px) {
    .cookie-banner-content {
        flex-direction: column;
        gap: 1rem;
        padding: 1.2rem 1.5rem;
        border-radius: var(--radius-md) var(--radius-md) 0 0;
    }
    .cookie-buttons {
        width: 100%;
    }
    .cookie-btn {
        flex: 1;
        text-align: center;
    }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bege-light);
}

::-webkit-scrollbar-thumb {
    background: var(--rose);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--pink);
}

/* ===== SELECTION ===== */
::selection {
    background: rgba(232, 131, 158, 0.25);
    color: var(--text);
}
