/* ============================================
   COMMERCIAL MANAGEMENT SERVICES
   Premium Dark Luxury Theme
   ============================================ */

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

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

body {
    overflow-x: hidden;
}

::selection {
    background: rgba(201, 168, 76, 0.3);
    color: #E8D5B7;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0D0D0D;
}
::-webkit-scrollbar-thumb {
    background: #C9A84C40;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #C9A84C70;
}

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes scrollPulse {
    0%, 100% {
        opacity: 0.4;
        transform: scaleY(1);
    }
    50% {
        opacity: 1;
        transform: scaleY(1.2);
    }
}

.scroll-line {
    animation: scrollPulse 2s ease-in-out infinite;
    transform-origin: top;
}

/* ============================================
   NAVBAR
   ============================================ */

#navbar {
    background: transparent;
    transition: background 0.4s ease, backdrop-filter 0.4s ease, padding 0.4s ease;
}

#navbar.scrolled {
    background: rgba(13, 13, 13, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(201, 168, 76, 0.1);
}

#navbar.scrolled .menu-line {
    background: #E8D5B7;
}

/* Mobile Menu */
#mobileMenu {
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

#mobileMenu.active {
    opacity: 1;
    pointer-events: all;
}

.mobile-link {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: 2rem;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease, color 0.3s ease;
}

#mobileMenu.active .mobile-link {
    opacity: 1;
    transform: translateY(0);
}

#mobileMenu.active .mobile-link:nth-child(1) { transition-delay: 0.1s; }
#mobileMenu.active .mobile-link:nth-child(2) { transition-delay: 0.15s; }
#mobileMenu.active .mobile-link:nth-child(3) { transition-delay: 0.2s; }
#mobileMenu.active .mobile-link:nth-child(4) { transition-delay: 0.25s; }

/* Menu Button States */
#menuBtn.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(3.5px, 3.5px);
}
#menuBtn.active .menu-line:nth-child(2) {
    opacity: 0;
}
#menuBtn.active .menu-line:nth-child(3) {
    width: 7;
    transform: rotate(-45deg) translate(3.5px, -3.5px);
}

/* ============================================
   HERO
   ============================================ */

.hero-bg {
    will-change: transform;
}

.hero-overlay {
    background:
        linear-gradient(180deg,
            rgba(13, 13, 13, 0.65) 0%,
            rgba(13, 13, 13, 0.55) 50%,
            rgba(13, 13, 13, 0.95) 100%
        ),
        linear-gradient(90deg,
            rgba(13, 13, 13, 0.4) 0%,
            transparent 60%
        );
}

/* ============================================
   SCROLL REVEAL
   ============================================ */

.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

/* Default state for reduced motion - always visible */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* ============================================
   SERVICE CARDS
   ============================================ */

.service-card {
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                border-color 0.5s ease,
                box-shadow 0.5s ease;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4),
                0 0 40px rgba(201, 168, 76, 0.05);
}

/* ============================================
   TESTIMONIAL CARDS
   ============================================ */

.testimonial-card {
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                border-color 0.5s ease,
                box-shadow 0.5s ease;
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3);
}

/* ============================================
   CTA SECTION
   ============================================ */

.cta-bg {
    will-change: transform;
}

/* ============================================
   FORM STYLES
   ============================================ */

input:focus,
select:focus,
textarea:focus {
    border-color: rgba(201, 168, 76, 0.6) !important;
    box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.08);
}

input::placeholder,
textarea::placeholder {
    color: rgba(232, 213, 183, 0.25);
}

select option {
    background: #1A1A1A;
    color: #E8D5B7;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
    .font-serif {
        line-height: 1.15;
    }

    #hero h1 {
        font-size: 2.75rem;
    }

    .service-card {
        padding: 1.5rem !important;
    }

    /* Hide decorative elements on mobile */
    .absolute.top-24.left-8,
    .absolute.bottom-32.right-8,
    .absolute.top-1/3.right-16 {
        display: none;
    }
}

@media (max-width: 640px) {
    #hero h1 {
        font-size: 2.25rem;
    }
}

/* ============================================
   FOCUS VISIBLE
   ============================================ */

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 2px solid rgba(201, 168, 76, 0.8);
    outline-offset: 2px;
}

/* ============================================
   LOADING STATE
   ============================================ */

/* Ensure hero is visible immediately */
#hero {
    opacity: 1;
}
