/* ============================================
   El Manzanillo — Custom Styles
   ============================================ */

/* Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    background-color: #050A18;
    color: #ffffff;
    font-family: 'Outfit', sans-serif;
    overflow-x: hidden;
}

/* ============================================
   Geometric Background Shapes
   ============================================ */
.geo-shape {
    position: fixed;
    pointer-events: none;
    z-index: 0;
    opacity: 0.4;
}

.circle-1 {
    top: 15%;
    left: -5%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(52, 211, 153, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    animation: float-slow 20s ease-in-out infinite;
}

.circle-2 {
    bottom: 20%;
    right: -8%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.06) 0%, transparent 70%);
    border-radius: 50%;
    animation: float-slow 25s ease-in-out infinite reverse;
}

.triangle {
    top: 40%;
    right: 5%;
    width: 0;
    height: 0;
    border-left: 80px solid transparent;
    border-right: 80px solid transparent;
    border-bottom: 140px solid rgba(52, 211, 153, 0.04);
    animation: float-medium 15s ease-in-out infinite;
}

.square {
    bottom: 30%;
    left: 8%;
    width: 100px;
    height: 100px;
    border: 2px solid rgba(52, 211, 153, 0.06);
    transform: rotate(45deg);
    animation: float-medium 18s ease-in-out infinite reverse;
}

.diamond {
    top: 60%;
    left: 50%;
    width: 60px;
    height: 60px;
    background: rgba(52, 211, 153, 0.04);
    transform: rotate(45deg);
    animation: float-fast 12s ease-in-out infinite;
}

@keyframes float-slow {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(30px, -20px); }
}

@keyframes float-medium {
    0%, 100% { transform: translate(0, 0) rotate(45deg); }
    50% { transform: translate(-20px, 30px) rotate(45deg); }
}

@keyframes float-fast {
    0%, 100% { transform: translate(0, 0) rotate(45deg); }
    50% { transform: translate(15px, -25px) rotate(45deg); }
}

/* ============================================
   Navigation
   ============================================ */
#navbar {
    background: transparent;
    transition: background 0.4s ease, backdrop-filter 0.4s ease, padding 0.4s ease;
}

#navbar.scrolled {
    background: rgba(5, 10, 24, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding-top: 0;
    padding-bottom: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-link {
    position: relative;
}

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

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

/* Mobile Menu */
#mobile-menu {
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

#mobile-menu.active {
    opacity: 1;
    pointer-events: all;
}

.mobile-link {
    position: relative;
}

.menu-line {
    transition: transform 0.3s ease, opacity 0.3s ease, width 0.3s ease;
}

#mobile-menu-btn.active .menu-line:nth-child(1) {
    transform: translateY(5px) rotate(45deg);
}

#mobile-menu-btn.active .menu-line:nth-child(2) {
    opacity: 0;
    transform: translateX(-10px);
}

#mobile-menu-btn.active .menu-line:nth-child(3) {
    width: 28px;
    transform: translateY(-5px) rotate(-45deg);
}

/* ============================================
   Hero Animations
   ============================================ */
.hero-badge {
    animation: fadeInDown 0.8s ease forwards;
}

.hero-title {
    animation: fadeInUp 0.8s ease 0.2s forwards;
    opacity: 0;
}

.hero-subtitle {
    animation: fadeInUp 0.8s ease 0.4s forwards;
    opacity: 0;
}

.hero-cta {
    animation: fadeInUp 0.8s ease 0.6s forwards;
    opacity: 0;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   Scroll Reveal
   ============================================ */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    
    html {
        scroll-behavior: auto;
    }
    
    .geo-shape {
        animation: none;
    }
    
    .hero-title,
    .hero-subtitle,
    .hero-cta,
    .hero-badge {
        animation: none;
        opacity: 1;
    }
}

/* ============================================
   Buttons
   ============================================ */
a, button {
    -webkit-tap-highlight-color: transparent;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 767px) {
    .geo-shape {
        display: none;
    }
}

@media (min-width: 768px) {
    .geo-shape {
        display: block;
    }
}

/* ============================================
   Selection
   ============================================ */
::selection {
    background: rgba(52, 211, 153, 0.3);
    color: #ffffff;
}

/* ============================================
   Scrollbar
   ============================================ */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #050A18;
}

::-webkit-scrollbar-thumb {
    background: #142D54;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #1A3A6B;
}
