:root {
    --primary: #0096D6;
    --primary-light: #43bff5;
    --primary-soft: #d9f0f2;
    --primary-red: #d00a12;
    --primary-gradient: linear-gradient(135deg, #0096D6 0%, #43bff5 100%);
    --bg-body: #f8fafc;
    --bg-surface: #ffffff;
    --bg-card: #ffffff;
    --text-dark: #005d8f;
    --text-muted: #475569;
    --border-light: #e2e8f0;
    --shadow-sm: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.02);
    --shadow-md: 0 20px 25px -12px rgba(0, 0, 0, 0.08);
    --radius-lg: 28px;
    --radius-md: 20px;
    --transition: all 0.3s ease;
}

.ibm-plex-font {
    font-family: "IBM Plex Sans Arabic", sans-serif !important;
}

select option {
    font-family: "IBM Plex Sans Arabic", sans-serif !important;
    text-align: center;

}

.primary-red {
    color: var(--primary-red);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* IBM Plex Sans Faces */
.ibm-plex-sans-arabic-thin {
    font-family: "IBM Plex Sans Arabic", sans-serif;
    font-weight: 100;
    font-style: normal;
}

.ibm-plex-sans-arabic-extralight {
    font-family: "IBM Plex Sans Arabic", sans-serif;
    font-weight: 200;
    font-style: normal;
}

.ibm-plex-sans-arabic-light {
    font-family: "IBM Plex Sans Arabic", sans-serif;
    font-weight: 300;
    font-style: normal;
}

.ibm-plex-sans-arabic-regular {
    font-family: "IBM Plex Sans Arabic", sans-serif;
    font-weight: 400;
    font-style: normal;
}

.ibm-plex-sans-arabic-medium {
    font-family: "IBM Plex Sans Arabic", sans-serif;
    font-weight: 500;
    font-style: normal;
}

.ibm-plex-sans-arabic-semibold {
    font-family: "IBM Plex Sans Arabic", sans-serif;
    font-weight: 600;
    font-style: normal;
}

.ibm-plex-sans-arabic-bold {
    font-family: "IBM Plex Sans Arabic", sans-serif;
    font-weight: 700;
    font-style: normal;
}

.ibm-plex-font {
    font-family: "IBM Plex Sans Arabic", sans-serif !important;
}

/* End IBM Plex */

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-body);
    color: var(--text-dark);
    overflow-x: hidden;
}

/* RTL Overrides */
[dir="rtl"] .me-auto {
    margin-right: auto !important;
    margin-left: 0 !important;
}

[dir="rtl"] .ms-auto {
    margin-left: auto !important;
    margin-right: 0 !important;
}

[dir="ltr"] .me-auto {
    margin-left: auto !important;
    margin-right: 0 !important;
}

/* Custom Styled Select */
.custom-select {
    position: relative;
    display: block;
    width: 100%;
}

.custom-select select {
    appearance: none;
    -webkit-appearance: none;
    width: 100%;
    padding: 7px 16px;
    font-size: 0.95rem;
    font-weight: 500;
    background: var(--bg-surface);
    border: 1.5px solid var(--border-light);
    border-radius: 20px;
    color: var(--text-dark);
    cursor: pointer;
    transition: var(--transition);
    font-family: 'Inter', sans-serif;
    text-align: left;
}

.custom-select select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(30, 123, 133, 0.15);
}

.custom-select i {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: var(--primary);
    font-size: 1rem;
}

[dir="rtl"] .custom-select i {
    left: auto;
    right: 18px;
}

/* Navbar Modern */
.navbar-modern {
    backdrop-filter: blur(20px);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.03);
    transition: all 0.2s;
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.8rem;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.nav-link {
    font-weight: 500;
    color: var(--text-dark);
    margin: 0 6px;
    transition: var(--transition);
    border-radius: 40px;
}

.nav-link:hover {
    color: var(--primary);
    background: var(--primary-soft);
}

.lang-toggle {
    background: var(--primary-soft);
    border: none;
    padding: 6px 18px;
    border-radius: 40px;
    font-weight: 600;
    color: var(--primary);
    transition: var(--transition);
}

/* Hero Split */
.hero-section {
    padding: 100px 0 80px;
    background: linear-gradient(120deg, #ffffff 0%, #f1f9fc 100%);
    position: relative;
    overflow: hidden;
}

.hero-title {
    font-size: 3.4rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
    background: linear-gradient(to right, #0f2c33, var(--primary));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-illustration svg {
    max-width: 100%;
    height: auto;
}

/* Step Indicator */
.step-indicator {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 32px;
}

.step-badge {
    width: 42px;
    height: 42px;
    border-radius: 60px;
    background: var(--border-light);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    transition: all 0.2s;
}

.step-badge.active {
    background: var(--primary);
    color: white;
    box-shadow: 0 6px 14px rgba(30, 123, 133, 0.3);
}

.step-badge.completed {
    background: var(--primary-light);
    color: white;
}

/* Premium Card */
.premium-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    transition: var(--transition);
}

.room-card-premium {
    background: white;
    border-radius: 24px;
    padding: 1.2rem;
    margin-bottom: 1.2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.02);
    border: 1px solid var(--border-light);
    transition: all 0.25s;
}

.room-card-premium:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}

.btn-icon {
    background: transparent;
    border: none;
    font-size: 1.2rem;
    transition: 0.2s;
    color: var(--text-muted);
}

.btn-icon:hover {
    color: var(--primary);
    transform: scale(1.05);
}

.result-total-card {
    background: var(--primary-gradient);
    border-radius: 32px;
    padding: 2rem;
    color: white;
    text-align: center;
}

.result-btu {
    font-size: 3.5rem;
    font-weight: 800;
}

.btn-gradient {
    background: var(--primary-gradient);
    border: none;
    padding: 12px 32px;
    border-radius: 40px;
    font-weight: 600;
    color: white;
    transition: all 0.25s;
    box-shadow: 0 4px 12px rgba(30, 123, 133, 0.3);
}

.btn-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(30, 123, 133, 0.25);
}

.project-overlay-card {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    transition: 0.3s;
}

.project-overlay-card img {
    transition: 0.4s;
    width: 100%;
    height: 240px;
    object-fit: cover;
}

.project-overlay-card:hover img {
    transform: scale(1.05);
}

.project-overlay-card .overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    opacity: 0;
    transition: 0.3s;
    display: flex;
    align-items: flex-end;
    padding: 1rem;
    color: white;
    font-weight: bold;
}

.project-overlay-card:hover .overlay {
    opacity: 1;
}

.contact-icon {
    width: 48px;
    height: 48px;
    background: var(--primary-soft);
    border-radius: 60px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-up {
    animation: fadeUp 0.6s ease forwards;
}