* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #0f1419 0%, #1a2332 50%, #2d3748 100%);
    color: #ffffff;
    overflow-x: hidden;
    line-height: 1.6;
}

/* Animaciones 3D */
@keyframes float {
    0%, 100% { transform: translateY(0px) rotateX(0deg); }
    50% { transform: translateY(-20px) rotateX(5deg); }
}

@keyframes rotate3d {
    0% { transform: rotateY(0deg) rotateX(0deg); }
    100% { transform: rotateY(360deg) rotateX(15deg); }
}

@keyframes slideInLeft {
    0% { transform: translateX(-100px) rotateY(-30deg); opacity: 0; }
    100% { transform: translateX(0) rotateY(0deg); opacity: 1; }
}

@keyframes slideInRight {
    0% { transform: translateX(100px) rotateY(30deg); opacity: 0; }
    100% { transform: translateX(0) rotateY(0deg); opacity: 1; }
}

@keyframes bounceIn3D {
    0% { transform: scale3d(0.3, 0.3, 0.3) rotateZ(-45deg); opacity: 0; }
    50% { transform: scale3d(1.05, 1.05, 1.05) rotateZ(10deg); }
    70% { transform: scale3d(0.9, 0.9, 0.9) rotateZ(-5deg); }
    100% { transform: scale3d(1, 1, 1) rotateZ(0deg); opacity: 1; }
}

@keyframes badgeRotate {
    0% { transform: rotateY(0deg) rotateX(0deg); }
    25% { transform: rotateY(90deg) rotateX(5deg); }
    50% { transform: rotateY(180deg) rotateX(0deg); }
    75% { transform: rotateY(270deg) rotateX(-5deg); }
    100% { transform: rotateY(360deg) rotateX(0deg); }
}

@keyframes shine {
    0% { left: -100%; }
    50% { left: 100%; }
    100% { left: 100%; }
}

/* Header */
.header {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(15, 20, 25, 0.9);
    backdrop-filter: blur(10px);
    padding: 1rem 2rem;
    z-index: 1000;
    border-bottom: 2px solid #4299e1;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #4299e1;
    animation: float 3s ease-in-out infinite;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 5px;
}

.nav-links a:hover {
    color: #4299e1;
    background: rgba(66, 153, 225, 0.1);
    transform: translateY(-2px);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    background: radial-gradient(circle at 50% 50%, rgba(66, 153, 225, 0.1) 0%, transparent 50%);
}

.hero-content {
    max-width: 800px;
    z-index: 2;
    animation: bounceIn3D 1.5s ease-out;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, #4299e1, #63b3ed, #90cdf4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: slideInLeft 1s ease-out 0.5s both;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    animation: slideInRight 1s ease-out 1s both;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    background: linear-gradient(45deg, #4299e1, #2b6cb0);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(66, 153, 225, 0.3);
    animation: float 3s ease-in-out infinite 2s;
}

.cta-button:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 40px rgba(66, 153, 225, 0.5);
}

/* Floating Elements */
.floating-element {
    position: absolute;
    width: 100px;
    height: 100px;
    background: linear-gradient(45deg, rgba(66, 153, 225, 0.2), rgba(139, 92, 246, 0.2));
    border-radius: 20px;
    animation: rotate3d 20s linear infinite;
}

.floating-element:nth-child(1) {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.floating-element:nth-child(2) {
    top: 60%;
    right: 10%;
    animation-delay: -7s;
}

.floating-element:nth-child(3) {
    bottom: 20%;
    left: 20%;
    animation-delay: -14s;
}

/* Sections */
.section {
    padding: 3rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 3rem;
    color: #4299e1;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(45deg, #4299e1, #63b3ed);
    border-radius: 2px;
}

/* Cards */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.card {
    background: rgba(26, 35, 50, 0.8);
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid rgba(66, 153, 225, 0.2);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(45deg, #4299e1, #63b3ed);
}

.card:hover {
    transform: translateY(-10px) rotateX(5deg);
    box-shadow: 0 20px 40px rgba(66, 153, 225, 0.2);
    border-color: #4299e1;
}

.card h3 {
    color: #4299e1;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.card p {
    opacity: 0.9;
    line-height: 1.6;
}

/* Skills Section */
.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.skill-item {
    background: rgba(26, 35, 50, 0.6);
    padding: 1.5rem;
    border-radius: 10px;
    border-left: 4px solid #4299e1;
    transition: all 0.3s ease;
    animation: slideInLeft 0.6s ease-out;
}

.skill-item:nth-child(even) {
    animation: slideInRight 0.6s ease-out;
}

.skill-item:hover {
    transform: translateX(10px) rotateY(5deg);
    background: rgba(66, 153, 225, 0.1);
}

.skill-item h4 {
    color: #4299e1;
    margin-bottom: 0.5rem;
}

/* Certifications */
.cert-badge {
    display: inline-block;
    background: linear-gradient(45deg, #4299e1, #2b6cb0);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    margin: 0.5rem;
    font-size: 0.9rem;
    font-weight: bold;
    transition: all 0.3s ease;
    animation: bounceIn3D 0.8s ease-out;
}

.cert-badge:hover {
    transform: scale(1.1) rotateZ(5deg);
    box-shadow: 0 5px 15px rgba(66, 153, 225, 0.4);
}

/* Contact Section */
.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.contact-item {
    background: rgba(26, 35, 50, 0.8);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    border: 1px solid rgba(66, 153, 225, 0.2);
    transition: all 0.3s ease;
    animation: float 4s ease-in-out infinite;
}

.contact-item:nth-child(2) {
    animation-delay: -1s;
}

.contact-item:nth-child(3) {
    animation-delay: -2s;
}

.contact-item:hover {
    transform: translateY(-10px) scale(1.05);
    border-color: #4299e1;
    box-shadow: 0 15px 30px rgba(66, 153, 225, 0.3);
}

.contact-icon {
    font-size: 3rem;
    color: #4299e1;
    margin-bottom: 1rem;
    animation: rotate3d 10s linear infinite;
}

/* Footer */
.footer {
    background: rgba(15, 20, 25, 0.9);
    padding: 2rem;
    text-align: center;
    border-top: 2px solid #4299e1;
}

/* Microsoft Badge Integration */
.microsoft-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 1rem 0 2rem 0;
    animation: bounceIn3D 1.5s ease-out 1.5s both;
}

.badge-container {
    background: transparent;
    padding: 1rem;
    border-radius: 20px;
    transition: all 0.5s ease;
    animation: float 4s ease-in-out infinite;
    transform-style: preserve-3d;
}

.badge-container:hover {
    transform: scale(1.1) rotateY(15deg) rotateX(5deg);
    filter: drop-shadow(0 25px 50px rgba(66, 153, 225, 0.4));
}

.badge-shield {
    animation: badgeRotate 8s linear infinite;
    transform-style: preserve-3d;
}

.badge-container:hover .badge-shield {
    animation-duration: 2s;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .nav-links {
        display: none;
    }
    
    .section {
        padding: 3rem 1rem;
    }
    
    .cards-grid {
        grid-template-columns: 1fr;
    }
}