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

/* Accessibility - Skip Link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: #000;
    color: #fff;
    padding: 8px 16px;
    text-decoration: none;
    z-index: 1100;
    border-radius: 0 0 4px 0;
    font-weight: 700;
}

.skip-link:focus {
    top: 0;
}

body {
    font-family: 'Arial Black', 'Arial Bold', sans-serif;
    overflow-x: hidden;
    background: #f4f4f4;
    color: #000;
}

/* Navigation - Liquid Glass Style */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 50px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(30px) saturate(200%);
    -webkit-backdrop-filter: blur(30px) saturate(200%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.08);
}

.logo {
    font-size: 24px;
    font-weight: 900;
    letter-spacing: -1px;
    color: #000;
}

.nav-links {
    display: flex;
    gap: 40px;
    list-style: none;
}

.nav-links a {
    color: #000;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    transition: opacity 0.3s;
    letter-spacing: 1px;
}

.nav-links a:hover {
    opacity: 0.6;
}

.lang-toggle {
    background: #000;
    color: #fff;
    border: none;
    padding: 8px 16px;
    font-size: 12px;
    font-weight: 900;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s;
}

.lang-toggle:hover {
    background: #fff;
    color: #000;
    outline: 2px solid #000;
}

.hamburger {
    display: none;
    background: #000;
    color: #fff;
    border: none;
    font-size: 28px;
    cursor: pointer;
    padding: 8px 12px;
    transition: all 0.3s;
    position: relative;
    z-index: 1001;
}

.hamburger:hover {
    background: #fff;
    color: #000;
    outline: 2px solid #000;
}

#navLinks.mobile-open {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100vh;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 40px;
    z-index: 999;
    list-style: none;
    padding-top: 60px;
}

#navLinks.mobile-open li {
    list-style: none;
}

#navLinks.mobile-open a {
    font-size: 32px !important;
    text-transform: uppercase;
    color: #000;
    text-decoration: none;
    letter-spacing: 2px;
}

.mobile-lang-toggle {
    display: none;
}

#navLinks.mobile-open .mobile-lang-toggle {
    display: block;
    margin-top: 20px;
}

.lang-toggle.mobile {
    font-size: 16px !important;
    padding: 12px 24px !important;
}

/* Sections */
section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    scroll-snap-align: start;
}

.scroll-container {
    height: 100vh;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
}

/* Hero Section */
#hero {
    position: relative;
    overflow: hidden;
    background: #f4f4f4;
}

#chromaticCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 0 50px;
}

.hero-content h1 {
    padding: 10px;
    font-size: clamp(60px, 12vw, 180px);
    font-weight: 900;
    line-height: 0.9;
    letter-spacing: -5px;
    margin-bottom: 30px;
    text-transform: uppercase;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b7d1, #f9ca24, #ff6b6b);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    animation: gradientShift 8s ease infinite;
}

@keyframes gradientShift {
    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

.hero-content p {
    font-size: clamp(18px, 3vw, 36px);
    font-weight: 900;
    letter-spacing: 2px;
    text-transform: uppercase;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b7d1, #f9ca24, #ff6b6b);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    animation: gradientShift 8s ease infinite;
}

/* About Section */
#about {
    background: #fff;
    color: #000;
}

.about-content {
    max-width: 1200px;
    padding: 0 50px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-title {
    font-size: clamp(40px, 8vw, 100px);
    font-weight: 900;
    line-height: 0.9;
    letter-spacing: -3px;
    text-transform: uppercase;
}

.about-text {
    font-family: Arial, sans-serif;
    font-size: clamp(16px, 2vw, 22px);
    line-height: 1.6;
    font-weight: 400;
}

.about-text strong {
    font-weight: 900;
}

/* Projects Section */
#projects {
    background: #f4f4f4;
    padding: 100px 50px;
}

.projects-content {
    max-width: 1400px;
    margin: 0 auto;
}

.section-title {
    font-size: clamp(50px, 10vw, 120px);
    font-weight: 900;
    line-height: 0.9;
    letter-spacing: -4px;
    margin-bottom: 80px;
    text-transform: uppercase;
    color: #000;
}

.filter-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 60px;
    flex-wrap: wrap;
}

.filter-btn {
    background: #fff;
    border: 2px solid #000;
    color: #000;
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s;
    letter-spacing: 1px;
}

.filter-btn:hover {
    background: #000;
    color: #fff;
}

.filter-btn.active {
    background: #000;
    color: #fff;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.project-card {
    background: #fff;
    padding: 0;
    transition: transform 0.3s;
    cursor: pointer;
    overflow: hidden;
    border: 1px solid #e0e0e0;
    position: relative;
}

.project-card:hover {
    transform: scale(1.02);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px) saturate(150%);
    -webkit-backdrop-filter: blur(10px) saturate(150%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 10;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-overlay-text {
    color: #fff;
    font-size: 18px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
    margin-bottom: 15px;
}

.project-overlay-btn {
    background: #fff;
    color: #000;
    border: none;
    padding: 10px 24px;
    font-size: 12px;
    font-weight: 900;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s;
}

.project-overlay-btn:hover {
    background: #000;
    color: #fff;
}

.project-image {
    width: 100%;
    height: 300px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 80px;
    font-weight: 900;
    color: transparent;
    position: relative;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.project-info {
    padding: 30px;
}

.project-card h3 {
    font-size: clamp(24px, 3vw, 36px);
    font-weight: 900;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: -1px;
    color: #000;
}

.project-card p {
    font-family: Arial, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    opacity: 0.8;
    color: #000;
}

/* Contact Section */
#contact {
    background: #fff;
    color: #000;
}

.contact-content {
    max-width: 1000px;
    padding: 0 50px;
    text-align: center;
}

.contact-title {
    font-size: clamp(50px, 10vw, 120px);
    font-weight: 900;
    line-height: 0.9;
    letter-spacing: -4px;
    margin-bottom: 60px;
    text-transform: uppercase;
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-bottom: 60px;
}

.contact-link {
    font-size: clamp(24px, 4vw, 48px);
    font-weight: 900;
    color: #000;
    text-decoration: none;
    letter-spacing: -1px;
    transition: opacity 0.3s;
}

.contact-link:hover {
    opacity: 0.5;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 40px;
}

.social-link {
    font-size: 18px;
    font-weight: 900;
    color: #000;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: opacity 0.3s;
    display: flex;
    align-items: center;
    gap: 12px;
}

.social-icon {
    width: 24px;
    height: 24px;
    display: inline-block;
    color: #000;
    transition: color 0.3s;
}

.social-link:hover .social-icon {
    color: black;
}

.social-link:hover {
    opacity: 0.5;
}

/* Mobile Styles */
@media (max-width: 768px) {
    nav {
        padding: 20px 30px;
    }

    .logo {
        font-size: 18px;
        margin-left: 50%;
        transform: translateX(-50%);
    }

    .hamburger {
        display: block;
    }

    .nav-links {
        display: none;
        gap: 20px;
    }

    .nav-links a {
        font-size: 11px;
    }

    .lang-toggle:not(.mobile) {
        display: none;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

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

    .contact-links {
        gap: 20px;
    }

    .social-links {
        flex-direction: column;
        gap: 20px;
    }
}

/* Hidden class for translations */
.lang-es,
.lang-en {
    display: none;
}

.lang-es.active,
.lang-en.active {
    display: block;
}

.lang-es.active-inline,
.lang-en.active-inline {
    display: inline;
}
