/* Custom Scrollbar - Hidden for Lenis smoothness */
::-webkit-scrollbar {
    width: 0px;
    background: transparent;
}

input::placeholder,
textarea::placeholder {
    color: #cbd5e1 !important;
    font-weight: 400 !important;
    opacity: 0.75;
}

/* Noise Overlay */
.noise-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    pointer-events: none;
    z-index: 9998;
    opacity: 0.03;
    background-image: url('data:image/svg+xml,%3Csvg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"%3E%3Cfilter id="noiseFilter"%3E%3CfeTurbulence type="fractalNoise" baseFrequency="0.8" numOctaves="3" stitchTiles="stitch"/%3E%3C/filter%3E%3Crect width="100%25" height="100%25" filter="url(%23noiseFilter)"/%3E%3C/svg%3E');
}

/* Marquee Animation */
@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
.marquee-content {
    animation: marquee 25s linear infinite;
    will-change: transform;
}

/* Scroll Progress Bar */
#scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, #D4AF37, #f5d76e);
    width: 0%;
    z-index: 9999;
    transition: width 0.1s linear;
}

/* Reduced Motion Support */
.reduce-motion .reveal,
.reduce-motion .reveal-card,
.reduce-motion .swiper-slide,
.reduce-motion .marquee-content,
.reduce-motion .split-text .char,
.reduce-motion .split-text .word,
.reduce-motion .split-text .line {
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    animation: none !important;
}

/* SplitType Line Masking */
.line {
    overflow: hidden;
    padding-bottom: 0.1em; /* Prevent descender clipping */
}

/* Glassmorphism Classes */
.glass-panel {
    background: rgba(31, 31, 31, 0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px border rgba(255, 255, 255, 0.05);
}

/* Apple-style Reveal Animations */
.reveal {
    opacity: 0;
    visibility: hidden;
    transition: none; /* GSAP handles transitions */
}

/* Premium Image Hover Effect (Glasstint Style) */
.hover-premium-scale:hover .tech-main-img {
    transform: scale(1.1);
}

.hover-premium-scale::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, transparent 30%, rgba(212, 175, 55, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.7s ease;
    pointer-events: none;
}

.hover-premium-scale:hover::after {
    opacity: 1;
}

/* Mobile Drawer Styles */
#mobile-drawer.active {
    pointer-events: auto;
}

#mobile-drawer.active #drawer-overlay {
    opacity: 1;
}

#mobile-drawer.active #drawer-content {
    transform: translateX(0);
}

/* Swiper Customization */
.product-swiper {
    overflow: visible !important;
}

.swiper-slide {
    height: auto;
}

@media (max-width: 768px) {
    .swiper-slide {
        width: 100% !important; /* 모바일에서 꽉 찬 화면 */
    }
    
    /* 모바일에서 네비게이션 버튼 숨김 */
    .swiper-prev, .swiper-next {
        display: none !important;
    }

    /* 카드 내부 패딩 조정 (모바일) */
    .reveal-card > div {
        padding: 2rem !important;
        border-radius: 2rem !important;
    }
}

/* 3D Ambient Glow Background */
.ambient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.6;
    mix-blend-mode: screen;
    will-change: transform;
}
.orb-1 {
    width: 60vw; height: 60vw;
    background: radial-gradient(circle, rgba(212,175,55,0.2) 0%, rgba(212,175,55,0) 70%);
    top: -20%; left: -10%;
    animation: orb-float-1 20s infinite alternate ease-in-out;
}
.orb-2 {
    width: 80vw; height: 80vw;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, rgba(0,0,0,0) 70%);
    bottom: -30%; right: -20%;
    animation: orb-float-2 25s infinite alternate ease-in-out;
}
.orb-3 {
    width: 50vw; height: 50vw;
    background: radial-gradient(circle, rgba(212,175,55,0.15) 0%, rgba(0,0,0,0) 70%);
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    animation: orb-float-3 30s infinite alternate ease-in-out;
}

@keyframes orb-float-1 {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(10vw, 5vw) scale(1.2); }
}
@keyframes orb-float-2 {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(-10vw, -15vw) scale(1.1); }
}
@keyframes orb-float-3 {
    0% { transform: translate(-50%, -50%) scale(1); }
    100% { transform: translate(-30%, -70%) scale(1.3); }
}

/* Lenis Recommended CSS for smooth scrolling */
html.lenis, html.lenis body {
  height: auto;
}
.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}
.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}
.lenis.lenis-stopped {
  overflow: hidden;
}
.lenis.lenis-scrolling iframe {
  pointer-events: none;
}
