/* ============================================
   Totopos — Custom Styles
   Deep Navy + Warm Gold | Vibrant Geometric
   ============================================ */

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

html {
    scroll-behavior: smooth;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ============================================
   Geometric Background Shapes
   ============================================ */
.geo-shape {
    position: absolute;
    pointer-events: none;
    opacity: 0.04;
}

.shape-circle-1 {
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: #f5b800;
    top: -200px;
    right: -200px;
}

.shape-circle-2 {
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: #f5b800;
    bottom: 10%;
    left: -100px;
}

.shape-triangle {
    width: 0;
    height: 0;
    border-left: 200px solid transparent;
    border-right: 200px solid transparent;
    border-bottom: 346px solid #f5b800;
    top: 40%;
    right: 5%;
    transform: rotate(15deg);
}

.shape-square {
    width: 300px;
    height: 300px;
    background: #f5b800;
    top: 60%;
    left: 10%;
    transform: rotate(45deg);
}

.shape-ring {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    border: 40px solid #f5b800;
    bottom: -50px;
    right: 20%;
}

/* ============================================
   Hero Geometric Elements
   ============================================ */
.hero-geo {
    position: absolute;
    pointer-events: none;
}

.hero-geo-1 {
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(245,184,0,0.15) 0%, transparent 70%);
    top: -100px;
    right: -100px;
    animation: float 8s ease-in-out infinite;
}

.hero-geo-2 {
    width: 300px;
    height: 300px;
    border: 3px solid rgba(245,184,0,0.2);
    border-radius: 50%;
    bottom: 15%;
    left: 5%;
    animation: float 6s ease-in-out infinite reverse;
}

.hero-geo-3 {
    width: 150px;
    height: 150px;
    background: rgba(245,184,0,0.1);
    top: 25%;
    left: 10%;
    transform: rotate(45deg);
    animation: spin-slow 20s linear infinite;
}

.hero-geo-4 {
    width: 200px;
    height: 200px;
    border: 2px solid rgba(245,184,0,0.15);
    border-radius: 50%;
    bottom: 20%;
    right: 10%;
    animation: float 10s ease-in-out infinite;
}

.hero-geo-5 {
    width: 80px;
    height: 80px;
    background: rgba(245,184,0,0.2);
    border-radius: 50%;
    top: 40%;
    right: 25%;
    animation: pulse-glow 3s ease-in-out infinite;
}

/* ============================================
   Animations
   ============================================ */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-30px); }
}

@keyframes spin-slow {
    from { transform: rotate(45deg); }
    to { transform: rotate(405deg); }
}

@keyframes pulse-glow {
    0%, 100% { opacity: 0.2; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.1); }
}

/* Scroll indicator */
.scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.5), transparent);
    animation: scroll-anim 2s ease-in-out infinite;
}

@keyframes scroll-anim {
    0% { transform: scaleY(0); transform-origin: top; }
    50% { transform: scaleY(1); transform-origin: top; }
    51% { transform-origin: bottom; }
    100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ============================================
   Navbar
   ============================================ */
#navbar {
    transition: background-color 0.4s ease, padding 0.4s ease, box-shadow 0.4s ease;
}

#navbar.scrolled {
    background-color: rgba(3, 13, 26, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav-link {
    position: relative;
}

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

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

/* Hamburger */
.hamburger-line {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    width: 22px;
    height: 2px;
    background: #f5b800;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger-line.top { top: 30%; }
.hamburger-line.middle { top: 50%; }
.hamburger-line.bottom { bottom: 30%; }

#menu-btn.active .hamburger-line.top {
    top: 50%;
    transform: translate(-50%, -50%) rotate(45deg);
}

#menu-btn.active .hamburger-line.middle {
    opacity: 0;
}

#menu-btn.active .hamburger-line.bottom {
    bottom: 30%;
    transform: translate(-50%, 50%) rotate(-45deg);
}

/* Mobile links */
.mobile-link {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

#mobile-menu.open .mobile-link {
    opacity: 1;
    transform: translateY(0);
}

#mobile-menu.open .mobile-link:nth-child(1) { transition-delay: 0.1s; }
#mobile-menu.open .mobile-link:nth-child(2) { transition-delay: 0.15s; }
#mobile-menu.open .mobile-link:nth-child(3) { transition-delay: 0.2s; }
#mobile-menu.open .mobile-link:nth-child(4) { transition-delay: 0.25s; }

/* ============================================
   Menu Cards
   ============================================ */
.menu-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1rem;
    padding: 0;
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}

.menu-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(245, 184, 0, 0.1);
    border-color: rgba(245, 184, 0, 0.3);
}

/* ============================================
   Gallery
   ============================================ */
.gallery-item {
    overflow: hidden;
    border-radius: 0.5rem;
    cursor: pointer;
}

.gallery-item img {
    transition: transform 0.7s ease;
}

.gallery-item:hover img {
    transform: scale(1.08);
}

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

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

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    html {
        scroll-behavior: auto;
    }
    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 768px) {
    .shape-circle-1,
    .shape-circle-2,
    .shape-triangle,
    .shape-square,
    .shape-ring {
        display: none;
    }
    
    .hero-geo-1 {
        width: 300px;
        height: 300px;
    }
    
    .hero-geo-2,
    .hero-geo-4,
    .hero-geo-5 {
        display: none;
    }
}
