/* CSS Reset and Variables */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-teal: #4D908E;
    --turquoise: #2A9D8F;
    --bg-light: #F4F9F9;
    --accent: #E9F5F2;
    --dark-text: #264653;
    --link-hover: #1E7366;
    --white: #ffffff;
    --shadow-light: rgba(42, 157, 143, 0.1);
    --shadow-medium: rgba(42, 157, 143, 0.2);
    --shadow-strong: rgba(42, 157, 143, 0.3);
      --font-sans: 'Cairo', sans-serif;
       /* logo size limits */
  --logo-min: 80px;
  --logo-max: 200px;

}

/* Base Styles */
body {
    font-family: var(--font-sans);
    background: linear-gradient(135deg, var(--bg-light) 0%, var(--white) 100%);
    color: var(--primary-teal);
    line-height: 1.6;
    transition: all 0.3s ease;
}

[dir="rtl"] {
    text-align: right;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    box-shadow: 0 2px 20px var(--shadow-light);
    position: sticky;
    top: 0;
    z-index: 100;

   
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 2rem;
    font-weight: bold;
    color: var(--turquoise);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo i {
    background: linear-gradient(45deg, var(--turquoise), var(--primary-teal));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Language Switcher */
.lang-switcher {
    display: flex;
    gap: 10px;
}

/* make it clear which mode you're in */
#lang-toggle {
  padding: 0.5em 1em;
  background: var(--primary-teal);
  color: var(--white);
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s;
}
#lang-toggle:hover { background: var(--link-hover); }


.lang-btn.active,
.lang-btn:hover {
    background: var(--turquoise);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px var(--shadow-strong);
}

/* Main Content */
main {
    min-height: 80vh;
    display: flex;
    align-items: center;
    padding: 4rem 0;
}

/* Hero Section */
.hero {
    text-align: center;
    animation: fadeInUp 1s ease-out;
}

.construction-icon {
    font-size: 5rem;
    color: var(--turquoise);
    margin-bottom: 2rem;
    animation: bounce 2s infinite;
}

.hero h1 {
    font-size: clamp(2rem, 4vw, 3.5rem);
    color: var(--dark-text);
    margin-bottom: 1rem;
    font-weight: 700;
}

.hero .subtitle {
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    color: var(--primary-teal);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Progress Section */
.progress-section {
    background: var(--accent);
    padding: 2rem;
    border-radius: 15px;
    margin: 3rem 0;
    text-align: center;
}

.progress-section h3 {
    color: var(--dark-text);
    margin-bottom: 1rem;
}

.progress-bar {
    width: 100%;
    height: 20px;
    background: var(--white);
    border-radius: 10px;
    overflow: hidden;
    margin: 1rem 0;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--turquoise), var(--primary-teal));
    width: 0%;
    animation: fillProgress 3s ease-out forwards;
    animation-delay: 0.5s;
}

/* Services Section */
.services {
    margin: 4rem 0;
}

.services h2 {
    text-align: center;
    color: var(--dark-text);
    margin-bottom: 3rem;
    font-size: 2.5rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.service-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px var(--shadow-light);
    transition: all 0.3s ease;
    border: 1px solid var(--accent);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px var(--shadow-medium);
}

.service-card h3 {
    color: var(--turquoise);
    margin-bottom: 1rem;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.service-card ul {
    list-style: none;
}

.service-card li {
    color: var(--primary-teal);
    margin-bottom: 0.5rem;
    padding-left: 20px;
    position: relative;
}

.service-card li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--turquoise);
    font-weight: bold;
}

/* Footer Styles */
footer {
    background: var(--dark-text);
    color: var(--white);
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    color: var(--turquoise);
    margin-bottom: 1rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 0.5rem;
    color: var(--white);
}

.contact-item i {
    color: var(--turquoise);
    width: 20px;
}

.contact-item a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: var(--turquoise);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--primary-teal);
    color: var(--primary-teal);
}

/* Content Visibility for Language Switching */
.content[data-lang]:not(.active) {
    display: none;
}

.content[data-lang].active {
    display: block;
}

/* RTL Specific Styles */
[dir="rtl"] .service-card li {
    padding-right: 20px;
    padding-left: 0;
}

[dir="rtl"] .service-card li::before {
    right: 0;
    left: auto;
}

[dir="rtl"] .contact-item {
    flex-direction: row-reverse;
}

[dir="rtl"] .logo {
    flex-direction: row-reverse;
}

/* Keyframe Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-20px);
    }
    60% {
        transform: translateY(-10px);
    }
}

@keyframes fillProgress {
    to {
        width: 75%;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    [dir="rtl"] .footer-content {
        text-align: center;
    }

    .lang-switcher {
        flex-direction: column;
        gap: 5px;
    }

    .lang-btn {
        padding: 6px 12px;
        font-size: 0.9rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .construction-icon {
        font-size: 3rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .service-card {
        padding: 1.5rem;
    }

    .progress-section {
        padding: 1.5rem;
    }

    nav {
        flex-direction: column;
        gap: 1rem;
    }
}