/* ===== VARIABLES ===== */
:root {
    --primary-color: #2563eb;
    --primary-color-dark: #1d4ed8;
    --secondary-color: #64748b;
    --text-color: #1e293b;
    --light-text-color: #64748b;
    --bg-color: #ffffff;
    --bg-color-light: #f1f5f9;
    --bg-color-rgb: 255, 255, 255;
    --bg-color-light-rgb: 241, 245, 249;
    --font-family: 'Poppins', sans-serif;
    --transition: all 0.3s ease;
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --border-radius: 8px;
}

/* Tema escuro */
body.dark-theme {
    --primary-color: #3b82f6;
    --primary-color-dark: #2563eb;
    --text-color: #f8fafc;
    --light-text-color: #cbd5e1;
    --bg-color: #1e293b;
    --bg-color-light: #0f172a;
    --bg-color-rgb: 30, 41, 59;
    --bg-color-light-rgb: 15, 23, 42;
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* ===== BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--bg-color);
    overflow-x: hidden;
    transition: background-color 0.4s ease, color 0.4s ease;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

section {
    padding: 80px 0;
}

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

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: var(--border-radius);
    font-weight: 500;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.primary-btn {
    background-color: var(--primary-color);
    color: white;
}

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

.secondary-btn {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.secondary-btn:hover {
    background-color: var(--primary-color);
    color: white;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.section-header h2 span {
    color: var(--primary-color);
}

.underline {
    width: 80px;
    height: 4px;
    background-color: var(--primary-color);
    margin: 0 auto;
}

/* ===== NAVBAR ===== */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: var(--bg-color);
    box-shadow: var(--box-shadow);
    transition: background-color 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
}

.logo a {
    font-size: 1.8rem;
    font-weight: 700;
}

.logo span {
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-size: 1.05rem;
    font-weight: 500;
    transition: var(--transition);
}

.nav-links a:hover, 
.nav-links a.active {
    color: var(--primary-color);
}

/* Botão de tema */
.theme-toggle {
    margin-right: 20px;
}

#theme-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.4rem;
    color: var(--text-color);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

#theme-btn:hover {
    background-color: rgba(0, 0, 0, 0.1);
}

.fa-sun {
    position: absolute;
    opacity: 0;
    transform: translateY(20px) rotate(120deg);
    transition: all 0.3s ease;
}

.fa-moon {
    transform: translateY(0) rotate(0);
    transition: all 0.3s ease;
}

body.dark-theme .fa-sun {
    opacity: 1;
    transform: translateY(0) rotate(0);
}

body.dark-theme .fa-moon {
    opacity: 0;
    transform: translateY(-20px) rotate(-120deg);
}

.hamburger {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    transition: var(--transition);
    background-color: var(--text-color);
}

/* ===== HERO SECTION ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 100px 5%;
    position: relative;
    background-color: var(--bg-color-light);
    transition: background-color 0.4s ease;
    overflow: hidden;
}

/* Video Background Styles */
.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

#hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 2;
}

.hero-content {
    max-width: 600px;
    position: relative;
    z-index: 3;
    color: var(--white-color, #ffffff);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 15px;
}

.hero-content h1 span {
    color: var(--primary-color);
}

.hero-content h2 {
    font-size: 2rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.hero-content p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: var(--light-text-color);
}
.hero-picture img{
    border-radius: 30px;
    box-shadow: var(--box-shadow);
    align-self: center;
}
.col-hero{
    display: flex;
    flex-direction: row;
    gap: 20px;
    justify-content: space-around;


}

.cta-buttons {
    display: flex;
    gap: 20px;
}

.hero-image {
    position: absolute;
    right: 5%;
    top: 30%;
    transform: translateY(-50%);
    width: 450px;
    height: 450px;
    background-color: var(--primary-color);
    border-radius: 50%;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    z-index: 4; /* Increased z-index to be higher than video-overlay (z-index: 2) and hero-content (z-index: 3) */
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.social-icons {
    position: absolute;
    left: 5%;
    bottom: 50px;
    display: flex;
    gap: 20px;
}

.social-icons a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 1.2rem;
    transition: var(--transition);
    box-shadow: var(--box-shadow);
}

.social-icons a:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-5px);
}

/* ===== ABOUT SECTION ===== */
.about {
    padding: 100px 5%;
    transition: background-color 0.4s ease;
}

.about-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.about-text {
    max-width: 600px;
}

.about-text p {
    margin-bottom: 20px;
    color: var(--light-text-color);
}

.about-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 30px 0;
}

.info-item {
    display: flex;
    flex-direction: column;
}

.info-item span:first-child {
    font-weight: 600;
    color: var(--text-color);
}

.info-item span:last-child {
    color: var(--light-text-color);
}

/* ===== PROJECTS SECTION ===== */
.projects {
    padding: 100px 5%;
    background-color: var(--bg-color-light);
    transition: background-color 0.4s ease;
}

.projects-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.project-card {
    background-color: var(--bg-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: transform 0.4s ease, box-shadow 0.4s ease, background-color 0.4s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.2);
}

.project-img {
    height: 220px;
    overflow: hidden;
}

.project-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.project-card:hover .project-img img {
    transform: scale(1.1);
}

.project-info {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.project-info h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
}

.project-info p {
    margin-bottom: 15px;
    color: var(--light-text-color);
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: auto;
    margin-bottom: 20px;
}

.project-tech span {
    padding: 5px 12px;
    background-color: var(--bg-color-light);
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--primary-color);
    transition: background-color 0.4s ease, color 0.4s ease;
}

body.dark-theme .project-tech span {
    background-color: #334155;
}

.project-links {
    display: flex;
    gap: 15px;
}

.project-links a {
    color: var(--primary-color);
    font-weight: 500;
    transition: var(--transition);
}

.project-links a:hover {
    color: var(--primary-color-dark);
}

/* ===== SKILLS SECTION ===== */
.skills {
    padding: 100px 5%;
    transition: background-color 0.4s ease;
}

.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.skill-category h3 {
    margin-bottom: 25px;
    font-size: 1.5rem;
    position: relative;
    display: inline-block;
}

.skill-category h3::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 40px;
    height: 3px;
    background-color: var(--primary-color);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.skill-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    transition: transform 0.3s ease;
}

.skill-item:hover {
    transform: translateY(-8px);
}

.skill-item i {
    font-size: 2.5rem;
    color: var(--primary-color);
}

/* ===== CONTACT SECTION ===== */
.contact {
    padding: 100px 5%;
    background-color: var(--bg-color-light);
    transition: background-color 0.4s ease;
}

.contact-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 50px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-item {
    display: flex;
    gap: 20px;
    margin-left: 55px auto;
    align-items: center;
}
.contact-item > p {
    text-align: center;
    justify-content: center;
}

.contact-item i {
    width: 60px;
    height: 60px;
    background-color: var(--primary-color);
    color: white;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: transform 0.4s ease;
}

.contact-item:hover i {
    transform: rotateY(360deg);
}

.contact-item h3 {
    margin-bottom: 5px;
    font-size: 1.2rem;
}

.contact-form {
    background-color: var(--bg-color);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: background-color 0.4s ease, box-shadow 0.4s ease;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #e2e8f0;
    border-radius: var(--border-radius);
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.4s ease, background-color 0.4s ease, color 0.4s ease;
    background-color: var(--bg-color);
    color: var(--text-color);
}

body.dark-theme .form-group input,
body.dark-theme .form-group textarea {
    border-color: #334155;
    background-color: #0f172a;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group textarea {
    resize: vertical;
}

/* ===== FOOTER ===== */
footer {
    background-color: var(--text-color);
    color: white;
    padding: 50px 5% 20px;
    transition: background-color 0.4s ease;
}

body.dark-theme footer {
    background-color: #0f172a;
}

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

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--primary-color);
    transform: translateY(-5px);
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

/* Animações ao rolar */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s ease forwards;
}

.fade-in-left {
    animation: fadeInLeft 0.8s ease forwards;
}

.fade-in-right {
    animation: fadeInRight 0.8s ease forwards;
}

.zoom-in {
    animation: zoomIn 0.8s ease forwards;
}

/* ===== MEDIA QUERIES ===== */
@media screen and (max-width: 1024px) {
    .hero-content h1 {
        font-size: 3rem;
    }
    
    .hero-content h2 {
        font-size: 1.8rem;
    }
    
    .hero-image {
        width: 350px;
        height: 350px;
    }
}

@media screen and (max-width: 991px) {
    .nav-links {
        position: fixed;
        left: -100%;
        top: 80px;
        flex-direction: column;
        background-color: var(--bg-color);
        width: 100%;
        text-align: center;
        transition: var(--transition);
        box-shadow: 0 10px 10px rgba(0, 0, 0, 0.1);
        padding: 20px 0;
    }
    
    .nav-links.active {
        left: 0;
    }
    
    .hamburger {
        display: block;
    }
    
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    .hero {
        flex-direction: column;
        padding-top: 150px;
        text-align: center;
    }
    
    .hero-content {
        margin-bottom: 50px;
    }
    
    .cta-buttons {
        justify-content: center;
    }
    
    .hero-image {
        position: static;
        transform: none;
        margin: 30px auto;
    }
    
    .social-icons {
        position: static;
        justify-content: center;
        margin-top: 30px;
    }
    
    .about-content {
        flex-direction: column;
    }
    
    .contact-container {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 20px;
    }
}

@media screen and (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content h2 {
        font-size: 1.5rem;
    }
    
    .hero-image {
        width: 300px;
        height: 300px;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 480px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content h2 {
        font-size: 1.3rem;
    }
    
    .hero-image {
        width: 250px;
        height: 250px;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .about-info {
        grid-template-columns: 1fr;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
    }
    
    .skills-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}