/* Custom Styles for Cinnamon Sticks Cafe */

/* Base & Typography */
html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Space Grotesk', sans-serif;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Syne', sans-serif;
}

/* Geometric Background Shapes */
.geometric-shape {
    position: absolute;
    pointer-events: none;
}

.circle-teal {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, #14b8a6 0%, transparent 70%);
    border-radius: 50%;
}

.triangle-slate {
    width: 0;
    height: 0;
    border-left: 80px solid transparent;
    border-right: 80px solid transparent;
    border-bottom: 140px solid #1e293b;
    opacity: 0.08;
}

.circle-slate {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, #1e293b 0%, transparent 70%);
    border-radius: 50%;
}

.square-teal {
    width: 100px;
    height: 100px;
    background: #14b8a6;
    border-radius: 20px;
}

.triangle-teal {
    width: 0;
    height: 0;
    border-left: 60px solid transparent;
    border-right: 60px solid transparent;
    border-bottom: 100px solid #14b8a6;
    opacity: 0.08;
}

/* Marquee Animation */
@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.animate-marquee {
    animation: marquee 30s linear infinite;
}

/* Navbar */
#navbar {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: all duration-500;
}

#navbar.scrolled {
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
}

/* Nav Links */
.nav-link {
    position: relative;
}

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

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

/* Mobile Menu */
.mobile-nav-link {
    position: relative;
}

.mobile-nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: #14b8a6;
    transition: width 0.3s ease;
}

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

#mobile-menu.open {
    transform: translateX(0);
}

/* Menu Lines Animation */
.menu-line {
    transition: all 0.3s ease;
}

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

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

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

/* Specialty Cards */
.specialty-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

.reveal.hidden {
    opacity: 0;
    transform: translateY(30px);
}

/* Smooth Image Loading */
img {
    transition: opacity 0.3s ease;
}

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

img.loaded {
    opacity: 1;
}

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

/* Selection */
::selection {
    background: #14b8a6;
    color: white;
}

/* 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;
    }
    
    .animate-marquee {
        animation: none;
    }
    
    .reveal.hidden {
        opacity: 1;
        transform: none;
    }
}

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

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

::-webkit-scrollbar-thumb {
    background: #94a3b8;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #64748b;
}

/* Print Styles */
@media print {
    .fixed,
    .geometric-shape,
    .animate-float,
    .animate-float-delayed,
    .animate-spin-slow,
    .animate-spin-reverse {
        display: none !important;
    }
}
