:root {
    --bg-dark: #120e15;
    /* slightly warmer dark background for pinks */
    --neon-purple: #ff99c8;
    /* Soft Pastel Pink */
    --neon-pink: #ffc4d9;
    /* Lighter Pastel Pink */
    --neon-blue: #d0f4de;
    /* Soft pastel mint/cyan accent */
    --text-light: #fff0f5;
    /* Lavender blush white */
    --glass-bg: rgba(255, 182, 193, 0.05);
    --glass-border: rgba(255, 182, 193, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', sans-serif;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-light);
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

/* Security / Aesthetic Classes */
.noselect {
    -webkit-touch-callout: none;
    /* iOS Safari */
    -webkit-user-select: none;
    /* Safari */
    -khtml-user-select: none;
    /* Konqueror HTML */
    -moz-user-select: none;
    /* Old versions of Firefox */
    -ms-user-select: none;
    /* Internet Explorer/Edge */
    user-select: none;
    /* Non-prefixed version, currently supported by Chrome, Edge, Opera and Firefox */
}

img.protect-img {
    pointer-events: none;
    /* Disables basic interactions on images natively where possible, CSS override */
    -webkit-user-drag: none;
}

/* Image Shield Container */
.img-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.invisible-shield {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 5;
    /* Sits above the image to catch right clicks */
    background: transparent;
}

/* Glassmorphism Classes */
.glass-header,
.glass-card,
.glass-footer {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

/* Header & Nav */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 2px;
}

.logo span {
    color: var(--neon-pink);
    text-shadow: 0 0 10px var(--neon-pink);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

.nav-links a:hover {
    color: var(--neon-purple);
    text-shadow: 0 0 8px var(--neon-purple);
}

/* Main Sections */
main {
    padding-top: 80px;
    /* Offset for fixed header */
}

/* View Sections for SPA */
.view-container {
    width: 100%;
    min-height: calc(100vh - 80px);
    /* Fill remaining space after header */
    display: flex;
    flex-direction: column;
    position: relative;
}

.view-section {
    display: none;
    opacity: 0;
    width: 100%;
    animation: fadeView 0.5s forwards ease-in-out;
}

.view-section.active-view {
    display: flex;
    flex-direction: column;
}

@keyframes fadeView {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hero Section */
.hero-section {
    min-height: 80vh;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
}

.hero-content {
    padding: 3rem;
    border-radius: 20px;
    max-width: 600px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    position: relative;
    overflow: hidden;
}

.hero-content::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 153, 200, 0.15) 0%, rgba(18, 14, 21, 0) 70%);
    pointer-events: none;
    animation: rotate 20s linear infinite;
}

.profile-img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--neon-purple);
    box-shadow: 0 0 20px var(--neon-purple);
}

/* Text Glitch Effect */
.glitch-text {
    font-size: 3rem;
    font-weight: 800;
    text-transform: uppercase;
    position: relative;
    color: white;
}

.glitch-text::before,
.glitch-text::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitch-text::before {
    left: 2px;
    text-shadow: -2px 0 var(--neon-pink);
    animation: glitch-anim-1 2s infinite linear alternate-reverse;
}

.glitch-text::after {
    left: -2px;
    text-shadow: -2px 0 var(--neon-blue);
    animation: glitch-anim-2 3s infinite linear alternate-reverse;
}

@keyframes glitch-anim-1 {
    0% {
        clip-path: inset(20% 0 80% 0);
    }

    20% {
        clip-path: inset(60% 0 10% 0);
    }

    40% {
        clip-path: inset(40% 0 50% 0);
    }

    60% {
        clip-path: inset(80% 0 5% 0);
    }

    80% {
        clip-path: inset(10% 0 70% 0);
    }

    100% {
        clip-path: inset(30% 0 20% 0);
    }
}

@keyframes glitch-anim-2 {
    0% {
        clip-path: inset(10% 0 60% 0);
    }

    20% {
        clip-path: inset(30% 0 20% 0);
    }

    40% {
        clip-path: inset(70% 0 10% 0);
    }

    60% {
        clip-path: inset(20% 0 50% 0);
    }

    80% {
        clip-path: inset(50% 0 30% 0);
    }

    100% {
        clip-path: inset(5% 0 80% 0);
    }
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    margin-top: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.cta-button {
    padding: 1rem 2rem;
    background: linear-gradient(45deg, #ff9ca8, #ffb3c6);
    border: none;
    border-radius: 30px;
    color: #120e15;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(255, 156, 168, 0.4);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
    cursor: pointer;
    display: inline-block;
}

.cta-button:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 8px 25px rgba(255, 156, 168, 0.6);
}

.outline-btn {
    background: transparent;
    border: 2px solid var(--neon-pink);
    color: var(--neon-pink);
    box-shadow: none;
}

.outline-btn:hover {
    background: rgba(255, 196, 217, 0.1);
    color: white;
}

/* Portfolio Section */
.portfolio-section {
    padding: 4rem 5%;
    text-align: center;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    background: -webkit-linear-gradient(var(--text-light), var(--neon-purple));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    background: rgba(255, 255, 255, 0.05);
    /* Ligeramente visible para que no parezca vacío */
    border: 1px solid var(--neon-pink);
    color: var(--text-light);
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--neon-pink);
    color: var(--bg-dark);
    /* Color oscuro para mayor contraste y legibilidad */
    box-shadow: 0 4px 15px rgba(255, 196, 217, 0.4);
    /* Resplandor más suave y sutil */
    transform: translateY(-2px);
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 2rem;
}

.gallery-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    aspect-ratio: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
    cursor: pointer;
}

.gallery-item:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 15px 30px rgba(255, 153, 200, 0.3);
    z-index: 10;
}

.gallery-item img,
.placeholder-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: filter 0.3s ease;
}

/* Make images slightly darker initially, brighten on hover */
.gallery-item img {
    align-items: center;
}

.placeholder-img.badge-img {
    background: linear-gradient(135deg, #111, #222);
}

.placeholder-img.illus-img {
    background: linear-gradient(135deg, #222, #333);
}

.placeholder-img.png-img {
    background: linear-gradient(135deg, #331, #442);
}

.placeholder-img.overlay-img {
    background: linear-gradient(135deg, #122, #233);
}

.placeholder-img.panel-img {
    background: linear-gradient(135deg, #212, #323);
}

.item-overlay {
    position: absolute;
    bottom: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(255, 153, 200, 0.9), transparent);
    display: flex;
    justify-content: center;
    align-items: flex-end;
    padding-bottom: 1rem;
    transition: bottom 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.gallery-item:hover .item-overlay {
    bottom: 0;
}

.item-overlay span {
    color: white;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* About Section */
.about-section {
    padding: 6rem 5%;
    align-items: center;
}

.about-content {
    max-width: 800px;
    padding: 3rem;
    border-radius: 20px;
    text-align: left;
}

.about-text h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--neon-pink);
}

.about-text p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    color: #ccc;
}

.skills-list {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.skills-list li {
    background: rgba(255, 153, 200, 0.1);
    border: 1px solid var(--neon-purple);
    padding: 0.8rem 1.2rem;
    border-radius: 10px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease, background 0.3s ease;
}

.skills-list li:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 8px 25px rgba(255, 153, 200, 0.4);
    background: rgba(255, 153, 200, 0.2);
}

/* Contact Section */
.contact-section {
    padding: 6rem 5%;
    align-items: center;
}

.contact-container {
    max-width: 600px;
    width: 100%;
    padding: 3rem;
    border-radius: 20px;
}

.contact-desc {
    text-align: center;
    margin-bottom: 2.5rem;
    font-size: 1.1rem;
    color: #ccc;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 600;
    color: var(--text-light);
    letter-spacing: 0.5px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    color: white;
    font-family: inherit;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--neon-pink);
    box-shadow: 0 0 10px rgba(255, 196, 217, 0.3);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.submit-btn {
    margin-top: 1rem;
    width: 100%;
}

/* Interactive Animations */
.interactive-float {
    animation: floatAnim 6s ease-in-out infinite;
}

@keyframes floatAnim {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

.vgen-banner {
    text-align: center;
    margin-bottom: 1rem;
}

.vgen-huge-btn {
    font-size: 1.2rem;
    padding: 1.2rem 3rem;
    display: inline-block;
}

/* Footer */
footer {
    padding: 2rem;
    text-align: center;
    margin-top: 4rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.socials {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.socials a {
    color: var(--neon-purple);
    text-decoration: none;
    font-weight: 600;
    transition: text-shadow 0.3s ease;
}

.socials a:hover {
    text-shadow: 0 0 10px var(--neon-purple);
}

/* Small visual background flare */
#stars-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    background-image:
        radial-gradient(1px 1px at 10% 20%, white, rgba(0, 0, 0, 0)),
        radial-gradient(1px 1px at 30% 60%, var(--neon-purple), rgba(0, 0, 0, 0)),
        radial-gradient(2px 2px at 80% 40%, white, rgba(0, 0, 0, 0)),
        radial-gradient(1px 1px at 60% 90%, var(--neon-pink), rgba(0, 0, 0, 0));
    background-size: 200px 200px;
    animation: stars 100s linear infinite;
}

@keyframes stars {
    0% {
        transform: translateY(0);
    }

    100% {
        transform: translateY(-200px);
    }
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 1001;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-light);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
}

/* Responsive */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        background: rgba(18, 14, 21, 0.97);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2.5rem;
        transform: translateX(100%);
        transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        z-index: 999;
    }

    .nav-links.open {
        transform: translateX(0);
    }

    .nav-links a {
        font-size: 1.5rem;
    }

    .hero-content {
        margin: 0 1rem;
    }

    .glitch-text {
        font-size: 1.8rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
        gap: 1rem;
    }

    .about-content,
    .contact-container {
        margin: 0 1rem;
        padding: 2rem;
    }

    .filters {
        gap: 0.5rem;
    }

    .filter-btn {
        padding: 0.4rem 1rem;
        font-size: 0.85rem;
    }
}