:root {
    --primary-color: #0056b3;
    --primary-dark: #004494;
    --dark-color: #111111;
    --light-color: #f4f4f4;
    --white: #ffffff;
    --text-color: #333333;
    --gray-bg: #f9f9f9;
    --font-main: 'Tajawal', sans-serif;
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    direction: rtl;
    text-align: right;
    color: var(--text-color);
    line-height: 1.7;
    /* Increased line height */
    background-color: var(--white);
    overflow-x: hidden;
    font-size: 1.15rem;
    /* Increased base font size */
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--dark-color);
    line-height: 1.3;
    margin-bottom: 1.2rem;
    font-weight: 800;
    /* Bolder headers */
}

h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    /* Larger Hero Text */
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    /* Subtle shadow for depth */
}

.price-badge {
    display: inline-block;
    background: #ff4757;
    color: white;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    box-shadow: 0 4px 15px rgba(255, 71, 87, 0.4);
    animation: pulse-red 2s infinite;
}

.price-badge del {
    opacity: 0.7;
    font-size: 0.8em;
    margin-right: 5px;
    /* Adjust for LTR/RTL in JS/Vars if needed */
}

@keyframes pulse-red {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 71, 87, 0.7);
    }

    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(255, 71, 87, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 71, 87, 0);
    }
}

.video-container {
    max-width: 800px;
    margin: 2rem auto;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    background: black;
}

.video-container video {
    width: 100%;
    height: auto;
    display: block;
}

/* Trust Badges */
.trust-badges {
    display: flex;
    gap: 1.5rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.badge-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 86, 179, 0.05);
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 700;
    color: var(--primary-color);
    border: 1px solid rgba(0, 86, 179, 0.1);
}

.badge-icon {
    font-size: 1.4rem;
}

h2 {
    font-size: 2.8rem;
    /* Larger Section Headers */
    background: linear-gradient(45deg, var(--primary-color), var(--primary-dark));
    -webkit-background-clip: text;
    background-clip: text;
    /* Standard property for compatibility */
    -webkit-text-fill-color: transparent;
    /* Gradient Text Effect */
    margin-bottom: 1.5rem;
}

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

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Utilities */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.section {
    padding: 4rem 0;
}

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

.bg-light {
    background-color: var(--gray-bg);
}

.bg-blue {
    background-color: var(--primary-color);
    color: var(--white);
}

.bg-blue h2,
.bg-blue p {
    color: var(--white);
}

/* Watermark */
.watermark-wrap {
    position: relative;
    display: inline-block;
    overflow: hidden;
    /* Ensures watermark doesn't spill out if logic is off, though generally not needed with center pos */
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.watermark-wrap::after {
    content: "ZITRON";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-15deg);
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 800;
    color: rgba(255, 255, 255, 0.3);
    text-transform: uppercase;
    letter-spacing: 5px;
    pointer-events: none;
    z-index: 10;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    white-space: nowrap;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1rem;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

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

.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-whatsapp {
    background-color: #25D366;
    color: var(--white);
}

.btn-whatsapp:hover {
    background-color: #128C7E;
    transform: translateY(-2px);
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1.2rem;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.9rem;
}

/* Header */
header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    padding: 1rem 0;
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-color);
    letter-spacing: 1px;
}

/* Hero */
.hero {
    padding-top: 120px;
    /* Space for fixed header */
    padding-bottom: 4rem;
    background: linear-gradient(135deg, #eef2f3 0%, #ffffff 100%);
    overflow: hidden;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: center;
}

.hero-text h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.hero-text .subtitle {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 2rem;
}

.hero-btns {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Content Grid (Standard Layout) */
.content-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

/* Feature Lists */
.feature-list li,
.check-list li,
.box-list li {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    font-size: 1.1rem;
}

.feature-list .icon {
    font-size: 1.5rem;
    margin-left: 10px;
    background: #eef4ff;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.check-list li::before {
    content: "✓";
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 24px;
    height: 24px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    margin-left: 10px;
    font-size: 0.8rem;
    flex-shrink: 0;
}

.box-list li {
    padding: 10px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    margin-bottom: 0.8rem;
    border-right: 4px solid var(--primary-color);
}

/* Section Specifics */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
}

.h-highlight {
    font-weight: 700;
    color: var(--primary-color);
    font-size: 1.2rem;
    margin: 1rem 0;
}

.waterproof .hero-image {
    max-width: 800px;
    margin: 3rem auto 0;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.9)), url('../img/%D9%85%D9%82%D8%A7%D9%88%D9%85%20%D9%84%D9%84%D9%85%D8%A7%D8%A1%20%D8%A8%D8%A7%D9%84%D9%83%D8%A7%D9%85%D9%84%20(IPX7)%20%E2%80%93%20%D8%AC%D9%87%D8%A7%D8%B2%20ZITRON%20%D9%84%D8%AA%D9%86%D8%B8%D9%8A%D9%81%20%D8%A7%D9%84%D8%A3%D8%B3%D9%86%D8%A7%D9%86%20%D8%A7%D9%84%D9%85%D8%A7%D8%A6%D9%8A.jpg') no-repeat center center/cover;
    padding: 6rem 0;
}

.cta-actions {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

/* Footer */
footer {
    background-color: var(--dark-color);
    color: var(--white);
    padding: 3rem 0;
    /* Increased padding */
}

/* Footer Styles */
.footer-content {
    margin-bottom: 2rem;
}

.company-desc {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: #ccc;
    /* Lighter text for dark bg */
}

.address {
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.social-icon {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: var(--transition);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.social-icon.fb {
    background: #1877F2;
}

.social-icon.insta {
    background: #E1306C;
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
}

.social-icon:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
}

.copyright-text {
    opacity: 0.6;
    font-size: 0.9rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1rem;
    margin-top: 1rem;
}

/* Media Queries */
@media (min-width: 768px) {
    .hero .container {
        grid-template-columns: 1fr 1fr;
    }

    .content-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .reverse-mobile {
        display: flex;
        flex-direction: column-reverse;
        gap: 2rem;
    }

    .content-grid {
        display: flex;
        flex-direction: column;
        gap: 2rem;
    }

    /* Ensure text comes first or second depending on design preference for mobile.
       Usually Text then Image is good, or Image then Text.
       The flex-direction 'column' puts first child on top.
       'reverse-mobile' puts second child on top.
    */

    .section-header h2 {
        font-size: 2rem;
    }
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-100 {
    transition-delay: 0.1s;
}

.delay-200 {
    transition-delay: 0.2s;
}

/* Animations */
@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }

    100% {
        transform: translateY(0px);
    }
}

@keyframes pulse-blue {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 86, 179, 0.7);
    }

    70% {
        box-shadow: 0 0 0 15px rgba(0, 86, 179, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(0, 86, 179, 0);
    }
}

@keyframes wave {
    0% {
        background-position-x: 0;
    }

    100% {
        background-position-x: 1000px;
    }
}

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

/* Water Wave Background for Blue Sections */
.bg-blue {
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, var(--primary-color) 0%, var(--primary-dark) 100%);
}

.bg-blue::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50px;
    background: url('data:image/svg+xml;utf8,<svg viewBox="0 0 1200 120" xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="none"><path d="M321.39,56.44c58-10.79,114.16-30.13,172-41.86,82.39-16.72,168.19-17.73,250.45-.39C823.78,31,906.67,72,985.66,92.83c70.05,18.48,146.53,26.09,214.34,3V0H0V27.35A600.21,600.21,0,0,0,321.39,56.44Z" fill="%23ffffff" fill-opacity="0.1"></path></svg>');
    background-size: 200% 100%;
    animation: wave 10s linear infinite;
    z-index: 1;
}

.bg-blue::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 30px;
    background: url('data:image/svg+xml;utf8,<svg viewBox="0 0 1200 120" xmlns="http://www.w3.org/2000/svg" preserveAspectRatio="none"><path d="M321.39,56.44c58-10.79,114.16-30.13,172-41.86,82.39-16.72,168.19-17.73,250.45-.39C823.78,31,906.67,72,985.66,92.83c70.05,18.48,146.53,26.09,214.34,3V0H0V27.35A600.21,600.21,0,0,0,321.39,56.44Z" fill="%23ffffff" fill-opacity="0.2"></path></svg>');
    background-size: 150% 100%;
    animation: wave 7s linear infinite reverse;
    z-index: 2;
}

/* Button Pulse functionality */
.btn-primary.pulse {
    animation: pulse-blue 2s infinite;
}

/* Enhanced Fade In */
.fade-in {
    opacity: 0;
    transform: translateY(40px) scale(0.95);
    transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Canvas Water Trail */
#water-trail {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    /* Below header, above content OR overlay? If overlay, verify clicks pass through */
    pointer-events: none;
    /* Crucial for clicks to pass through */
}

/* Icons Animation */
.feature-list li:hover .icon {
    transform: scale(1.1) rotate(10deg);
    background-color: #dbeaff;
    transition: var(--transition);
}

.icon {
    transition: var(--transition);
}

/* Header Action Styles */
.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

#lang-toggle {
    min-width: 80px;
}

/* LTR Adjustments */
html[dir="ltr"] {
    text-align: left;
}

html[dir="ltr"] .check-list li::before {
    margin-left: 0;
    margin-right: 10px;
}

html[dir="ltr"] .feature-list .icon {
    margin-left: 0;
    margin-right: 10px;
}

html[dir="ltr"] .box-list li {
    border-right: none;
    border-left: 4px solid var(--primary-color);
}