/* Basic Reset & Variables */
:root {
    /* Tema escuro (padrão) */
    --primary-color: #2563eb; /* Azul mais moderno */
    --primary-gradient: linear-gradient(135deg, #2563eb, #3b82f6, #60a5fa); /* Gradiente azul moderno */
    --secondary-color: #1d4ed8; /* Azul mais escuro para contraste */
    --dark-color: #0f172a; /* Fundo escuro mais azulado */
    --darker-color: #020617; /* Preto azulado para contraste */
    --light-color: #f1f5f9; /* Quase branco com tom azulado */
    --white-color: #ffffff; /* Branco puro */
    --text-color: #e2e8f0; /* Texto claro para fundos escuros */
    --dark-text-color: #0f172a; /* Texto escuro para fundos claros */
    --accent-color: #3b82f6;
    --accent-color-rgb: 59, 130, 246;
    --success-color: #10b981; /* Verde esmeralda */
    --warning-color: #f59e0b; /* Âmbar */
    --error-color: #ef4444; /* Vermelho */
    --card-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    --card-glow: 0 0 15px rgba(59, 130, 246, 0.2);
    --bg-color: var(--dark-color);
    --bg-color-alt: var(--darker-color);
    --card-bg: var(--darker-color);
    --card-border: rgba(59, 130, 246, 0.1);
    --header-bg: rgba(2, 6, 23, 0.85); /* Fundo semi-transparente para header */
    --modal-bg: var(--dark-color);
    --font-family: 'Poppins', sans-serif;
    --border-radius-sm: 8px;
    --border-radius-md: 12px;
    --border-radius-lg: 20px;
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
}

/* Tema claro */
[data-theme="light"] {
    --dark-color: #f8fafc; /* Fundo claro com tom azulado */
    --darker-color: #ffffff; /* Branco puro */
    --light-color: #1e293b; /* Azul escuro para texto */
    --white-color: #0f172a; /* Preto azulado */
    --text-color: #334155; /* Cinza azulado para texto */
    --dark-text-color: #0f172a; /* Texto ainda mais escuro */
    --primary-color: #2563eb; /* Mantém o azul primário */
    --primary-gradient: linear-gradient(135deg, #1d4ed8, #2563eb, #3b82f6); /* Gradiente azul mais intenso */
    --bg-color: var(--dark-color);
    --bg-color-alt: var(--darker-color);
    --card-bg: var(--darker-color);
    --card-border: rgba(59, 130, 246, 0.2);
    --header-bg: rgba(255, 255, 255, 0.9); /* Fundo semi-transparente para header */
    --modal-bg: var(--dark-color);
    --hero-text-color: #1e293b; /* Texto azul escuro para o hero no tema claro */
    --hero-highlight-color: #2563eb; /* Azul vibrante para destaque no hero */
    --card-shadow: 0 4px 20px rgba(15, 23, 42, 0.1);
    --card-glow: 0 0 20px rgba(59, 130, 246, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth; /* Enables smooth scrolling */
}

body {
    font-family: var(--font-family);
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--bg-color);
    transition: background-color 0.3s ease, color 0.3s ease;
    padding-top: 60px; /* Adjust this value based on your header height */
}

h1, h2, h3 {
    margin-bottom: 1rem;
    color: var(--light-color);
    transition: color 0.3s ease;
}

p {
    margin-bottom: 1rem;
    transition: color 0.3s ease;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

section {
    padding: 40px 20px;
    min-height: auto; /* Override to auto to prevent large gaps */
    border-bottom: 1px solid var(--card-border);
    background-color: var(--bg-color);
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

section:nth-child(odd) {
    background-color: var(--bg-color-alt);
}

section:last-of-type {
     border-bottom: none;
}

.container { /* Optional: Use a container to center content */
    max-width: 1100px;
    margin: auto;
    overflow: hidden;
    padding: 0 15px;
}

/* Header/Nav */
header {
    background: var(--header-bg);
    color: var(--light-color);
    padding: 0.8rem 0;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    width: 100%;
    border-bottom: 1px solid rgba(59, 130, 246, 0.15);
    transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1100px;
    margin: auto;
    padding: 0 15px;
}

header .logo {
    font-size: 1.4rem;
    font-weight: bold;
    color: var(--primary-color);
}

header nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
}

header nav ul li {
    margin-left: 15px;
}

header nav ul li a {
    color: var(--light-color);
    padding: 5px 8px;
    transition: color 0.3s ease;
    font-size: 0.95rem;
}

header nav ul li a:hover {
    color: var(--primary-color);
}

/* First child extra spacing for better aesthetics */
header nav ul li:first-child {
    margin-left: 10px;
}

/* Last child extra spacing for better aesthetics */
header nav ul li:last-child {
    margin-right: 10px;
}

/* More distinct active state */
header nav ul li a.active {
    background: var(--primary-gradient);
    color: var(--white-color);
    border-color: transparent;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--light-color);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 10px;
    transition: color 0.3s ease, background-color 0.3s ease;
    border-radius: 5px;
    z-index: 1002; /* Increased z-index to ensure it's above other elements */
    position: relative; /* Ensure z-index works */
    outline: none; /* Remove default button outline */
}

.mobile-menu-btn .menu-text {
    font-size: 0.8rem;
    margin-left: 5px;
    display: none; /* Hide by default, show on mobile */
}

.mobile-menu-btn:hover {
    color: var(--primary-color);
    background-color: rgba(255, 255, 255, 0.05); /* Slight background on hover */
}

/* Mobile Menu Styles */
@media (max-width: 768px) {
    /* Header adjustments */
    header {
        padding: 0.5rem 0;
        transition: transform 0.4s ease;
    }

    body {
        padding-top: 55px; /* Adjusted for smaller header on mobile */
    }
    
    /* Mobile Menu Button */
    .mobile-menu-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 1002;
        width: auto;
        height: 40px;
        background-color: rgba(59, 130, 246, 0.1);
        border-radius: var(--border-radius-sm);
        padding: 5px 15px;
        cursor: pointer;
    }
    
    .mobile-menu-btn .menu-text {
        display: inline-block;
        margin-left: 8px;
        font-size: 0.9rem;
        font-weight: 500;
    }
    
    .mobile-menu-btn:active {
        transform: scale(0.95);
    }
    
    header nav {
        padding: 0 15px;
        position: relative;
    }
    
    header nav ul {
        display: none;
        position: fixed;
        top: 55px;
        left: 0;
        right: 0;
        height: auto; /* Auto height for vertical layout */
        max-height: 70vh; /* Limit maximum height */
        background: var(--header-bg);
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding: 12px 5px;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
        z-index: 1001;
        border-top: 1px solid rgba(59, 130, 246, 0.2);
        margin-top: 0;
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        overflow-x: hidden;
        overflow-y: auto;
        scrollbar-width: thin; /* Firefox */
        -ms-overflow-style: thin; /* IE and Edge */
    }
    
    header nav ul::-webkit-scrollbar {
        display: none; /* Chrome, Safari and Opera */
    }
    
    header nav ul.active {
        display: flex;
        animation: slideIn 0.3s ease forwards;
    }
    
    @keyframes slideIn {
        from {
            opacity: 0;
            transform: translateY(-5px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    header nav ul li {
        margin: 4px 0; /* Vertical spacing */
        text-align: center;
        width: 100%;
        opacity: 0;
        transform: translateY(10px);
        animation: fadeInItems 0.5s forwards;
        flex-shrink: 0;
    }
    
    /* First child extra spacing for better aesthetics */
    header nav ul li:first-child {
        margin-left: 5px;
    }
    
    /* Last child extra spacing for better aesthetics */
    header nav ul li:last-child {
        margin-right: 5px;
    }
    
    @keyframes fadeInItems {
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
    
    header nav ul.active li:nth-child(1) { animation-delay: 0.05s; }
    header nav ul.active li:nth-child(2) { animation-delay: 0.1s; }
    header nav ul.active li:nth-child(3) { animation-delay: 0.15s; }
    header nav ul.active li:nth-child(4) { animation-delay: 0.2s; }
    header nav ul.active li:nth-child(5) { animation-delay: 0.25s; }
    header nav ul.active li:nth-child(6) { animation-delay: 0.3s; }
    header nav ul.active li:nth-child(7) { animation-delay: 0.35s; }
    header nav ul.active li:nth-child(8) { animation-delay: 0.4s; }
    header nav ul.active li:nth-child(9) { animation-delay: 0.45s; }
    header nav ul.active li:nth-child(10) { animation-delay: 0.5s; }
    
    /* Override desktop styles for mobile */
    header nav ul li a {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        padding: 10px 15px;
        font-size: 1rem;
        border-radius: 12px;
        transition: all 0.3s ease;
        background-color: rgba(59, 130, 246, 0.05);
        border: 1px solid rgba(59, 130, 246, 0.05);
        width: 85%;
        max-width: 280px;
        text-align: left;
        font-weight: 500;
        color: var(--light-color);
        white-space: normal; /* Allow text wrapping */
        height: auto; /* Auto height */
        min-height: 44px; /* Minimum height for touch targets */
    }
    
    /* Different spacing for very small screens */
    @media (max-width: 375px) {
        header nav ul li a {
            padding: 8px 12px;
            font-size: 0.9rem;
            min-height: 40px;
            width: 90%;
        }
        
        header nav ul li {
            margin: 3px 0;
        }
        
        header nav ul {
            padding: 10px 5px;
        }
    }
    
    /* Extra small screens */
    @media (max-width: 320px) {
        header nav ul li a {
            padding: 7px 10px;
            font-size: 0.85rem;
            min-height: 38px;
            width: 95%;
        }
        
        header nav ul li {
            margin: 2px 0;
        }
        
        header nav ul {
            padding: 8px 2px;
        }
    }
    
    header nav ul li a i {
        display: inline-block;
        margin-right: 10px;
        font-size: 1.1rem;
        min-width: 20px;
        text-align: center;
    }
    
    header nav ul li a:hover {
        background-color: rgba(59, 130, 246, 0.1);
        transform: translateY(-2px);
        border-color: rgba(59, 130, 246, 0.2);
        color: var(--primary-color);
    }
    
    /* More distinct active state */
    header nav ul li a.active {
        background: var(--primary-gradient);
        color: var(--white-color) !important;
        border-color: transparent;
        box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
        transform: translateX(5px);
        font-weight: 600;
    }
    
    /* Special style for the blog link to make it stand out */
    header nav ul li a.blog-link {
        background: var(--primary-gradient);
        color: var(--white-color) !important;
    }
    
    header nav ul li a.blog-link:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
        border-color: transparent;
    }
    
    header nav ul li a.blog-link i {
        display: none; /* Hide blog icon as well */
    }
    
    /* Scrollable indicator */
    header nav ul.scrollable::after {
        content: '';
        position: absolute;
        top: 50%;
        right: 10px;
        transform: translateY(-50%);
        width: 20px;
        height: 20px;
        background: linear-gradient(90deg, transparent, var(--header-bg) 60%);
        border-radius: 50%;
        pointer-events: none;
        animation: pulseGlow 1.5s infinite alternate;
        z-index: 2;
    }
    
    @keyframes pulseGlow {
        from {
            opacity: 0.2;
            box-shadow: 0 0 5px rgba(59, 130, 246, 0.2);
        }
        to {
            opacity: 0.8;
            box-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
        }
    }
    
    /* Add a hint on first display */
    header nav ul.scrollable li:last-child {
        margin-right: 25px; /* Extra space for the scroll indicator */
    }
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(15, 23, 42, 0.9), rgba(2, 6, 23, 0.95)), 
                url('images/background.jpg') no-repeat center center/cover;
    color: var(--light-color);
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    transition: background 0.3s ease;
    margin-top: -60px; /* Negative margin to offset body padding */
    padding-top: 60px; /* Add padding to compensate for the negative margin */
    position: relative;
    overflow: hidden;
    perspective: 1200px; /* Perspective for 3D elements in the hero */
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(59, 130, 246, 0.15), transparent 30%),
        radial-gradient(circle at 80% 70%, rgba(37, 99, 235, 0.1), transparent 40%);
    pointer-events: none;
    animation: backgroundShift 15s infinite alternate ease-in-out;
}

@keyframes backgroundShift {
    0% {
        background-position: 0% 0%;
    }
    100% {
        background-position: 100% 100%;
    }
}

/* 3D Hero Content Container */
.hero-content {
    position: relative;
    z-index: 2;
    padding: 30px;
    background-color: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(8px);
    border-radius: 20px;
    max-width: 800px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transform-style: preserve-3d;
    transform: translateZ(0);
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.hero-content:hover {
    transform: translateZ(20px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.7);
}

/* 3D effect for hero heading */
.hero h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    color: var(--light-color);
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 5px 15px rgba(59, 130, 246, 0.2);
    transform: translateZ(30px);
    transition: transform 0.5s ease;
}

.hero-content:hover h1 {
    transform: translateZ(40px);
}

/* 3D effect for CTA buttons */
.cta-button {
    display: inline-block;
    background: var(--primary-gradient);
    color: var(--white-color);
    padding: 14px 28px;
    border-radius: 30px;
    margin: 15px 8px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: none;
    cursor: pointer;
    font-weight: 500;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    z-index: 1;
    transform: translateZ(20px);
}

.hero-content:hover .cta-button {
    transform: translateZ(30px);
}

.cta-button:hover {
    transform: translateY(-3px) translateZ(50px) scale(1.05);
    box-shadow: 0 15px 30px rgba(37, 99, 235, 0.4);
}

/* Enhanced floating tech logos for 3D effect */
.tech-logo {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3), 0 0 10px rgba(30, 79, 255, 0.2);
    color: var(--primary-color);
    font-size: 24px;
    z-index: 3;
    opacity: 0.8;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: auto;
    text-align: center;
    overflow: hidden;
    transform-style: preserve-3d;
    transform: translateZ(0) rotateX(0) rotateY(0);
}

.tech-logo:hover {
    opacity: 1;
    transform: scale(1.3) translateZ(30px) rotateY(10deg);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5), 0 0 30px rgba(30, 79, 255, 0.6);
    z-index: 10;
}

/* 3D animation for floating logos */
@keyframes float3D {
    0% {
        transform: translate(0, 0) rotateX(0deg) rotateY(0deg) translateZ(0);
    }
    25% {
        transform: translate(10px, 10px) rotateX(5deg) rotateY(10deg) translateZ(10px);
    }
    50% {
        transform: translate(0, 20px) rotateX(-5deg) rotateY(5deg) translateZ(20px);
    }
    75% {
        transform: translate(-10px, 10px) rotateX(10deg) rotateY(-5deg) translateZ(10px);
    }
    100% {
        transform: translate(0, 0) rotateX(0deg) rotateY(0deg) translateZ(0);
    }
}

.tech-logo {
    animation: float3D 20s infinite ease-in-out;
}

.tech-logo:nth-child(2n) {
    animation-duration: 25s;
    animation-delay: 1s;
}

.tech-logo:nth-child(3n) {
    animation-duration: 28s;
    animation-delay: 2s;
}

.tech-logo:nth-child(5n) {
    animation-duration: 30s;
    animation-delay: 3s;
}

/* Mobile responsive adjustments for 3D effects */
@media (max-width: 768px) {
    .profile-badge {
        perspective: 800px;
    }
    
    .badge-container {
        max-width: 220px;
    }
    
    .profile-photo {
        width: 140px;
        height: 140px;
    }
    
    .hero h1 {
        font-size: 2rem;
        transform: translateZ(20px);
    }
    
    .hero-content {
        padding: 20px;
    }
    
    .tech-logo {
        animation: float3D 15s infinite ease-in-out;
    }
}

@media (max-width: 480px) {
    .profile-badge {
        perspective: 600px;
    }
    
    .badge-container {
        max-width: 180px;
        padding: 15px;
    }
    
    .profile-photo {
        width: 120px;
        height: 120px;
    }
    
    .hero h1 {
        font-size: 1.7rem;
        transform: translateZ(10px);
    }
}

/* Skills Section */
#skills {
    background-color: var(--bg-color);
}
.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}
.skill-category {
    background-color: var(--bg-color-alt);
    border-radius: 8px;
    padding: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--card-border);
}

.skill-category:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(30, 79, 255, 0.3);
    border-color: var(--primary-color);
}

.skill-category h3 {
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 5px;
    margin-bottom: 15px;
    transition: color 0.3s ease;
}

.skill-category:hover h3 {
    color: var(--accent-color);
}

.skill-category ul, .soft-skills {
    list-style: none;
    padding: 0;
}
.skill-category li, .soft-skills li {
    background: var(--card-bg);
    margin-bottom: 6px;
    padding: 6px 10px;
    border-radius: 4px;
    border-left: 3px solid var(--primary-color);
    color: var(--text-color);
    transition: all 0.3s ease;
}

.skill-category:hover li {
    border-left-color: var(--accent-color);
}

.skill-category li:hover {
    transform: translateX(5px);
    background-color: rgba(30, 79, 255, 0.1);
}

[data-theme="light"] .skill-category li:hover {
    background-color: rgba(30, 79, 255, 0.15);
}

.soft-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}
.soft-skills li {
    border-left: 3px solid var(--accent-color);
    transition: all 0.3s ease;
}

.soft-skills li:hover {
    transform: scale(1.05);
    background-color: rgba(30, 79, 255, 0.1);
}


/* Projects Section with 3D Effects */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    justify-content: center;
    perspective: 1000px; /* Add perspective for 3D effect */
}

.project-card {
    background: var(--card-bg);
    border-radius: var(--border-radius-md);
    box-shadow: var(--card-shadow);
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--card-border);
    height: 100%;
    position: relative;
    isolation: isolate;
    transform-style: preserve-3d; /* Enable 3D transformations */
    transform: translateZ(0) rotateX(0) rotateY(0);
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--primary-gradient);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
    z-index: 1;
}

.project-card:hover {
    transform: translateY(-10px) translateZ(20px) rotateY(5deg);
    box-shadow: -10px 10px 30px rgba(0, 0, 0, 0.4), var(--card-glow);
    border-color: rgba(59, 130, 246, 0.3);
}

.project-card:hover::before {
    transform: scaleX(1);
}

.project-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.5s ease;
    position: relative;
    transform: translateZ(10px); /* 3D effect for images */
}

.project-card:hover img {
    transform: scale(1.08) translateZ(30px);
}

.project-card h3 {
    margin: 18px 15px 8px 15px;
    font-size: 1.2rem;
    color: var(--light-color);
    transition: color 0.3s ease, transform 0.3s ease;
    transform: translateZ(15px); /* 3D effect for title */
}

.project-card:hover h3 {
    transform: translateZ(40px);
    color: var(--primary-color);
}

.project-card p {
    margin: 0 15px 15px 15px;
    flex-grow: 1;
    font-size: 0.95rem;
    color: var(--text-color);
    opacity: 0.9;
    line-height: 1.5;
    transition: transform 0.3s ease;
    transform: translateZ(5px); /* Subtle 3D effect for text */
}

.project-card:hover p {
    transform: translateZ(25px);
}

.project-card .view-details {
    display: block;
    text-align: center;
    padding: 12px;
    background-color: rgba(59, 130, 246, 0.1);
    color: var(--primary-color);
    font-weight: 500;
    margin-top: auto;
    transition: all 0.3s ease, transform 0.3s ease;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
    transform: translateZ(5px); /* 3D effect for button */
}

.project-card:hover .view-details {
    transform: translateZ(35px);
    background-color: rgba(59, 130, 246, 0.2);
}

.project-card .view-details:hover {
    background-color: var(--primary-color);
    color: var(--white-color);
}

/* Resume Cards 3D Effects */
.resume-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    perspective: 1000px; /* Add perspective for 3D effect */
}

.resume-card {
    background-color: var(--bg-color-alt);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid var(--card-border);
    display: flex;
    flex-direction: column;
    height: 100%;
    transform-style: preserve-3d; /* Enable 3D transformations */
    transform: translateZ(0);
}

.resume-card:hover {
    transform: translateY(-10px) translateZ(20px) rotateX(5deg);
    box-shadow: 0 20px 40px rgba(30, 79, 255, 0.3);
    border-color: var(--primary-color);
}

.resume-icon {
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 12px;
    transition: transform 0.4s ease, color 0.3s ease;
    transform: translateZ(10px); /* 3D effect for icon */
}

.resume-card:hover .resume-icon {
    color: var(--accent-color);
    transform: scale(1.2) translateZ(40px);
}

.resume-card h3 {
    color: var(--light-color);
    margin-bottom: 12px;
    font-size: 1.3rem;
    transition: transform 0.3s ease;
    transform: translateZ(5px); /* 3D effect for title */
}

.resume-card:hover h3 {
    transform: translateZ(30px);
    color: var(--primary-color);
}

.resume-card p {
    color: var(--text-color);
    margin-bottom: 20px;
    font-size: 0.9rem;
    line-height: 1.4;
    flex-grow: 1;
    transition: transform 0.3s ease;
}

.resume-card:hover p {
    transform: translateZ(20px);
}

/* Contact Section */
#contact {
    background: var(--bg-color-alt);
    color: var(--light-color);
    text-align: center;
}
#contact h2 {
    color: var(--light-color);
}
#contact p {
    color: var(--text-color);
    opacity: 0.9;
}
.contact-links a {
    color: var(--primary-color);
    margin: 0 15px;
    font-size: 1.5rem; /* Increase icon size */
    transition: all 0.3s ease;
}
.contact-links a:hover {
    color: var(--accent-color);
    transform: translateY(-3px);
}
.contact-links i { /* Font Awesome icons */
     margin-right: 8px;
}


/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(2, 6, 23, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.modal-content {
    background-color: var(--bg-color);
    margin: 5% auto;
    padding: 35px;
    border: 1px solid rgba(59, 130, 246, 0.2);
    width: 90%;
    max-width: 850px;
    border-radius: var(--border-radius-md);
    position: relative;
    animation: modalFadeIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3), 0 0 30px rgba(59, 130, 246, 0.15);
}

.modal-content::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--border-radius-md);
    padding: 1.5px;
    background: linear-gradient(45deg, 
        rgba(59, 130, 246, 0.3) 0%, 
        rgba(37, 99, 235, 0.1) 50%, 
        rgba(59, 130, 246, 0.3) 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, 
                linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, 
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.close-button {
    position: absolute;
    right: 20px;
    top: 15px;
    color: var(--primary-color);
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: rgba(59, 130, 246, 0.1);
}

.close-button:hover {
    color: var(--accent-color);
    transform: rotate(90deg);
    background-color: rgba(59, 130, 246, 0.2);
}

#modal-image {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: var(--border-radius-sm);
    margin-bottom: 25px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

#modal-title {
    color: var(--light-color);
    font-size: 1.8rem;
    margin-bottom: 15px;
    padding-right: 40px;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

#modal-description {
    color: var(--text-color);
    margin-bottom: 25px;
    line-height: 1.7;
}

#modal-stack {
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 25px;
    padding: 12px 15px;
    background-color: rgba(59, 130, 246, 0.1);
    border-radius: var(--border-radius-sm);
    border-left: 3px solid var(--primary-color);
}

#modal-highlights {
    list-style: none;
    padding: 0;
    margin: 0 0 25px 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 15px;
}

#modal-highlights li {
    color: var(--text-color);
    padding: 12px 15px 12px 35px;
    position: relative;
    background-color: rgba(59, 130, 246, 0.05);
    border-radius: var(--border-radius-sm);
    transition: transform 0.3s ease, background-color 0.3s ease;
}

#modal-highlights li:hover {
    transform: translateX(5px);
    background-color: rgba(59, 130, 246, 0.1);
}

#modal-highlights li::before {
    content: "•";
    color: var(--primary-color);
    position: absolute;
    left: 15px;
    font-size: 1.2rem;
}

.modal-links {
    display: flex;
    gap: 20px;
    margin-top: 30px;
}

.modal-links a {
    flex: 1;
    text-align: center;
    padding: 12px 20px;
    border-radius: 30px;
    transition: all 0.3s ease;
    font-weight: 500;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.modal-links a:first-child {
    background: var(--primary-gradient);
    color: var(--white-color);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.2);
}

.modal-links a:last-child {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.modal-links a::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.1), 
        transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
    z-index: -1;
}

.modal-links a:hover::before {
    transform: translateX(100%);
}

.modal-links a:hover {
    transform: translateY(-3px);
}

.modal-links a:first-child:hover {
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.35);
}

.modal-links a:last-child:hover {
    background: var(--primary-gradient);
    color: var(--white-color);
    border-color: transparent;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Responsive adjustments for modal */
@media (max-width: 768px) {
    .modal-content {
        margin: 10% auto;
        width: 95%;
        padding: 20px;
    }

    #modal-title {
        font-size: 1.5rem;
    }

    .modal-links {
        flex-direction: column;
    }

    #modal-image {
        max-height: 300px;
    }
}

@media (max-width: 480px) {
    .modal-content {
        margin: 15% auto;
        padding: 15px;
    }

    #modal-title {
        font-size: 1.3rem;
    }

    #modal-image {
        max-height: 200px;
    }
}

/* Footer */
footer {
    text-align: center;
    padding: 20px;
    background: var(--bg-color-alt);
    color: var(--text-color);
    font-size: 0.9rem;
    border-top: 1px solid var(--primary-color);
}

/* Profile Badge Styles */
.profile-badge {
    margin-bottom: 30px;
    display: flex;
    justify-content: center;
    perspective: 1000px; /* Add perspective for 3D effect */
}

.badge-container {
    background-color: rgba(2, 6, 23, 0.6);
    border-radius: var(--border-radius-lg);
    padding: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275), 
                box-shadow 0.6s ease;
    max-width: 260px;
    transform: rotate(-2deg) translateZ(0);
    transform-style: preserve-3d; /* Enable 3D transformations */
    border: 1px solid rgba(59, 130, 246, 0.2);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.badge-container::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--border-radius-lg);
    padding: 2px;
    background: linear-gradient(45deg, 
        rgba(59, 130, 246, 0.5) 0%, 
        rgba(37, 99, 235, 0.2) 50%, 
        rgba(59, 130, 246, 0.5) 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, 
                  linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, 
          linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    transform: translateZ(1px); /* Small 3D offset */
}

.badge-container:hover {
    transform: rotate(0deg) translateZ(30px) scale(1.05);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5), 
                0 0 40px rgba(59, 130, 246, 0.3);
}

.profile-photo {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid transparent;
    background: linear-gradient(#000, #000) padding-box,
                var(--primary-gradient) border-box;
    margin-bottom: 15px;
    transition: transform 0.5s ease, box-shadow 0.5s ease;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    transform: translateZ(10px); /* 3D effect for the photo */
}

.badge-container:hover .profile-photo {
    transform: translateZ(50px) scale(1.05);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.badge-info {
    text-align: center;
    width: 100%;
    padding: 10px 15px;
    background: var(--primary-gradient);
    border-radius: var(--border-radius-sm);
    margin-top: 10px;
    position: relative;
    overflow: hidden;
    transform: translateZ(20px); /* 3D effect for the info section */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.badge-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.2), 
        transparent);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% {
        left: -100%;
    }
    20%, 100% {
        left: 100%;
    }
}

.badge-name {
    display: block;
    color: var(--white-color);
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.5px;
}

.badge-role {
    display: block;
    color: var(--light-color);
    font-size: 0.85rem;
    margin-top: 5px;
    opacity: 0.9;
}

/* Basic Responsiveness */
@media (max-width: 768px) {
    header {
        padding: 0.5rem 0;
    }
    
    header nav {
        flex-direction: column;
        align-items: center;
    }
    
    header nav ul {
        margin-top: 8px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    header nav ul li {
        margin: 3px 5px;
    }
    
    header nav ul li a {
        padding: 3px 5px;
        font-size: 0.85rem;
    }
    
    header .logo {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    header {
        padding: 0.4rem 0;
    }
    
    header nav ul {
        margin-top: 5px;
    }
    
    header nav ul li {
        margin: 2px 4px;
    }
    
    header nav ul li a {
        padding: 2px 4px;
        font-size: 0.8rem;
    }
    
    header .logo {
        font-size: 1.1rem;
    }
}

/* Mobile and Small Tablets */
@media (min-width: 481px) and (max-width: 768px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr); /* Two columns for tablets */
        gap: 15px;
        padding: 0 10px;
    }
}

/* Tablet & Smaller Desktops */
@media (min-width: 769px) and (max-width: 1024px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .skills-container {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    }
    
    .projects-grid, .resume-grid {
        grid-template-columns: repeat(3, 1fr); /* Three columns for small desktops */
        gap: 20px;
    }
    
    .hero-content {
        max-width: 700px;
        padding: 25px;
    }
    
    .tech-logo {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
}

/* Small Phones */
@media (max-width: 480px) {
    section {
        padding: 30px 15px;
    }
    
    .hero h1 {
        font-size: 1.7rem;
    }
    
    .hero .subtitle {
        font-size: 0.8rem;
    }
    
    .profile-photo {
        width: 100px;
        height: 100px;
    }
    
    .badge-container {
        max-width: 160px;
    }
    
    .cta-button {
        padding: 10px 15px;
        font-size: 0.9rem;
        display: block;
        margin: 8px auto;
        width: 80%;
    }
    
    .skills-container {
        grid-template-columns: 1fr;
    }
    
    .tech-logo {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }
    
    .experience-item, .education-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .experience-icon, .education-icon {
        margin-bottom: 8px;
    }
    
    .modal-content {
        margin: 10% auto;
        padding: 15px;
    }
    
    .close-button {
        top: 5px;
        right: 10px;
    }
    
    .projects-grid {
        grid-template-columns: 1fr; /* Force single column on small phones */
        gap: 15px;
        padding: 0 10px;
    }
}

/* Large Desktop Screens */
@media (min-width: 1400px) {
    .container, header nav, .projects-grid, .resume-grid {
        max-width: 1300px;
    }
    
    .hero-content {
        max-width: 900px;
    }
    
    body {
        font-size: 1.05rem;
    }
    
    .skills-container {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    
    .projects-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Adaptable columns for large screens */
        max-width: 1300px;
        gap: 30px;
    }
}

/* Fix for smaller height screens */
@media (max-height: 700px) {
    .hero {
        height: auto;
        min-height: 100vh;
        padding: 80px 0;
    }
    
    .profile-badge {
        margin-bottom: 20px;
    }
    
    .profile-photo {
        width: 120px;
        height: 120px;
    }
}

/* Print Styles - Optimize for resume printing */
@media print {
    header, footer, .theme-switcher, .floating-tech {
        display: none;
    }
    
    body, html {
        background-color: white !important;
        color: black !important;
    }
    
    section {
        padding: 20px 0;
        page-break-inside: avoid;
    }
    
    .hero {
        height: auto;
    }
    
    .hero-content {
        background: none;
        box-shadow: none;
    }
    
    h1, h2, h3, p {
        color: black !important;
    }
    
    .cta-button, .download-btn {
        display: none;
    }
    
    .project-card, .resume-card, .skill-category, .experience-item, .education-item {
        break-inside: avoid;
        border: 1px solid #ddd;
        box-shadow: none;
    }
}

/* Landscape Mode for Mobile */
@media (max-width: 850px) and (orientation: landscape) {
    .hero {
        height: auto;
        min-height: 100vh;
        padding: 60px 0;
    }
    
    .profile-badge {
        margin-bottom: 15px;
    }
    
    .profile-photo {
        width: 100px;
        height: 100px;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .projects-grid, .resume-grid {
        grid-template-columns: repeat(3, 1fr); /* Three columns for landscape mode */
    }
}

/* Fix for navigation on small screens */
@media (max-width: 400px) {
    header nav ul li {
        margin-left: 5px;
    }
    
    header nav ul li a {
        padding: 3px 5px;
        font-size: 0.85rem;
    }
    
    header .logo {
        font-size: 1.2rem;
    }
}

/* Theme Switcher Button */
.theme-switcher {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background: var(--primary-gradient);
    color: var(--white-color);
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3), 0 0 15px rgba(59, 130, 246, 0.4);
    z-index: 999;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), 
                box-shadow 0.3s ease,
                background-color 0.3s ease;
    border: none;
    outline: none;
}

.theme-switcher::before {
    content: '';
    position: absolute;
    inset: -5px;
    border-radius: 50%;
    background: conic-gradient(
        from 0deg,
        transparent 0%,
        rgba(59, 130, 246, 0.4) 25%,
        transparent 50%
    );
    animation: rotate 3s linear infinite;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.theme-switcher:hover::before {
    opacity: 1;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.theme-switcher:hover {
    transform: scale(1.1) rotate(15deg);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.4), 0 0 25px rgba(59, 130, 246, 0.5);
}

.theme-icon {
    font-size: 1.7rem;
    transition: transform 0.5s ease;
}

.theme-switcher:hover .theme-icon {
    transform: rotate(360deg);
}

/* Floating Tech Logos */
.floating-tech {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
    pointer-events: none;
}

.tech-logo {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3), 0 0 10px rgba(30, 79, 255, 0.2);
    color: var(--primary-color);
    font-size: 24px;
    z-index: 3; /* Colocado acima do conteúdo fosco */
    animation: float 15s infinite linear;
    opacity: 0.8;
    transition: all 0.3s ease;
    pointer-events: auto;
    text-align: center;
    overflow: hidden;
}

.tech-logo span {
    font-size: 11px;
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.5px;
}

[data-theme="light"] .tech-logo {
    background-color: rgba(255, 255, 255, 0.8);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2), 0 0 15px rgba(30, 79, 255, 0.3);
    color: var(--primary-color);
}

.tech-logo:hover {
    opacity: 1;
    transform: scale(1.3);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4), 0 0 20px rgba(30, 79, 255, 0.5);
    z-index: 10;
}

/* Adapte o tamanho dos logos em dispositivos menores */
@media (max-width: 768px) {
    .tech-logo {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }
    
    .tech-logo span {
        font-size: 9px;
    }
}

@media (max-width: 480px) {
    .tech-logo {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }
    
    .tech-logo span {
        font-size: 8px;
    }
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 30px;
    background-color: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(8px);
    border-radius: 20px;
    max-width: 800px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

[data-theme="light"] .hero-content {
    background-color: rgba(255, 255, 255, 0.8);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(30, 79, 255, 0.1);
}

@keyframes float {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }
    25% {
        transform: translate(10px, 10px) rotate(5deg);
    }
    50% {
        transform: translate(0, 20px) rotate(0deg);
    }
    75% {
        transform: translate(-10px, 10px) rotate(-5deg);
    }
    100% {
        transform: translate(0, 0) rotate(0deg);
    }
}

/* Adjust animation timing for different logos */
.tech-logo:nth-child(2n) {
    animation-duration: 18s;
    animation-delay: 1s;
}

.tech-logo:nth-child(3n) {
    animation-duration: 20s;
    animation-delay: 2s;
}

.tech-logo:nth-child(5n) {
    animation-duration: 22s;
    animation-delay: 3s;
}

.tech-logo:nth-child(7n) {
    animation-duration: 24s;
    animation-delay: 4s;
}

/* Resume Section */
#resume {
    background-color: var(--bg-color);
    padding: 40px 20px;
}

.section-desc {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 30px;
    color: var(--text-color);
}

.resume-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    perspective: 1000px; /* Add perspective for 3D effect */
}

.resume-card {
    background-color: var(--bg-color-alt);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid var(--card-border);
    display: flex;
    flex-direction: column;
    height: 100%;
    transform-style: preserve-3d; /* Enable 3D transformations */
    transform: translateZ(0);
}

.resume-card:hover {
    transform: translateY(-10px) translateZ(20px) rotateX(5deg);
    box-shadow: 0 20px 40px rgba(30, 79, 255, 0.3);
    border-color: var(--primary-color);
}

.resume-icon {
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 12px;
    transition: transform 0.4s ease, color 0.3s ease;
    transform: translateZ(10px); /* 3D effect for icon */
}

.resume-card:hover .resume-icon {
    color: var(--accent-color);
    transform: scale(1.2) translateZ(40px);
}

.resume-card h3 {
    color: var(--light-color);
    margin-bottom: 12px;
    font-size: 1.3rem;
    transition: transform 0.3s ease;
    transform: translateZ(5px); /* 3D effect for title */
}

.resume-card:hover h3 {
    transform: translateZ(30px);
    color: var(--primary-color);
}

.resume-card p {
    color: var(--text-color);
    margin-bottom: 20px;
    font-size: 0.9rem;
    line-height: 1.4;
    flex-grow: 1;
    transition: transform 0.3s ease;
}

.resume-card:hover p {
    transform: translateZ(20px);
}

.download-options {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.download-btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--white-color);
    padding: 10px 18px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    border: 2px solid transparent;
    min-width: 100px;
    text-align: center;
}

.download-btn:hover {
    background-color: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(30, 79, 255, 0.3);
}

.download-btn i {
    margin-right: 5px;
}

.download-btn.pdf {
    background-color: #f40f02;
}

.download-btn.pdf:hover {
    background-color: transparent;
    color: #f40f02;
    border-color: #f40f02;
}

.download-btn.word {
    background-color: #185ABD;
}

.download-btn.word:hover {
    background-color: transparent;
    color: #185ABD;
    border-color: #185ABD;
}

/* Adjust each card with unique hover effects */
.resume-card:nth-child(1):hover {
    background: linear-gradient(145deg, var(--bg-color-alt), rgba(20, 40, 80, 0.2));
}

.resume-card:nth-child(2):hover {
    background: linear-gradient(145deg, var(--bg-color-alt), rgba(30, 79, 255, 0.1));
}

.resume-card:nth-child(3):hover {
    background: linear-gradient(145deg, var(--bg-color-alt), rgba(40, 90, 220, 0.15));
}

.resume-card:nth-child(4):hover {
    background: linear-gradient(145deg, var(--bg-color-alt), rgba(50, 100, 255, 0.1));
}

[data-theme="light"] .resume-card:hover {
    background: linear-gradient(145deg, var(--bg-color-alt), rgba(30, 79, 255, 0.05));
}

/* Experience Section */
#experience {
    padding: 30px 20px;
    min-height: auto;
}

.experience-list {
    list-style: none;
    padding: 0;
    max-width: 800px;
    margin: 0 auto;
}

.experience-item {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    background-color: var(--bg-color-alt);
    padding: 12px 15px;
    border-radius: 8px;
    border-left: 3px solid var(--primary-color);
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.experience-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 10px rgba(30, 79, 255, 0.2);
    border-left-color: var(--accent-color);
}

.experience-icon {
    font-size: 1.5rem;
    margin-right: 12px;
    min-width: 30px;
}

.experience-item strong {
    color: var(--primary-color);
    margin-right: 5px;
}

/* Education Section */
#education {
    padding: 30px 20px;
    min-height: auto;
}

.education-list {
    list-style: none;
    padding: 0;
    max-width: 800px;
    margin: 0 auto;
}

.education-item {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    background-color: var(--bg-color-alt);
    padding: 12px 15px;
    border-radius: 8px;
    border-left: 3px solid var(--secondary-color);
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.education-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 10px rgba(30, 79, 255, 0.2);
    border-left-color: var(--accent-color);
}

.education-icon {
    font-size: 1.5rem;
    margin-right: 12px;
    min-width: 30px;
}

.education-item strong {
    color: var(--secondary-color);
    margin-right: 5px;
}

/* Adjust section spacing globally */
section {
    padding: 40px 20px;
    min-height: auto; /* Override to auto to prevent large gaps */
}

section h2 {
    margin-bottom: 20px;
    text-align: center;
}

/* Create more compact spacing for all sections */
.container {
    padding: 0 15px;
}

/* Email Form Styles */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    color: var(--light-color);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--card-border);
    border-radius: 4px;
    background-color: var(--bg-color-alt);
    color: var(--light-color);
    font-family: var(--font-family);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 5px rgba(30, 79, 255, 0.5);
}

#email-status {
    padding: 10px;
    border-radius: 4px;
    font-weight: 500;
}

#email-status.success {
    background-color: rgba(40, 167, 69, 0.2);
    border: 1px solid rgba(40, 167, 69, 0.4);
    color: #2ecc71;
}

#email-status.error {
    background-color: rgba(220, 53, 69, 0.2);
    border: 1px solid rgba(220, 53, 69, 0.4);
    color: #e74c3c;
}

/* Adjust for light theme */
[data-theme="light"] .form-group input,
[data-theme="light"] .form-group textarea {
    background-color: #f9f9f9;
    border-color: #ddd;
}

[data-theme="light"] .form-group input:focus,
[data-theme="light"] .form-group textarea:focus {
    border-color: var(--primary-color);
}

/* Responsive form adjustments */
@media (max-width: 768px) {
    .form-group {
        margin-bottom: 15px;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 8px;
    }
}

/* Resumo Profissional Section */
#resume-profile {
    background-color: var(--bg-color);
    padding: 50px 20px;
}

.resume-profile-container {
    max-width: 1000px;
    margin: 0 auto;
    background-color: var(--bg-color-alt);
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    border: 1px solid var(--card-border);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.resume-profile-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(30, 79, 255, 0.2);
    border-color: var(--primary-color);
}

.resume-profile-header {
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.profile-icon {
    background-color: rgba(255, 255, 255, 0.2);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: var(--white-color);
}

.resume-profile-header h3 {
    color: var(--white-color);
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
}

.resume-profile-content {
    padding: 30px;
}

.profile-intro {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 30px;
    color: var(--text-color);
    border-left: 3px solid var(--primary-color);
    padding-left: 15px;
}

.profile-intro .highlight {
    color: var(--primary-color);
    font-weight: 600;
}

.profile-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

.highlight-item {
    display: flex;
    gap: 15px;
    background-color: var(--bg-color);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.highlight-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(30, 79, 255, 0.15);
}

.highlight-icon {
    background: linear-gradient(to bottom right, var(--primary-color), var(--secondary-color));
    min-width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--white-color);
}

.highlight-content h4 {
    color: var(--light-color);
    margin: 0 0 10px;
    font-size: 1.1rem;
}

.highlight-content p {
    color: var(--text-color);
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.5;
}

.profile-objective {
    background: linear-gradient(to right, rgba(30, 79, 255, 0.08), transparent);
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
}

.profile-objective h4 {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--primary-color);
    margin: 0 0 15px;
    font-size: 1.2rem;
}

.profile-objective p {
    color: var(--text-color);
    margin: 0;
    line-height: 1.6;
}

/* Responsive adjustments for resume profile section */
@media (max-width: 768px) {
    .profile-highlights {
        grid-template-columns: 1fr;
    }
    
    .highlight-item {
        padding: 15px;
    }
    
    .resume-profile-header {
        flex-direction: column;
        text-align: center;
        padding: 20px 15px;
    }
    
    .resume-profile-header h3 {
        font-size: 1.3rem;
    }
    
    .profile-intro {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .resume-profile-content {
        padding: 20px 15px;
    }
    
    .highlight-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .highlight-icon {
        margin-bottom: 10px;
    }
    
    .profile-objective h4 {
        justify-content: center;
    }
}

/* Certificates Section */
#certificates {
    padding: 4rem 2rem;
}

#certificates h2 {
    text-align: center;
    margin-bottom: 0.5rem;
}

#certificates > p {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 3rem;
}

.certificates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.certificate-category {
    background: var(--bg-secondary);
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.certificate-category:hover {
    transform: translateY(-5px);
}

.certificate-category h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.certificate-category h3 i {
    font-size: 1.4rem;
}

.certificate-category > ul {
    list-style: none;
    padding: 0;
}

.certificate-category > ul > li {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.certificate-category > ul > li:last-child {
    margin-bottom: 0;
}

.certificate-category > ul > li > i {
    font-size: 1.5rem;
    color: var(--primary-color);
    opacity: 0.8;
}

.cert-info {
    flex: 1;
}

.cert-info h4 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.cert-info ul {
    list-style: none;
    padding: 0;
}

.cert-info ul li {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 0.3rem;
    padding-left: 1rem;
    position: relative;
}

.cert-info ul li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

/* Certificate Links Styles */
.cert-info ul li a {
    color: var(--text-secondary);
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s ease;
    padding: 5px 0;
}

.cert-info ul li a:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

.cert-info ul li a i {
    font-size: 0.9rem;
    opacity: 0.7;
    margin-left: 8px;
}

.cert-info ul li a:hover i {
    opacity: 1;
    transform: scale(1.1);
}

/* Ajuste do padding para os itens da lista de certificados */
.cert-info ul li {
    padding-left: 0;
    margin-bottom: 8px;
}

.cert-info ul li::before {
    display: none;
}

/* Efeito de hover no card do certificado */
.certificate-category:hover .cert-info ul li a {
    color: var(--text-color);
}

/* Responsividade para os links dos certificados */
@media (max-width: 768px) {
    .certificates-grid {
        grid-template-columns: 1fr;
    }

    .certificate-category {
        padding: 1.2rem;
    }

    .certificate-category h3 {
        font-size: 1.1rem;
    }

    .cert-info h4 {
        font-size: 1rem;
    }

    .cert-info ul li {
        font-size: 0.9rem;
    }

    .cert-info ul li a {
        font-size: 0.9rem;
    }
    
    .cert-info ul li {
        margin-bottom: 10px;
    }
}

/* Blog Preview Section */
#blog-preview {
    padding: 4rem 2rem;
    background: var(--section-bg);
}

.blog-preview-grid {
    max-width: 1200px;
    margin: 2rem auto;
}

.blog-preview-card {
    background: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    margin-bottom: 2rem;
}

.blog-preview-card:hover {
    transform: translateY(-5px);
}

.preview-media {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
}

.preview-media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.preview-overlay {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 2;
}

.preview-tag {
    background: var(--accent-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.preview-content {
    padding: 2rem;
}

.preview-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.preview-category {
    color: var(--accent-color);
    font-weight: 600;
}

.preview-date {
    color: var(--text-muted);
}

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

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

.preview-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
    transition: gap 0.3s ease;
}

.preview-link:hover {
    gap: 1rem;
}

.blog-preview-footer {
    text-align: center;
    margin-top: 2rem;
}

/* Responsive Design for Blog Preview */
@media (max-width: 768px) {
    .preview-media {
        height: 300px;
    }

    .preview-content h3 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .preview-media {
        height: 200px;
    }

    .preview-content {
        padding: 1.5rem;
    }

    .preview-content h3 {
        font-size: 1.3rem;
    }

    .preview-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
}

/* Add to the existing header nav styles */
.blog-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent-color) !important;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 1rem !important;
    border-radius: 20px;
    background: rgba(var(--accent-color-rgb), 0.1);
}

.blog-link i {
    font-size: 1.1em;
    transition: transform 0.3s ease;
}

.blog-link:hover {
    background: rgba(var(--accent-color-rgb), 0.2);
    transform: translateY(-2px);
}

.blog-link:hover i {
    transform: rotate(15deg);
}

/* Adjust responsive styles for the blog link */
@media (max-width: 768px) {
    .blog-link {
        justify-content: center;
        margin: 0.5rem 0;
    }
}

/* Class to hide header when scrolling down */
.header-hidden {
    transform: translateY(-100%);
    box-shadow: none;
}

/* Mobile menu open styles */
body.menu-open {
    overflow: hidden; /* Prevent scrolling when menu is open */
}

@media (max-width: 768px) {
    /* Hero section adjustments */
    .hero {
        min-height: 100vh;
        height: auto;
        margin-top: -55px; /* Match the mobile body padding-top */
        padding-top: 55px; /* Match the mobile body padding-top */
    }
    
    .hero h1 {
        font-size: 2rem;
        padding: 0 15px;
    }
    
    .hero .subtitle {
        font-size: 0.9rem;
        padding: 0 15px;
    }
    
    .profile-photo {
        width: 120px;
        height: 120px;
    }
    
    .badge-container {
        max-width: 180px;
    }
    
    .hero-content {
        padding: 15px;
        width: 95%;
        max-width: none;
    }
}