/* ========================================
   Divine Studio — Custom Styles
   ======================================== */

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
}

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

body {
    overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #faf8f5;
}
::-webkit-scrollbar-thumb {
    background: #d4c4a8;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #c4aa82;
}

/* ========================================
   Navbar
   ======================================== */
#navbar {
    transition: background-color 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease;
}

#navbar.scrolled {
    background-color: rgba(9, 16, 30, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(255,255,255,0.05);
}

#navbar.scrolled #nav-logo {
    color: #ffffff !important;
}

/* ========================================
   Service Cards
   ======================================== */
.service-card {
    position: relative;
    overflow: hidden;
}

.service-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #d9522a, #f8c4b0);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.service-card:hover::after {
    transform: scaleX(1);
}

/* ========================================
   Gallery
   ======================================== */
#gallery .rounded-2xl {
    cursor: pointer;
}

#gallery .rounded-2xl img {
    transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

#gallery .rounded-2xl:hover img {
    transform: scale(1.05);
}

/* ========================================
   Testimonials
   ======================================== */
#testimonials .bg-white {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#testimonials .bg-white:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(217, 82, 42, 0.1);
}

/* ========================================
   Form
   ======================================== */
#contact-form input,
#contact-form select,
#contact-form textarea {
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

#contact-form input:focus,
#contact-form select:focus,
#contact-form textarea:focus {
    border-color: #d9522a;
    box-shadow: 0 0 0 3px rgba(217, 82, 42, 0.15);
}

/* ========================================
   Scroll Reveal Animations
   (progressive enhancement — content is visible without JS)
   ======================================== */
@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 1;
        transform: translateY(0);
        transition: opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }
    
    .reveal.revealed {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Reduced motion — keep everything visible */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
    html {
        scroll-behavior: auto;
    }
}

/* ========================================
   Mobile Menu Transitions
   ======================================== */
#mobile-menu {
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

#mobile-menu.closed {
    transform: translateX(100%);
}

/* ========================================
   Scroll Indicator Animation
   ======================================== */
@keyframes scrollBounce {
    0%, 100% { transform: translateY(0); opacity: 0.4; }
    50% { transform: translateY(6px); opacity: 1; }
}

.scroll-indicator {
    animation: scrollBounce 2s ease-in-out infinite;
}

/* ========================================
   Floating Accent Pulse
   ======================================== */
@keyframes softPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.03); }
}

.floating-accent {
    animation: softPulse 4s ease-in-out infinite;
}

/* ========================================
   Utility
   ======================================== */
.text-balance {
    text-wrap: balance;
}

/* Selection color */
::selection {
    background-color: rgba(217, 82, 42, 0.2);
    color: #1a2744;
}
