/* ============================================= */
/* YurgaPack — Premium Industrial Theme          */
/* ============================================= */

/* --- CSS Custom Properties --- */
:root {
    --primary: #0a1628;
    --primary-light: #132240;
    --secondary: #f5f5f7;
    --accent: #f59e0b;
    --accent-hover: #d97706;
    --accent-light: rgba(245,158,11,0.1);
    --white: #ffffff;
    --light: #f8f9fa;
    --dark: #0a0a0f;
    --gray: #6b7280;
    --gray-light: #9ca3af;
    --border: #e5e7eb;
    --border-light: #f3f4f6;
    --text-dark: #111827;
    --text-dark-secondary: #6b7280;
    --font-primary: 'Inter', system-ui, -apple-system, sans-serif;
    --font-secondary: 'Inter', system-ui, -apple-system, sans-serif;
    --radius: 8px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
    --shadow: 0 4px 20px rgba(0,0,0,0.08);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.12);
    --shadow-xl: 0 20px 60px rgba(0,0,0,0.15);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dark Mode — defaults based on site primary #0a1628 */
html[data-theme="dark"] {
    --primary: #0a1628;
    --primary-light: #132240;
    --secondary: #152035;
    --white: #0a1628;
    --light: #152035;
    --dark: #f8fafc;
    --text-dark: #e2e8f0;
    --text-dark-secondary: #94a3b8;
    --border: #253552;
    --border-light: #121e33;
    --gray: #94a3b8;
    --card-bg: #152035;
    --heading: #f1f5f9;
    --text-muted: #94a3b8;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.2);
    --shadow: 0 4px 20px rgba(0,0,0,0.3);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.4);
}

/* Dark Mode — Component Overrides (uses CSS variables for auto-adapt to admin primary) */
[data-theme="dark"] body { background: var(--white); color: var(--text-dark); }

/* Navbar */
[data-theme="dark"] .navbar-main { background: var(--white); border-bottom-color: rgba(255,255,255,0.06); }
[data-theme="dark"] .navbar-main.scrolled { background: var(--white); }
[data-theme="dark"] .navbar-brand { color: var(--text-dark) !important; }
[data-theme="dark"] .navbar-toggler { color: var(--text-dark); }

/* Flyout menus */
[data-theme="dark"] .flyout-menu { background: var(--light); border-color: var(--border); }
[data-theme="dark"] .flyout-item { color: var(--text-dark) !important; }
[data-theme="dark"] .flyout-item:hover { background: rgba(245,158,11,0.1); }

/* Service Cards */
[data-theme="dark"] .service-card { background: var(--light); border-color: var(--border); }
[data-theme="dark"] .service-card:hover { border-color: var(--accent); }
[data-theme="dark"] .service-card h4 { color: var(--heading, #f1f5f9); }

/* Blog Cards */
[data-theme="dark"] .blog-card { background: var(--light); border-color: var(--border); }
[data-theme="dark"] .blog-card:hover { border-color: var(--accent); }
[data-theme="dark"] .blog-card-body h4 { color: var(--heading, #f1f5f9); }

/* Contact Cards */
[data-theme="dark"] .contact-info-card { background: var(--light); border-color: var(--border); }
[data-theme="dark"] .contact-info-card:hover { border-color: var(--accent); }
[data-theme="dark"] .contact-info-card h5 { color: var(--heading, #f1f5f9); }

/* Team Cards */
[data-theme="dark"] .team-card { background: var(--light); border-color: var(--border); }
[data-theme="dark"] .team-card-body h5 { color: var(--heading, #f1f5f9); }

/* Certificate Cards */
[data-theme="dark"] .cert-card { background: var(--light); border-color: var(--border); }
[data-theme="dark"] .cert-card:hover { border-color: var(--accent); }
[data-theme="dark"] .cert-card h6 { color: var(--heading, #f1f5f9); }

/* Partner Logos */
[data-theme="dark"] .partner-logo { background: var(--light); border-color: var(--border); }
[data-theme="dark"] .partner-logo:hover { border-color: var(--accent); }
[data-theme="dark"] .partner-logo img { filter: grayscale(1) brightness(1.5); opacity: 0.7; }
[data-theme="dark"] .partner-logo:hover img { filter: grayscale(0) brightness(1); opacity: 1; }

/* Forms */
[data-theme="dark"] .form-control-custom { background: var(--light); border-color: var(--border); color: var(--text-dark); }
[data-theme="dark"] .form-control-custom::placeholder { color: var(--gray); }
[data-theme="dark"] .form-control-custom:focus { border-color: var(--accent); }
[data-theme="dark"] input, [data-theme="dark"] textarea, [data-theme="dark"] select { color-scheme: dark; }
[data-theme="dark"] .form-control { background-color: var(--light); border-color: var(--border); color: var(--text-dark); }
[data-theme="dark"] .form-control:focus { background-color: var(--light); border-color: var(--accent); color: var(--text-dark); }
[data-theme="dark"] .form-label-custom { color: var(--text-dark); }

/* Accordion (FAQ) */
[data-theme="dark"] .accordion-item { background: var(--light); border-color: var(--border) !important; }
[data-theme="dark"] .accordion-button { color: var(--text-dark) !important; }
[data-theme="dark"] .accordion-button:not(.collapsed) { color: var(--accent) !important; }
[data-theme="dark"] .accordion-button::after { filter: brightness(1.5); }
[data-theme="dark"] .accordion-body { color: var(--text-dark-secondary); }

/* Gallery nav pills */
[data-theme="dark"] .nav-pills .nav-link { background: var(--light); color: var(--text-dark-secondary); }
[data-theme="dark"] .nav-pills .nav-link.active { background: var(--accent); color: #fff; }

/* Pagination */
[data-theme="dark"] .page-link { background: var(--light); border-color: var(--border); color: var(--text-dark); }
[data-theme="dark"] .page-link:hover { background: rgba(245,158,11,0.1); color: var(--accent); border-color: var(--accent); }
[data-theme="dark"] .page-item.active .page-link { background: var(--accent); border-color: var(--accent); color: #fff; }

/* Popup / Modal */
[data-theme="dark"] .popup-modal { background: var(--light); }
[data-theme="dark"] .popup-overlay { background: rgba(0,0,0,0.7); }

/* Search form */
[data-theme="dark"] .search-form input { background: var(--light); border-color: var(--border); color: var(--text-dark); }
[data-theme="dark"] .search-form input::placeholder { color: var(--gray); }
[data-theme="dark"] .search-form input:focus { border-color: var(--accent); }

/* Section backgrounds */
[data-theme="dark"] .section-dark { background: var(--white); }
[data-theme="dark"] .section-light { background: var(--white); }

/* Badge label dark variant */
[data-theme="dark"] .badge-label { background: rgba(245,158,11,0.12); }

/* Service detail content */
[data-theme="dark"] .service-detail-content { color: #cbd5e1; }
[data-theme="dark"] .service-detail-content h2 { color: var(--heading, #f1f5f9); }

/* Policy content */
[data-theme="dark"] .policy-content h2 { color: var(--heading, #f1f5f9); }
[data-theme="dark"] .policy-content p { color: var(--text-dark-secondary); }

/* Scrollbar */
[data-theme="dark"] ::-webkit-scrollbar-track { background: var(--white); }

/* Bootstrap overrides for dark */
[data-theme="dark"] .btn-close { filter: invert(1) grayscale(1) brightness(2); }
[data-theme="dark"] .alert { background: var(--light); border-color: var(--border); color: var(--text-dark); }
[data-theme="dark"] .spinner-border { border-color: var(--text-dark-secondary); border-right-color: transparent; }

/* Dark Mode — Section Separation */
[data-theme="dark"] .section-padding {
    border-top: 1px solid rgba(255,255,255,0.04);
}
[data-theme="dark"] .section-padding:first-of-type {
    border-top: none;
}
/* Alternating sections: even sections get slightly lighter bg */
[data-theme="dark"] section.section-padding:nth-of-type(even) {
    background: var(--light);
}
[data-theme="dark"] section.section-padding:nth-of-type(odd) {
    background: var(--white);
}
/* Sections that have explicit background: var(--light) in light mode get even lighter in dark */
[data-theme="dark"] section[style*="background: var(--light)"],
[data-theme="dark"] section[style*="background:var(--light)"] {
    background: var(--light) !important;
    border-top: 1px solid rgba(255,255,255,0.04);
}
/* Page header dark separation */
[data-theme="dark"] .page-header {
    background: var(--light);
    border-bottom: 1px solid rgba(255,255,255,0.04);
}
/* Footer dark separation */
[data-theme="dark"] .footer {
    border-top: 1px solid rgba(255,255,255,0.06);
}

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

html { 
    scroll-behavior: smooth; 
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

body {
    font-family: var(--font-secondary);
    color: var(--text-dark);
    background: var(--white);
    line-height: 1.7;
    font-size: 1rem;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

h1,h2,h3,h4,h5,h6 {
    font-family: var(--font-primary);
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-dark);
}

a { color: var(--accent); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--accent-hover); }

img { max-width: 100%; height: auto; }

/* --- Scrollbar --- */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--light); }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent-hover); }

/* ============================================= */
/* NAVBAR                                        */
/* ============================================= */
.navbar-main {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 0;
    transition: var(--transition);
    position: sticky;
    top: 0;
    z-index: 1050;
}

.navbar-main.scrolled {
    box-shadow: var(--shadow);
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(12px);
}

[data-theme="dark"] .navbar-main.scrolled {
    background: rgba(15,23,42,0.98);
}

.navbar-main .container { position: relative; }

.navbar-brand {
    font-family: var(--font-primary);
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--primary) !important;
    padding: 14px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.navbar-brand span { color: var(--accent); }

.brand-logo { transition: var(--transition); }
.brand-logo-dark { display: none !important; }
[data-theme="dark"] .brand-logo-light { display: none !important; }
[data-theme="dark"] .brand-logo-dark { display: block !important; }

.navbar-nav .nav-link {
    font-weight: 500;
    font-size: 0.92rem;
    color: var(--text-dark) !important;
    padding: 20px 16px !important;
    position: relative;
    transition: var(--transition);
    white-space: nowrap;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--accent) !important;
}

.navbar-nav .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 16px;
    right: 16px;
    height: 3px;
    background: var(--accent);
    border-radius: 3px 3px 0 0;
}

.navbar-toggler {
    border: none;
    padding: 8px;
    font-size: 1.5rem;
    color: var(--text-dark);
}

.navbar-toggler:focus { box-shadow: none; }

.nav-appointment-btn {
    background: var(--accent) !important;
    color: var(--white) !important;
    border-radius: var(--radius) !important;
    padding: 10px 20px !important;
    margin-left: 8px;
    font-weight: 600 !important;
}

.nav-appointment-btn:hover {
    background: var(--accent-hover) !important;
    transform: translateY(-1px);
}

/* Flyout Menu System */
.flyout-root { position: relative; }

.flyout-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 260px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 8px;
    z-index: 1100;
    animation: flyoutIn 0.2s ease;
}

.flyout-sub {
    top: 0;
    left: 100%;
}

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

.flyout-root:hover > .flyout-menu,
.flyout-item-wrap.has-sub:hover > .flyout-menu { display: block; }

.flyout-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    border-radius: var(--radius);
    color: var(--text-dark) !important;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
}

.flyout-item:hover {
    background: var(--accent-light);
    color: var(--accent) !important;
}

.flyout-item i { font-size: 1rem; opacity: 0.7; }
.flyout-arrow { margin-left: auto; font-size: 0.7rem !important; }

.flyout-item-wrap { position: relative; }

/* Theme Toggle */
.theme-toggle {
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 50%;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-dark);
    transition: var(--transition);
    font-size: 1rem;
    margin-left: 8px;
}

.theme-toggle:hover { background: var(--accent-light); color: var(--accent); border-color: var(--accent); }

/* ============================================= */
/* HERO SLIDER                                   */
/* ============================================= */
.hero-slider-section { position: relative; overflow: hidden; }

.hero-slide-bg {
    position: relative;
    width: 100%;
    height: 75vh;
    min-height: 500px;
    max-height: 800px;
}

.hero-slide-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-slide-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary) 0%, #1a2a4a 50%, var(--primary) 100%);
}

.hero-slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(10,22,40,0.85) 0%, rgba(10,22,40,0.4) 60%, rgba(10,22,40,0.2) 100%);
}

.hero-slide-content {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
}

.hero-slide-inner { padding: 40px 0; }

.hero-slide-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(245,158,11,0.15);
    border: 1px solid rgba(245,158,11,0.3);
    color: var(--accent);
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 24px;
    backdrop-filter: blur(4px);
}

.hero-slide-title {
    color: #ffffff !important;
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 20px;
    max-width: 600px;
}

.hero-slide-desc {
    color: rgba(255,255,255,0.85);
    font-size: 1.15rem;
    line-height: 1.7;
    max-width: 520px;
    margin-bottom: 32px;
}

.hero-slide-buttons { display: flex; gap: 14px; flex-wrap: wrap; }

.btn-hero-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--accent);
    color: #fff !important;
    padding: 14px 32px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    border: 2px solid var(--accent);
}

.btn-hero-primary:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(245,158,11,0.35);
    color: #fff !important;
}

.btn-hero-secondary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: transparent;
    color: #fff !important;
    padding: 14px 32px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    border: 2px solid rgba(255,255,255,0.3);
}

.btn-hero-secondary:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.5);
    color: #fff !important;
}

.hero-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    opacity: 0.6;
    z-index: 10;
    border: none;
    background: none;
    padding: 0;
}
.hero-control:hover { opacity: 1; }
.carousel-control-prev.hero-control { left: 20px; }
.carousel-control-next.hero-control { right: 20px; }

.hero-control-icon {
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(4px);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #fff;
    transition: var(--transition);
}
.hero-control:hover .hero-control-icon {
    background: rgba(255,255,255,0.3);
}

.hero-indicators { bottom: 30px; }
.hero-indicators button {
    width: 40px;
    height: 4px;
    border-radius: 2px;
    background: rgba(255,255,255,0.4);
    border: none;
    margin: 0 4px;
    transition: var(--transition);
}
.hero-indicators button.active { background: var(--accent); width: 60px; }

/* ============================================= */
/* SECTIONS                                      */
/* ============================================= */
.section-padding { padding: 80px 0; }

.section-dark {
    background: var(--light);
}

.section-light { background: var(--white); }

.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-header h2 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 12px;
}

.section-header p {
    color: var(--text-dark-secondary);
    font-size: 1.05rem;
    max-width: 600px;
    margin: 0 auto;
}

.badge-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--accent-light);
    color: var(--accent);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.badge-label-dark {
    background: rgba(10,22,40,0.06);
    color: var(--primary);
}

[data-theme="dark"] .badge-label-dark {
    background: rgba(245,158,11,0.1);
    color: var(--accent);
}

/* ============================================= */
/* SERVICE / PRODUCT CARDS                       */
/* ============================================= */
.service-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 36px 32px 32px;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    height: 100%;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Animated gradient top accent */
.service-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), #fbbf24, var(--accent));
    background-size: 200% 100%;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

/* Subtle inner glow on hover */
.service-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 50% 0%, rgba(245,158,11,0.04) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.service-card:hover::before {
    transform: scaleX(1);
    animation: accentShimmer 2s ease infinite;
}
.service-card:hover::after { opacity: 1; }

@keyframes accentShimmer {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

.service-card:hover {
    border-color: rgba(245,158,11,0.25);
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.08), 0 0 0 1px rgba(245,158,11,0.05);
}

/* Icon — floating with glow ring */
.service-card-icon {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--accent-light), rgba(245,158,11,0.08));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--accent);
    margin-bottom: 24px;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    z-index: 1;
    box-shadow: 0 4px 16px rgba(245,158,11,0.08);
}

.service-card-icon::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 22px;
    border: 2px dashed rgba(245,158,11,0.12);
    transition: all 0.5s ease;
    opacity: 0;
}

.service-card:hover .service-card-icon {
    background: linear-gradient(135deg, var(--accent), #d97706);
    color: #fff;
    transform: scale(1.08) rotate(-3deg);
    box-shadow: 0 8px 24px rgba(245,158,11,0.3);
}

.service-card:hover .service-card-icon::after {
    opacity: 1;
    inset: -8px;
    animation: spinSlow 15s linear infinite;
}

@keyframes spinSlow { to { transform: rotate(360deg); } }

.service-card h4 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 10px;
    transition: color 0.3s ease;
}

.service-card:hover h4 { color: var(--accent); }

.service-card p {
    color: var(--text-dark-secondary);
    font-size: 0.92rem;
    line-height: 1.75;
    margin-bottom: 20px;
    flex: 1;
}

/* Link — arrow animation */
.service-card-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--accent) !important;
    font-weight: 600;
    font-size: 0.88rem;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.service-card-link i {
    transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    font-size: 0.85rem;
}

.service-card:hover .service-card-link i {
    transform: translateX(5px);
}

.service-card-link:hover {
    gap: 12px;
}

/* ── Service Card with Cover Image ── */
.service-card--has-img {
    padding: 0;
    border-radius: 20px;
}

.service-card-img-wrap {
    overflow: hidden;
    border-radius: 20px 20px 0 0;
    height: 220px;
    position: relative;
}

/* Gradient overlay on image */
.service-card-img-wrap::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.08) 100%);
    pointer-events: none;
    transition: opacity 0.4s ease;
}
.service-card:hover .service-card-img-wrap::after {
    opacity: 0;
}

.service-card-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.23, 1, 0.32, 1);
}
.service-card:hover .service-card-cover { transform: scale(1.08); }

.service-card--has-img h4,
.service-card--has-img p,
.service-card--has-img .service-card-link { padding-left: 28px; padding-right: 28px; }
.service-card--has-img h4 { padding-top: 24px; }
.service-card--has-img p { padding-bottom: 0; }
.service-card--has-img .service-card-link { padding-bottom: 24px; margin-left: 28px; margin-right: 28px; padding-left: 0; padding-right: 0; }

/* Service Card with Image (legacy) */
.service-card-img {
    width: calc(100% + 64px);
    height: 220px;
    object-fit: cover;
    border-radius: var(--radius) var(--radius) 0 0;
    margin: -36px -32px 24px -32px;
}

/* Dark mode cards */
html[data-theme="dark"] .service-card {
    background: linear-gradient(180deg, rgba(30,41,59,0.8), rgba(15,23,42,0.9));
    border-color: rgba(255,255,255,0.06);
}
html[data-theme="dark"] .service-card:hover {
    border-color: rgba(245,158,11,0.2);
    box-shadow: 0 20px 50px rgba(0,0,0,0.3), 0 0 30px rgba(245,158,11,0.05);
}
html[data-theme="dark"] .service-card h4 { color: #f1f5f9; }
html[data-theme="dark"] .service-card:hover h4 { color: var(--accent); }
html[data-theme="dark"] .service-card-link { border-top-color: rgba(255,255,255,0.06); }

/* ============================================= */
/* ABOUT                                         */
/* ============================================= */
.about-image-wrapper {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
}

.about-image-wrapper img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-xl);
}

.about-badge {
    position: absolute;
    bottom: 24px;
    right: 24px;
    background: var(--accent);
    color: #fff;
    border-radius: var(--radius-lg);
    padding: 16px 24px;
    text-align: center;
    box-shadow: var(--shadow-lg);
}

.about-badge .badge-number { display: block; font-size: 2rem; font-weight: 800; line-height: 1; }
.about-badge .badge-text { font-size: 0.78rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 24px;
}

.about-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    font-size: 0.93rem;
}

.about-feature i { color: var(--accent); font-size: 1.1rem; }

/* ============================================= */
/* STATS SECTION                                 */
/* ============================================= */
.stats-section {
    background: var(--primary);
    padding: 60px 0;
    color: #fff;
}

.stat-item { text-align: center; padding: 20px; }

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label {
    display: block;
    font-size: 0.9rem;
    opacity: 0.85;
    font-weight: 500;
}

/* ============================================= */
/* BLOG CARDS                                    */
/* ============================================= */
.blog-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
    text-decoration: none !important;
    color: inherit !important;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent);
}

.blog-card-img-wrapper {
    overflow: hidden;
    height: 220px;
}

.blog-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.blog-card:hover .blog-card-img { transform: scale(1.05); }

.blog-card-body {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-card-meta {
    display: flex;
    gap: 16px;
    margin-bottom: 12px;
    font-size: 0.82rem;
    color: var(--gray);
}

.blog-card-meta i { margin-right: 4px; }

.blog-card-body h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.4;
}

.blog-card-body p {
    color: var(--text-dark-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    flex: 1;
}

.blog-card-link {
    color: var(--accent) !important;
    font-weight: 600;
    font-size: 0.88rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: auto;
}

/* ============================================= */
/* CONTACT                                       */
/* ============================================= */
.contact-info-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    text-align: center;
    transition: var(--transition);
    height: 100%;
}

.contact-info-card:hover {
    border-color: var(--accent);
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.contact-info-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--accent-light);
    color: var(--accent);
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.contact-info-card h5 { font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; }
.contact-info-card p { color: var(--text-dark-secondary); font-size: 0.93rem; margin: 0; }
.contact-info-card a { color: var(--text-dark-secondary); }
.contact-info-card a:hover { color: var(--accent); }

/* Form Styles */
.form-label-custom {
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--text-dark);
    margin-bottom: 6px;
    display: block;
}

.form-control-custom {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 12px 16px;
    font-size: 0.93rem;
    transition: var(--transition);
    background: var(--white);
    color: var(--text-dark);
}

.form-control-custom:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(245,158,11,0.15);
    outline: none;
}

/* ============================================= */
/* PAGE HEADER / BREADCRUMB                      */
/* ============================================= */
.page-header {
    background: var(--primary);
    padding: 50px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.page-header h1 {
    color: #ffffff !important;
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 12px;
    position: relative;
}

.page-header .breadcrumb {
    justify-content: center;
    margin: 0;
    position: relative;
}

.page-header .breadcrumb-item { font-size: 0.9rem; color: rgba(255,255,255,0.6); }
.page-header .breadcrumb-item a { color: var(--accent); }
.page-header .breadcrumb-item.active { color: rgba(255,255,255,0.8); }
.page-header .breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,0.4); }

/* ============================================= */
/* FOOTER                                        */
/* ============================================= */
.footer {
    background: var(--primary);
    color: rgba(255,255,255,0.8);
    padding-top: 64px;
}

.footer h5 {
    color: #ffffff !important;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 24px;
    position: relative;
    padding-bottom: 12px;
}

.footer h5::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--accent);
    border-radius: 2px;
}

.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 1.4rem;
    font-weight: 800;
    color: #ffffff !important;
    margin-bottom: 32px;
}

.footer-brand span { color: var(--accent); }

.footer-description {
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 20px;
}

.footer-social { display: flex; gap: 10px; }

.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.7) !important;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: var(--transition);
}

.footer-social a:hover { background: var(--accent); color: #fff !important; transform: translateY(-2px); }

.footer-links { list-style: none; padding: 0; }

.footer-links li { margin-bottom: 10px; }

.footer-links a {
    color: rgba(255,255,255,0.65) !important;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.footer-links a:hover { color: var(--accent) !important; padding-left: 4px; }

.footer-links i { font-size: 0.7rem; color: var(--accent); }

.footer-contact-item {
    display: flex;
    gap: 14px;
    margin-bottom: 18px;
}

.footer-contact-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(245,158,11,0.12);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1rem;
}

.footer-contact-text { font-size: 0.88rem; line-height: 1.6; }
.footer-contact-text strong { display: block; color: #fff; font-weight: 600; margin-bottom: 2px; }
.footer-contact-text a { color: rgba(255,255,255,0.65) !important; }
.footer-contact-text a:hover { color: var(--accent) !important; }

.footer-hours {
    list-style: none;
    padding: 0;
}

.footer-hours li {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    font-size: 0.88rem;
}

.footer-hours .day { color: rgba(255,255,255,0.7); }
.footer-hours .time { color: var(--accent); font-weight: 600; }

.footer-top { padding-bottom: 40px; }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 20px 0;
    text-align: center;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.5);
}

.footer-policies { margin-top: 8px; }
.footer-policies a { color: rgba(255,255,255,0.5) !important; font-size: 0.82rem; }
.footer-policies a:hover { color: var(--accent) !important; }
.footer-policy-sep { margin: 0 10px; color: rgba(255,255,255,0.2); }

/* ============================================= */
/* BUTTONS                                       */
/* ============================================= */
.btn-accent {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--accent);
    color: #fff !important;
    padding: 12px 28px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.93rem;
    transition: var(--transition);
    border: 2px solid var(--accent);
    cursor: pointer;
}

.btn-accent:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245,158,11,0.3);
    color: #fff !important;
}

.btn-accent-dark {
    background: var(--primary);
    border-color: var(--primary);
}

.btn-accent-dark:hover { background: var(--primary-light); border-color: var(--primary-light); }

.btn-outline-accent {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    color: var(--accent);
    padding: 12px 28px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.93rem;
    transition: var(--transition);
    border: 2px solid var(--accent);
}

.btn-outline-accent:hover {
    background: var(--accent);
    color: #fff !important;
    transform: translateY(-2px);
}

.btn-outline-light {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    color: #fff;
    padding: 12px 28px;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.93rem;
    transition: var(--transition);
    border: 2px solid rgba(255,255,255,0.3);
}

.btn-outline-light:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.6);
    color: #fff;
}

/* ============================================= */
/* CTA SECTION                                   */
/* ============================================= */
.cta-section {
    padding: 60px 0;
    text-align: center;
}

.cta-section h2 { font-size: 2rem; margin-bottom: 12px; }
.cta-section p { font-size: 1.05rem; max-width: 600px; margin: 0 auto 24px; }

.cta-buttons { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ============================================= */
/* FAQ ACCORDION                                 */
/* ============================================= */
.accordion-item {
    border: 1px solid var(--border) !important;
    border-radius: var(--radius) !important;
    margin-bottom: 12px;
    overflow: hidden;
    background: var(--white);
}

.accordion-button {
    font-weight: 600;
    font-size: 1.02rem;
    color: var(--text-dark) !important;
    background: transparent !important;
    padding: 18px 24px;
    box-shadow: none !important;
}

.accordion-button:not(.collapsed) { color: var(--accent) !important; }

.accordion-button::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23f59e0b'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

.accordion-body {
    font-size: 0.95rem;
    color: var(--text-dark-secondary);
    line-height: 1.8;
    padding: 0 24px 24px;
}

/* ============================================= */
/* FLOATING CONTACT WIDGET                       */
/* ============================================= */
.fcw {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 1040;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}

/* --- Phone Button --- */
.fcw-phone {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: #fff !important;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    text-decoration: none !important;
    box-shadow: 0 4px 16px rgba(59,130,246,0.4);
    transition: all 0.3s cubic-bezier(0.23,1,0.32,1);
    animation: fcwSlideIn 0.5s cubic-bezier(0.34,1.56,0.64,1) 0.8s both;
}

.fcw-phone:hover {
    transform: scale(1.12);
    box-shadow: 0 6px 24px rgba(59,130,246,0.55);
    color: #fff !important;
}

.fcw-phone i {
    animation: fcwPhoneShake 4s ease-in-out infinite;
}

@keyframes fcwPhoneShake {
    0%, 100% { transform: rotate(0deg); }
    4% { transform: rotate(15deg); }
    8% { transform: rotate(-10deg); }
    12% { transform: rotate(12deg); }
    16% { transform: rotate(-5deg); }
    20% { transform: rotate(0deg); }
}

/* --- WhatsApp Wrapper (holds bubble + button) --- */
.fcw-wa-wrap {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

/* --- Chat Bubble (CSS hover only) --- */
.fcw-bubble {
    position: absolute;
    bottom: 60px;
    right: 0;
    width: 280px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.12), 0 2px 6px rgba(0,0,0,0.06);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px) scale(0.95);
    transform-origin: bottom right;
    transition: all 0.35s cubic-bezier(0.23,1,0.32,1);
    pointer-events: none;
    overflow: hidden;
}

.fcw-wa-wrap:hover .fcw-bubble,
.fcw-bubble--peek {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

/* Bubble tail arrow */
.fcw-bubble-tail {
    position: absolute;
    bottom: -6px;
    right: 22px;
    width: 14px;
    height: 14px;
    background: #fff;
    transform: rotate(45deg);
    box-shadow: 3px 3px 4px rgba(0,0,0,0.04);
}

/* Bubble close button */
.fcw-bubble-x {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 22px;
    height: 22px;
    border: none;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    color: rgba(255,255,255,0.8);
    font-size: 1rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    z-index: 2;
    padding: 0;
}

.fcw-bubble-x:hover {
    background: rgba(255,255,255,0.35);
    color: #fff;
}

/* Bubble header */
.fcw-bubble-head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    background: linear-gradient(135deg, #075e54, #128c7e);
    color: #fff;
}

.fcw-bubble-head strong {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    line-height: 1.2;
}

.fcw-bubble-head small {
    font-size: 0.7rem;
    opacity: 0.75;
}

.fcw-bubble-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
    position: relative;
}

.fcw-online {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 9px;
    height: 9px;
    background: #25d366;
    border-radius: 50%;
    border: 2px solid #075e54;
}

/* Bubble message */
.fcw-bubble-msg {
    padding: 12px 14px;
    font-size: 0.85rem;
    line-height: 1.5;
    color: #1e293b;
    background: #f0f2f5;
    margin: 10px;
    border-radius: 0 10px 10px 10px;
}

/* --- WhatsApp Button --- */
.fcw-wa {
    position: relative;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #25d366;
    color: #fff !important;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    text-decoration: none !important;
    box-shadow: 0 4px 20px rgba(37,211,102,0.45);
    transition: all 0.3s cubic-bezier(0.23,1,0.32,1);
    animation: fcwSlideIn 0.5s cubic-bezier(0.34,1.56,0.64,1) 0.5s both;
}

.fcw-wa:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 28px rgba(37,211,102,0.6);
    background: #20c157;
    color: #fff !important;
}

@keyframes fcwSlideIn {
    0% { opacity: 0; transform: scale(0) translateY(20px); }
    100% { opacity: 1; transform: scale(1) translateY(0); }
}

/* Dual pulse rings */
.fcw-pulse {
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid rgba(37,211,102,0.35);
    animation: fcwPulse 2.8s ease-out infinite;
    pointer-events: none;
}

.fcw-pulse-2 {
    animation-delay: 1.4s;
}

@keyframes fcwPulse {
    0% { transform: scale(1); opacity: 0.6; }
    50% { transform: scale(1.45); opacity: 0; }
    100% { transform: scale(1.45); opacity: 0; }
}

/* --- Mobile --- */
@media (max-width: 575.98px) {
    .fcw { bottom: 16px; right: 16px; }
    .fcw-wa { width: 44px; height: 44px; font-size: 1.3rem; }
    .fcw-phone { width: 44px; height: 44px; font-size: 1rem; }
    .fcw-bubble { width: 240px; bottom: 56px; }
}

/* --- Dark Mode --- */
[data-theme="dark"] .fcw-bubble { background: #1e293b; box-shadow: 0 8px 32px rgba(0,0,0,0.4); }
[data-theme="dark"] .fcw-bubble-tail { background: #1e293b; }
[data-theme="dark"] .fcw-bubble-msg { background: #0f172a; color: #cbd5e1; }

/* ============================================= */
/* PREMIUM EFFECTS SYSTEM                        */
/* ============================================= */

/* --- Scroll Progress Bar --- */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--accent-hover, #d97706), var(--accent));
    background-size: 200% 100%;
    animation: progressGradient 3s ease infinite;
    z-index: 9999;
    transition: width 0.1s linear;
    box-shadow: 0 0 8px rgba(245,158,11,0.5);
}

@keyframes progressGradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* --- Enhanced Reveal Animations --- */
.reveal {
    opacity: 0;
    transition: opacity 0.7s cubic-bezier(0.23, 1, 0.32, 1),
                transform 0.7s cubic-bezier(0.23, 1, 0.32, 1),
                filter 0.7s cubic-bezier(0.23, 1, 0.32, 1);
    will-change: opacity, transform;
}

/* Default: fade-up */
.reveal,
.reveal[data-reveal="fade-up"] {
    transform: translateY(40px);
}

.reveal[data-reveal="fade-down"] {
    transform: translateY(-40px);
}

.reveal[data-reveal="fade-left"] {
    transform: translateX(-50px);
}

.reveal[data-reveal="fade-right"] {
    transform: translateX(50px);
}

.reveal[data-reveal="zoom-in"] {
    transform: scale(0.85);
}

.reveal[data-reveal="zoom-out"] {
    transform: scale(1.15);
}

.reveal[data-reveal="flip-up"] {
    transform: perspective(800px) rotateX(15deg) translateY(30px);
}

.reveal[data-reveal="blur-in"] {
    filter: blur(12px);
    transform: translateY(20px) scale(0.97);
}

.reveal[data-reveal="slide-up"] {
    transform: translateY(60px);
    clip-path: inset(100% 0 0 0);
}

.reveal[data-reveal="rotate-in"] {
    transform: rotate(-5deg) scale(0.9) translateY(30px);
}

/* Revealed state — all variants */
.reveal.revealed {
    opacity: 1;
    transform: translateY(0) translateX(0) scale(1) rotate(0deg);
    filter: blur(0);
    clip-path: inset(0 0 0 0);
}

.reveal[data-reveal="flip-up"].revealed {
    transform: perspective(800px) rotateX(0deg) translateY(0);
}

/* Delay classes (1-12) */
.reveal-delay-1  { transition-delay: 0.08s; }
.reveal-delay-2  { transition-delay: 0.16s; }
.reveal-delay-3  { transition-delay: 0.24s; }
.reveal-delay-4  { transition-delay: 0.32s; }
.reveal-delay-5  { transition-delay: 0.40s; }
.reveal-delay-6  { transition-delay: 0.48s; }
.reveal-delay-7  { transition-delay: 0.56s; }
.reveal-delay-8  { transition-delay: 0.64s; }
.reveal-delay-9  { transition-delay: 0.72s; }
.reveal-delay-10 { transition-delay: 0.80s; }
.reveal-delay-11 { transition-delay: 0.88s; }
.reveal-delay-12 { transition-delay: 0.96s; }

/* --- Stagger Children (auto-delay in JS) --- */
.stagger-children > * {
    opacity: 0;
    transform: translateY(25px);
    transition: opacity 0.6s cubic-bezier(0.23, 1, 0.32, 1),
                transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.stagger-children.stagger-active > * {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================= */
/* PREMIUM HOVER EFFECTS                         */
/* ============================================= */

/* Hover Glow */
.hover-glow {
    transition: box-shadow 0.4s ease, transform 0.4s ease;
}

.hover-glow:hover {
    box-shadow: 0 0 25px rgba(245,158,11,0.25),
                0 10px 40px rgba(0,0,0,0.12);
    transform: translateY(-4px);
}

/* Hover Lift */
.hover-lift {
    transition: transform 0.35s cubic-bezier(0.23, 1, 0.32, 1),
                box-shadow 0.35s cubic-bezier(0.23, 1, 0.32, 1);
}

.hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
}

/* Hover Shine (sweeping light effect) */
.hover-shine {
    position: relative;
    overflow: hidden;
}

.hover-shine::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -60%;
    width: 40%;
    height: 200%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    transform: skewX(-25deg);
    transition: left 0.6s ease;
    pointer-events: none;
    z-index: 1;
}

.hover-shine:hover::after {
    left: 130%;
}

/* Hover Border Glow */
.hover-border-glow {
    position: relative;
    transition: border-color 0.4s ease;
}

.hover-border-glow::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    background: linear-gradient(135deg, var(--accent), transparent, var(--accent));
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

.hover-border-glow:hover::before {
    opacity: 1;
}

/* Hover Scale Subtle */
.hover-scale {
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

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

/* ============================================= */
/* MICRO-ANIMATIONS                              */
/* ============================================= */

/* Float — gentle up-down movement */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.float {
    animation: float 4s ease-in-out infinite;
}

.float-slow {
    animation: float 6s ease-in-out infinite;
}

/* Pulse Soft */
@keyframes pulseSoft {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.pulse-soft {
    animation: pulseSoft 2.5s ease-in-out infinite;
}

/* Pulse Scale */
@keyframes pulseScale {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.pulse-scale {
    animation: pulseScale 2s ease-in-out infinite;
}

/* Spin Slow */
@keyframes spinSlow {
    to { transform: rotate(360deg); }
}

.spin-slow {
    animation: spinSlow 20s linear infinite;
}

/* Shimmer — traveling shine */
@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.shimmer {
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255,255,255,0.08) 25%,
        rgba(255,255,255,0.15) 50%,
        rgba(255,255,255,0.08) 75%,
        transparent 100%
    );
    background-size: 200% 100%;
    animation: shimmer 3s ease-in-out infinite;
}

/* Breath — scale in/out */
@keyframes breath {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

.breath {
    animation: breath 3.5s ease-in-out infinite;
}

/* Wiggle */
@keyframes wiggle {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-3deg); }
    75% { transform: rotate(3deg); }
}

.wiggle-hover:hover {
    animation: wiggle 0.4s ease-in-out;
}

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

/* Text gradient animation */
.text-gradient-animate {
    background: linear-gradient(135deg, var(--accent), #fbbf24, var(--accent-hover, #d97706), var(--accent));
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: textGradient 4s ease infinite;
}

@keyframes textGradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Underline reveal */
.text-underline-reveal {
    position: relative;
    display: inline-block;
}

.text-underline-reveal::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

.text-underline-reveal:hover::after,
.reveal.revealed .text-underline-reveal::after {
    width: 100%;
}

/* ============================================= */
/* BUTTON EFFECTS                                */
/* ============================================= */

/* Button Shimmer */
.btn-shimmer {
    position: relative;
    overflow: hidden;
}

.btn-shimmer::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transform: skewX(-25deg);
    animation: btnShimmer 4s ease-in-out infinite;
}

@keyframes btnShimmer {
    0% { left: -100%; }
    40%, 100% { left: 150%; }
}

/* Button Ripple (CSS-only hint, full in JS) */
.btn-ripple {
    position: relative;
    overflow: hidden;
}

.ripple-effect {
    position: absolute;
    border-radius: 50%;
    background: rgba(255,255,255,0.35);
    transform: scale(0);
    animation: rippleAnim 0.6s ease-out;
    pointer-events: none;
}

@keyframes rippleAnim {
    to { transform: scale(4); opacity: 0; }
}

/* Magnetic button glow on hover */
.btn-magnetic {
    transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1),
                box-shadow 0.3s ease;
}

.btn-magnetic:hover {
    box-shadow: 0 0 20px rgba(245,158,11,0.3),
                0 8px 30px rgba(0,0,0,0.12);
}

/* ============================================= */
/* IMAGE HOVER EFFECTS                           */
/* ============================================= */

/* Image zoom on hover */
.img-hover-zoom {
    overflow: hidden;
    border-radius: inherit;
}

.img-hover-zoom img {
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

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

/* Image shine overlay */
.img-hover-shine {
    position: relative;
    overflow: hidden;
}

.img-hover-shine::after {
    content: '';
    position: absolute;
    top: 0;
    left: -80%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transform: skewX(-20deg);
    transition: left 0.7s ease;
    pointer-events: none;
}

.img-hover-shine:hover::after {
    left: 130%;
}

/* Image color overlay */
.img-hover-overlay {
    position: relative;
    overflow: hidden;
}

.img-hover-overlay::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(245,158,11,0.0), rgba(10,22,40,0.0));
    transition: background 0.4s ease;
    z-index: 1;
    pointer-events: none;
}

.img-hover-overlay:hover::before {
    background: linear-gradient(135deg, rgba(245,158,11,0.15), rgba(10,22,40,0.25));
}

/* ============================================= */
/* SECTION EFFECTS                               */
/* ============================================= */

/* Wave section divider */
.section-wave-top {
    position: relative;
}

.section-wave-top::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 0;
    width: 100%;
    height: 60px;
    background: var(--white);
    clip-path: ellipse(55% 100% at 50% 0%);
    z-index: 2;
}

.section-wave-bottom {
    position: relative;
}

.section-wave-bottom::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 60px;
    background: var(--white);
    clip-path: ellipse(55% 100% at 50% 100%);
    z-index: 2;
}

/* Parallax-ready sections */
.parallax-bg {
    will-change: transform;
    transition: transform 0.1s linear;
}

/* Section gradient background animation */
.section-gradient-animate {
    background-size: 400% 400%;
    animation: sectionGradient 15s ease infinite;
}

@keyframes sectionGradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Card tilt highlight on hover */
.card-tilt-highlight {
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1),
                box-shadow 0.4s ease;
}

.card-tilt-highlight:hover {
    transform: perspective(1000px) rotateX(2deg) rotateY(-2deg) translateY(-6px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.12),
                0 0 0 1px rgba(245,158,11,0.1);
}

/* ============================================= */
/* ACCESSIBILITY — REDUCED MOTION                */
/* ============================================= */
@media (prefers-reduced-motion: reduce) {
    .reveal,
    .stagger-children > *,
    .float, .float-slow,
    .pulse-soft, .pulse-scale,
    .spin-slow, .shimmer, .breath,
    .text-gradient-animate,
    .scroll-progress {
        animation: none !important;
        transition: none !important;
        opacity: 1 !important;
        transform: none !important;
        filter: none !important;
        clip-path: none !important;
    }
    .hover-shine::after,
    .img-hover-shine::after,
    .btn-shimmer::before {
        animation: none !important;
        display: none !important;
    }
}

/* ============================================= */
/* PAGINATION                                    */
/* ============================================= */
.pagination { gap: 6px; }

.page-link {
    border: 1px solid var(--border);
    border-radius: var(--radius) !important;
    color: var(--text-dark);
    padding: 8px 16px;
    font-weight: 500;
    transition: var(--transition);
}

.page-link:hover { background: var(--accent-light); color: var(--accent); border-color: var(--accent); }

.page-item.active .page-link {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

/* ============================================= */
/* 404 PAGE                                      */
/* ============================================= */
.error-page {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
}

.error-page h1 { font-size: 6rem; font-weight: 900; color: var(--accent); }
.error-page h2 { font-size: 1.8rem; margin: 16px 0; }
.error-page p { color: var(--text-dark-secondary); font-size: 1.05rem; margin-bottom: 32px; }

/* ============================================= */
/* RESPONSIVE                                    */
/* ============================================= */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background: var(--white);
        border-top: 1px solid var(--border);
        padding: 10px 0;
    }

    .navbar-nav .nav-link {
        padding: 12px 16px !important;
    }

    .navbar-nav .nav-link.active::after { display: none; }

    .flyout-menu {
        position: static;
        box-shadow: none;
        border: none;
        background: var(--light);
        border-radius: var(--radius);
        margin: 4px 0 4px 16px;
        animation: none;
    }

    .flyout-root:hover > .flyout-menu { display: none; }
    .flyout-root.flyout-open > .flyout-menu { display: block; }

    .flyout-sub { position: static; margin-left: 12px; }
    .flyout-item-wrap.has-sub:hover > .flyout-menu { display: none; }
    .flyout-item-wrap.flyout-open > .flyout-menu { display: block; }

    .hero-slide-bg { height: 60vh; min-height: 400px; }
    .hero-slide-title { font-size: 2rem; }
    .hero-slide-desc { font-size: 1rem; }

    .section-padding { padding: 50px 0; }
    .section-header h2 { font-size: 1.8rem; }

    .nav-appointment-btn { margin: 8px 16px; }
}

@media (max-width: 575.98px) {
    .hero-slide-bg { height: 50vh; min-height: 350px; }
    .hero-slide-title { font-size: 1.6rem; }
    .hero-slide-buttons { flex-direction: column; }
    .btn-hero-primary, .btn-hero-secondary { width: 100%; justify-content: center; }

    .section-header h2 { font-size: 1.5rem; }
    .about-features { grid-template-columns: 1fr; }

    .stat-number { font-size: 2rem; }

    .footer { padding-top: 40px; }
    .footer .col-lg-4 { margin-bottom: 24px; }
}

/* ============================================= */
/* MISC UTILITIES                                */
/* ============================================= */
.text-accent { color: var(--accent) !important; }
.bg-accent { background: var(--accent) !important; }

/* Partners / Logos */
.partner-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: var(--transition);
    height: 100%;
    min-height: 100px;
}

.partner-logo:hover { border-color: var(--accent); transform: translateY(-2px); }
.partner-logo img { max-height: 60px; filter: grayscale(1); opacity: 0.6; transition: var(--transition); }
.partner-logo:hover img { filter: grayscale(0); opacity: 1; }

/* Team Cards */
.team-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
    text-align: center;
}

.team-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.team-card-img {
    width: 100%;
    height: 280px;
    object-fit: cover;
}

.team-card-body { padding: 24px; }
.team-card-body h5 { font-size: 1.1rem; font-weight: 700; margin-bottom: 4px; }
.team-card-body .team-title { color: var(--accent); font-size: 0.85rem; font-weight: 600; }

/* Certificate Grid */
.cert-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    text-align: center;
    transition: var(--transition);
}

.cert-card:hover { border-color: var(--accent); transform: translateY(-3px); box-shadow: var(--shadow); }
.cert-card i { font-size: 2rem; color: var(--accent); margin-bottom: 12px; display: block; }
.cert-card h6 { font-weight: 600; margin: 0 0 6px; font-size: 0.9rem; }
.cert-card-img { width: 100%; height: 120px; object-fit: contain; margin-bottom: 12px; border-radius: var(--radius); }
.cert-card-desc { font-size: 0.78rem; color: var(--text-dark-secondary); margin: 0 0 8px; line-height: 1.5; }
.cert-card-dl { display: inline-flex; align-items: center; gap: 4px; font-size: 0.78rem; font-weight: 600; color: var(--accent); }
.cert-card-dl:hover { color: var(--accent-hover); }

/* Service Detail */
.service-detail-img {
    width: 100%;
    border-radius: var(--radius-lg);
    margin-bottom: 24px;
}

.service-detail-content { line-height: 1.8; font-size: 1.02rem; }
.service-detail-content h2 { font-size: 1.5rem; margin: 24px 0 12px; }
.service-detail-content ul { padding-left: 20px; }
.service-detail-content li { margin-bottom: 6px; }

/* Popup overlay */
.popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.popup-modal {
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    max-width: 500px;
    width: 90%;
    overflow: hidden;
    animation: popupSlide 0.4s ease;
}

@keyframes popupSlide {
    from { opacity: 0; transform: scale(0.95) translateY(20px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

/* Search Page */
.search-form {
    max-width: 600px;
    margin: 0 auto 40px;
    position: relative;
}

.search-form input {
    width: 100%;
    padding: 14px 50px 14px 20px;
    border: 2px solid var(--border);
    border-radius: 50px;
    font-size: 1rem;
    background: var(--white);
    color: var(--text-dark);
    transition: var(--transition);
}

.search-form input:focus {
    border-color: var(--accent);
    outline: none;
    box-shadow: 0 0 0 3px rgba(245,158,11,0.15);
}

.search-form button {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--accent);
    color: #fff;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
}

.search-form button:hover { background: var(--accent-hover); }

/* Policy page content */
.policy-content { line-height: 1.9; font-size: 1.02rem; }
.policy-content h2 { font-size: 1.5rem; margin: 24px 0 12px; color: var(--text-dark); }
.policy-content p { margin-bottom: 16px; color: var(--text-dark-secondary); }
