/* ===================================
   VARIÁVEIS E ESTILOS GLOBAIS
   =================================== */

:root {
    --primary-color: #c792f1;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #0dcaf0;
    --dark-color: #212529;
    --light-color: #f8f9fa;
    --white: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

html {
    scroll-behavior: smooth;
}

/* ===================================
   NAVBAR
   =================================== */

.navbar {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-size: 1.5rem;
    color: var(--white) !important;
}

.navbar-brand i {
    margin-right: 0.5rem;
}

.nav-link {
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

/* ===================================
   SEÇÃO HERO
   =================================== */

.hero-section {
    background: linear-gradient(135deg, #c792f1 0%, #52079c 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

.hero-section h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    animation: slideInDown 0.8s ease;
}

.hero-section .lead {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    animation: slideInUp 0.8s ease 0.2s backwards;
}

.social-icons {
    animation: slideInUp 0.8s ease 0.4s backwards;
}

.social-icons .icon-link {
    color: var(--white);
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.social-icons .icon-link:hover {
    transform: translateY(-5px);
    color: var(--warning-color);
}

.btn-light {
    animation: slideInUp 0.8s ease 0.6s backwards;
    transition: all 0.3s ease;
}

.btn-light:hover {
    background-color: var(--white) !important;
    color: #52079c !important;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

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

/* ===================================
   ANIMAÇÕES
   =================================== */

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

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

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

/* ===================================
   TÍTULOS DE SEÇÃO
   =================================== */

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #ffffff;
    position: relative;
    display: inline-block;
    width: 100%;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, #c792f1, #52079c);
    border-radius: 2px;
}

/* ===================================
   SEÇÃO SOBRE
   =================================== */

#sobre {
    padding: 80px 0;
    background-color: #1a1a1a;
}

#sobre img {
    border: 5px solid var(--primary-color);
    object-fit: cover;
    width: 300px;
    height: 300px;
}

#sobre .lead {
    color: #e0e0e0;
    font-size: 1.25rem;
}

#sobre p {
    color: #b0b0b0;
    font-size: 1.1rem;
    line-height: 1.8;
}

/* ===================================
   SKILL CARDS
   =================================== */

.skill-card {
    background: #1a1a1a;
    border-radius: 10px;
    border: 2px solid #333;
    transition: all 0.3s ease;
    height: 100%;
}

.skill-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: 0 15px 30px rgba(199, 146, 241, 0.2);
}

.skill-card i {
    transition: all 0.3s ease;
}

.skill-card:hover i {
    transform: scale(1.1);
}

.skill-card h5 {
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 1rem;
}

.skill-card p {
    color: #b0b0b0;
}

/* ===================================
   PROJETO CARDS
   =================================== */

.project-card {
    background: #1a1a1a;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(199, 146, 241, 0.3);
}

.project-image {
    background: linear-gradient(135deg, #c792f1 0%, #52079c 100%);
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
}

.project-image i {
    font-size: 4rem;
    opacity: 0.7;
}

.project-body {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.project-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.project-description {
    color: #b0b0b0;
    font-size: 0.95rem;
    margin-bottom: 1rem;
    flex-grow: 1;
}

.project-footer {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: auto;
}

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

.project-link {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 500;
    transition: color 0.3s ease;
}

.project-link:hover {
    color: #c792f1;
}

/* ===================================
   SEÇÃO CONTATO
   =================================== */

#contato {
    padding: 80px 0;
    background-color: #1a1a1a;
}

.contact-info {
    margin-bottom: 3rem;
}

.contact-methods {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
    margin-top: 2rem;
}

.contact-method {
    text-decoration: none;
    color: #e0e0e0;
    transition: all 0.3s ease;
    flex: 1;
    min-width: 150px;
}

.contact-method p {
    color: #b0b0b0;
}

.contact-method:hover {
    transform: translateY(-5px);
}

.contact-method:hover i {
    transform: scale(1.2);
}

.contact-form {
    background: #262626;
    padding: 2rem;
    border-radius: 10px;
    border-left: 5px solid var(--primary-color);
}

.contact-form .form-control {
    background-color: #1a1a1a;
    color: #e0e0e0;
    border: 2px solid #333;
    border-radius: 5px;
    padding: 0.75rem;
    transition: all 0.3s ease;
}

.contact-form .form-control::placeholder {
    color: #666;
}

.contact-form .form-control:focus {
    background-color: #1a1a1a;
    color: #e0e0e0;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

.contact-form .btn {
    background-color: #c792f1;
    border-color: #c792f1;
    color: #ffffff;
    font-weight: 600;
    transition: all 0.3s ease;
}

.contact-form .btn:hover {
    background-color: #52079c;
    border-color: #52079c;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(199, 146, 241, 0.4);
}

/* ===================================
   FOOTER
   =================================== */

footer {
    background: var(--dark-color);
    border-top: 3px solid var(--primary-color);
}

/* ===================================
   RESPONSIVIDADE
   =================================== */

#skills {
    background-color: #0f0f0f;
}

#projetos {
    background-color: #0f0f0f;
}

@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2rem;
    }

    .hero-section .lead {
        font-size: 1.1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .social-icons {
        display: flex;
        justify-content: center;
        gap: 1.5rem;
    }

    .contact-methods {
        flex-direction: column;
    }

    .contact-method {
        min-width: unset;
    }

    #sobre img {
        max-width: 250px;
        height: 250px;
    }
}

@media (max-width: 576px) {
    .hero-section h1 {
        font-size: 1.75rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .navbar-brand {
        font-size: 1.25rem;
    }

    .project-card {
        margin-bottom: 1rem;
    }
}
