/* Base Styles - no more imports */

/* Base Styles */
:root {
    --primary-color: #15B392;
    --secondary-color: #6c757d;
    --dark-color: #343a40;
    --light-color: #f8f9fa;
    --section-bg-light: #f8f9fa;
    --section-bg-dark: #15b3911a;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
    --website-direction: ltr;
}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Cairo', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: var(--background-light);
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: var(--transition);
}

a:hover {
    color: var(--dark-color);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    position: relative;
    padding-bottom: 15px;
    color: var(--text-primary);
}

.section-header h2::after {
    content: '';
    position: absolute;
    width: 50px;
    height: 3px;
    background-color: var(--primary-color);
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
}

.section-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-top: 10px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 4px;
    font-weight: 500;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn-sm {
    padding: 8px 20px;
    font-size: 0.9rem;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--section-bg-light);
    color: var(--white);
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--primary-color);
    color: white;
}

/* Header & Navigation */
header {
    background-color: white;
    box-shadow: var(--box-shadow);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 15px;
}

.logo a {
    color: var(--dark-color);
    font-weight: 700;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo img {
    height: 40px;
    width: auto;
}

nav ul {
    display: flex;
}

nav ul li {
    margin-left: 30px;
}

nav ul li a {
    color: var(--dark-color);
    font-weight: 500;
    position: relative;
}

nav ul li a::after {
    content: '';
    position: absolute;
    width: 0%;
    height: 2px;
    background-color: var(--primary-color);
    bottom: -5px;
    left: 0;
    transition: var(--transition);
}

nav ul li a:hover::after,
nav ul li a.active::after {
    width: 100%;
}

/* Navigation toggle for mobile */
.nav-toggle {
    display: none;
}

.nav-toggle-label {
    display: none;
}

.content-wrapper {
    padding-top: 80px; /* Header height */
}


/* RTL Support */
[dir="rtl"] {
    direction: rtl;
    text-align: right;
}

[dir="rtl"] nav ul li {
    margin-left: 0;
    margin-right: 30px;
}

[dir="rtl"] .social-button i {
    margin-right: 0;
    margin-left: 15px;
}

[dir="rtl"] .service-includes i {
    margin-right: 0;
    margin-left: 10px;
}

[dir="rtl"] .contact-item i {
    margin-right: 0;
    margin-left: 20px;
}

/* Alternating section backgrounds */
section:nth-child(odd) {
    background-color: var(--section-bg-light);
}

section:nth-child(even) {
    background-color: var(--section-bg-dark);
}

/* Media Queries */
@media (max-width: 992px) {
    .hero .container {
        flex-direction: column-reverse;
        text-align: center;
    }
    
    .hero-content, .hero-image {
        flex: none;
        width: 100%;
        margin-bottom: 30px;
    }
    
    .about-content,
    .contact-content {
        flex-direction: column;
    }
    
    .about-image, .about-text {
        flex: none;
        width: 100%;
    }
}

@media (max-width: 768px) {
    header .container {
        flex-direction: column;
        padding: 5px;
    }

    .content-wrapper {
        padding-top: 100px; /* Mobile header height */
    }
    
    
    .logo {
        margin-bottom: 15px;
    }
    
    /* Hide menu toggle elements */
    .nav-toggle-label,
    .nav-toggle {
        display: none;
    }
    
    /* Make navigation always visible */
    nav {
        position: relative;
        width: 100%;
        background: white;
        box-shadow: none;
    }
    
    nav ul {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        padding: 0;
        margin: 0;
    }
    
    nav ul li {
        margin: 5px 10px;
        text-align: center;
        padding: 0;
    }
    
    nav ul li a {
        display: block;
        padding: 1px 0;
        font-size: 0.9rem; /* Slightly smaller text on mobile */
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .portfolio-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
}
