/* ==========================================================================
   RESET & GENERAL SETTINGS
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Gradient backgrounds */
    --gradient-orange: linear-gradient(135deg, #ff7a00 0%, #b02a00 100%);
    --gradient-graphite: linear-gradient(135deg, #2e3135 0%, #141619 100%);
    
    --text-light: #ffffff;
    --text-silver: #cccccc;
    --text-dark: #141619;
    
    --font-main: 'Inter', sans-serif;
    --transition-smooth: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    background-color: #141619;
    color: var(--text-light);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

.section-tag {
    display: inline-block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 1rem;
    font-weight: 600;
}

h2 {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 1.5rem;
    color: var(--text-light);
}

/* ==========================================================================
   HEADER / NAVBAR
   ========================================================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(20, 22, 25, 0.85);
    backdrop-filter: blur(12px);
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.25rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Estilos para o logótipo em imagem */
.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-img {
    height: 60px; /* Altura controlada para não quebrar o header */
    width: auto;
    display: block;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-silver);
    font-size: 0.9rem;
    font-weight: 500;
    margin-left: 2rem;
    transition: var(--transition-smooth);
}

.nav-menu a:hover {
    color: #ff7a00;
}

/* ==========================================================================
   HERO SECTION (Orange Gradient)
   ========================================================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--gradient-orange);
    width: 100%;
}

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

.hero-content {
    max-width: 800px;
    margin-top: 4rem;
}

.hero-subtitle {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.hero-title {
    font-size: 3.75rem;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -1.5px;
    margin-bottom: 2rem;
    color: var(--text-light);
}

.hero-description {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 2.5rem;
    max-width: 630px;
    font-weight: 300;
}

/* Layout do Hero com imagem */
.hero-grid {
    display: grid;
    grid-template-columns: 1fr 0.8fr; /* Texto + Imagem */
    gap: 4rem;
    align-items: center;
    min-height: 100vh;
}

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

.hero-profile-img {
    width: 350px; /* Aumentei o tamanho aqui */
    height: 350px; /* Aumentei o tamanho aqui */
    object-fit: cover;
    border-radius: 50%;
    border: 8px solid rgba(255, 255, 255, 0.2); /* Borda elegante */
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

/* Ajuste responsivo para telemóveis */
@media (max-width: 968px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
        padding-top: 8rem;
    }
    .hero-profile-img {
        width: 250px;
        height: 250px;
        margin-top: 2rem;
    }
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.btn {
    display: inline-block;
    padding: 0.9rem 2.2rem;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 6px;
    text-decoration: none;
    transition: var(--transition-smooth);
}

.btn-primary {
    background-color: var(--text-dark);
    color: var(--text-light);
}

.btn-primary:hover {
    background-color: #ffffff;
    color: var(--text-dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

.btn-secondary {
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: var(--text-light);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-3px);
}

/* ==========================================================================
   ABOUT SECTION (Graphite Gradient)
   ========================================================================== */
.about-section {
    background: var(--gradient-graphite);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 4rem;
    align-items: center;
}

/* Estilos para a foto de perfil circular */
.profile-img-container {
    width: 180px;
    height: 180px;
    margin-top: 2rem;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #ff7a00; /* Borda laranja ligando à identidade visual */
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.about-text p {
    font-size: 1.15rem;
    color: var(--text-silver);
    margin-bottom: 1.5rem;
    font-weight: 300;
}

/* ==========================================================================
   PORTFOLIO SECTION (Orange Gradient)
   ========================================================================== */
.portfolio-section {
    background: var(--gradient-orange);
}

.section-header {
    margin-bottom: 4rem;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.portfolio-item {
    position: relative;
    display: block;
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    background-color: #141619;
    aspect-ratio: 4 / 3;
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
}

.img-container {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.portfolio-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: var(--transition-smooth);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(20, 22, 25, 0.95);
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    transition: var(--transition-smooth);
}

.overlay-content {
    transform: translateY(30px);
    transition: var(--transition-smooth);
}

.project-title {
    color: #ffffff;
    font-size: 1.6rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    letter-spacing: -0.5px;
}

.project-category {
    color: #ff7a00;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 600;
}

/* Hover Effects */
.portfolio-item:hover .portfolio-img {
    transform: scale(1.08);
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-item:hover .overlay-content {
    transform: translateY(0);
}

/* ==========================================================================
   SKILLS SECTION (Atualizado para 9 itens)
   ========================================================================== */
.skills-section {
    background: var(--gradient-graphite);
}

.skills-placeholder-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 0;
}

.skills-circle-mock {
    position: relative;
    width: 320px; /* Aumentei ligeiramente o container */
    height: 320px;
    border: 1px dashed rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
}

.center-text {
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    background: #2e3135;
    color: #ffffff;
    padding: 1.2rem;
    border-radius: 50%;
    z-index: 2;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.orbit-item {
    position: absolute;
    background: #141619;
    color: #ffffff;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.1);
    white-space: nowrap; /* Evita que o texto quebre */
}

/* Distribuição circular para 9 itens */
.i1 { top: 0; left: 50%; transform: translate(-50%, -50%); }
.i2 { top: 12%; right: 12%; transform: translate(50%, -50%); }
.i3 { top: 50%; right: 0; transform: translate(50%, -50%); }
.i4 { bottom: 12%; right: 12%; transform: translate(50%, 50%); }
.i5 { bottom: 0; left: 50%; transform: translate(-50%, 50%); }
.i6 { bottom: 12%; left: 12%; transform: translate(-50%, 50%); }
.i7 { top: 50%; left: 0; transform: translate(-50%, -50%); }
.i8 { top: 12%; left: 12%; transform: translate(-50%, -50%); }
.i9 { top: 25%; right: 35%; transform: translate(50%, -50%); } /* Ajuste fino */

.skills-note {
    font-size: 0.9rem;
    color: var(--text-silver);
    font-style: italic;
    margin-top: 1rem;
}

.skills-note {
    font-size: 0.9rem;
    color: var(--text-silver);
    font-style: italic;
}

/* ==========================================================================
   CONTACT SECTION (Orange Gradient)
   ========================================================================== */
.contact-section {
    background: var(--gradient-orange);
}

.contact-card {
    background: var(--gradient-graphite);
    color: #ffffff;
    padding: 6rem 3rem;
    border-radius: 16px;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}

.contact-card h2 {
    color: #ffffff;
    font-size: 2.75rem;
    margin-bottom: 1rem;
}

.contact-card p {
    color: var(--text-silver);
    max-width: 500px;
    margin: 0 auto 3rem auto;
    font-weight: 300;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.contact-link {
    font-size: 2rem;
    color: #ff7a00;
    text-decoration: none;
    font-weight: 700;
    letter-spacing: -0.5px;
    transition: var(--transition-smooth);
}

.contact-link:hover {
    color: #ffffff;
    transform: scale(1.02);
}

.contact-location {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.4) !important;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.portfolio-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 2rem;
    justify-content: center;
}

.filter-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    padding: 0.6rem 1.2rem;
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.filter-btn:hover, .filter-btn.active {
    background: #ffffff;
    color: #ff7a00;
    border-color: #ffffff;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
    text-align: center;
    padding: 3rem 2rem;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.4);
    background: #141619;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* ==========================================================================
   RESPONSIVE (MEDIA QUERIES)
   ========================================================================== */
@media (max-width: 968px) {
    .hero-title {
        font-size: 2.75rem;
    }
    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .contact-card h2 {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2.25rem;
    }
    .hero-buttons {
        flex-direction: column;
    }
    .nav-menu {
        display: none; 
    }
    .contact-link {
        font-size: 1.4rem;
    }
    .profile-img-container {
        width: 100px;
        height: 100px;
    }
}