/* =========================================
   1. IMPORTAÇÃO E VARIÁVEIS
   ========================================= */
@import url('https://fonts.googleapis.com/css2?family=Roboto+Condensed:wght@300;400;700&display=swap');

:root {
    --primary-yellow: #ffbe30;
    --primary-red: rgb(236, 30, 30);
    --dark-text: #202020;
}

body {
    margin: 0;
    font-family: 'Roboto Condensed', sans-serif;
    line-height: 1.5;
    color: #000;
    background-color: #fff;
    overflow-x: hidden;
    font-family: 'Roboto', sans-serif;
}

/* =========================================
   2. LINKS GERAIS
   ========================================= */
a {
    color: var(--primary-red) !important;
    text-decoration: none !important;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-yellow) !important;
    text-decoration: underline !important;
}

/* =========================================
   3. CABEÇALHO (HEADER)
   ========================================= */
.header {
    padding: 20px;
    text-align: center;
    margin-bottom: 20px;
    position: relative;
}

/* REGRA ESPECIAL: Título nunca tem sublinhado */
.header a, 
.header a:hover {
    text-decoration: none !important;
    border: none !important;
}

/* Título Gigante */
.header h1 {
    font-size: 140px !important;
    color: black;
    margin: 0;
    line-height: 1.1;
    font-weight: 700;
    letter-spacing: -3px;
    transition: color 0.5s ease;
}

/* Subtítulo */
.subtitle {
    font-size: 70px !important;
    margin-top: 10px;
    margin-bottom: 20px;
    line-height: 1.2;
    text-transform: uppercase;
}

/* Hover do Título (Muda de cor suavemente) */
.header:hover h1 {
    color: var(--primary-red);
}

/* --- ANIMAÇÃO: ORGANIC FLOW (SUAVE E LÍQUIDA) --- */
.circle-animation {
    width: 150px;
    height: 150px;
    border: 4px solid var(--primary-yellow);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: -1;
    opacity: 0.6;
    
    /* Começa redondo */
    border-radius: 50%;
    
    /* Animação longa (8s) e fluída (ease-in-out) */
    animation: organicFlow 8s ease-in-out infinite alternate;
    transition: all 0.5s ease;
}

.header:hover .circle-animation {
    opacity: 1;
    border-color: var(--primary-red);
    box-shadow: 0 0 20px rgba(236, 30, 30, 0.2);
    /* Fica um pouco mais rápido no hover, mas mantém a suavidade */
    animation-duration: 4s;
}

@keyframes organicFlow {
    0% {
        border-radius: 50%; 
        transform: translate(-50%, -50%) scale(0.8) rotate(0deg);
    }
    33% {
        /* Forma de gota/ovo */
        border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
        transform: translate(-40%, -60%) scale(1.1) rotate(45deg);
    }
    66% {
        /* Forma orgânica invertida */
        border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%;
        transform: translate(-60%, -40%) scale(0.9) rotate(-20deg);
    }
    100% {
        /* Volta a crescer noutra direção */
        border-radius: 70% 30% 50% 50% / 30% 50% 70% 60%;
        transform: translate(-50%, -50%) scale(1.2) rotate(10deg);
    }
}

/* =========================================
   4. MENU
   ========================================= */
.menu {
    margin-top: 30px;
    text-align: center;
}
.menu ul { padding: 0; list-style: none; margin: 0; }
.menu ul li { display: inline-block; margin: 0 15px; }
.menu ul li a {
    font-size: 18px !important;
    font-weight: bold;
    text-transform: uppercase;
}

/* =========================================
   5. GALERIA HORIZONTAL (CARTAZES)
   ========================================= */

.gallery-wrapper {
    width: 100%;
    background-color: #000; /* Fundo preto elegante */
    padding: 20px 0;
    position: relative;
    box-shadow: inset 0 0 20px #000; 
}

/* O Container que desliza */
.scrolling-gallery {
    display: flex;
    overflow-x: auto; /* Permite scroll horizontal */
    scroll-behavior: smooth;
    gap: 15px; /* Espaço entre cartazes */
    padding: 0 40px; /* Espaço nas laterais */
    
    /* Esconder a barra de scroll padrão */
    -ms-overflow-style: none;  /* IE/Edge */
    scrollbar-width: none;  /* Firefox */
}

.scrolling-gallery::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

/* As Imagens Individuais */
.gallery-item {
    height: 60vh; /* Altura fixa para alinhar */
    width: auto;
    object-fit: contain;
    border-radius: 4px;
    transition: transform 0.3s ease;
    cursor: pointer;
}

.gallery-item:hover {
    transform: scale(1.05); /* Zoom suave ao passar o rato */
    z-index: 10;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
}

/* Botões de Navegação Flutuantes */
.scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 190, 49, 0.8); /* Amarelo */
    color: #000;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    z-index: 20;
    transition: background-color 0.3s;
}

.scroll-btn:hover {
    background-color: rgb(255, 190, 49);
}

.prev-btn { left: 10px; }
.next-btn { right: 10px; }

/* =========================================
   6. PLAYER BANDCAMP & VÍDEO
   ========================================= */
/* Ajuste para o Player do Bandcamp */
.bandcamp-wrapper iframe {
    width: 100% !important; /* Ocupa a largura disponível */
    max-width: 450px;       /* Limite para não ficar gigante em ecrãs largos */
    display: block;
    margin: 0 auto;         /* Centra no meio */
}

/* =========================================
   7. CONTEÚDO GERAL
   ========================================= */
.photos { padding: 20px; }

.about-section, .main-text {
    max-width: 80ch;
    margin: 0 auto;
    padding: 10px;
    text-align: justify;
}

.section-heading {
    text-align: center;
    font-size: 46px;
    text-transform: uppercase;
    margin-bottom: 30px;
    font-weight: bold;
    border: none !important;
    text-decoration: none !important;
}

.section-paragraph { margin-bottom: 15px; }

.divider {
    margin: 50px 0;
    border-top: 5px solid var(--primary-yellow);
    opacity: 1;
}

/* =========================================
   8. CONTACTO E RODAPÉ
   ========================================= */
.contact-section {
    background-color: #f9f9f9;
    padding: 40px 0;
    text-align: center;
}

.social-media-logo {
    display: flex;
    justify-content: center;
    gap: 15px;
    padding: 0;
    list-style: none;
    margin-top: 20px;
}
.social-media-logo img { width: 30px; }

footer {
    background-color: var(--primary-yellow) !important;
    padding: 10px !important;
    text-align: center;
    font-size: 10px !important;
    font-weight: bold;
    color: black !important;
}
footer p { margin: 0; }

/* =========================================
   9. MOBILE
   ========================================= */
@media (max-width: 768px) {
    .header h1 { font-size: 50px !important; }
    .subtitle { font-size: 20px !important; }
    .circle-animation { width: 100px; height: 100px; }
    .menu ul li { display: block; margin: 10px 0; }
    .section-heading { font-size: 32px; }
    
    /* Cartazes menores no telemóvel */
    .gallery-item { height: 50vh; }
}


/* =========================================
   ESTILOS ESPECÍFICOS DO CV
   ========================================= */

/* Item da Linha do Tempo (Experiência/Educação) */
.cv-item {
    position: relative;
    padding-left: 20px;
    border-left: 2px solid var(--primary-yellow); /* Linha amarela vertical */
    margin-bottom: 30px;
}

.cv-item:last-child {
    border-left: 2px solid transparent; /* Remove linha no último item */
}

/* Bolinha na linha do tempo */
.cv-item::before {
    content: '';
    position: absolute;
    left: -6px;
    top: 0;
    width: 10px;
    height: 10px;
    background-color: var(--primary-red);
    border-radius: 50%;
}

.cv-date {
    font-size: 14px;
    font-weight: bold;
    color: #666;
    text-transform: uppercase;
    display: block;
    margin-bottom: 5px;
}

.cv-title {
    font-weight: bold;
    margin: 0;
    font-size: 20px;
    color: #000;
}

.cv-place {
    font-style: italic;
    color: #444;
    margin: 0;
}

/* Skills e Barras de Progresso */
.skill-box span {
    font-size: 14px;
    text-transform: uppercase;
    margin-bottom: 5px;
    display: block;
}

.progress {
    border-radius: 0; /* Barras quadradas estilo industrial */
}

.badge {
    font-weight: normal;
    font-size: 14px;
    padding: 8px 12px;
    border-radius: 0; /* Tags quadradas */
}