/* ===== Variables ===== */
:root {
    --primary: #0f2744;
    --primary-light: #1a3a5c;
    --gold: #c9a227;
    --gold-light: #e8c547;
    --ibs-start: #667eea;
    --ibs-end: #764ba2;
    --alsalam: #3d6b4f;
    --alsalam-light: #4a8a66;
    --bg: #f8fafc;
    --bg-alt: #eef2f7;
    --white: #ffffff;
    --text: #1e293b;
    --text-muted: #64748b;
    --shadow: 0 4px 24px rgba(15, 39, 68, 0.08);
    --shadow-lg: 0 12px 40px rgba(15, 39, 68, 0.12);
    --radius: 16px;
    --radius-sm: 10px;
    --transition: 0.3s ease;
    --nav-height: 72px;
}

/* ===== Reset & Base ===== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--nav-height);
}

body {
    font-family: 'Cairo', sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: var(--text);
    background: var(--bg);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.9rem 2rem;
    font-family: 'Cairo', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
}

.btn-sm {
    padding: 0.6rem 1.25rem;
    font-size: 0.9rem;
}

.btn-block {
    width: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 100%);
    color: var(--primary);
    box-shadow: 0 4px 20px rgba(201, 162, 39, 0.35);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(201, 162, 39, 0.5);
    color: var(--primary);
}

.btn-ibs {
    background: linear-gradient(135deg, var(--ibs-start) 0%, var(--ibs-end) 100%);
    color: var(--white);
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.35);
}

.btn-ibs:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.5);
    color: var(--white);
}

.btn-alsalam {
    background: linear-gradient(135deg, var(--alsalam) 0%, var(--alsalam-light) 100%);
    color: var(--white);
    box-shadow: 0 4px 20px rgba(61, 107, 79, 0.35);
}

.btn-alsalam:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(61, 107, 79, 0.5);
    color: var(--white);
}

/* ===== Navbar ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--nav-height);
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(15, 39, 68, 0.06);
    transition: all var(--transition);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: var(--shadow);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.nav-logo {
    height: 52px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
}

.nav-brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

.nav-brand-text strong {
    font-size: 1.1rem;
    color: var(--primary);
}

.nav-brand-text small {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 400;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.75rem;
    color: var(--primary);
    cursor: pointer;
    padding: 0.25rem;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-link {
    padding: 0.5rem 1rem;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text);
    border-radius: var(--radius-sm);
    transition: all var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--gold);
    background: rgba(201, 162, 39, 0.08);
}

/* ===== Hero ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: calc(var(--nav-height) + 3rem) 0 4rem;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 50%, #243b5e 100%);
    z-index: 0;
}

.hero-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 80%, rgba(201, 162, 39, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(102, 126, 234, 0.12) 0%, transparent 50%),
        url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50px;
    color: var(--gold-light);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    color: var(--white);
    margin-bottom: 0.75rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    color: var(--gold);
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.hero-desc {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 650px;
    margin: 0 auto 2.5rem;
    font-weight: 400;
    line-height: 1.8;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.hero-scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
}

.hero-scroll a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 1.5rem;
    animation: bounce 2s infinite;
    transition: color var(--transition);
}

.hero-scroll a:hover {
    color: var(--gold);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-8px); }
    60% { transform: translateY(-4px); }
}

/* ===== Sections ===== */
.section {
    padding: 5rem 0;
}

.section-alt {
    background: var(--bg-alt);
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3.5rem;
}

.section-tag {
    display: inline-block;
    padding: 0.35rem 1rem;
    background: rgba(201, 162, 39, 0.12);
    color: var(--gold);
    font-size: 0.85rem;
    font-weight: 700;
    border-radius: 50px;
    margin-bottom: 1rem;
}

.section-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 1rem;
}

.section-desc {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.8;
}

/* ===== Info Cards (Vision/Mission/Values) ===== */
.info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.info-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: all var(--transition);
    border: 1px solid rgba(15, 39, 68, 0.04);
}

.info-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.info-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(201, 162, 39, 0.15), rgba(201, 162, 39, 0.05));
    border-radius: 14px;
    font-size: 1.5rem;
    color: var(--gold);
    margin-bottom: 1.25rem;
}

.info-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1rem;
}

.info-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
}

.values-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 0.6rem;
}

.values-list li i {
    color: var(--gold);
    margin-top: 0.2rem;
    flex-shrink: 0;
}

.highlight-box {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: rgba(255, 255, 255, 0.9);
    padding: 2rem 2.5rem;
    border-radius: var(--radius);
    border-right: 4px solid var(--gold);
}

.highlight-box i {
    font-size: 2rem;
    color: var(--gold);
    flex-shrink: 0;
    margin-top: 0.15rem;
}

.highlight-box p {
    font-size: 1.05rem;
    line-height: 1.8;
}

/* ===== Sectors ===== */
.sectors-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.sector-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 2.5rem 2rem;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all var(--transition);
    border: 1px solid rgba(15, 39, 68, 0.04);
}

.sector-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.sector-icon {
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    border-radius: 20px;
    font-size: 2rem;
    color: var(--gold);
}

.sector-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.75rem;
}

.sector-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* ===== Platforms ===== */
.platforms-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.platform-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 2.5rem;
    box-shadow: var(--shadow);
    transition: all var(--transition);
    border: 1px solid rgba(15, 39, 68, 0.04);
    display: flex;
    flex-direction: column;
}

.platform-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.platform-realestate {
    border-top: 4px solid var(--gold);
}

.platform-ibs {
    border-top: 4px solid var(--ibs-start);
}

.platform-alsalam {
    border-top: 4px solid var(--alsalam);
}

.platform-icon {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
}

.platform-realestate .platform-icon {
    background: rgba(201, 162, 39, 0.12);
    color: var(--gold);
}

.platform-ibs .platform-icon {
    background: rgba(102, 126, 234, 0.12);
    color: var(--ibs-start);
}

.platform-alsalam .platform-icon {
    background: rgba(61, 107, 79, 0.12);
    color: var(--alsalam);
}

.platform-card h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1rem;
}

.platform-card > p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    flex-grow: 0;
}

.platform-features {
    margin-bottom: 2rem;
    flex-grow: 1;
}

.platform-features li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text);
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.platform-features li i {
    color: var(--gold);
}

.platform-ibs .platform-features li i {
    color: var(--ibs-start);
}

.platform-alsalam .platform-features li i {
    color: var(--alsalam);
}

/* ===== Services ===== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.service-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all var(--transition);
    border: 1px solid rgba(15, 39, 68, 0.04);
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(201, 162, 39, 0.2);
}

.service-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    background: var(--bg);
    border-radius: 14px;
    font-size: 1.5rem;
    color: var(--primary);
    transition: all var(--transition);
}

.service-card:hover .service-icon {
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    color: var(--primary);
}

.service-card h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.service-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ===== Stats ===== */
.stats-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    padding: 4rem 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
}

.stat-number {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800;
    color: var(--gold);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

/* ===== Contact ===== */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.contact-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all var(--transition);
}

.contact-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.contact-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    background: rgba(201, 162, 39, 0.12);
    border-radius: 50%;
    font-size: 1.5rem;
    color: var(--gold);
}

.contact-icon.facebook {
    background: rgba(24, 119, 242, 0.1);
    color: #1877f2;
}

.contact-card h4 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1rem;
}

.contact-link {
    display: block;
    color: var(--primary);
    font-weight: 600;
    font-size: 1.05rem;
    margin-bottom: 0.5rem;
    transition: color var(--transition);
    direction: ltr;
}

.contact-link:hover {
    color: var(--gold);
}

.contact-link.social {
    direction: rtl;
    font-size: 0.95rem;
}

.contact-link.social:hover {
    color: #1877f2;
}

.contact-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.contact-address {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: var(--primary) !important;
    font-weight: 700;
    font-size: 1.05rem !important;
    margin-bottom: 1rem !important;
}

.contact-address i {
    color: var(--gold);
    font-size: 1.2rem;
}

/* ===== Footer ===== */
.footer {
    background: var(--primary);
    color: rgba(255, 255, 255, 0.8);
    padding: 4rem 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo {
    height: 80px;
    width: auto;
    max-width: 220px;
    margin-bottom: 1rem;
    object-fit: contain;
    filter: brightness(1.1);
}

.footer-brand h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 0.5rem;
}

.footer-brand p {
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-links h4,
.footer-platforms h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 1.25rem;
}

.footer-links ul li,
.footer-platforms ul li {
    margin-bottom: 0.6rem;
}

.footer-links a,
.footer-platforms a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    transition: color var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.footer-links a:hover,
.footer-platforms a:hover {
    color: var(--gold);
}

.footer-bottom {
    padding: 1.5rem 0;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
}

/* ===== Reveal Animation ===== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Responsive ===== */
@media (max-width: 992px) {
    .info-grid,
    .sectors-grid,
    .services-grid,
    .contact-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .platforms-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }

    .nav-menu {
        position: fixed;
        top: var(--nav-height);
        right: 0;
        left: 0;
        background: var(--white);
        flex-direction: column;
        padding: 1.5rem;
        gap: 0.25rem;
        box-shadow: var(--shadow-lg);
        transform: translateY(-120%);
        opacity: 0;
        visibility: hidden;
        transition: all var(--transition);
    }

    .nav-menu.open {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-link {
        width: 100%;
        text-align: center;
        padding: 0.75rem;
    }

    .nav-menu .btn {
        width: 100%;
        margin-top: 0.5rem;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .hero-cta .btn {
        width: 100%;
        max-width: 340px;
    }

    .info-grid,
    .sectors-grid,
    .services-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .highlight-box {
        flex-direction: column;
        padding: 1.5rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .section {
        padding: 3.5rem 0;
    }
}

@media (max-width: 480px) {
    .nav-logo {
        height: 40px;
        max-width: 150px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .platform-card,
    .info-card {
        padding: 1.5rem;
    }
}
