
:root {
    --primary: #0A2540;
    --secondary: #F5B700;
    --text-dark: #333333;
    --white: #ffffff;
    --light-bg: #f4f6f9;
    --font-en: 'Roboto', sans-serif;
    --font-ar: 'Cairo', sans-serif;
    --transition: all 0.3s ease;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: var(--font-en); color: var(--text-dark); line-height: 1.6; overflow-x: hidden; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }
img { max-width: 100%; height: auto; }
[dir="rtl"] body { font-family: var(--font-ar); direction: rtl; text-align: right; }
.topbar { background: var(--primary); color: var(--white); padding: 10px 0; font-size: 0.9rem; }
.topbar i { margin: 0 5px; color: var(--secondary); }
.social-icons a { margin: 0 8px; font-size: 1.1rem; }
.social-icons .fa-facebook-f { color: #1877F2; }
.social-icons .fa-instagram { color: #E4405F; }
.social-icons .fa-tiktok { color: #ffffff; }
.header-main { background: var(--white); box-shadow: 0 2px 10px rgba(0,0,0,0.1); position: sticky; top: 0; z-index: 1000; padding: 10px 0; }
.navbar { display: flex; justify-content: space-between; align-items: center; }
.logo-img { max-height: 80px; width: auto; }
.nav-links { display: flex; gap: 20px; }
.nav-links a { font-weight: 500; font-size: 1rem; color: var(--primary); }
.nav-links a:hover, .nav-links a.active { color: var(--secondary); }
.btn-quote { background: var(--secondary); color: var(--primary) !important; padding: 10px 20px; border-radius: 4px; font-weight: bold; }
.hamburger { display: none; font-size: 1.5rem; cursor: pointer; color: var(--primary); }
.hero { background: linear-gradient(rgba(10,37,64,0.9), rgba(10,37,64,0.8)), url('https://images.unsplash.com/photo-1504307651254-35680f356dfd?ixlib=rb-1.2.1&auto=format&fit=crop&w=1950&q=80'); background-size: cover; background-position: center; color: var(--white); padding: 140px 0; text-align: center; }
.hero h1 { font-size: 3rem; margin-bottom: 20px; font-weight: 800; }
.btn-hero { background: var(--secondary); color: var(--primary); padding: 15px 40px; font-weight: bold; border-radius: 4px; display: inline-block; margin-top: 20px; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section-padding { padding: 80px 0; }
.bg-light { background-color: var(--light-bg); }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(450px, 1fr)); gap: 40px; }
.service-card { background: var(--white); padding: 30px; border: 1px solid #eee; border-radius: 8px; transition: var(--transition); text-align: center; }
.service-card:hover { transform: translateY(-5px); border-bottom: 3px solid var(--secondary); box-shadow: 0 10px 20px rgba(0,0,0,0.05); }
.icon-box { font-size: 2.5rem; color: var(--secondary); margin-bottom: 20px; }

/* Product Gallery Styles */
.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; margin-top: 40px; }
.product-item { background: #fff; border-radius: 8px; overflow: hidden; box-shadow: 0 3px 10px rgba(0,0,0,0.1); transition: transform 0.3s; }
.product-item:hover { transform: scale(1.03); }
.product-item img { width: 100%; height: 200px; object-fit: cover; }
.product-item h4 { padding: 15px; text-align: center; color: var(--primary); font-size: 1.1rem; }

/* About Box Styles */
.about-box { background: var(--white); padding: 25px; border-radius: 8px; box-shadow: 0 2px 15px rgba(0,0,0,0.05); margin-bottom: 20px; height: 167px; }
.about-box h3 { color: var(--secondary); margin-bottom: 15px; display: flex; align-items: center; gap: 10px; }

footer { background: var(--primary); color: var(--white); padding: 60px 0 20px; margin-top: auto; }
.footer-contact p { margin-bottom: 10px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); margin-top: 40px; padding-top: 20px; text-align: center; font-size: 0.9rem; }
iframe { width: 100%; border: 0; border-radius: 8px; }
.form-control { width: 100%; padding: 12px; border: 1px solid #ccc; border-radius: 4px; margin-bottom: 15px; }
.btn-submit { background: var(--secondary); color: var(--primary); border: none; padding: 12px 30px; font-weight: bold; cursor: pointer; width: 100%; }

@media (max-width: 768px) {
    .nav-links { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; width: 100%; background: var(--white); padding: 20px; box-shadow: 0 5px 10px rgba(0,0,0,0.1); }
    .nav-links.active { display: flex; }
    .hamburger { display: block; }
    .topbar .container { flex-direction: column; gap: 10px; text-align: center; }
    .grid-2, .grid-3 { grid-template-columns: 1fr; }
}

/* --- New Contact Page Styles (Transly Match) --- */

/* 1. Page Header (Hero) */
.page-header {
    background: linear-gradient(rgba(10,37,64,0.85), rgba(10,37,64,0.85)), url('https://images.unsplash.com/photo-1497366216548-37526070297c?w=1920');
    background-size: cover;
    background-position: center;
    padding: 120px 0;
    text-align: center;
    color: #fff;
    margin-bottom: 80px; /* Space for floating cards */
}
.page-header h1 { font-size: 3rem; font-weight: 800; margin-bottom: 10px; }
.breadcrumb { color: var(--secondary); font-weight: bold; text-transform: uppercase; letter-spacing: 1px; }

/* 2. Info Cards (Floating) */
.contact-cards-container {
    margin-top: -100px; /* Pull up to overlap header */
    position: relative;
    z-index: 10;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 80px;
}
.contact-card {
    background: #fff;
    padding: 40px 30px;
    border-radius: 6px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    text-align: center;
    transition: 0.3s;
}
.contact-card:hover { transform: translateY(-10px); }
.contact-card i {
    font-size: 2.5rem;
    color: var(--secondary);
    margin-bottom: 20px;
    display: inline-block;
    background: rgba(245, 183, 0, 0.1);
    width: 80px; height: 80px;
    line-height: 80px;
    border-radius: 50%;
}
.contact-card h4 { font-size: 1.2rem; margin-bottom: 15px; color: var(--primary); font-weight: 700; }
.contact-card p { color: #666; font-size: 0.95rem; line-height: 1.6; margin: 0; }

/* 3. Form & Map Section */
.contact-section-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0; /* No gap for full merge style */
    background: #fff;
    box-shadow: 0 5px 30px rgba(0,0,0,0.05);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 80px;
}
.contact-form-wrapper { padding: 60px; background: #fff; }
.contact-map-wrapper { min-height: 500px; }
.contact-map-wrapper iframe { width: 100%; height: 100%; border: 0; }

.form-title { font-size: 2rem; color: var(--primary); margin-bottom: 10px; font-weight: 800; }
.form-subtitle { color: #888; margin-bottom: 30px; display: block; }

.form-group { margin-bottom: 20px; }
.form-group input, .form-group textarea {
    width: 100%;
    padding: 15px 20px;
    background: #f8f9fa;
    border: 1px solid #eee;
    border-radius: 4px;
    transition: 0.3s;
    font-family: inherit;
}
.form-group input:focus, .form-group textarea:focus {
    background: #fff;
    border-color: var(--secondary);
    outline: none;
    box-shadow: 0 0 10px rgba(245, 183, 0, 0.1);
}

/* Responsive */
@media (max-width: 992px) {
    .contact-cards-container { grid-template-columns: 1fr; margin-top: -50px; }
    .contact-section-split { grid-template-columns: 1fr; }
    .contact-map-wrapper { height: 400px; }
    .contact-form-wrapper { padding: 40px 20px; }
}

/* --- New Products Page Styles (Transly Projects Match) --- */

/* 1. Project/Product Card */
.projects-grid-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 60px;
}

.transly-card {
    position: relative;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.4s ease;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
}

.transly-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

.transly-card .img-box {
    position: relative;
    overflow: hidden;
    height: 280px; /* Fixed height for consistency */
}

.transly-card .img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.transly-card:hover .img-box img {
    transform: scale(1.1);
}

/* Content Box (Floating Style) */
.transly-card .content-box {
    position: relative;
    padding: 25px;
    background: #fff;
    border-top: 4px solid transparent;
    transition: 0.3s;
}

.transly-card:hover .content-box {
    border-top-color: var(--secondary);
}

.transly-card .tag {
    font-size: 0.85rem;
    text-transform: uppercase;
    color: #999;
    letter-spacing: 1px;
    margin-bottom: 10px;
    display: block;
    font-weight: 600;
}

.transly-card h3 {
    font-size: 1.3rem;
    color: var(--primary);
    margin: 0;
    font-weight: 700;
}

.transly-card .arrow-icon {
    position: absolute;
    bottom: 25px;
    right: 25px; /* LTR default */
    font-size: 1.2rem;
    color: var(--secondary);
    opacity: 0;
    transform: translateX(-10px);
    transition: 0.4s;
}

[dir="rtl"] .transly-card .arrow-icon {
    right: auto;
    left: 25px;
    transform: translateX(10px);
}

.transly-card:hover .arrow-icon {
    opacity: 1;
    transform: translateX(0);
}

/* 2. Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 50px;
}

.pagination a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #eee;
    color: var(--primary);
    font-weight: bold;
    transition: 0.3s;
}

.pagination a.active, .pagination a:hover {
    background: var(--secondary);
    color: var(--primary);
    border-color: var(--secondary);
}

/* Responsive */
@media (max-width: 992px) {
    .projects-grid-container { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .projects-grid-container { grid-template-columns: 1fr; }
}

/* --- New About Page Styles (Transly Match) --- */

/* 1. Who We Are (Split Section) */
.about-split-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-img-wrapper {
    position: relative;
    z-index: 1;
}

.about-img-wrapper img {
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    width: 100%;
    height: auto;
}

.about-img-wrapper::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px; /* LTR default */
    width: 100px;
    height: 100px;
    background: var(--secondary);
    z-index: -1;
    border-radius: 8px;
    opacity: 0.5;
}

[dir="rtl"] .about-img-wrapper::before {
    left: auto;
    right: -20px;
}

.about-content-wrapper .sub-title {
    color: var(--secondary);
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    margin-bottom: 10px;
    display: block;
}

.about-content-wrapper h2 {
    font-size: 2.2rem;
    color: var(--primary);
    margin-bottom: 20px;
    line-height: 1.3;
}

.about-content-wrapper p {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.8;
}

.checklist {
    margin-top: 20px;
}
.checklist li {
    position: relative;
    padding-left: 30px; /* LTR */
    margin-bottom: 12px;
    color: var(--text);
    font-weight: 500;
}
[dir="rtl"] .checklist li {
    padding-left: 0;
    padding-right: 30px;
}
.checklist li::before {
    content: '\f00c'; /* FontAwesome Check */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 2px;
    color: var(--secondary);
}
[dir="rtl"] .checklist li::before {
    left: auto;
    right: 0;
}

/* 2. Stats Bar */
.stats-section {
    background: var(--primary);
    color: #fff;
    padding: 60px 0;
    margin: 80px 0;
    position: relative;
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
}
.stat-item i {
    font-size: 2.5rem;
    color: var(--secondary);
    margin-bottom: 15px;
}
.stat-item .counter {
    font-size: 2.5rem;
    font-weight: 800;
    display: block;
    margin-bottom: 5px;
}
.stat-item span {
    font-size: 1rem;
    opacity: 0.8;
    text-transform: uppercase;
}

/* 3. Features/Values Cards */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
.transly-feature-card {
    background: #fff;
    padding: 40px 30px;
    border: 1px solid #eee;
    border-radius: 8px;
    transition: 0.3s;
    position: relative;
    overflow: hidden;
}
.transly-feature-card:hover {
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    border-color: var(--secondary);
    transform: translateY(-5px);
}
.transly-feature-card .icon-circle {
    width: 70px;
    height: 70px;
    background: #f8f9fa;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    transition: 0.3s;
}
.transly-feature-card:hover .icon-circle {
    background: var(--secondary);
}
.transly-feature-card i {
    font-size: 1.8rem;
    color: var(--primary);
    transition: 0.3s;
}
.transly-feature-card:hover i {
    color: #fff;
}
.transly-feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--primary);
}

/* Responsive */
@media (max-width: 992px) {
    .about-split-section { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
    .features-grid { grid-template-columns: 1fr; }
}

@media only screen and (max-width: 600px) {
.contact-info {
    display: none;
}
.nav-links .btn-quote {
    display: none !important;
}
}
