:root {
    --color-bg: #FFFFFF;
    --color-text: #1d1d1f;
    /* Apple's near-black */
    --color-text-secondary: #86868b;
    /* Apple's gray */
    --color-primary: #0066CC;
    /* Classic premium blue, slightly brighter for web */
    --color-accent: #0071e3;
    /* Vibrant blue for actions */
    --color-accent-hover: #0077ED;
    --color-secondary: #f5f5f7;
    /* Off-white background */
    --font-main: "Cairo", "SF Pro Text", "Helvetica Neue", "Helvetica", "Arial", sans-serif;
    --transition-speed: 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    --border-radius-lg: 20px;
    --border-radius-sm: 12px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-main);
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: 1.6;
    /* Slight increase for Cairo readability */
    letter-spacing: normal;
    overflow-x: hidden;
}

/* Utilities */
.container {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 40px;
}

.btn {
    display: inline-block;
    background-color: var(--color-accent);
    color: white;
    padding: 12px 30px;
    border-radius: 980px;
    text-decoration: none;
    font-size: 18px;
    font-weight: 700;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn:hover {
    background-color: var(--color-accent-hover);
    transform: scale(1.02);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.section {
    padding: 120px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.section:last-child {
    border-bottom: none;
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-header h2 {
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #1d1d1f;
}

.line {
    width: 0;
    height: 0;
    display: none;
}

.bg-light {
    background-color: var(--color-secondary);
    border-top: 1px solid rgba(0, 0, 0, 0.02);
    border-bottom: 1px solid rgba(0, 0, 0, 0.02);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1000;
    height: 70px;
    display: flex;
    align-items: center;
    transition: background-color 0.3s;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo img {
    height: 35px;
    width: auto;
}

.logo-text {
    font-size: 22px;
    font-weight: 700;
    color: var(--color-text);
    letter-spacing: -0.01em;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 36px;
}

.nav-links a {
    text-decoration: none;
    color: var(--color-text);
    font-size: 16px;
    font-weight: 600;
    opacity: 0.8;
    transition: opacity 0.2s ease, color 0.2s ease;
}

.nav-links a:hover {
    opacity: 1;
    color: var(--color-accent);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
}

.hamburger span {
    width: 24px;
    height: 2px;
    background-color: var(--color-text);
    border-radius: 2px;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.7) 0%, rgba(255, 255, 255, 0.4) 50%, rgba(245, 245, 247, 1) 100%),
        url('images/hero-bg.png');
    background-size: cover;
    background-position: center bottom;
    background-repeat: no-repeat;
    padding-top: 70px;
}

.hero-content h1 {
    font-size: 64px;
    font-weight: 700;
    letter-spacing: -0.005em;
    margin-bottom: 16px;
    line-height: 1.05;
    color: #1d1d1f;
}

.hero-logo {
    height: 120px;
    width: auto;
    margin-bottom: 40px;
    display: inline-block;
}

.tagline {
    font-size: 24px;
    line-height: 1.4;
    font-weight: 400;
    color: var(--color-text-secondary);
    margin: 0 auto 50px auto;
    max-width: 700px;
}

/* About Section */
.about-content .lead {
    font-size: 21px;
    line-height: 1.5;
    font-weight: 600;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 80px auto;
    color: #1d1d1f;
}

.values-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.value-card,
.mission-card {
    background: transparent;
    /* Removing card bg for cleaner look */
    padding: 0;
    box-shadow: none;
    border-radius: 0;
}

.value-card h3,
.mission-card h3 {
    margin-bottom: 24px;
    font-size: 28px;
    font-weight: 600;
    color: #1d1d1f;
}

.why-us-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.why-item {
    border-right: 2px solid var(--color-accent);
    /* Subtle accent line */
    padding-right: 20px;
}

.why-item h4 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #1d1d1f;
}

.why-item p {
    font-size: 16px;
    line-height: 1.5;
    color: var(--color-text-secondary);
    margin: 0;
}

.mission-card p {
    font-size: 19px;
    line-height: 1.5;
    color: var(--color-text-secondary);
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    counter-reset: service-counter;
}

.service-card {
    background: white;
    padding: 50px 40px;
    border-radius: var(--border-radius-lg);
    text-align: right;
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.4s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.03);
    position: relative;
    overflow: hidden;
    counter-increment: service-counter;
    z-index: 1;
}

.service-card::before {
    content: "0" counter(service-counter);
    position: absolute;
    top: -10px;
    left: -10px;
    font-size: 120px;
    font-weight: 800;
    color: var(--color-primary);
    opacity: 0.04;
    line-height: 1;
    z-index: -1;
    font-family: 'SF Pro Text', sans-serif;
    /* Use English font for numbers */
    transition: transform 0.4s ease;
}

.service-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 4px;
    background-color: var(--color-accent);
    transition: width 0.4s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.service-card:hover::after {
    width: 100%;
}

.service-card:hover::before {
    transform: scale(1.1);
    opacity: 0.08;
    color: var(--color-accent);
}

.service-card h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #1d1d1f;
}

.service-card p {
    color: var(--color-text-secondary);
    font-size: 17px;
    line-height: 1.6;
}

/* Contact */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    /* More space for form */
    gap: 80px;
    align-items: center;
}

.contact-info {
    text-align: right;
}

.info-item {
    margin-bottom: 50px;
    padding-right: 20px;
    border-right: 3px solid transparent;
    transition: border-color 0.3s ease;
}

.info-item:hover {
    border-right-color: var(--color-accent);
}

.info-item h4 {
    margin-bottom: 10px;
    font-size: 22px;
    font-weight: 700;
    color: #1d1d1f;
}

.info-item p,
.info-item a {
    color: var(--color-text-secondary);
    font-size: 18px;
    text-decoration: none;
    transition: color 0.2s;
}

.info-item a:hover {
    color: var(--color-accent);
}

.contact-form-container {
    background: #fff;
    padding: 50px;
    border-radius: 30px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.05);
    /* Deep premium shadow */
    border: 1px solid rgba(0, 0, 0, 0.02);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 20px;
    margin-bottom: 24px;
    border: 1px solid #e5e5ea;
    border-radius: 16px;
    /* Softer corners */
    font-family: inherit;
    font-size: 17px;
    font-weight: 400;
    outline: none;
    background-color: #f5f5f7;
    /* Light gray input bg */
    transition: all 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--color-accent);
    background-color: #fff;
    box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.1);
    /* Focus ring */
}

.contact-form button {
    width: 100%;
    padding: 16px;
    font-size: 18px;
    margin-top: 10px;
}

/* Footer */
footer {
    background-color: #1d1d1f;
    /* Dark premium footer */
    padding: 60px 0;
    text-align: center;
    color: #86868b;
    font-size: 14px;
}

footer p {
    max-width: 600px;
    margin: 0 auto;
}

/* Fade In Animation */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.165, 0.84, 0.44, 1), transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger Delays */
.services-grid .service-card:nth-child(1) {
    transition-delay: 0.1s;
}

.services-grid .service-card:nth-child(2) {
    transition-delay: 0.2s;
}

.services-grid .service-card:nth-child(3) {
    transition-delay: 0.3s;
}

.services-grid .service-card:nth-child(4) {
    transition-delay: 0.4s;
}

.why-us-grid .why-item:nth-child(1) {
    transition-delay: 0.1s;
}

.why-us-grid .why-item:nth-child(2) {
    transition-delay: 0.2s;
}

.why-us-grid .why-item:nth-child(3) {
    transition-delay: 0.3s;
}

.why-us-grid .why-item:nth-child(4) {
    transition-delay: 0.4s;
}

/* Mobile Responsive */
@media (max-width: 860px) {
    .container {
        padding: 0 24px;
    }

    .section {
        padding: 80px 0;
    }

    .hero-content h1 {
        font-size: 40px;
    }

    .tagline {
        font-size: 20px;
    }

    .section-header h2 {
        font-size: 36px;
    }

    .values-grid,
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .contact-form-container {
        padding: 30px;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 70px;
        /* Matched to new header height */
        left: 0;
        width: 100%;
        height: calc(100vh - 70px);
        background: rgba(255, 255, 255, 0.98);
        flex-direction: column;
        align-items: center;
        justify-content: start;
        padding-top: 60px;
        gap: 40px;
    }

    .nav-links a {
        font-size: 24px;
    }

    .nav-links.active {
        display: flex;
    }

    .hamburger {
        display: flex;
    }
}