/* ==========================================================================
   MadaPower - Main CSS
   مدى باور - ملف الأنماط الرئيسي
   Industrial Energy Solutions
   ==========================================================================

   Color Palette (Royal Blue + Sky + Orange - Professional Tech Theme):
   - Primary Blue:    #1e3a8a (Royal Blue)
   - Primary Light:   #3b82f6 (Bright Blue)
   - Accent Sky:      #0ea5e9 (Sky Blue)
   - Accent Orange:   #f97316 (Energy Orange)
   - Dark BG:         #0f172a (Slate Dark)
   - Surface:         #ffffff
   - Background:      #f1f5f9 (Soft Slate)
   - Text Primary:    #0f172a
   - Text Secondary:  #475569

   Design Style: Neumorphism (Soft UI)
   - Soft shadows (light + dark)
   - Subtle gradients
   - Rounded corners
   - Pressed/raised states
   ========================================================================== */

/* ===== CSS Variables ===== */
:root {
    /* Primary Colors - Royal Blue */
    --color-primary: #1e3a8a;
    --color-primary-dark: #172554;
    --color-primary-light: #3b82f6;
    --color-primary-lighter: #60a5fa;
    --color-primary-bg: #dbeafe;
    --color-primary-bg-light: #eff6ff;

    /* Accent Colors - Sky Blue */
    --color-accent: #0ea5e9;
    --color-accent-dark: #0369a1;
    --color-accent-light: #38bdf8;
    --color-accent-bg: #e0f2fe;

    /* Energy Orange */
    --color-energy: #f97316;
    --color-energy-dark: #c2410c;
    --color-energy-light: #fb923c;
    --color-energy-bg: #ffedd5;

    /* Neutral Colors - Slate */
    --color-bg: #eef2f7;
    --color-surface: #ffffff;
    --color-surface-alt: #f1f5f9;
    --color-border: #cbd5e1;
    --color-border-light: #e2e8f0;

    /* Text Colors */
    --color-text: #0f172a;
    --color-text-secondary: #475569;
    --color-text-muted: #94a3b8;
    --color-text-inverse: #ffffff;

    /* Status Colors */
    --color-success: #10b981;
    --color-warning: #f59e0b;
    --color-error: #ef4444;
    --color-info: #06b6d4;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #1e3a8a 0%, #0ea5e9 100%);
    --gradient-energy: linear-gradient(135deg, #f97316 0%, #fb923c 100%);
    --gradient-dark: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    --gradient-hero: linear-gradient(135deg, #172554 0%, #1e3a8a 40%, #0ea5e9 100%);
    --gradient-sky: linear-gradient(135deg, #0ea5e9 0%, #38bdf8 100%);
    --gradient-card: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);

    /* Neumorphism Shadows - Soft UI */
    --shadow-sm: 0 2px 4px rgba(15, 23, 42, 0.04);
    --shadow-md: 0 4px 8px rgba(15, 23, 42, 0.06), 0 2px 4px rgba(15, 23, 42, 0.04);
    --shadow-lg: 0 10px 20px rgba(15, 23, 42, 0.08), 0 4px 8px rgba(15, 23, 42, 0.04);
    --shadow-xl: 0 20px 35px rgba(15, 23, 42, 0.1), 0 8px 12px rgba(15, 23, 42, 0.06);
    --shadow-2xl: 0 30px 60px rgba(15, 23, 42, 0.15);
    --shadow-primary: 0 10px 30px -8px rgba(30, 58, 138, 0.45);

    /* Neumorphism specific shadows */
    --neu-bg: #eef2f7;
    --neu-light: #ffffff;
    --neu-dark: #cbd5e1;
    --shadow-neu: 8px 8px 16px var(--neu-dark), -8px -8px 16px var(--neu-light);
    --shadow-neu-sm: 4px 4px 8px var(--neu-dark), -4px -4px 8px var(--neu-light);
    --shadow-neu-inset: inset 4px 4px 8px var(--neu-dark), inset -4px -4px 8px var(--neu-light);
    --shadow-neu-pressed: inset 6px 6px 12px var(--neu-dark), inset -6px -6px 12px var(--neu-light);
    --shadow-neu-hover: 12px 12px 24px var(--neu-dark), -12px -12px 24px var(--neu-light);

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --radius-full: 9999px;

    /* Typography */
    --font-family: 'Cairo', 'Inter', system-ui, -apple-system, sans-serif;
    --font-mono: 'Courier New', monospace;

    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition: 250ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);

    /* Layout */
    --header-height: 80px;
    --top-bar-height: 40px;
    --container-max: 1280px;
}

/* ===== Dark Mode Variables ===== */
:root[data-theme="dark"] {
    --color-primary: #3b82f6;
    --color-primary-dark: #1e3a8a;
    --color-primary-light: #60a5fa;
    --color-primary-lighter: #93c5fd;
    --color-primary-bg: rgba(59, 130, 246, 0.15);
    --color-primary-bg-light: rgba(59, 130, 246, 0.08);

    --color-accent: #38bdf8;
    --color-accent-dark: #0ea5e9;
    --color-accent-light: #7dd3fc;
    --color-accent-bg: rgba(56, 189, 248, 0.15);

    --color-energy: #fb923c;
    --color-energy-dark: #f97316;
    --color-energy-light: #fdba74;
    --color-energy-bg: rgba(251, 146, 60, 0.15);

    --color-bg: #0f172a;
    --color-surface: #1e293b;
    --color-surface-alt: #334155;
    --color-border: #334155;
    --color-border-light: #1e293b;

    --color-text: #f1f5f9;
    --color-text-secondary: #cbd5e1;
    --color-text-muted: #94a3b8;
    --color-text-inverse: #0f172a;

    --gradient-card: linear-gradient(145deg, #1e293b 0%, #0f172a 100%);

    /* Neumorphism in dark mode */
    --neu-bg: #1e293b;
    --neu-light: #2d3f54;
    --neu-dark: #0a0f1a;
    --shadow-neu: 8px 8px 16px var(--neu-dark), -8px -8px 16px var(--neu-light);
    --shadow-neu-sm: 4px 4px 8px var(--neu-dark), -4px -4px 8px var(--neu-light);
    --shadow-neu-inset: inset 4px 4px 8px var(--neu-dark), inset -4px -4px 8px var(--neu-light);
    --shadow-neu-pressed: inset 6px 6px 12px var(--neu-dark), inset -6px -6px 12px var(--neu-light);
    --shadow-neu-hover: 12px 12px 24px var(--neu-dark), -12px -12px 24px var(--neu-light);

    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.4), 0 2px 4px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 20px rgba(0, 0, 0, 0.5), 0 4px 8px rgba(0, 0, 0, 0.3);
    --shadow-xl: 0 20px 35px rgba(0, 0, 0, 0.6), 0 8px 12px rgba(0, 0, 0, 0.4);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

/* Prevent layout shift when switching languages */
body {
    font-family: var(--font-family);
    color: var(--color-text);
    background-color: var(--neu-bg);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    background-image:
        radial-gradient(circle at 20% 10%, rgba(30, 58, 138, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 80% 80%, rgba(14, 165, 233, 0.05) 0%, transparent 40%);
    background-attachment: fixed;
    transition: background-color var(--transition), color var(--transition);
}

/* Smooth direction transition */
body, .header, .nav-mobile, .footer, .top-bar,
.hero, .container, .btn, .icon-btn, .nav-link, .nav-mobile-link,
.product-card, .feature-card, .service-card, .stat-card {
    transition-property: background-color, color, border-color, box-shadow;
    transition-duration: var(--transition);
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

:root[data-theme="dark"] body {
    background-image:
        radial-gradient(circle at 20% 10%, rgba(59, 130, 246, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 80% 80%, rgba(14, 165, 233, 0.08) 0%, transparent 40%);
}

body.rtl {
    direction: rtl;
    text-align: right;
}

body.ltr {
    direction: ltr;
    text-align: left;
}

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

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

a:hover {
    color: var(--color-primary-light);
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

ul {
    list-style: none;
}

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

/* ===== Layout ===== */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

.text-center { text-align: center; }
.text-start { text-align: start; }
.text-end { text-align: end; }

.main-content {
    flex: 1;
    min-height: calc(100vh - var(--header-height) - var(--top-bar-height) - 300px);
}

/* ===== Top Bar ===== */
.top-bar {
    background: var(--gradient-dark);
    color: var(--color-text-inverse);
    height: var(--top-bar-height);
    font-size: 0.85rem;
}

.top-bar-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.top-bar-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.top-bar-info .material-symbols-rounded {
    font-size: 16px;
    color: var(--color-energy-light);
}

.divider-v {
    color: rgba(255, 255, 255, 0.3);
    margin: 0 4px;
}

.lang-switcher {
    display: inline;
}

.lang-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: white;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.1);
    transition: all var(--transition-fast);
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.lang-btn:hover {
    background: var(--gradient-energy);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(249, 115, 22, 0.3);
}

.lang-btn .material-symbols-rounded {
    font-size: 16px;
}

/* ===== Header ===== */
.header {
    background: var(--neu-bg);
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: box-shadow var(--transition);
    border-bottom: 1px solid rgba(203, 213, 225, 0.3);
    width: 100%;
}

:root[data-theme="dark"] .header {
    border-bottom-color: rgba(51, 65, 85, 0.5);
}

.header.scrolled {
    box-shadow: 0 8px 30px rgba(15, 23, 42, 0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: var(--header-height);
    gap: 16px;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--color-primary);
    text-decoration: none;
    flex-shrink: 0;
}

.logo-icon {
    font-size: 36px !important;
    color: var(--color-primary);
    background: var(--neu-bg);
    padding: 10px;
    border-radius: var(--radius-md);
    transition: all var(--transition);
    box-shadow: var(--shadow-neu-sm);
}

.logo:hover .logo-icon {
    transform: rotate(15deg) scale(1.1);
    color: var(--color-energy);
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.logo-name {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--color-primary);
}

.logo-tagline {
    font-size: 0.7rem;
    color: var(--color-text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Navigation Desktop */
.nav-desktop {
    display: flex;
    align-items: center;
    gap: 4px;
    justify-content: center;
}

/* Global Search in Header */
.global-search-wrapper {
    position: relative;
    flex: 1;
    max-width: 240px;
    margin: 0 16px;
}

.global-search-form {
    position: relative;
    display: flex;
    align-items: center;
}

.global-search-input {
    width: 100%;
    padding: 9px 14px 9px 40px;
    border: none;
    border-radius: var(--radius-full);
    font-family: inherit;
    font-size: 0.9rem;
    background: var(--neu-bg);
    color: var(--color-text);
    box-shadow: var(--shadow-neu-inset);
    transition: all var(--transition-fast);
}

body.rtl .global-search-input {
    padding: 9px 40px 9px 14px;
}

.global-search-input:focus {
    outline: none;
    box-shadow: var(--shadow-neu-inset), 0 0 0 3px var(--color-primary-bg);
}

.global-search-icon {
    position: absolute;
    top: 50%;
    inset-inline-start: 12px;
    transform: translateY(-50%);
    color: var(--color-text-muted);
    font-size: 18px;
    pointer-events: none;
    z-index: 2;
}

.global-search-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    inset-inline-start: 0;
    inset-inline-end: 0;
    background: var(--color-surface);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    z-index: 100;
    max-height: 400px;
    overflow-y: auto;
    display: none;
    border: 1px solid var(--color-border-light);
}

.global-search-dropdown.open {
    display: block;
}

.global-search-dropdown .suggestion-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    text-decoration: none;
    color: var(--color-text);
    transition: background var(--transition-fast);
    border-bottom: 1px solid var(--color-border-light);
}

.global-search-dropdown .suggestion-item:last-child {
    border-bottom: none;
}

.global-search-dropdown .suggestion-item:hover,
.global-search-dropdown .suggestion-item.active {
    background: var(--color-primary-bg);
}

.global-search-dropdown .suggestion-item.view-all {
    background: var(--color-surface-alt);
    font-weight: 600;
    color: var(--color-primary);
    justify-content: center;
    gap: 8px;
}

.global-search-dropdown .suggestion-item.no-results {
    justify-content: center;
    color: var(--color-text-muted);
    gap: 8px;
    padding: 20px;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    color: var(--color-text);
    border-radius: var(--radius-md);
    font-weight: 500;
    font-size: 0.95rem;
    transition: all var(--transition-fast);
    position: relative;
}

.nav-link .material-symbols-rounded {
    font-size: 20px;
}

.nav-link:hover {
    background: var(--color-primary-bg);
    color: var(--color-primary);
    box-shadow: var(--shadow-neu-sm);
}

.nav-link.active {
    color: var(--color-primary);
    background: var(--neu-bg);
    box-shadow: var(--shadow-neu-inset);
    font-weight: 700;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 3px;
    background: var(--gradient-energy);
    border-radius: 3px;
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.icon-btn {
    position: relative;
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-secondary);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    background: var(--neu-bg);
    box-shadow: var(--shadow-neu-sm);
}

.icon-btn:hover {
    color: var(--color-primary);
    box-shadow: var(--shadow-neu-inset);
}

.icon-btn:active {
    box-shadow: var(--shadow-neu-pressed);
}

.icon-btn .material-symbols-rounded {
    font-size: 24px;
}

.cart-btn .badge {
    position: absolute;
    top: 4px;
    inset-inline-end: 4px;
    background: var(--color-energy);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
    border: 2px solid var(--color-surface);
}

.add-product-btn-desktop {
    margin-inline-start: 8px;
}

.mobile-menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    color: var(--color-text);
    border-radius: var(--radius-md);
}

.mobile-menu-toggle:hover {
    background: var(--color-primary-bg);
}

/* Mobile Navigation */
.nav-mobile {
    display: none;
    flex-direction: column;
    background: var(--neu-bg);
    border-top: 1px solid var(--color-border);
    padding: 0;
    gap: 4px;
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-slow), padding var(--transition-slow);
    position: absolute;
    top: 100%;
    inset-inline: 0;
    box-shadow: var(--shadow-xl);
    z-index: 999;
}

.nav-mobile.open {
    max-height: 80vh;
    overflow-y: auto;
    padding: 12px;
}

/* Backdrop overlay when menu is open - click to close */
.menu-backdrop {
    display: none;
    position: fixed;
    top: 0;
    inset-inline: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
    z-index: 998;
    opacity: 0;
    transition: opacity var(--transition);
    cursor: pointer;
}

.menu-backdrop.open {
    display: block;
    opacity: 1;
}

/* When menu is open, lock body scroll */
body.menu-open {
    overflow: hidden;
}

.nav-mobile-divider {
    height: 1px;
    background: var(--color-border);
    margin: 8px 0;
}

.nav-mobile-language {
    display: block;
    margin: 0;
}

.nav-mobile-language button {
    width: 100%;
    text-align: start;
    background: var(--color-primary-bg);
    color: var(--color-primary);
    font-weight: 700;
}

.nav-mobile-theme-btn {
    width: 100%;
    text-align: start;
    background: transparent;
    color: var(--color-text);
    cursor: pointer;
    font-family: inherit;
    font-size: inherit;
}

.nav-mobile-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--color-text);
    border-radius: var(--radius-md);
    font-weight: 500;
    transition: all var(--transition-fast);
    text-decoration: none;
    width: 100%;
    border: none;
    font-size: 1rem;
}

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

.nav-mobile-link .material-symbols-rounded {
    font-size: 22px;
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 0.95rem;
    transition: all var(--transition);
    border: 2px solid transparent;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    line-height: 1.4;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s;
}

.btn:hover::before {
    transform: translateX(100%);
}

.btn .material-symbols-rounded {
    font-size: 20px;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 15px rgba(30, 58, 138, 0.3), var(--shadow-neu-sm);
}

.btn-primary:hover {
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(30, 58, 138, 0.45), var(--shadow-neu-sm);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: var(--shadow-neu-pressed);
}

.btn-outline {
    background: var(--neu-bg);
    color: var(--color-primary);
    border-color: transparent;
    box-shadow: var(--shadow-neu-sm);
}

.btn-outline:hover {
    color: var(--color-primary);
    box-shadow: var(--shadow-neu-inset);
}

.btn-outline:active {
    box-shadow: var(--shadow-neu-pressed);
}

.btn-glass {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border-color: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.btn-glass:hover {
    background: rgba(255, 255, 255, 0.25);
    color: white;
    transform: translateY(-2px);
}

.btn-sm { padding: 6px 14px; font-size: 0.85rem; }
.btn-lg { padding: 14px 28px; font-size: 1.05rem; }
.btn-block { width: 100%; }

.inline-form {
    display: inline;
}

/* ===== Hero Section ===== */
.hero {
    position: relative;
    background: var(--gradient-hero);
    color: white;
    padding: 80px 0 100px;
    overflow: hidden;
}

.hero-bg-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
}

.hero-particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: var(--color-energy-light);
    border-radius: 50%;
    opacity: 0.6;
    box-shadow: 0 0 12px var(--color-energy-light);
    animation: float-particle 8s infinite ease-in-out;
}

.particle:nth-child(1) { top: 20%; left: 10%; animation-delay: 0s; }
.particle:nth-child(2) { top: 60%; left: 20%; animation-delay: 2s; width: 8px; height: 8px; }
.particle:nth-child(3) { top: 30%; right: 15%; animation-delay: 4s; }
.particle:nth-child(4) { top: 70%; right: 25%; animation-delay: 6s; width: 5px; height: 5px; }
.particle:nth-child(5) { top: 50%; left: 50%; animation-delay: 1s; width: 7px; height: 7px; }

@keyframes float-particle {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.6; }
    50% { transform: translate(30px, -40px) scale(1.5); opacity: 0.9; }
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 24px;
    backdrop-filter: blur(10px);
}

.hero-badge .material-symbols-rounded {
    font-size: 18px;
    color: var(--color-energy-light);
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 20px;
    color: white;
}

.gradient-text {
    background: var(--gradient-energy);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

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

.hero-visual {
    position: relative;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-image-wrapper {
    position: relative;
    width: 300px;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-glow {
    position: absolute;
    inset: -40px;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    animation: pulse-glow 3s infinite ease-in-out;
}

@keyframes pulse-glow {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.15); opacity: 0.8; }
}

.hero-icon-main {
    font-size: 160px !important;
    color: white;
    z-index: 1;
    animation: float-icon 4s infinite ease-in-out;
}

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

.hero-card-float {
    position: absolute;
    background: rgba(255, 255, 255, 0.95);
    color: var(--color-text);
    padding: 14px 18px;
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.25), 0 0 0 1px rgba(255, 255, 255, 0.3) inset;
    backdrop-filter: blur(10px);
    animation: float-card 4s infinite ease-in-out;
}

.hero-card-float .material-symbols-rounded {
    font-size: 28px;
    color: var(--color-primary);
    background: var(--color-primary-bg);
    padding: 6px;
    border-radius: var(--radius-md);
}

.hero-card-float strong {
    display: block;
    font-size: 0.85rem;
    color: var(--color-text);
}

.hero-card-float span {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-primary);
}

.hero-card-1 {
    top: 10%;
    left: -10%;
    animation-delay: 0s;
}

.hero-card-2 {
    bottom: 15%;
    right: -10%;
    animation-delay: 1.5s;
}

.hero-card-3 {
    top: 50%;
    left: 5%;
    animation-delay: 3s;
}

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

/* ===== Stats Section ===== */
.stats-section {
    padding: 60px 0;
    background: var(--color-surface);
}

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

.stat-card {
    text-align: center;
    padding: 32px 20px;
    background: var(--neu-bg);
    border-radius: var(--radius-lg);
    border: none;
    transition: all var(--transition);
    box-shadow: var(--shadow-neu);
}

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

.stat-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 16px;
    background: var(--gradient-primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-primary);
}

.stat-icon .material-symbols-rounded {
    font-size: 32px;
    color: white;
}

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

.stat-label {
    font-size: 1rem;
    color: var(--color-text-secondary);
    font-weight: 500;
}

/* ===== Section Header ===== */
.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-header.text-start {
    text-align: start;
}

.section-badge {
    display: inline-block;
    padding: 6px 16px;
    background: var(--color-primary-bg);
    color: var(--color-primary);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.section-title {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 800;
    color: var(--color-text);
    margin-bottom: 16px;
}

.section-desc {
    font-size: 1.05rem;
    color: var(--color-text-secondary);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.7;
}

.section-header.text-start .section-desc {
    margin: 0;
}

/* ===== Features Section ===== */
.features-section {
    padding: 80px 0;
    background: var(--color-bg);
}

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

.feature-card {
    background: var(--neu-bg);
    padding: 32px 24px;
    border-radius: var(--radius-lg);
    border: none;
    transition: all var(--transition);
    text-align: center;
    box-shadow: var(--shadow-neu);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-neu-hover);
}

.feature-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 20px;
    background: var(--gradient-primary);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-primary);
    transition: transform var(--transition);
}

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

.feature-icon .material-symbols-rounded {
    font-size: 36px;
    color: white;
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.feature-desc {
    color: var(--color-text-secondary);
    margin-bottom: 20px;
    line-height: 1.6;
}

.feature-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--color-primary);
    font-weight: 600;
    font-size: 0.95rem;
    transition: gap var(--transition-fast);
}

.feature-link:hover {
    gap: 8px;
}

.feature-link .material-symbols-rounded {
    font-size: 18px;
}

/* ===== Featured Products Section ===== */
.featured-section {
    padding: 80px 0;
    background: var(--color-surface);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}

.product-card {
    background: var(--neu-bg);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: none;
    transition: all var(--transition);
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-neu);
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-neu-hover);
}

.product-image {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
    background: var(--color-surface-alt);
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.product-card:hover .product-image img {
    transform: scale(1.08);
}

.product-badge {
    position: absolute;
    top: 12px;
    inset-inline-start: 12px;
    background: var(--gradient-energy);
    color: white;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    box-shadow: var(--shadow-md);
}

.product-category-badge {
    position: absolute;
    bottom: 12px;
    inset-inline-end: 12px;
    background: rgba(15, 31, 26, 0.7);
    color: white;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 500;
    backdrop-filter: blur(8px);
}

.product-category {
    display: inline-block;
    color: var(--color-accent);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.product-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-name {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--color-text);
    line-height: 1.4;
}

.product-desc {
    color: var(--color-text-secondary);
    font-size: 0.9rem;
    margin-bottom: 16px;
    flex: 1;
    line-height: 1.5;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.product-price {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-primary);
}

.product-actions {
    display: flex;
    gap: 6px;
}

.add-cart-btn {
    padding: 8px 10px;
}

/* ===== Service Cycle ===== */
.services-preview-section {
    padding: 80px 0;
    background: var(--color-bg);
}

.service-cycle {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.cycle-step {
    text-align: center;
    background: var(--neu-bg);
    padding: 24px 32px;
    border-radius: var(--radius-lg);
    border: none;
    transition: all var(--transition);
    min-width: 160px;
    box-shadow: var(--shadow-neu);
}

.cycle-step:hover {
    box-shadow: var(--shadow-neu-hover);
    transform: translateY(-4px);
}

.cycle-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 12px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-primary);
}

.cycle-icon .material-symbols-rounded {
    font-size: 30px;
    color: white;
}

.cycle-label {
    font-weight: 700;
    color: var(--color-text);
}

.cycle-arrow {
    color: var(--color-primary-lighter);
}

.cycle-arrow .material-symbols-rounded {
    font-size: 28px;
}

/* ===== Projects Section ===== */
.projects-preview-section {
    padding: 80px 0;
    background: var(--color-surface);
}

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

.projects-grid-large {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.project-card {
    background: var(--neu-bg);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: none;
    transition: all var(--transition);
    box-shadow: var(--shadow-neu);
}

.project-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-neu-hover);
}

.project-image {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
    background: var(--color-surface-alt);
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.project-card:hover .project-image img,
.project-card-large:hover .project-image-large img {
    transform: scale(1.08);
}

.project-status {
    position: absolute;
    top: 12px;
    inset-inline-end: 12px;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    color: white;
    backdrop-filter: blur(8px);
}

.project-status-completed { background: var(--color-success); }
.project-status-in_progress { background: var(--color-warning); }
.project-status-planned { background: var(--color-info); }

.project-info {
    padding: 20px;
}

.project-name {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.project-meta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    color: var(--color-text-secondary);
    font-size: 0.9rem;
}

.meta-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.meta-item .material-symbols-rounded {
    font-size: 18px;
    color: var(--color-primary);
}

/* Project Card Large */
.project-card-large {
    background: var(--neu-bg);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: none;
    transition: all var(--transition);
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-neu);
}

.project-card-large:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-neu-hover);
}

.project-image-large {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: var(--color-surface-alt);
}

.project-image-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-status-large {
    position: absolute;
    top: 16px;
    inset-inline-end: 16px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 700;
    color: white;
    backdrop-filter: blur(8px);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: white;
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.project-info-large {
    padding: 24px;
}

.project-title-large {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.project-desc-large {
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
}

.project-meta-large {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.project-meta-large .meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.project-meta-large .meta-item .material-symbols-rounded {
    color: var(--color-primary);
    font-size: 22px;
}

.meta-label {
    display: block;
    font-size: 0.75rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
}

.meta-value {
    display: block;
    font-weight: 700;
    color: var(--color-text);
}

/* ===== CTA Section ===== */
.cta-section {
    padding: 80px 0;
    background: var(--gradient-hero);
    color: white;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(245, 158, 11, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(0, 137, 123, 0.15) 0%, transparent 50%);
}

.cta-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.cta-icon {
    font-size: 64px !important;
    color: var(--color-energy-light);
    margin-bottom: 20px;
    animation: float-icon 4s infinite ease-in-out;
}

.cta-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    margin-bottom: 16px;
    color: white;
}

.cta-desc {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 32px;
    line-height: 1.7;
}

.cta-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* ===== Footer ===== */
.footer {
    background: var(--gradient-dark);
    color: rgba(255, 255, 255, 0.7);
    padding: 60px 0 20px;
    margin-top: auto;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
}

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

.footer-brand .logo {
    color: white;
    margin-bottom: 16px;
}

.footer-brand .logo-name {
    color: white;
}

.footer-brand .logo-tagline {
    color: rgba(255, 255, 255, 0.6);
}

.footer-brand .logo-icon {
    background: rgba(255, 255, 255, 0.1);
    color: var(--color-energy-light);
}

.footer-desc {
    margin: 16px 0 24px;
    line-height: 1.7;
    font-size: 0.95rem;
}

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

.social-link, .social-link-large {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.7);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.social-link:hover, .social-link-large:hover {
    background: var(--color-primary);
    color: white;
    transform: translateY(-3px);
}

.social-link .material-symbols-rounded, .social-link-large .material-symbols-rounded {
    font-size: 20px;
}

.footer-title {
    color: white;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 20px;
}

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

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    transition: all var(--transition-fast);
}

.footer-links a:hover {
    color: var(--color-energy-light);
    padding-inline-start: 4px;
}

.footer-contact li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    color: rgba(255, 255, 255, 0.7);
}

.footer-contact .material-symbols-rounded {
    color: var(--color-energy-light);
    font-size: 20px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 0.9rem;
}

/* ===== Back to Top ===== */
.back-to-top {
    position: fixed;
    bottom: 24px;
    inset-inline-end: 24px;
    width: 48px;
    height: 48px;
    background: var(--neu-bg);
    color: var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-neu);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all var(--transition);
    z-index: 999;
    border: none;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    box-shadow: var(--shadow-neu-hover);
    color: var(--color-energy);
    transform: translateY(-4px);
}

.back-to-top:active {
    box-shadow: var(--shadow-neu-pressed);
}

/* ===== Dark Mode Toggle ===== */
.theme-toggle {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-secondary);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
    background: var(--neu-bg);
    box-shadow: var(--shadow-neu-sm);
    cursor: pointer;
}

.theme-toggle:hover {
    color: var(--color-energy);
    box-shadow: var(--shadow-neu-inset);
}

.theme-toggle:active {
    box-shadow: var(--shadow-neu-pressed);
}

.theme-toggle .material-symbols-rounded {
    font-size: 22px;
    transition: transform var(--transition);
}

.theme-toggle:hover .material-symbols-rounded {
    transform: rotate(180deg);
}

:root[data-theme="dark"] .theme-toggle .sun-icon { display: block; }
:root[data-theme="dark"] .theme-toggle .moon-icon { display: none; }
:root:not([data-theme="dark"]) .theme-toggle .sun-icon { display: none; }
:root:not([data-theme="dark"]) .theme-toggle .moon-icon { display: block; }

/* ===== Toast Container ===== */
.toast-container {
    position: fixed;
    bottom: 24px;
    inset-inline-start: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.toast {
    background: var(--color-surface);
    color: var(--color-text);
    padding: 14px 20px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xl);
    display: flex;
    align-items: center;
    gap: 12px;
    border-inline-start: 4px solid var(--color-primary);
    animation: slideIn var(--transition);
    min-width: 280px;
}

.toast.toast-success { border-inline-start-color: var(--color-success); }
.toast.toast-error { border-inline-start-color: var(--color-error); }
.toast.toast-warning { border-inline-start-color: var(--color-warning); }

@keyframes slideIn {
    from { transform: translateX(-100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* ===== Messages ===== */
.messages-container {
    margin-top: 16px;
}

.message {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    border-radius: var(--radius-md);
    margin-bottom: 8px;
    background: var(--color-surface);
    box-shadow: var(--shadow-md);
}

.message-success { border-inline-start: 4px solid var(--color-success); }
.message-success .material-symbols-rounded { color: var(--color-success); }
.message-error { border-inline-start: 4px solid var(--color-error); }
.message-error .material-symbols-rounded { color: var(--color-error); }
.message-warning { border-inline-start: 4px solid var(--color-warning); }
.message-warning .material-symbols-rounded { color: var(--color-warning); }
.message-info { border-inline-start: 4px solid var(--color-info); }
.message-info .material-symbols-rounded { color: var(--color-info); }

.message-close {
    margin-inline-start: auto;
    padding: 4px;
    color: var(--color-text-muted);
}

/* ===== Page Header ===== */
.page-header {
    background: var(--gradient-dark);
    color: white;
    padding: 40px 0;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(245, 158, 11, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(0, 137, 123, 0.15) 0%, transparent 50%);
}

.page-title {
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    color: white;
    margin-bottom: 8px;
    position: relative;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    position: relative;
}

.breadcrumb a {
    color: rgba(255, 255, 255, 0.9);
}

.breadcrumb a:hover {
    color: var(--color-energy-light);
}

.breadcrumb .material-symbols-rounded {
    font-size: 18px;
}

.breadcrumb .active {
    color: var(--color-energy-light);
    font-weight: 600;
}

/* ===== Forms ===== */
.form-input {
    width: 100%;
    padding: 12px 16px;
    border: none;
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 1rem;
    background: var(--neu-bg);
    color: var(--color-text);
    transition: all var(--transition-fast);
    box-shadow: var(--shadow-neu-inset);
}

.form-input:focus {
    outline: none;
    box-shadow: var(--shadow-neu-inset), 0 0 0 3px var(--color-primary-bg);
}

.form-input::placeholder {
    color: var(--color-text-muted);
}

.form-label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--color-text);
    font-size: 0.9rem;
}

.form-group {
    margin-bottom: 16px;
}

.form-row {
    margin-bottom: 8px;
}

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

.form-error {
    display: block;
    color: var(--color-error);
    font-size: 0.85rem;
    margin-top: 4px;
}

.form-hint {
    display: block;
    color: var(--color-text-muted);
    font-size: 0.85rem;
    margin-top: 4px;
}

.form-checkbox-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.checkbox-label {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-weight: 500;
    margin-bottom: 0 !important;
}

/* ===== Empty State ===== */
.empty-state {
    text-align: center;
    padding: 80px 24px;
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    border: 2px dashed var(--color-border);
}

.empty-state .material-symbols-rounded {
    font-size: 64px;
    color: var(--color-text-muted);
    margin-bottom: 20px;
}

.empty-state h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.empty-state p {
    color: var(--color-text-secondary);
    margin-bottom: 24px;
    max-width: 500px;
    margin-inline: auto;
}
