/* ============================================
   LAS CASCADAS — Custom Styles
   ============================================ */

/* --- Base & Reset --- */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    min-height: 100vh;
}

::selection {
    background: #4fd1c5;
    color: #0d1b2a;
}

/* --- Navbar --- */
.nav-logo-text {
    transition: color 0.3s ease;
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #4fd1c5;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* --- Mobile Menu --- */
.mobile-bar {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-link {
    transition: all 0.3s ease;
}

#mobile-menu.open {
    opacity: 1 !important;
    pointer-events: all !important;
}

#mobile-menu.closed span:first-child {
    transform: rotate(45deg) translate(5px, 5px);
}

#mobile-menu.closed span:nth-child(2) {
    opacity: 0;
}

#mobile-menu.closed span:nth-child(3) {
    width: 24px;
    transform: rotate(-45deg) translate(5px, -5px);
}

/* --- Hero Animations --- */
@keyframes float-slow {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(2deg); }
}

@keyframes float-medium {
    0%, 100% { transform: translateY(0px) rotate(45deg); }
    50% { transform: translateY(-15px) rotate(47deg); }
}

@keyframes float-fast {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

@keyframes drift {
    0%, 100% { transform: translate(0, 0); }
    33% { transform: translate(10px, -15px); }
    66% { transform: translate(-5px, 10px); }
}

.hero-shape {
    transition: transform 0.3s ease;
}

.hero-circle-1 {
    animation: float-slow 8s ease-in-out infinite;
}

.hero-circle-2 {
    animation: float-medium 10s ease-in-out infinite;
}

.hero-circle-3 {
    animation: float-fast 5s ease-in-out infinite;
}

.hero-circle-4 {
    animation: drift 7s ease-in-out infinite;
}

.hero-diamond {
    animation: float-medium 6s ease-in-out infinite;
}

.hero-rect-1 {
    animation: float-slow 9s ease-in-out infinite;
}

.hero-text {
    opacity: 0;
    transform: translateY(30px);
    animation: heroReveal 0.8s ease forwards 0.3s;
}

.hero-images {
    opacity: 0;
    transform: translateY(30px);
    animation: heroReveal 0.8s ease forwards 0.5s;
}

.hero-badge {
    opacity: 0;
    transform: translateY(20px);
    animation: heroReveal 0.6s ease forwards 0.6s;
}

@keyframes heroReveal {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Section Reveals --- */
.section-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.section-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

.section-reveal:nth-child(2) { transition-delay: 0.1s; }
.section-reveal:nth-child(3) { transition-delay: 0.2s; }
.section-reveal:nth-child(4) { transition-delay: 0.3s; }
.section-reveal:nth-child(5) { transition-delay: 0.4s; }

/* --- Menu Cards --- */
.menu-card {
    transform: translateY(0);
}

.menu-card:hover {
    transform: translateY(-4px);
}

/* --- Experience Cards --- */
.experience-card {
    transform: translateY(0);
}

.experience-card:hover {
    transform: translateY(-8px);
}

/* --- About Shapes --- */
.about-shape {
    transition: transform 0.5s ease;
}

.shape-1 {
    animation: float-slow 12s ease-in-out infinite;
}

.shape-2 {
    animation: float-medium 8s ease-in-out infinite;
}

.shape-3 {
    animation: float-fast 6s ease-in-out infinite;
}

/* --- Parallax on scroll --- */
@media (prefers-reduced-motion: no-preference) {
    .parallax-slow {
        will-change: transform;
    }
}

/* --- Focus styles --- */
a:focus-visible,
button:focus-visible {
    outline: 2px solid #4fd1c5;
    outline-offset: 4px;
    border-radius: 4px;
}

/* --- Button hover glow --- */
.bg-mint:hover {
    box-shadow: 0 0 30px rgba(79, 209, 197, 0.4);
}

/* --- Image hover zoom --- */
img {
    max-width: 100%;
    height: auto;
}

/* --- Smooth image loading --- */
img {
    transition: opacity 0.3s ease;
}

img[loading="lazy"] {
    opacity: 0;
}

img[loading="lazy"].loaded {
    opacity: 1;
}

/* --- Mobile responsiveness --- */
@media (max-width: 768px) {
    .hero-shape {
        display: none;
    }

    .hero-shape:nth-child(odd) {
        display: block;
        opacity: 0.5;
    }

    #hero {
        min-height: auto;
        padding-top: 100px;
        padding-bottom: 60px;
    }

    .hero-images {
        display: none;
    }

    #hero .grid {
        grid-template-rows: auto auto;
    }

    #hero .hero-text {
        order: 2 !important;
    }

    #hero .hero-images {
        order: 1 !important;
        display: block;
    }
}

@media (max-width: 640px) {
    .font-display {
        word-spacing: -0.02em;
    }
}

/* --- Print styles --- */
@media print {
    nav, #mobile-menu, .hero-shape {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
}
