﻿:root {
    --bg-color: #0f172a;
    --card-bg: #1e293b;
    --primary: #38bdf8;
    --secondary: #a855f7;
    --text-light: #f8fafc;
    --text-gray: #94a3b8;
    --font-main: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

html {
    scroll-behavior: smooth;
    background-color: var(--bg-color);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-color);
}

::-webkit-scrollbar-thumb {
    background: var(--card-bg);
    border-radius: 5px;
    border: 1px solid var(--secondary);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

body {
    background-color: var(--bg-color);
    color: var(--text-light);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    background: rgba(15, 23, 42, 0.95);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(56, 189, 248, 0.1);
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--text-light);
    text-decoration: none;
}

.logo span {
    color: var(--primary);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-light);
    font-weight: 500;
    transition: color 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary);
    text-shadow: 0 0 10px var(--primary);
}

.menu-toggle {
    display: none;
    cursor: pointer;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--text-light);
    margin: 5px auto;
    transition: 0.3s;
}

.hero {
    min-height: 80dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    padding-top: 80px;
    overflow: hidden;

}


#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;

    pointer-events: none;

}

.hero-content {
    position: relative;
    z-index: 10;

}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.5rem;
    color: var(--text-gray);
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.resaltado {
    color: transparent;
    background: linear-gradient(to right, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
}


.rotating-text-wrapper {
    display: inline-flex;
    position: relative;
    color: var(--primary);
    font-weight: bold;
    overflow: hidden;
    height: 1.5em;

    vertical-align: bottom;
    align-items: center;
}

.rotating-text {
    display: inline-block;
    position: relative;
    white-space: nowrap;
    animation: slide-up 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    transform: translateY(100%);
    opacity: 0;
}

.rotating-text.out {
    animation: slide-down 0.5s cubic-bezier(0.55, 0.085, 0.68, 0.53) forwards;
}

@keyframes slide-up {
    0% {
        transform: translateY(100%);
        opacity: 0;
    }

    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slide-down {
    0% {
        transform: translateY(0);
        opacity: 1;
    }

    100% {
        transform: translateY(-100%);
        opacity: 0;
    }
}

.btn {
    display: inline-block;
    padding: 10px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    margin: 10px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.main-btn {
    background: var(--primary);
    color: var(--bg-color);
    box-shadow: 0 0 15px var(--primary);
}

.main-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 25px var(--primary);
}

.secondary-btn {
    border: 2px solid var(--secondary);
    color: var(--secondary);
}

.secondary-btn:hover {
    background: var(--secondary);
    color: #fff;
    box-shadow: 0 0 15px var(--secondary);
}

.container {
    padding: 4rem 10%;
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.4s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.3), inset 0 0 10px rgba(56, 189, 248, 0.1);
}

.card.active,
.card:active {
    background: rgba(56, 189, 248, 0.05);
    border-color: var(--secondary);
    box-shadow: 0 0 25px rgba(168, 85, 247, 0.5), inset 0 0 15px rgba(168, 85, 247, 0.2);
    transform: translateY(-2px);
}

.card h3 {
    color: var(--primary);
    margin-bottom: 1rem;
    font-size: 1.5rem;
    position: relative;
    z-index: 2;
}

.card p,
.card ul,
.card form,
.card a {
    position: relative;
    z-index: 2;
}

.section-fade {
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s ease-out;
}

.section-fade.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 70px;
        left: 0;
        background: var(--bg-color);
        text-align: center;
        padding: 20px 0;
    }

    .nav-links.active {
        display: flex;
    }

    .menu-toggle {
        display: block;
    }


    .hero {
        padding-top: 100px;

    }

    .hero h1 {
        font-size: 2.2rem;

    }

    .hero p {
        font-size: 1.1rem;
        flex-direction: column;

        gap: 5px;
        margin-bottom: 1.5rem;
    }

    .hero-btns {
        display: flex;
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }

    .btn {
        margin: 0;
        width: 80%;

    }

    .container {
        padding: 3rem 5%;

    }

    .rotating-text-wrapper {
        height: 1.2em;

    }


    .btn-glow-next {
        bottom: 15px;
        right: 15px;
        padding: 10px 15px;
        font-size: 0.9rem;
    }
}

.dafo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.dafo-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 12px;
    border-left: 5px solid transparent;
    transition: transform 0.3s;
}

.dafo-card:hover {
    transform: translateY(-5px);
}

.dafo-d {
    border-left-color: #ef4444;
}

.dafo-a {
    border-left-color: #f97316;
}

.dafo-f {
    border-left-color: #22c55e;
}

.dafo-o {
    border-left-color: #3b82f6;
}

.dafo-card h3 {
    margin-bottom: 1rem;
    font-size: 1.4rem;
    color: var(--text-light);
}

.dafo-list {
    list-style: none;
}

.dafo-list li {
    margin-bottom: 0.5rem;
    padding-left: 1.2rem;
    position: relative;
    color: var(--text-gray);
}

.dafo-list li::before {
    content: "•";
    color: var(--primary);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 2px;
    background: var(--primary);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    right: -10px;
    background-color: var(--bg-color);
    border: 3px solid var(--secondary);
    top: 15px;
    border-radius: 50%;
    z-index: 1;
}

.left {
    left: 0;
}

.right {
    left: 50%;
}

.left::before {
    content: " ";
    height: 0;
    position: absolute;
    top: 22px;
    width: 0;
    z-index: 1;
    right: 30px;
    border: medium solid var(--card-bg);
    border-width: 10px 0 10px 10px;
    border-color: transparent transparent transparent var(--card-bg);
}

.right::before {
    content: " ";
    height: 0;
    position: absolute;
    top: 22px;
    width: 0;
    z-index: 1;
    left: 30px;
    border: medium solid var(--card-bg);
    border-width: 10px 10px 10px 0;
    border-color: transparent var(--card-bg) transparent transparent;
}

.right::after {
    left: -10px;
}

.timeline-content {
    padding: 20px;
    background-color: var(--card-bg);
    position: relative;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.timeline-content h3 {
    color: var(--primary);
}

.timeline-content .date {
    color: var(--secondary);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    display: block;
}

@media screen and (max-width: 600px) {
    .timeline::after {
        left: 31px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }

    .timeline-item::after {
        left: 21px;
    }

    .left::after,
    .right::after {
        left: 21px;
    }

    .right {
        left: 0%;
    }

    .left::before,
    .right::before {
        left: 60px;
        border: medium solid var(--card-bg);
        border-width: 10px 10px 10px 0;
        border-color: transparent var(--card-bg) transparent transparent;
    }
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
    text-align: center;
}

.skill-card {
    background: var(--card-bg);
    padding: 1.5rem;
    border-radius: 10px;
    transition: 0.3s;
}

.skill-card:hover {
    background: rgba(56, 189, 248, 0.1);
    transform: scale(1.05);
}

.skill-card i {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 10px;
}

.market-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.company-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 12px;
    border-top: 4px solid var(--secondary);
}

.company-card h4 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.tag {
    display: inline-block;
    background: rgba(168, 85, 247, 0.2);
    color: var(--secondary);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    margin-top: 10px;
}

footer {
    text-align: center;
    padding: 1rem 0;
    margin-top: 1rem;
    color: var(--text-gray);
    width: 100%;
}

*:focus-visible {
    outline: 2px dashed var(--primary);
    outline-offset: 4px;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .section-fade,
    .card,
    .btn,
    .dafo-card,
    .menu-toggle span {
        transition: none !important;
        transform: none !important;
        animation: none !important;
    }

    .section-fade {
        opacity: 1 !important;
    }
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    margin-top: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    text-align: left;
}

.form-group label {
    font-size: 0.9rem;
    color: var(--text-gray);
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px 20px;
    border-radius: 20px;
    background: rgba(10, 15, 30, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-light);
    font-family: var(--font-main);
    transition: all 0.4s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.4), inset 0 0 5px rgba(56, 189, 248, 0.2);
    background: rgba(15, 23, 42, 1);
}


.border-trace-container {
    position: relative;
    padding: 3px;

    border-radius: 20px;
    background: linear-gradient(0deg, transparent, transparent);
    overflow: hidden;
    z-index: 1;
}

.border-trace-container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(transparent,
            rgba(56, 189, 248, 0.1),
            transparent 30%,
            var(--primary) 50%,
            transparent 55%);
    animation: rotate-border 8s linear infinite;
    z-index: -1;
}

.border-trace-container::after {
    content: '';
    position: absolute;
    inset: 3px;

    background: var(--card-bg);
    border-radius: 17px;
    z-index: -1;
}

@keyframes rotate-border {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}


.btn-glow-next {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: rgba(15, 23, 42, 0.8);
    color: var(--text-light);
    border: 2px solid var(--primary);
    padding: 12px 24px;
    border-radius: 30px;
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 9999;
    backdrop-filter: blur(5px);
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.4), inset 0 0 10px rgba(56, 189, 248, 0.2);
    animation: glow-pulse 2s infinite alternate ease-in-out;
    transition: all 0.3s ease;
}

.btn-glow-next:hover {
    transform: scale(1.05);
    background: var(--primary);
    color: var(--bg-color);
    box-shadow: 0 0 25px rgba(56, 189, 248, 0.8), inset 0 0 15px rgba(255, 255, 255, 0.5);
}

@keyframes glow-pulse {
    0% {
        box-shadow: 0 0 10px rgba(56, 189, 248, 0.3), inset 0 0 5px rgba(56, 189, 248, 0.1);
    }

    100% {
        box-shadow: 0 0 20px rgba(56, 189, 248, 0.6), inset 0 0 12px rgba(56, 189, 248, 0.3);
    }
}


.magictime {
    -webkit-animation-duration: 0.6s;
    animation-duration: 0.6s;
    -webkit-animation-fill-mode: both;
    animation-fill-mode: both;
}

@keyframes puffOut {
    0% {
        opacity: 1;
        transform-origin: 50% 50%;
        transform: scale(1, 1);
        filter: blur(0px);
    }

    100% {
        opacity: 0;
        transform-origin: 50% 50%;
        transform: scale(1.3, 1.3);
        filter: blur(2px);
    }
}

.puffOut {
    animation-name: puffOut;
}

@keyframes vanishIn {
    0% {
        opacity: 0;
        transform-origin: 50% 50%;
        transform: scale(1.3, 1.3);
        filter: blur(90px);
    }

    100% {
        opacity: 1;
        transform-origin: 50% 50%;
        transform: scale(1, 1);
        filter: blur(0px);
    }
}

.vanishIn {
    animation-name: vanishIn;
}