:root {
    /* User Requested Identity: Dark Blue & Grayish Blue */
    --primary-color: #002140;
    /* Requested Dark Blue */
    --secondary-color: #8597A7;
    /* Requested Grayish Blue */
    --accent-color: #6d8296;
    /* Slightly Darker version of secondary for contrast */
    --text-color: #1e293b;
    --text-light: #64748b;
    --white: #ffffff;
    --bg-light: #f8fafc;
    --success: #10b981;
    --whatsapp-color: #25d366;
    --shadow: 0 4px 20px rgba(0, 33, 64, 0.15);
    --transition: all 0.3s ease;
    --border-radius: 8px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Tajawal', sans-serif;
    /* Updated Font */
    background-color: var(--white);
    color: var(--text-color);
    line-height: 1.7;
    overflow-x: hidden;
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.text-center {
    text-align: center;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 35px;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    outline: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--secondary-color), #6d8296);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(133, 151, 167, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(133, 151, 167, 0.4);
    background: linear-gradient(135deg, #7a8d9f, #5c6f80);
}

/* Header */
.header {
    background-color: var(--white);
    padding: 20px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
}

.header .logo h1 {
    color: var(--primary-color);
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    background-color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    margin-top: 80px;
    /* Header height */
    overflow: hidden;
}

/* Abstract architectural lines for hero background (Subtle) */
.hero::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background: repeating-linear-gradient(45deg,
            rgba(255, 255, 255, 0.03) 0,
            rgba(255, 255, 255, 0.03) 1px,
            transparent 1px,
            transparent 50px);
    animation: moveBackground 20s linear infinite;
}

@keyframes moveBackground {
    0% {
        transform: translate(-10%, -10%);
    }

    100% {
        transform: translate(0, 0);
    }
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 25px;
    line-height: 1.3;
    color: var(--secondary-color);
    /* Gold Title */
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 50px;
    opacity: 0.9;
    font-weight: 300;
    color: #e2e8f0;
}

/* Features Section */
.features {
    padding: 100px 0;
    background-color: var(--bg-light);
}

.section-header {
    margin-bottom: 70px;
}

.section-header h2 {
    color: var(--primary-color);
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 20px;
}

.divider {
    height: 5px;
    width: 100px;
    background: var(--secondary-color);
    margin: 0 auto;
    border-radius: 2px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 40px;
}

.feature-card {
    background: var(--white);
    padding: 45px 30px;
    border-radius: var(--border-radius);
    text-align: center;
    transition: var(--transition);
    border-bottom: 4px solid transparent;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow);
    border-bottom-color: var(--secondary-color);
}

.icon-box {
    width: 80px;
    height: 80px;
    background: rgba(0, 33, 64, 0.05);
    color: var(--primary-color);
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin: 0 auto 25px;
    transition: var(--transition);
}

.feature-card:hover .icon-box {
    background: var(--primary-color);
    color: var(--secondary-color);
}

.feature-card h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.4rem;
    font-weight: 700;
}

.feature-card p {
    color: var(--text-light);
    font-size: 1rem;
}

/* Contact Section */
.contact {
    padding: 100px 0;
    background-color: var(--white);
    position: relative;
    overflow: hidden;
}

.contact-wrapper {
    position: relative;
    z-index: 2;
    max-width: 700px;
    margin: 0 auto;
}

.form-card {
    background: var(--white);
    padding: 60px;
    border-radius: var(--border-radius);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
}

.form-header {
    text-align: center;
    margin-bottom: 50px;
}

.form-header h2 {
    color: var(--primary-color);
    font-size: 2.2rem;
    margin-bottom: 15px;
    font-weight: 800;
}

.form-header p {
    color: var(--text-light);
    font-size: 1.1rem;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    color: var(--primary-color);
    font-weight: 700;
    font-size: 0.95rem;
}

.input-wrapper {
    position: relative;
}

.input-wrapper i {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--secondary-color);
}

.input-wrapper input {
    width: 100%;
    padding: 16px 50px 16px 18px;
    border: 2px solid #e2e8f0;
    border-radius: var(--border-radius);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
    background-color: #f8fafc;
}

.input-wrapper input:focus {
    border-color: var(--primary-color);
    background-color: var(--white);
    outline: none;
}

.btn-submit {
    width: 100%;
    background: var(--primary-color);
    color: var(--white);
    padding: 18px;
    border-radius: var(--border-radius);
    font-size: 1.2rem;
    margin-top: 20px;
    gap: 12px;
}

.btn-submit:hover {
    background: #1e3a6a;
    transform: translateY(-2px);
}

/* Footer */
.footer {
    background-color: #0b1d36;
    /* Darker than primary */
    color: var(--white);
    padding: 70px 0 30px;
}

.footer h3 {
    font-size: 2.2rem;
    margin-bottom: 25px;
    color: var(--secondary-color);
    font-weight: 800;
}

.footer-contact-title {
    opacity: 0.7;
    margin-bottom: 15px;
    font-weight: 300;
}

.footer-phones {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.footer-phone {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--white);
    font-size: 1.5rem;
    font-weight: 700;
    text-decoration: none;
    padding: 12px 25px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.footer-phone:hover {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
    color: var(--primary-color);
}

.copyright {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 25px;
    font-size: 0.9rem;
    opacity: 0.5;
}

/* WhatsApp Float */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 65px;
    height: 65px;
    background-color: var(--whatsapp-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 38px;
    box-shadow: 0 5px 20px rgba(37, 211, 102, 0.3);
    z-index: 999;
    text-decoration: none;
    transition: var(--transition);
}

.whatsapp-float:hover {
    transform: scale(1.1) rotate(10deg);
}

/* Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
}

.fade-in {
    opacity: 0;
    animation: fadeIn 0.8s ease forwards;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

.delay-3 {
    animation-delay: 0.6s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* Footer Privacy Link */
.footer-privacy {
    margin: 25px 0 30px;
}

.privacy-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--secondary-color);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    padding: 10px 25px;
    border: 1px solid rgba(133, 151, 167, 0.3);
    border-radius: 50px;
    transition: var(--transition);
    opacity: 0.8;
}

.privacy-link:hover {
    opacity: 1;
    background: rgba(133, 151, 167, 0.1);
    border-color: var(--secondary-color);
    transform: translateY(-2px);
}

.privacy-link i {
    font-size: 0.9rem;
}

/* Privacy Modal Overlay */
.privacy-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 15, 30, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    padding: 20px;
}

.privacy-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Privacy Modal */
.privacy-modal {
    background: var(--white);
    border-radius: 16px;
    max-width: 750px;
    width: 100%;
    max-height: 85vh;
    overflow: hidden;
    transform: translateY(30px) scale(0.95);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.3);
    direction: rtl;
}

.privacy-modal-overlay.active .privacy-modal {
    transform: translateY(0) scale(1);
}

.privacy-modal-header {
    background: linear-gradient(135deg, var(--primary-color), #0b1d36);
    padding: 25px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 2;
}

.privacy-modal-header h2 {
    color: var(--secondary-color);
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0;
}

.privacy-modal-header h2 i {
    font-size: 1.2rem;
    margin-left: 8px;
}

.privacy-modal-close {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.08);
    color: var(--white);
    font-size: 1.1rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.privacy-modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.privacy-modal-body {
    padding: 30px;
    overflow-y: auto;
    max-height: calc(85vh - 80px);
    scroll-behavior: smooth;
}

.privacy-modal-body::-webkit-scrollbar {
    width: 5px;
}

.privacy-modal-body::-webkit-scrollbar-track {
    background: #f1f5f9;
}

.privacy-modal-body::-webkit-scrollbar-thumb {
    background: var(--secondary-color);
    border-radius: 3px;
}

.privacy-intro {
    font-size: 1rem;
    color: var(--text-color);
    line-height: 2;
    margin-bottom: 30px;
    padding: 18px 22px;
    background: linear-gradient(135deg, rgba(0, 33, 64, 0.03), rgba(133, 151, 167, 0.08));
    border-radius: 10px;
    border-right: 4px solid var(--secondary-color);
}

.privacy-section {
    margin-bottom: 25px;
    padding-bottom: 22px;
    border-bottom: 1px solid #f1f5f9;
}

.privacy-section:last-of-type {
    border-bottom: none;
    margin-bottom: 15px;
    padding-bottom: 0;
}

.privacy-section h3 {
    color: var(--primary-color);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 14px;
    padding-bottom: 8px;
}

.privacy-section h3 i {
    color: var(--secondary-color);
    font-size: 0.95rem;
    margin-left: 8px;
}

.privacy-section p {
    color: var(--text-light);
    line-height: 2;
    font-size: 0.93rem;
    padding-right: 5px;
}

.privacy-section ul {
    list-style: none;
    padding: 0;
    margin: 10px 0 0 0;
}

.privacy-section ul li {
    padding: 7px 22px 7px 0;
    position: relative;
    color: var(--text-light);
    font-size: 0.93rem;
    line-height: 1.8;
}

.privacy-section ul li::before {
    content: '';
    position: absolute;
    right: 0;
    top: 17px;
    width: 7px;
    height: 7px;
    background: var(--secondary-color);
    border-radius: 50%;
}

.privacy-contact-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    direction: ltr;
    display: inline-block;
}

.privacy-contact-link:hover {
    color: var(--secondary-color);
}

.privacy-update-date {
    text-align: center;
    padding: 15px;
    background: #f8fafc;
    border-radius: 10px;
    color: var(--text-light);
    font-size: 0.88rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 15px;
}

.privacy-update-date i {
    color: var(--secondary-color);
}

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.2rem;
    }

    .form-card {
        padding: 40px 20px;
    }

    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 55px;
        height: 55px;
        font-size: 30px;
    }

    .privacy-modal {
        max-height: 90vh;
        border-radius: 12px;
    }

    .privacy-modal-header {
        padding: 22px 20px;
    }

    .privacy-modal-header h2 {
        font-size: 1.3rem;
    }

    .privacy-modal-body {
        padding: 25px 20px;
        max-height: calc(90vh - 75px);
    }

    .privacy-intro {
        padding: 15px 18px;
        font-size: 0.95rem;
    }
}