/* === FONTES E VARIÁVEIS GLOBAIS === */
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/all.min.css' );

:root {
    --hue: 240; /* Base color hue (240 for blue) */
    --primary-color: hsl(var(--hue), 85%, 50%);
    --gradient-primary: linear-gradient(135deg, hsl(var(--hue), 75%, 60%), hsl(calc(var(--hue) + 30), 85%, 55%));
    --gradient-text: linear-gradient(90deg, hsl(var(--hue), 85%, 65%), hsl(calc(var(--hue) + 40), 90%, 60%));
    
    /* Light Mode */
    --bg-color: hsl(0, 0%, 98%);
    --bg-secondary-color: hsl(0, 0%, 100%);
    --text-color: hsl(var(--hue), 20%, 25%);
    --text-secondary-color: hsl(var(--hue), 15%, 50%);
    --border-color: hsl(var(--hue), 20%, 90%);
    --shadow-color: hsla(var(--hue), 40%, 50%, 0.2);

    /* Shared */
    --border-radius: 16px;
    --transition-fast: all 0.2s ease-out;
    --transition-slow: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* === DARK MODE === */
body.dark-mode {
    --hue: 250; /* Slightly different hue for dark mode */
    --bg-color: hsl(var(--hue), 20%, 12%);
    --bg-secondary-color: hsl(var(--hue), 20%, 18%);
    --text-color: hsl(var(--hue), 20%, 95%);
    --text-secondary-color: hsl(var(--hue), 15%, 65%);
    --border-color: hsl(var(--hue), 20%, 25%);
    --shadow-color: hsla(var(--hue), 50%, 3%, 0.5);
}

/* === RESET E ESTILOS BASE === */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Open Sans', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    transition: background-color 0.3s, color 0.3s;
    overflow-x: hidden;
}
.container { max-width: 1120px; margin: 0 auto; padding: 0 1rem; }
h1, h2, h3, h4 { font-family: 'Caveat', cursive; font-weight: 700; line-height: 1.2; }
h1 { font-size: clamp(3rem, 6vw, 5rem); }
p { color: var(--text-secondary-color); line-height: 1.7; }

/* === NAVBAR === */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0.5rem 0;
    background: hsla(0, 0%, 100%, 0.5);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition-fast);
}
body.dark-mode .navbar {
    background: hsla(var(--hue), 20%, 12%, 0.5);
}
.nav-container { display: flex; justify-content: space-between; align-items: center; }
.logo { display: flex; align-items: center; gap: 1rem; }
.profile-img { width: 50px; height: 50px; border-radius: 50%; border: 2px solid var(--primary-color); }
.logo-text h2 { font-size: 1.5rem; margin: 0; color: var(--text-color); }
.logo-text span { font-size: 0.8rem; color: var(--text-secondary-color); }
.nav-menu { display: flex; gap: 0.5rem; }
.nav-link {
    text-decoration: none;
    color: var(--text-secondary-color);
    font-weight: 600;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    transition: var(--transition-fast);
    position: relative;
}
.nav-link:hover { color: var(--text-color); background-color: hsla(var(--hue), 50%, 50%, 0.1); }
.nav-link.active { color: var(--primary-color); }
.nav-actions { display: flex; align-items: center; gap: 1rem; }
.theme-toggle-btn {
    background: none;
    border: none;
    color: var(--text-secondary-color);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: var(--transition-fast);
}
.theme-toggle-btn:hover { color: var(--primary-color); background-color: hsla(var(--hue), 50%, 50%, 0.1); }
.hamburger { display: none; /* Lógica no final */ }

/* === HERO SECTION === */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    position: relative;
    overflow: hidden;
}
.hero-section::before { /* Efeito de gradiente no fundo */
    content: '';
    position: absolute;
    top: -20%;
    left: -20%;
    width: 40%;
    height: 150%;
    background: var(--gradient-primary);
    filter: blur(150px);
    opacity: 0.15;
    z-index: -1;
}
body.dark-mode .hero-section::before { opacity: 0.2; }
.hero-content { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: center; }
.hero-text h1 {
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}
.hero-text h2 { font-size: 1.5rem; color: var(--text-secondary-color); font-family: 'Open Sans'; margin-bottom: 2rem; }
.hero-image img {
    width: 100%;
    max-width: 380px;
    border-radius: 50%;
    border: 8px solid var(--bg-secondary-color);
    box-shadow: 0 10px 40px var(--shadow-color);
}

/* === BOTÕES E LINKS === */
.cta-button, .submit-btn {
    display: inline-block;
    background: var(--gradient-primary);
    color: white;
    text-decoration: none;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: var(--transition-slow);
    box-shadow: 0 8px 25px -8px var(--primary-color);
    position: relative;
    overflow: hidden;
}
.cta-button:hover, .submit-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px -10px var(--primary-color);
}
.cta-button::after, .submit-btn::after { /* Efeito de brilho */
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 0;
    height: 200%;
    background: rgba(255, 255, 255, 0.2);
    transition: width 0.6s ease;
    transform-origin: center;
    opacity: 0;
}
.cta-button:hover::after, .submit-btn:hover::after {
    width: 150%;
    opacity: 1;
    transition: width 0.6s ease;
}

/* === SEÇÕES GERAIS === */
section { padding: 6rem 0; }
.about-section, .contact-section { background-color: var(--bg-secondary-color); }
section h1 { text-align: center; margin-bottom: 3rem; }

/* === SKILLS & EXPERIENCE === */
.skills-container { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; margin: 3rem 0; }
.progress-bar { height: 6px; background-color: var(--border-color); border-radius: 3px; overflow: hidden; }
.progress-fill { height: 100%; background: var(--gradient-primary); width: 0%; transition: width 1.5s cubic-bezier(0.165, 0.84, 0.44, 1); }
.experience-item {
    background: var(--bg-color); margin-top: 1.5rem;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    margin-bottom: 1.5rem;
    transition: var(--transition-slow);
    
}
.experience-item:hover { transform: translateY(-5px); box-shadow: 0 10px 30px var(--shadow-color); }

/* === CURSOS (CARDS) === */
.cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; margin-top: 2rem;}
.course-card {
    background: hsla(0, 0%, 100%, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    transition: var(--transition-slow);
    text-align: center;
}
body.dark-mode .course-card {
    background: hsla(var(--hue), 20%, 18%, 0.5);
}
.course-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px var(--shadow-color);
}
.course-card img { width: 100%; height: 180px; object-fit: cover; border-radius: 10px; margin-bottom: 1rem; }
.course-card h3 { color: var(--primary-color); margin-bottom: 0.5rem; }
.card-link a {
    display: inline-block;
    margin-top: 1rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    border: 1px solid var(--primary-color);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    transition: var(--transition-fast);
}
.card-link a:hover { background-color: var(--primary-color); color: white; }

/* === CONTATO === */
.contact-content { display: grid; grid-template-columns: 2fr 1fr; gap: 3rem;margin-top: 2rem; }
.form-group input, .form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background-color: var(--bg-color);
    color: var(--text-color);
    font-size: 1rem;
    transition: var(--transition-fast);
}
.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px hsla(var(--hue), 85%, 50%, 0.2);
}
.contact-info { background: var(--bg-color); padding: 2rem; border-radius: var(--border-radius); }
.contact-item a { color: var(--text-secondary-color); text-decoration: none; transition: var(--transition-fast); }
.contact-item i { margin-right: 0.75rem; width: 20px; text-align: center; }
.contact-item a:hover { color: var(--primary-color); }

/* === FOOTER === */
.footer { background: var(--bg-secondary-color); text-align: center; padding: 2rem 0; border-top: 1px solid var(--border-color); }

/* === RESPONSIVIDADE === */
@media (max-width: 768px) {
    .nav-menu { position: fixed; left: -100%; top: 65px; flex-direction: column; background-color: var(--bg-secondary-color); width: 100%; text-align: center; transition: 0.3s; box-shadow: 0 10px 20px var(--shadow-color); padding: 2rem 0; }
    .nav-menu.active { left: 0; }
    .hamburger { display: flex; flex-direction: column; cursor: pointer; gap: 5px; }
    .hamburger span { width: 25px; height: 2px; background-color: var(--text-color); transition: var(--transition-fast); border-radius: 2px; }
    .hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
    .hamburger.active span:nth-child(2) { opacity: 0; }
    .hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }
    .hero-content, .skills-container, .contact-content { grid-template-columns: 1fr; }
    .hero-image { order: -1; text-align: center; }
    .hero-text { text-align: center; }
}
