/* Estilos para la escena 3D */
.scene-3d {
    position: relative;
    width: 100%;
    height: 500px;
    perspective: 1000px;
    transform-style: preserve-3d;
}

.scene-main {
    width: 100%;
    height: 100%;
    object-fit: contain;
    animation: float 6s ease-in-out infinite;
}

/* Elementos flotantes */
.floating-elements {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.tech-badge {
    position: absolute;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    animation: float 4s ease-in-out infinite;
}

.tech-badge i {
    font-size: 24px;
}
/* Animaciones del Hero */
@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(2deg); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1) rotate(0deg); opacity: 0.8; }
    50% { transform: scale(1.1) rotate(5deg); opacity: 1; }
}

.hero-visual {
    position: relative;
    z-index: 1;
    perspective: 1500px;
}

.scene-3d {
    transform-style: preserve-3d;
    animation: float 8s ease-in-out infinite;
    position: relative;
    display: flex;
    justify-content: center;
}

.scene-main {
    width: auto;
    height: 600px;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.2));
    transform: rotateY(-8deg) rotateX(5deg);
    transition: transform 0.5s ease;
}

.scene-3d:hover .scene-main {
    transform: rotateY(-12deg) rotateX(8deg) scale(1.02);
}

.floating-elements {
    position: absolute;
    inset: 0;
    pointer-events: none;
    width: 100%;
    height: 100%;
}

.tech-badge {
    position: absolute;
    width: 48px;
    height: 48px;
    background: rgba(15, 23, 42, 0.9);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: pulse 4s ease-in-out infinite;
    transition: all 0.3s ease;
}

.tech-badge i {
    color: #61DAFB;
}

.tech-badge.html i { color: #E44D26; }
.tech-badge.css i { color: #264DE4; }
.tech-badge.js i { color: #F7DF1E; }
.tech-badge.react i { color: #61DAFB; }
.tech-badge.figma i { color: #F24E1E; }
.tech-badge.node i { color: #68A063; }
.tech-badge.mobile i { color: #4FC3F7; }

.tech-badge:hover {
    transform: scale(1.1) rotate(0deg);
    background: rgba(15, 23, 42, 1);
    border-color: rgba(255, 255, 255, 0.2);
}





.tech-badge:hover {
    animation: none;
    transform: scale(1.2) rotate(0deg);
    background: rgba(255, 255, 255, 0.25);
    border-color: var(--primary-color);
}

/* Posiciones de los iconos */
.tech-badge.html {
    top: 10%;
    left: 20%;
    animation-delay: 0s;
    transform: rotate(-8deg);
}

.tech-badge.css {
    top: 39%;
    right: 10%;
    animation-delay: 0.5s;
    transform: rotate(5deg);
}

.tech-badge.js {
    bottom: -7%;
    left: 19%;
    animation-delay: 1s;
    transform: rotate(-5deg);
}

.tech-badge.react {
    top: 11%;
    right: 16%;
    animation-delay: 1.5s;
    transform: rotate(8deg);
}

.tech-badge.figma {
    bottom: 18%;
    right: 11%;
    animation-delay: 2s;
    transform: rotate(-8deg);
}

.tech-badge.node {
    bottom: -7%;
    right: 20%;
    animation-delay: 2.5s;
    transform: rotate(5deg);
}

.tech-badge.mobile {
    top: 70%;
    left: 9%;
    animation-delay: 3s;
    transform: rotate(8deg);
}

.tech-badge.python {
    top: 36%;
    left: 8%;
    animation-delay: 3.5s;
    transform: rotate(-6deg);
}

.tech-badge.python i {
    color: #3776AB;
}
.tech-badge.html i {
    color: #e34f26;
}



.tech-badge.css i {
    color: #264de4;
}



.tech-badge.js i {
    color: #f7df1e;
}



.tech-badge.react i {
    color: #61dafb;
}

/* Animaciones */
@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

/* Animación de la escena principal */
.scene-main {
    animation: scene-rotate 15s linear infinite;
    transform-origin: center center;
}

@keyframes scene-rotate {
    0% {
        transform: rotateY(0deg) translateY(0);
    }
    25% {
        transform: rotateY(5deg) translateY(-30px);
    }
    50% {
        transform: rotateY(0deg) translateY(0);
    }
    75% {
        transform: rotateY(-5deg) translateY(-30px);
    }
    100% {
        transform: rotateY(0deg) translateY(0);
    }
}

/* Efecto de hover */
.scene-3d:hover .scene-main {
    animation-play-state: paused;
}

.scene-3d:hover .tech-badge {
    animation-play-state: paused;
}

/* Responsive */
@media (max-width: 768px) {
    .scene-3d {
        height: 400px;
    }

    .tech-badge {
        width: 40px;
        height: 40px;
    }

    .tech-badge i {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .scene-3d {
        height: 350px;
        
    }

    .tech-badge {
        width: 30px;
        height: 30px;
    }

    .tech-badge i {
        font-size: 16px;
    }
}
@media (min-width: 426px) and (max-width: 500px) {


    .menu-toggle {
        display: block;
        cursor: pointer;
        padding: 10px 13px 0px 0px;
    }
    .nav-logo {
        margin-left: -65px;
        height: 378px;
        width: 288px;
    }
    /* hero */
    .scene-main {
        width: auto;
        height: 420px;
        filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.2));
        transform: rotateY(-8deg) rotateX(5deg);
        transition: transform 0.5s ease;
    }
    .scene-3d {
        height: 350px;
    }
  
    .badge {
        display: inline-block;
        padding: var(--spacing-xs) var(--spacing-sm);
        background: var(--glass-bg);
        border: 1px solid var(--glass-border);
        border-radius: var(--radius-full);
        font-size: 0.76rem;
        font-weight: 500;
        color: var(--text-primary);
        margin-left: 9px;
    }
    .hero-content {
        padding-top: 4rem;
        max-width: 1100px;
        padding-right: 0px;
    }.hero-content {
         max-width: 1100px; 
         padding-right: 0px; 
    }
    .hero h1 {
        text-align: center;
        font-size: 2.4rem;
        line-height: 1.2;
        margin-bottom: 2.5rem;
        margin-top: 2.5rem;
        background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;
    }
    .hero p {
        text-align: center;
        font-size: 1.0rem;
        margin-bottom: 2rem;
        color: var(--text-color);
        opacity: 0.9;
    }
    .hero-stats {
        grid-template-columns: fr;
        gap: var(--spacing-md);
    }
   

}
@media (min-width: 375px)and (max-width: 425px){
    .nav-logo {
        margin-left: -65px;
        height: 320px;
        width: 246px;
    }
    /* hero */
    .scene-main {
        width: auto;
        height: 409px;
        filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.2));
        transform: rotateY(-8deg) rotateX(5deg);
        transition: transform 0.5s ease;
    }
    .scene-3d {
        height: 350px;
        
    }
    .badge {

        display: inline-block;
        padding: var(--spacing-xs) var(--spacing-sm);
        background: var(--glass-bg);
        border: 1px solid var(--glass-border);
        border-radius: var(--radius-full);
        font-size: 0.76rem;
        font-weight: 500;
        color: var(--text-primary);
        margin-left: 9px;
    }
    .hero-content {
        padding-top: 4rem;
        max-width: 1100px;
        padding-right: 0px;
    }.hero-content {
         max-width: 1100px; 
         padding-right: 0px; 
    }
    .hero h1 {

        text-align: center;
        font-size: 2rem;
        line-height: 1.2;
        margin-bottom: 2.5rem;
        margin-top: 2.5rem;
        background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;
    }
    .hero p {
        padding: 0px 5px 0px 5px;
        text-align: center;
        font-size: 1rem;
        margin-bottom: 2rem;
        color: var(--text-color);
        opacity: 0.9;
    }
    .hero-stats {
        grid-template-columns: fr;
        gap: 2px;
    }

}