/* ========================================
   Catrachas Bar — Custom Styles
   ======================================== */

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

html {
    scroll-behavior: smooth;
}

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

/* ========================================
   Hero Gradient
   ======================================== */
.hero-gradient {
    background: 
        radial-gradient(ellipse 80% 60% at 20% 40%, rgba(49, 151, 149, 0.35) 0%, transparent 60%),
        radial-gradient(ellipse 60% 50% at 80% 30%, rgba(18, 52, 125, 0.6) 0%, transparent 60%),
        radial-gradient(ellipse 70% 60% at 50% 80%, rgba(49, 151, 149, 0.2) 0%, transparent 50%),
        linear-gradient(160deg, #020818 0%, #06122D 40%, #0A1F4A 70%, #020818 100%);
}

/* ========================================
   CTA Gradient
   ======================================== */
.cta-gradient {
    background: 
        radial-gradient(ellipse 70% 60% at 30% 50%, rgba(49, 151, 149, 0.3) 0%, transparent 60%),
        radial-gradient(ellipse 60% 50% at 70% 50%, rgba(18, 52, 125, 0.5) 0%, transparent 60%),
        linear-gradient(135deg, #0A1F4A 0%, #06122D 50%, #020818 100%);
}

/* ========================================
   Geometric Shapes — Hero
   ======================================== */
.geo-shape {
    position: absolute;
    opacity: 0.08;
    pointer-events: none;
}

.geo-circle-1 {
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: #38B2AC;
    top: -100px;
    right: -100px;
    animation: float-slow 20s ease-in-out infinite;
}

.geo-circle-2 {
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background: #1A4A9E;
    bottom: 10%;
    left: 5%;
    animation: float-slow 15s ease-in-out infinite reverse;
}

.geo-square-1 {
    width: 180px;
    height: 180px;
    background: #319795;
    top: 30%;
    left: -40px;
    transform: rotate(45deg);
    animation: spin-slow 25s linear infinite;
}

.geo-square-2 {
    width: 120px;
    height: 120px;
    background: #12347D;
    bottom: 20%;
    right: 10%;
    transform: rotate(20deg);
    animation: spin-slow 20s linear infinite reverse;
}

.geo-triangle {
    width: 0;
    height: 0;
    border-left: 100px solid transparent;
    border-right: 100px solid transparent;
    border-bottom: 173px solid #38B2AC;
    top: 15%;
    right: 15%;
    animation: float-slow 18s ease-in-out infinite;
    opacity: 0.06;
}

/* ========================================
   Geometric Shapes — CTA
   ======================================== */
.cta-geo {
    position: absolute;
    pointer-events: none;
}

.cta-geo-1 {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: #319795;
    opacity: 0.1;
    top: -80px;
    left: -80px;
    animation: float-slow 16s ease-in-out infinite;
}

.cta-geo-2 {
    width: 200px;
    height: 200px;
    background: #12347D;
    opacity: 0.12;
    bottom: -60px;
    right: -60px;
    transform: rotate(30deg);
    animation: spin-slow 22s linear infinite;
}

/* ========================================
   Animations
   ======================================== */
@keyframes float-slow {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    33% { transform: translateY(-20px) rotate(3deg); }
    66% { transform: translateY(10px) rotate(-2deg); }
}

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

/* ========================================
   Scroll Reveal
   ======================================== */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), 
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal[data-revealed="false"] {
    opacity: 0;
    transform: translateY(30px);
}

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(30px);
    }
    
    .reveal[data-revealed="true"] {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   Navbar
   ======================================== */
#navbar.scrolled {
    background: rgba(2, 8, 24, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

/* ========================================
   Mobile menu
   ======================================== */
#mobile-menu {
    animation: slideDown 0.3s ease-out;
}

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

/* ========================================
   Selection
   ======================================== */
::selection {
    background: rgba(49, 151, 149, 0.4);
    color: #fff;
}

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

::-webkit-scrollbar-track {
    background: #020818;
}

::-webkit-scrollbar-thumb {
    background: #0A1F4A;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #12347D;
}
