:root {
    --bg-main: #0a0a0c;
    --bg-secondary: rgba(25, 25, 30, 0.4);
    --accent-blue: #007bff;
    --accent-light: #00c6ff;
    --blue-gradient: linear-gradient(135deg, #007bff 0%, #00c6ff 100%);
    --text-primary: #ffffff;
    --text-secondary: #b3b3b3;
    --glass-border: rgba(255, 255, 255, 0.08);
    --transition-smooth: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-main);
}

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

/* Scroll Progress Bar */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background: var(--blue-gradient);
    z-index: 9999;
    transition: width 0.1s;
    box-shadow: 0 0 10px rgba(0, 198, 255, 0.5);
}

.bg-animated {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    overflow: hidden;
    background: var(--bg-main);
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.3;
    animation: float 15s infinite alternate ease-in-out;
}

.blob-1 {
    width: 500px;
    height: 500px;
    background: #002244;
    top: -100px;
    left: -100px;
}

.blob-2 {
    width: 600px;
    height: 600px;
    background: #001133;
    bottom: -200px;
    right: -100px;
    animation-delay: -5s;
}

.blob-3 {
    width: 400px;
    height: 400px;
    background: #004488;
    top: 40%;
    left: 40%;
    opacity: 0.15;
    animation-duration: 20s;
}

@keyframes float {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(100px, 50px) scale(1.2);
    }
}

.gradient-text {
    background: var(--blue-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
}

.section-title {
    font-size: 3rem;
    margin-bottom: 50px;
    text-align: center;
    text-shadow: 0 4px 20px rgba(0, 198, 255, 0.2);
}

.glass-card {
    background: var(--bg-secondary);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
}

.premium-shadow {
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.hover-glow {
    transition: var(--transition-smooth);
}

.hover-glow:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 198, 255, 0.4);
    box-shadow: 0 10px 40px rgba(0, 123, 255, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: bold;
    text-decoration: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    transition: box-shadow 0.4s ease, border-color 0.4s ease, transform 0.4s ease, color 0.4s ease;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--blue-gradient);
    z-index: -1;
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    border-radius: 50px;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 198, 255, 0.4);
    border-color: rgba(0, 198, 255, 0.5);
    color: #fff;
}

.btn:hover::before {
    transform: scaleY(1);
}

.btn span,
.btn i {
    position: relative;
    z-index: 2;
}

.btn-primary {
    background: var(--blue-gradient);
    border: none;
}

.btn-primary::before {
    background: linear-gradient(135deg, #00c6ff 0%, #007bff 100%);
}

.btn-icon {
    padding: 10px 24px;
    border-radius: 50px;
}

.glass-nav {
    position: fixed;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    width: 95%;
    max-width: 1200px;
    padding: 15px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(10, 10, 12, 0.7);
    backdrop-filter: blur(20px);
    z-index: 1000;
    border-radius: 50px;
    border: 1px solid var(--glass-border);
    transition: box-shadow 0.3s ease, background 0.3s ease;
}

.glass-nav:hover {
    box-shadow: 0 0 20px rgba(0, 198, 255, 0.15);
    background: rgba(10, 10, 12, 0.85);
}

.logo {
    font-size: 1.8rem;
    font-weight: 900;
    color: #fff;
    text-shadow: 0 0 10px rgba(0, 198, 255, 0.5);
}

.mobile-toggle {
    display: none;
    font-size: 1.5rem;
    color: #fff;
    cursor: pointer;
    z-index: 1001;
}

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

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition-smooth);
}

.nav-links a:hover {
    color: #fff;
    text-shadow: 0 0 8px rgba(0, 198, 255, 0.8);
}

section {
    padding: 140px 20px 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.hero {
    flex-direction: row;
    gap: 80px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    min-height: 100vh;
}

.hero-content {
    max-width: 600px;
    flex: 1;
    z-index: 2;
}

.hero h1 {
    font-size: 5.5rem;
    line-height: 1;
    margin-bottom: 10px;
    font-weight: 900;
    letter-spacing: -2px;
}

.typing-text {
    font-size: 2.2rem;
    color: var(--accent-light);
    margin-bottom: 25px;
    text-shadow: 0 0 15px rgba(0, 198, 255, 0.4);
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

.slider-wrapper {
    perspective: 1000px;
    width: 400px;
    height: 400px;
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center;
}

.slider-card {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    border-radius: 25px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.6);
    cursor: pointer;
}

.slider-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 25px;
    overflow: hidden;
    z-index: 1;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.rgb-border::before {
    content: '';
    position: absolute;
    top: -2px;

    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, #007bff, #00c6ff, #001f3f, #007bff);
    background-size: 300% 300%;
    z-index: -1;
    border-radius: 26px;

    opacity: 0.6;
    transition: opacity 0.4s ease, filter 0.4s ease;
    animation: shiftColors 4s linear infinite;

}


.slider-wrapper:hover .rgb-border::before {
    opacity: 1;
    filter: blur(4px);

    animation: shiftColors 4s linear infinite, pulseGlow 2s infinite alternate ease-in-out;
}


@keyframes shiftColors {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@keyframes pulseGlow {
    0% {
        transform: scale(1);
        filter: blur(4px);
    }

    100% {
        transform: scale(1.02);
        filter: blur(8px);
    }
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s cubic-bezier(0.4, 0, 0.2, 1), transform 3s ease;
    transform: scale(1.05);
}

.slide.active {
    opacity: 1;
    transform: scale(1);
    z-index: 1;
}

.slider-content::after {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 60%;
    height: 100%;
    background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.4) 50%, rgba(255, 255, 255, 0) 100%);
    transform: skewX(-25deg);
    transition: 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    pointer-events: none;
    z-index: 10;
}

/* Brilho Loop Infinito no Hover */
.slider-wrapper:hover .slider-content::after {
    animation: shineEffect 1.8s linear infinite;
}

@keyframes shineEffect {
    0% {
        left: -150%;
    }

    100% {
        left: 150%;
    }
}

.about-content {
    max-width: 900px;
    padding: 50px;
    text-align: center;
}

.about-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    line-height: 1.8;
}

.about-info {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 50px;
    margin-bottom: 40px;
}

.info-label {
    color: var(--accent-light);
    font-weight: bold;
}

.about-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1200px;
    width: 100%;
}

.skill-category {
    padding: 35px;
}

.skill-category h3 {
    margin-bottom: 25px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.skill-item {
    margin-bottom: 20px;
    font-weight: 500;
    font-size: 0.95rem;
}

.liquid-bar {
    height: 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    margin-top: 8px;
    overflow: hidden;
    position: relative;
}

.liquid-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    background: var(--blue-gradient);
    border-radius: 4px;
    transition: width 1.5s cubic-bezier(0.1, 0.7, 1.0, 0.1);
    box-shadow: 0 0 10px rgba(0, 198, 255, 0.5);
}

.show .liquid-bar::before {
    width: var(--progress);
}

.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    width: 100%;
}

.timeline::before {
    content: '';
    position: absolute;
    width: 2px;
    background: rgba(255, 255, 255, 0.1);
    top: 0;
    bottom: 0;
    left: 20px;
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
    padding-left: 70px;
}

.timeline-dot {
    position: absolute;
    width: 16px;
    height: 16px;
    background: var(--bg-main);
    border: 3px solid var(--accent-light);
    border-radius: 50%;
    left: 13px;
    top: 30px;
    z-index: 2;
    transition: var(--transition-smooth);
}

.pulse-dot {
    box-shadow: 0 0 0 0 rgba(0, 198, 255, 0.5);
    animation: dotPulse 2s infinite;
    background: var(--accent-light);
}

@keyframes dotPulse {
    70% {
        box-shadow: 0 0 0 15px rgba(0, 198, 255, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(0, 198, 255, 0);
    }
}

.timeline-content {
    padding: 30px;
}

.timeline-content h3 {
    font-size: 1.3rem;
    margin-bottom: 5px;
}

.timeline-content h4 {
    color: var(--accent-light);
    font-size: 1rem;
    margin-bottom: 15px;
    font-weight: 500;
}

.timeline-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-top: 10px;
}

.date {
    background: rgba(0, 123, 255, 0.1);
    color: var(--accent-light);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: bold;
}


.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 400px));
    justify-content: center;
    gap: 40px;
    max-width: 1200px;
    width: 100%;
}

.project-card {
    background: rgba(25, 25, 30, 0.6);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 198, 255, 0.15);
    border-color: rgba(0, 198, 255, 0.4);
}

.project-img {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.project-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.project-card:hover .project-img img {
    transform: scale(1.1) rotate(1deg);
}

.project-img::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60%;
    background: linear-gradient(to top, rgba(25, 25, 30, 1), transparent);
    z-index: 1;
}

.project-info {
    padding: 25px 30px 35px;
    position: relative;
    z-index: 2;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.project-info h3 {
    font-size: 1.6rem;
    margin-bottom: 12px;
    background: var(--blue-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.project-info p {
    color: var(--text-secondary);
    margin-bottom: 20px;
    font-size: 1rem;
    line-height: 1.6;
}

.tech-stack {
    margin-top: auto;
    font-size: 0.9rem;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.project-links {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}


.contact {
    text-align: center;
}

.contact-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
}

.contact-card {
    padding: 40px;
    max-width: 800px;
    margin: 0 auto;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 15px;
    text-decoration: none;
    color: var(--text-primary);
    transition: var(--transition-smooth);
    text-align: left;
}

.contact-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(0, 198, 255, 0.3);
    box-shadow: 0 10px 30px rgba(0, 198, 255, 0.1);
}

.contact-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(0, 198, 255, 0.1);
    color: var(--accent-light);
    font-size: 1.5rem;
    transition: var(--transition-smooth);
}

.contact-item:hover .contact-icon {
    background: var(--blue-gradient);
    color: #fff;
    box-shadow: 0 0 15px rgba(0, 198, 255, 0.5);
}

.contact-details {
    display: flex;
    flex-direction: column;
}

.contact-type {
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 2px;
}

.contact-value {
    font-size: 1rem;
    font-weight: 500;
}

.footer {
    position: relative;
    padding: 60px 20px 20px;
    background: linear-gradient(to bottom, transparent, rgba(10, 10, 12, 0.95));
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 80px;
}

.footer::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 10%;
    width: 80%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 198, 255, 0.5), transparent);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-bottom: 40px;
}

.footer .logo {
    font-size: 2rem;
    margin-bottom: 10px;
}

.footer-tagline {
    color: var(--text-secondary);
    font-size: 1.1rem;
    text-align: center;
}

.footer-social {
    display: flex;
    gap: 20px;
    margin-top: 15px;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    font-size: 1.2rem;
    text-decoration: none;
    transition: var(--transition-smooth);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-social a:hover {
    background: var(--blue-gradient);
    color: #fff;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 198, 255, 0.3);
    border-color: transparent;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.text-accent {
    color: var(--accent-light);
    animation: pulseGlow 2s infinite alternate ease-in-out;
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

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

@media (max-width: 992px) {
    .hero {
        flex-direction: column;
        text-align: center;
        gap: 50px;
        margin-top: 50px;
    }

    .hero-buttons {
        justify-content: center;
    }

    .slider-wrapper {
        width: min(100%, 350px);
        height: 350px;
    }
}

@media (max-width: 768px) {
    .glass-nav {
        padding: 15px 20px;
        width: 95%;
    }

    .mobile-toggle {
        display: block;
    }

    .nav-links {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(10, 10, 12, 0.95);
        backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: center;
        gap: 20px;
        padding: 20px 0;
        border-radius: 20px;
        border: 1px solid var(--glass-border);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: var(--transition-smooth);
    }

    .nav-links.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(10px);
    }

    .hero h1 {
        font-size: 3rem;
    }
    
    .typing-text {
        font-size: 1.5rem;
    }

    .timeline::before {
        left: 15px;
    }

    .timeline-dot {
        left: 8px;
    }

    .timeline-item {
        padding-left: 50px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .slider-wrapper {
        width: min(100%, 280px);
        height: 280px;
    }
    
    .about-info {
        flex-direction: column;
        gap: 15px;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
        gap: 15px;
    }
    
    .project-img {
        height: 180px;
    }
    
    .contact-card {
        padding: 20px;
    }
    
    .timeline-desc {
        font-size: 0.9rem;
    }
}