/* ================================================
   SAMA GREEN - Complete Stylesheet
   Powering a Sustainable Future
   ================================================ */

/* ============ ROOT VARIABLES ============ */
:root {
    /* Green Palette - Deep & Lush */
    --green-50: #ecfdf5;
    --green-100: #d1fae5;
    --green-200: #a7f3d0;
    --green-300: #6ee7b7;
    --green-400: #34d399;
    --green-500: #10b981;
    --green-600: #059669;
    --green-700: #047857;
    --green-800: #065f46;
    --green-900: #064e3b;
    --green-950: #022c22;

    /* Accent colors */
    --gold: #f59e0b;
    --gold-light: #fbbf24;

    /* Neutrals */
    --white: #ffffff;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #064e3b 0%, #059669 50%, #34d399 100%);
    --gradient-hero: linear-gradient(135deg, #022c22 0%, #064e3b 30%, #047857 60%, #059669 100%);
    --gradient-dark: linear-gradient(135deg, #022c22 0%, #064e3b 100%);
    --gradient-light: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    --gradient-card: linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(16,185,129,0.05) 100%);
    --gradient-text: linear-gradient(135deg, #34d399 0%, #10b981 50%, #059669 100%);

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1);
    --shadow-2xl: 0 25px 50px -12px rgba(0,0,0,0.25);
    --shadow-green: 0 10px 40px rgba(5,150,105,0.3);
    --shadow-green-lg: 0 20px 60px rgba(5,150,105,0.4);

    /* Typography */
    --font-primary: 'Poppins', sans-serif;
    --font-display: 'Playfair Display', serif;

    /* Spacing */
    --section-padding: 100px 0;
    --container-width: 1280px;

    /* Transitions */
    --transition: all 0.3s ease;
    --transition-slow: all 0.5s ease;

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 30px;
    --radius-full: 50%;
}

/* ============ RESET & BASE ============ */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: hidden;
}

body {
    font-family: var(--font-primary);
    color: var(--gray-700);
    line-height: 1.7;
    background: var(--white);
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: var(--section-padding);
    position: relative;
}

/* ============ PRELOADER ============ */
#preloader {
    position: fixed;
    inset: 0;
    background: var(--gradient-hero);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

#preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader {
    text-align: center;
    color: var(--white);
}

.loader .sun-icon {
    font-size: 60px;
    color: var(--gold);
    animation: spin 2s linear infinite;
}

.loader p {
    margin-top: 20px;
    font-size: 14px;
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: 0.8;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ============ BUTTONS ============ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: var(--radius-xl);
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 15px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    white-space: nowrap;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow: var(--shadow-green);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-green-lg);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255,255,255,0.4);
    backdrop-filter: blur(10px);
}

.btn-outline:hover {
    background: rgba(255,255,255,0.15);
    border-color: var(--white);
    transform: translateY(-3px);
}

.btn-lg {
    padding: 16px 36px;
    font-size: 16px;
}

.btn-sm {
    padding: 8px 20px;
    font-size: 13px;
    background: var(--gradient-primary);
    color: var(--white);
    border-radius: var(--radius-xl);
}

.btn-sm:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-green);
}

.btn-full {
    width: 100%;
    justify-content: center;
}

.btn-nav {
    background: var(--gradient-primary);
    color: var(--white);
    padding: 10px 24px;
    font-size: 14px;
    border-radius: var(--radius-xl);
}

.btn-nav:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-green);
}

/* ============ SECTION HEADERS ============ */
.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: var(--green-50);
    color: var(--green-700);
    border-radius: var(--radius-xl);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 16px;
    border: 1px solid var(--green-200);
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-title {
    font-family: var(--font-display);
    font-size: 42px;
    font-weight: 800;
    color: var(--green-900);
    margin-bottom: 16px;
    line-height: 1.2;
}

.section-subtitle {
    font-size: 17px;
    color: var(--gray-500);
    line-height: 1.8;
}

/* ============ NAVBAR ============ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-lg);
    padding: 12px 0;
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    color: var(--white);
    font-weight: 300;
}

.nav-logo strong {
    font-weight: 800;
}

.nav-logo i {
    font-size: 28px;
    color: var(--green-400);
}

.navbar.scrolled .nav-logo {
    color: var(--green-900);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-link {
    padding: 8px 14px;
    color: rgba(255,255,255,0.85);
    font-size: 14px;
    font-weight: 500;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--white);
    background: rgba(255,255,255,0.15);
}

.navbar.scrolled .nav-link {
    color: var(--gray-600);
}

.navbar.scrolled .nav-link:hover,
.navbar.scrolled .nav-link.active {
    color: var(--green-700);
    background: var(--green-50);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.hamburger span {
    width: 25px;
    height: 2px;
    background: var(--white);
    transition: var(--transition);
    border-radius: 2px;
}

.navbar.scrolled .hamburger span {
    background: var(--green-900);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ============ HERO SECTION ============ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-gradient {
    position: absolute;
    inset: 0;
    background: var(--gradient-hero);
}

.hero-particles {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.particle {
    position: absolute;
    border-radius: var(--radius-full);
    background: rgba(52, 211, 153, 0.15);
    animation: float-particle linear infinite;
}

@keyframes float-particle {
    0% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(-100px) rotate(720deg); opacity: 0; }
}

.hero-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    padding-top: 100px;
    padding-bottom: 80px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: rgba(52, 211, 153, 0.15);
    color: var(--green-300);
    border: 1px solid rgba(52, 211, 153, 0.3);
    border-radius: var(--radius-xl);
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 24px;
    backdrop-filter: blur(10px);
}

.hero-text h1 {
    font-family: var(--font-display);
    font-size: 58px;
    font-weight: 900;
    color: var(--white);
    line-height: 1.15;
    margin-bottom: 24px;
}

.text-gradient {
    background: linear-gradient(135deg, var(--green-300), var(--gold-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-text p {
    font-size: 18px;
    color: rgba(255,255,255,0.8);
    line-height: 1.8;
    margin-bottom: 36px;
    max-width: 540px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    gap: 40px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 36px;
    font-weight: 800;
    color: var(--white);
    display: inline;
}

.stat-suffix {
    font-size: 20px;
    font-weight: 700;
    color: var(--green-300);
}

.stat-label {
    display: block;
    font-size: 13px;
    color: rgba(255,255,255,0.6);
    margin-top: 4px;
}

/* Hero Visual */
.hero-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-image-wrapper {
    position: relative;
    width: 450px;
    height: 450px;
}

.hero-img-circle {
    width: 400px;
    height: 400px;
    border-radius: var(--radius-full);
    overflow: hidden;
    border: 6px solid rgba(52, 211, 153, 0.3);
    box-shadow: 0 0 80px rgba(16, 185, 129, 0.3);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.hero-img-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.floating-card {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 22px;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: var(--radius-md);
    color: var(--white);
    font-size: 14px;
    font-weight: 600;
    z-index: 3;
    animation: float 6s ease-in-out infinite;
}

.floating-card i {
    font-size: 20px;
    color: var(--gold);
}

.card-1 { top: 10%; left: -20px; animation-delay: 0s; }
.card-2 { bottom: 20%; right: -30px; animation-delay: 2s; }
.card-3 { bottom: 5%; left: 0; animation-delay: 4s; }

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

.hero-wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    z-index: 3;
}

.hero-wave svg {
    width: 100%;
    height: 120px;
    display: block;
}

/* ============ ABOUT SECTION ============ */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 80px;
    align-items: center;
}

.about-images {
    position: relative;
}

.about-img-main {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-2xl);
}

.about-img-main img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    transition: var(--transition-slow);
}

.about-img-main:hover img {
    transform: scale(1.05);
}

.about-img-secondary {
    position: absolute;
    bottom: -30px;
    right: -30px;
    width: 200px;
    height: 200px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 6px solid var(--white);
    box-shadow: var(--shadow-xl);
}

.about-img-secondary img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about-experience-badge {
    position: absolute;
    top: -20px;
    right: -20px;
    width: 120px;
    height: 120px;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--white);
    box-shadow: var(--shadow-green-lg);
    border: 4px solid var(--white);
}

.exp-number {
    font-size: 32px;
    font-weight: 800;
    line-height: 1;
}

.exp-text {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
    margin-top: 4px;
}

.about-content .section-tag {
    margin-bottom: 16px;
}

.about-content .section-title {
    text-align: left;
}

.about-desc {
    font-size: 17px;
    color: var(--gray-600);
    line-height: 1.9;
    margin-bottom: 32px;
}

.vision-mission {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 32px;
}

.vm-card {
    padding: 24px;
    background: var(--gradient-light);
    border-radius: var(--radius-md);
    border: 1px solid var(--green-200);
    transition: var(--transition);
}

.vm-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.vm-icon {
    width: 45px;
    height: 45px;
    background: var(--gradient-primary);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 18px;
    margin-bottom: 14px;
}

.vm-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--green-900);
    margin-bottom: 8px;
}

.vm-card p {
    font-size: 14px;
    color: var(--gray-500);
    line-height: 1.7;
}

.values-strip h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--green-900);
    margin-bottom: 12px;
}

.values-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.values-tags span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--white);
    border: 1px solid var(--green-200);
    border-radius: var(--radius-xl);
    font-size: 13px;
    font-weight: 500;
    color: var(--green-700);
    transition: var(--transition);
}

.values-tags span:hover {
    background: var(--green-600);
    color: var(--white);
    border-color: var(--green-600);
    transform: translateY(-2px);
}

.values-tags span i {
    color: var(--green-500);
}

.values-tags span:hover i {
    color: var(--white);
}

/* ============ SERVICES SECTION ============ */
.services-section {
    background: var(--gray-50);
    overflow: hidden;
}

.section-bg-pattern {
    position: absolute;
    top: 0;
    right: 0;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(16,185,129,0.08) 0%, transparent 70%);
    border-radius: var(--radius-full);
    pointer-events: none;
}

.section-bg-pattern.reverse {
    left: 0;
    right: auto;
}

.services-tabs {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.tab-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: var(--white);
    border: 2px solid var(--green-200);
    border-radius: var(--radius-xl);
    font-family: var(--font-primary);
    font-size: 15px;
    font-weight: 600;
    color: var(--gray-600);
    cursor: pointer;
    transition: var(--transition);
}

.tab-btn:hover {
    border-color: var(--green-400);
    color: var(--green-700);
}

.tab-btn.active {
    background: var(--gradient-primary);
    color: var(--white);
    border-color: transparent;
    box-shadow: var(--shadow-green);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.service-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    text-align: center;
    border: 1px solid var(--green-100);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
    border-color: var(--green-300);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-icon {
    width: 70px;
    height: 70px;
    background: var(--gradient-light);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 28px;
    color: var(--green-600);
    transition: var(--transition);
}

.service-card:hover .service-icon {
    background: var(--gradient-primary);
    color: var(--white);
    transform: scale(1.1) rotate(5deg);
}

.service-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--green-900);
    margin-bottom: 12px;
}

.service-card p {
    font-size: 14px;
    color: var(--gray-500);
    line-height: 1.7;
    margin-bottom: 20px;
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    color: var(--green-600);
}

.service-link:hover {
    color: var(--green-800);
    gap: 10px;
}

/* ============ PROJECTS SECTION ============ */
.project-filters {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 24px;
    background: var(--white);
    border: 2px solid var(--green-200);
    border-radius: var(--radius-xl);
    font-family: var(--font-primary);
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-600);
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn:hover {
    border-color: var(--green-400);
    color: var(--green-700);
}

.filter-btn.active {
    background: var(--gradient-primary);
    color: var(--white);
    border-color: transparent;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.project-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--white);
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.project-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.project-card.hidden {
    display: none;
}

.project-img {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.project-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.project-card:hover .project-img img {
    transform: scale(1.1);
}

.project-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(6,78,59,0.8), transparent);
    display: flex;
    align-items: flex-end;
    padding: 20px;
    opacity: 0;
    transition: var(--transition);
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-category {
    padding: 6px 16px;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    color: var(--white);
    border-radius: var(--radius-xl);
    font-size: 13px;
    font-weight: 600;
}

.project-info {
    padding: 24px;
}

.project-info h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--green-900);
    margin-bottom: 10px;
}

.project-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 10px;
}

.project-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--green-600);
    font-weight: 500;
}

.project-info p {
    font-size: 14px;
    color: var(--gray-500);
    line-height: 1.7;
}

/* ============ PRODUCTS SECTION ============ */
.products-section {
    background: var(--gray-50);
    overflow: hidden;
}

/* Latest Products Grid (Homepage) */
.latest-products-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

@media (max-width: 1200px) {
    .latest-products-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 1024px) {
    .latest-products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .latest-products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }
}

@media (max-width: 480px) {
    .latest-products-grid {
        grid-template-columns: 1fr;
    }
}

.latest-products-grid .product-card .product-info h3 {
    font-size: 15px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.latest-products-grid .product-card .product-info p {
    font-size: 13px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.latest-products-grid .product-img {
    height: 180px;
}

.product-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    position: relative;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.product-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 6px 14px;
    background: var(--green-600);
    color: var(--white);
    border-radius: var(--radius-xl);
    font-size: 12px;
    font-weight: 700;
    z-index: 2;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-badge.new {
    background: var(--gold);
}

.product-img {
    height: 220px;
    overflow: hidden;
}

.product-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.product-card:hover .product-img img {
    transform: scale(1.08);
}

.product-info {
    padding: 24px;
}

.product-category {
    font-size: 12px;
    font-weight: 600;
    color: var(--green-600);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.product-info h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--green-900);
    margin: 8px 0;
}

.product-info p {
    font-size: 14px;
    color: var(--gray-500);
    line-height: 1.6;
    margin-bottom: 16px;
}

.product-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.product-price {
    font-size: 20px;
    font-weight: 800;
    color: var(--green-700);
}

.products-cta {
    text-align: center;
    margin-top: 20px;
}

/* ============ ENGINEERING SECTION ============ */
.engineering-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 80px;
    align-items: center;
}

.engineering-content .section-tag {
    margin-bottom: 16px;
}

.engineering-content .section-title {
    text-align: left;
}

.engineering-content > p {
    font-size: 17px;
    color: var(--gray-600);
    line-height: 1.8;
    margin-bottom: 36px;
}

.process-steps {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.step {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 20px;
    background: var(--white);
    border-radius: var(--radius-md);
    border: 1px solid var(--green-100);
    transition: var(--transition);
}

.step:hover {
    border-color: var(--green-400);
    box-shadow: var(--shadow-md);
    transform: translateX(10px);
}

.step-number {
    width: 50px;
    height: 50px;
    min-width: 50px;
    background: var(--gradient-light);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 800;
    color: var(--green-700);
    transition: var(--transition);
}

.step:hover .step-number {
    background: var(--gradient-primary);
    color: var(--white);
}

.step-content h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--green-900);
    margin-bottom: 4px;
}

.step-content p {
    font-size: 14px;
    color: var(--gray-500);
}

.engineering-visual {
    position: relative;
}

.engineering-img {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-2xl);
}

.engineering-img img {
    width: 100%;
    height: 600px;
    object-fit: cover;
}

.engineering-badge {
    position: absolute;
    bottom: 30px;
    left: -30px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 28px;
    background: var(--gradient-primary);
    color: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-green-lg);
    font-size: 16px;
    font-weight: 700;
}

.engineering-badge i {
    font-size: 24px;
    color: var(--gold);
}

/* ============ SUSTAINABILITY SECTION ============ */
.sustainability-section {
    background: var(--gradient-dark);
    color: var(--white);
}

.sustainability-section .section-tag {
    background: rgba(52,211,153,0.15);
    color: var(--green-300);
    border-color: rgba(52,211,153,0.3);
}

.sustainability-section .section-title {
    color: var(--white);
}

.sustainability-section .section-subtitle {
    color: rgba(255,255,255,0.7);
}

.impact-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 60px;
}

.impact-card {
    text-align: center;
    padding: 40px 24px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

.impact-card:hover {
    background: rgba(255,255,255,0.1);
    transform: translateY(-5px);
    border-color: rgba(52,211,153,0.4);
}

.impact-icon {
    font-size: 40px;
    color: var(--green-400);
    margin-bottom: 16px;
}

.impact-number {
    font-size: 48px;
    font-weight: 800;
    color: var(--white);
    display: block;
    line-height: 1;
}

.impact-unit {
    font-size: 16px;
    font-weight: 600;
    color: var(--green-400);
    display: block;
    margin-bottom: 8px;
}

.impact-card p {
    font-size: 14px;
    color: rgba(255,255,255,0.7);
}

.why-choose {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-lg);
    padding: 50px;
    backdrop-filter: blur(10px);
}

.why-choose h3 {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 800;
    text-align: center;
    margin-bottom: 30px;
}

.choose-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.choose-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: rgba(255,255,255,0.05);
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.choose-item:hover {
    background: rgba(52,211,153,0.15);
    transform: translateX(5px);
}

.choose-item i {
    font-size: 20px;
    color: var(--green-400);
    flex-shrink: 0;
}

.choose-item span {
    font-size: 15px;
    font-weight: 500;
    color: rgba(255,255,255,0.9);
}

/* ============ CTA SECTION ============ */
.cta-section {
    position: relative;
    padding: 100px 0;
    overflow: hidden;
}

.cta-bg {
    position: absolute;
    inset: 0;
}

.cta-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cta-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(6,78,59,0.92), rgba(5,150,105,0.88));
}

.cta-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.cta-content h2 {
    font-family: var(--font-display);
    font-size: 38px;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 20px;
    line-height: 1.3;
}

.cta-content p {
    font-size: 18px;
    color: rgba(255,255,255,0.85);
    margin-bottom: 36px;
}

/* ============ CAREERS SECTION ============ */
.careers-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 80px;
    align-items: center;
}

.careers-content .section-tag {
    margin-bottom: 16px;
}

.careers-content .section-title {
    text-align: left;
}

.careers-content > p {
    font-size: 17px;
    color: var(--gray-600);
    line-height: 1.8;
    margin-bottom: 30px;
}

.career-positions {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 30px;
}

.position-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 24px;
    background: var(--gray-50);
    border: 1px solid var(--green-100);
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.position-card:hover {
    border-color: var(--green-400);
    box-shadow: var(--shadow-md);
    transform: translateX(8px);
}

.position-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    background: var(--gradient-light);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--green-600);
    font-size: 20px;
}

.position-info h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--green-900);
}

.position-info p {
    font-size: 13px;
    color: var(--gray-500);
}

.position-tag {
    margin-left: auto;
    padding: 4px 14px;
    background: var(--green-50);
    color: var(--green-700);
    border-radius: var(--radius-xl);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid var(--green-200);
}

.careers-visual {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-2xl);
}

.careers-visual img {
    width: 100%;
    height: 600px;
    object-fit: cover;
}

/* ============ BLOG SECTION ============ */
.blog-section {
    background: var(--gray-50);
    overflow: hidden;
}

.blog-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 30px;
}

.blog-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.blog-card.featured .blog-img {
    height: 350px;
}

.blog-img {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.blog-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.blog-card:hover .blog-img img {
    transform: scale(1.08);
}

.blog-tag {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 6px 14px;
    background: var(--green-600);
    color: var(--white);
    border-radius: var(--radius-xl);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.blog-content {
    padding: 24px;
}

.blog-meta {
    display: flex;
    gap: 16px;
    margin-bottom: 12px;
}

.blog-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--gray-400);
}

.blog-content h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--green-900);
    margin-bottom: 10px;
    line-height: 1.4;
}

.blog-card.featured .blog-content h3 {
    font-size: 22px;
}

.blog-content p {
    font-size: 14px;
    color: var(--gray-500);
    line-height: 1.7;
    margin-bottom: 16px;
}

.blog-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    color: var(--green-600);
}

.blog-link:hover {
    color: var(--green-800);
    gap: 10px;
}

/* ============ CONTACT SECTION ============ */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-card {
    padding: 24px;
    background: var(--gradient-light);
    border-radius: var(--radius-md);
    border: 1px solid var(--green-200);
    transition: var(--transition);
}

.contact-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.contact-icon {
    width: 48px;
    height: 48px;
    background: var(--gradient-primary);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 18px;
    margin-bottom: 12px;
}

.contact-card h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--green-900);
    margin-bottom: 8px;
}

.contact-card p {
    font-size: 14px;
    color: var(--gray-600);
    line-height: 1.6;
}

.contact-social h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--green-900);
    margin-bottom: 14px;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-links a {
    width: 44px;
    height: 44px;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 16px;
    transition: var(--transition);
}

.social-links a:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: var(--shadow-green);
}

.contact-form-wrapper {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--green-100);
}

.contact-form h3 {
    font-size: 24px;
    font-weight: 700;
    color: var(--green-900);
    margin-bottom: 24px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 8px;
}

.form-group label i {
    color: var(--green-500);
    font-size: 12px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    background: var(--gray-50);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-md);
    font-family: var(--font-primary);
    font-size: 15px;
    color: var(--gray-800);
    transition: var(--transition);
    outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--green-400);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(16,185,129,0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* ============ FOOTER ============ */
.footer {
    background: var(--gradient-dark);
    color: var(--white);
    position: relative;
    padding-top: 80px;
}

.footer-wave {
    position: absolute;
    top: -1px;
    left: 0;
    right: 0;
}

.footer-wave svg {
    width: 100%;
    height: 80px;
    display: block;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 50px;
    padding-bottom: 50px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    color: var(--white);
    font-weight: 300;
    margin-bottom: 16px;
}

.footer-logo strong {
    font-weight: 800;
}

.footer-logo i {
    font-size: 28px;
    color: var(--green-400);
}

.footer-brand p {
    font-size: 14px;
    color: rgba(255,255,255,0.6);
    line-height: 1.8;
    margin-bottom: 20px;
}

.footer-social {
    display: flex;
    gap: 10px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 16px;
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--green-500);
    transform: translateY(-3px);
}

.footer-links h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--white);
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links a {
    font-size: 14px;
    color: rgba(255,255,255,0.6);
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-links a::before {
    content: '';
    width: 0;
    height: 2px;
    background: var(--green-400);
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--white);
    padding-left: 6px;
}

.footer-links a:hover::before {
    width: 12px;
}

.footer-newsletter h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 12px;
}

.footer-newsletter p {
    font-size: 14px;
    color: rgba(255,255,255,0.6);
    line-height: 1.7;
    margin-bottom: 16px;
}

.newsletter-form {
    display: flex;
    gap: 0;
}

.newsletter-form input {
    flex: 1;
    padding: 14px 18px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: var(--radius-md) 0 0 var(--radius-md);
    color: var(--white);
    font-family: var(--font-primary);
    font-size: 14px;
    outline: none;
    transition: var(--transition);
}

.newsletter-form input::placeholder {
    color: rgba(255,255,255,0.4);
}

.newsletter-form input:focus {
    border-color: var(--green-400);
    background: rgba(255,255,255,0.15);
}

.newsletter-form button {
    padding: 14px 20px;
    background: var(--green-500);
    border: none;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    color: var(--white);
    cursor: pointer;
    transition: var(--transition);
}

.newsletter-form button:hover {
    background: var(--green-400);
}

.footer-bottom {
    padding: 24px 0;
    text-align: center;
}

.footer-bottom p {
    font-size: 14px;
    color: rgba(255,255,255,0.5);
}

/* ============ BACK TO TOP ============ */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    color: var(--white);
    border: none;
    border-radius: var(--radius-full);
    font-size: 18px;
    cursor: pointer;
    box-shadow: var(--shadow-green);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition);
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-green-lg);
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1200px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-text h1 {
        font-size: 48px;
    }
}

@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-text p {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .hero-visual {
        display: none;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .engineering-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .engineering-visual {
        order: -1;
    }

    .careers-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .careers-visual {
        order: -1;
    }

    .careers-visual img {
        height: 400px;
    }

    .blog-grid {
        grid-template-columns: 1fr 1fr;
    }

    .blog-card.featured {
        grid-column: span 2;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }

    .impact-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .choose-grid {
        grid-template-columns: 1fr 1fr;
    }

    .nav-menu {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(2,44,34,0.97);
        backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 10px;
        z-index: 998;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-menu .nav-link {
        font-size: 20px;
        padding: 12px 24px;
        color: var(--white);
    }

    .hamburger {
        display: flex;
        z-index: 999;
    }

    .btn-nav {
        display: none;
    }

    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 70px 0;
    }

    .section-title {
        font-size: 32px;
    }

    .hero-text h1 {
        font-size: 36px;
    }

    .hero-stats {
        flex-direction: column;
        gap: 20px;
    }

    .stat-item {
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .stat-label {
        display: inline;
        margin-top: 0;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .vision-mission {
        grid-template-columns: 1fr;
    }

    .impact-grid {
        grid-template-columns: 1fr 1fr;
    }

    .choose-grid {
        grid-template-columns: 1fr;
    }

    .blog-grid {
        grid-template-columns: 1fr;
    }

    .blog-card.featured {
        grid-column: span 1;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .cta-content h2 {
        font-size: 28px;
    }

    .engineering-img img {
        height: 400px;
    }

    .about-img-main img {
        height: 350px;
    }

    .why-choose {
        padding: 30px 20px;
    }
}

@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 30px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-buttons .btn {
        justify-content: center;
    }

    .services-tabs {
        flex-direction: column;
        align-items: stretch;
    }

    .tab-btn {
        justify-content: center;
    }

    .impact-grid {
        grid-template-columns: 1fr;
    }

    .contact-form-wrapper {
        padding: 24px;
    }

    .impact-number {
        font-size: 36px;
    }
}

/* ============ UTILITY / ANIMATIONS ============ */
.text-center { text-align: center; }

/* Smooth reveal for filtered items */
.project-card {
    transition: all 0.4s ease;
}

/* Glow effect for dark sections */
.sustainability-section::before {
    content: '';
    position: absolute;
    top: -200px;
    right: -200px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(16,185,129,0.15) 0%, transparent 60%);
    pointer-events: none;
}

.sustainability-section::after {
    content: '';
    position: absolute;
    bottom: -200px;
    left: -200px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(52,211,153,0.1) 0%, transparent 60%);
    pointer-events: none;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--gray-100);
}

::-webkit-scrollbar-thumb {
    background: var(--green-400);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--green-600);
}

/* Selection color */
::selection {
    background: var(--green-300);
    color: var(--green-950);
}

/* ============ LANGUAGE SWITCHER ============ */
.lang-switcher {
    position: relative;
}

.lang-current {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: var(--radius-sm);
    color: var(--white);
    font-family: var(--font-primary);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    backdrop-filter: blur(10px);
}

.lang-current:hover {
    background: rgba(255,255,255,0.25);
}

.navbar.scrolled .lang-current {
    background: var(--green-50);
    border-color: var(--green-200);
    color: var(--green-800);
}

.lang-current .fa-chevron-down {
    font-size: 10px;
    transition: var(--transition);
}

.lang-switcher.open .fa-chevron-down {
    transform: rotate(180deg);
}

.lang-code {
    font-size: 12px;
    letter-spacing: 0.5px;
}

.lang-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: var(--white);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--gray-200);
    min-width: 160px;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: var(--transition);
    z-index: 1001;
}

[dir="rtl"] .lang-dropdown {
    right: auto;
    left: 0;
}

.lang-switcher.open .lang-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-700);
    transition: var(--transition);
}

.lang-option:hover {
    background: var(--green-50);
    color: var(--green-700);
}

.lang-option.active {
    background: var(--green-600);
    color: var(--white);
}

/* ============ RTL SUPPORT ============ */
[dir="rtl"] {
    font-family: 'Cairo', 'Poppins', sans-serif;
}

[dir="rtl"] .section-title,
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3, [dir="rtl"] h4 {
    font-family: 'Cairo', var(--font-display), sans-serif;
}

[dir="rtl"] .about-content .section-title,
[dir="rtl"] .engineering-content .section-title,
[dir="rtl"] .careers-content .section-title {
    text-align: right;
}

[dir="rtl"] .hero-text {
    text-align: right;
}

[dir="rtl"] .hero-buttons {
    justify-content: flex-start;
}

[dir="rtl"] .hero-text p {
    margin-left: 0;
    margin-right: 0;
}

[dir="rtl"] .about-img-secondary {
    right: auto;
    left: -30px;
}

[dir="rtl"] .about-experience-badge {
    right: auto;
    left: -20px;
}

[dir="rtl"] .service-link i,
[dir="rtl"] .blog-link i {
    transform: scaleX(-1);
}

[dir="rtl"] .step:hover {
    transform: translateX(-10px);
}

[dir="rtl"] .position-card:hover {
    transform: translateX(-8px);
}

[dir="rtl"] .choose-item:hover {
    transform: translateX(-5px);
}

[dir="rtl"] .engineering-badge {
    left: auto;
    right: -30px;
}

[dir="rtl"] .position-tag {
    margin-left: 0;
    margin-right: auto;
}

[dir="rtl"] .footer-links a:hover {
    padding-left: 0;
    padding-right: 6px;
}

[dir="rtl"] .footer-links a::before {
    order: 1;
}

[dir="rtl"] .newsletter-form input {
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

[dir="rtl"] .newsletter-form button {
    border-radius: var(--radius-md) 0 0 var(--radius-md);
}

[dir="rtl"] .floating-card {
    animation-name: float-rtl;
}

[dir="rtl"] .card-1 { left: auto; right: -20px; }
[dir="rtl"] .card-2 { right: auto; left: -30px; }
[dir="rtl"] .card-3 { left: auto; right: 0; }

@keyframes float-rtl {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

[dir="rtl"] .btn {
    flex-direction: row-reverse;
}

[dir="rtl"] .btn i {
    order: -1;
}

[dir="rtl"] .hero-badge {
    flex-direction: row-reverse;
}

[dir="rtl"] .project-meta span,
[dir="rtl"] .blog-meta span {
    flex-direction: row-reverse;
}

[dir="rtl"] .values-tags span {
    flex-direction: row-reverse;
}

[dir="rtl"] .nav-logo {
    flex-direction: row-reverse;
}

@media (max-width: 1024px) {
    [dir="rtl"] .hero-content {
        text-align: center;
    }
    [dir="rtl"] .hero-buttons {
        justify-content: center;
    }
}
