/* Mona Sans Expanded Bold - Static Font */
@font-face {
    font-family: 'Mona Sans Expanded';
    src: url('../fonts/MonaSansExpanded-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* Mona Sans Expanded SemiBold - Static Font */
@font-face {
    font-family: 'Mona Sans Expanded';
    src: url('../fonts/MonaSansExpanded-SemiBold.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

/* Mona Sans Expanded Medium - Static Font */
@font-face {
    font-family: 'Mona Sans Expanded';
    src: url('../fonts/MonaSansExpanded-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

/* Base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Zen Kaku Gothic New', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Custom utilities */
.letter-spacing-tight {
    letter-spacing: -0.032em;
}

.letter-spacing-smooch {
    letter-spacing: -0.029em;
}

/* Hero Section - Smooch font style */
.hero-smooch {
    line-height: 0.9em;
    letter-spacing: -0.0287em;
}

/* Hero Section - Mona Sans Expanded style */
.hero-mona {
    font-family: 'Mona Sans Expanded', sans-serif;
    line-height: 0.9em;
    letter-spacing: -0.0319em;
    font-weight: 700;
}

/* Hero Section - Description style */
.hero-description {
    line-height: 1.67em;
}

/* Hero section custom styles */
.hero-image-placeholder {
    background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%);
}

.business-image-placeholder {
    background: linear-gradient(135deg, #D2FF00 0%, #b8e600 100%);
}

/* Smooth transitions */
a, button {
    transition: all 0.3s ease;
}

/* Custom button hover effects */
.hover-lift:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Responsive text adjustments */
@media (max-width: 768px) {
    .font-smooch {
        line-height: 0.85;
    }

    .font-mona {
        letter-spacing: -0.02em;
    }
}

/* Fixed header shadow on scroll */
header {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* Custom scrollbar - Desktop only */
@media (min-width: 1024px) {
    ::-webkit-scrollbar {
        width: 10px;
    }

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

    ::-webkit-scrollbar-thumb {
        background: #D2FF00;
        border-radius: 5px;
    }

    ::-webkit-scrollbar-thumb:hover {
        background: #b8e600;
    }
}

/* Hide scrollbar on mobile */
@media (max-width: 1023px) {
    html {
        scrollbar-width: none; /* Firefox */
    }

    html::-webkit-scrollbar {
        display: none; /* Chrome, Safari, Edge */
    }

    body {
        -ms-overflow-style: none; /* IE and Edge */
    }
}

/* Mobile menu styles */
#mobile-menu {
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

/* Modal backdrop blur */
body.modal-open > *:not(#contact-modal) {
    filter: blur(8px);
    transition: filter 0.3s ease;
}

body.modal-open {
    overflow: hidden;
}

#mobile-menu.hidden {
    display: none;
}

#mobile-menu:not(.hidden) {
    display: block;
    animation: slideDown 0.3s ease;
}

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

/* Image placeholder animations */
@keyframes pulse-subtle {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.9;
    }
}

.hero-image-placeholder,
.business-image-placeholder {
    animation: pulse-subtle 3s ease-in-out infinite;
}

/* Section spacing consistency */
section {
    scroll-margin-top: 100px;
}

/* Typography fine-tuning */
.font-zen {
    font-feature-settings: 'palt' 1;
}

.font-mona {
    font-family: 'Mona Sans Expanded', sans-serif;
}

h1, h2, h3, h4, h5, h6 {
    font-feature-settings: 'palt' 1;
}

/* Link hover effects */
nav a:hover {
    background-color: rgba(210, 255, 0, 0.1);
}

/* Contact button margin */
nav a[href="#contact"] {
    margin-right: 0;
}

/* Button shadow effects */
button, .btn {
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(0, 0, 0, 0.1);
}

button:hover, .btn:hover {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), 0 2px 4px rgba(0, 0, 0, 0.06);
}

/* Accent color highlights */
.accent-underline {
    position: relative;
}

.accent-underline::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 3px;
    background: #D2FF00;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.accent-underline:hover::after {
    transform: scaleX(1);
}

/* Responsive container adjustments */
@media (min-width: 1440px) {
    .max-w-\[1440px\] {
        padding-left: 0;
        padding-right: 0;
    }
}

/* Print styles */
@media print {
    header {
        position: relative;
    }

    .no-print {
        display: none;
    }
}

/* ===== Scroll Reveal Animations ===== */

/* Initial hidden state */
[data-animate] {
    opacity: 0;
    transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Fade up */
[data-animate="fade-up"] {
    transform: translateY(40px);
}

/* Fade down */
[data-animate="fade-down"] {
    transform: translateY(-40px);
}

/* Fade left */
[data-animate="fade-left"] {
    transform: translateX(40px);
}

/* Fade right */
[data-animate="fade-right"] {
    transform: translateX(-40px);
}

/* Scale in */
[data-animate="scale-in"] {
    transform: scale(0.9);
}

/* Fade in only */
[data-animate="fade-in"] {
    transform: none;
}

/* Animated state */
[data-animate].animated {
    opacity: 1;
    transform: translateY(0) translateX(0) scale(1);
}

/* Stagger delays */
[data-delay="100"] { transition-delay: 0.1s; }
[data-delay="200"] { transition-delay: 0.2s; }
[data-delay="300"] { transition-delay: 0.3s; }
[data-delay="400"] { transition-delay: 0.4s; }
[data-delay="500"] { transition-delay: 0.5s; }
[data-delay="600"] { transition-delay: 0.6s; }
[data-delay="700"] { transition-delay: 0.7s; }
[data-delay="800"] { transition-delay: 0.8s; }

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    [data-animate] {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* ===== Loading Screen ===== */
#loading-screen {
    transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

#loading-screen.slide-up {
    transform: translateY(-100%);
}

/* Spinner */
.loading-spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    margin-left: -70px;
    margin-top: -70px;
    animation: rotate 1.4s linear infinite;
}

.spinner-circle {
    stroke-dasharray: 420;
    stroke-dashoffset: 0;
    transform-origin: center;
    animation: dash 1.4s ease-in-out infinite;
}

@keyframes rotate {
    100% {
        transform: rotate(360deg);
    }
}

@keyframes dash {
    0% {
        stroke-dasharray: 1, 420;
        stroke-dashoffset: 0;
    }
    50% {
        stroke-dasharray: 315, 420;
        stroke-dashoffset: -105;
    }
    100% {
        stroke-dasharray: 1, 420;
        stroke-dashoffset: -420;
    }
}

@keyframes fadeOut {
    to {
        opacity: 0;
        visibility: hidden;
    }
}

/* Header accent background responsive behavior */
.header-accent-bg {
    width: 550px;
    max-width: 550px;
}

@media (max-width: 1400px) {
    .header-accent-bg {
        width: calc(100vw - 850px);
        max-width: 550px;
        min-width: 250px;
    }
}

@media (max-width: 1023px) {
    .header-accent-bg {
        width: 100vw;
        max-width: 100vw;
        min-width: 100vw;
    }
}

/* Hero SVG responsive behavior */
.hero-svg-bg {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 30px;
    width: 2082px;
    height: 685px;
    max-width: none;
    opacity: 0.7;
}

/* Header content responsive spacing */
@media (max-width: 1400px) {
    header .max-w-\[1280px\] {
        max-width: 100%;
    }
}

@media (min-width: 1024px) and (max-width: 1400px) {
    header .lg\:px-20 {
        padding-left: 80px !important;
        padding-right: 80px !important;
    }
}

@media (min-width: 2000px) {
    .hero-svg-bg {
        left: 0;
        transform: translateX(0);
        width: 100%;
        height: 100%;
        object-fit: fill;
    }
}

/* ===== Hero Animation ===== */
@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero-text-group-1 {
    opacity: 0;
}

.hero-text-group-2 {
    opacity: 0;
}

.hero-description-group {
    opacity: 0;
}

/* Start animations only after loading completes */
body.loading-complete .hero-text-group-1 {
    animation: slideInFromLeft 1.6s cubic-bezier(0.22, 1, 0.36, 1) 0.3s forwards;
}

body.loading-complete .hero-text-group-2 {
    animation: slideInFromLeft 1.6s cubic-bezier(0.22, 1, 0.36, 1) 0.8s forwards;
}

body.loading-complete .hero-description-group {
    animation: fadeIn 1.6s cubic-bezier(0.22, 1, 0.36, 1) 1.3s forwards;
}

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