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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

/* Variáveis CSS para cores */
:root {
    --primary-color: #4a90e2;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --dark-color: #2c3e50;
    --light-color: #f8f9fa;
    --gradient-primary: linear-gradient(135deg, #4a90e2 0%, #4a90e2 70%, #7fdbda 100%);
    --gradient-secondary: linear-gradient(135deg, #5dade2 0%, #5dade2 75%, #85c1e9 100%);
    --gradient-dark: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    --shadow-light: 0 2px 10px rgba(0,0,0,0.1);
    --shadow-medium: 0 4px 20px rgba(0,0,0,0.15);
    --shadow-heavy: 0 8px 30px rgba(0,0,0,0.2);
}

/* Scroll suave */
html {
    scroll-behavior: smooth;
}

/* Hero Section */
.hero-section {
    background: var(--gradient-primary);
    min-height: 85vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-section::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"><polygon fill="rgba(255,255,255,0.1)" points="0,1000 1000,0 1000,1000"/></svg>');
    background-size: cover;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-image img {
    transition: transform 0.3s ease;
    border: 4px solid rgba(255,255,255,0.3);
}

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

/* Divisores */
.divider {
    width: 80px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
    margin: 20px auto;
}

/* Seção Sobre */
.about-content {
    padding: 20px;
}

.detail-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    padding: 10px;
    background: var(--light-color);
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.detail-item:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow-light);
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.social-icon {
    display: inline-block;
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-light);
}

.social-icon:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
    color: white;
}

/* Cards de Projetos */
.project-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-card:hover {
    transform: translateY(-10px);
}

.project-card .card {
    border: none;
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.project-card .card:hover {
    box-shadow: var(--shadow-heavy);
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.project-header .badge {
    font-size: 0.8rem;
    padding: 8px 12px;
}

.project-tags {
    margin-top: 15px;
}

.project-tags .badge {
    margin-right: 5px;
    margin-bottom: 5px;
    font-size: 0.7rem;
}

/* Seção de Habilidades */
.skill-category {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: var(--shadow-light);
    height: 100%;
    transition: transform 0.3s ease;
}

.skill-category:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
}

.skill-item {
    margin-bottom: 20px;
}

.skill-item span {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--dark-color);
}

.skill-item .progress {
    height: 8px;
    border-radius: 4px;
    background-color: #e9ecef;
    overflow: hidden;
}

.skill-item .progress-bar {
    background: var(--gradient-primary);
    border-radius: 4px;
    transition: width 1.5s ease;
}

/* Seção de Contato */
.contact-item {
    padding: 20px;
    background: rgba(255,255,255,0.1);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    transition: transform 0.3s ease;
}

.contact-item:hover {
    transform: translateY(-5px);
    background: rgba(255,255,255,0.15);
}

.contact-item h5 {
    margin: 15px 0 10px 0;
    color: white;
}

.contact-item p {
    color: rgba(255,255,255,0.8);
    margin: 0;
}

/* Botões personalizados */
.btn-primary {
    background: var(--gradient-primary);
    border: none;
    border-radius: 25px;
    padding: 12px 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-light);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
    background: var(--gradient-secondary);
}

.btn-outline-light {
    border-radius: 25px;
    padding: 12px 30px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline-light:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-light);
}

.btn-outline-primary {
    border-radius: 25px;
    padding: 12px 30px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-light);
}

/* Navbar personalizada */
.navbar {
    backdrop-filter: blur(10px);
    background: rgba(52, 58, 64, 0.95) !important;
    transition: all 0.3s ease;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
}

.nav-link {
    font-weight: 500;
    margin: 0 10px;
    position: relative;
    transition: color 0.3s ease;
}

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

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

/* Animações */
@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 waveEffect {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Aplicando animações */
.hero-content {
    animation: fadeInLeft 1s ease;
}

.hero-image {
    animation: fadeInRight 1s ease;
}

.about-content {
    animation: fadeInLeft 1s ease;
}

.social-links {
    animation: fadeInRight 1s ease;
}

/* Responsividade */
@media (max-width: 768px) {
    .hero-section {
        text-align: center;
        padding: 100px 0 50px 0;
}

    .hero-image {
        margin-top: 30px;
}

    .hero-image img {
        max-width: 250px;
    }
    
    .social-icons {
        flex-wrap: wrap;
        gap: 15px;
    }
    
    .social-icon {
        width: 50px;
        height: 50px;
}

    .detail-item {
        margin-bottom: 10px;
    }
    
    .skill-category {
        margin-bottom: 20px;
    }
    
    .contact-item {
        margin-bottom: 20px;
    }
    
    .navbar-brand {
        font-size: 1.2rem;
    }
    
    .nav-link {
        margin: 5px 0;
}
}

@media (max-width: 576px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content h2 {
        font-size: 1.2rem;
    }
    
    .display-5 {
        font-size: 2rem;
    }
    
    .btn-lg {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: var(--gradient-secondary);
}

/* Efeitos de hover para cards */
.card {
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
    }

/* Melhorias para acessibilidade */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus states para acessibilidade */
.btn:focus,
.nav-link:focus,
.social-icon:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Loading states */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

/* Utilitários */
.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.wave-text {
    background: linear-gradient(90deg, 
        #ffffff 0%, 
        #ffffff 30%, 
        #e8fffc 40%, 
        #d0fff9 45%, 
        #b8fff6 50%, 
        #d0fff9 55%, 
        #e8fffc 60%, 
        #ffffff 70%, 
        #ffffff 100%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: waveEffect 20s ease-in-out infinite;
    }

.bg-gradient-primary {
    background: var(--gradient-primary);
}

.bg-gradient-secondary {
    background: var(--gradient-secondary);
}

.bg-gradient-dark {
    background: var(--gradient-dark);
}

/* Estilos específicos para página de projetos */
.project-detail {
    animation: fadeInUp 0.8s ease;
    }

.project-detail .card {
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.project-detail .card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-heavy);
}

.project-detail .card-header {
    padding: 20px 30px;
    border: none;
    }

.project-detail .card-body {
    padding: 30px;
    }

.project-info {
    background: var(--light-color);
    padding: 20px;
    border-radius: 15px;
    height: fit-content;
}

.info-item {
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 10px;
    }

.info-item:last-child {
    border-bottom: none;
}

.tech-tags .badge {
    font-size: 0.8rem;
    padding: 8px 12px;
    border-radius: 20px;
}

/* Hero section para página de projetos */
.hero-section.min-vh-60 {
    min-height: 60vh !important;
}

.min-vh-60 {
    min-height: 60vh;
}

.min-vh-85 {
    min-height: 85vh;
}

/* Call to Action section */
.bg-light {
    background-color: var(--light-color) !important;
}

body.dark-mode {
    background: #181a1b !important;
    color: #f1f1f1 !important;
}
body.dark-mode .navbar,
body.dark-mode .footer,
body.dark-mode .bg-dark {
    background: #23272b !important;
}
body.dark-mode .navbar-brand,
body.dark-mode .nav-link,
body.dark-mode .footer {
    color: #f1f1f1 !important;
}
body.dark-mode .hero-section {
    background: linear-gradient(135deg, #23272b 0%, #181a1b 100%) !important;
}
body.dark-mode .about-content,
body.dark-mode .skill-category,
body.dark-mode .project-card .card,
body.dark-mode .contact-item,
body.dark-mode .project-info {
    background: #23272b !important;
    color: #f1f1f1 !important;
    box-shadow: none;
}
body.dark-mode .divider {
    background: #4a90e2 !important;
}
body.dark-mode .social-icon {
    background: #23272b !important;
    color: #4a90e2 !important;
    border: 1px solid #4a90e2;
}
body.dark-mode .social-icon:hover {
    background: #4a90e2 !important;
    color: #fff !important;
}
body.dark-mode .btn-primary,
body.dark-mode .btn-outline-light,
body.dark-mode .btn-outline-primary {
    background: #4a90e2 !important;
    color: #fff !important;
    border: none !important;
}
body.dark-mode .btn-primary:hover,
body.dark-mode .btn-outline-light:hover,
body.dark-mode .btn-outline-primary:hover {
    background: #357ab8 !important;
    color: #fff !important;
}
body.dark-mode .bg-light {
    background-color: #23272b !important;
}
body.dark-mode .project-tags .badge,
body.dark-mode .tech-tags .badge {
    background: #23272b !important;
    color: #4a90e2 !important;
    border: 1px solid #4a90e2;
}
body.dark-mode .progress {
    background-color: #333 !important;
}
body.dark-mode .progress-bar {
    background: #4a90e2 !important;
}
body.dark-mode .detail-item {
    background: #23272b !important;
    color: #fff !important;
    box-shadow: 0 8px 32px rgba(0,0,0,0.45), 0 1.5px 8px rgba(0,0,0,0.25) !important;
    border: 1px solid #444 !important;
}
body.dark-mode .detail-item span {
    color: #fff !important;
}
body.dark-mode .project-card .card {
    box-shadow: 0 8px 32px rgba(0,0,0,0.45), 0 1.5px 8px rgba(0,0,0,0.25) !important;
    border: none !important;
}
body.dark-mode .skill-item span {
    color: #fff !important;
}
body.dark-mode .tech-tags .badge,
body.dark-mode .project-tags .badge {
    color: #fff !important;
    border: 1px solid #4a90e2;
}