/* =============================================
   VILMED — Premium Medical & Health Website
   Plum + Amber Dark Luxury Theme
   ============================================= */

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

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

body {
    overflow-x: hidden;
}

::selection {
    background: rgba(212, 168, 83, 0.3);
    color: #f5f0f7;
}

/* ---------- Navbar ---------- */
#navbar {
    background: transparent;
    transition: background 0.4s ease, box-shadow 0.4s ease, backdrop-filter 0.4s ease;
}

#navbar.scrolled {
    background: rgba(10, 6, 18, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(212, 168, 83, 0.1), 0 4px 30px rgba(0, 0, 0, 0.4);
}

/* ---------- Hero ---------- */
.hero-orb {
    animation: orbFloat 8s ease-in-out infinite;
}

.orb-1 {
    animation-delay: 0s;
}

.orb-2 {
    animation-delay: -3s;
}

.orb-3 {
    animation-delay: -5s;
}

@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -20px) scale(1.05); }
    66% { transform: translate(-20px, 15px) scale(0.95); }
}

.hero-badge {
    animation: fadeSlideDown 0.8s ease forwards;
    opacity: 0;
}

.hero-headline {
    animation: fadeSlideUp 0.8s ease 0.2s forwards;
    opacity: 0;
}

.hero-sub {
    animation: fadeSlideUp 0.8s ease 0.4s forwards;
    opacity: 0;
}

.hero-cta {
    animation: fadeSlideUp 0.8s ease 0.6s forwards;
    opacity: 0;
}

.hero-scroll {
    animation: fadeSlideUp 0.8s ease 0.8s forwards;
    opacity: 0;
}

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

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

/* ---------- Service Tags ---------- */
.service-tag {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.service-tag::before {
    content: '';
    width: 24px;
    height: 1px;
    background: linear-gradient(90deg, transparent, #d4a853);
}

.service-tag::after {
    content: '';
    width: 24px;
    height: 1px;
    background: linear-gradient(90deg, #d4a853, transparent);
}

/* ---------- Scroll Dot ---------- */
.scroll-dot {
    animation: scrollBounce 1.5s ease-in-out infinite;
}

@keyframes scrollBounce {
    0%, 100% { top: 0; opacity: 1; }
    50% { top: calc(100% - 12px); opacity: 0.4; }
}

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

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #d4a853, transparent);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.service-card:hover::before {
    opacity: 1;
}

/* ---------- Feature Cards ---------- */
.feature-card {
    position: relative;
    overflow: hidden;
}

.feature-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #d4a853, transparent);
    transition: width 0.5s ease;
}

.feature-card:hover::after {
    width: 80%;
}

/* ---------- About Image ---------- */
.about-image-wrapper {
    position: relative;
}

.about-content {
    opacity: 1;
}

/* ---------- Form ---------- */
input:focus,
select:focus,
textarea:focus {
    border-color: rgba(212, 168, 83, 0.6) !important;
    box-shadow: 0 0 0 3px rgba(212, 168, 83, 0.1) !important;
}

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

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

#mobileMenu.closed {
    opacity: 0;
    pointer-events: none;
}

/* ---------- Mobile Menu Button ---------- */
.menu-line {
    transition: transform 0.3s ease, opacity 0.3s ease;
}

#menuBtn.active .menu-line:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

#menuBtn.active .menu-line:nth-child(2) {
    opacity: 0;
}

#menuBtn.active .menu-line:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

/* ---------- Mobile Links ---------- */
.mobile-link {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

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

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

/* ---------- Scroll Reveal (below fold only) ---------- */
.reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

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

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    html {
        scroll-behavior: auto;
    }
    .reveal {
        opacity: 1;
        transform: none;
    }
}

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

@media (min-width: 768px) and (max-width: 1023px) {
    .service-card {
        padding: 1.5rem;
    }
}
