/* ============================================
   Original IC — Custom Styles
   Premium Dark Luxury Theme
   ============================================ */

/* Base reset & smooth scrolling */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    overflow-x: hidden;
}

/* Selection color */
::selection {
    background-color: rgba(212, 154, 46, 0.3);
    color: #f5f5f5;
}

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

::-webkit-scrollbar-track {
    background: #050a14;
}

::-webkit-scrollbar-thumb {
    background: rgba(212, 154, 46, 0.3);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(212, 154, 46, 0.5);
}

/* ============================================
   Scroll Reveal Animations
   Progressive enhancement — content visible 
   by default, animated via JS
   ============================================ */
.reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), 
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        transition: none;
    }
    html {
        scroll-behavior: auto;
    }
    .scroll-dot {
        animation: none;
    }
}

/* ============================================
   Scroll Dot Animation
   ============================================ */
@keyframes scrollDot {
    0% {
        top: 0;
        opacity: 1;
    }
    100% {
        top: calc(100% - 12px);
        opacity: 0;
    }
}

.scroll-dot {
    animation: scrollDot 1.8s ease-in-out infinite;
}

/* ============================================
   Navbar glass effect
   ============================================ */
.nav-scrolled {
    background: rgba(5, 10, 20, 0.92) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(212, 154, 46, 0.1);
}

.nav-scrolled .menu-line {
    background: #fff !important;
}

.nav-scrolled .menu-line:last-child {
    background: #d49a2e !important;
}

/* ============================================
   Mobile menu transitions
   ============================================ */
.mobile-link {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease, color 0.3s ease;
}

body.menu-open .mobile-link {
    opacity: 1;
    transform: translateY(0);
}

body.menu-open .mobile-link:nth-child(1) { transition-delay: 0.05s; }
body.menu-open .mobile-link:nth-child(2) { transition-delay: 0.1s; }
body.menu-open .mobile-link:nth-child(3) { transition-delay: 0.15s; }
body.menu-open .mobile-link:nth-child(4) { transition-delay: 0.2s; }
body.menu-open .mobile-link:nth-child(5) { transition-delay: 0.25s; }

/* ============================================
   Hamburger animation
   ============================================ */
body.menu-open .menu-line:first-child {
    transform: rotate(45deg) translate(4px, 4px);
}

body.menu-open .menu-line:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

body.menu-open .menu-line:last-child {
    transform: rotate(-45deg) translate(4px, -4px);
    width: 24px;
    margin-right: 0;
}

/* ============================================
   Image hover parallax (subtle)
   ============================================ */
@media (prefers-reduced-motion: no-preference) {
    .reveal img {
        will-change: transform;
    }
}

/* ============================================
   Form focus styles
   ============================================ */
input:focus,
select:focus,
textarea:focus {
    outline: none;
}

/* ============================================
   Button ripple effect (subtle)
   ============================================ */
button, a {
    -webkit-tap-highlight-color: transparent;
}

/* ============================================
   Responsive adjustments
   ============================================ */
@media (max-width: 768px) {
    .reveal {
        transition-duration: 0.6s;
    }
}

@media (min-width: 1024px) {
    .reveal {
        transition-duration: 0.9s;
    }
}

/* ============================================
   Print styles
   ============================================ */
@media print {
    body {
        background: #fff !important;
        color: #000 !important;
    }
    
    .reveal {
        opacity: 1 !important;
        transform: none !important;
    }
}
