/* Variables CSS */
:root {
    /* Colores Dragon Ball */
    --orange: #FF9C00;
    --orange-dark: #E07C00;
    --blue: #0072CE;
    --blue-dark: #005AA3;
    --gold: #FFD700;
    --gold-dark: #D4AF37;
    --red: #FF0000;
    --red-dark: #CC0000;
    --black: #1A1A1A;
    --white: #FFFFFF;
    --gray: #F5F5F5;
    --gray-dark: #333333;
    
    /* Tipografía */
    --font-primary: 'Oxanium', sans-serif;
    --font-secondary: Arial, sans-serif;
    
    /* Sombras */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.3);
    --shadow-orange: 0 0 10px rgba(255, 156, 0, 0.5);
    --shadow-blue: 0 0 10px rgba(0, 114, 206, 0.5);
    --shadow-gold: 0 0 10px rgba(255, 215, 0, 0.5);
    
    /* Transiciones */
    --transition-fast: all 0.2s ease;
    --transition-medium: all 0.3s ease;
    --transition-slow: all 0.5s ease;
}

/* Modo oscuro (Vegeta theme) */
[data-theme="dark"] {
    --orange: #E07C00;
    --orange-dark: #C56E00;
    --blue: #005AA3;
    --blue-dark: #004A8A;
    --gold: #D4AF37;
    --gold-dark: #B59D2F;
    --red: #CC0000;
    --red-dark: #AA0000;
    --black: #FFFFFF;
    --white: #1A1A1A;
    --gray: #333333;
    --gray-dark: #F5F5F5;
}

/* Reset y estilos base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    background-color: var(--white);
    color: var(--black);
    line-height: 1.6;
    transition: var(--transition-medium);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* Clases de utilidad */
.text-orange { color: var(--orange); }
.text-blue { color: var(--blue); }
.text-gold { color: var(--gold); }
.text-red { color: var(--red); }

.bg-orange { background-color: var(--orange); }
.bg-blue { background-color: var(--blue); }
.bg-gold { background-color: var(--gold); }
.bg-red { background-color: var(--red); }

.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: var(--transition-medium);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background-color: var(--orange);
    color: var(--white);
    box-shadow: var(--shadow-orange);
}

.btn-outline {
    background-color: transparent;
    color: var(--orange);
    border-color: var(--orange);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.saiyan-hover:hover {
    animation: saiyanGlow 0.5s ease infinite alternate;
}

.section {
    padding: 100px 0;
    position: relative;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 60px;
    text-align: center;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--orange);
    border-radius: 2px;
}

.section-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Pantalla de carga */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--black);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.loader p {
    color: var(--white);
    margin-top: 20px;
    font-size: 1.2rem;
}

.dragon-ball {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, var(--gold), var(--gold-dark));
    position: relative;
    box-shadow: 0 0 20px var(--gold);
    animation: rotate 2s linear infinite;
}

.dragon-ball::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: 10px;
    border-radius: 50%;
    border: 2px solid var(--black);
}

.stars {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: url('../assets/icons/stars-icon.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    animation: pulse 1.5s ease-in-out infinite alternate;
}

/* Toggle tema */
.theme-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    border-radius: 50px;
    padding: 5px;
    box-shadow: var(--shadow-md);
    transition: var(--transition-medium);
}

.theme-switch {
    display: none;
}

.theme-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 80px;
    height: 40px;
    background: var(--gray);
    border-radius: 50px;
    padding: 5px;
    position: relative;
    cursor: pointer;
    transition: var(--transition-medium);
}

.theme-label::before {
    content: '';
    position: absolute;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--orange);
    left: 5px;
    transition: var(--transition-medium);
    z-index: 1;
}

.theme-switch:checked + .theme-label::before {
    transform: translateX(40px);
    background: var(--blue);
}

.goku-icon, .vegeta-icon {
    width: 30px;
    height: 30px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    z-index: 2;
}

.goku-icon {
    background-image: url('../assets/icons/goku-icon.png');
}

.vegeta-icon {
    background-image: url('../assets/icons/vegeta-icon.png');
}

/* Barra de navegación */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 0;
    z-index: 100;
    transition: var(--transition-medium);
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
}

[data-theme="dark"] .navbar {
    background-color: rgba(26, 26, 26, 0.9);
}

.navbar.scrolled {
    padding: 10px 0;
    box-shadow: var(--shadow-md);
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.navbar-logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--orange);
}

.navbar-logo img {
    height: 40px;
    margin-right: 10px;
}

.navbar-menu {
    display: flex;
}

.navbar-item {
    margin-left: 30px;
}

.navbar-link {
    position: relative;
    padding: 5px 0;
    font-weight: 600;
}

.navbar-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--orange);
    transition: var(--transition-medium);
}

.navbar-link:hover::after {
    width: 100%;
}

.navbar-toggle {
    display: none;
    cursor: pointer;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
}

.bar {
    width: 100%;
    height: 3px;
    background-color: var(--orange);
    border-radius: 3px;
    transition: var(--transition-medium);
}

/* Hero section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255, 156, 0, 0.1) 0%, rgba(0, 114, 206, 0.1) 100%);
    z-index: -1;
}

.hero-content {
    width: 60%;
    padding-right: 40px;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.name-highlight {
    color: var(--orange);
    position: relative;
    display: inline-block;
}

.name-highlight::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 10px;
    background-color: rgba(255, 156, 0, 0.3);
    z-index: -1;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 30px;
    color: var(--gray-dark);
}

[data-theme="dark"] .hero-subtitle {
    color: var(--gray);
}

.hero-cta {
    display: flex;
    gap: 20px;
}

.hero-image {
    width: 100%;
    position: relative;
    max-width: 300px;
}

.silhouette {
    width: 100%;
    filter: drop-shadow(0 0 20px rgba(255, 156, 0, 0.5));
    animation: float 3s ease-in-out infinite;
}

.aura {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 156, 0, 0.3) 0%, rgba(255, 156, 0, 0) 70%);
    animation: pulseAura 2s ease-in-out infinite;
    z-index: -1;
}

/* About section */
.about-content {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-image {
    width: 40%;
    display: flex;
    justify-content: center;
}

.profile-frame {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    padding: 10px;
    position: relative;
    background: linear-gradient(135deg, var(--orange), var(--blue));
    box-shadow: var(--shadow-lg);
}

.profile-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid var(--white);
}

.frame-aura {
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--orange), var(--blue));
    z-index: -1;
    opacity: 0.5;
    filter: blur(10px);
    animation: rotateAura 10s linear infinite;
}

.about-text {
    width: 60%;
}

.about-text h3 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--orange);
}

.about-text p {
    margin-bottom: 15px;
}

.about-buttons {
    display: flex;
    gap: 20px;
    margin-top: 30px;
}

/* Skills section */
/* Skills section - Versión modificada (sin barras de progreso) */
.skills-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center; /* Centrar las categorías */
}

.skill-category {
    flex: 1;
    min-width: 300px;
    max-width: 400px; /* Ancho máximo para mejor legibilidad */
    background-color: var(--gray);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-medium);
}

[data-theme="dark"] .skill-category {
    background-color: var(--gray-dark);
}

.skill-category:hover {
    transform: translateY(-5px); /* Efecto más sutil */
    box-shadow: var(--shadow-md);
}

.category-title {
    font-size: 1.5rem;
    margin-bottom: 25px;
    color: var(--orange);
    text-align: center;
    position: relative;
}

.category-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background-color: var(--orange);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 20px;
}

.skill-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 15px;
    background-color: rgba(255, 156, 0, 0.1);
    border-radius: 8px;
    transition: var(--transition-fast);
}

.skill-item:hover {
    background-color: rgba(255, 156, 0, 0.2);
    transform: scale(1.05);
}

.skill-icon {
    width: 50px;
    height: 50px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    filter: drop-shadow(0 0 5px rgba(0, 0, 0, 0.2));
}

.skill-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.skill-name {
    font-weight: 600;
    color: var(--black);
    text-align: center;
}

[data-theme="dark"] .skill-name {
    color: var(--white);
}

/* Eliminamos las clases relacionadas con las barras de progreso */
.skill-bar, .skill-level {
    display: none;
}

/* Iconos específicos con efectos hover */
.skill-icon.html:hover {
    filter: drop-shadow(0 0 5px #E44D26);
}

.skill-icon.css:hover {
    filter: drop-shadow(0 0 5px #2965F1);
}

.skill-icon.js:hover {
    filter: drop-shadow(0 0 5px #F7DF1E);
}

.skill-icon.react:hover {
    filter: drop-shadow(0 0 5px #61DAFB);
}

.skill-icon.node:hover {
    filter: drop-shadow(0 0 5px #68A063);
}

.skill-icon.php:hover {
    filter: drop-shadow(0 0 5px #777BB4);
}

.skill-icon.git:hover {
    filter: drop-shadow(0 0 5px #F05032);
}

.skill-icon.db:hover {
    filter: drop-shadow(0 0 5px #00758F);
}

.skill-icon.html {
    background-image: url('../assets/icons/html-icon.png');
}

.skill-icon.css {
    background-image: url('../assets/icons/css-icon.png');
}

.skill-icon.react {
    background-image: url('../assets/icons/react-icon.png');
}

.skill-icon.js {
    background-image: url('../assets/icons/js-icon.png');
}
.skill-icon.node {
    background-image: url('../assets/icons/node-icon.png');
}

.skill-icon.php {
    background-image: url('../assets/icons/php-icon.png');
}

.skill-icon.git {
    background-image: url('../assets/icons/git-icon.png');
}

.skill-icon.db {
    background-image: url('../assets/icons/db-icon.png');
}

.skill-info {
    flex: 1;
}

.skill-name {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.skill-level {
    display:none;
}

/* Projects section */
.project-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 40px;
}

.filter-btn {
    padding: 8px 16px;
    border: none;
    background-color: var(--gray);
    color: var(--black);
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition-fast);
    font-weight: 600;
}

[data-theme="dark"] .filter-btn {
    background-color: var(--gray-dark);
    color: var(--white);
}

.filter-btn:hover {
    background-color: var(--orange);
    color: var(--white);
}

.filter-btn.active {
    background-color: var(--orange);
    color: var(--white);
    box-shadow: var(--shadow-orange);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.project-card {
    background-color: var(--gray);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-medium);
    position: relative;
}

[data-theme="dark"] .project-card {
    background-color: var(--gray-dark);
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.project-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-medium);
}

.project-card:hover .project-image img {
    transform: scale(1.1);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    opacity: 0;
    transition: var(--transition-medium);
    color: var(--white);
    text-align: center;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-overlay h3 {
    margin-bottom: 10px;
    color: var(--orange);
}

.project-overlay p {
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    justify-content: center;
}

.project-tech span {
    padding: 3px 10px;
    background-color: var(--orange);
    color: var(--white);
    border-radius: 50px;
    font-size: 0.8rem;
}

.project-info {
    padding: 20px;
}

.project-info h3 {
    margin-bottom: 10px;
}

.project-links {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
}

.project-link {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.9rem;
    color: var(--orange);
    transition: var(--transition-fast);
}

.project-link:hover {
    color: var(--orange-dark);
}

/* Contact section */
.contact-container {
    display: flex;
    gap: 50px;
    background-color: var(--gray);
    padding: 50px;
    border-radius: 10px;
    box-shadow: var(--shadow-sm);
}

[data-theme="dark"] .contact-container {
    background-color: var(--gray-dark);
}

.contact-info {
    width: 40%;
}

.contact-info h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--orange);
}

.contact-info p {
    margin-bottom: 30px;
}

.contact-details {
    margin-bottom: 30px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.contact-item i {
    width: 40px;
    height: 40px;
    background-color: var(--orange);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1rem;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-link {
    width: 40px;
    height: 40px;
    background-color: var(--orange);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    transition: var(--transition-fast);
}

.social-link:hover {
    background-color: var(--orange-dark);
    transform: translateY(-3px);
}

.contact-form {
    width: 60%;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-family: var(--font-primary);
    transition: var(--transition-fast);
    background-color: var(--white);
    color: var(--black);  
}

[data-theme="dark"] .form-group input,
[data-theme="dark"] .form-group textarea {
    background-color: var(--gray);
    border-color: #555;
    color: var(--white);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--orange);
    outline: none;
    box-shadow: var(--shadow-orange);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

/* Footer */
.footer {
    background-color: var(--black);
    color: var(--white);
    padding: 50px 0 20px;
}

.footer-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 40px;
}

.footer-logo {
    display: flex;
    align-items: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--orange);
}

.footer-logo img {
    height: 40px;
    margin-right: 10px;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    transition: var(--transition-fast);
}

.footer-links a:hover {
    color: var(--orange);
}

.footer-social {
    display: flex;
    gap: 15px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    transition: var(--transition-fast);
}

.footer-social a:hover {
    background-color: var(--orange);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    margin-top: 50px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

/* Animaciones CSS (animations.css) */
@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes pulse {
    from { transform: scale(0.95); opacity: 0.8; }
    to { transform: scale(1.05); opacity: 1; }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

@keyframes pulseAura {
    0%, 100% { opacity: 0.5; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 0.8; transform: translate(-50%, -50%) scale(1.1); }
}

@keyframes rotateAura {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes saiyanGlow {
    from { box-shadow: 0 0 5px var(--orange), 0 0 10px var(--orange); }
    to { box-shadow: 0 0 15px var(--orange), 0 0 30px var(--orange); }
}

/* Efecto de partículas */
#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: -1;
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero-content {
        width: 100%;
        padding-right: 0;
        text-align: center;
    }
    
    .hero-image {
        display: none;
    }
    
    .about-content {
        flex-direction: column;
    }
    
    .about-image, .about-text {
        width: 100%;
    }
    
    .contact-container {
        flex-direction: column;
    }
    
    .contact-info, .contact-form {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .navbar-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background-color: var(--white);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        transition: var(--transition-medium);
        padding: 20px 0;
    }
    
    [data-theme="dark"] .navbar-menu {
        background-color: var(--black);
    }
    
    .navbar-menu.active {
        left: 0;
    }
    
    .navbar-item {
        margin: 15px 0;
    }
    
    .navbar-toggle {
        display: flex;
    }
    
    .navbar-toggle.active .bar:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }
    
    .navbar-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }
    
    .navbar-toggle.active .bar:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 250px;
    }
}

@media (max-width: 576px) {
    .section {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .profile-frame {
        width: 250px;
        height: 250px;
    }
    
    .project-filters {
        flex-direction: column;
        align-items: center;
    }
    
    .filter-btn {
        width: 100%;
        max-width: 200px;
    }
}