/* Reset e estilos gerais */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Cores principais */
    --primary-color: #253c5b;
    --secondary-color: #03164d;
    --accent-color: #3b82f6;
    
    /* Cores de status diversificadas */
    --yellow-color: #fbbf24;
    --orange-color: #f97316;
    --green-color: #10b981;
    --red-color: #ef4444;
    --purple-color: #8b5cf6;
    --teal-color: #14b8a6;
    --indigo-color: #6366f1;
    --pink-color: #ec4899;
    
    /* Cores de fundo diversificadas */
    --bg-blue-light: rgba(37, 99, 235, 0.05);
    --bg-blue-medium: rgba(37, 99, 235, 0.1);
    --bg-purple-light: rgba(139, 92, 246, 0.05);
    --bg-green-light: rgba(16, 185, 129, 0.05);
    --bg-orange-light: rgba(249, 115, 22, 0.05);
    --bg-teal-light: rgba(20, 184, 166, 0.05);
    
    /* Cores neutras */
    --dark-color: #7587af;
    --light-color: #f8fafc;
    --text-color: #04080e;
    --hover-color: #2b83ef;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    
    /* Fontes */
    --font-heading: 'Raleway', sans-serif;
    --font-body: 'Roboto', sans-serif;
    --transition: all 0.3s ease;
    
    /* Sombras */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.1);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-color);
    background-color: var(--light-color);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

/* Classes de status com cores diversificadas */
.co {
    color: var(--yellow-color);
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.cor-azul {
    color: var(--orange-color);
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.cor-red {
    color: var(--red-color);
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.cor {
    color: var(--green-color);
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Cores adicionais para mais variedade */
.cor-purple {
    color: var(--purple-color);
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.cor-teal {
    color: var(--teal-color);
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.cor-indigo {
    color: var(--indigo-color);
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.cor-pink {
    color: var(--pink-color);
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

p {
    margin-bottom: 1rem;
    color: #3b82f6;
}

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


.dev {
    color: var(--teal-color);
}

a:hover {
    color: #4ea8d1;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Responsividade do container */
@media (min-width: 640px) {
    .container {
        padding: 0 1.5rem;
    }
}

@media (min-width: 1024px) {
    .container {
        padding: 0 2rem;
    }
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: rgb(36, 159, 230);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    font-size: 0.9rem;
    box-shadow: var(--shadow-md);
}

.btn:hover {
    background: linear-gradient(135deg, var(--secondary-color), var(--hover-color));
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    box-shadow: none;
}

.btn-outline:hover {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: rgb(8, 63, 102);
    border-color: transparent;
}

.section {
    padding: 4rem 0;
}

@media (min-width: 768px) {
    .section {
        padding: 5rem 0;
    }
}

.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
    position: relative;
}

@media (min-width: 768px) {
    .section-title {
        font-size: 2.5rem;
        margin-bottom: 3rem;
    }
}

.section-title::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 4px;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    border-radius: 2px;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

@media (min-width: 768px) {
    .section-title::after {
        width: 100px;
    }
}

/* Header e Navegação */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(3, 4, 6, 0.95);
    backdrop-filter: blur(15px);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border-bottom: 1px solid var(--gray-200);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

@media (min-width: 768px) {
    .navbar {
        padding: 1.5rem 0;
    }
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
}

@media (min-width: 768px) {
    .logo {
        font-size: 1.8rem;
    }
}

.logo a {
    color: #1973bc;
}

.logo span {
    background: linear-gradient(45deg, var(--primary-color), var(--purple-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 1.5rem;
}

@media (min-width: 768px) {
    .nav-links li {
        margin-left: 2rem;
    }
}

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

@media (min-width: 768px) {
    .nav-links a {
        font-size: 1rem;
    }
}

.nav-links a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 0;
    height: 2px;
    background: linear-gradient(45deg, var(--primary-color), var(--purple-color));
    transition: var(--transition);
}

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

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

.hamburger div {
    width: 25px;
    height: 3px;
    background-color: var(--dark-color);
    transition: var(--transition);
    border-radius: 2px;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    background: #020526;
    display: flex;
    align-items: center;
    padding-top: 80px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><radialGradient id="a" cx="50%" cy="50%"><stop offset="0%" style="stop-color:rgba(37,99,235,0.05)"/><stop offset="100%" style="stop-color:transparent"/></radialGradient></defs><circle cx="50%" cy="50%" r="500" fill="url(%23a)"/></svg>') center/cover;
    z-index: -1;
}

.eu2 {
    position: relative;
    margin-top: 20px;
    border-radius: 15px;
    filter: brightness(1.1) contrast(1.1);
    transition: var(--transition);
    box-shadow: var(--shadow-xl);
}

@media (min-width: 768px) {
    .eu2 {
        margin-top: 40px;
    }
}

.eu3 {
    position: relative;
    border-radius: 15px;
    filter: brightness(1) contrast(1.05);
    transition: var(--transition);
    box-shadow: var(--shadow-lg);
}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-direction: column;
    text-align: center;
    gap: 2rem;
}

@media (min-width: 992px) {
    .hero-content {
        flex-direction: row;
        text-align: left;
        gap: 3rem;
    }
}

.hero-text {
    flex: 1;
}

@media (min-width: 992px) {
    .hero-text {
        padding-right: 2rem;
    }
}

.hero-heading {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    line-height: 1.2;
}

@media (min-width: 768px) {
    .hero-heading {
        font-size: 3rem;
        margin-bottom: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .hero-heading {
        font-size: 3.5rem;
    }
}

.hero-heading span {
    background: linear-gradient(45deg, var(--primary-color), var(--purple-color), var(--teal-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
    animation: gradient-shift 3s ease-in-out infinite;
}

@keyframes gradient-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--teal-color);
    margin-bottom: 1.5rem;
    font-weight: 500;
}

@media (min-width: 768px) {
    .hero-subtitle {
        font-size: 1.5rem;
        margin-bottom: 2rem;
    }
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    flex-direction: column;
}

@media (min-width: 640px) {
    .hero-buttons {
        flex-direction: row;
        justify-content: center;
        margin-top: 2rem;
    }
}

@media (min-width: 992px) {
    .hero-buttons {
        justify-content: flex-start;
    }
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    position: relative;
    max-width: 400px;
    width: 100%;
}

@media (min-width: 992px) {
    .hero-image {
        justify-content: flex-end;
        max-width: none;
    }
}

.hero-image img {
    width: 100%;
    max-width: 350px;
    height: auto;
    object-fit: cover;
    animation: float 4s ease-in-out infinite;
}

@media (min-width: 768px) {
    .hero-image img {
        max-width: 400px;
    }
}

@media (min-width: 992px) {
    .hero-image img {
        max-width: 450px;
    }
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

.hero-scrolldown {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) translateX(-50%);
    }
    40% { transform: translateY(-30px) translateX(-50%); }
    60% { transform: translateY(-15px) translateX(-50%); }
}

.hero-scrolldown i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

@media (min-width: 768px) {
    .hero-scrolldown i {
        font-size: 2rem;
    }
}

/* Sobre mim */
#about {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
}

.about-content {
    display: flex;
    gap: 2rem;
    align-items: center;
    flex-direction: column;
    background: rgba(21, 35, 61, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(7, 109, 192, 0.2);
}

@media (min-width: 992px) {
    .about-content {
        flex-direction: row;
        gap: 3rem;
        padding: 3rem;
    }
}

.about-image {
    flex: 1;
    max-width: 400px;
    width: 100%;
}

.about-image img {
    border-radius: 15px;
    box-shadow: var(--shadow-xl);
    width: 100%;
    height: auto;
}

.about-text {
    flex: 1;
}

.about-text h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

@media (min-width: 768px) {
    .about-text h3 {
        font-size: 2rem;
        margin-bottom: 1.5rem;
    }
}

.about-text p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.about-info {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-top: 2rem;
}

@media (min-width: 768px) {
    .about-info {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

.about-info-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.8);
    border-radius: 10px;
    transition: var(--transition);
}

.about-info-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.about-info-item i {
    color: var(--teal-color);
    font-size: 1.1rem;
    margin-right: 0.75rem;
    min-width: 20px;
}

/* Habilidades */
.skills {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--bg-purple-light) 100%);
}

.skills-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 640px) {
    .skills-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .skills-content {
        grid-template-columns: repeat(4, 1fr);
        gap: 2rem;
    }
}

.skill-card {
    background: rgba(3, 5, 61, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

@media (min-width: 768px) {
    .skill-card {
        padding: 2rem;
    }
}

.skill-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.skill-card:nth-child(1) i { color: var(--orange-color); }
.skill-card:nth-child(2) i { color: var(--green-color); }
.skill-card:nth-child(3) i { color: var(--purple-color); }
.skill-card:nth-child(4) i { color: var(--teal-color); }

.skill-card i {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .skill-card i {
        font-size: 3rem;
        margin-bottom: 1.5rem;
    }
}

.skill-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .skill-card h3 {
        font-size: 1.5rem;
    }
}

.skill-list {
    list-style: none;
    margin-top: 1rem;
    text-align: left;
}

.skill-list li {
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 1.5rem;
    font-size: 0.9rem;
}

.skill-list li:before {
    content: '✓';
    color: var(--green-color);
    font-weight: bold;
    position: absolute;
    left: 0;
    top: 0;
}


/* Projetos */
.section-projects {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}

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

@media (min-width: 768px) {
    .projects-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1200px) {
    .projects-content {
        grid-template-columns: repeat(3, 1fr);
    }
}

.project-card {
    border-radius: 15px;
    padding: 0;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    background: rgba(1, 11, 30, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

/* Cores diversificadas para os cards de projetos */
.project-card:nth-child(1) { border-top: 4px solid var(--orange-color); }
.project-card:nth-child(2) { border-top: 4px solid var(--green-color); }
.project-card:nth-child(3) { border-top: 4px solid var(--purple-color); }
.project-card:nth-child(4) { border-top: 4px solid var(--teal-color); }
.project-card:nth-child(5) { border-top: 4px solid var(--indigo-color); }
.project-card:nth-child(6) { border-top: 4px solid var(--pink-color); }
.project-card:nth-child(7) { border-top: 4px solid var(--yellow-color); }
.project-card:nth-child(8) { border-top: 4px solid var(--red-color); }
.project-card:nth-child(9) { border-top: 4px solid var(--primary-color); }
.project-card:nth-child(10) { border-top: 4px solid var(--secondary-color); }

.project-image {
    height: 200px;
    overflow: hidden;
    position: relative;
}

.project-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 70%, rgba(0, 0, 0, 0.1));
    opacity: 0;
    transition: var(--transition);
}

.project-card:hover .project-image::after {
    opacity: 1;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.project-details {
    padding: 1.5rem;
}

.project-details h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

@media (min-width: 768px) {
    .project-details h3 {
        font-size: 1.5rem;
    }
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.project-tag {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    transition: var(--transition);
}

/* Tags com cores diversificadas */
.project-tag:nth-child(1) { background: var(--bg-blue-medium); color: var(--primary-color); }
.project-tag:nth-child(2) { background: rgba(16, 185, 129, 0.1); color: var(--green-color); }
.project-tag:nth-child(3) { background: rgba(139, 92, 246, 0.1); color: var(--purple-color); }
.project-tag:nth-child(4) { background: rgba(249, 115, 22, 0.1); color: var(--orange-color); }
.project-tag:nth-child(5) { background: rgba(20, 184, 166, 0.1); color: var(--teal-color); }
.project-tag:nth-child(6) { background: rgba(99, 102, 241, 0.1); color: var(--indigo-color); }
.project-tag:nth-child(7) { background: rgba(236, 72, 153, 0.1); color: var(--pink-color); }
.project-tag:nth-child(8) { background: rgba(251, 191, 36, 0.1); color: var(--yellow-color); }
.project-tag:nth-child(9) { background: rgba(239, 68, 68, 0.1); color: var(--red-color); }

.project-tag:hover {
    transform: scale(1.05);
}

.project-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    flex-direction: column;
}

@media (min-width: 640px) {
    .project-links {
        flex-direction: row;
    }
}

.project-link {
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    padding: 0.5rem;
    border-radius: 6px;
    transition: var(--transition);
    background: rgba(37, 99, 235, 0.05);
}

.project-link:hover {
    color: var(--hover-color);
    background: rgba(37, 99, 235, 0.1);
    transform: translateX(3px);
}

.project-link i {
    margin-right: 0.5rem;
}

/* Experiência */
.experience {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--bg-blue-light) 100%);
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background: linear-gradient(to bottom, var(--primary-color), var(--hover-color), var(--teal-color));
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
    border-radius: 2px;
}

@media (max-width: 768px) {
    .timeline::after {
        left: 20px;
    }
}

.timeline-item {
    position: relative;
    width: 50%;
    margin-bottom: 2rem;
}

@media (max-width: 768px) {
    .timeline-item {
        width: 100%;
        padding-left: 60px;
        margin-bottom: 3rem;
    }
}

.timeline-item:nth-child(odd) {
    left: 0;
    padding-right: 30px;
}

.timeline-item:nth-child(even) {
    left: 50%;
    padding-left: 30px;
}

@media (max-width: 768px) {
    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
        left: 0;
        padding-left: 60px;
        padding-right: 20px;
    }
}

.timeline-content {
    padding: 1.5rem;
    background: rgba(3, 25, 66, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    box-shadow: var(--shadow-lg);
    position: relative;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

@media (min-width: 768px) {
    .timeline-content {
        padding: 2rem;
    }
}

.timeline-content:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-2px);
}

.timeline-date {
    position: absolute;
    top: -10px;
    background: linear-gradient(45deg, var(--primary-color), var(--purple-color));
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    box-shadow: var(--shadow-md);
}

@media (min-width: 768px) {
    .timeline-date {
        font-size: 0.9rem;
    }
}

.timeline-item:nth-child(odd) .timeline-date {
    right: -15px;
}

.timeline-item:nth-child(even) .timeline-date {
    left: -15px;
}

@media (max-width: 768px) {
    .timeline-item:nth-child(odd) .timeline-date,
    .timeline-item:nth-child(even) .timeline-date {
        left: -15px;
    }
}

.timeline-content h3 {
    font-size: 1.25rem;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

@media (min-width: 768px) {
    .timeline-content h3 {
        font-size: 1.5rem;
    }
}

.timeline-content h4 {
    color: var(--teal-color);
    font-size: 1rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

@media (min-width: 768px) {
    .timeline-content h4 {
        font-size: 1.1rem;
    }
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    background-color: white;
    border: 4px solid var(--primary-color);
    border-radius: 50%;
    top: 2rem;
    z-index: 1;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

@media (min-width: 768px) {
    .timeline-item::after {
        width: 20px;
        height: 20px;
    }
}

.timeline-item:nth-child(1)::after { border-color: var(--primary-color); }
.timeline-item:nth-child(2)::after { border-color: var(--purple-color); }
.timeline-item:nth-child(3)::after { border-color: var(--teal-color); }

.timeline-item:nth-child(odd)::after {
    right: -12px;
}

.timeline-item:nth-child(even)::after {
    left: -8px;
}

@media (max-width: 768px) {
    .timeline-item:nth-child(odd)::after,
    .timeline-item:nth-child(even)::after {
        left: 12px;
    }
}

.timeline-item:hover::after {
    background-color: var(--primary-color);
    border-color: var(--accent-color);
    transform: scale(1.2);
}

/* Contato */
#contact {
    background: linear-gradient(135deg, var(--bg-teal-light) 0%, var(--bg-green-light) 100%);
}

.contact-content {
    display: flex;
    gap: 2rem;
    flex-direction: column;
}

@media (min-width: 992px) {
    .contact-content {
        flex-direction: row;
        gap: 3rem;
    }
}

.contact-info {
    flex: 1;
}

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

@media (min-width: 768px) {
    .contact-info h3 {
        font-size: 1.8rem;
        margin-bottom: 2rem;
    }
}

.contact-details {
    margin-bottom: 2rem;
}

.contact-detail {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    background: rgba(1, 0, 15, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.contact-detail:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
}

.contact-detail:nth-child(1) i { color: var(--red-color); }
.contact-detail:nth-child(2) i { color: var(--green-color); }
.contact-detail:nth-child(3) i { color: var(--purple-color); }

.contact-detail i {
    font-size: 1.25rem;
    margin-right: 1rem;
    margin-top: 0.25rem;
    min-width: 24px;
}

@media (min-width: 768px) {
    .contact-detail i {
        font-size: 1.5rem;
    }
}

.contact-detail h4 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
    color: var(--dark-color);
}

@media (min-width: 768px) {
    .contact-detail h4 {
        font-size: 1.2rem;
        margin-bottom: 0.5rem;
    }
}

.contact-detail p {
    margin: 0;
    color: var(--text-color);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    transition: var(--transition);
    font-size: 1.1rem;
    color: rgb(228, 85, 13);
}

.social-link:nth-child(1) { background: linear-gradient(45deg, var(--primary-color), var(--accent-color)); }
.social-link:nth-child(2) { background: linear-gradient(45deg, var(--dark-color), var(--gray-300)); }
.social-link:nth-child(3) { background: linear-gradient(45deg, var(--teal-color), var(--indigo-color)); }
.social-link:nth-child(4) { background: linear-gradient(45deg, var(--pink-color), var(--purple-color)); }

.social-link:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: var(--shadow-lg);
}

.contact-form {
    flex: 1;
    background: rgba(0, 0, 12, 0.9);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

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

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--dark-color);
}

input, textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--gray-200);
    border-radius: 10px;
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition);
    background-color: rgb(57, 69, 86);
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

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

@media (min-width: 768px) {
    textarea {
        min-height: 150px;
    }
}

/* Footer */
footer {
    background: black;
    color: rgb(242, 112, 13);
    padding: 2rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, var(--primary-color), var(--purple-color), var(--teal-color));
}

@media (min-width: 768px) {
    footer {
        padding: 3rem 0;
    }
}

.footer-content {
    max-width: 600px;
    margin: 0 auto;
}

.footer-content .logo {
    margin-bottom: 1rem;
}

.footer-content .logo a {
    color: rgb(7, 175, 253);
}

.footer-content .logo span {
    background: linear-gradient(45deg, var(--hover-color), var(--purple-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-content p {
    margin-bottom: 1.5rem;
    color: rgba(5, 137, 219, 0.8);
}

.footer-copyright {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

/* Scroll to top */
.scroll-top {
    position: fixed;
    bottom: 2rem;
    right: 1rem;
    width: 45px;
    height: 45px;
    background: linear-gradient(45deg, var(--primary-color), var(--purple-color));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
    font-size: 1.1rem;
    box-shadow: var(--shadow-lg);
}

@media (min-width: 768px) {
    .scroll-top {
        bottom: 2rem;
        right: 2rem;
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
}

.scroll-top.active {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    background: linear-gradient(45deg, var(--secondary-color), var(--teal-color));
    transform: translateY(-3px) scale(1.1);
    box-shadow: var(--shadow-xl);
}

/* Responsividade Mobile */
@media (max-width: 768px) {
    .navbar {
        padding: 1rem 0;
    }

    .nav-links {
        position: absolute;
        right: 0;
        top: 70px;
        background: rgba(2, 0, 0, 0.95);
        backdrop-filter: blur(15px);
        width: 100%;
        flex-direction: column;
        align-items: center;
        padding: 2rem 0;
        box-shadow: var(--shadow-xl);
        transform: translateY(-100%);
        opacity: 0;
        transition: var(--transition);
        border-radius: 0 0 15px 15px;
        border: 1px solid var(--gray-200);
    }

    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
    }

    .nav-links li {
        margin: 1rem 0;
        margin-left: 0;
    }

    .hamburger {
        display: flex;
    }

    .hamburger.active .line1 {
        transform: rotate(-45deg) translate(-5px, 6px);
    }

    .hamburger.active .line2 {
        opacity: 0;
    }

    .hamburger.active .line3 {
        transform: rotate(45deg) translate(-5px, -6px);
    }

    .hero {
        padding-top: 70px;
        min-height: calc(100vh - 70px);
    }

    .hero-buttons {
        margin-top: 1.5rem;
    }

    .btn {
        padding: 0.625rem 1.25rem;
        font-size: 0.85rem;
    }
}

/* Responsividade Tablet */
@media (min-width: 768px) and (max-width: 1023px) {
    .hero-content {
        gap: 2rem;
    }
    
    .projects-content {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .skills-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Melhorias de Performance */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Modo escuro automático */
@media (prefers-color-scheme: dark) {
    :root {
        --light-color: #1a202c;
        --text-color: #e2e8f0;
        --dark-color: #f7fafc;
        --gray-100: #2d3748;
        --gray-200: #4a5568;
        --gray-300: #718096;
    }
}



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

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

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes slideInFromTop {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideInFromBottom {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Classes de animação para aplicar via JavaScript */
.animate-fadeInUp {
    animation: fadeInUp 0.6s ease-out forwards;
}

.animate-fadeInLeft {
    animation: fadeInLeft 0.6s ease-out forwards;
}

.animate-fadeInRight {
    animation: fadeInRight 0.6s ease-out forwards;
}

.animate-fadeIn {
    animation: fadeIn 0.8s ease-out forwards;
}

.animate-pulse {
    animation: pulse 2s ease-in-out infinite;
}

.animate-slideInFromTop {
    animation: slideInFromTop 0.5s ease-out forwards;
}

.animate-slideInFromBottom {
    animation: slideInFromBottom 0.5s ease-out forwards;
}

/* Animações com delay para efeito cascata */
.animate-delay-100 { animation-delay: 0.1s; }
.animate-delay-200 { animation-delay: 0.2s; }
.animate-delay-300 { animation-delay: 0.3s; }
.animate-delay-400 { animation-delay: 0.4s; }
.animate-delay-500 { animation-delay: 0.5s; }

/* Estado inicial para elementos que serão animados */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.animate-on-scroll.animate-in {
    opacity: 1;
    transform: translateY(0);
}

/* Efeitos especiais para dispositivos móveis */
@media (max-width: 768px) {
    /* Reduzir animações em dispositivos móveis para melhor performance */
    .hero-image img {
        animation-duration: 6s;
    }
    
    .hero-scrolldown {
        animation-duration: 3s;
    }
    
    /* Hover effects reduzidos em mobile */
    .project-card:hover,
    .skill-card:hover,
    .contact-detail:hover {
        transform: none;
    }
    
    /* Manter apenas animações essenciais */
    .btn:hover {
        transform: translateY(-1px);
    }
    
    .scroll-top:hover {
        transform: translateY(-2px) scale(1.05);
    }
}

/* Melhorias de acessibilidade */
@media (prefers-reduced-motion: reduce) {
    .animate-fadeInUp,
    .animate-fadeInLeft,
    .animate-fadeInRight,
    .animate-fadeIn,
    .animate-pulse,
    .animate-slideInFromTop,
    .animate-slideInFromBottom,
    .animate-on-scroll {
        animation: none !important;
        transition: none !important;
    }
    
    .hero-image img,
    .hero-scrolldown {
        animation: none !important;
    }
}

/* Otimizações de performance */
.project-card,
.skill-card,
.timeline-content,
.contact-detail {
    will-change: transform;
}

.project-card:hover,
.skill-card:hover,
.timeline-content:hover,
.contact-detail:hover {
    will-change: auto;
}

/* Smooth scrolling personalizado */
html {
    scroll-padding-top: 80px; /* Compensa a altura do header fixo */
}

/* Loading states */
.loading {
    position: relative;
    overflow: hidden;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.4),
        transparent
    );
    animation: loading-shimmer 1.5s infinite;
}

@keyframes loading-shimmer {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

/* Estilo para foco acessível */
*:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
    border-radius: 4px;
}

/* Print styles */
@media print {
    * {
        background: white !important;
        color: black !important;
        box-shadow: none !important;
    }
    
    header,
    .hero-scrolldown,
    .scroll-top,
    .contact-form {
        display: none !important;
    }
    
    .container {
        max-width: none !important;
        padding: 0 !important;
    }
}