:root {
    --primary-color: #000000;
    --background-color: #ffffff;
    --accent-color: #000000;
    --secondary-bg: #ffffff;
    --text-color: #333333;
    --text-color-light: #555555;
    --border-color: #888888;
    --font-family: "Outfit", sans-serif;
    --bg-alt: #eeeeee;
}

html[data-theme="dark"] {
    --primary-color: #ffffff;
    --background-color: #0f0f0f;
    --accent-color: #ffffff;
    --secondary-bg: #0f0f0f;
    --text-color: #e0e0e0;
    --text-color-light: #a0a0a0;
    --border-color: #555555;
    --bg-alt: #1a1a1a;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: var(--font-family);
    color: var(--primary-color);
    background-color: var(--background-color);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Main container */
.main-container {
    width: 100%;
    min-height: 100vh;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    transition: background-color 0.3s ease;
}

html[data-theme="dark"] .navbar {
    background-color: rgba(15, 15, 15, 0.9);
}

.nav-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.5rem 2rem;
}

.logo-link {
    text-decoration: none;
}

.nav-logo {
    height: 40px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

.nav-item a {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 500;
    font-size: 1rem;
    transition: opacity 0.2s;
}

.nav-item a:hover {
    opacity: 0.7;
}

/* Mobile menu */
.mobile-menu-container {
    display: none;
    position: relative;
}

/* Dark Mode Toggle */
.theme-toggle {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    width: 60px;
    height: 30px;
    background-color: var(--bg-alt);
    border-radius: 30px;
    padding: 5px;
    display: flex;
    align-items: center;
    cursor: pointer;
    border: none;
    outline: none;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    z-index: 999;
    overflow: hidden;
    transition: all 0.3s ease;
}

.theme-toggle:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

/* Hide the icons but keep the switch */
.theme-toggle .moon-icon,
.theme-toggle .sun-icon {
    display: none;
}

.toggle-thumb {
    position: absolute;
    top: 5px;
    left: 5px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: var(--background-color);
    transition: transform 0.3s ease;
    z-index: 1;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

html[data-theme="dark"] .toggle-thumb {
    transform: translateX(30px);
}

/* Mobile menu */
.mobile-menu-button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s ease;
}

.mobile-menu-button:hover {
    opacity: 0.7;
}

.mobile-menu-button svg {
    color: var(--primary-color);
    width: 24px;
    height: 24px;
}

.mobile-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background-color: var(--background-color);
    padding: 1.5rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    border: 2px solid var(--border-color);
    min-width: 220px;
    z-index: 150;
    margin-top: 10px;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.mobile-menu.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.mobile-nav-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-nav-links .nav-item {
    margin-bottom: 1rem;
}

.mobile-nav-links .nav-item a {
    display: block;
    color: var(--text-color);
    font-size: 1rem;
    text-decoration: none;
    padding: 8px 0;
    transition: color 0.2s ease;
}

.mobile-nav-links .nav-item a:hover {
    color: var(--primary-color);
}

.mobile-theme-label {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-color);
    margin-right: 10px;
}

/* Mobile theme toggle styles */
.mobile-theme-toggle-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.mobile-theme-toggle {
    position: relative;
    width: 50px;
    height: 26px;
    border-radius: 13px;
    background-color: var(--bg-alt);
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-color);
    appearance: none;
    -webkit-appearance: none;
    outline: none;
}

.mobile-theme-toggle:active {
    transform: scale(0.97);
}

.mobile-toggle-thumb {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: var(--primary-color);
    transition: transform 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

html[data-theme="dark"] .mobile-toggle-thumb {
    transform: translateX(24px);
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    margin-top: -50px;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
    max-width: 1200px;
}

.logo-title {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 2rem;
}

.hero-logo {
    height: 240px;
    width: auto;
    margin: 0;
}

.hero-heading {
    font-size: 8rem;
    font-weight: 700;
    margin: 0;
    line-height: 1;
}

/* Scroll indicator */
.scroll-container {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
}

.scroll-indicator {
    width: 30px;
    height: 50px;
    border: 3px solid var(--primary-color);
    border-radius: 25px;
    position: relative;
}

.scroll-indicator::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    width: 6px;
    height: 6px;
    background-color: var(--primary-color);
    border-radius: 50%;
    transform: translateX(-50%);
    animation: scrollAnimation 2s infinite;
}

@keyframes scrollAnimation {
    0% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
}

/* Mobile styles for hero section */
@media (max-width: 768px) {
    .hero-section {
        padding: 0;
        height: 100vh;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        margin-top: 18vh;
    }

    .logo-title {
        flex-direction: column;
        gap: 8vh;
    }

    .hero-logo {
        height: min(320px, 70vw);
        max-width: min(320px, 70vw);
        object-fit: contain;
        margin: 0 auto;
    }

    .hero-heading {
        font-size: clamp(6rem, 24vw, 9rem);
        margin: 0;
        line-height: 1;
        letter-spacing: -2px;
    }
    
    .scroll-container {
        margin-bottom: 15vh;
        align-self: center;
    }

    /* Mobile-specific style for the Explore button */
    .boton-elegante {
        font-size: clamp(1.2rem, 6vw, 1.5rem);
        padding: clamp(14px, 5vw, 20px) clamp(35px, 12vw, 50px);
        border-width: 2px;
        box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25);
    }
    
    /* Ensure the nav doesn't take too much space on mobile */
    .nav-content {
        padding: 1rem;
    }
    
    /* Adjust navbar to take less space */
    .navbar {
        height: auto;
    }
}

/* Section structure */
.section-wrapper {
    width: 100%;
}

#about-section, #contact-section {
    background-color: var(--secondary-bg);
}

.section-anchor {
    display: block;
    height: 80px;
    margin-top: -80px;
    visibility: hidden;
}

/* Content Sections */
.content-section {
    max-width: 100%;
    width: 95%;
    margin: 0 auto;
    padding: 2rem 1rem;
    position: relative;
    z-index: 1;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.content-section.visible {
    opacity: 1;
    transform: translateY(0);
}

.section-title {
    font-size: 3.5rem;
    margin-bottom: 2rem;
    font-weight: 700;
    line-height: 1.1;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background-color: var(--primary-color);
}

.section-label {
    font-size: 1rem;
    font-weight: 500;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    letter-spacing: 0.05em;
}

/* About Section */
.about-content {
    max-width: 900px;
}

.about-text {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-color);
    margin-bottom: 1.5rem;
    transition: color 0.3s ease;
}

.about-text:first-of-type {
    font-size: 1.3rem;
    font-weight: 500;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

.section-intro {
    font-size: 1.2rem;
    line-height: 1.6;
    color: #555;
    max-width: 800px;
    margin-bottom: 2rem;
}

/* Works Section */
.works-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.work-item {
    text-decoration: none;
    color: inherit;
    display: block;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.work-item:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.work-item:hover .work-description {
    color: #333;
}

.work-item:hover .tag {
    color: var(--primary-color);
}

.work-content {
    background-color: var(--background-color);
    padding: 1.5rem;
    height: 100%;
    transition: background-color 0.3s ease, border-color 0.3s ease;
    border-top: 4px solid transparent;
}

.work-item:hover .work-content {
    border-top-color: var(--primary-color);
}

.work-title {
    font-size: 1.75rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.work-description {
    color: var(--text-color);
    margin-bottom: 1.5rem;
    line-height: 1.5;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.work-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* Regular tags in work grid */
.tag {
    background-color: rgba(0, 0, 0, 0.08);
    color: var(--text-color);
    font-size: 0.9rem;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-weight: 500;
    transition: all 0.3s ease;
    margin-right: 0.4rem;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

html[data-theme="dark"] .tag {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--text-color);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.work-item:hover .tag {
    color: var(--primary-color);
}

/* Contact Section */
.contact-intro {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-color);
    max-width: 800px;
    margin-bottom: 3rem;
    transition: color 0.3s ease;
}

.contact-content {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 800px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    width: 100%;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    font-family: var(--font-family);
    font-size: 1rem;
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    transition: all 0.3s ease;
    background-color: var(--background-color);
    color: var(--primary-color);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
}

.contact-form textarea {
    resize: vertical;
    min-height: 150px;
}

.submit-button {
    background-color: #ffffff;
    color: #000000;
    font-family: var(--font-family);
    font-size: 1rem;
    font-weight: 500;
    padding: 1rem 1.5rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    width: 100%;
}

html[data-theme="dark"] .submit-button {
    background-color: #1a1a1a;
    color: #ffffff;
    border: 2px solid var(--border-color);
}

.submit-button:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.submit-button:active {
    transform: translateY(0);
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 500;
    transition: transform 0.2s ease, color 0.2s ease;
    padding: 0.5rem 0;
}

.social-link:hover {
    color: var(--primary-color);
    transform: translateX(5px);
}

/* Responsive styles */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .mobile-menu-container {
        display: block;
        position: relative;
        z-index: 100;
    }
    
    /* Hide main theme toggle on mobile */
    .theme-toggle {
        display: none;
    }
    
    /* Make mobile menu visible and properly positioned */
    .mobile-menu {
        display: none;
        position: absolute;
        top: 100%;
        right: 0;
        background-color: var(--background-color);
        padding: 1.5rem;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
        border-radius: 8px;
        border: 2px solid var(--border-color);
        min-width: 220px;
        z-index: 150;
        margin-top: 10px;
    }
    
    .mobile-menu.active {
        display: block;
        animation: fadeIn 0.2s ease-in-out;
    }
    
    @keyframes fadeIn {
        from { opacity: 0; transform: translateY(-10px); }
        to { opacity: 1; transform: translateY(0); }
    }
    
    /* Mobile theme toggle styles */
    .mobile-theme-toggle-container {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid var(--border-color);
    }
    
    .mobile-theme-toggle {
        position: relative;
        width: 50px;
        height: 26px;
        border-radius: 13px;
        background-color: var(--bg-alt);
        cursor: pointer;
        transition: all 0.3s ease;
        overflow: hidden;
    }
    
    .mobile-toggle-thumb {
        position: absolute;
        top: 3px;
        left: 3px;
        width: 20px;
        height: 20px;
        border-radius: 50%;
        background-color: var(--primary-color);
        transition: transform 0.3s ease;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    }
    
    html[data-theme="dark"] .mobile-toggle-thumb {
        transform: translateX(24px);
    }
    
    /* Improve mobile menu button visibility */
    .mobile-menu-button {
        background: transparent;
        color: var(--text-color);
        border: none;
        cursor: pointer;
        padding: 8px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 4px;
        transition: all 0.2s ease;
    }
    
    .mobile-menu-button:hover {
        background-color: var(--border-color);
    }
    
    .mobile-menu-button svg {
        width: 24px;
        height: 24px;
        stroke-width: 2px;
    }

    .works-grid {
        grid-template-columns: 1fr;
    }

    .social-links {
        margin-top: 0.5rem;
    }

    .section-title {
        font-size: 2.5rem;
    }
    
    .section-title::after {
        width: 40px;
    }
}

/* Project Modal */
.project-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease-out;
}

.project-modal.active {
    display: flex;
    opacity: 1;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.4s ease-out;
}

.project-modal.active .modal-overlay {
    opacity: 1;
}

html[data-theme="dark"] .modal-overlay {
    background-color: rgba(15, 15, 15, 0.7);
}

.modal-container {
    position: relative;
    width: 90%;
    max-width: 750px;
    max-height: 85vh;
    background-color: var(--background-color);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    z-index: 1001;
    border: 1px solid var(--border-color);
    transform: translateY(30px) scale(0.97);
    opacity: 0;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s ease-out;
}

html[data-theme="dark"] .modal-container {
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.project-modal.active .modal-container {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.modal-close-button {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: transparent;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1002;
    transition: all 0.2s ease;
}

.modal-close-button:hover {
    background-color: rgba(0, 0, 0, 0.05);
    transform: scale(1.1);
}

html[data-theme="dark"] .modal-close-button:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.modal-close-button svg {
    color: var(--primary-color);
    width: 18px;
    height: 18px;
}

.modal-content {
    padding: 2.5rem;
    overflow-y: auto;
    max-height: calc(85vh - 5rem);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.modal-header {
    margin-bottom: 1rem;
}

.modal-title {
    font-size: 2.2rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-right: 40px;
    line-height: 1.2;
}

.modal-body {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.modal-image-container {
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
    aspect-ratio: 16/9;
    background-color: var(--background-color);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-color);
}

.modal-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.modal-description {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.modal-text {
    color: var(--text-color);
    line-height: 1.7;
    font-size: 1.05rem;
}

.modal-tags-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1.5rem;
}

.modal-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    flex: 1;
}

/* Modal tags */
.modal-tag {
    background-color: rgba(0, 0, 0, 0.08);
    color: var(--text-color);
    font-size: 0.85rem;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: none;
    opacity: 1;
}

.modal-tag:hover {
    transform: translateY(-2px);
    background-color: rgba(0, 0, 0, 0.12);
}

html[data-theme="dark"] .modal-tag {
    background-color: rgba(255, 255, 255, 0.08);
    color: var(--text-color);
    border: 1px solid rgba(255, 255, 255, 0.15);
    opacity: 1;
}

html[data-theme="dark"] .modal-tag:hover {
    background-color: rgba(255, 255, 255, 0.12);
}

.modal-link {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    color: var(--primary-color);
    background-color: transparent;
    border: 1px solid var(--primary-color);
    border-radius: 8px;
    padding: 0.7rem 1.2rem;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.modal-link:hover {
    background-color: rgba(0, 0, 0, 0.03);
    transform: translateY(-2px);
}

html[data-theme="dark"] .modal-link:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.modal-link svg {
    width: 18px;
    height: 18px;
}

/* View More Projects Button */
.view-more-container {
    display: flex;
    justify-content: center;
    margin-top: 3.5rem;
    margin-bottom: 2rem;
}

.view-more-button {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1.2rem 2.2rem;
    background-color: transparent;
    border: 2px solid var(--primary-color);
    border-radius: 10px;
    color: var(--primary-color);
    font-family: var(--font-family);
    font-size: 1.25rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.view-more-button:hover {
    background-color: rgba(0, 0, 0, 0.03);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

html[data-theme="dark"] .view-more-button:hover {
    background-color: rgba(255, 255, 255, 0.05);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.view-more-button svg {
    transition: all 0.3s ease;
    width: 22px;
    height: 22px;
}

.view-more-button:hover svg {
    transform: translateY(-2px);
}

/* Project Explorer */
.project-explorer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease-out;
}

.project-explorer.active {
    display: flex;
    opacity: 1;
}

.explorer-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.4s ease-out;
}

.project-explorer.active .explorer-overlay {
    opacity: 1;
}

html[data-theme="dark"] .explorer-overlay {
    background-color: rgba(15, 15, 15, 0.7);
}

.explorer-container {
    position: relative;
    width: 90%;
    max-width: 1000px;
    height: 80vh;
    background-color: var(--background-color);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    z-index: 1001;
    border: 1px solid var(--border-color);
    transform: translateY(30px) scale(0.97);
    opacity: 0;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s ease-out;
}

html[data-theme="dark"] .explorer-container {
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.project-explorer.active .explorer-container {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.explorer-close-button {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: transparent;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1002;
    transition: all 0.2s ease;
}

.explorer-close-button:hover {
    background-color: rgba(0, 0, 0, 0.05);
    transform: scale(1.1);
}

html[data-theme="dark"] .explorer-close-button:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.explorer-close-button svg {
    color: var(--primary-color);
    width: 18px;
    height: 18px;
}

.explorer-content {
    padding: 2.5rem;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.explorer-header {
    margin-bottom: 1.5rem;
}

.explorer-title {
    font-size: 2rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-right: 40px;
    line-height: 1.2;
}

.explorer-body {
    flex: 1;
    overflow: hidden;
}

.explorer-panels {
    display: flex;
    height: 100%;
    gap: 2rem;
}

.explorer-left-panel {
    flex: 0 0 250px;
    border-right: 1px solid var(--border-color);
    padding-right: 1.5rem;
    height: 100%;
    overflow-y: auto;
}

.explorer-right-panel {
    flex: 1;
    padding-left: 0.5rem;
    height: 100%;
    overflow-y: auto;
}

.folder-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.folder {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.folder:hover {
    background-color: rgba(0, 0, 0, 0.03);
}

html[data-theme="dark"] .folder:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.folder.active {
    background-color: rgba(0, 0, 0, 0.05);
}

html[data-theme="dark"] .folder.active {
    background-color: rgba(255, 255, 255, 0.08);
}

.folder span {
    font-weight: 500;
}

.folder svg {
    color: var(--primary-color);
    opacity: 0.8;
}

.project-details {
    padding: 0.5rem;
}

.project-header {
    margin-bottom: 1.5rem;
}

.project-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--primary-color);
    line-height: 1.2;
}

.project-text {
    color: var(--text-color);
    line-height: 1.6;
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.project-files {
    margin: 1.5rem 0;
}

.file-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.6rem 0.8rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.file-item:hover {
    background-color: rgba(0, 0, 0, 0.03);
}

.file-item-active {
    background-color: rgba(0, 0, 0, 0.07);
    border-left: 3px solid var(--primary-color);
    font-weight: 500;
}

html[data-theme="dark"] .file-item:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

html[data-theme="dark"] .file-item-active {
    background-color: rgba(255, 255, 255, 0.1);
    border-left: 3px solid var(--primary-color);
}

.file-icon {
    color: var(--text-color);
    opacity: 0.7;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 1.5rem;
}

/* Project explorer tags */
.project-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.25rem 0.5rem;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    background-color: rgba(0, 0, 0, 0.08);
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-color);
    transition: all 0.2s ease;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.project-tag:hover {
    background-color: rgba(0, 0, 0, 0.12);
}

html[data-theme="dark"] .project-tag {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--text-color);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

html[data-theme="dark"] .project-tag:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    color: var(--primary-color);
    background-color: transparent;
    border: 1px solid var(--primary-color);
    border-radius: 8px;
    padding: 0.7rem 1.2rem;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.project-link:hover {
    background-color: rgba(0, 0, 0, 0.03);
    transform: translateY(-2px);
}

html[data-theme="dark"] .project-link:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.file-content {
    background-color: rgba(0, 0, 0, 0.05);
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
    font-family: 'Courier New', monospace;
    font-size: 0.95rem;
    white-space: pre-wrap;
    overflow-x: auto;
    color: var(--primary-color);
    border: 1px solid var(--border-color);
    line-height: 1.5;
    position: relative;
}

/* Dark mode file content styles */
html[data-theme="dark"] .file-content {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

.file-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        transparent,
        transparent 1.5rem,
        rgba(0, 0, 0, 0.03) 1.5rem,
        rgba(0, 0, 0, 0.03) 3rem
    );
    pointer-events: none;
    z-index: 1;
    border-radius: 8px;
}

html[data-theme="dark"] .file-content::before {
    background: repeating-linear-gradient(
        transparent,
        transparent 1.5rem,
        rgba(255, 255, 255, 0.03) 1.5rem,
        rgba(255, 255, 255, 0.03) 3rem
    );
}

@media (max-width: 768px) {
    .explorer-container {
        width: 95%;
        height: 90vh;
        max-width: none;
    }
    
    .explorer-content {
        padding: 1.5rem;
    }
    
    .explorer-panels {
        flex-direction: column;
        gap: 1rem;
    }
    
    .explorer-left-panel {
        flex: 0 0 auto;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        padding-right: 0;
        padding-bottom: 1rem;
        max-height: 30%;
    }
    
    .explorer-right-panel {
        padding-left: 0;
    }
    
    .explorer-title {
        font-size: 1.8rem;
        margin-right: 30px;
    }
    
    .explorer-close-button {
        top: 15px;
        right: 15px;
        width: 28px;
        height: 28px;
    }
}

/* Terminal prompt styling */
.terminal-prompt {
    font-family: 'Courier New', monospace;
    font-size: 0.95rem;
    padding: 0.8rem 1rem;
    margin-top: 0.5rem;
    background-color: rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    color: var(--primary-color);
    display: flex;
    align-items: center;
}

html[data-theme="dark"] .terminal-prompt {
    background-color: rgba(255, 255, 255, 0.05);
}

.prompt-user {
    color: #2ecc71;
    font-weight: bold;
}

.prompt-dir {
    color: #3498db;
}

.blinking-cursor {
    animation: blink 1s infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* Add styling for the gray placeholder blocks in the project explorer */
.project-details .placeholder-block {
    display: none;
}

.project-details .placeholder-block.small,
.project-details .placeholder-block.medium,
.project-details .placeholder-block.large {
    display: none;
}

html[data-theme="dark"] .project-details .placeholder-block {
    display: none;
}

/* Custom Cursor Styles */
.cursor-dot,
.cursor-outline {
    display: none;
}

/* Contact form success message */
.success-message {
    background-color: var(--background-color);
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    max-width: 500px;
    margin: 0 auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 100;
    opacity: 0;
    transition: opacity 0.3s ease-out;
}

.success-message.visible {
    opacity: 1;
}

.success-icon {
    margin-bottom: 1rem;
}

.success-icon svg {
    color: var(--primary-color);
}

.success-message h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.success-message p {
    color: var(--text-color);
    margin-bottom: 1.5rem;
}

.close-success-button {
    background-color: var(--primary-color);
    color: var(--background-color);
    border: none;
    padding: 0.5rem 1.5rem;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.2s ease;
    font-family: var(--font-family);
}

.close-success-button:hover {
    opacity: 0.9;
}

    html {
    cursor: auto; /* Restore default cursor */
}

/* From Uiverse.io by iZOXVL */ 
.boton-elegante {
  padding: 15px 30px;
  border: 2px solid #3a3a3a;
  background-color: #2a2a2a;
  color: #ffffff;
  font-size: 1.2rem;
  cursor: pointer;
  border-radius: 30px;
  transition: all 0.4s ease;
  outline: none;
  position: relative;
  overflow: hidden;
  font-weight: bold;
}

.boton-elegante::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.25) 0%,
    rgba(255, 255, 255, 0) 70%
  );
  transform: scale(0);
  transition: transform 0.5s ease;
}

.boton-elegante:hover::after {
  transform: scale(4);
}

.boton-elegante:hover {
  border-color: #4a4a4a;
  background: #3a3a3a;
}

/* Contact form media query */
@media (min-width: 768px) {
    .contact-content {
        width: 100%;
    }

    .contact-form {
        width: 100%;
        max-width: 100%;
    }
}

/* Responsive modal styles */
@media (max-width: 768px) {
    .modal-container {
        width: 95%;
        max-height: 80vh;
    }
    
    .modal-content {
        padding: 1.8rem 1.5rem;
    }
    
    .modal-title {
        font-size: 1.8rem;
        margin-right: 35px;
    }
    
    .modal-close-button {
        top: 15px;
        right: 15px;
        width: 28px;
        height: 28px;
    }
    
    .modal-text {
        font-size: 0.95rem;
    }
    
    .modal-tags-wrapper {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }
    
    .modal-link {
        width: 100%;
        justify-content: center;
    }
}

/* Scroll Arrow Styling */
.scroll-arrow-link {
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
}

.scroll-arrow {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: transparent;
    border: 1px solid var(--text-color);
    cursor: pointer;
    transition: all 0.3s ease;
    animation: pulse 2s infinite, fadeIn 1s ease;
    opacity: 1;
}

.scroll-arrow svg {
    color: var(--text-color);
    transition: transform 0.3s ease;
}

.scroll-arrow:hover {
    transform: translateY(5px);
    background-color: var(--text-color);
}

.scroll-arrow:hover svg {
    color: var(--bg-color);
}

/* Animations for scroll arrow */
@keyframes pulse {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(8px);
    }
    100% {
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.scroll-arrow.hidden {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

/* Remove old button styling */
.boton-elegante {
    display: none;
}

/* Statement text styling - for large animated introduction */
.statement-text-container {
    width: 100%;
    margin: 2rem 0;
}

/* Update the about section styling */
#about-section {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background-color: var(--secondary-bg);
    padding: 2rem 2rem;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

html[data-theme="dark"] #about-section {
    background-color: rgba(15, 15, 15, 0.6);
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .statement-text {
        font-size: clamp(2.2rem, 5.5vw, 3.5rem);
    }
    
    #about-section {
        padding: 1.5rem 1rem;
        min-height: 65vh;
    }
    
    .statement-description p {
        font-size: clamp(0.9rem, 1.8vw, 1.2rem);
    }
}

/* Remove all the wavy decorations CSS */
#about-section::before,
#about-section::after {
    display: none;
}

.statement-description {
    opacity: 0.2;
    transition: opacity 0.8s ease, transform 0.8s ease;
    max-width: 800px;
    text-transform: uppercase;
}

.statement-description.visible {
    opacity: 1;
}

.section-label.animate-on-scroll {
    opacity: 0.2;
    transition: opacity 0.8s ease, transform 0.8s ease;
    text-transform: uppercase;
    font-size: 1rem;
}

.section-label.animate-on-scroll.visible {
    opacity: 1;
}

/* Enhance statement text for maximum impact */
.statement-text {
    font-size: clamp(3.5rem, 7vw, 8rem);
    line-height: 0.95;
    letter-spacing: -0.03em;
    font-weight: 800;
    margin: 0 0 1rem;
    display: block;
    width: 100%;
    text-transform: uppercase;
}

/* Adjust word animation for this larger size */
.animate-word {
    opacity: 0.2;
    transition: opacity 0.5s ease;
    margin-right: 0.3em;
    display: inline-block;
}

.animate-word.visible {
    opacity: 1;
}

/* Update paragraph for consistency */
.statement-description p {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    letter-spacing: -0.01em;
    margin-top: 1rem;
}
