:root {
    --bg-primary: #111827; /* Dark Gray - Modern & Sleek */
    --bg-secondary: #1F2937; /* Slightly Lighter Dark */
    --bg-accent: #374151; /* Accent Dark */
    
    --text-primary: #F9FAFB; /* Off-White */
    --text-secondary: #D1D5DB; /* Lighter Gray */
    --text-muted: #9CA3AF; /* Muted Gray */

    --accent-primary: #3B82F6; /* Vibrant Blue - Example Accent */
    /* Alternative Accents:
       --accent-primary: #F59E0B; // Amber
       --accent-primary: #10B981; // Emerald
    */
    --accent-secondary: #60A5FA; /* Lighter Blue */

    --border-color: #374151; /* Dark Border */
    
    --shadow-color: rgba(0, 0, 0, 0.5); /* Shadow for dark theme */
    --shadow-sm: 0 2px 4px var(--shadow-color);
    --shadow-md: 0 4px 8px var(--shadow-color);
    --shadow-lg: 0 10px 20px var(--shadow-color);

    --border-radius-base: 0.5rem; /* 8px */
    --border-radius-lg: 0.75rem; /* 12px */
    --border-radius-xl: 1rem; /* 16px */

    --transition-bezier: cubic-bezier(0.4, 0, 0.2, 1);
    --transition-duration: 0.3s;
    --transition-smooth: all var(--transition-duration) var(--transition-bezier);

    --font-body: 'Manrope', 'system-ui', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    --font-heading: 'Inter', 'system-ui', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px; /* Adjust for header */
    font-size: 16px; /* Base font size */
}

body {
    font-family: var(--font-body);
    line-height: 1.7;
    color: var(--text-secondary);
    background-color: var(--bg-primary);
    direction: rtl;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--text-primary);
    margin-bottom: 1rem;
    line-height: 1.3;
    font-weight: 700; /* Bold headings for impact */
}

h1 { font-size: clamp(2.5rem, 5.5vw, 4.25rem); letter-spacing: -0.025em; }
h2 { font-size: clamp(2rem, 4.5vw, 3.25rem); letter-spacing: -0.02em; }
h3 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); letter-spacing: -0.015em; }
h4 { font-size: clamp(1.25rem, 2.5vw, 1.75rem); font-weight: 600; }

p {
    margin-bottom: 1.5rem;
    font-size: clamp(1rem, 1.8vw, 1.125rem); /* Slightly larger base p */
}
p.lead {
    font-size: clamp(1.125rem, 2.2vw, 1.375rem);
    color: var(--text-primary);
    font-weight: 400;
}

a {
    text-decoration: none;
    color: var(--accent-primary);
    transition: color var(--transition-duration) ease;
}
a:hover {
    color: var(--accent-secondary);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: var(--border-radius-lg); /* Consistent larger radius */
}

.container {
    width: 90%;
    max-width: 1280px; /* Wider for modern feel */
    margin: 0 auto;
    padding: 0 1rem;
}

section {
    padding: clamp(4rem, 10vw, 6rem) 0; /* Responsive padding */
    overflow: hidden; 
}
/* No alternating background for a cleaner dark theme */

.section-title {
    text-align: center;
    margin-bottom: clamp(2.5rem, 6vw, 4rem);
}
.section-title h2 {
    margin-bottom: 0.75rem;
}
.section-title p.subtitle {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto 1rem auto;
}
.section-title .decorator { /* Modern decorator line */
    display: block;
    width: 80px;
    height: 4px;
    background: var(--accent-primary);
    margin: 0.5rem auto 0;
    border-radius: 2px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 1.75rem; /* 14px 28px */
    background-color: var(--accent-primary);
    color: var(--text-primary);
    border: 1px solid transparent;
    border-radius: var(--border-radius-base);
    font-weight: 600;
    font-size: 1rem;
    text-transform: none; /* Modern buttons often don't uppercase */
    letter-spacing: 0.01em;
    transition: var(--transition-smooth);
    box-shadow: 0 1px 2px rgba(0,0,0,0.05), 0 2px 4px rgba(var(--accent-primary),0.2); /* Subtle shadow */
    cursor: pointer;
}
.btn:hover {
    background-color: var(--accent-secondary);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1), 0 2px 6px rgba(var(--accent-primary),0.3);
}
.btn-secondary {
    background-color: var(--bg-accent);
    color: var(--text-primary);
}
.btn-secondary:hover {
    background-color: var(--border-color); /* Slightly lighter */
}
.btn-outline {
    background-color: transparent;
    color: var(--accent-primary);
    border: 1px solid var(--accent-primary);
    box-shadow: none;
}
.btn-outline:hover {
    background-color: rgba(var(--accent-primary), 0.1); /* Slight bg tint on hover */
    color: var(--accent-secondary);
    border-color: var(--accent-secondary);
}
.btn-whatsapp {
    background-color: #25D366;
    color: white;
}
.btn-whatsapp:hover {
    background-color: #1DA851;
    color: white;
}
.btn svg {
    margin-left: 0.5rem; /* 8px */
    width: 1.25em; /* Relative to font size */
    height: 1.25em;
}


/* === HEADER & NAVIGATION === */
header {
    background-color: rgba(17, 24, 39, 0.85); /* var(--bg-primary) with opacity */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 1rem 0; /* 16px */
    position: fixed;
    top: 0; left: 0; width: 100%;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
    transition: background-color var(--transition-duration) ease, padding var(--transition-duration) ease;
}
/* No header-scrolled specific style for now, consistent look */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo {
    font-size: 1.75rem; /* 28px */
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.05em;
}
.logo span { color: var(--accent-primary); }

nav ul { list-style: none; display: flex; align-items: center; }
nav ul li { margin-right: 1.5rem; /* 24px */ }
nav ul li:last-child { margin-right: 0; }
nav ul li a {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.9375rem; /* 15px */
    padding: 0.5rem 0; /* 8px */
    position: relative;
}
nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0; /* For RTL */
    width: 0;
    height: 2px;
    background: var(--accent-primary);
    border-radius: 1px;
    transition: width var(--transition-duration) var(--transition-bezier);
}
nav ul li a:hover::after,
nav ul li a.active::after { width: 100%; }
nav ul li a:hover,
nav ul li a.active { color: var(--text-primary); }

.menu-toggle {
    display: none;
    font-size: 1.75rem; /* 28px */
    color: var(--text-primary);
    cursor: pointer;
    background: none; border: none; padding: 0.25rem; /* 4px */
}

/* === HERO SECTION === */
.hero {
    background: linear-gradient(rgba(17, 24, 39, 0.6), rgba(17, 24, 39, 0.9)), url('https://images.unsplash.com/photo-1600585152915-d208bec867a1?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1920&q=85&ar=16:9') no-repeat center center/cover; /* Modern villa, ensure aspect ratio */
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 80px; /* Header offset */
    position: relative;
}
.hero-content {
    max-width: 900px; /* Wider hero content */
    animation: fadeInScaleUp 1s var(--transition-bezier) 0.2s forwards;
    opacity: 0;
}
@keyframes fadeInScaleUp {
    from { opacity: 0; transform: scale(0.95) translateY(10px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}
.hero h1 {
    color: var(--text-primary);
    text-shadow: 0 2px 10px rgba(0,0,0,0.5); /* More pronounced shadow */
}
.hero h1 span { color: var(--accent-primary); }
.hero p.lead {
    color: var(--text-secondary);
    max-width: 700px;
    margin: 1.5rem auto 2.5rem auto; /* More space */
}
.hero-buttons {
    display: flex;
    gap: 1rem; /* 16px */
    justify-content: center;
    flex-wrap: wrap;
}
.hero-buttons .btn {
    padding: 1rem 2rem; /* 16px 32px */
    font-size: 1.0625rem; /* 17px */
}
.whatsapp-icon-svg { fill: currentColor; width: 1.25em; height: 1.25em; margin-left: 0.625em; }


/* === ABOUT US SECTION === */
.about-content {
    display: grid;
    grid-template-columns: 1fr; /* Single column for text for modern focus */
    gap: 2rem; /* 32px */
    align-items: center;
}
@media (min-width: 768px) { /* Two columns on larger screens */
    .about-content { grid-template-columns: repeat(2, 1fr); gap: 3rem; }
}
.about-text h3 { margin-bottom: 1.5rem; }
.about-text ul { list-style: none; padding: 0; margin-top: 1.5rem; }
.about-text ul li {
    padding-right: 1.75rem; /* 28px */
    position: relative;
    margin-bottom: 0.75rem; /* 12px */
    font-size: 1.0625rem; /* 17px */
    color: var(--text-secondary);
}
.about-text ul li::before {
    content: ''; /* Modern checkmark using SVG or border trick */
    position: absolute;
    right: 0; top: 0.4em;
    width: 0.6em; height: 0.3em; /* Adjust for checkmark size */
    border-left: 2px solid var(--accent-primary);
    border-bottom: 2px solid var(--accent-primary);
    transform: rotate(-45deg);
}
.about-image-container {
    position: relative;
    border-radius: var(--border-radius-xl); /* Larger radius */
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}
.about-image-container img {
    border-radius: var(--border-radius-xl);
    transition: transform 0.6s var(--transition-bezier);
}
.about-image-container:hover img {
    transform: scale(1.08);
}

/* === SERVICES SECTION === */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem; /* 24px */
}
.service-card {
    background-color: var(--bg-secondary);
    padding: 2rem 1.5rem; /* 32px 24px */
    border-radius: var(--border-radius-lg);
    transition: var(--transition-smooth);
    border: 1px solid var(--border-color);
    position: relative; /* For pseudo-elements if needed */
    overflow: hidden;
}
.service-card:hover {
    transform: translateY(-0.5rem); /* 8px */
    box-shadow: 0 8px 25px rgba(0,0,0,0.25);
    border-color: var(--accent-primary);
}
.service-icon-wrapper { /* Wrapper for icon */
    margin-bottom: 1.5rem; /* 24px */
    display: inline-flex; /* To contain icon */
    padding: 0.75rem; /* 12px */
    background-color: var(--bg-accent);
    border-radius: 50%;
    transition: var(--transition-smooth);
}
.service-card:hover .service-icon-wrapper {
    background-color: var(--accent-primary);
}
.service-icon-wrapper svg { /* Use actual SVG icons here */
    width: 2rem; /* 32px */
    height: 2rem;
    color: var(--accent-primary);
    transition: color var(--transition-duration) ease;
}
.service-card:hover .service-icon-wrapper svg {
    color: var(--text-primary);
}
.service-card h3 {
    color: var(--text-primary);
    margin-bottom: 0.75rem; /* 12px */
    font-size: 1.375rem; /* 22px */
}
.service-card p {
    font-size: 0.9375rem; /* 15px */
    color: var(--text-muted);
    line-height: 1.6;
}


/* === PROJECTS SECTION === */
.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem; /* 24px */
}
.project-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius-lg);
    background-color: var(--bg-secondary);
    box-shadow: var(--shadow-md);
    transition: transform 0.4s var(--transition-bezier), box-shadow 0.4s var(--transition-bezier);
}
.project-item:hover {
    transform: translateY(-5px) scale(1.01);
    box-shadow: var(--shadow-lg);
}
.project-item img {
    width: 100%;
    height: 280px; /* Consistent height */
    object-fit: cover;
    transition: transform 0.6s var(--transition-bezier), opacity 0.4s ease;
    border-radius: var(--border-radius-lg) var(--border-radius-lg) 0 0; /* Radius only top */
}
.project-item:hover img {
    transform: scale(1.1);
    /* opacity: 0.7; // Optional: Dim image on hover */
}
.project-content { /* Content below image */
    padding: 1.25rem; /* 20px */
}
.project-content h4 {
    color: var(--text-primary);
    margin-bottom: 0.25rem; /* 4px */
    font-size: 1.25rem; /* 20px */
}
.project-content p {
    color: var(--text-muted);
    font-size: 0.875rem; /* 14px */
    margin-bottom: 0;
}
/* Optional: Overlay on hover if preferred */
/* .project-item .project-overlay { ... } */


/* === WHY CHOOSE US SECTION === */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem; /* 24px */
}
.feature-item {
    background-color: var(--bg-secondary);
    padding: 1.5rem; /* 24px */
    border-radius: var(--border-radius-lg);
    display: flex;
    flex-direction: column; /* Icon on top */
    align-items: flex-start;
    gap: 1rem; /* 16px */
    transition: var(--transition-smooth);
    border: 1px solid var(--border-color);
}
.feature-item:hover {
    border-color: var(--accent-primary);
    transform: translateY(-3px);
}
.feature-icon-wrapper {
    padding: 0.625rem; /* 10px */
    background-color: var(--bg-accent);
    border-radius: 50%;
    display: inline-flex;
}
.feature-icon-wrapper svg { /* Use actual SVGs */
    width: 1.75rem; /* 28px */
    height: 1.75rem;
    color: var(--accent-primary);
}
.feature-item h4 {
    color: var(--text-primary);
    margin-bottom: 0.5rem; /* 8px */
    font-size: 1.1875rem; /* 19px */
}
.feature-item p {
    font-size: 0.9375rem; /* 15px */
    margin-bottom: 0;
    color: var(--text-muted);
}

/* === CALL TO ACTION SECTION === */
.cta-section {
    background-color: var(--bg-secondary); /* Use secondary bg for variety */
    text-align: center;
    padding: clamp(3.5rem, 8vw, 5rem) 0;
    border-radius: var(--border-radius-xl); /* Rounded CTA section */
    margin: 0 auto; /* Center if container not full width */
    /* max-width: 1100px; // Optional: constrain width of CTA */
}
.cta-section h2 {
    color: var(--text-primary);
    margin-bottom: 1rem;
}
.cta-section p {
    color: var(--text-secondary);
    margin-bottom: 2rem; /* 32px */
    max-width: 650px;
    margin-left: auto; margin-right: auto;
    font-size: 1.125rem; /* 18px */
}
.cta-section .btn {
    padding: 0.875rem 2rem; /* 14px 32px */
    font-size: 1.0625rem; /* 17px */
}


/* === CONTACT SECTION === */
.contact-content {
    display: grid;
    grid-template-columns: 1fr; /* Single column for mobile */
    gap: 2rem; /* 32px */
}
@media (min-width: 992px) { /* Two columns for desktop */
    .contact-content { grid-template-columns: 1.5fr 1fr; gap: 2.5rem; }
}
.contact-form-container {
    padding: 2rem; /* 32px */
    background-color: var(--bg-secondary);
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--border-color);
}
.contact-info {
     padding: 2rem; /* 32px */
     background-color: var(--bg-accent); /* Different bg for info */
     color: var(--text-primary);
     border-radius: var(--border-radius-lg);
}
.contact-info h3 {
    margin-bottom: 1.5rem; /* 24px */
    color: var(--text-primary);
}
.contact-info p {
    margin-bottom: 1rem; /* 16px */
    display: flex;
    align-items: flex-start;
    color: var(--text-secondary);
    font-size: 1rem; /* 16px */
}
.contact-info p strong {
    min-width: 70px; display: inline-block;
    color: var(--text-primary); font-weight: 500;
}
.contact-info p svg { /* Icon placeholder */
    color: var(--accent-primary);
    margin-left: 0.75rem; /* 12px */
    width: 1.25rem; height: 1.25rem; /* 20px */
    margin-top: 0.125rem; /* 2px */
    flex-shrink: 0; /* Prevent icon shrinking */
}
.contact-info a { color: var(--accent-primary); }
.contact-info a:hover { color: var(--accent-secondary); }

.contact-form label {
    display: block;
    margin-bottom: 0.5rem; /* 8px */
    font-weight: 500;
    color: var(--text-secondary);
    font-size: 0.875rem; /* 14px */
}
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form textarea {
    width: 100%;
    padding: 0.875rem; /* 14px */
    margin-bottom: 1.25rem; /* 20px */
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-base);
    font-family: var(--font-body);
    font-size: 1rem; /* 16px */
    transition: border-color var(--transition-duration) ease, box-shadow var(--transition-duration) ease;
    background-color: var(--bg-primary); /* Match page bg or slightly lighter */
    color: var(--text-primary);
}
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: var(--text-muted); }

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(var(--accent-primary), 0.2);
}
.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}
.contact-form button[type="submit"] {
    width: 100%;
    padding: 0.875rem; /* 14px */
    font-size: 1.0625rem; /* 17px */
}


/* === FOOTER === */
footer {
    background-color: var(--bg-secondary); /* Consistent with other secondary backgrounds */
    color: var(--text-muted);
    padding: 3rem 0; /* 48px */
    text-align: center;
    border-top: 1px solid var(--border-color);
}
.footer-logo {
    font-size: 1.5rem; /* 24px */
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem; /* 16px */
}
.footer-logo span { color: var(--accent-primary); }
.social-links { margin-bottom: 1.5rem; /* 24px */ }
.social-links a {
    color: var(--text-secondary);
    margin: 0 0.75rem; /* 12px */
    font-size: 1.25rem; /* 20px - for text or icon font */
    transition: var(--transition-smooth);
    display: inline-block;
}
.social-links a:hover {
    color: var(--accent-primary);
    transform: translateY(-2px);
}
.copyright {
    font-size: 0.875rem; /* 14px */
}
.copyright a { color: var(--accent-primary); }
.copyright a:hover { text-decoration: underline; }

/* === WHATSAPP FLOAT BUTTON (MODERN) === */
.whatsapp-float {
    position: fixed;
    width: 3.5rem; /* 56px */
    height: 3.5rem;
    bottom: 1.5rem; /* 24px */
    left: 1.5rem; /* For RTL this would be right */
    background-color: #25D366;
    color: #FFF;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3); /* Softer shadow */
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
    border: none; /* Cleaner look */
}
.whatsapp-float:hover {
    transform: scale(1.1) translateY(-3px);
    background-color: #1DA851;
    box-shadow: 0 6px 16px rgba(0,0,0,0.35);
}
.whatsapp-float svg {
    width: 1.75rem; /* 28px */
    height: 1.75rem;
    fill: white;
}

/* Entry Animations */
[data-animate] {
    opacity: 0;
    transform: translateY(30px) scale(0.98); /* Subtle scale */
    transition: opacity 0.7s var(--transition-bezier), transform 0.7s var(--transition-bezier);
}
[data-animate].in-view {
    opacity: 1;
    transform: translateY(0) scale(1);
}
/* Staggered animation */
[data-animate-stagger] > * {
    opacity: 0;
    transform: translateY(25px) scale(0.98);
    transition: opacity 0.6s var(--transition-bezier), transform 0.6s var(--transition-bezier);
}
[data-animate-stagger].in-view > * {
    opacity: 1;
    transform: translateY(0) scale(1);
}
/* Stagger delays */
.stagger-delay > *:nth-child(1) { transition-delay: 0.1s; }
.stagger-delay > *:nth-child(2) { transition-delay: 0.2s; }
.stagger-delay > *:nth-child(3) { transition-delay: 0.3s; }
.stagger-delay > *:nth-child(4) { transition-delay: 0.4s; }
.stagger-delay > *:nth-child(5) { transition-delay: 0.5s; }
.stagger-delay > *:nth-child(6) { transition-delay: 0.6s; }


/* === RESPONSIVE DESIGN === */
@media (max-width: 992px) {
    /* About section already handles this */
    .contact-content { grid-template-columns: 1fr; }
    .contact-info { order: 1; /* Info below form on mobile if preferred */ margin-top: 2rem; }
}

@media (max-width: 768px) {
    html { scroll-padding-top: 70px; }
    section { padding: clamp(3rem, 8vw, 4.5rem) 0; }
    .hero { min-height: auto; padding: 100px 0 60px 0; }
    .hero h1 { font-size: clamp(2.2rem, 7vw, 3.25rem); }
    .hero p.lead { font-size: clamp(1.05rem, 3.5vw, 1.25rem); }

    nav ul {
        display: none; flex-direction: column; width: 100%;
        background-color: var(--bg-secondary);
        position: absolute; top: 100%; left: 0;
        box-shadow: 0 8px 16px rgba(0,0,0,0.2);
        padding: 0.5rem 0; border-top: 1px solid var(--border-color);
    }
    nav ul.active { display: flex; }
    nav ul li { margin-right: 0; width: 100%; }
    nav ul li a { display: block; padding: 0.875rem 1.25rem; text-align: right; /* RTL */ }
    nav ul li a:hover, nav ul li a.active { background-color: var(--bg-accent); }
    nav ul li a::after { display: none; }
    .menu-toggle { display: block; }

    .services-grid, .project-grid, .features-grid { grid-template-columns: 1fr; gap: 1.25rem; } /* 20px */
    .whatsapp-float { width: 3.25rem; height: 3.25rem; bottom: 1.25rem; left: 1.25rem; }
    .whatsapp-float svg { width: 1.625rem; height: 1.625rem; }
}
 @media (max-width: 480px) {
    .container { width: 95%; padding: 0 0.75rem; }
    .btn { padding: 0.75rem 1.5rem; font-size: 0.9375rem; }
    .hero-buttons { flex-direction: column; gap: 0.75rem; align-items: stretch; }
    .hero-buttons .btn { width: 100%; }
}