@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

html {
    scroll-behavior: smooth;
}

body::-webkit-scrollbar {
    width: 10px;
}

body::-webkit-scrollbar-track {
    background: #18181b;
    border-radius: 8px;
}

body::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #8b5cf6 40%, #10b981 100%);
    border-radius: 8px;
    border: 2px solid #18181b;
}

.skill-card {
    transition: transform 0.35s cubic-bezier(0.4, 0.2, 0.2, 1), box-shadow 0.35s;
    border: 1.5px solid rgba(139, 92, 246, 0.13);
    background: rgba(30, 30, 30, 0.85);
    backdrop-filter: blur(6px);
    box-shadow: 0 2px 16px 0 rgba(139, 92, 246, 0.08);
}

.skill-card:hover {
    transform: translateY(-14px) scale(1.04) rotate(-1deg);
    box-shadow: 0 12px 36px -10px rgba(139, 92, 246, 0.25), 0 2px 8px 0 rgba(16,185,129,0.08);
    border: 1.5px solid #8b5cf6;
    background: rgba(40, 40, 50, 0.92);
}

.project-card {
    transition: transform 0.35s cubic-bezier(0.4, 0.2, 0.2, 1), box-shadow 0.35s;
    border: 1.5px solid rgba(139, 92, 246, 0.13);
    background: rgba(30, 30, 30, 0.92);
    backdrop-filter: blur(8px);
    box-shadow: 0 2px 16px 0 rgba(139, 92, 246, 0.08);
    overflow: hidden;
}

.project-card:hover {
    transform: scale(1.035) translateY(-6px) rotate(0.5deg);
    box-shadow: 0 16px 40px -10px rgba(139, 92, 246, 0.25), 0 2px 8px 0 rgba(16,185,129,0.08);
    border: 1.5px solid #8b5cf6;
    background: rgba(40, 40, 50, 0.97);
}

.project-card::before {
    content: '';
    position: absolute;
    top: -120%;
    left: -122%;
    width: 122%;
    height: 125%;
    background: linear-gradient(120deg, rgba(139, 92, 246, 0.13) 0%, rgb(16 185 129 / 9%) 100%);
    transition: all 0.7s cubic-bezier(0.4, 0.2, 0.2, 1);
    z-index: 0;
    pointer-events: none;
}

.project-card:hover::before {
    top: 0;
    left: 0;
}

.nav-link {
    position: relative;
    font-weight: 500;
    letter-spacing: 0.02em;
    padding-bottom: 2px;
    transition: color 0.2s;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    width: 0;
    height: 2.5px;
    background: linear-gradient(90deg, #8b5cf6 60%, #10b981 100%);
    border-radius: 2px;
    transition: width 0.3s, left 0.3s;
    transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.text-accent-100::after {
    width: 80%;
}

.nav-link:hover,
.nav-link.text-accent-100 {
    color: #8b5cf6 !important;
}

.social-icon {
    transition: all 0.25s cubic-bezier(0.4, 0.2, 0.2, 1);
    font-size: 1.25rem;
    border-radius: 50%;
    box-shadow: 0 2px 8px 0 rgba(139, 92, 246, 0.08);
}

.social-icon:hover {
    transform: translateY(-6px) scale(1.13) rotate(-6deg);
    color: #8b5cf6 !important;
    background: rgba(139, 92, 246, 0.08);
}

.theme-toggle {
    transition: all 0.4s cubic-bezier(0.4, 0.2, 0.2, 1);
    border-radius: 50%;
    box-shadow: 0 2px 8px 0 rgba(139, 92, 246, 0.08);
    background: rgba(30, 30, 30, 0.8);
}

.theme-toggle:hover {
    transform: rotate(30deg) scale(1.08);
    background: linear-gradient(135deg, #8b5cf6 60%, #10b981 100%);
    color: #fff;
}

.section-title {
    position: relative;
    font-weight: 700;
    letter-spacing: 0.01em;
    padding-bottom: 0.5rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 0;
    width: 70px;
    height: 4px;
    background: linear-gradient(90deg, #8b5cf6 60%, #10b981 100%);
    border-radius: 2px;
}

.gradient-text {
    background: linear-gradient(90deg, #8b5cf6 60%, #10b981 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    font-weight: 800;
    letter-spacing: 0.01em;
}

.gradient-bg {
    background: linear-gradient(-45deg, #8b5cf6, #6d28d9, #10b981, #059669);
    background-size: 400% 400%;
    animation: gradient 12s ease infinite;
}

@keyframes gradient {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@keyframes float {
    0% { transform: translateY(0px);}
    50% { transform: translateY(-16px);}
    100% { transform: translateY(0px);}
}

.float {
    animation: float 3.5s ease-in-out infinite;
}

.glow {
    box-shadow: 0 0 12px 2px rgba(139, 92, 246, 0.35), 0 0 32px 4px rgba(16,185,129,0.18);
}

.glow-text {
    text-shadow: 0 0 8px rgba(139, 92, 246, 0.35), 0 0 24px rgba(16,185,129,0.18);
}

.glass {
    background: rgba(30, 30, 30, 0.82);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 18px;
}

#nav-links {
    gap: 1.2rem;
    margin-left: 520px;
}

::-moz-selection {
    background: #8b5cf6;
    color: #fff;
}
::selection {
    background: #8b5cf6;
    color: #fff;
}

/* Light mode styles */
html:not(.dark) {
    color-scheme: light;
}

html:not(.dark) body {
    background-color: #f8f9fa;
    color: #222;
}

html:not(.dark) .bg-dark-100 {
    background-color: #ffffff !important;
}

html:not(.dark) .bg-dark-200 {
    background-color: #f8f9fa !important;
}

html:not(.dark) .bg-dark-300 {
    background-color: #e9ecef !important;
}

html:not(.dark) .bg-dark-400 {
    background-color: #dee2e6 !important;
}

html:not(.dark) .text-gray-200 {
    color: #222 !important;
}

html:not(.dark) .text-gray-300 {
    color: #444 !important;
}

html:not(.dark) .text-gray-400 {
    color: #555 !important;
}

html:not(.dark) .border-gray-700,
html:not(.dark) .border-gray-800 {
    border-color: #bbb !important;
}

html:not(.dark) .glass {
    background: rgba(255, 255, 255, 0.85);
    box-shadow: 0 2px 16px 0 rgba(139, 92, 246, 0.06);
}

html:not(.dark) .skill-card,
html:not(.dark) .project-card {
    background: rgba(255,255,255,0.95);
    border: 1.5px solid rgba(139, 92, 246, 0.10);
    box-shadow: 0 2px 16px 0 rgba(139, 92, 246, 0.06);
}

html:not(.dark) .skill-card:hover,
html:not(.dark) .project-card:hover {
    background: #f8f9fa;
    border: 1.5px solid #8b5cf6;
    box-shadow: 0 12px 36px -10px rgba(139, 92, 246, 0.13);
}

html:not(.dark) .gradient-text {
    background: linear-gradient(90deg, #8b5cf6 60%, #10b981 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

html:not(.dark) .nav-link:hover,
html:not(.dark) .nav-link.text-accent-100 {
    color: #8b5cf6 !important;
}

html:not(.dark) .nav-link::after {
    background: linear-gradient(90deg, #8b5cf6 60%, #10b981 100%);
}

/* Modal customizado para sucesso e erro */
#modal-sucesso, #modal-erro {
    animation: modalFadeIn 0.6s cubic-bezier(0.4, 0.2, 0.2, 1);
}

@keyframes modalFadeIn {
    0% {
        opacity: 0;
        transform: scale(0.92) translateY(40px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

#modal-sucesso .bg-dark-300, #modal-erro .bg-dark-300 {
    box-shadow: 0 8px 40px 0 rgba(139, 92, 246, 0.25), 0 2px 8px 0 rgba(16,185,129,0.10);
    border-radius: 1.25rem;
    border: 1.5px solid #8b5cf6;
    background: rgba(30, 30, 30, 0.98);
    max-width: 95vw;
    width: 100%;
    max-width: 400px;
    padding: 2.5rem 2rem;
    position: relative;
}

#modal-sucesso h2, #modal-erro h2 {
    letter-spacing: 0.01em;
    font-weight: 800;
}

#modal-sucesso button, #modal-erro button {
    font-size: 1.1rem;
    font-weight: 600;
    box-shadow: 0 2px 8px 0 rgba(139, 92, 246, 0.10);
    transition: background 0.2s, transform 0.2s;
}

#modal-sucesso button:hover, #modal-erro button:hover {
    transform: scale(1.07) translateY(-2px);
}

@media (max-width: 500px) {
    #modal-sucesso .bg-dark-300, #modal-erro .bg-dark-300 {
        padding: 1.2rem 0.5rem;
        max-width: 95vw;
    }
}

@media (max-width: 1024px) {
    #nav-links {
        margin-left: 0;
        gap: 0.8rem;
    }
}

@media (max-width: 640px) {
    .section-title::after {
        left: 50%;
        transform: translateX(-50%);
    }
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    #nav-links {
        margin-left: 0;
        gap: 0.5rem;
    }
}    #nav-links {
    gap: 1rem;
    margin-left: 600px;
} 

.img-full-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
} 