* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
    color: #333;
    line-height: 1.6;
    background: #f5f5f5;
}

[dir="rtl"] body {
    font-family: 'Cairo', sans-serif;
    text-align: right;
}

[dir="rtl"] .social-links a {
    margin-left: 0;
    margin-right: 15px;
}

[dir="rtl"] .logo-img {
    margin-right: 0;
    margin-left: 15px;
}

[dir="rtl"] nav ul li {
    margin-left: 0;
    margin-right: 30px;
}

[dir="rtl"] nav ul li a::after {
    left: auto;
    right: 0;
}

[dir="rtl"] .footer-column h4::after {
    left: auto;
    right: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Top Bar */
.top-bar {
    background: #1a1a2e;
    color: #fff;
    padding: 10px 0;
    font-size: 13px;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar a {
    color: #ffd700;
    text-decoration: none;
}

.top-bar a:hover {
    text-decoration: underline;
}

.social-links a {
    color: #fff;
    margin-left: 15px;
    font-size: 14px;
}

.social-links a:hover {
    color: #ffd700;
}

/* Header */
header {
    background: #fff;
    padding: 20px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-img {
    height: 60px;
    width: auto;
    margin-right: 15px;
    border-radius: 8px;
    /* Filter to match theme green #22c55e */
    /* filter: grayscale(100%) sepia(100%) hue-rotate(100deg) saturate(400%) brightness(0.9); */
}

.logo-text h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 22px;
    color: #1a1a2e;
    font-weight: 700;
}

.logo-text p {
    font-size: 11px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Navigation */
nav ul {
    list-style: none;
    display: flex;
}

nav ul li {
    margin-left: 30px;
}

nav ul li a {
    text-decoration: none;
    color: #333;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 10px 0;
    position: relative;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: #22c55e;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #22c55e;
    transition: width 0.3s;
}

nav ul li a:hover::after {
    width: 100%;
}

.header-cta {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: #fff;
    padding: 12px 25px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.header-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(34, 197, 94, 0.4);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.9), rgba(22, 33, 62, 0.9)),
        url('../images/hero-bg.jpg') center/cover;
    color: #fff;
    padding: 120px 0;
    text-align: center;
}

.hero h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero h2 span {
    color: #ffd700;
}

.hero p {
    font-size: 18px;
    max-width: 700px;
    margin: 0 auto 30px;
    opacity: 0.9;
}

.hero-btns {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.btn-primary {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: #fff;
    padding: 15px 35px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(34, 197, 94, 0.4);
}

.btn-secondary {
    background: transparent;
    color: #fff;
    padding: 15px 35px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 2px solid #fff;
    transition: all 0.3s;
}

.btn-secondary:hover {
    background: #fff;
    color: #1a1a2e;
}

/* Stats */
.stats {
    background: #fff;
    padding: 40px 0;
    margin-top: -50px;
    position: relative;
    z-index: 10;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    margin-left: 50px;
    margin-right: 50px;
}

.stats .container {
    display: flex;
    justify-content: space-around;
    text-align: center;
}

.stat-item h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 42px;
    color: #22c55e;
    font-weight: 700;
}

.stat-item p {
    color: #666;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 36px;
    color: #1a1a2e;
    margin-bottom: 15px;
}

.section-header p {
    color: #666;
    font-size: 16px;
    max-width: 600px;
    margin: 0 auto;
}

.section-header .line {
    width: 60px;
    height: 3px;
    background: #22c55e;
    margin: 20px auto 0;
}

/* Services Section */
.services {
    padding: 80px 0;
    background: #fff;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.service-card {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 30px 20px;
    text-align: center;
    transition: all 0.3s;
    border: 1px solid #eee;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: #22c55e;
}

.service-card i {
    font-size: 50px;
    color: #22c55e;
    margin-bottom: 20px;
}

.service-card h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    color: #1a1a2e;
    margin-bottom: 10px;
}

.service-card p {
    font-size: 13px;
    color: #666;
}

/* Portfolio Section */
.portfolio {
    padding: 80px 0;
    background: #f5f5f5;
}

.filter-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-tab {
    background: #fff;
    border: 2px solid #ddd;
    padding: 10px 25px;
    border-radius: 25px;
    cursor: pointer;
    font-family: 'Open Sans', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #666;
    transition: all 0.3s;
}

.filter-tab:hover,
.filter-tab.active {
    background: #22c55e;
    border-color: #22c55e;
    color: #fff;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.portfolio-item {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s;
}

.portfolio-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.portfolio-image {
    height: 200px;
    background: #f0f0f0;
    position: relative;
    overflow: hidden;
}

.portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.portfolio-item:hover .portfolio-image img {
    transform: scale(1.1);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(34, 197, 94, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-overlay i {
    color: #fff;
    font-size: 30px;
}

.portfolio-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #1a1a2e;
    color: #ffd700;
    padding: 5px 12px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    z-index: 2;
}

.portfolio-info {
    padding: 20px;
}

.portfolio-category {
    font-size: 11px;
    color: #22c55e;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.portfolio-name {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    color: #1a1a2e;
    font-weight: 600;
    margin-bottom: 8px;
    height: 40px;
    overflow: hidden;
}

.portfolio-specs {
    font-size: 12px;
    color: #888;
}

/* About Section */
.about {
    padding: 80px 0;
    background: #fff;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-content h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 36px;
    color: #1a1a2e;
    margin-bottom: 20px;
}

.about-content h2 span {
    color: #22c55e;
}

.about-content p {
    color: #666;
    margin-bottom: 20px;
    text-align: justify;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 30px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.feature-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #22c55e, #16a34a);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 20px;
    flex-shrink: 0;
}

.feature-text h4 {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    color: #1a1a2e;
    margin-bottom: 5px;
}

.feature-text p {
    font-size: 13px;
    color: #666;
    margin: 0;
}

.about-image {
    position: relative;
}

.about-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.about-card {
    position: absolute;
    background: #fff;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.about-card.card-1 {
    bottom: -30px;
    left: -30px;
}

.about-card.card-2 {
    top: -30px;
    right: -30px;
}

.about-card h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 36px;
    color: #22c55e;
}

.about-card p {
    font-size: 13px;
    color: #666;
    margin: 0;
}

/* Contact Section */
.contact {
    padding: 80px 0;
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    color: #fff;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 60px;
    max-width: 800px;
    margin: 0 auto;
}

.contact-info h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 36px;
    margin-bottom: 20px;
}

.contact-info>p {
    opacity: 0.8;
    margin-bottom: 30px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 25px;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #ffd700;
}

.contact-text h4 {
    font-size: 16px;
    margin-bottom: 5px;
}

.contact-text p {
    font-size: 14px;
    opacity: 0.8;
    margin: 0;
}



/* Footer */
footer {
    background: #0f0f1a;
    color: #fff;
    padding: 60px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand .logo {
    margin-bottom: 20px;
}

.footer-brand p {
    color: #aaa;
    font-size: 14px;
    line-height: 1.8;
}

.footer-column h4 {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-column h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: #22c55e;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #aaa;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #22c55e;
}

.footer-bottom {
    border-top: 1px solid #222;
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    color: #666;
    font-size: 13px;
}

.footer-bottom .tax-info {
    color: #ffd700;
    font-size: 13px;
}

/* Responsive */
@media (max-width: 1024px) {

    .services-grid,
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {

    .top-bar .container,
    header .container {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }

    nav ul li {
        margin: 5px 15px;
    }

    .hero h2 {
        font-size: 32px;
    }

    .stats .container {
        flex-direction: column;
        gap: 30px;
    }

    .stats {
        margin-left: 20px;
        margin-right: 20px;
    }

    .services-grid,
    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }


}