/* ==========================================
   Makaaen Smart Water Landing Page CSS
   Gov-Tech Enterprise SaaS Style
   ========================================== */

/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Tajawal:wght@300;400;500;700;800;900&display=swap');

/* CSS Variables & Theme Config */
:root {
    --primary: #1E3A8A;        /* Deep Navy Blue */
    --primary-light: #3B82F6;  /* Water Blue */
    --accent: #06B6D4;         /* Cyan/Water Blue Accent */
    --accent-glow: rgba(6, 182, 212, 0.4);
    --dark-bg: #0B132B;        /* Deep Midnight Navy */
    --dark-card: rgba(30, 41, 59, 0.7); /* Glassmorphic panel background */
    --light-bg: #F8FAFC;       /* Off-white */
    --light-card: #FFFFFF;
    --border-color: rgba(226, 232, 240, 0.8);
    --border-dark: rgba(255, 255, 255, 0.1);
    --text-dark: #0F172A;      /* Slate 900 */
    --text-muted: #64748B;     /* Slate 500 */
    --text-light: #F1F5F9;     /* Slate 100 */
    --text-light-muted: #94A3B8; /* Slate 400 */
    --success: #10B981;        /* Emerald Green */
    --error: #EF4444;          /* Soft Red */
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.1);
    --shadow-glow: 0 0 20px rgba(6, 182, 212, 0.15);
}

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

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

/* Dynamic Font & Direction Config based on language */
html[lang="ar"] {
    font-family: 'Tajawal', sans-serif;
}

html[lang="en"] {
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--light-bg);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.3s ease;
}

/* Background Gradients & Tech Overlays */
.bg-mesh {
    background: radial-gradient(circle at 10% 20%, rgba(30, 58, 138, 0.05) 0%, transparent 40%),
                radial-gradient(circle at 90% 80%, rgba(6, 182, 212, 0.05) 0%, transparent 40%);
}

.text-gradient {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-gradient-cyan {
    background: linear-gradient(135deg, #FFFFFF 30%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

section {
    padding: 100px 0;
    position: relative;
}

/* ==========================================
   Header & Navigation
   ========================================== */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
    transition: var(--transition);
}

header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    padding: 10px 0;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

/* Partner Logos Placement */
.logo-area {
    display: flex;
    align-items: center;
    gap: 16px;
}

.logo-separator {
    width: 1px;
    height: 35px;
    background-color: #CBD5E1;
}

.partner-logo {
    height: 48px;
    object-fit: contain;
    transition: var(--transition);
}

.partner-logo.makaaen {
    height: 52px;
}

.partner-logo:hover {
    transform: translateY(-2px);
}

/* Menu and Navigation Controls */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Language Toggle Switch */
.lang-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: 1px solid var(--primary-light);
    color: var(--primary);
    padding: 8px 16px;
    border-radius: 9999px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.lang-btn:hover {
    background-color: var(--primary);
    color: white;
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.15);
}

.lang-btn svg {
    width: 18px;
    height: 18px;
}

/* Demo Request Button in Header */
.cta-header-btn {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    padding: 10px 20px;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(30, 58, 138, 0.2);
    transition: var(--transition);
}

.cta-header-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(30, 58, 138, 0.3);
}

/* ==========================================
   Hero Section
   ========================================== */
.hero {
    background: radial-gradient(circle at top right, #1E3A8A 0%, var(--dark-bg) 100%);
    color: white;
    padding: 160px 0 100px 0;
    min-height: 90vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

/* High-tech matrix/particle overlay background effect */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(rgba(6, 182, 212, 0.1) 1px, transparent 1px);
    background-size: 24px 24px;
    opacity: 0.8;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 48px;
    align-items: center;
    position: relative;
    z-index: 10;
}

.hero-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.hero-tag {
    display: inline-flex;
    align-self: flex-start;
    align-items: center;
    gap: 8px;
    background: rgba(6, 182, 212, 0.15);
    border: 1px solid rgba(6, 182, 212, 0.3);
    color: var(--accent);
    padding: 6px 16px;
    border-radius: 9999px;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.hero-tag::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--accent);
    animation: pulse 1.5s infinite;
}

.hero-title {
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 1.25;
    font-weight: 900;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.15rem);
    color: var(--text-light-muted);
    line-height: 1.7;
    max-width: 620px;
}

/* Call to action group */
.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 12px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent) 0%, var(--primary-light) 100%);
    color: var(--dark-bg);
    box-shadow: 0 6px 20px var(--accent-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(6, 182, 212, 0.5);
    color: var(--dark-bg);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: white;
    backdrop-filter: blur(8px);
}

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

/* 3D Smart Tank Visual with Tech Overlay */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.tank-visual-container {
    position: relative;
    width: 320px;
    height: 380px;
    background: linear-gradient(180deg, rgba(6, 182, 212, 0.05) 0%, rgba(30, 58, 138, 0.2) 100%);
    border-radius: 30px;
    border: 1px solid rgba(6, 182, 212, 0.2);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3), inset 0 0 30px rgba(6, 182, 212, 0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 30px;
    backdrop-filter: blur(10px);
}

/* Animated fluid waves in water visual container */
.water-tank-body {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 65%;
    background: linear-gradient(180deg, rgba(6, 182, 212, 0.6) 0%, rgba(30, 58, 138, 0.8) 100%);
    transition: var(--transition);
    overflow: hidden;
}

.water-tank-body::before,
.water-tank-body::after {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    top: -190%;
    left: -50%;
    border-radius: 38% 42% 40% 40%;
    background-color: rgba(11, 19, 43, 0.9);
    animation: wave 12s infinite linear;
}

.water-tank-body::after {
    border-radius: 40% 38% 42% 40%;
    background-color: rgba(6, 182, 212, 0.2);
    animation: wave 18s infinite linear;
}

/* Digital overlay data labels */
.visual-tech-node {
    position: relative;
    z-index: 20;
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(11, 19, 43, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 8px 14px;
    font-size: 0.85rem;
    backdrop-filter: blur(5px);
    width: max-content;
    box-shadow: var(--shadow);
}

.visual-tech-node.top {
    align-self: flex-start;
    border-right: 3px solid var(--accent);
}

.visual-tech-node.middle {
    align-self: flex-end;
    margin-right: -20px;
    border-right: 3px solid var(--success);
}

html[lang="ar"] .visual-tech-node.middle {
    margin-right: 0;
    margin-left: -20px;
    border-right: none;
    border-left: 3px solid var(--success);
}

.visual-tech-node.bottom {
    align-self: flex-start;
    border-right: 3px solid var(--primary-light);
}

.visual-tech-node span {
    font-weight: 700;
}

.visual-tech-node .pulse-icon {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--accent);
}

.visual-tech-node.middle .pulse-icon {
    background-color: var(--success);
}

/* Tech radar circles background */
.radar-ring {
    position: absolute;
    border: 1px dashed rgba(6, 182, 212, 0.2);
    border-radius: 50%;
    animation: rotate 60s infinite linear;
    z-index: 1;
}

.radar-ring.r1 {
    width: 450px;
    height: 450px;
}

.radar-ring.r2 {
    width: 600px;
    height: 600px;
}

/* ==========================================
   Core Pillars Section (Why Makaaen?)
   ========================================== */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.section-tag {
    color: var(--primary-light);
    font-size: 0.9rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.section-title {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    color: var(--text-dark);
    font-weight: 800;
}

.section-desc {
    color: var(--text-muted);
}

.pillars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
}

.pillar-card {
    background-color: var(--light-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    transition: var(--transition);
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.pillar-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--primary-light) 100%);
    opacity: 0;
    transition: var(--transition);
}

.pillar-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    border-color: rgba(30, 58, 138, 0.15);
}

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

.pillar-icon-wrapper {
    width: 60px;
    height: 60px;
    background: rgba(30, 58, 138, 0.05);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    transition: var(--transition);
}

.pillar-card:hover .pillar-icon-wrapper {
    background: var(--primary);
    color: white;
    transform: scale(1.05);
}

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

.pillar-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
}

.pillar-quote {
    font-size: 0.95rem;
    font-style: italic;
    color: var(--primary-light);
    font-weight: 600;
}

.pillar-text {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ==========================================
   Dashboard Showcase Section
   ========================================== */
.dashboard-showcase {
    background-color: var(--dark-bg);
    color: white;
}

.dashboard-showcase::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 24px 24px;
    pointer-events: none;
}

.dashboard-showcase .section-title {
    color: white;
}

.dashboard-showcase .section-desc {
    color: var(--text-light-muted);
}

.dashboard-display-wrapper {
    position: relative;
    max-width: 960px;
    margin: 40px auto 0 auto;
    background: rgba(15, 23, 42, 0.6);
    border-radius: 20px;
    border: 1px solid var(--border-dark);
    padding: 16px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4), var(--shadow-glow);
}

.dashboard-mockup-img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    display: block;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Interactive Hotspots Overlays on Dashboard image */
.map-hotspot {
    position: absolute;
    width: 20px;
    height: 20px;
    transform: translate(-50%, -50%);
    cursor: pointer;
    z-index: 50;
}

/* Hotspot pulse rings */
.map-hotspot::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--accent);
    border-radius: 50%;
    opacity: 0.8;
}

.map-hotspot::after {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    bottom: -10px;
    right: -10px;
    border: 2px solid var(--accent);
    border-radius: 50%;
    animation: ripple 2s infinite ease-out;
    opacity: 0;
}

/* Custom colors depending on status */
.map-hotspot.warning::before {
    background-color: #F59E0B;
}
.map-hotspot.warning::after {
    border-color: #F59E0B;
}

.map-hotspot.danger::before {
    background-color: var(--error);
}
.map-hotspot.danger::after {
    border-color: var(--error);
}

/* Tooltip layout */
.hotspot-tooltip {
    position: absolute;
    bottom: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    width: 240px;
    background: rgba(11, 19, 43, 0.95);
    border: 1px solid rgba(6, 182, 212, 0.3);
    border-radius: 12px;
    padding: 14px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    z-index: 60;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    pointer-events: none;
    backdrop-filter: blur(8px);
}

/* Tooltip triangle arrow */
.hotspot-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 6px;
    border-style: solid;
    border-color: rgba(11, 19, 43, 0.95) transparent transparent transparent;
}

.map-hotspot:hover .hotspot-tooltip,
.map-hotspot.active .hotspot-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* Tooltip text styling */
.tooltip-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 6px;
    margin-bottom: 8px;
}

.tooltip-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: white;
}

.tooltip-status {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
}

.tooltip-status.ok {
    background: rgba(16, 185, 129, 0.2);
    color: var(--success);
}

.tooltip-status.warning {
    background: rgba(245, 158, 11, 0.2);
    color: #F59E0B;
}

.tooltip-status.danger {
    background: rgba(239, 68, 68, 0.2);
    color: var(--error);
}

.tooltip-data-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    margin-bottom: 4px;
    color: var(--text-light-muted);
}

.tooltip-data-row span:last-child {
    font-weight: 700;
    color: white;
}

/* Positions of map hotspots - calibrated for standard display */
#hotspot-1 { top: 38%; left: 32%; }
#hotspot-2 { top: 58%; left: 45%; }
#hotspot-3 { top: 48%; left: 62%; }
#hotspot-4 { top: 72%; left: 55%; }

/* ==========================================
   Operational Impact (ROI)
   ========================================= */
.roi {
    background-color: var(--light-bg);
}

.roi-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.roi-card {
    background-color: var(--light-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 40px;
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 16px;
}

.roi-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.06);
    border-color: var(--primary-light);
}

.roi-number-container {
    position: relative;
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

/* SVG Circular progress circle representing ROI */
.roi-svg {
    position: absolute;
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.roi-svg-bg {
    fill: none;
    stroke: #E2E8F0;
    stroke-width: 6;
}

.roi-svg-progress {
    fill: none;
    stroke: url(#roi-grad);
    stroke-width: 8;
    stroke-linecap: round;
    stroke-dasharray: 314;
    stroke-dashoffset: 314;
    transition: stroke-dashoffset 2s cubic-bezier(0.4, 0, 0.2, 1);
}

.roi-number {
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--primary);
    z-index: 10;
}

.roi-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-dark);
}

.roi-text {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* ==========================================
   Success Stories & Case Studies
   ========================================= */
.success-stories {
    background-color: white;
    border-bottom: 1px solid var(--border-color);
}

.case-study-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.case-study-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.case-study-badge {
    color: var(--accent);
    background-color: var(--dark-bg);
    padding: 6px 14px;
    border-radius: 9999px;
    font-size: 0.8rem;
    font-weight: 700;
    align-self: flex-start;
    display: flex;
    align-items: center;
    gap: 8px;
}

.case-study-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
}

.case-study-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-dark);
    line-height: 1.3;
}

.case-study-desc {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.7;
}

.case-study-stats {
    display: flex;
    gap: 30px;
    margin: 10px 0;
}

.cs-stat-item {
    display: flex;
    flex-direction: column;
}

.cs-stat-val {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary);
}

.cs-stat-lbl {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.diagram-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    cursor: zoom-in;
}

.diagram-img {
    width: 100%;
    height: auto;
    display: block;
    transition: var(--transition);
}

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

.diagram-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(30, 58, 138, 0.4);
    opacity: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-weight: 700;
    font-size: 1rem;
    transition: var(--transition);
    backdrop-filter: blur(2px);
}

.diagram-wrapper:hover .diagram-overlay {
    opacity: 1;
}

.diagram-overlay svg {
    width: 32px;
    height: 32px;
    margin-bottom: 8px;
}

.overlay-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Interactive Lightbox Overlay for Diagram zoom */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(11, 19, 43, 0.95);
    z-index: 2000;
    display: none;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 30px;
}

.lightbox.active {
    display: flex;
    opacity: 1;
}

.lightbox-content {
    max-width: 90%;
    max-height: 85%;
    position: relative;
    border-radius: 12px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.5);
    border: 1px solid rgba(255,255,255,0.15);
}

.lightbox-img {
    max-width: 100%;
    max-height: 80vh;
    display: block;
    border-radius: 8px;
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: -50px;
    right: 0;
    background: transparent;
    border: none;
    color: white;
    font-size: 2.5rem;
    cursor: pointer;
    transition: var(--transition);
}

html[lang="ar"] .lightbox-close {
    right: auto;
    left: 0;
}

.lightbox-close:hover {
    color: var(--accent);
}

/* ==========================================
   Lead Generation Form Section
   ========================================= */
.lead-form-section {
    background: radial-gradient(circle at bottom right, rgba(30, 58, 138, 0.08) 0%, transparent 60%);
    border-bottom: 1px solid var(--border-color);
}

.lead-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 60px;
    align-items: center;
}

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

.contact-card {
    background-color: white;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 40px;
    box-shadow: var(--shadow);
    position: relative;
}

.form-group {
    margin-bottom: 24px;
    position: relative;
}

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

.form-control {
    width: 100%;
    padding: 14px 18px;
    border: 1.5px solid #E2E8F0;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 500;
    background-color: var(--light-bg);
    color: var(--text-dark);
    transition: var(--transition);
    outline: none;
}

.form-control:focus {
    border-color: var(--primary-light);
    background-color: white;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

textarea.form-control {
    resize: none;
    min-height: 120px;
}

/* Form success message layout */
.form-success-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: white;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 30px;
    text-align: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 100;
}

.form-success-overlay.active {
    opacity: 1;
    visibility: visible;
}

.success-icon-circle {
    width: 80px;
    height: 80px;
    background-color: rgba(16, 185, 129, 0.15);
    color: var(--success);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    animation: scaleUp 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

/* ==========================================
   Footer
   ========================================= */
footer {
    background-color: var(--dark-bg);
    color: white;
    padding: 60px 0 30px 0;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    padding-bottom: 40px;
    margin-bottom: 30px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-logo {
    height: 45px;
    object-fit: contain;
    filter: brightness(0) invert(1);
    align-self: flex-start;
}

.footer-copy-text {
    font-size: 0.9rem;
    color: var(--text-light-muted);
}

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

.footer-link {
    color: var(--text-light-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}

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

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.copyright {
    font-size: 0.8rem;
    color: var(--text-light-muted);
}

/* ==========================================
   Floating Widgets (WhatsApp Button)
   ========================================= */
.whatsapp-widget {
    position: fixed;
    bottom: 30px;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: white;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

/* Adjust position dynamically based on direction/lang */
html[lang="ar"] .whatsapp-widget {
    left: 30px;
    right: auto;
}

html[lang="en"] .whatsapp-widget {
    right: 30px;
    left: auto;
}

.whatsapp-widget:hover {
    transform: scale(1.1) rotate(10deg);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

.whatsapp-widget svg {
    width: 32px;
    height: 32px;
}

.whatsapp-widget::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px solid #25D366;
    animation: rippleGreen 2s infinite ease-out;
    opacity: 0;
}

/* ==========================================
   CSS Keyframe Animations
   ========================================= */
@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(6, 182, 212, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(6, 182, 212, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(6, 182, 212, 0); }
}

@keyframes ripple {
    0% { transform: scale(0.6); opacity: 1; }
    100% { transform: scale(1.8); opacity: 0; }
}

@keyframes rippleGreen {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(1.4); opacity: 0; }
}

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

@keyframes wave {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes scaleUp {
    from { transform: scale(0.7); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* ==========================================
   Responsive Breakpoints & Mobile Optimization
   ========================================= */
@media (max-width: 992px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .hero-tag {
        align-self: center;
    }
    
    .hero-cta {
        justify-content: center;
    }
    
    .hero-subtitle {
        margin: 0 auto;
    }
    
    .hero-visual {
        order: -1;
    }
    
    .case-study-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .lead-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .roi-grid {
        grid-template-columns: 1fr;
        max-width: 480px;
        margin: 40px auto 0 auto;
    }
}

@media (max-width: 768px) {
    section {
        padding: 60px 0;
    }
    
    .header-container {
        height: 70px;
    }
    
    .partner-logo {
        height: 38px;
    }
    
    .partner-logo.makaaen {
        height: 42px;
    }
    
    .cta-header-btn {
        display: none; /* Hide header CTA on small screen to save space */
    }
}

@media (max-width: 480px) {
    .logo-area {
        gap: 8px;
    }
    
    .partner-logo {
        height: 30px;
    }
    
    .partner-logo.makaaen {
        height: 34px;
    }
    
    .lang-btn {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
    
    .tank-visual-container {
        width: 280px;
        height: 340px;
    }
    
    .whatsapp-widget {
        bottom: 20px;
        width: 50px;
        height: 50px;
    }
    
    html[lang="ar"] .whatsapp-widget { left: 20px; }
    html[lang="en"] .whatsapp-widget { right: 20px; }
    
    .whatsapp-widget svg {
        width: 26px;
        height: 26px;
    }
}
