/* ============================================
   Coffee Revolution — Custom Styles
   ============================================ */

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
    background: #0d9488;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #0f766e;
}

/* ============================================
   Navigation
   ============================================ */
.nav-header {
    transition: box-shadow 0.3s ease;
}

.nav-header.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: #0d9488;
    transition: width 0.2s ease;
    border-radius: 1px;
}

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

/* Mobile menu button animation */
.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: scaleX(0);
}
.mobile-menu-btn.active .menu-line:nth-child(3) {
    transform: translateY(-5px) rotate(-45deg);
    width: 1.375rem;
}

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

/* ============================================
   Hero
   ============================================ */
.hero {
    background: linear-gradient(135deg, #f8fafc 0%, #f0fdfa 50%, #f8fafc 100%);
    position: relative;
}

/* ============================================
   Geometric Decorations
   ============================================ */
.geo-circle {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.geo-square {
    position: absolute;
    pointer-events: none;
}

.geo-triangle {
    position: absolute;
    pointer-events: none;
}

.geo-dots {
    position: absolute;
    width: 80px;
    height: 80px;
    background-image: radial-gradient(circle, #0d9488 1.5px, transparent 1.5px);
    background-size: 12px 12px;
    opacity: 0.15;
    pointer-events: none;
}

.geo-circle-1 {
    width: 420px;
    height: 420px;
    background: radial-gradient(circle, rgba(13, 148, 136, 0.08) 0%, transparent 70%);
    top: -100px;
    right: -100px;
}

.geo-circle-2 {
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(13, 148, 136, 0.06) 0%, transparent 70%);
    bottom: 10%;
    left: 5%;
}

.geo-square-1 {
    width: 120px;
    height: 120px;
    background: rgba(13, 148, 136, 0.06);
    border-radius: 24px;
    top: 20%;
    left: 8%;
    transform: rotate(25deg);
}

.geo-triangle-1 {
    width: 0;
    height: 0;
    border-left: 50px solid transparent;
    border-right: 50px solid transparent;
    border-bottom: 86px solid rgba(13, 148, 136, 0.05);
    top: 35%;
    right: 10%;
    transform: rotate(-15deg);
}

.geo-dots {
    bottom: 25%;
    right: 15%;
}

/* About section decorations */
.geo-circle-3 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(13, 148, 136, 0.12) 0%, transparent 70%);
    bottom: -150px;
    right: -100px;
}

.geo-square-2 {
    width: 150px;
    height: 150px;
    background: rgba(13, 148, 136, 0.08);
    border-radius: 32px;
    top: 10%;
    left: -40px;
    transform: rotate(15deg);
}

/* Visit section decorations */
.geo-circle-4 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
    top: -80px;
    left: -80px;
}

.geo-square-3 {
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    bottom: 15%;
    right: 5%;
    transform: rotate(30deg);
}

/* Footer decoration */
.geo-circle-5 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(13, 148, 136, 0.08) 0%, transparent 70%);
    top: -100px;
    right: -100px;
}

/* ============================================
   Menu Cards
   ============================================ */
.menu-card {
    background: white;
    border-radius: 24px;
    padding: 8px;
    border: 1px solid #f1f5f9;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.menu-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
}

/* ============================================
   Buttons
   ============================================ */
.btn-primary {
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    transition: left 0.5s ease;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:active {
    transform: scale(0.97);
}

.btn-secondary {
    position: relative;
}

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

/* Progressive enhancement — hidden by default, revealed by JS */
@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal {
        opacity: 0;
        transform: translateY(30px);
    }

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

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

@keyframes float-reverse {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(12px) rotate(-2deg); }
}

.geo-square-1 {
    animation: float 6s ease-in-out infinite;
}

.geo-triangle-1 {
    animation: float-reverse 7s ease-in-out infinite;
}

.geo-square-2 {
    animation: float 8s ease-in-out infinite;
}

/* ============================================
   Focus Styles
   ============================================ */
:focus-visible {
    outline: 2px solid #0d9488;
    outline-offset: 2px;
}

/* ============================================
   Form Styles
   ============================================ */
input:focus,
textarea:focus {
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.1);
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 767px) {
    .geo-circle-1 {
        width: 250px;
        height: 250px;
    }

    .geo-square-1 {
        width: 80px;
        height: 80px;
    }

    .geo-triangle-1 {
        border-left: 30px solid transparent;
        border-right: 30px solid transparent;
        border-bottom: 52px solid rgba(13, 148, 136, 0.05);
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .geo-circle-1 {
        width: 350px;
        height: 350px;
    }
}
