/* VARIÁVEIS */
:root {
    /* Cores */
    --primary-color: #2168A6;
    --primary-dark: #1a5285;
    --secondary-color: #52A5D9;
    --accent-color: #5BB5D9;
    --text-color: #f5f5f5;
    --text-secondary: #d1d1d1;
    --dark-bg: #0f0f16;
    --darker-bg: #0a0a0f;
    --light-bg: #22252d;
    --light-gray: #3a3d45;
    --white: #ffffff;
    --black: #000000;

    /* Sombras */
    --shadow-sm: 0 2px 5px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 10px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 8px 20px rgba(0, 0, 0, 0.3);

    /* Bordas */
    --border-radius-sm: 5px;
    --border-radius-md: 10px;
    --border-radius-lg: 15px;
    --border-radius-circle: 50%;

    /* Transições */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;

    /* Espaçamentos */
    --space-xs: 5px;
    --space-sm: 10px;
    --space-md: 20px;
    --space-lg: 30px;
    --space-xl: 50px;
}

/* TEMA CLARO */
[data-theme="light"] {
    --text-color: #333333;
    --text-secondary: #666666;
    --dark-bg: #f5f5f5;
    --darker-bg: #e0e0e0;
    --light-bg: #ffffff;
    --light-gray: #e5e5e5;
}

/* RESET E ESTILOS BASE */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--dark-bg);
    overflow-x: hidden;
    transition: background-color var(--transition-normal);
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

section {
    padding: var(--space-xl) 0;
}

.section {
    position: relative;
}

.btn {
    display: inline-block;
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--border-radius-sm);
    font-weight: 500;
    text-align: center;
    transition: all var(--transition-normal);
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: var(--space-sm);
}

.section-title span {
    color: var(--primary-color);
}

.section-divider {
    width: 80px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 0 auto var(--space-md);
}

.section-subtitle {
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* LOADER */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--dark-bg);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loader-spinner {
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loader.hidden {
    opacity: 0;
    visibility: hidden;
}

/* CURSOR PERSONALIZADO */
.custom-cursor {
    position: fixed;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: var(--primary-color);
    pointer-events: none;
    mix-blend-mode: difference;
    z-index: 9998;
    transform: translate(-50%, -50%);
    transition: transform 0.1s ease, width 0.3s ease, height 0.3s ease;
}

.custom-cursor.active {
    width: 40px;
    height: 40px;
    background-color: rgba(82, 165, 217, 0.3);
}

/* HEADER */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--dark-bg);
    box-shadow: var(--shadow-sm);
    z-index: 1000;
    transition: all var(--transition-normal);
}

.header.scrolled {
    background-color: rgba(15, 15, 22, 0.9);
    backdrop-filter: blur(10px);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-sm) 0;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
}

.logo span {
    color: var(--primary-color);
}

.nav-list {
    display: flex;
    gap: var(--space-lg);
}

.nav-link {
    position: relative;
    padding: var(--space-xs) 0;
    color: var(--text-secondary);
    font-weight: 500;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width var(--transition-normal);
}

.nav-link:hover, .nav-link.active {
    color: var(--white);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.theme-toggle {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.2rem;
    cursor: pointer;
    transition: color var(--transition-fast);
}

.theme-toggle:hover {
    color: var(--white);
}

.hamburger {
    display: none;
    cursor: pointer;
    width: 24px;
    height: 24px;
    position: relative;
    z-index: 1001;
}

.bar {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--white);
    margin: 5px 0;
    transition: all var(--transition-normal);
}

.hamburger.active .bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger.active .bar:nth-child(2) {
    opacity: 0;
}

.hamburger.active .bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* HERO SECTION */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    background: linear-gradient(135deg, var(--darker-bg) 0%, var(--dark-bg) 100%);
    position: relative;
    overflow: hidden;
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-xl);
}

.hero-text {
    flex: 1;
    max-width: 600px;
}

.subtitle {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: var(--space-sm);
    font-weight: 500;
}

.title {
    font-size: 3.5rem;
    margin-bottom: var(--space-md);
    line-height: 1.1;
}

.profession {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-lg);
    font-weight: 400;
}

.description {
    margin-bottom: var(--space-lg);
    color: var(--text-secondary);
}

.hero-actions {
    display: flex;
    gap: var(--space-md);
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    position: relative;
}

.image-wrapper {
    position: relative;
    width: 350px;
    height: 350px;
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--border-radius-lg);
    position: relative;
    z-index: 2;
}

.image-border {
    position: absolute;
    top: -15px;
    right: -15px;
    width: 100%;
    height: 100%;
    border: 3px solid var(--primary-color);
    border-radius: var(--border-radius-lg);
    z-index: 1;
    transition: all var(--transition-normal);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(33, 104, 166, 0.3) 0%, rgba(82, 165, 217, 0.1) 100%);
    border-radius: var(--border-radius-lg);
    z-index: 3;
}

/* ABOUT SECTION */
.about-content {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
}

.about-image {
    flex: 1;
    position: relative;
}

.about-image img {
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
}

.about-text {
    flex: 1;
}

.about-title {
    font-size: 2rem;
    margin-bottom: var(--space-lg);
}

.about-title span {
    color: var(--primary-color);
}

.about-text p {
    margin-bottom: var(--space-md);
    color: var(--text-secondary);
}

.about-details {
    margin-top: var(--space-xl);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-md);
}

.detail-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
}

.detail-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-top: 3px;
}

.detail-item h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.detail-item p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0;
}

/* COMPANIES SECTION */
.companies {
    background-color: var(--darker-bg);
}

.companies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-lg);
}

.company-card {
    background-color: var(--light-bg);
    border-radius: var(--border-radius-md);
    padding: var(--space-lg);
    position: relative;
    overflow: hidden;
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
    height: 100%;
}

.company-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.company-logo {
    width: 80px;
    height: 80px;
    margin-bottom: var(--space-md);
    border-radius: var(--border-radius-sm);
    overflow: hidden;
    background-color: var(--light-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
}

.company-logo img {
    width: 70%;
    height: auto;
    object-fit: contain;
}

.company-card h3 {
    font-size: 1.5rem;
    margin-bottom: var(--space-xs);
}

.company-role {
    display: block;
    color: var(--primary-color);
    font-size: 0.9rem;
    margin-bottom: var(--space-md);
    font-weight: 500;
}

.company-card p {
    color: var(--text-secondary);
    margin-bottom: var(--space-md);
}

.company-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--primary-color);
    font-weight: 500;
    transition: color var(--transition-fast);
}

.company-link:hover {
    color: var(--white);
}

.company-link i {
    font-size: 0.8rem;
}

.company-border {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background-color: var(--primary-color);
    transition: width var(--transition-slow);
}

.company-card:hover .company-border {
    width: 100%;
}

/* CONTACT SECTION */
/* CONTACT SECTION */
.contact-content {
    display: flex;
    flex-direction: column;       /* coluna para preencher melhor a div */
    gap: var(--space-xl);
    justify-content: flex-start;
    width: 100%;
}

.contact-info {
    display: flex;
    flex-direction: column;       /* cada item em linha vertical */
    gap: var(--space-lg);
    flex: 1;
    width: 100%;
}

/* Cada item de contacto ocupa 100% da largura disponível */
.info-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
    width: 100%;
}

.info-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
    min-width: 30px;              /* alinhamento dos ícones */
    margin-top: 3px;
    text-align: center;
}

.info-item h4 {
    font-size: 1.1rem;
    margin-bottom: 3px;
}

.info-item a,
.info-item p {
    color: var(--text-secondary);
    transition: color var(--transition-fast);
    font-size: 0.95rem;
    word-break: break-word;       /* evita quebra de layout em emails longos */
}

.info-item a:hover {
    color: var(--primary-color);
}

/* SOCIAL LINKS */
.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 25px;
    justify-content: flex-start;
}

.social-links a {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: var(--light-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background-color: var(--primary-color);
    transform: translateY(-3px);
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
}

.social-icon img {
    width: 100%;
    height: auto;
    filter: brightness(0) invert(0.8);
    transition: filter 0.3s ease;
}

.social-links a:hover .social-icon img {
    filter: brightness(0) invert(1);
}

/* RESPONSIVO */
@media (min-width: 768px) {
    .contact-content {
        flex-direction: row;          /* lado a lado em desktop */
    }
    .contact-info {
        max-width: 500px;             /* largura da coluna de info */
    }
}


/* FOOTER */
.footer {
    background-color: var(--darker-bg);
    padding: var(--space-xl) 0 var(--space-md);
    position: relative;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-xl);
    margin-bottom: var(--space-xl);
}

.footer-brand .logo {
    font-size: 1.8rem;
    margin-bottom: var(--space-sm);
}

.footer-brand p {
    color: var(--text-secondary);
}

.footer-links h4, .footer-contact h4 {
    font-size: 1.2rem;
    margin-bottom: var(--space-md);
    color: var(--white);
}

.footer-links ul li {
    margin-bottom: var(--space-sm);
}

.footer-links ul li a {
    color: var(--text-secondary);
    transition: color var(--transition-fast);
}

.footer-links ul li a:hover {
    color: var(--primary-color);
}

.footer-contact ul li {
    margin-bottom: var(--space-sm);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.footer-contact ul li i {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: var(--space-md);
    border-top: 1px solid var(--light-gray);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.footer-bottom p {
    margin-bottom: var(--space-xs);
}

.footer-bottom i {
    color: var(--primary-color);
}

.footer-bottom a {
    color: var(--primary-color);
    font-weight: 500;
}

/* BACK TO TOP */
.back-to-top {
    position: fixed;
    bottom: var(--space-md);
    right: var(--space-md);
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
    z-index: 999;
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--primary-dark);
    transform: translateY(-5px);
}

/* ANIMAÇÕES */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s ease forwards;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

.delay-3 {
    animation-delay: 0.6s;
}

.delay-4 {
    animation-delay: 0.8s;
}

/* RESPONSIVIDADE */
@media (max-width: 992px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
    }

    .hero-actions {
        justify-content: center;
    }

    .about-content {
        flex-direction: column;
    }

    .contact-content {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 15px;
    }

    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background-color: var(--dark-bg);
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.2);
        padding: var(--space-xl) var(--space-md);
        transition: right var(--transition-normal);
        z-index: 1000;
    }

    .nav.active {
        right: 0;
    }

    .nav-list {
        flex-direction: column;
        gap: var(--space-lg);
        margin-top: var(--space-xl);
    }

    .hamburger {
        display: block;
    }

    .title {
        font-size: 2.8rem;
    }

    .profession {
        font-size: 1.3rem;
    }

    .image-wrapper {
        width: 280px;
        height: 280px;
    }
}

@media (max-width: 576px) {
    .hero-actions {
        flex-direction: column;
        gap: var(--space-sm);
    }

    .image-wrapper {
        width: 250px;
        height: 250px;
    }

    .section-title {
        font-size: 2rem;
    }
    @media (min-width: 768px) {
    .contact-content {
        flex-direction: row;          /* lado a lado em desktop */
    }
    .contact-info {
        max-width: 500px;             /* largura da coluna de info */
    }
}
}
