:root {
    --primary-color: #008080;
    /* Teal */
    --secondary-color: #1a2a44;
    /* Dark Navy */
    --accent-color: #00d4ff;
    /* Bright Cyan */
    --text-dark: #1f2937;
    --text-light: #f3f4f6;
    --bg-white: #ffffff;
    --bg-gray: #f8fafc;
    --card-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --navbar-height: 80px;
}

/* Reset and Global */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    overflow-x: hidden;
}

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

.main-content {
    /* BACKGROUND_TRANSPARENCY_30: 30% white overlay for a lighter look (75% white in current usage) */
    background: linear-gradient(rgba(255, 255, 255, 0.75), rgba(255, 255, 255, 0.75)), url('background3.png') repeat 0 0;
}

h1,
h2,
h3,
h4 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 100px 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    position: relative;
    color: var(--secondary-color);
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--primary-color);
    margin: 15px auto 0;
    border-radius: 2px;
}

/* Navbar */
.navbar {
    height: var(--navbar-height);
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo img {
    height: 45px;
    transition: var(--transition);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--primary-color);
}

.lang-switcher {
    display: flex;
    gap: 0.5rem;
}

.lang-btn {
    background: none;
    border: 1px solid #e2e8f0;
    padding: 4px 8px;
    font-size: 0.8rem;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

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

/* Hero Section */
.hero {
    height: 100vh;
    background: url('bckground1.png') no-repeat top center/cover;
    position: relative;
    display: flex;
    align-items: center;
    color: white;
    text-align: center;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(26, 42, 68, 0.9), rgba(26, 42, 68, 0.6));
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
    margin: 0 auto; /* Added to center the content block */
}

.hero-full-logo {
    height: 180px;
    margin: 0 auto 2rem; /* Added auto margins to center the block image */
    animation: fadeInDown 1s ease;
}

.hero h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    animation: fadeInUp 1s ease 0.2s forwards;
    opacity: 0;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    opacity: 0;
    animation: fadeInUp 1s ease 0.4s forwards;
}

.hero-btns {
    display: flex;
    gap: 1rem;
    justify-content: center;
    opacity: 0;
    animation: fadeInUp 1s ease 0.6s forwards;
}

/* Buttons */
.btn {
    padding: 12px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    display: inline-block;
    cursor: pointer;
    border: none;
}

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

.btn-primary:hover {
    background: #006666;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 128, 128, 0.3);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

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

/* Story Section */
.story-section {
    background: transparent;
    /* Shows global background3 with 30% transparency */
}



.story-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.story-text p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.stat-card {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: var(--card-shadow);
}

.stat-card h3 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

/* Product Section */
.product-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
}

.product-card {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 3rem;
    background: white;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    align-items: center;
}

.product-media {
    height: 100%;
    min-height: 400px;
    background: radial-gradient(circle at center, #f8fafc 0%, #e2e8f0 100%);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-media img,
.product-media video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    padding: 10px;
    transition: transform 0.5s ease;
}

.product-card:hover .product-media img,
.product-card:hover .product-media video {
    transform: scale(1.05);
}

.product-info {
    padding: 3rem;
}

.product-info h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

.features-list {
    list-style: none;
    margin-top: 1.5rem;
}

.features-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 0.8rem;
}

.features-list i {
    color: var(--primary-color);
}

/* API Promo Section */
.api-promo-section {
    background: transparent;
}

.api-promo-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    background: white;
    padding: 4rem;
    border-radius: 30px;
    box-shadow: var(--card-shadow);
    align-items: center;
}

.api-promo-content h2 {
    font-size: 2.5rem;
    margin: 1rem 0;
    color: var(--secondary-color);
}

.api-promo-content p {
    font-size: 1.1rem;
    color: #64748b;
    margin-bottom: 2rem;
}

.badge {
    background: var(--accent-color);
    color: var(--secondary-color);
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
}

.api-features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.api-feat {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-dark);
}

.api-feat i {
    color: var(--primary-color);
}

.terminal-mock {
    background: #0f172a;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.terminal-header {
    background: #1e293b;
    padding: 10px 15px;
    display: flex;
    gap: 8px;
}

.terminal-header .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #475569;
}

.terminal-header .dot:nth-child(1) { background: #ef4444; }
.terminal-header .dot:nth-child(2) { background: #f59e0b; }
.terminal-header .dot:nth-child(3) { background: #10b981; }

.terminal-mock pre {
    padding: 1.5rem;
    margin: 0;
    font-family: 'Fira Code', monospace;
    font-size: 0.9rem;
    color: #38bdf8;
    overflow-x: auto;
}

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

.team-card {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--card-shadow);
}

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

.member-img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    overflow: hidden;
    border: 4px solid var(--primary-color);
}

.member-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-card h3 {
    margin-bottom: 0.5rem;
}

.team-card .role {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    text-transform: uppercase;
}

.team-card .bio {
    font-size: 0.95rem;
    color: #64748b;
}

/* Clients Section */
.client-slider {
    overflow: hidden;
    padding: 2rem 0;
    background: white;
    position: relative;
}

.client-track {
    display: flex;
    width: calc(250px * 12);
    animation: scroll 30s linear infinite;
}

.client-logo {
    width: 250px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 700;
    font-family: 'Outfit', sans-serif;
    color: #cbd5e1;
    font-size: 1.5rem;
    filter: grayscale(1);
    transition: var(--transition);
}

.client-logo:hover {
    filter: grayscale(0);
    color: var(--secondary-color);
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-250px * 6));
    }
}

/* Join Section */
.join-card {
    background: linear-gradient(rgba(26, 42, 68, 0.4), rgba(0, 128, 128, 0.4));
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 5rem;
    border-radius: 40px;
    text-align: center;
    color: white;
}

.join-card h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.join-card p {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Contact Section */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info h3 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 2rem;
    font-size: 1.1rem;
}

.info-item i {
    color: var(--primary-color);
    font-size: 1.5rem;
}

.contact-form {
    background: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: var(--card-shadow);
}

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

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
}

.btn-block {
    width: 100%;
}

/* Demo Section */
.demo-section {
    background: linear-gradient(135deg, rgba(0, 212, 255, 0.1) 0%, rgba(0, 128, 128, 0.1) 100%);
}

.demo-card {
    background: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: var(--card-shadow);
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.demo-subtitle {
    font-size: 1.1rem;
    color: var(--text-dark);
    margin-bottom: 2rem;
}

.demo-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

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

.demo-form .form-group {
    margin-bottom: 0;
}

.demo-form .form-group input {
    width: 100%;
    padding: 15px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.demo-form .form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 128, 128, 0.1);
}

.demo-form button {
    margin-top: 1rem;
    padding: 15px 30px;
    font-size: 1rem;
}

/* Footer */
footer {
    background: var(--secondary-color);
    color: white;
    padding: 80px 0 30px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 50px;
}

.footer-logo img {
    height: 40px;
    margin-bottom: 10px;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: white;
    text-decoration: none;
    transition: var(--transition);
}

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

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    text-align: center;
    font-size: 0.9rem;
    color: #94a3b8;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

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

/* RTL Support */
body.lang-ar {
    direction: rtl;
    text-align: right;
}

body.lang-ar .nav-links {
    flex-direction: row-reverse;
}

body.lang-ar .features-list li i {
    margin-left: 10px;
}

/* Mobile Responsive */
@media (max-width: 992px) {
    .hero h1 {
        font-size: 3rem;
    }

    .story-content,
    .product-card,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .product-card {
        grid-template-rows: auto auto;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .section {
        padding: 60px 0;
    }
}