/* Reset e configurações básicas */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

/* =========================================
   Variáveis de Tema (Light/Dark Mode)
   =========================================
*/
:root {
    --brand-primary: #6B46C1;
    --brand-primary-dark: #553C9A;
    --brand-secondary: #F6E05E;
    --brand-secondary-light: rgba(246, 224, 94, 0.3);

    /* Light Theme */
    --bg-color: #FAFAFA;
    --bg-color-secondary: #FFFFFF;
    --bg-color-tertiary: #F7FAFC;
    --text-color-primary: #2D3748;
    --text-color-secondary: #4A5568;
    --text-color-muted: #718096;
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --card-border: #E2E8F0;
    --header-bg: rgba(255, 255, 255, 0.98);
    --header-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
    --header-shadow-scrolled: 0 2px 20px rgba(0, 0, 0, 0.1);
    --form-border: #E2E8F0;
    --form-bg: #FFFFFF;
    --footer-bg: #2D3748;
    --footer-text: white;
}

body.dark-theme {
    /* Dark Theme */
    --bg-color: #1A202C;
    --bg-color-secondary: #2D3748;
    --bg-color-tertiary: #232a3b;
    --text-color-primary: #EDF2F7;
    --text-color-secondary: #E2E8F0;
    --text-color-muted: #A0AEC0;
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    --card-border: #4A5568;
    --header-bg: rgba(26, 32, 44, 0.95);
    --header-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
    --header-shadow-scrolled: 0 2px 20px rgba(0, 0, 0, 0.4);
    --form-border: #4A5568;
    --form-bg: #2D3748;
    --footer-bg: #171923;
    --footer-text: #E2E8F0;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-color-primary);
    overflow-x: hidden;
    background-color: var(--bg-color);
    transition: background-color 0.3s ease, color 0.3s ease;
}

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

/* Header */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--header-bg);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: var(--header-shadow);
}

.header.scrolled {
    box-shadow: var(--header-shadow-scrolled);
}

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

.nav-brand h2 {
    color: var(--text-color-primary);
    font-weight: 700;
    font-size: 1.5rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--text-color-secondary);
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
    font-size: 0.95rem;
}

.nav-link:hover {
    color: var(--brand-primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--brand-primary);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-color-primary);
    margin: 3px 0;
    transition: 0.3s;
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* =========================================
   Theme Switcher
   =========================================
*/
.theme-switch-wrapper {
    display: flex;
    align-items: center;
}

.theme-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
}

.theme-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 26px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
    /* Ícone de Lua */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black' width='16px' height='16px'%3E%3Cpath d='M12 2a9.969 9.969 0 0 0-8.5 4.96A9.954 9.954 0 0 0 12 22a9.954 9.954 0 0 0 8.5-15.04A9.969 9.969 0 0 0 12 2zm0 18a8 8 0 0 1 0-16 7.918 7.918 0 0 1 6.93 4.05 8.005 8.005 0 0 1-6.93 11.95z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
}

input:checked+.slider {
    background-color: var(--brand-primary);
}

input:checked+.slider:before {
    transform: translateX(24px);
    /* Ícone de Sol */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black' width='16px' height='16px'%3E%3Cpath d='M12 4a1 1 0 0 0-1 1v2a1 1 0 0 0 2 0V5a1 1 0 0 0-1-1zm0 14a1 1 0 0 0-1 1v2a1 1 0 0 0 2 0v-2a1 1 0 0 0-1-1zm-8-8a1 1 0 0 0-1 1h-2a1 1 0 0 0 0 2h2a1 1 0 0 0 1-1zm14 0a1 1 0 0 0-1 1h-2a1 1 0 0 0 0 2h2a1 1 0 0 0 1-1zm-6 2a4 4 0 1 0-4-4 4 4 0 0 0 4 4zm0-6a2 2 0 1 1-2 2 2 2 0 0 1 2-2zM5.64 5.64a1 1 0 0 0-1.42 0L3.51 6.35a1 1 0 0 0 1.42 1.42l.71-.71a1 1 0 0 0 0-1.42zm12.72 0a1 1 0 0 0 0 1.42l.71.71a1 1 0 0 0 1.42-1.42l-.71-.71a1 1 0 0 0-1.42 0zm-1.42 12.72a1 1 0 0 0-1.42 0l-.71.71a1 1 0 0 0 1.42 1.42l.71-.71a1 1 0 0 0 0-1.42zm-12.72 0a1 1 0 0 0 0 1.42l.71.71a1 1 0 0 0 1.42-1.42l-.71-.71a1 1 0 0 0-1.42 0z'/%3E%3C/svg%3E");
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding-top: 80px;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><path d="M0,0 L100,0 L100,100 Z" fill="rgba(255,255,255,0.05)"/></svg>');
    background-size: cover;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 3.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.highlight {
    color: var(--brand-secondary);
    position: relative;
}

.highlight::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 10px;
    background: var(--brand-secondary-light);
    z-index: -1;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 1.5rem;
    color: #EDF2F7;
}

.hero-description {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: #E2E8F0;
    line-height: 1.8;
}

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

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

.btn-primary {
    background: var(--brand-primary);
    color: white;
    box-shadow: 0 4px 6px rgba(107, 70, 193, 0.3);
}

.btn-primary:hover {
    background: var(--brand-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(107, 70, 193, 0.4);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: white;
    color: var(--brand-primary);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255, 255, 255, 0.2);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.social-link:hover {
    background: var(--brand-primary);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(107, 70, 193, 0.3);
}

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

.profile-img {
    width: 380px;
    height: 380px;
    border-radius: 20px;
    object-fit: cover;
    border: 5px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.profile-img:hover {
    transform: scale(1.03);
}

/* About Section */
.about {
    padding: 100px 0;
    background: var(--bg-color-secondary);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    color: var(--text-color-primary);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    width: 80px;
    height: 4px;
    background: var(--brand-primary);
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
}

.about-text {
    text-align: center;
}

.about-text p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: var(--text-color-secondary);
    line-height: 1.8;
}

.skills {
    margin-top: 3rem;
}

.skills h3 {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: var(--text-color-primary);
    text-align: center;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
}

.skill-item {
    text-align: center;
    padding: 2rem 1rem;
    background: var(--bg-color);
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    border: 1px solid var(--card-border);
}

.skill-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.skill-item i {
    font-size: 3rem;
    color: var(--brand-primary);
    margin-bottom: 1rem;
}

.skill-item span {
    font-weight: 600;
    color: var(--text-color-primary);
}

/* Ajuste para ícones específicos */
.skill-item .fa-flask,
.skill-item .fa-server,
.skill-item .fa-git-alt {
    font-weight: 900;
}


/* Projects Section */
.projects {
    padding: 100px 0;
    background: var(--bg-color-tertiary);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.project-card {
    background: var(--bg-color-secondary);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
    border: 1px solid var(--card-border);
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.project-image {
    position: relative;
    overflow: hidden;
    height: 200px;
    background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-primary-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-icon {
    font-size: 4rem;
    color: white;
    opacity: 0.9;
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(107, 70, 193, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-link {
    color: white;
    font-size: 2rem;
    text-decoration: none;
    padding: 15px;
    border: 2px solid white;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.project-link:hover {
    background: white;
    color: var(--brand-primary);
    transform: scale(1.1);
}

.project-content {
    padding: 2rem;
}

.project-content h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-color-primary);
}

.project-content p {
    color: var(--text-color-muted);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tech-tag {
    background: var(--bg-color);
    color: var(--text-color-secondary);
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid var(--card-border);
}

/* Tags de tecnologia coloridas (Opcional, mas legal) */
.tech-tag.python {
    background-color: #306998;
    color: white;
    border-color: #306998;
}
.tech-tag.django {
    background-color: #092E20;
    color: white;
    border-color: #092E20;
}
.tech-tag.flask {
    background-color: #333;
    color: white;
    border-color: #333;
}
.tech-tag.sql {
    background-color: #336791;
    color: white;
    border-color: #336791;
}
.tech-tag.ia {
    background-color: #D94A4A;
    color: white;
    border-color: #D94A4A;
}


/* Video Section */
.video-section {
    padding: 100px 0;
    background: var(--bg-color-secondary);
}

.video-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-top: 3rem;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.video-description h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--text-color-primary);
}

.video-description p {
    font-size: 1.1rem;
    color: var(--text-color-secondary);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

/* Contact Section */
.contact {
    padding: 100px 0;
    background: var(--bg-color-tertiary);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 3rem;
}

.contact-info h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--text-color-primary);
}

.contact-info p {
    font-size: 1.1rem;
    color: var(--text-color-secondary);
    line-height: 1.8;
    margin-bottom: 2rem;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.1rem;
    color: var(--text-color-secondary);
    padding: 1rem;
    background: var(--bg-color-secondary);
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--card-border);
}

.contact-method i {
    color: var(--brand-primary);
    font-size: 1.5rem;
    width: 24px;
}

.contact-form {
    background: var(--bg-color-secondary);
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--card-border);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem 1.5rem;
    border: 2px solid var(--form-border);
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
    background-color: var(--form-bg);
    color: var(--text-color-primary);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 3px rgba(107, 70, 193, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Footer */
.footer {
    background: var(--footer-bg);
    color: var(--footer-text);
    padding: 2.5rem 0;
    transition: background-color 0.3s ease;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social .social-link {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.footer-social .social-link:hover {
    background: var(--brand-primary);
    border-color: var(--brand-primary);
}

.footer .link-site {
    color: var(--brand-primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer .link-site:hover {
    color: #E2E8F0;
}

;

/* Responsive Design */
@media (max-width: 968px) {
    .hero-content {
        gap: 3rem;
    }

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

    .profile-img {
        width: 320px;
        height: 320px;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    
    .nav-actions {
        gap: 1rem; /* Ajusta o espaço no mobile */
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--header-bg);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
        gap: 1.5rem;
    }

    .nav-menu.active {
        left: 0;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .hero-text {
        order: 2; /* Texto fica abaixo da imagem no mobile */
    }
    
    .hero-image {
        order: 1;
    }

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

    .profile-img {
        width: 280px;
        height: 280px;
    }

    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }

    .video-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-content {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }

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

    .skills-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2.2rem;
    }

    .profile-img {
        width: 240px;
        height: 240px;
    }

    .nav {
        padding: 1rem;
    }

    .container {
        padding: 0 15px;
    }

    .btn {
        padding: 12px 24px;
        font-size: 0.9rem;
    }

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

    .contact-form {
        padding: 1.5rem;
    }
}

/* Animações (Scroll) */
.project-card,
.skill-item,
.video-content>* {
    /* Estilos iniciais são definidos no JS */
    transition: opacity 0.6s ease, transform 0.6s ease;
}


/* Scrollbar personalizada */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--brand-primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--brand-primary-dark);
}

/* Estilos para notificações */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 1rem 1.5rem;
    border-radius: 10px;
    color: white;
    font-weight: 500;
    z-index: 10000;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transform: translateX(400px);
    transition: transform 0.3s ease;
    max-width: 400px;
}

.notification-success {
    background: #38A169;
}

.notification-error {
    background: #E53E3E;
}

.notification-info {
    background: #3182CE;
}

.notification-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.notification-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}