@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary-color: #2563eb;
    --secondary-color: #0f172a;
    --accent-color: #0284c7;
    --bg-main: #f8fafc;
    --bg-card: rgba(255, 255, 255, 0.95);
    --text-primary: #020617;
    --text-secondary: #1e293b;
    --text-muted: #475569;
    --border-color: rgba(203, 213, 225, 0.9);
    --glass-shadow: 0 20px 40px -15px rgba(15, 23, 42, 0.08);
    --glass-border: 1px solid rgba(226, 232, 240, 0.9);
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 9999px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] {
    --bg-main: #070a12;
    --bg-card: rgba(15, 23, 42, 0.95);
    --text-primary: #ffffff;
    --text-secondary: #f1f5f9;
    --text-muted: #cbd5e1;
    --border-color: rgba(51, 65, 85, 0.9);
    --glass-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.6);
    --glass-border: 1px solid rgba(255, 255, 255, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-main);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    padding-top: 76px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

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

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

/* Container (Desktop Fullscreen Edge-to-Edge) */
.container {
    width: 95%;
    max-width: 1720px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Announcement Bar */
.announcement-bar {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #ffffff;
    padding: 0.6rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    z-index: 101;
}

.announcement-bar .badge {
    background: var(--accent-color);
    color: #ffffff;
    padding: 0.2rem 0.6rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Modern Pill Badges */
.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.3rem 0.75rem;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1;
    border-radius: 20px;
    color: #ffffff !important;
    background: linear-gradient(135deg, var(--primary-color, #2563eb), #06b6d4);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
}

.badge-primary {
    background: linear-gradient(135deg, #2563eb, #3b82f6) !important;
    color: #ffffff !important;
}

.badge-soft {
    background: rgba(37, 99, 235, 0.12) !important;
    color: var(--primary-color, #2563eb) !important;
    border: 1px solid rgba(37, 99, 235, 0.25);
    box-shadow: none;
}

.badge-success {
    background: linear-gradient(135deg, #10b981, #059669) !important;
    color: #ffffff !important;
}

/* Header & Navbar (Fixed Top Screen Lock - Permanent Stay) */
.navbar {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    z-index: 99999 !important;
    background: var(--bg-card);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: var(--glass-border);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: var(--transition);
}

.navbar-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 76px;
    gap: 0.75rem;
    max-width: 100% !important;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-primary);
    flex-shrink: 0 !important;
    text-decoration: none;
}

.brand-logo-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0 !important;
}

.brand-logo-img {
    height: 38px;
    width: auto;
    max-width: 90px;
    object-fit: contain;
    filter: drop-shadow(0 2px 5px rgba(0,0,0,0.12));
    transition: transform 0.3s ease;
    flex-shrink: 0 !important;
}

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

.brand-title-text {
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.25;
    color: var(--text-primary);
    max-width: 260px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
    flex-shrink: 0 !important;
}

.brand-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: #ffffff;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    box-shadow: 0 8px 16px -4px rgba(37, 99, 235, 0.3);
    flex-shrink: 0 !important;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 0.2rem;
    list-style: none;
    margin: 0;
    padding: 0.25rem 0;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
    flex-shrink: 1 !important;
    min-width: 0 !important;
}

.nav-menu::-webkit-scrollbar {
    display: none !important;
}

.nav-link {
    font-size: 0.81rem;
    font-weight: 700;
    color: var(--text-secondary);
    padding: 0.4rem 0.6rem;
    border-radius: 8px;
    transition: all 0.25s ease;
    white-space: nowrap;
    flex-shrink: 0 !important;
}

.nav-link:hover {
    color: var(--primary-color);
    background: rgba(37, 99, 235, 0.08);
}

.nav-link.active {
    color: var(--primary-color) !important;
    background: rgba(37, 99, 235, 0.12) !important;
    font-weight: 800 !important;
    box-shadow: inset 0 -3px 0 0 var(--primary-color) !important;
    border-radius: 8px !important;
}

[data-theme="dark"] .nav-link.active {
    color: #60a5fa !important;
    background: rgba(96, 165, 250, 0.18) !important;
    box-shadow: inset 0 -3px 0 0 #60a5fa !important;
}

/* Glassmorphism Header Dropdown Navigation */
.nav-dropdown-wrapper {
    position: relative;
}

.nav-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    width: 250px;
    background: var(--bg-card, #ffffff);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-color, rgba(0, 0, 0, 0.1));
    border-radius: var(--radius-md, 16px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    padding: 0.5rem;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 999;
}

.nav-dropdown-wrapper:hover .nav-dropdown-menu,
.nav-dropdown-wrapper:focus-within .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(4px);
}

.nav-dropdown-menu li a {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem 0.85rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.nav-dropdown-menu li a:hover {
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary-color);
    transform: translateX(4px);
}

.dropdown-divider {
    height: 1px;
    background: var(--border-color, #e2e8f0);
    margin: 0.25rem 0;
}

/* Document Center 2-Column Interactive Preview Layout */
.doc-preview-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
    margin-top: 2rem;
}

@media (max-width: 992px) {
    .doc-preview-layout {
        grid-template-columns: 1fr;
    }
}

.doc-stage-sticky {
    position: sticky;
    top: 100px;
    background: var(--bg-card, #ffffff);
    border: 1px solid var(--border-color, rgba(0,0,0,0.1));
    border-radius: 24px;
    padding: 1.75rem;
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.doc-preview-viewer {
    width: 100%;
    height: 320px;
    background: var(--bg-main, #f8fafc);
    border-radius: 16px;
    border: 1px solid var(--border-color, #e2e8f0);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.doc-item-card {
    background: var(--bg-card, #ffffff);
    border: 1px solid var(--border-color, rgba(0,0,0,0.1));
    border-radius: 18px;
    padding: 1.35rem;
    box-shadow: 0 10px 25px rgba(0,0,0,0.04);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1rem;
}

.doc-item-card:hover,
.doc-item-card.active {
    border-color: var(--primary-color, #2563eb);
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(37,99,235,0.15);
}

/* Premium Document Hub & Modal Reader */
.doc-hub-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.75rem;
    margin-top: 2rem;
}

.doc-hub-card {
    background: var(--bg-card, #ffffff);
    border: 1px solid var(--border-color, rgba(0,0,0,0.08));
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.04);
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.doc-hub-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(37,99,235,0.12);
    border-color: rgba(37,99,235,0.3);
}

.doc-type-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 800;
    flex-shrink: 0;
}

.type-pdf { background: rgba(239, 68, 68, 0.12); color: #ef4444; border: 1px solid rgba(239, 68, 68, 0.25); }
.type-word { background: rgba(37, 99, 235, 0.12); color: #2563eb; border: 1px solid rgba(37, 99, 235, 0.25); }
.type-excel { background: rgba(16, 185, 129, 0.12); color: #10b981; border: 1px solid rgba(16, 185, 129, 0.25); }
.type-media { background: rgba(168, 85, 247, 0.12); color: #a855f7; border: 1px solid rgba(168, 85, 247, 0.25); }
.type-file { background: rgba(100, 116, 139, 0.12); color: #64748b; border: 1px solid rgba(100, 116, 139, 0.25); }

/* Document Reader Modal Popup */
.doc-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.doc-modal-overlay.active {
    display: flex;
    opacity: 1;
}

.doc-modal-container {
    background: var(--bg-card, #ffffff);
    width: 100%;
    max-width: 920px;
    max-height: 90vh;
    border-radius: 24px;
    border: 1px solid var(--border-color, rgba(255,255,255,0.2));
    box-shadow: 0 30px 60px rgba(0,0,0,0.3);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: scale(0.92);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.doc-modal-overlay.active .doc-modal-container {
    transform: scale(1);
}

.doc-modal-header {
    padding: 1.25rem 1.75rem;
    background: var(--bg-main, #f8fafc);
    border-bottom: 1px solid var(--border-color, #e2e8f0);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.doc-modal-body {
    width: 100%;
    height: 540px;
    min-height: 500px;
    background: #0f172a !important;
    display: block;
    overflow: hidden;
    position: relative;
}

.doc-modal-footer {
    padding: 1rem 1.75rem;
    background: var(--bg-card, #ffffff);
    border-top: 1px solid var(--border-color, #e2e8f0);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.theme-toggle-btn {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-full);
    border: var(--glass-border);
    background: var(--bg-main);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.1rem;
    transition: var(--transition);
}

.theme-toggle-btn:hover {
    transform: rotate(15deg) scale(1.05);
    border-color: var(--primary-color);
}

.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-primary);
    cursor: pointer;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.85rem 1.75rem;
    font-size: 0.95rem;
    font-weight: 700;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
    border: none;
    outline: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), #1d4ed8);
    color: #ffffff;
    box-shadow: 0 10px 25px -5px rgba(37, 99, 235, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px -5px rgba(37, 99, 235, 0.6);
}

.btn-secondary {
    background: var(--bg-card);
    color: var(--text-primary);
    border: var(--glass-border);
    box-shadow: var(--glass-shadow);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    border-radius: var(--radius-sm);
}

/* Hero Section */
.hero-section {
    position: relative;
    padding: 7rem 0 5rem;
    overflow: hidden;
}

.hero-glow {
    position: absolute;
    top: -20%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.18) 0%, rgba(6, 182, 212, 0) 70%);
    border-radius: 50%;
    pointer-events: none;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 3rem;
    align-items: center;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary-color);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(37, 99, 235, 0.2);
}

.hero-title {
    font-size: 3.25rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    line-height: 1.15;
}

.hero-title span {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 90%;
}

.hero-cta {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.hero-card-stack {
    position: relative;
}

.hero-main-card {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    border: var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--glass-shadow);
    position: relative;
    z-index: 2;
    transition: var(--transition);
}

.hero-main-card:hover {
    transform: translateY(-5px);
}

.card-badge-floating {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: var(--secondary-color);
    color: #ffffff;
    padding: 1rem 1.5rem;
    border-radius: var(--radius-md);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    z-index: 3;
    animation: float 4s ease-in-out infinite;
}

/* Hero 3D Showcase & Floating Badges */
.hero-3d-showcase {
    position: relative;
    padding: 10px 0 25px 0;
}

.hero-showcase-frame {
    position: relative;
    border-radius: 24px;
    overflow: visible !important;
}

.hero-image-wrapper {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.15);
    border: 1px solid var(--border-color, rgba(255, 255, 255, 0.2));
}

.hero-showcase-img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    display: block;
    border-radius: 24px;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-3d-showcase:hover .hero-showcase-img {
    transform: scale(1.04);
}

.hero-floating-badge {
    position: absolute;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.18);
    padding: 0.75rem 1.25rem;
    border-radius: 50px;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #0f172a;
    transition: transform 0.3s ease;
}

.dark-mode .hero-floating-badge {
    background: rgba(15, 23, 42, 0.92);
    border-color: rgba(255, 255, 255, 0.18);
    color: #ffffff;
}

.hero-badge-top {
    top: -16px;
    left: 20px;
    font-size: 0.82rem;
    font-weight: 700;
}

.hero-badge-bottom {
    bottom: 12px;
    right: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    border-radius: 16px;
}

.hero-badge-bottom .badge-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color, #2563eb), var(--accent-color, #06b6d4));
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Modern 3D Gradient File Extension Badges */
.doc-type-icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: #ffffff !important;
    box-shadow: 0 8px 18px -4px rgba(0, 0, 0, 0.25);
    transition: transform 0.3s ease;
}

.doc-hub-card:hover .doc-type-icon {
    transform: scale(1.08) rotate(-3deg);
}

.type-pdf {
    background: linear-gradient(135deg, #ef4444, #dc2626) !important;
    box-shadow: 0 8px 20px -4px rgba(239, 68, 68, 0.45) !important;
}

.type-word {
    background: linear-gradient(135deg, #2563eb, #1d4ed8) !important;
    box-shadow: 0 8px 20px -4px rgba(37, 99, 235, 0.45) !important;
}

.type-excel {
    background: linear-gradient(135deg, #10b981, #059669) !important;
    box-shadow: 0 8px 20px -4px rgba(16, 185, 129, 0.45) !important;
}

.type-media {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed) !important;
    box-shadow: 0 8px 20px -4px rgba(139, 92, 246, 0.45) !important;
}

.type-file {
    background: linear-gradient(135deg, #64748b, #475569) !important;
    box-shadow: 0 8px 20px -4px rgba(100, 116, 139, 0.45) !important;
}

/* Sections Styling */
.section {
    padding: 5rem 0;
    position: relative;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3.5rem;
}

.section-tag {
    text-transform: uppercase;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    display: block;
}

.section-title {
    font-size: 2.25rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--text-secondary);
}

/* About Section */
#about.section {
    padding: 3.5rem 0 3rem 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 2.5rem;
    align-items: stretch;
}

.about-content-card {
    background: var(--bg-card);
    border: var(--glass-border);
    border-radius: var(--radius-lg, 24px);
    padding: 1.5rem 2rem;
    box-shadow: var(--glass-shadow);
}

.core-values-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.85rem;
    margin: 1.5rem 0;
}

.value-pill {
    background: var(--bg-main, #f8fafc);
    border: 1px solid var(--border-color, rgba(255,255,255,0.2));
    border-radius: 14px;
    padding: 0.85rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-primary);
    transition: all 0.3s ease;
}

.value-pill:hover {
    border-color: var(--primary-color);
    background: rgba(37, 99, 235, 0.06);
    transform: translateY(-3px);
}

.value-pill-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.quote-box {
    border-left: 4px solid var(--primary-color);
    padding-left: 1.25rem;
    font-style: italic;
    font-size: 1.1rem;
    color: var(--text-primary);
    margin: 1.5rem 0;
}

/* Stats Counter Grid */
.stats-section {
    background: linear-gradient(135deg, var(--secondary-color), #0f172a);
    color: #ffffff;
    padding: 4rem 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    text-align: center;
}

.stat-item {
    padding: 1.5rem;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1rem;
    color: #94a3b8;
    font-weight: 600;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
}

.service-card {
    background: var(--bg-card);
    border: var(--glass-border);
    border-radius: var(--radius-md);
    padding: 2rem;
    box-shadow: var(--glass-shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary-color);
}

.service-icon {
    width: 60px;
    height: 60px;
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary-color);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
}

.service-title {
    font-size: 1.25rem;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.service-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

/* Gallery Grid & Modal */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--glass-shadow);
    height: 240px;
    cursor: pointer;
}

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

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

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85), transparent);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem;
    color: #ffffff;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-title {
    font-size: 1.1rem;
    font-weight: 700;
}

.gallery-category {
    font-size: 0.8rem;
    color: var(--accent-color);
    text-transform: uppercase;
    font-weight: 600;
}

/* Posts / News Cards */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.post-card {
    background: var(--bg-card);
    border: var(--glass-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--glass-shadow);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.post-card:hover {
    transform: translateY(-6px);
}

.post-thumb {
    height: 200px;
    width: 100%;
    object-fit: cover;
}

.post-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.post-category {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary-color);
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: var(--radius-full);
    margin-bottom: 0.75rem;
    width: fit-content;
}

.post-title {
    font-size: 1.15rem;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.post-date {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

/* Team Grid */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
}

.team-card {
    background: var(--bg-card);
    border: var(--glass-border);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    text-align: center;
    box-shadow: var(--glass-shadow);
    transition: var(--transition);
}

.team-card:hover {
    transform: translateY(-5px);
}

.team-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1.25rem;
    border: 3px solid var(--primary-color);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.team-name {
    font-size: 1.15rem;
    color: var(--text-primary);
}

.team-position {
    font-size: 0.85rem;
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0.75rem;
}

/* Contact Grid & Form */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 3rem;
}

.contact-info-card {
    background: var(--bg-card);
    border: var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--glass-shadow);
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    margin-bottom: 1.75rem;
}

.contact-icon {
    width: 48px;
    height: 48px;
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary-color);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.form-card {
    background: var(--bg-card);
    border: var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--glass-shadow);
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.form-input, .form-textarea {
    width: 100%;
    padding: 0.85rem 1.25rem;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    background: var(--bg-main);
    color: var(--text-primary);
    font-size: 0.95rem;
    outline: none;
    transition: var(--transition);
    font-family: inherit;
}

.form-input:focus, .form-textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

/* Footer */
.footer {
    background: var(--secondary-color);
    color: #f8fafc;
    padding: 5rem 0 2rem;
    margin-top: 5rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 3rem;
    margin-bottom: 3.5rem;
}

.footer-brand p {
    color: #94a3b8;
    margin-top: 1rem;
    font-size: 0.95rem;
}

.footer-heading {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    color: #ffffff;
}

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

.footer-links li {
    margin-bottom: 0.6rem;
}

.footer-links a {
    color: #94a3b8;
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--accent-color);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: #94a3b8;
}

/* Scroll Progress Indicator Bar */
.scroll-progress-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: transparent;
    z-index: 1000;
}

.scroll-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    box-shadow: 0 0 10px var(--accent-color);
    transition: width 0.1s ease-out;
}

/* Intersection Observer Reveal Animations */
.reveal {
    opacity: 0;
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform, opacity;
}

.reveal-up {
    transform: translateY(40px);
}

.reveal-left {
    transform: translateX(-40px);
}

.reveal-right {
    transform: translateX(40px);
}

.reveal-zoom {
    transform: scale(0.92);
}

.reveal.is-revealed {
    opacity: 1;
    transform: translateY(0) translateX(0) scale(1);
}

/* Interactive Sticky Scrollytelling Section */
.scrolly-section {
    padding: 6rem 0;
    background: linear-gradient(180deg, var(--bg-main) 0%, rgba(15, 23, 42, 0.05) 50%, var(--bg-main) 100%);
    position: relative;
}

.scrolly-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
    align-items: start;
}

/* Sticky Stage Box on Left */
.scrolly-sticky-wrapper {
    position: sticky;
    top: 120px;
    height: calc(100vh - 160px);
    max-height: 520px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.scrolly-visual-stage {
    width: 100%;
    height: 100%;
    background: var(--bg-card);
    border: var(--glass-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--glass-shadow);
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.scrolly-visual-stage::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.12) 0%, transparent 60%);
    pointer-events: none;
    transition: transform 0.8s ease;
}

.scrolly-stage-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    background: rgba(37, 99, 235, 0.15);
    color: var(--primary-color);
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    width: fit-content;
}

.scrolly-stage-icon {
    width: 80px;
    height: 80px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    box-shadow: 0 15px 30px rgba(37, 99, 235, 0.3);
    margin: 1.5rem 0;
    transition: transform 0.5s ease;
}

.scrolly-stage-title {
    font-size: 1.75rem;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.scrolly-stage-desc {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.6;
}

.scrolly-stage-progress {
    display: flex;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.scrolly-dot {
    height: 6px;
    flex-grow: 1;
    background: var(--border-color);
    border-radius: var(--radius-full);
    transition: background 0.3s ease, flex-grow 0.3s ease;
}

.scrolly-dot.active {
    background: var(--primary-color);
    flex-grow: 2;
}

/* Right Side Scrollable Story Step Cards */
.scrolly-steps-container {
    display: flex;
    flex-direction: column;
    gap: 12vh;
    padding: 4vh 0;
}

.scrolly-step-card {
    background: var(--bg-card);
    border: var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--glass-shadow);
    transition: all 0.4s ease;
    opacity: 0.4;
    transform: scale(0.96);
}

.scrolly-step-card.active {
    opacity: 1;
    transform: scale(1);
    border-color: var(--primary-color);
    box-shadow: 0 20px 40px -10px rgba(37, 99, 235, 0.25);
}

.scrolly-step-number {
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
}

.scrolly-step-title {
    font-size: 1.4rem;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.scrolly-step-text {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* Particle Canvas Background Overlay */
.particle-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

/* 3D Tilt Card Enhancements & Glare */
.tilt-card {
    transform-style: preserve-3d;
    perspective: 1000px;
    will-change: transform;
}

.tilt-child {
    transform: translateZ(30px);
}

.js-tilt-glare {
    border-radius: inherit;
}

/* Scroll Down Prompt Badge */
.scroll-down-prompt {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    border-radius: var(--radius-full);
    background: var(--bg-card);
    border: var(--glass-border);
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 700;
    box-shadow: var(--glass-shadow);
    margin-top: 2.5rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-8px); }
    60% { transform: translateY(-4px); }
}

/* Morphing Scrollytelling Stage Themes */
.scrolly-visual-stage[data-theme-step="0"] {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.2) 0%, var(--bg-card) 100%);
    border-color: rgba(37, 99, 235, 0.4);
    box-shadow: 0 25px 50px -12px rgba(37, 99, 235, 0.3);
}

.scrolly-visual-stage[data-theme-step="1"] {
    background: linear-gradient(135deg, rgba(5, 150, 105, 0.2) 0%, var(--bg-card) 100%);
    border-color: rgba(5, 150, 105, 0.4);
    box-shadow: 0 25px 50px -12px rgba(5, 150, 105, 0.3);
}

.scrolly-visual-stage[data-theme-step="2"] {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2) 0%, var(--bg-card) 100%);
    border-color: rgba(245, 158, 11, 0.4);
    box-shadow: 0 25px 50px -12px rgba(245, 158, 11, 0.3);
}

.scrolly-visual-stage[data-theme-step="1"] .scrolly-stage-icon {
    background: linear-gradient(135deg, #059669, #10b981);
    box-shadow: 0 15px 30px rgba(5, 150, 105, 0.4);
}

.scrolly-visual-stage[data-theme-step="2"] .scrolly-stage-icon {
    background: linear-gradient(135deg, #d97706, #f59e0b);
    box-shadow: 0 15px 30px rgba(245, 158, 11, 0.4);
}

/* Custom Modern File Input Selector Button */
input[type="file"].form-control-admin {
    padding: 0.5rem 0.75rem;
    cursor: pointer;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

input[type="file"].form-control-admin::file-selector-button,
input[type="file"].form-control-admin::-webkit-file-upload-button {
    background: linear-gradient(135deg, var(--primary-color), #0284c7);
    color: #ffffff;
    border: none;
    padding: 0.45rem 1rem;
    border-radius: var(--radius-sm);
    margin-right: 0.85rem;
    font-weight: 700;
    font-size: 0.8rem;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
    transition: var(--transition);
}

input[type="file"].form-control-admin::file-selector-button:hover,
input[type="file"].form-control-admin::-webkit-file-upload-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.4);
}

/* Modern File Dropzone Container */
.modern-dropzone {
    background: var(--bg-main);
    border: 2px dashed var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    text-align: center;
    transition: var(--transition);
    position: relative;
}

.modern-dropzone:hover {
    border-color: var(--primary-color);
    background: rgba(37, 99, 235, 0.03);
}

.file-preview-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.85rem;
    border-radius: var(--radius-full);
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary-color);
    font-size: 0.75rem;
    font-weight: 700;
    margin-top: 0.5rem;
}

/* -------------------------------------------------------------
 * 3D Interactive Hero Showcase Engine
 * ------------------------------------------------------------- */
.hero-3d-showcase {
    position: relative;
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    perspective: 1000px;
}

.hero-showcase-frame {
    position: relative;
    border-radius: var(--radius-lg, 24px);
    padding: 10px;
    background: var(--glass-bg, rgba(255, 255, 255, 0.85));
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-color, rgba(255, 255, 255, 0.3));
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25), 0 0 30px rgba(37, 99, 235, 0.2);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: visible;
}

.hero-image-wrapper {
    position: relative;
    width: 100%;
    height: 340px;
    border-radius: calc(var(--radius-lg, 24px) - 6px);
    overflow: hidden;
}

.hero-showcase-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.hero-3d-showcase:hover .hero-showcase-img {
    transform: scale(1.06);
}

.hero-img-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.1) 0%, rgba(15, 23, 42, 0.4) 100%);
}

.hero-floating-badge {
    position: absolute;
    padding: 0.65rem 1.1rem;
    border-radius: 30px;
    background: var(--bg-card, #ffffff);
    color: var(--text-primary, #020617);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.18);
    border: 1px solid var(--border-color, rgba(0, 0, 0, 0.1));
    font-size: 0.82rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    z-index: 10;
    backdrop-filter: blur(10px);
}

.hero-badge-top {
    top: -18px;
    left: 20px;
    animation: floatSlow 4s ease-in-out infinite alternate;
}

.hero-badge-bottom {
    bottom: -22px;
    right: 15px;
    animation: floatSlow 4s ease-in-out 2s infinite alternate;
}

.pulse-dot {
    width: 9px;
    height: 9px;
    background: #10b981;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    animation: pulseGlow 2s infinite;
}

.badge-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--primary-color, #2563eb);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes floatSlow {
    0% { transform: translateY(0); }
    100% { transform: translateY(-8px); }
}

@keyframes pulseGlow {
    0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
    100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* -------------------------------------------------------------
 * Ultra-Modern 3D Perspective Scrollytelling Suite (60FPS)
 * ------------------------------------------------------------- */
.reveal-fly-left {
    opacity: 0;
    transform: perspective(1200px) rotateY(-35deg) translateX(-120px) scale(0.85);
    filter: blur(8px);
    will-change: transform, opacity, filter;
    transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1), transform 0.85s cubic-bezier(0.16, 1, 0.3, 1), filter 0.85s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-fly-right {
    opacity: 0;
    transform: perspective(1200px) rotateY(35deg) translateX(120px) scale(0.85);
    filter: blur(8px);
    will-change: transform, opacity, filter;
    transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1), transform 0.85s cubic-bezier(0.16, 1, 0.3, 1), filter 0.85s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-rise-up {
    opacity: 0;
    transform: perspective(1000px) rotateX(25deg) translateY(90px) scale(0.92);
    filter: blur(6px);
    will-change: transform, opacity, filter;
    transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1), transform 0.85s cubic-bezier(0.16, 1, 0.3, 1), filter 0.85s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-zoom-in {
    opacity: 0;
    transform: perspective(1000px) rotateZ(-6deg) scale(0.65);
    filter: blur(10px);
    will-change: transform, opacity, filter;
    transition: opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1), transform 0.85s cubic-bezier(0.16, 1, 0.3, 1), filter 0.85s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-morph {
    opacity: 0;
    transform: perspective(1000px) rotateX(20deg) rotateY(-10deg) translateY(60px) scale(0.88);
    filter: blur(8px);
    will-change: transform, opacity, filter;
    transition: opacity 0.95s cubic-bezier(0.16, 1, 0.3, 1), transform 0.95s cubic-bezier(0.16, 1, 0.3, 1), filter 0.95s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-split-wipe {
    opacity: 0;
    clip-path: polygon(0 0, 0 0, 0 100%, 0% 100%);
    filter: blur(4px);
    transition: opacity 0.5s ease, clip-path 0.95s cubic-bezier(0.16, 1, 0.3, 1), filter 0.95s ease;
}

/* Active Entrance Trigger Classes (3D Crystal Sharp Focus) */
.reveal-fly-left.active,
.reveal-fly-left.is-revealed,
.reveal-fly-right.active,
.reveal-fly-right.is-revealed,
.reveal-rise-up.active,
.reveal-rise-up.is-revealed {
    opacity: 1;
    transform: perspective(1200px) rotateY(0deg) rotateX(0deg) translateX(0) translateY(0) scale(1);
    filter: blur(0px);
}

.reveal-zoom-in.active,
.reveal-zoom-in.is-revealed {
    opacity: 1;
    transform: perspective(1000px) rotateZ(0deg) scale(1);
    filter: blur(0px);
}

.reveal-morph.active,
.reveal-morph.is-revealed {
    opacity: 1;
    transform: perspective(1000px) rotateX(0deg) rotateY(0deg) translateY(0) scale(1);
    filter: blur(0px);
}

.reveal-split-wipe.active,
.reveal-split-wipe.is-revealed {
    opacity: 1;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    filter: blur(0px);
}

/* Emphasis & Attention Animations */
.emphasis-pulse {
    animation: pulseGrow 2.5s infinite ease-in-out;
}

.emphasis-glow-text {
    background: linear-gradient(135deg, var(--primary-color, #2563eb), #06b6d4, #10b981);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientShift 4s ease infinite;
}

.emphasis-spin-icon {
    transition: transform 0.6s ease;
}

.emphasis-spin-icon:hover {
    transform: rotate(360deg) scale(1.15);
}

/* Scrollytelling Interactive Grid Layout */
.scrolly-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
    margin-top: 2.5rem;
}

.scrolly-sticky-wrapper {
    position: sticky;
    top: 100px;
}

.scrolly-visual-stage {
    background: var(--bg-card, #ffffff);
    border: 1px solid var(--border-color, rgba(0,0,0,0.1));
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
    min-height: 380px;
}

.scrolly-steps-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    width: 100%;
}

.scrolly-step-card {
    position: relative;
    background: var(--bg-card, #ffffff);
    border: 1px solid var(--border-color, rgba(255,255,255,0.2));
    border-radius: 20px;
    padding: 2.25rem;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
}

.scrolly-step-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary-color, #2563eb), #06b6d4);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.scrolly-step-card.active-step {
    border-color: var(--primary-color, #2563eb);
    box-shadow: 0 25px 50px rgba(37, 99, 235, 0.2);
    transform: translateY(-6px);
}

.scrolly-step-card.active-step::before {
    opacity: 1;
}

/* -------------------------------------------------------------
 * Multi-Layered Parallax Decorative Orbs & Utility Classes
 * ------------------------------------------------------------- */
.parallax-bg,
.parallax-float,
.parallax-slow {
    will-change: transform;
    pointer-events: none;
}

.parallax-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(45px);
    opacity: 0.35;
    z-index: 1;
    pointer-events: none;
}

.orb-primary {
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, var(--primary-color, #2563eb) 0%, rgba(37,99,235,0) 70%);
}

.orb-accent {
    width: 240px;
    height: 240px;
    background: radial-gradient(circle, var(--accent-color, #06b6d4) 0%, rgba(6,182,212,0) 70%);
}

/* -------------------------------------------------------------
 * Subtle Smooth Trailing Cursor Halo Follower (OS Cursor Remains Visible)
 * ------------------------------------------------------------- */
.custom-cursor-ring {
    width: 30px;
    height: 30px;
    border: 1.5px solid var(--primary-color, #2563eb);
    background: rgba(37, 99, 235, 0.04);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 99998;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 15px rgba(37, 99, 235, 0.12);
    will-change: transform, width, height, background;
    transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1), 
                height 0.3s cubic-bezier(0.16, 1, 0.3, 1), 
                background 0.3s ease, 
                border-color 0.3s ease,
                opacity 0.3s ease;
}

/* Hover Expanded Interactive Halo State */
.custom-cursor-ring.hover-active {
    width: 48px;
    height: 48px;
    background: rgba(37, 99, 235, 0.1);
    border-color: var(--accent-color, #06b6d4);
    box-shadow: 0 0 25px rgba(6, 182, 212, 0.25);
}

.custom-cursor-ring.click-active {
    transform: translate(-50%, -50%) scale(0.8);
}

/* Hide cursor follower on touch devices */
@media (pointer: coarse) {
    .custom-cursor-ring {
        display: none !important;
    }
}

/* -------------------------------------------------------------
 * Modern Leadership 3D Showcase Cards (Kepala Daerah & Kepala Dinas)
 * ------------------------------------------------------------- */
.leadership-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.25rem;
}

.leadership-card {
    background: var(--bg-card, #ffffff);
    border: 1px solid var(--border-color, rgba(255,255,255,0.2));
    border-radius: var(--radius-lg, 20px);
    padding: 1.5rem;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.leadership-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 45px rgba(37, 99, 235, 0.18);
}

.leadership-photo-wrapper {
    position: relative;
    width: 105px;
    height: 105px;
    border-radius: 50%;
    margin-bottom: 1rem;
    padding: 4px;
    background: linear-gradient(135deg, var(--primary-color, #2563eb), var(--accent-color, #06b6d4));
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.25);
}

.leadership-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    background: #ffffff;
    border: 2px solid var(--bg-card, #ffffff);
}

.leadership-badge-tag {
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--primary-color, #2563eb);
    background: rgba(37, 99, 235, 0.1);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    margin-bottom: 0.6rem;
    display: inline-block;
}

.leadership-name {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.2rem;
    line-height: 1.3;
}

.leadership-role {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 0.85rem;
}

.leadership-quote {
    font-size: 0.82rem;
    font-style: italic;
    color: var(--text-secondary);
    line-height: 1.45;
    background: var(--bg-main, #f8fafc);
    padding: 0.75rem 1rem;
    border-radius: 12px;
    border-left: 3px solid var(--primary-color, #2563eb);
    width: 100%;
}

/* -------------------------------------------------------------
 * Modern Horizontal Executive Leadership Cards (Photo Right)
 * ------------------------------------------------------------- */
.leadership-horizontal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 1.5rem;
    width: 100%;
}

.leadership-card-horizontal {
    background: var(--bg-card, #ffffff);
    border: 1px solid var(--border-color, rgba(255,255,255,0.2));
    border-radius: var(--radius-lg, 24px);
    padding: 1.75rem 2rem;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    display: grid;
    grid-template-columns: 1fr 125px;
    align-items: center;
    gap: 1.5rem;
    position: relative;
    overflow: hidden;
}

.leadership-card-horizontal:hover {
    transform: translateY(-6px);
    box-shadow: 0 25px 50px rgba(37, 99, 235, 0.18);
    border-color: var(--primary-color);
}

.leadership-content-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.leadership-photo-right {
    width: 125px;
    height: 125px;
    border-radius: 50%;
    padding: 4px;
    background: linear-gradient(135deg, var(--primary-color, #2563eb), var(--accent-color, #06b6d4));
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.28);
    flex-shrink: 0;
}

.leadership-photo-right img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    background: #ffffff;
    border: 2px solid var(--bg-card, #ffffff);
}

@media (max-width: 768px) {
    .leadership-card-horizontal {
        grid-template-columns: 1fr;
        text-align: center;
        justify-items: center;
    }
    .leadership-content-left {
        align-items: center;
        text-align: center;
        order: 2;
    }
    .leadership-photo-right {
        order: 1;
    }
}

@keyframes pulseGrow {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.04); }
}

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

/* Staggered Delay Utilities for Grid Elements */
.delay-1 { transition-delay: 0.1s !important; }
.delay-2 { transition-delay: 0.25s !important; }
.delay-3 { transition-delay: 0.4s !important; }
.delay-4 { transition-delay: 0.55s !important; }
.delay-5 { transition-delay: 0.7s !important; }

/* -------------------------------------------------------------
 * Mobile Glassmorphism Bottom Navigation Dock
 * ------------------------------------------------------------- */
.mobile-bottom-nav {
    display: none;
}

@media (max-width: 768px) {
    body {
        padding-top: 64px !important;
        padding-bottom: 80px !important;
    }

    .mobile-bottom-nav {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        height: 68px;
        background: rgba(15, 23, 42, 0.95);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-top: 1px solid rgba(255, 255, 255, 0.15);
        z-index: 99999;
        justify-content: flex-start;
        align-items: center;
        padding: 0 0.75rem;
        gap: 0.5rem;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        white-space: nowrap !important;
        scrollbar-width: none !important;
        -ms-overflow-style: none !important;
        -webkit-overflow-scrolling: touch !important;
        box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.35);
    }

    .mobile-bottom-nav::-webkit-scrollbar {
        display: none !important;
    }

    .mobile-nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        color: #94a3b8;
        font-size: 0.68rem;
        font-weight: 700;
        gap: 3px;
        text-decoration: none;
        transition: all 0.3s ease;
        padding: 6px 12px;
        border-radius: 12px;
        flex-shrink: 0 !important;
        min-width: 68px;
    }

    .mobile-nav-item i {
        width: 20px;
        height: 20px;
        stroke-width: 2.2;
    }

    .mobile-nav-item.active,
    .mobile-nav-item:hover {
        color: #ffffff;
        background: rgba(37, 99, 235, 0.35);
    }

    .mobile-nav-item.active i {
        color: #38bdf8;
        transform: translateY(-2px);
    }
}

/* -------------------------------------------------------------
 * Comprehensive 100% Mobile Responsive Rules & Overflow Safeguard
 * ------------------------------------------------------------- */
html, body {
    max-width: 100%;
    overflow-x: hidden !important;
}

@media (max-width: 768px) {
    /* Navbar Topbar Mobile Alignment */
    .navbar-container {
        height: 64px !important;
        padding: 0 0.85rem !important;
        gap: 0.5rem !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box;
    }

    .brand-logo {
        gap: 0.4rem !important;
        max-width: 75% !important;
        overflow: hidden;
    }

    .brand-logo-group {
        gap: 0.3rem !important;
    }

    .brand-logo-img {
        height: 28px !important;
        max-width: 55px !important;
    }

    .brand-title-text {
        font-size: 0.82rem !important;
        max-width: 165px !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        display: block !important;
        line-height: 1.25 !important;
    }

    .nav-menu {
        display: none !important;
    }

    .header-actions {
        gap: 0.4rem !important;
    }

    .header-actions .btn {
        padding: 0.35rem 0.6rem !important;
        font-size: 0.75rem !important;
        white-space: nowrap;
    }

    /* Container & Section Grid Mobile Safeguards */
    .container {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 1rem !important;
        box-sizing: border-box !important;
        overflow: hidden;
    }

    /* Footer Mobile Grid & Text Truncation Fix (Gambar 1) */
    .footer-grid {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
        text-align: left !important;
        margin-bottom: 2rem !important;
    }

    .footer-bottom {
        flex-direction: column !important;
        gap: 1rem !important;
        text-align: center !important;
    }

    /* Floating Live Chat Widget Position Fix (Gambar 1) */
    #flexiChatTrigger {
        bottom: 85px !important;
        right: 16px !important;
    }

    #flexiChatWindow {
        bottom: 150px !important;
        right: 16px !important;
        width: calc(100vw - 32px) !important;
        max-height: calc(100vh - 180px) !important;
    }

    /* Scrollytelling Step Cards Mobile Fit & Left Gap Fix (Gambar 2) */
    .scrolly-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 1.5rem !important;
        width: 100% !important;
        margin: 1.5rem 0 0 0 !important;
    }

    .scrolly-sticky-wrapper {
        position: relative !important;
        top: 0 !important;
        width: 100% !important;
        margin-bottom: 1rem !important;
    }

    .scrolly-visual-stage {
        min-height: auto !important;
        padding: 1.5rem !important;
    }

    .scrolly-steps-container {
        width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 1.25rem !important;
        margin: 0 !important;
        padding: 0 !important;
        align-items: stretch !important;
    }

    .scrolly-step-card {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 0 1.25rem 0 !important;
        box-sizing: border-box !important;
        padding: 1.35rem !important;
        align-self: stretch !important;
        left: 0 !important;
        right: 0 !important;
        transform: none !important;
    }

    .scrolly-step-card h3 {
        font-size: 1.2rem !important;
    }

    .scrolly-step-card p {
        font-size: 0.88rem !important;
    }

    /* Hero Section Mobile */
    .hero-grid {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
        text-align: center;
    }

    .hero-title {
        font-size: 1.85rem !important;
    }

    .hero-subtitle {
        font-size: 0.95rem !important;
    }

    .hero-showcase-img {
        height: 280px !important;
    }

    .hero-badge-bottom {
        bottom: 10px !important;
        right: 10px !important;
        left: 10px !important;
        padding: 0.6rem 0.85rem !important;
        font-size: 0.78rem !important;
        box-sizing: border-box !important;
        justify-content: flex-start !important;
    }

    .hero-badge-top {
        top: -12px !important;
        left: 10px !important;
        font-size: 0.75rem !important;
    }

    /* Leadership Cards Mobile */
    .leadership-horizontal-grid {
        grid-template-columns: 1fr !important;
        gap: 1.25rem !important;
        width: 100% !important;
    }

    .leadership-card-horizontal {
        grid-template-columns: 1fr !important;
        padding: 1.25rem !important;
        text-align: center;
        width: 100% !important;
        box-sizing: border-box;
    }

    /* General Cards Safeguard */
    .service-card,
    .gallery-item,
    .post-card,
    .team-card,
    .stat-item {
        width: 100% !important;
        box-sizing: border-box !important;
    }
}

/* -------------------------------------------------------------
 * New Modules: Events, Downloads, FAQ & Testimonials Styling
 * ------------------------------------------------------------- */

/* 1. Agenda & Event Showcase */
.event-featured-banner {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.95), rgba(15, 23, 42, 0.95));
    border-radius: var(--radius-lg, 24px);
    padding: 2.5rem;
    color: #ffffff;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 2rem;
    align-items: center;
    margin-bottom: 2.5rem;
}

.countdown-box-wrapper {
    display: flex;
    gap: 0.85rem;
    justify-content: center;
}

.countdown-box {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 16px;
    padding: 0.85rem 1rem;
    text-align: center;
    min-width: 65px;
}

.countdown-num {
    font-size: 1.6rem;
    font-weight: 800;
    line-height: 1;
    color: #38bdf8;
}

.countdown-label {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #cbd5e1;
    margin-top: 4px;
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.event-card {
    background: var(--bg-card, #ffffff);
    border: 1px solid var(--border-color, rgba(0,0,0,0.1));
    border-radius: var(--radius-md, 16px);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.event-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(37, 99, 235, 0.15);
}

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

.event-card-body {
    padding: 1.25rem;
}

/* 2. Download Center Cards */
.download-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.download-card {
    background: var(--bg-card, #ffffff);
    border: 1px solid var(--border-color, rgba(0,0,0,0.1));
    border-radius: var(--radius-md, 16px);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.download-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary-color);
}

.download-badge {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 700;
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary-color);
    margin-bottom: 0.75rem;
}

/* 3. FAQ Accordion & Live Search */
.faq-search-wrapper {
    max-width: 580px;
    margin: 0 auto 2.5rem auto;
    position: relative;
}

.faq-search-input {
    width: 100%;
    padding: 1rem 1.25rem 1rem 3rem;
    border-radius: 50px;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-primary);
    font-size: 0.95rem;
    outline: none;
    box-shadow: 0 8px 25px rgba(0,0,0,0.05);
}

.faq-search-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.15);
}

.faq-search-icon {
    position: absolute;
    left: 1.1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.faq-accordion-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 820px;
    margin: 0 auto;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    transition: var(--transition);
}

.faq-header-btn {
    width: 100%;
    padding: 1.25rem 1.5rem;
    background: none;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    cursor: pointer;
    text-align: left;
}

.faq-answer-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0, 1, 0, 1), padding 0.4s ease;
    padding: 0 1.5rem;
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.6;
}

.faq-item.active .faq-answer-content {
    max-height: 300px;
    padding: 0 1.5rem 1.25rem 1.5rem;
    transition: max-height 0.4s ease-in-out, padding 0.4s ease;
}

.faq-item.active .faq-toggle-icon {
    transform: rotate(180deg);
}

/* 4. Testimonials Slider & Rating */
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.75rem;
}

.testimonial-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 1.75rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-6px);
}

.testimonial-user {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1.25rem;
}

.testimonial-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary-color);
}

/* Modern File Input Styling */
input[type="file"] {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

input[type="file"]::file-selector-button {
    background: linear-gradient(135deg, var(--primary-color, #2563eb) 0%, #1d4ed8 100%);
    color: #ffffff;
    border: none;
    padding: 0.55rem 1.1rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.82rem;
    cursor: pointer;
    margin-right: 0.85rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

input[type="file"]::file-selector-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.35);
}

/* Custom Drag and Drop File Upload Area */
.custom-file-upload {
    position: relative;
    width: 100%;
}

.custom-file-upload input[type="file"] {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}

.custom-file-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background: var(--bg-main, #f8fafc);
    border: 2px dashed var(--border-color, #cbd5e1);
    border-radius: 14px;
    color: var(--text-secondary, #64748b);
    font-size: 0.88rem;
    font-weight: 600;
    transition: all 0.25s ease;
    text-align: center;
    cursor: pointer;
}

/* Base Desktop & Mobile Layout Isolation */
@media (min-width: 769px) {
    .admin-mobile-nav,
    .mobile-bottom-nav,
    .admin-mobile-nav-wrapper {
        display: none !important;
    }

    .admin-sidebar {
        display: flex !important;
        width: 270px;
        transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .admin-content {
        margin-left: 270px;
        padding: 98px 2.5rem 2.5rem 2.5rem !important;
        width: calc(100% - 270px);
        max-width: calc(100vw - 270px);
        transition: margin-left 0.3s cubic-bezier(0.4, 0, 0.2, 1), max-width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .admin-topbar {
        position: fixed !important;
        top: 0 !important;
        left: 270px;
        right: 0 !important;
        width: calc(100% - 270px);
        z-index: 99999 !important;
        margin: 0 !important;
        padding: 0.75rem 2.5rem !important;
        border-radius: 0 0 16px 16px !important;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08) !important;
        background: var(--bg-card) !important;
        transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1), width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    /* Topbar Brand Title Visibility Toggle (Hide by default, Show ONLY on sidebar collapse) */
    .topbar-brand-title {
        display: none !important;
    }

    .sidebar-collapsed .topbar-brand-title {
        display: flex !important;
    }

    /* COLLAPSED SIDEBAR (MINI ICON MODE) */
    .sidebar-collapsed .admin-sidebar {
        width: 76px !important;
        padding: 1.5rem 0.5rem 0 !important;
    }

    .sidebar-collapsed .admin-sidebar .sidebar-brand {
        justify-content: center !important;
        padding: 0 0 1rem 0 !important;
    }

    .sidebar-collapsed .admin-sidebar .sidebar-brand-text,
    .sidebar-collapsed .admin-sidebar .sidebar-link-text,
    .sidebar-collapsed .admin-sidebar .menu-heading {
        display: none !important;
    }

    .sidebar-collapsed .admin-sidebar .sidebar-link {
        justify-content: center !important;
        padding: 0.75rem !important;
    }

    .sidebar-collapsed .admin-content {
        margin-left: 76px !important;
        width: calc(100% - 76px) !important;
        max-width: calc(100vw - 76px) !important;
    }

    .sidebar-collapsed .admin-topbar {
        left: 76px !important;
        width: calc(100% - 76px) !important;
    }
}

@media (max-width: 768px) {
    body.admin-body {
        padding-top: 0 !important;
        margin: 0 !important;
    }

    .admin-sidebar {
        display: none !important;
    }

    .admin-content {
        margin-left: 0 !important;
        padding: 80px 0.75rem 85px 0.75rem !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Force 1-Column Layout on ALL Admin Pages in Mobile View ONLY */
    .admin-content div[style*="grid-template-columns"],
    .admin-card div[style*="grid-template-columns"],
    div[style*="grid-template-columns"],
    .admin-grid-2col,
    .admin-stats-grid,
    .admin-card-grid {
        grid-template-columns: 1fr !important;
        width: 100% !important;
        max-width: 100% !important;
        gap: 1rem !important;
        box-sizing: border-box !important;
    }

    .form-group, .form-control-admin, .form-input, select, textarea, input, button {
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .admin-topbar {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100vw !important;
        z-index: 99999 !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        padding: 0.4rem 0.75rem !important;
        margin: 0 !important;
        border-radius: 0 0 12px 12px !important;
        gap: 0.5rem !important;
        border-top: none !important;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1) !important;
        background: var(--bg-card) !important;
    }
        top: 0 !important;
        z-index: 9999 !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        padding: 0.4rem 0.75rem !important;
        margin: 0 -0.75rem 1rem -0.75rem !important;
        border-radius: 0 0 12px 12px !important;
        gap: 0.5rem !important;
        border-top: none !important;
        box-shadow: 0 4px 15px rgba(0,0,0,0.1) !important;
    }

    .admin-topbar-title {
        font-size: 0.95rem !important;
        line-height: 1.1 !important;
    }

    .admin-topbar-subtext, .admin-user-text {
        display: none !important;
    }

    .table-responsive {
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        display: block !important;
        box-sizing: border-box !important;
    }

    .admin-table {
        min-width: 480px !important;
    }

    .admin-mobile-nav {
        display: flex !important;
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100vw !important;
        max-width: 100vw !important;
        height: 68px !important;
        background: rgba(15, 23, 42, 0.96) !important;
        backdrop-filter: blur(20px) !important;
        -webkit-backdrop-filter: blur(20px) !important;
        border-top: 1px solid rgba(255, 255, 255, 0.15) !important;
        z-index: 999999 !important;
        justify-content: flex-start !important;
        align-items: center !important;
        padding: 0 0.75rem !important;
        gap: 0.5rem !important;
        overflow-x: scroll !important;
        overflow-y: hidden !important;
        white-space: nowrap !important;
        scrollbar-width: none !important;
        -ms-overflow-style: none !important;
        -webkit-overflow-scrolling: touch !important;
        touch-action: pan-x !important;
        overscroll-behavior: contain !important;
        overscroll-behavior-y: contain !important;
        box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.4) !important;
    }

    .admin-mobile-nav::-webkit-scrollbar {
        display: none !important;
        width: 0 !important;
        height: 0 !important;
    }

    .admin-mobile-nav-item {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        color: #94a3b8 !important;
        font-size: 0.68rem !important;
        font-weight: 700 !important;
        gap: 3px !important;
        text-decoration: none !important;
        transition: all 0.3s ease !important;
        padding: 6px 12px !important;
        border-radius: 12px !important;
        flex-shrink: 0 !important;
        min-width: 68px !important;
        white-space: nowrap !important;
        user-select: none !important;
        -webkit-user-drag: none !important;
    }

    .admin-mobile-nav-item i {
        width: 18px !important;
        height: 18px !important;
        stroke-width: 2.2 !important;
    }

    .admin-mobile-nav-item.active,
    .admin-mobile-nav-item:hover {
        color: #ffffff !important;
        background: rgba(37, 99, 235, 0.35) !important;
    }

    .admin-mobile-nav-item.active i {
        color: #38bdf8 !important;
        transform: translateY(-2px) !important;
    }
}

.custom-file-upload:hover .custom-file-label {
    border-color: var(--primary-color, #2563eb);
    background: rgba(37, 99, 235, 0.05);
    color: var(--primary-color, #2563eb);
    transform: translateY(-2px);
}

/* Custom Modern Glassmorphic Flatpickr DateTime Picker Styling */
input::-webkit-calendar-picker-indicator,
input::-webkit-inner-spin-button,
input::-webkit-clear-button {
    display: none !important;
    -webkit-appearance: none !important;
}

.custom-flatpickr-input {
    width: 100% !important;
    padding: 0.85rem 1rem 0.85rem 3.3rem !important;
    font-size: 0.95rem !important;
    border-radius: 12px !important;
    border: 1.5px solid var(--border-color, #cbd5e1) !important;
    background: var(--bg-main, #ffffff) !important;
    color: var(--text-primary, #0f172a) !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03) !important;
}

.custom-flatpickr-input:focus,
.custom-flatpickr-input:hover {
    border-color: var(--primary-color, #2563eb) !important;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.15) !important;
    outline: none !important;
}

.flatpickr-calendar {
    width: 345px !important;
    min-width: 345px !important;
    box-sizing: border-box !important;
    border-radius: 20px !important;
    background: var(--bg-card, #ffffff) !important;
    border: 1px solid var(--border-color, rgba(226, 232, 240, 0.9)) !important;
    box-shadow: 0 24px 50px -12px rgba(0, 0, 0, 0.22), 0 12px 24px -6px rgba(0, 0, 0, 0.12) !important;
    font-family: inherit !important;
    padding: 12px 14px !important;
    backdrop-filter: blur(16px) !important;
    z-index: 999999 !important;
}

.flatpickr-calendar.hasTime .flatpickr-time {
    height: 48px !important;
    max-height: 48px !important;
}

.flatpickr-days {
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
}

.dayContainer {
    width: 315px !important;
    min-width: 315px !important;
    max-width: 315px !important;
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: flex-start !important;
}

.flatpickr-weekdays {
    width: 315px !important;
    min-width: 315px !important;
    max-width: 315px !important;
    margin: 0 auto !important;
    display: flex !important;
    justify-content: space-between !important;
}

span.flatpickr-weekday {
    width: 45px !important;
    max-width: 45px !important;
    flex: 1 !important;
    text-align: center !important;
    color: var(--text-secondary, #64748b) !important;
    font-weight: 800 !important;
    font-size: 0.82rem !important;
}

.flatpickr-day {
    width: 42px !important;
    height: 42px !important;
    line-height: 42px !important;
    max-width: 42px !important;
    margin: 1px !important;
    border-radius: 10px !important;
    color: var(--text-primary, #1e293b) !important;
    font-weight: 600 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.2s ease !important;
}

.flatpickr-months .flatpickr-month {
    height: 40px !important;
}

.flatpickr-current-month {
    font-size: 1.1rem !important;
    padding-top: 4px !important;
}

.flatpickr-months {
    background: transparent !important;
    padding-bottom: 8px !important;
    border-bottom: 1px solid var(--border-color, #e2e8f0) !important;
}

.flatpickr-month {
    color: var(--text-primary, #0f172a) !important;
    font-weight: 800 !important;
}

.flatpickr-current-month .flatpickr-monthDropdown-months {
    font-weight: 800 !important;
    border-radius: 8px !important;
    padding: 2px 6px !important;
}

.flatpickr-day:hover, .flatpickr-day:focus {
    background: rgba(37, 99, 235, 0.12) !important;
    color: var(--primary-color, #2563eb) !important;
}

.flatpickr-day.selected, .flatpickr-day.startRange, .flatpickr-day.endRange {
    background: linear-gradient(135deg, var(--primary-color, #2563eb), #3b82f6) !important;
    color: #ffffff !important;
    border-color: transparent !important;
    font-weight: 800 !important;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.35) !important;
}

.flatpickr-day.today {
    border-color: var(--primary-color, #2563eb) !important;
    color: var(--primary-color, #2563eb) !important;
}

.flatpickr-time {
    border-top: 1px solid var(--border-color, #e2e8f0) !important;
    padding-top: 6px !important;
    font-weight: 700 !important;
}

.flatpickr-time input {
    font-weight: 800 !important;
    border-radius: 8px !important;
}

.flatpickr-time .flatpickr-am-pm {
    font-weight: 800 !important;
    border-radius: 8px !important;
}




