@charset "UTF-8";

/* Global Settings */
.text-theme-green {
    --tw-text-opacity: 1;
    color: rgb(20 179 20);
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    color: #4a4a4a;
    background-color: #fafafa;
    /* user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none; */
    overflow-x: hidden;
    width: 100%;
}

/* Section Spacing - Using padding instead of margin to prevent background color gaps */
.section-spacing {
    padding-top: 60px;
    padding-bottom: 60px;
}

@media (min-width: 768px) {
    .section-spacing {
        padding-top: 120px;
        padding-bottom: 120px;
    }
}

/* Swiper Fade Effect Fix */
.swiper-slide {
    transition: opacity 0.5s ease;
}

/* FV Swiper */
.fv-swiper,
.fv-swiper .swiper-slide {
    height: auto !important;
}

.fv-swiper img {
    width: 100% !important;
    height: auto !important;
    object-fit: contain !important;
    /* Ensure no cropping */
}

/* Gallery Swiper */
.gallery-swiper img {
    border-radius: 0 !important;
    box-shadow: none !important;
}

/* Voice Swiper */
.voice-swiper .swiper-slide {
    width: 90%;
    max-width: 350px;
}

.voice-swiper .swiper-slide {
    height: auto;
}

/* Text Shadow for image overlays */
.text-shadow {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* Modal */
#image-modal {
    backdrop-filter: blur(5px);
}

#modal-img {
    max-width: 90vw;
    max-height: 90vh;
}

/* Hamburger Menu Animation */
#hamburger.open span:nth-child(1) {
    transform: translateY(10.5px) rotate(45deg);
}

#hamburger.open span:nth-child(2) {
    opacity: 0;
    transform: translateX(20px);
}

#hamburger.open span:nth-child(3) {
    transform: translateY(-10.5px) rotate(-45deg);
}

/* Mobile Menu Slide */
#sp-menu.open {
    transform: translateX(0);
}

/* Professional Nav Underline Effect */
.nav-link {
    position: relative;
    padding-bottom: 4px;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: 0;
    left: 0;
    background-color: var(--swiper-theme-color);
    transition: width 0.3s ease;
}

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

/* Header Sticky State - More Refined Transition */
#header.scrolled {
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

/* Brand Logo Subtitle Styling */
.logo-subtitle {
    display: block;
}

/* Custom Utilities for Asymmetry & Polishing */
.tracking-widest {
    letter-spacing: 0.1em;
}

/* Remove default shadow/radius as per instruction */
img {
    border-radius: 0;
    box-shadow: none;
}

/* Button Hover Effects */
a,
button {
    transition: all 0.3s ease;
}

/* Asymmetric Layout Tweaks */
@media (min-width: 768px) {
    #about .flex-row img {
        margin-top: 40px;
        /* Offset image slightly */
    }
}

/* Hide Scrollbar for SP Menu */
#sp-menu {
    overflow-y: auto;
}

/* Scroll Reveal Animations */
.reveal {
    opacity: 0;
    transition: all 1.2s cubic-bezier(0.2, 0.8, 0.2, 1);
    will-change: transform, opacity;
}

.reveal-fade {
    transform: translateY(0);
}

.reveal-up {
    transform: translateY(40px);
}

.reveal-left {
    transform: translateX(-40px);
}

.reveal-right {
    transform: translateX(40px);
}

.reveal.active {
    opacity: 1;
    transform: translate(0, 0);
}

/* Delay Utlities */
.delay-100 {
    transition-delay: 100ms;
}

.delay-200 {
    transition-delay: 200ms;
}

.delay-300 {
    transition-delay: 300ms;
}

.delay-400 {
    transition-delay: 400ms;
}

.delay-500 {
    transition-delay: 500ms;
}

/* Swiper Pagination Custom Colors */
:root {
    --swiper-theme-color: rgb(20 179 20);
    --swiper-pagination-bullet-inactive-color: #e5e5e5;
}

/* Mobile Specific Overrides */
@media (max-width: 767px) {
    .p-6 {
        padding: 1rem !important;
    }

    .text-xl {
        font-size: 1rem !important;
        line-height: 1.75rem !important;
    }
}

/* Subtle Texture Background Patterns */
.bg-pattern-linen {
    background-color: #ffffff;
    background-image: 
        linear-gradient(90deg, rgba(0, 0, 0, 0.03) 1px, transparent 1px),
        linear-gradient(rgba(0, 0, 0, 0.03) 1px, transparent 1px);
    background-size: 30px 30px;
}

.bg-pattern-washi {
    background-color: #fafafa;
    background-image: 
        radial-gradient(rgba(0, 0, 0, 0.03) 1px, transparent 1px),
        radial-gradient(rgba(0, 0, 0, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    background-position: 0 0, 20px 20px;
}