/* ============================================
   CSHeart Dorpers — Custom Styles
   Premium Dark Luxury | Teal + Slate + Gold
   ============================================ */

/* --- Base & Typography --- */
html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    overflow-x: hidden;
}

::selection {
    background-color: rgba(212, 168, 67, 0.3);
    color: #f8fafc;
}

/* --- Scrollbar --- */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #020617;
}
::-webkit-scrollbar-thumb {
    background: #1e293b;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #334155;
}

/* --- Hero Animation --- */
.hero-content {
    opacity: 0;
    transform: translateY(30px);
    animation: heroFadeIn 1s ease-out 0.3s forwards;
}

@keyframes heroFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Scroll Reveal --- */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), 
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

/* --- Navbar --- */
.nav-scrolled {
    background: rgba(2, 6, 23, 0.95) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(212, 168, 67, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav-scrolled .logo-text {
    color: #f8fafc;
}

/* --- Button Ripple --- */
button, a {
    position: relative;
    overflow: hidden;
}

/* --- Gold Gradient Text Utility --- */
.text-gold-gradient {
    background: linear-gradient(135deg, #f5d78a 0%, #d4a843 50%, #b8860b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* --- Card Hover Glow --- */
.service-card:hover {
    box-shadow: 0 0 40px rgba(212, 168, 67, 0.08), 
                0 20px 40px rgba(0, 0, 0, 0.3);
}

/* --- Input Focus States --- */
input:focus, textarea:focus, select:focus {
    outline: none;
    box-shadow: 0 0 0 1px rgba(212, 168, 67, 0.3);
}

/* --- Mobile Menu Animation --- */
#mobileMenu {
    animation: slideDown 0.3s ease-out;
}

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

/* --- Mobile Menu Links --- */
.mobile-menu-link {
    display: block;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(51, 65, 85, 0.3);
}

.mobile-menu-link:last-child {
    border-bottom: none;
}

/* --- Step Connector Lines --- */
.step-connector {
    position: absolute;
    top: 40px;
    left: calc(50% + 20px);
    width: calc(100% - 40px);
    height: 2px;
    background: linear-gradient(90deg, rgba(212, 168, 67, 0.4), transparent);
}

/* --- Image Hover Zoom --- */
.img-zoom {
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.img-zoom:hover {
    transform: scale(1.03);
}

/* --- Decorative Pulse --- */
@keyframes softPulse {
    0%, 100% {
        opacity: 0.4;
    }
    50% {
        opacity: 0.8;
    }
}

.pulse-decor {
    animation: softPulse 4s ease-in-out infinite;
}

/* --- Responsive Adjustments --- */
@media (max-width: 768px) {
    .font-display {
        line-height: 1.1;
    }
}

@media (min-width: 1024px) {
    .service-card {
        transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                    box-shadow 0.4s ease;
    }
    
    .service-card:hover {
        transform: translateY(-4px);
    }
}
