/* ============================================
   PORTAFOLIO IMAR DANIEL VILCA CRUZ
   Ultra Modern Premium Design 2025
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&family=Plus+Jakarta+Sans:wght@200;300;400;500;600;700;800&display=swap');

:root {
    /* Premium Color Palette */
    --primary: #00d4ff;
    --primary-dark: #0099cc;
    --primary-light: #33ddff;
    --secondary: #0ea5e9;
    --accent: #22d3ee;
    --purple: #a855f7;

    /* Gradients Premium */
    --gradient-primary: linear-gradient(135deg, #00d4ff 0%, #0ea5e9 50%, #a855f7 100%);
    --gradient-mesh: radial-gradient(at 40% 20%, hsla(189, 100%, 56%, 0.15) 0px, transparent 50%),
        radial-gradient(at 80% 0%, hsla(189, 100%, 56%, 0.1) 0px, transparent 50%),
        radial-gradient(at 0% 50%, hsla(189, 100%, 56%, 0.1) 0px, transparent 50%),
        radial-gradient(at 80% 50%, hsla(189, 100%, 56%, 0.15) 0px, transparent 50%);

    /* Backgrounds */
    --bg-primary: #0a0e17;
    --bg-secondary: #0f1419;
    --bg-card: rgba(15, 20, 25, 0.6);

    /* Text */
    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;

    /* Effects */
    --shadow-glow: 0 0 60px rgba(0, 212, 255, 0.4);
    --shadow-xl: 0 25px 50px -12px rgba(0, 0, 0, 0.5);

    /* Glass Effects */
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(0, 212, 255, 0.15);

    /* Typography */
    --font-display: 'Space Grotesk', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    position: relative;
}

/* Animated Mesh Background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-mesh);
    z-index: -2;
    animation: meshMove 20s ease-in-out infinite;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(0, 212, 255, 0.02) 1.5px, transparent 1.5px),
        linear-gradient(90deg, rgba(0, 212, 255, 0.02) 1.5px, transparent 1.5px);
    background-size: 60px 60px;
    z-index: -1;
    animation: gridMove 40s linear infinite;
}

@keyframes meshMove {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.8;
        transform: scale(1.1);
    }
}

@keyframes gridMove {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(60px, 60px);
    }
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(3rem, 8vw, 6rem);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 6s ease infinite;
    background-size: 200% 200%;
}

h2 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    color: var(--text-primary);
}

@keyframes gradientShift {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

section {
    padding: 10rem 0;
    position: relative;
}

/* Premium Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: rgba(10, 14, 23, 0.8);
    backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--glass-border);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

header.scrolled {
    background: rgba(10, 14, 23, 0.95);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
}

.logo {
    font-size: 2rem;
    font-weight: 800;
    font-family: var(--font-display);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.05em;
}

.nav-links {
    display: flex;
    gap: 3rem;
    list-style: none;
    align-items: center;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    position: relative;
    transition: all 0.3s;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.nav-links a::before {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-links a:hover::before {
    width: 100%;
}

/* Language Toggle Premium */
.language-toggle {
    display: flex;
    gap: 0.5rem;
    background: var(--glass-bg);
    padding: 0.4rem;
    border-radius: 50px;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
}

.lang-btn {
    padding: 0.6rem 1.2rem;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 700;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s;
    font-family: var(--font-body);
}

.lang-btn.active {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.4);
}

.menu-toggle {
    display: none;
}

/* Ultra Premium Hero Section */
#hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    position: relative;
    overflow: hidden;
}

#hero::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.15) 0%, transparent 70%);
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.5;
    }

    50% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 0.8;
    }
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 6rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-image {
    position: relative;
}

.hero-image img {
    width: 100%;
    max-width: 450px;
    border-radius: 30px;
    box-shadow:
        0 0 80px rgba(0, 212, 255, 0.3),
        0 30px 60px rgba(0, 0, 0, 0.4);
    border: 3px solid rgba(0, 212, 255, 0.3);
    position: relative;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-20px);
    }
}

.hero-image::before {
    content: '';
    position: absolute;
    inset: -20px;
    background: var(--gradient-primary);
    border-radius: 30px;
    opacity: 0.2;
    filter: blur(40px);
    z-index: -1;
    animation: pulse 3s ease-in-out infinite;
}

.hero-text {
    text-align: left;
}

.hero-greeting {
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 1rem;
    font-weight: 700;
    animation: slideInLeft 0.6s ease;
    letter-spacing: 0.05em;
}

.hero-title {
    margin-bottom: 2rem;
    animation: slideInLeft 0.6s ease 0.2s both;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: clamp(1.5rem, 3vw, 2rem);
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    animation: slideInLeft 0.6s ease 0.4s both;
    font-weight: 600;
}

.hero-location {
    color: var(--text-muted);
    font-size: 1.2rem;
    margin-bottom: 3rem;
    animation: slideInLeft 0.6s ease 0.6s both;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.hero-location i {
    color: var(--primary);
}

.hero-cta {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    animation: slideInLeft 0.6s ease 0.8s both;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Premium Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1.2rem 2.5rem;
    font-size: 1.05rem;
    font-weight: 700;
    border-radius: 50px;
    cursor: pointer;
    border: none;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    font-family: var(--font-body);
    letter-spacing: 0.05em;
}

.btn::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:hover::before {
    width: 400px;
    height: 400px;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 10px 40px rgba(0, 212, 255, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 20px 60px rgba(0, 212, 255, 0.6);
}

.btn-secondary {
    background: var(--glass-bg);
    color: var(--text-primary);
    border: 2px solid var(--glass-border);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    border-color: var(--primary);
    background: rgba(0, 212, 255, 0.1);
    transform: translateY(-3px);
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 6rem;
}

.section-title {
    position: relative;
    display: inline-block;
    margin-bottom: 2rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.section-subtitle {
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto;
    font-size: 1.2rem;
    font-weight: 500;
}

/* Ultra Premium Cards */
.card {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.03) 0%, rgba(168, 85, 247, 0.02) 100%);
    backdrop-filter: blur(30px) saturate(180%);
    border: 1px solid rgba(0, 212, 255, 0.15);
    border-radius: 30px;
    padding: 3rem;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.1), transparent);
    transition: left 0.7s;
}

.card:hover::before {
    left: 100%;
}

.card:hover {
    transform: translateY(-15px) scale(1.02);
    border-color: var(--primary);
    box-shadow:
        0 30px 80px rgba(0, 212, 255, 0.3),
        0 0 80px rgba(0, 212, 255, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Grid */
.grid {
    display: grid;
    gap: 3rem;
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

/* Reveal Animations */
.reveal {
    opacity: 0;
    transform: translateY(60px) scale(0.95);
    transition: all 1s cubic-bezier(0.4, 0, 0.2, 1);
    filter: blur(10px);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
}

/* Responsive */
@media (max-width: 768px) {
    section {
        padding: 6rem 0;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }

    .hero-text {
        text-align: center;
    }

    .hero-image {
        order: -1;
        display: flex;
        justify-content: center;
    }

    .hero-image img {
        max-width: 300px;
    }

    .hero-cta {
        justify-content: center;
    }

    .hero-location {
        justify-content: center;
    }

    .nav-links {
        position: fixed;
        top: 80px;
        left: -100%;
        flex-direction: column;
        background: rgba(10, 14, 23, 0.98);
        backdrop-filter: blur(20px);
        width: 100%;
        padding: 3rem 2rem;
        border-top: 1px solid var(--glass-border);
        transition: left 0.4s;
        gap: 2rem;
    }

    .nav-links.active {
        left: 0;
    }

    .menu-toggle {
        display: flex;
        flex-direction: column;
        gap: 6px;
        cursor: pointer;
    }

    .menu-toggle span {
        width: 28px;
        height: 3px;
        background: var(--primary);
        border-radius: 3px;
        transition: all 0.3s;
    }

    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(9px, 9px);
    }

    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(8px, -8px);
    }

    .grid-2,
    .grid-3 {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   EXPERIENCE, SKILLS, EDUCATION, CONTACT, FOOTER
   ============================================ */

.experience-item {
    position: relative;
    padding-left: 4rem;
    padding-bottom: 4rem;
    border-left: 2px solid rgba(0, 212, 255, 0.3);
    margin-left: 2rem;
}

.experience-item::before {
    content: '';
    position: absolute;
    left: -12px;
    top: 0;
    width: 22px;
    height: 22px;
    background: var(--gradient-primary);
    border-radius: 50%;
    box-shadow: 0 0 0 6px var(--bg-primary), 0 0 30px rgba(0, 212, 255, 0.6);
}

.experience-title {
    font-size: 1.8rem;
    margin-bottom: 0.8rem;
}

.experience-company {
    color: var(--primary);
    font-size: 1.2rem;
}

.experience-date {
    display: inline-flex;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.15) 0%, rgba(168, 85, 247, 0.1) 100%);
    padding: 0.6rem 1.5rem;
    border-radius: 30px;
    font-weight: 600;
    color: var(--primary-light);
    border: 1px solid rgba(0, 212, 255, 0.25);
}

.experience-item ul {
    list-style: none;
    margin-top: 1.5rem;
}

.experience-item li {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    padding-left: 2rem;
    position: relative;
}

.experience-item li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-size: 1.3rem;
}

.skills-category {
    margin-bottom: 4rem;
}

.skills-category h3 {
    color: var(--primary);
    font-size: 1.8rem;
    margin-bottom: 2.5rem;
}

.skill-tag {
    display: inline-block;
    padding: 0.8rem 1.6rem;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.08) 0%, rgba(168, 85, 247, 0.05) 100%);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 30px;
    margin: 0.5rem;
    color: var(--text-secondary);
    font-weight: 600;
    transition: all 0.4s;
}

.skill-tag:hover {
    border-color: var(--primary);
    color: var(--primary-light);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.3);
}

.competency-item {
    margin-bottom: 2rem;
}

.competency-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.8rem;
}

.competency-bar {
    height: 10px;
    background: rgba(0, 212, 255, 0.08);
    border-radius: 10px;
    overflow: hidden;
}

.competency-fill {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 10px;
    transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
    width: 0;
    box-shadow: 0 0 15px rgba(0, 212, 255, 0.4);
}

.cert-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
    padding: 2rem;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.04) 0%, transparent 100%);
    border-radius: 20px;
    border-left: 4px solid var(--primary);
    transition: all 0.3s;
}

.cert-item:hover {
    transform: translateX(10px);
}

.cert-icon {
    font-size: 3rem;
}

.cert-info h4 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.cert-platform {
    color: var(--primary-light);
}

.cert-date {
    color: var(--text-muted);
}

.mb-2 {
    margin-bottom: 2rem;
}

.contact-card {
    text-align: center;
    padding: 2rem 1.5rem;
}

.contact-card i {
    font-size: 2.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
}

.contact-card p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

footer {
    background: rgba(10, 14, 23, 0.5);
    padding: 4rem 0 2rem;
    border-top: 1px solid rgba(0, 212, 255, 0.15);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
}

.social-links {
    display: flex;
    gap: 1.5rem;
}

.social-link {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1) 0%, rgba(168, 85, 247, 0.08) 100%);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.3rem;
    transition: all 0.4s;
    text-decoration: none;
}

.social-link:hover {
    background: var(--gradient-primary);
    color: white;
    transform: translateY(-5px) rotate(360deg);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.4);
}
/* Contact Section - Grid Horizontal */
#contact .grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Contact Grid - AHORA SÍ FUNCIONAL */
.contact-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important;
    gap: 2rem !important;
}
