/* ==========================================================================
   VergeVue Solutions - Core Design System & Styling
   ========================================================================== */

/* --- Design Tokens & Variables --- */
:root {
    --font-headings: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

    /* Transition Speeds */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);

    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 30px;
}

/* --- Dark Theme (Default) --- */
[data-theme="dark"] {
    --bg-primary: #0a0e17;
    --bg-secondary: #0f1524;
    --bg-gradient-1: #060913;
    --bg-gradient-2: #12192b;
    
    --text-primary: #f3f4f6;
    --text-secondary: #9ca3af;
    --text-muted: #6b7280;
    
    --primary-cyan: #00f0ff;
    --primary-purple: #a855f7;
    --primary-blue: #3b82f6;
    --primary-pink: #ec4899;
    --primary-green: #10b981;
    --primary-orange: #f59e0b;
    
    /* Glassmorphism Variables */
    --glass-bg: rgba(15, 22, 38, 0.6);
    --glass-border: rgba(255, 255, 255, 0.07);
    --glass-border-hover: rgba(0, 240, 255, 0.25);
    --glass-shadow: rgba(0, 0, 0, 0.4);
    
    --header-bg: rgba(10, 14, 23, 0.75);
    --border-color: rgba(255, 255, 255, 0.08);
}

/* --- Light Theme --- */
[data-theme="light"] {
    --bg-primary: #f8fafc;
    --bg-secondary: #ffffff;
    --bg-gradient-1: #f1f5f9;
    --bg-gradient-2: #e2e8f0;
    
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    
    --primary-cyan: #0ea5e9;
    --primary-purple: #8b5cf6;
    --primary-blue: #2563eb;
    --primary-pink: #db2777;
    --primary-green: #059669;
    --primary-orange: #ea580c;
    
    /* Glassmorphic variables tailored for light environment */
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(15, 23, 42, 0.08);
    --glass-border-hover: rgba(14, 165, 233, 0.3);
    --glass-shadow: rgba(15, 23, 42, 0.05);
    
    --header-bg: rgba(248, 250, 252, 0.8);
    --border-color: rgba(15, 23, 42, 0.08);
}

/* ==========================================================================
   Global Reset & Base Setup
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    background-color: var(--bg-primary);
    background-image: linear-gradient(135deg, var(--bg-gradient-1) 0%, var(--bg-gradient-2) 100%);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-headings);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.25;
}

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

/* ==========================================================================
   Reusable UI Elements & Buttons
   ========================================================================== */

/* Glass Cards */
.glass-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(14px) saturate(190%);
    -webkit-backdrop-filter: blur(14px) saturate(190%);
    border-radius: var(--radius-md);
    box-shadow: 0 10px 30px var(--glass-shadow);
    transition: border-color var(--transition-normal), transform var(--transition-normal), box-shadow var(--transition-normal);
}

.glass-card:hover {
    border-color: var(--glass-border-hover);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-headings);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition-fast);
    border: none;
    outline: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-cyan) 0%, var(--primary-purple) 100%);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(168, 85, 247, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(168, 85, 247, 0.45);
    background: linear-gradient(135deg, var(--primary-purple) 0%, var(--primary-cyan) 100%);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--text-muted);
}

.btn-secondary-sm {
    font-size: 0.85rem;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary-sm:hover {
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.1) 0%, rgba(168, 85, 247, 0.1) 100%);
    border-color: var(--primary-purple);
}

.btn-outline-sm {
    font-size: 0.85rem;
    padding: 8px 16px;
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

.btn-outline-sm:hover {
    border-color: var(--primary-pink);
    color: var(--primary-pink);
    background: rgba(236, 72, 153, 0.05);
}

.btn-block {
    display: flex;
    width: 100%;
}

/* Badges */
.badge {
    display: inline-flex;
    padding: 6px 12px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border-radius: 50px;
    margin-bottom: 16px;
}

.badge-accent {
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.15) 0%, rgba(168, 85, 247, 0.15) 100%);
    border: 1px solid rgba(0, 240, 255, 0.3);
    color: var(--primary-cyan);
}

/* Gradient Text */
.gradient-text {
    background: linear-gradient(135deg, var(--primary-cyan) 0%, var(--primary-purple) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ==========================================================================
   Header Navigation Styling
   ========================================================================== */
.main-header {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: var(--header-bg);
    border-bottom: 1px solid var(--border-color);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: background-color var(--transition-normal);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.logo-container {
    display: flex;
    align-items: center;
}

.brand-logo {
    height: 38px;
    object-fit: contain;
    transition: transform var(--transition-fast);
}

.logo-container:hover .brand-logo {
    transform: scale(1.02);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    font-family: var(--font-headings);
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-secondary);
    position: relative;
    padding: 8px 0;
}

.nav-link:hover, .nav-link.active {
    color: var(--text-primary);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, var(--primary-cyan) 0%, var(--primary-purple) 100%);
    transition: width var(--transition-fast) ease-in-out;
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Theme Toggle Button */
.theme-toggle-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color var(--transition-fast);
}

.theme-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    color: var(--primary-cyan);
}

.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
}

/* Adjustments for light-logo visibility */
[data-theme="light"] .brand-logo {
    filter: invert(1); /* Invert black logo to white or adjust depending on system image */
}

/* ==========================================================================
   Page Switching / Router Transitions
   ========================================================================== */
.main-content {
    flex: 1 0 auto;
}

.page-section {
    display: none;
    opacity: 0;
    transform: translateY(20px);
}

.page-section.active {
    display: block;
    animation: fadeInUp var(--transition-slow) forwards;
}

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

.section-padding {
    padding: 80px 0;
}

/* Section Headers */
.section-header {
    max-width: 700px;
    margin: 0 auto 50px auto;
}

.section-subtitle {
    font-family: var(--font-headings);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--primary-cyan);
    margin-bottom: 12px;
    display: block;
}

.section-title {
    font-size: 2.25rem;
    margin-bottom: 16px;
}

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

.section-header-split {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 50px;
}

/* ==========================================================================
   HOME PAGE - Specific Sections
   ========================================================================== */

/* Hero Panel Layout */
/* Hero Carousel Section Layout */
.hero-carousel-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    background-color: var(--bg-primary);
}

.carousel-track {
    position: relative;
    width: 100%;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity var(--transition-slow) ease-in-out, visibility var(--transition-slow) ease-in-out;
    z-index: 1;
    padding: 120px 0 100px 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 680px;
}

.carousel-slide.active {
    position: relative;
    opacity: 1;
    visibility: visible;
    pointer-events: all;
    z-index: 2;
}

/* Background Overlay Masks for Text Readability */
.hero-bg-overlay-mask {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 14, 23, 0.65); /* Dim mask overlay */
    z-index: 0;
    pointer-events: none;
}

[data-theme="light"] .hero-bg-overlay-mask {
    background: rgba(248, 250, 252, 0.7); /* Translucent light mask overlay */
}

.hero-container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 40px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-text-side {
    display: flex;
    flex-direction: column;
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.15;
    margin-bottom: 24px;
}

/* Slide Entry Animations */
.carousel-slide .hero-title,
.carousel-slide .hero-desc,
.carousel-slide .hero-ctas,
.carousel-slide .hero-visual-side {
    opacity: 0;
    transform: translateY(24px);
}

.carousel-slide .badge {
    opacity: 0;
}

.carousel-slide.active .hero-title {
    animation: slideUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.carousel-slide.active .hero-desc {
    animation: slideUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.15s forwards;
}

.carousel-slide.active .hero-ctas {
    animation: slideUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.3s forwards;
}

.carousel-slide.active .badge {
    animation: fadeIn 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.carousel-slide.active .hero-visual-side {
    animation: slideUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) 0.1s forwards;
}

/* --- Slide 2 Mockups: QueSoft Technologies --- */
.code-editor-mockup {
    background: rgba(5, 7, 12, 0.65);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 20px;
    font-family: monospace;
    font-size: 0.85rem;
    line-height: 1.6;
    margin-bottom: 20px;
    text-align: left;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.5);
}

.code-line {
    white-space: pre-wrap;
    word-break: break-all;
}

.server-status-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.status-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    padding: 10px;
    border-radius: var(--radius-sm);
    justify-content: center;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    position: relative;
}

.pulse-dot.bg-green { background-color: var(--primary-green); }
.pulse-dot.bg-cyan { background-color: var(--primary-cyan); }
.pulse-dot.bg-purple { background-color: var(--primary-purple); }

.pulse-dot::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: inherit;
    animation: pulseUptime 1.8s infinite ease-in-out;
}

@keyframes pulseUptime {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(3); opacity: 0; }
}

@media (max-width: 768px) {
    .carousel-slide {
        padding: 80px 0 60px 0;
        min-height: auto;
    }
}

/* Carousel Prev/Next Buttons */
.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    transition: all var(--transition-fast);
    box-shadow: 0 4px 15px var(--glass-shadow);
}

.carousel-control:hover {
    border-color: var(--glass-border-hover);
    background: rgba(255, 255, 255, 0.12);
    color: var(--primary-cyan);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.2);
}

.carousel-control.prev {
    left: 24px;
}

.carousel-control.next {
    right: 24px;
}

/* Carousel Dot Indicators */
.carousel-indicators {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 10px;
    padding: 8px 16px;
    background: rgba(10, 14, 23, 0.4);
    border: 1px solid var(--border-color);
    border-radius: 30px;
    backdrop-filter: blur(8px);
}

.carousel-indicators .indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.carousel-indicators .indicator:hover {
    background: rgba(255, 255, 255, 0.5);
}

.carousel-indicators .indicator.active {
    width: 28px;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--primary-cyan) 0%, var(--primary-purple) 100%);
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.4);
}

/* --- Slide 2 Mockups: QueSoft Technologies --- */
.code-editor-mockup {
    background: rgba(5, 7, 12, 0.65);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 20px;
    font-family: monospace;
    font-size: 0.85rem;
    line-height: 1.6;
    margin-bottom: 20px;
    text-align: left;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.5);
}

.code-line {
    white-space: pre-wrap;
    word-break: break-all;
}

.server-status-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.status-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    padding: 10px;
    border-radius: var(--radius-sm);
    justify-content: center;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    position: relative;
}

.pulse-dot.bg-green { background-color: var(--primary-green); }
.pulse-dot.bg-cyan { background-color: var(--primary-cyan); }
.pulse-dot.bg-purple { background-color: var(--primary-purple); }

.pulse-dot::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: inherit;
    animation: pulseUptime 1.8s infinite ease-in-out;
}

@keyframes pulseUptime {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(3); opacity: 0; }
}

/* --- Slide 3 Mockups: Bubble Car Spa & Hoora Car Wash --- */
.detailing-stages {
    display: flex;
    flex-direction: column;
    gap: 12px;
    text-align: left;
}

.stage-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.02);
    transition: all var(--transition-fast);
}

.stage-item.completed {
    border-color: rgba(16, 185, 129, 0.2);
    background: rgba(16, 185, 129, 0.02);
}

.stage-item.active {
    border-color: rgba(59, 130, 246, 0.35);
    background: rgba(59, 130, 246, 0.04);
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.08);
}

.stage-num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    flex-shrink: 0;
}

.stage-num svg {
    width: 14px;
    height: 14px;
}

.stage-item.completed .stage-num {
    background: var(--primary-green);
    border-color: transparent;
    color: #ffffff;
}

.stage-item.active .stage-num {
    background: var(--primary-blue);
    border-color: transparent;
    color: #ffffff;
}

.active-pulse {
    animation: activePulseRing 1.5s infinite alternate;
}

@keyframes activePulseRing {
    0% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.4); }
    100% { box-shadow: 0 0 0 6px rgba(59, 130, 246, 0); }
}

.stage-info h5 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 2px;
    color: var(--text-primary);
}

.stage-info p {
    font-size: 0.78rem;
    color: var(--text-secondary);
    margin: 0;
}

/* --- Slide 4 Mockups: Bubble Pet Spa --- */
.pet-profile-card {
    padding: 4px;
    text-align: left;
}

.pet-avatar-row {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.pet-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.15) 0%, rgba(245, 158, 11, 0.15) 100%);
    border: 1px solid rgba(236, 72, 153, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.pet-avatar svg {
    width: 22px;
    height: 22px;
}

.pet-identity h5 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.pet-plan {
    font-size: 0.75rem;
    color: var(--primary-pink);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.pet-treatments {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.treatment-pill {
    font-size: 0.75rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    padding: 6px 12px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-secondary);
}

.treatment-pill svg {
    width: 12px;
    height: 12px;
}

.grooming-progress {
    background: rgba(0, 0, 0, 0.18);
    border: 1px solid var(--border-color);
    padding: 16px;
    border-radius: var(--radius-sm);
}

.progress-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.progress-bar-track {
    height: 6px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-pink) 0%, var(--primary-purple) 100%);
    border-radius: 3px;
}

.progress-note {
    font-size: 0.75rem;
    color: var(--text-muted);
    display: block;
}

/* Keyframes for Slide Elements */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-desc {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 36px;
    max-width: 580px;
}

.hero-ctas {
    display: flex;
    gap: 16px;
}

/* Visual Side / AI Engine Mockup */
.hero-visual-side {
    perspective: 1000px;
}

.visual-card {
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.visual-header {
    background: rgba(0, 0, 0, 0.2);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid var(--border-color);
}

.visual-header .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.visual-header .dot.red { background-color: #ef4444; }
.visual-header .dot.yellow { background-color: #eab308; }
.visual-header .dot.green { background-color: #22c55e; }

.visual-title {
    font-family: monospace;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-left: auto;
}

.visual-body {
    padding: 24px;
}

.chart-mockup {
    position: relative;
    height: 140px;
    background: rgba(0, 0, 0, 0.15);
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    padding: 20px;
    display: flex;
    align-items: flex-end;
}

.bar-chart-visual {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: space-around;
}

.bar-chart-visual .bar {
    width: 12%;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px 4px 0 0;
    transition: height 1s ease-in-out, background-color 0.3s;
}

.bar-chart-visual .bar.active, .bar-chart-visual .bar:hover {
    background: linear-gradient(0deg, var(--primary-purple) 0%, var(--primary-cyan) 100%);
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.3);
}

.console-logs {
    font-family: monospace;
    font-size: 0.8rem;
    color: var(--text-secondary);
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: rgba(0, 0, 0, 0.25);
    padding: 16px;
    border-radius: var(--radius-sm);
    border-left: 3px solid var(--primary-cyan);
}

.log-line {
    overflow: hidden;
    white-space: nowrap;
    border-right: .15em solid transparent;
}

.text-cyan { color: var(--primary-cyan); }
.text-purple { color: var(--primary-purple); }
.text-green { color: var(--primary-green); }

/* Expertise Band */
.expertise-band {
    background: rgba(15, 22, 38, 0.4);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    padding: 30px 0;
}

.band-title {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 20px;
}

.expertise-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.expertise-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-headings);
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--text-secondary);
    padding: 8px 16px;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
}

.exp-icon {
    width: 18px;
    height: 18px;
}

.icon-cyan { color: var(--primary-cyan); }
.icon-purple { color: var(--primary-purple); }
.icon-blue { color: var(--primary-blue); }
.icon-green { color: var(--primary-green); }
.icon-orange { color: var(--primary-orange); }
.icon-pink { color: var(--primary-pink); }

/* Why Choose Us Grid */
.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

.why-card {
    padding: 32px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.why-icon-box {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    margin-bottom: 20px;
}

.why-icon-box svg {
    width: 24px;
    height: 24px;
}

.bg-cyan { background-color: var(--primary-cyan); }
.bg-purple { background-color: var(--primary-purple); }
.bg-blue { background-color: var(--primary-blue); }
.bg-green { background-color: var(--primary-green); }
.bg-orange { background-color: var(--primary-orange); }
.bg-pink { background-color: var(--primary-pink); }

.why-card h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.why-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* Services Preview */
.bg-gradient-alt {
    background: linear-gradient(180deg, transparent 0%, rgba(168, 85, 247, 0.03) 50%, transparent 100%);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.service-card {
    padding: 40px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.service-icon {
    margin-bottom: 24px;
}

.service-icon svg {
    width: 38px;
    height: 38px;
}

.service-card h3 {
    font-size: 1.35rem;
    margin-bottom: 12px;
}

.service-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 24px;
    flex-grow: 1;
}

.service-link {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-cyan);
    display: flex;
    align-items: center;
    gap: 4px;
}

.service-link svg {
    width: 14px;
    height: 14px;
    transition: transform var(--transition-fast);
}

.service-link:hover svg {
    transform: translateX(4px);
}

/* Industries We Serve */
.industries-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.industry-card {
    padding: 30px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    transition: all var(--transition-fast);
}

.industry-card:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--border-color);
    transform: translateY(-4px);
}

.ind-icon-wrapper {
    color: var(--primary-purple);
    margin-bottom: 16px;
}

.ind-icon-wrapper svg {
    width: 28px;
    height: 28px;
}

.industry-card h4 {
    font-size: 1.15rem;
    margin-bottom: 10px;
}

.industry-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Success Metrics Counter */
.metrics-section {
    position: relative;
}

.metrics-card-wrapper {
    padding: 60px 40px;
    background: radial-gradient(100% 100% at 0% 0%, rgba(0, 240, 255, 0.08) 0%, rgba(168, 85, 247, 0.04) 100%), var(--glass-bg);
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    text-align: center;
    margin-top: 40px;
}

.metric-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.metric-number {
    font-size: 2.75rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #ffffff 0%, var(--primary-cyan) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.metric-item p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
}

/* ==========================================================================
   ABOUT US PAGE - Layout
   ========================================================================== */
.inner-hero-bg {
    background: linear-gradient(180deg, rgba(168, 85, 247, 0.04) 0%, transparent 100%);
    border-bottom: 1px solid var(--border-color);
}

.page-title {
    font-size: 3rem;
    margin-bottom: 16px;
}

.page-subtitle-desc {
    color: var(--text-secondary);
    font-size: 1.15rem;
    max-width: 800px;
}

.about-split-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: flex-start;
}

.about-content h2 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.about-content p {
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.about-vision-mission {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.vm-card {
    padding: 30px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.vm-icon {
    margin-bottom: 16px;
}

.vm-icon svg {
    width: 28px;
    height: 28px;
}

.vm-card h3 {
    font-size: 1.25rem;
    margin-bottom: 10px;
}

.vm-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.values-section-padding {
    margin-top: 80px;
}

.values-main-title {
    font-size: 2rem;
    margin-bottom: 40px;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}

.value-card {
    padding: 24px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.value-num {
    font-family: var(--font-headings);
    font-weight: 800;
    font-size: 2rem;
    color: rgba(255, 255, 255, 0.05);
    background: linear-gradient(135deg, var(--primary-cyan) 0%, var(--primary-purple) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0.3;
    margin-bottom: 12px;
}

.value-card h4 {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.value-card p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* ==========================================================================
   SERVICES PAGE - Layout
   ========================================================================== */
.services-expanded-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.service-detail-card {
    padding: 40px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.sd-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.sd-icon {
    width: 32px;
    height: 32px;
}

.sd-header h2 {
    font-size: 1.6rem;
}

.sd-list {
    list-style: none;
    margin-bottom: 30px;
    width: 100%;
    flex-grow: 1;
}

.sd-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.sd-list li svg {
    width: 16px;
    height: 16px;
    color: var(--primary-green);
    flex-shrink: 0;
}

/* ==========================================================================
   SOLUTIONS PAGE - Layout
   ========================================================================== */
.solutions-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.solution-item {
    display: flex;
    padding: 40px;
    gap: 30px;
    align-items: center;
}

.sol-badge {
    width: 60px;
    height: 60px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    flex-shrink: 0;
}

.sol-badge svg {
    width: 28px;
    height: 28px;
}

.sol-info h3 {
    font-size: 1.45rem;
    margin-bottom: 8px;
}

.sol-info p {
    color: var(--text-secondary);
    font-size: 1rem;
}

/* ==========================================================================
   CASE STUDIES PAGE - Layout & Filter & Details Modal
   ========================================================================== */
.filter-bar {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
}

.filter-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 8px 20px;
    border-radius: 50px;
    cursor: pointer;
    font-family: var(--font-headings);
    font-weight: 500;
    font-size: 0.9rem;
    transition: all var(--transition-fast);
}

.filter-btn:hover, .filter-btn.active {
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.1) 0%, rgba(168, 85, 247, 0.1) 100%);
    border-color: var(--primary-purple);
    color: var(--text-primary);
}

.cases-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.case-card {
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.case-banner {
    height: 120px;
    position: relative;
    padding: 24px;
    display: flex;
    align-items: flex-end;
}

.case-decor-icon {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 70px;
    height: 70px;
    opacity: 0.15;
    color: #ffffff;
}

.bg-cyan-gradient { background: linear-gradient(135deg, var(--primary-cyan) 0%, var(--primary-blue) 100%); }
.bg-purple-gradient { background: linear-gradient(135deg, var(--primary-purple) 0%, var(--primary-pink) 100%); }
.bg-blue-gradient { background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-cyan) 100%); }
.bg-pink-gradient { background: linear-gradient(135deg, var(--primary-pink) 0%, var(--primary-orange) 100%); }

.case-tag {
    font-family: var(--font-headings);
    font-size: 0.75rem;
    font-weight: 700;
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(4px);
    color: #ffffff;
    padding: 4px 10px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.case-body {
    padding: 30px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.case-body h3 {
    font-size: 1.35rem;
    margin-bottom: 12px;
}

.case-summary {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 24px;
    flex-grow: 1;
}

/* Modals General Style */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-normal);
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-card {
    width: 100%;
    max-width: 650px;
    max-height: 85vh;
    overflow-y: auto;
    padding: 40px;
    position: relative;
    transform: scale(0.9);
    transition: transform var(--transition-normal);
}

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

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color var(--transition-fast);
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}

/* Specific case study details inside modal */
.modal-case-header {
    margin-bottom: 24px;
}

.modal-case-header .badge {
    margin-bottom: 10px;
}

.modal-case-header h2 {
    font-size: 1.8rem;
}

.modal-case-body h4 {
    font-size: 1.1rem;
    margin: 20px 0 10px 0;
    color: var(--primary-cyan);
}

.modal-case-body p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 16px;
}

.modal-tech-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.tech-tag {
    font-family: monospace;
    font-size: 0.8rem;
    padding: 4px 10px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
}

/* ==========================================================================
   CONTACT US PAGE - Layout & Forms
   ========================================================================== */
.contact-layout-grid {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 40px;
    align-items: flex-start;
}

.contact-info-card {
    padding: 40px;
}

.contact-info-card h3 {
    font-size: 1.5rem;
    margin-bottom: 16px;
}

.info-card-intro {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 30px;
}

.info-item-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.info-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.info-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.info-icon svg {
    width: 18px;
    height: 18px;
}

.info-text {
    display: flex;
    flex-direction: column;
}

.info-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.info-value {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-primary);
}

.info-value:hover {
    color: var(--primary-cyan);
}

.consultation-box {
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
}

.consultation-box h4 {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.consultation-box p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

/* Contact form container styles */
.contact-form-card {
    padding: 45px;
}

.form-type-toggle {
    display: flex;
    width: 100%;
    background: rgba(0, 0, 0, 0.15);
    border-radius: var(--radius-sm);
    padding: 4px;
    margin-bottom: 30px;
    border: 1px solid var(--border-color);
}

.form-toggle-btn {
    flex: 1;
    background: transparent;
    border: none;
    font-family: var(--font-headings);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-secondary);
    padding: 10px;
    border-radius: 4px;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.form-toggle-btn.active {
    background: var(--bg-secondary);
    color: var(--primary-cyan);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.custom-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.form-group input, .form-group select, .form-group textarea {
    background: rgba(0, 0, 0, 0.12);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.95rem;
    outline: none;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
    width: 100%;
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    border-color: var(--primary-purple);
    box-shadow: 0 0 10px rgba(168, 85, 247, 0.2);
}

.form-group select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' class='lucide lucide-chevron-down' viewBox='0 0 24 24' width='16' height='16' xmlns='http://www.w3.org/2000/svg'><polyline points='6 9 12 15 18 9'></polyline></svg>");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

[data-theme="light"] .form-group select {
    background-image: url("data:image/svg+xml;utf8,<svg fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' class='lucide lucide-chevron-down' viewBox='0 0 24 24' width='16' height='16' xmlns='http://www.w3.org/2000/svg'><polyline points='6 9 12 15 18 9'></polyline></svg>");
}

.appointment-fields-group {
    border-top: 1px dashed var(--border-color);
    padding-top: 20px;
    margin-top: 5px;
}

/* Success Card Style */
.success-icon {
    font-size: 4rem;
    color: var(--primary-cyan);
    margin-bottom: 20px;
    display: inline-flex;
    justify-content: center;
}

.success-icon svg {
    width: 80px;
    height: 80px;
}

.success-card h2 {
    font-size: 1.8rem;
    margin-bottom: 12px;
}

.success-card p {
    color: var(--text-secondary);
    margin-bottom: 30px;
}

/* ==========================================================================
   ADMIN PANEL - LOGIN & MAIN DASHBOARD
   ========================================================================== */
.admin-login-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 80px 0;
}

.admin-login-card {
    width: 100%;
    max-width: 420px;
    padding: 40px;
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-brand-icon {
    height: 48px;
    margin-bottom: 16px;
}

.login-header h2 {
    font-size: 1.6rem;
    margin-bottom: 8px;
}

.login-header p {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.input-with-icon {
    position: relative;
}

.input-with-icon svg {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: var(--text-muted);
}

.input-with-icon input {
    padding-left: 44px !important;
}

.form-error-msg {
    display: none;
    color: #ef4444;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 10px;
    text-align: center;
}

/* Dashboard Layout */
.admin-dashboard-container {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 30px;
    align-items: flex-start;
    margin-top: 20px;
}

.admin-sidebar {
    padding: 24px;
    display: flex;
    flex-direction: column;
    height: calc(85vh - 80px);
    position: sticky;
    top: 110px;
}

.sidebar-user {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 24px;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.1) 0%, rgba(168, 85, 247, 0.1) 100%);
    border: 1px solid var(--primary-cyan);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-cyan);
}

.user-avatar svg {
    width: 18px;
    height: 18px;
}

.user-info {
    display: flex;
    flex-direction: column;
}

.user-name {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-primary);
}

.user-role {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.sidebar-menu {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex-grow: 1;
}

.sidebar-menu-btn {
    background: transparent;
    border: none;
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-headings);
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-secondary);
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    text-align: left;
    width: 100%;
    transition: all var(--transition-fast);
}

.sidebar-menu-btn:hover {
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-primary);
}

.sidebar-menu-btn.active {
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.08) 0%, rgba(168, 85, 247, 0.08) 100%);
    border-left: 3px solid var(--primary-cyan);
    color: var(--primary-cyan);
    padding-left: 13px;
}

.badge-menu-count {
    margin-left: auto;
    background: var(--primary-cyan);
    color: #000000;
    font-size: 0.7rem;
    padding: 2px 6px;
    font-weight: 700;
    border-radius: 10px;
    margin-bottom: 0;
}

.sidebar-footer {
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

/* Content Frame & Tabs */
.admin-dashboard-content {
    flex-grow: 1;
}

.admin-tab-panel {
    display: none;
}

.admin-tab-panel.active {
    display: block;
}

.panel-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.panel-main-title {
    font-size: 1.8rem;
    margin-bottom: 4px;
}

.panel-header-row p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.panel-header-actions {
    display: flex;
    gap: 12px;
}

/* KPI Overview Grid */
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.kpi-card {
    padding: 24px;
    display: flex;
    flex-direction: column;
}

.kpi-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
}

.kpi-value {
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.kpi-trend {
    font-size: 0.75rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 4px;
}

.kpi-trend svg {
    width: 14px;
    height: 14px;
}

/* Analytics Panel Grid */
.dashboard-analytics-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 24px;
}

.chart-panel-card {
    padding: 30px;
}

.chart-panel-card h3, .recent-activity-card h3 {
    font-size: 1.15rem;
    margin-bottom: 20px;
}

.admin-chart-wrapper {
    display: flex;
    flex-direction: column;
    margin-top: 10px;
}

.admin-svg-chart {
    width: 100%;
    height: 180px;
}

.chart-labels {
    display: flex;
    justify-content: space-between;
    padding: 10px 30px;
    font-size: 0.75rem;
    color: var(--text-muted);
    font-family: var(--font-headings);
    font-weight: 500;
}

.recent-activity-card {
    padding: 30px;
}

.activity-feed-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-height: 250px;
    overflow-y: auto;
}

.activity-item {
    font-size: 0.85rem;
    color: var(--text-secondary);
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
    position: relative;
    padding-left: 16px;
}

.activity-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 6px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--primary-cyan);
}

.activity-item.appointment::before {
    background-color: var(--primary-pink);
}

.activity-item.empty {
    padding-left: 0;
    text-align: center;
    color: var(--text-muted);
    border: none;
}

.activity-time {
    display: block;
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-top: 2px;
}

/* Tables Admin */
.table-container {
    padding: 0;
    overflow: hidden;
}

.table-filters-row {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    gap: 16px;
}

.table-search {
    flex-grow: 1;
    background: rgba(0, 0, 0, 0.1) !important;
    border: 1px solid var(--border-color) !important;
    padding: 10px 16px !important;
    border-radius: var(--radius-sm) !important;
    font-size: 0.9rem !important;
    color: var(--text-primary) !important;
    outline: none;
}

.table-filter-select {
    background: rgba(0, 0, 0, 0.1) !important;
    border: 1px solid var(--border-color) !important;
    padding: 10px 16px !important;
    border-radius: var(--radius-sm) !important;
    font-size: 0.9rem !important;
    color: var(--text-primary) !important;
    width: auto !important;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.9rem;
}

.admin-table th, .admin-table td {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
}

.admin-table th {
    background: rgba(0, 0, 0, 0.1);
    font-family: var(--font-headings);
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
}

.admin-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.015);
}

.admin-table tbody tr:last-child td {
    border-bottom: none;
}

.table-timestamp {
    color: var(--text-muted);
    font-family: monospace;
    font-size: 0.8rem;
    white-space: nowrap;
}

.table-sender-name {
    font-weight: 600;
    color: var(--text-primary);
    display: block;
}

.table-sender-email {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.table-service-badge {
    display: inline-flex;
    padding: 4px 8px;
    background: rgba(168, 85, 247, 0.08);
    border: 1px solid rgba(168, 85, 247, 0.2);
    color: var(--primary-purple);
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}

.table-msg-trunc {
    color: var(--text-secondary);
    max-width: 250px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Status badges inside tables */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.status-badge.pending {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: var(--primary-orange);
}

.status-badge.confirmed {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: var(--primary-blue);
}

.status-badge.completed {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: var(--primary-green);
}

.status-badge.cancelled {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #ef4444;
}

.table-actions {
    display: flex;
    gap: 8px;
}

.btn-action-icon {
    width: 32px;
    height: 32px;
    border-radius: 4px;
    border: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.02);
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.btn-action-icon:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.08);
}

.btn-action-icon.btn-delete:hover {
    color: #ef4444;
    border-color: rgba(239, 68, 68, 0.3);
    background: rgba(239, 68, 68, 0.08);
}

.btn-action-icon.btn-confirm:hover {
    color: var(--primary-green);
    border-color: rgba(16, 185, 129, 0.3);
    background: rgba(16, 185, 129, 0.08);
}

.btn-action-icon.btn-status-drop {
    width: auto;
    padding: 0 8px;
    font-size: 0.75rem;
    font-family: var(--font-headings);
    font-weight: 600;
    display: flex;
    gap: 4px;
}

.table-empty-row {
    text-align: center;
    color: var(--text-muted);
    padding: 40px !important;
}

/* Admin Message Modal details styling */
.modal-msg-detail-view {
    display: flex;
    flex-direction: column;
}

.modal-msg-title {
    font-size: 1.5rem;
}

.modal-hr {
    border: none;
    border-top: 1px solid var(--border-color);
    margin: 16px 0 24px 0;
}

.detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 24px;
}

.detail-col {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.detail-col strong {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

.detail-col span {
    font-size: 0.95rem;
    color: var(--text-primary);
    word-break: break-all;
}

.detail-message-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 30px;
}

.detail-message-body strong {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

.message-textbox {
    background: rgba(0, 0, 0, 0.15);
    border: 1px solid var(--border-color);
    padding: 16px 20px;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--text-primary);
    white-space: pre-wrap;
    max-height: 200px;
    overflow-y: auto;
}

.modal-action-row {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

/* ==========================================================================
   Toast Notification Styling
   ========================================================================== */
.toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 3000;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
}

.toast {
    background: rgba(10, 14, 23, 0.9);
    border: 1px solid var(--primary-cyan);
    backdrop-filter: blur(8px);
    color: var(--text-primary);
    padding: 14px 24px;
    border-radius: var(--radius-sm);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: slideInRight 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    pointer-events: auto;
    min-width: 250px;
}

.toast.toast-error {
    border-color: #ef4444;
}

.toast.toast-success {
    border-color: var(--primary-green);
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ==========================================================================
   Footer Component Styling
   ========================================================================== */
.main-footer {
    background: rgba(6, 9, 19, 0.95);
    border-top: 1px solid var(--border-color);
    padding: 80px 0 30px 0;
    color: var(--text-secondary);
    flex-shrink: 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.2fr;
    gap: 50px;
    margin-bottom: 50px;
}

.footer-logo {
    height: 38px;
    margin-bottom: 20px;
}

.brand-subtext {
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 24px;
    max-width: 380px;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-links a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.social-links a:hover {
    color: var(--primary-cyan);
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary-cyan);
    transform: translateY(-2px);
}

.social-links a svg {
    width: 18px;
    height: 18px;
}

.footer-links-col h4 {
    color: #ffffff;
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.footer-links a:hover {
    color: var(--primary-cyan);
    padding-left: 4px;
}

.footer-contact-info {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
    font-size: 0.9rem;
}

.footer-contact-info li {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-contact-info li svg {
    width: 16px;
    height: 16px;
    color: var(--primary-cyan);
    flex-shrink: 0;
}

.footer-contact-info a:hover {
    color: var(--primary-cyan);
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.footer-bottom-links {
    display: flex;
    gap: 20px;
}

.admin-access-link {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-secondary);
}

.admin-access-link:hover {
    color: var(--primary-pink);
}

.admin-access-link svg {
    width: 14px;
    height: 14px;
}

/* ==========================================================================
   Responsive Media Queries (Responsive Styling)
   ========================================================================== */

@media (max-width: 1024px) {
    /* Tablet Layouts */
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 50px;
    }
    
    .hero-text-side {
        align-items: center;
    }
    
    .hero-desc {
        max-width: 100%;
    }
    
    .hero-ctas {
        justify-content: center;
    }
    
    .services-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .industries-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .metrics-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 30px;
    }
    
    .about-split-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .values-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .services-expanded-grid {
        grid-template-columns: 1fr;
    }
    
    .cases-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-layout-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .admin-dashboard-container {
        grid-template-columns: 1fr;
    }
    
    .admin-sidebar {
        height: auto;
        position: static;
        margin-bottom: 20px;
    }
    
    .sidebar-menu {
        flex-direction: row;
        overflow-x: auto;
        padding-bottom: 10px;
    }
    
    .sidebar-menu-btn {
        width: auto;
        white-space: nowrap;
    }
    
    .kpi-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .dashboard-analytics-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    /* Mobile Menu Drawer Setup */
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: var(--bg-secondary);
        flex-direction: column;
        padding: 40px 24px;
        gap: 24px;
        transition: left var(--transition-normal);
        border-top: 1px solid var(--border-color);
        z-index: 999;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-link {
        font-size: 1.15rem;
        width: 100%;
        text-align: center;
        padding: 12px 0;
    }
    
    .btn-nav-cta {
        display: none; /* Hide in primary header, can show inside drawer or mobile footer */
    }
    
    /* Font Reductions */
    .hero-title {
        font-size: 2.5rem;
    }
    
    .page-title {
        font-size: 2.25rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .industries-grid {
        grid-template-columns: 1fr;
    }
    
    .values-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .metrics-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .contact-form-card {
        padding: 24px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-ctas {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-ctas .btn {
        width: 100%;
    }
    
    .values-grid {
        grid-template-columns: 1fr;
    }
    
    .metrics-grid {
        grid-template-columns: 1fr;
    }
    
    .kpi-grid {
        grid-template-columns: 1fr;
    }
    
    .table-filters-row {
        flex-direction: column;
    }
    
    .admin-table th, .admin-table td {
        padding: 10px 12px;
    }
}

/* --- Utilities / Extra Keyframe Animations --- */
@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

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

/* ==========================================================================
   Subsidiary Companies Section
   ========================================================================== */
.subsidiaries-section {
    background: linear-gradient(180deg, transparent 0%, rgba(59, 130, 246, 0.03) 50%, transparent 100%);
    border-top: 1px solid var(--border-color);
}

.subsidiaries-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 20px;
}

.subsidiary-card {
    padding: 32px 24px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: relative;
    overflow: hidden;
    cursor: default;
}

.subsidiary-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top left, rgba(255, 255, 255, 0.03), transparent 70%);
    pointer-events: none;
}

.subsidiary-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 35px var(--glass-shadow);
}

/* Custom Gradients for Icon Boxes */
.sub-icon-box {
    width: 54px;
    height: 54px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    margin-bottom: 20px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    transition: transform var(--transition-normal);
}

.subsidiary-card:hover .sub-icon-box {
    transform: scale(1.1) rotate(5deg);
}

.sub-icon-box svg {
    width: 26px;
    height: 26px;
}

/* Gradient Classes */
.bg-cyan-grad { background: linear-gradient(135deg, var(--primary-cyan) 0%, var(--primary-blue) 100%); }
.bg-blue-grad { background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-green) 100%); }
.bg-pink-grad { background: linear-gradient(135deg, var(--primary-pink) 0%, var(--primary-purple) 100%); }
.bg-orange-grad { background: linear-gradient(135deg, var(--primary-orange) 0%, #ef4444 100%); }

/* Brand Tags */
.sub-brand-tag {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
}

.tag-cyan { color: var(--primary-cyan); }
.tag-blue { color: var(--primary-blue); }
.tag-pink { color: var(--primary-pink); }
.tag-orange { color: var(--primary-orange); }

.subsidiary-card h3 {
    font-size: 1.35rem;
    margin-bottom: 12px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.3;
}

.subsidiary-card h3.has-location {
    margin-bottom: 2px;
}

.sub-location {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 12px;
    display: block;
}

.subsidiary-card p {
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.6;
    margin-top: 8px;
}

/* Light Theme overrides & Contrast fixes */
[data-theme="light"] .sub-icon-box {
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Force dark wrapper background on Success Metrics block in light theme to fix invisible white text/numbers */
[data-theme="light"] .metrics-card-wrapper {
    background: radial-gradient(100% 100% at 0% 0%, rgba(0, 240, 255, 0.15) 0%, rgba(168, 85, 247, 0.1) 100%), #0a0e17 !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
}

[data-theme="light"] .metrics-card-wrapper .section-title {
    color: #ffffff !important;
}

[data-theme="light"] .metrics-card-wrapper p {
    color: #9ca3af !important;
}

/* Responsive Overrides for Subsidiaries Grid */
@media (max-width: 1024px) {
    .subsidiaries-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .subsidiaries-grid {
        grid-template-columns: 1fr;
    }
}

