* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #1a1a2e;
    --secondary-color: #8b5cf6;
    --accent-color: #ec4899;
    --accent-2: #06b6d4;
    --accent-3: #f59e0b;
    --dark-bg: #0f0f1e;
    --light-bg: #fafbfc;
    --text-dark: #1e293b;
    --text-light: #ffffff;
    --text-gray: #64748b;
    --border-color: #e2e8f0;
    --gradient-primary: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
    --gradient-accent: linear-gradient(135deg, #06b6d4 0%, #8b5cf6 100%);
    --gradient-soft: linear-gradient(135deg, #f59e0b 0%, #ec4899 100%);
    --gradient-hero: linear-gradient(135deg, #8b5cf6 0%, #ec4899 50%, #06b6d4 100%);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.7;
    color: var(--text-dark);
    overflow-x: hidden;
    scroll-behavior: smooth;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    background: #ffffff;
    font-size: 16px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    letter-spacing: -1px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    z-index: 1000;
    padding: 1.5rem 0;
    border-bottom: 1px solid rgba(99, 102, 241, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 20px rgba(99, 102, 241, 0.05);
}

.navbar.scrolled {
    padding: 1rem 0;
    box-shadow: 0 4px 30px rgba(99, 102, 241, 0.1);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.6rem;
    font-weight: 700;
    color: #6366f1;
    letter-spacing: -0.5px;
    transition: all 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
    color: #a855f7;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-menu a {
    color: var(--text-gray);
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 1.05rem;
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #6366f1, #a855f7);
    transition: width 0.3s ease;
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: #6366f1;
}

.hamburger {
    display: none;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    padding: 8rem 0 4rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -10%;
    right: -5%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    animation: floatOrb 25s ease-in-out infinite;
    filter: blur(60px);
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -10%;
    left: -5%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.25) 0%, transparent 70%);
    border-radius: 50%;
    animation: floatOrb 20s ease-in-out infinite reverse;
    filter: blur(60px);
}

@keyframes floatOrb {
    0%, 100% { 
        transform: translate(0, 0) scale(1);
        opacity: 0.6;
    }
    33% {
        transform: translate(30px, -40px) scale(1.15);
        opacity: 0.8;
    }
    66% {
        transform: translate(-20px, 30px) scale(0.95);
        opacity: 0.7;
    }
}



.hero-container {
    display: grid;
    grid-template-columns: 1fr 650px;
    gap: 4rem;
    align-items: center;
    max-width: 1500px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    padding: 0 3rem;
}

.hero-content {
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.butterfly-container {
    position: relative;
    width: 100%;
    max-width: 650px;
    height: 650px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: floatButterfly 6s ease-in-out infinite;
}

@keyframes floatButterfly {
    0%, 100% { 
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-15px) rotate(2deg);
    }
    50% { 
        transform: translateY(-30px) rotate(0deg);
    }
    75% {
        transform: translateY(-15px) rotate(-2deg);
    }
}

.butterfly-circle {
    display: none;
}

@keyframes rotateCircle {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.butterfly-circle::before {
    content: '';
    position: absolute;
    inset: -40px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    animation: pulseGlow 4s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% { 
        transform: scale(1); 
        opacity: 0.4; 
    }
    50% { 
        transform: scale(1.1); 
        opacity: 0.6; 
    }
}

.butterfly-image {
    width: 100%;
    max-width: 600px;
    height: auto;
    object-fit: contain;
    position: relative;
    z-index: 2;
    filter: drop-shadow(0 20px 60px rgba(0, 0, 0, 0.3));
    animation: butterflyWings 4s ease-in-out infinite;
}

@keyframes butterflyWings {
    0%, 100% { 
        transform: scale(1);
        filter: drop-shadow(0 20px 60px rgba(0, 0, 0, 0.3)) drop-shadow(0 0 40px rgba(255, 255, 255, 0.3));
    }
    50% { 
        transform: scale(1.05);
        filter: drop-shadow(0 25px 70px rgba(0, 0, 0, 0.4)) drop-shadow(0 0 60px rgba(255, 255, 255, 0.5));
    }
}

.hero-greeting {
    display: block;
    font-family: 'Righteous', cursive;
    font-size: 2rem;
    font-weight: 400;
    background: linear-gradient(90deg, #ff006e, #ff1493, #ff69b4, #ff006e);
    background-size: 300% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
    margin-bottom: 0.8rem;
    letter-spacing: 12px;
    animation: fadeInUp 0.8s ease 0.2s backwards, gradientShift 4s linear infinite;
    text-transform: uppercase;
    filter: brightness(1.2) saturate(1.3);
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    100% { background-position: 300% 50%; }
}

.hero-name {
    font-family: 'Righteous', cursive;
    font-size: 4.5rem;
    font-weight: 400;
    color: #ffffff;
    letter-spacing: 6px;
    animation: fadeInUp 0.8s ease 0.3s backwards;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    position: relative;
    text-shadow: 
        0 0 10px rgba(255, 255, 255, 0.8),
        0 0 20px rgba(255, 255, 255, 0.6),
        0 0 30px rgba(255, 215, 0, 0.5),
        0 0 40px rgba(0, 212, 255, 0.4),
        0 0 50px rgba(255, 0, 110, 0.3),
        0 5px 30px rgba(0, 0, 0, 0.4);
    transition: all 0.4s ease;
}

.hero-name:hover {
    transform: translateY(-10px) scale(1.08);
    letter-spacing: 8px;
    text-shadow: 
        0 0 15px rgba(255, 255, 255, 1),
        0 0 30px rgba(255, 255, 255, 0.8),
        0 0 45px rgba(255, 215, 0, 0.7),
        0 0 60px rgba(0, 212, 255, 0.6),
        0 0 75px rgba(255, 0, 110, 0.5),
        0 0 90px rgba(255, 0, 110, 0.4),
        0 10px 40px rgba(0, 0, 0, 0.5);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.subtitle {
    font-size: 1.4rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.8s ease 0.4s backwards;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.description {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.8;
    max-width: 650px;
    margin: 0 auto 3rem;
    animation: fadeInUp 0.8s ease 0.5s backwards;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.2);
}

.hero-stats {
    display: flex;
    gap: 2rem;
    margin-bottom: 2.5rem;
    animation: fadeInUp 0.8s ease 0.6s backwards;
    justify-content: center;
    position: relative;
    z-index: 10;
}

.stat-box {
    text-align: center;
    padding: 2rem 3rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.stat-box:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2);
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 900;
    color: #ffffff;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.stat-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    animation: fadeInUp 0.8s ease 0.7s backwards;
    justify-content: center;
    position: relative;
    z-index: 10;
    margin-bottom: 2rem;
}

.btn-primary,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1.1rem 2.8rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    letter-spacing: 0.5px;
}

.btn-primary::before,
.btn-secondary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-primary:hover::before,
.btn-secondary:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: #ffffff;
    color: #667eea;
    border: 2px solid #ffffff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.btn-primary:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    background: rgba(255, 255, 255, 0.95);
}

.btn-secondary {
    background: transparent;
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    border-color: #ffffff;
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
}

/* About Section */
.about {
    padding: 6rem 0;
    background: var(--light-bg);
    position: relative;
}

.section-header-about {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header-about h2 {
    font-size: 3rem;
    color: #6366f1;
    margin-bottom: 1rem;
    font-weight: 700;
    letter-spacing: 3px;
}

.header-line {
    width: 100px;
    height: 3px;
    background: #6366f1;
    margin: 0 auto;
    border-radius: 10px;
}

.about-content {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 3rem;
    align-items: start;
}

.profile-card {
    background: #ffffff;
    border: 2px solid var(--border-color);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.profile-image-wrapper {
    width: 200px;
    height: 200px;
    margin: 0 auto 2rem;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid transparent;
    background: var(--gradient-primary);
    padding: 4px;
    box-shadow: 0 10px 40px rgba(139, 92, 246, 0.3);
}

.profile-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.profile-info {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--text-gray);
    font-size: 0.95rem;
}

.info-icon {
    font-size: 1.2rem;
}

.info-text {
    color: var(--text-dark);
}

.about-content-box {
    background: #ffffff;
    border: 2px solid var(--border-color);
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.about-description {
    margin-bottom: 3rem;
}

.about-description p {
    font-size: 1.05rem;
    line-height: 1.9;
    color: var(--text-gray);
    text-align: justify;
}

.about-description strong {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

.highlight-purple {
    color: #8b5cf6;
    font-weight: 600;
}

.section-subtitle {
    font-size: 1.3rem;
    color: #ec4899;
    margin-bottom: 1.5rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-align: center;
}

.soft-skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 3rem;
}

.skill-badge {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1) 0%, rgba(236, 72, 153, 0.1) 100%);
    color: var(--text-dark);
    padding: 1.5rem 1rem;
    border-radius: 12px;
    text-align: center;
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid rgba(139, 92, 246, 0.2);
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.1);
}

.skill-badge:hover {
    transform: translateY(-5px);
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.15) 0%, rgba(236, 72, 153, 0.15) 100%);
    border-color: rgba(139, 92, 246, 0.4);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.3);
}

.languages-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.language-item {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.language-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.language-name {
    font-size: 1.05rem;
    color: var(--text-dark);
    font-weight: 600;
}

.language-level {
    font-size: 0.95rem;
    color: var(--text-gray);
}

.language-bar {
    height: 10px;
    background: rgba(226, 232, 240, 0.5);
    border-radius: 10px;
    overflow: hidden;
}

.language-fill {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 10px;
    transition: width 1.5s ease;
    box-shadow: 0 0 10px rgba(139, 92, 246, 0.5);
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Skills Section */
.skills {
    padding: 6rem 0;
    background: #ffffff;
    position: relative;
}

.skills h2 {
    text-align: center;
    font-size: 3rem;
    color: #a855f7;
    margin-bottom: 0.5rem;
}

.skills h2::after {
    content: '';
    display: block;
    width: 100px;
    height: 4px;
    background: #a855f7;
    margin: 1rem auto 0;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(168, 85, 247, 0.3);
}

.section-label {
    display: inline-block;
    padding: 0.6rem 1.5rem;
    background: rgba(168, 85, 247, 0.1);
    color: #a855f7;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 1rem;
    border: 1px solid rgba(168, 85, 247, 0.2);
}

.section-header {
    text-align: center;
    margin-bottom: 1rem;
}

.section-header h2 {
    color: #a855f7;
}

.section-line {
    width: 100px;
    height: 4px;
    background: #a855f7;
    margin: 1rem auto;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(168, 85, 247, 0.3);
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: #a855f7;
    margin-bottom: 4rem;
    font-weight: 500;
}

/* Featured Skills */
.featured-skills {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    margin-bottom: 5rem;
}

.skill-card.featured {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(168, 85, 247, 0.05) 100%);
    padding: 3.5rem 2.5rem;
    border-radius: 24px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid rgba(99, 102, 241, 0.1);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    animation: floatCard 4s ease-in-out infinite;
    box-shadow: 0 10px 40px rgba(99, 102, 241, 0.08);
    background-color: #ffffff;
}

.skill-card.featured:nth-child(1) {
    animation-delay: 0s;
}

.skill-card.featured:nth-child(2) {
    animation-delay: 0.5s;
}

.skill-card.featured:nth-child(3) {
    animation-delay: 1s;
}

@keyframes floatCard {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

.skill-card.featured:hover {
    transform: translateY(-25px) scale(1.02);
    box-shadow: 0 25px 60px rgba(99, 102, 241, 0.15);
    border-color: rgba(99, 102, 241, 0.3);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.08) 0%, rgba(168, 85, 247, 0.08) 100%);
}

.skill-card.featured > * {
    position: relative;
    z-index: 1;
}

.skill-card.featured .skill-icon {
    width: 130px;
    height: 130px;
    margin: 0 auto 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05), rgba(168, 85, 247, 0.05));
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.1);
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    border: 2px solid rgba(99, 102, 241, 0.1);
}

.skill-card.featured .skill-icon::before {
    content: '';
    position: absolute;
    inset: -5px;
    background: linear-gradient(135deg, #6366f1, #a855f7);
    border-radius: 20px;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

.skill-card.featured:hover .skill-icon {
    transform: scale(1.1) rotate(5deg) translateY(-10px);
    box-shadow: 0 20px 50px rgba(99, 102, 241, 0.2);
    border-color: rgba(99, 102, 241, 0.3);
}

.skill-card.featured:hover .skill-icon::before {
    opacity: 0.15;
}

.skill-icon-img {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}

.skill-icon-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.skill-card.featured h3 {
    font-size: 1.6rem;
    margin-bottom: 1.2rem;
    background: linear-gradient(135deg, #6366f1, #a855f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

.skill-card.featured p {
    color: #64748b;
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 1.8rem;
}

.skill-tools {
    font-size: 0.9rem;
    color: #6366f1;
    font-weight: 600;
    padding: 0.8rem 1.5rem;
    background: rgba(99, 102, 241, 0.08);
    border-radius: 30px;
    display: inline-block;
    border: 1px solid rgba(99, 102, 241, 0.15);
}

/* Complementary Title */
.complementary-title {
    text-align: center;
    font-size: 2rem;
    color: #a855f7;
    margin-bottom: 3rem;
    font-weight: 700;
    position: relative;
    padding-bottom: 1rem;
}

.complementary-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: #a855f7;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(168, 85, 247, 0.3);
}

/* Skills Grid */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.skill-card {
    background: var(--light-bg);
    padding: 2.5rem 2rem;
    border-radius: 20px;
    text-align: center;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.skill-card::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: var(--gradient-primary);
    opacity: 0.1;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.skill-card:hover::before {
    width: 400px;
    height: 400px;
}

.skill-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    border-color: rgba(102, 126, 234, 0.4);
}

.skill-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: inline-block;
}

.skill-card:hover .skill-icon {
    transform: scale(1.3) rotate(15deg) translateY(-5px);
    filter: drop-shadow(0 10px 20px rgba(102, 126, 234, 0.3));
}

.skill-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.skill-card p {
    color: var(--text-gray);
    font-size: 1rem;
    line-height: 1.7;
}

/* Software & Herramientas */
.software {
    padding: 6rem 0;
    background: linear-gradient(180deg, #ffffff 0%, #f8f9ff 100%);
}

.software-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
}

.software-category {
    background: #ffffff;
    padding: 2.5rem;
    border-radius: 20px;
    border: 2px solid rgba(99, 102, 241, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 30px rgba(99, 102, 241, 0.06);
}

.software-category:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(99, 102, 241, 0.12);
    border-color: rgba(99, 102, 241, 0.25);
}

.category-title {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    margin-bottom: 2rem;
    font-size: 1.4rem;
    color: var(--primary-color);
    font-weight: 700;
}

.category-icon {
    width: 55px;
    height: 55px;
    background: var(--gradient-primary);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    color: var(--text-light);
    flex-shrink: 0;
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
}

.software-category:hover .category-icon {
    transform: rotate(360deg) scale(1.1);
}

.category-icon-img {
    background: transparent;
    padding: 0.6rem;
}

.category-icon-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.software-items {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.software-item {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    padding: 1rem;
    background: var(--light-bg);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.software-item:hover {
    transform: translateX(10px);
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(240, 147, 251, 0.05) 100%);
}

.software-logo,
.logo-img {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: #ffffff;
    border-radius: 10px;
    padding: 0.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.software-logo img,
.logo-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.software-info {
    flex: 1;
}

.software-info h4 {
    font-size: 1.05rem;
    color: var(--text-dark);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.skill-level {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.level-bar {
    flex: 1;
    height: 8px;
    background: rgba(226, 232, 240, 0.5);
    border-radius: 10px;
    overflow: hidden;
}

.level-fill {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 10px;
    transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.level-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: shimmer 2s infinite;
}

.level-text {
    font-size: 0.9rem;
    color: var(--text-gray);
    font-weight: 600;
    min-width: 90px;
    text-align: right;
}

/* Portfolio Section */
.portfolio {
    padding: 6rem 0;
    background: #ffffff;
}

.portfolio h2 {
    text-align: center;
    font-size: 3rem;
    color: #8b5cf6;
    margin-bottom: 0.5rem;
}

.portfolio h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 5px;
    background: #8b5cf6;
    margin: 1rem auto 0;
    border-radius: 10px;
}

.portfolio-intro {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-gray);
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.filter-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 4rem;
}

.filter-btn {
    padding: 0.8rem 2rem;
    border: 2px solid var(--border-color);
    background: #ffffff;
    color: var(--text-dark);
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 600;
    font-size: 0.95rem;
    position: relative;
    overflow: hidden;
}

.filter-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: var(--gradient-primary);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
    opacity: 0.1;
}

.filter-btn:hover::before {
    width: 300px;
    height: 300px;
}

.filter-btn:hover {
    border-color: var(--secondary-color);
    color: var(--secondary-color);
    transform: translateY(-3px);
}

.filter-btn.active {
    background: var(--gradient-primary);
    color: var(--text-light);
    border-color: transparent;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
}

.portfolio-item {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: #ffffff;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.portfolio-item:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    border-color: rgba(102, 126, 234, 0.3);
}

.portfolio-item img,
.portfolio-item video {
    width: 100%;
    height: 280px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.portfolio-item:hover img,
.portfolio-item:hover video {
    transform: scale(1.1);
}

.portfolio-overlay {
    padding: 1.8rem;
}

.portfolio-overlay h3 {
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-bottom: 0.6rem;
    font-weight: 700;
}

.portfolio-overlay p {
    font-size: 0.95rem;
    color: var(--text-gray);
    line-height: 1.6;
}

.program-badge {
    position: absolute;
    top: 1.2rem;
    right: 1.2rem;
    padding: 0.5rem 1.2rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 25px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary-color);
    border: 1px solid rgba(102, 126, 234, 0.2);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.portfolio-item:hover .program-badge {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3);
}

/* Outstanding Projects */
.outstanding-projects {
    padding: 6rem 0;
    background: var(--light-bg);
}

.section-title-main {
    text-align: center;
    font-size: 3rem;
    color: #8b5cf6;
    margin-bottom: 0.5rem;
}

.section-title-main::after {
    content: '';
    display: block;
    width: 80px;
    height: 5px;
    background: #8b5cf6;
    margin: 1rem auto 3rem;
    border-radius: 10px;
}

.project-category-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 4rem;
    flex-wrap: wrap;
}

.category-tab {
    padding: 0.9rem 2.5rem;
    background: #ffffff;
    border: 2px solid var(--border-color);
    border-radius: 30px;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.category-tab::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: var(--gradient-primary);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
    opacity: 0.1;
}

.category-tab:hover::before {
    width: 300px;
    height: 300px;
}

.category-tab:hover {
    border-color: var(--secondary-color);
    color: var(--secondary-color);
    transform: translateY(-3px);
}

.category-tab.active {
    background: var(--gradient-primary);
    color: var(--text-light);
    border-color: transparent;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.outstanding-project-item {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 4rem;
    margin-bottom: 5rem;
    background: #ffffff;
    border-radius: 24px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    border: 1px solid var(--border-color);
}

.outstanding-project-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.12);
    border-color: rgba(102, 126, 234, 0.3);
}

.outstanding-project-item:nth-child(even) {
    grid-template-columns: 1.3fr 1fr;
}

.outstanding-project-item:nth-child(even) .project-preview {
    order: 2;
}

.outstanding-project-item:nth-child(even) .project-details {
    order: 1;
}

.project-preview {
    background: var(--light-bg);
    padding: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-preview img,
.project-preview video {
    width: 100%;
    max-width: 550px;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    transition: transform 0.4s ease;
}

.outstanding-project-item:hover .project-preview img,
.outstanding-project-item:hover .project-preview video {
    transform: scale(1.05);
}

.project-details {
    padding: 3.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.project-details h3 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1.2rem;
    font-weight: 700;
}

.project-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-gray);
    margin-bottom: 1.8rem;
}

.project-features {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
}

.project-features li {
    padding: 0.8rem 0;
    padding-left: 2rem;
    position: relative;
    color: var(--text-dark);
    font-size: 1rem;
    line-height: 1.6;
}

.project-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: 700;
    font-size: 1.3rem;
}

.project-tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.tech-tag {
    padding: 0.6rem 1.3rem;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.08) 0%, rgba(240, 147, 251, 0.08) 100%);
    color: var(--secondary-color);
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 600;
    border: 1px solid rgba(102, 126, 234, 0.2);
    transition: all 0.3s ease;
}

.tech-tag:hover {
    background: var(--gradient-primary);
    color: var(--text-light);
    border-color: transparent;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3);
}

/* Contact Section */
.contact {
    padding: 6rem 0;
    background: #ffffff;
}

.contact h2 {
    text-align: center;
    font-size: 3rem;
    color: #06b6d4;
    margin-bottom: 0.5rem;
}

.contact h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 5px;
    background: #06b6d4;
    margin: 1rem auto 3rem;
    border-radius: 10px;
}

.contact-intro {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-gray);
    margin-bottom: 3rem;
}

.contact-content {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.2rem;
    background: #ffffff;
    border-radius: 12px;
    border: 2px solid var(--border-color);
    transition: all 0.3s ease;
}

.info-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    border-color: rgba(99, 102, 241, 0.3);
}

.info-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.info-item h4 {
    font-size: 0.9rem;
    color: var(--text-gray);
    margin-bottom: 0.3rem;
    font-weight: 600;
}

.info-item p,
.info-item a {
    font-size: 1rem;
    color: var(--text-dark);
    font-weight: 500;
    text-decoration: none;
}

.info-item a:hover {
    color: #667eea;
}

.contact-form {
    background: var(--light-bg);
    padding: 3rem;
    border-radius: 24px;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.06);
}

.form-group {
    margin-bottom: 1.8rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.6rem;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 1rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1.1rem;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #ffffff;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 160px;
}

.contact-form button {
    width: 100%;
    padding: 1.2rem;
    background: var(--gradient-primary);
    color: var(--text-light);
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1.05rem;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden;
}

.contact-form button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.contact-form button:hover::before {
    width: 400px;
    height: 400px;
}

.contact-form button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.4);
}

.form-status {
    margin-top: 1.2rem;
    text-align: center;
    font-weight: 600;
    display: none;
    padding: 1rem;
    border-radius: 12px;
}

/* Footer */
footer {
    background: linear-gradient(135deg, #1a1a2e 0%, #0f0f1e 100%);
    color: var(--text-light);
    padding: 2.5rem 0;
    text-align: center;
}

footer p {
    margin: 0;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 400;
}



.social-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: #4fd1c5;
    border: none;
    border-radius: 12px;
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(79, 209, 197, 0.3);
}

.social-link:hover {
    background: #38b2ac;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(79, 209, 197, 0.4);
}

.social-icon {
    font-size: 1.3rem;
}



/* Scroll to Top Button */
#scrollToTop {
    position: fixed;
    bottom: 2.5rem;
    right: 2.5rem;
    width: 55px;
    height: 55px;
    background: var(--gradient-primary);
    color: var(--text-light);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
    z-index: 999;
}

#scrollToTop.show {
    opacity: 1;
    visibility: visible;
}

#scrollToTop:hover {
    transform: translateY(-8px) rotate(360deg);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.5);
}

/* Modals */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.modal.active {
    display: flex;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    background: #ffffff;
    padding: 3rem;
    border-radius: 24px;
    max-width: 950px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.4s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 45px;
    height: 45px;
    background: var(--light-bg);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: var(--text-dark);
}

.modal-close:hover {
    background: var(--gradient-primary);
    color: var(--text-light);
    transform: rotate(90deg);
}

.modal-body img,
.modal-body video {
    width: 100%;
    max-width: 850px;
    border-radius: 16px;
    margin-bottom: 2rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.modal-title {
    font-size: 2.2rem;
    color: var(--primary-color);
    margin-bottom: 1.2rem;
    font-weight: 700;
}

.modal-description {
    font-size: 1.15rem;
    color: var(--text-gray);
    line-height: 1.9;
}

/* Web Preview Frame */
.web-preview-frame {
    width: 100%;
    max-width: 550px;
    height: 650px;
    border-radius: 16px;
    overflow-x: auto;
    overflow-y: hidden;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.web-preview-frame iframe {
    width: 1200px;
    height: 650px;
    border: none;
}

/* Hidden sections */
#portafolio-original {
    display: none;
}

.preview-header {
    display: none;
}

/* Responsive - Mobile Menu */
@media (max-width: 768px) {
    body {
        min-width: auto;
    }
    
    .hamburger {
        display: flex;
        flex-direction: column;
        cursor: pointer;
        padding: 5px;
        z-index: 1001;
    }
    
    .hamburger span {
        width: 25px;
        height: 3px;
        background: var(--primary-color);
        margin: 3px 0;
        transition: 0.3s;
        border-radius: 2px;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        width: 100%;
        text-align: center;
        transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
        padding: 2rem 0;
        gap: 0;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        margin: 1rem 0;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        gap: 3rem;
        padding: 0 2rem;
    }
    
    .hero-content {
        text-align: center;
    }
    
    .hero-name {
        font-size: 2.8rem;
    }
    
    .description {
        max-width: 100%;
    }
    
    .hero-stats {
        flex-direction: row;
        gap: 1rem;
        justify-content: center;
    }
    
    .stat-box {
        padding: 1.2rem 1.5rem;
    }
    
    .stat-number {
        font-size: 2.2rem;
    }
    
    .stat-label {
        font-size: 0.75rem;
    }
    
    .hero-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .butterfly-container {
        max-width: 350px;
        height: 350px;
        margin: 0 auto;
    }
    
    .butterfly-circle {
        width: 250px;
        height: 250px;
    }
    
    .butterfly-image {
        width: 280px;
        height: 280px;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .skills-languages-container {
        grid-template-columns: 1fr;
    }
    
    .soft-skills-list {
        grid-template-columns: 1fr;
    }
    
    .featured-skills {
        grid-template-columns: 1fr;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .outstanding-project-item,
    .outstanding-project-item:nth-child(even) {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .outstanding-project-item:nth-child(even) .project-preview {
        order: 1;
    }
    
    .outstanding-project-item:nth-child(even) .project-details {
        order: 2;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--light-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-primary);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gradient-accent);
}

/* Selection */
::selection {
    background: rgba(102, 126, 234, 0.3);
    color: var(--primary-color);
}
