/* Base Variables & Setup */
:root {
    --primary-red: #E30613; 
    --text-dark: #1A1A1A;
    --text-light: #5A5A5A;
    --bg-white: #FFFFFF;
    --teal-light: #79C7C5; 
    --teal-bg: #EAF5F5;
    --teal-lightest: #F2FAFA;
}

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

html {
    scroll-behavior: smooth;
}

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

.container {
    max-width: 1250px;
    margin: 0 auto;
    padding: 0 20px;
}

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

/* Typography */
h1, h2, h3, h4 {
    font-weight: 800;
    color: var(--text-dark);
}

p {
    color: var(--text-light);
}

/* Buttons */
.btn-primary {
    display: inline-block;
    background-color: var(--primary-red);
    color: #fff;
    padding: 12px 35px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 1.1rem;
    transition: background 0.3s ease;
}

.btn-primary:hover {
    background-color: #C00510;
}

.text-link {
    color: var(--teal-light);
    font-weight: 700;
    display: inline-block;
    margin-top: 15px;
}

.text-link:hover {
    color: #5BA8A8;
    text-decoration: underline;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: var(--bg-white);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

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

.nav-right, .nav-left {
    display: flex;
    align-items: center;
    gap: 30px;
}

.logo img {
    height: 40px;
    object-fit: contain;
}

.main-links {
    display: flex;
    gap: 25px;
}

.main-links a {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-dark);
    transition: color 0.3s;
}

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

.track-link {
    color: var(--primary-red) !important;
    font-weight: 800;
}

.lang-link {
    font-weight: 600;
    color: var(--text-light);
}

.login-link {
    font-weight: 700;
}

/* Hero Section */
.hero {
    padding-top: 150px;
    padding-bottom: 80px;
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
}

.hero-text {
    flex: 1;
    max-width: 500px;
}

.hero-text h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 25px;
}

.hero-text p {
    font-size: 1.1rem;
    margin-bottom: 40px;
    color: var(--text-light);
}

.hero-image {
    flex: 1;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-graphic-bg {
    position: absolute;
    width: 450px;
    height: 450px;
    background-color: var(--teal-bg);
    clip-path: polygon(20% 0%, 100% 20%, 80% 100%, 0% 80%);
    z-index: -1;
}

.hero-main-img {
    max-width: 100%;
    max-height: 500px;
    object-fit: contain;
}

/* Features Section */
.features-section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.2rem;
}

.features-layout {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.center-graphic {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    z-index: 0;
}

.illustration-placeholder {
    width: 100%;
    height: 100%;
    position: relative;
}

.illustration-placeholder .box {
    position: absolute;
    border: 2px solid var(--text-dark);
    background: #fff;
}
.illustration-placeholder .box-1 {
    width: 120px; height: 120px;
    bottom: 20px; left: 20px;
}
.illustration-placeholder .box-2 {
    width: 150px; height: 100px;
    top: 40px; right: 20px;
}
.illustration-placeholder .shield {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    font-size: 80px;
    z-index: 2;
}

.features-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 50px;
    z-index: 1;
}

.right-col {
    padding-left: 150px; 
}

.left-col {
    padding-right: 150px; 
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    text-align: right;
}

.left-col .feature-item {
    flex-direction: column;
    text-align: right;
}

.feature-icon {
    color: var(--primary-red);
    width: 32px;
    height: 32px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

.feature-icon svg {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: var(--primary-red);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.feature-content h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.feature-content p {
    font-size: 0.95rem;
    line-height: 1.7;
}

/* Stats Section */
.stats-section {
    padding: 80px 0;
}

.stats-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.stat-shape {
    background-color: var(--teal-light);
    color: #fff;
    width: 250px;
    height: 250px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.shape-1 {
    clip-path: polygon(0 20%, 100% 0, 100% 80%, 0 100%);
}

.shape-2 {
    clip-path: polygon(0 0, 100% 20%, 100% 100%, 0 80%);
    background-color: #69BDBD;
    transform: translateY(-20px);
}

.shape-3 {
    clip-path: polygon(0 20%, 100% 0, 100% 100%, 0 80%);
}

.shape-4 {
    clip-path: polygon(0 0, 100% 20%, 100% 80%, 0 100%);
    background-color: #69BDBD;
    transform: translateY(-20px);
}

.stat-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.stat-number {
    font-size: 2.2rem;
    font-weight: 900;
}

.stat-label {
    font-size: 1.2rem;
    font-weight: 700;
}

/* Business Types Section */
.business-types-section {
    padding: 60px 0;
}

.business-card {
    background-color: var(--teal-lightest);
    border-radius: 30px;
    padding: 80px 40px;
    text-align: center;
}

.business-card .section-title {
    margin-bottom: 60px;
}

.business-cols {
    display: flex;
    justify-content: center;
    gap: 60px;
    max-width: 900px;
    margin: 0 auto;
}

.b-col {
    flex: 1;
    text-align: right;
}

.b-icon {
    font-size: 2.5rem;
    color: var(--primary-red);
    margin-bottom: 20px;
}

.b-col h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

/* Trusted Section */
.trusted-section {
    padding: 60px 0;
    text-align: center;
}

.trusted-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 40px;
    margin-top: 40px;
}

.t-logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: #A0A0A0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Bottom CTA Section */
.bottom-cta-section {
    padding: 80px 0 100px;
    text-align: center;
}

.cta-illustration {
    display: flex;
    justify-content: center;
    margin-bottom: 50px;
}

.bottom-graphic {
    width: 500px;
    height: 250px;
    position: relative;
    border-bottom: 2px solid var(--text-dark);
}

/* Minimalistic shapes for the CTA graphic */
.b-laptop {
    position: absolute;
    width: 200px; height: 140px;
    border: 3px solid var(--text-dark);
    background: #fff;
    left: 50%; bottom: 0;
    transform: translateX(-50%);
    border-radius: 8px 8px 0 0;
}
.b-laptop::after {
    content: '';
    position: absolute;
    bottom: -10px; left: -20px; right: -20px;
    height: 10px;
    background: #fff;
    border: 3px solid var(--text-dark);
    border-radius: 4px;
}
.b-truck {
    position: absolute;
    width: 120px; height: 80px;
    border: 3px solid var(--text-dark);
    background: #fff;
    right: 30px; bottom: 0;
    border-radius: 12px 12px 0 0;
}
.b-boxes {
    position: absolute;
    width: 80px; height: 80px;
    border: 3px solid var(--text-dark);
    background: #fff;
    left: 50px; bottom: 0;
}

.bottom-cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 40px;
}

/* Mega Footer */
.mega-footer {
    background-color: var(--teal-lightest);
    padding: 80px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr repeat(4, 1fr) 1fr;
    gap: 30px;
    margin-bottom: 60px;
}

.f-col h4 {
    font-size: 1.2rem;
    margin-bottom: 25px;
    color: var(--text-dark);
}

.f-col a {
    display: block;
    color: var(--text-light);
    margin-bottom: 12px;
    font-weight: 600;
    transition: color 0.3s;
}

.f-col a:hover {
    color: var(--primary-red);
}

.logo-col img {
    height: 40px;
    margin-bottom: 20px;
}

.track-col {
    text-align: left;
}

.track-btn {
    display: inline-block;
    color: var(--text-dark) !important;
    font-weight: 800 !important;
    border-bottom: 2px solid var(--text-dark);
    padding-bottom: 5px;
}

.footer-bottom-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    border-top: 1px solid #E0E0E0;
    color: var(--text-light);
    font-weight: 600;
}

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

.social-links a {
    color: var(--text-dark);
    font-weight: 800;
}

/* Responsive */
@media (max-width: 1024px) {
    .features-layout {
        flex-direction: column;
    }
    .center-graphic {
        position: relative;
        left: auto; top: auto;
        transform: none;
        margin: 40px auto;
    }
    .right-col, .left-col {
        padding: 0;
    }
    .left-col .feature-item {
        flex-direction: row;
        text-align: right;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .hero-container {
        flex-direction: column;
        text-align: center;
    }
    .nav-right nav, .nav-left {
        display: none;
    }
    .hero-text h1 {
        font-size: 2.5rem;
    }
    .stat-shape {
        width: 200px; height: 200px;
        clip-path: none !important;
        border-radius: 12px;
        transform: none !important;
    }
    .business-cols {
        flex-direction: column;
        text-align: center;
    }
    .b-col {
        text-align: center;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    .logo-col, .track-col {
        grid-column: span 2;
    }
    .footer-bottom-bar {
        flex-direction: column;
        gap: 20px;
    }
}
