:root {
    --primary: #1E3A8A; /* Navy Blue */
    --secondary: #D4AF37; /* Gold */
    --accent: #F3E5AB; /* Light Gold Accent */
    --text-dark: #0F172A;
    --text-light: #F8FAFC;
    --bg-light: #FAFAFA;
    --white: #FFFFFF;
    --danger: #E53E3E;
    --success: #38A169;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Cairo', sans-serif;
}

body {
    background-color: var(--bg-light);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
    font-family: 'Cairo', sans-serif;
}

input, button, select, textarea {
    font-family: inherit;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    width: 100%;
}

/* Utilities */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.text-center { text-align: center; }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: none;
    cursor: pointer;
    font-size: 16px;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.2);
    transition: all 0.4s ease-in-out;
    z-index: -1;
    border-radius: 50px;
}

.btn:hover::before {
    width: 100%;
}

.btn-gold {
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    color: var(--white);
    box-shadow: 0 0 15px rgba(155, 114, 207, 0.6), 0 0 30px rgba(115, 66, 145, 0.4), inset 0 0 10px rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    animation: neon-pulse 2s infinite alternate;
}

@keyframes neon-pulse {
    0% {
        box-shadow: 0 0 10px rgba(155, 114, 207, 0.5), 0 0 20px rgba(115, 66, 145, 0.3), inset 0 0 5px rgba(255, 255, 255, 0.2);
    }
    100% {
        box-shadow: 0 0 20px rgba(179, 136, 235, 0.8), 0 0 40px rgba(155, 114, 207, 0.6), inset 0 0 15px rgba(255, 255, 255, 0.4);
    }
}

.btn-gold:hover {
    background: linear-gradient(135deg, var(--accent), var(--secondary));
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 0 20px rgba(179, 136, 235, 0.8), 0 0 40px rgba(155, 114, 207, 0.6), 0 0 60px rgba(115, 66, 145, 0.4);
}

.btn-primary-outline {
    background: transparent;
    color: var(--secondary);
    border: 2px solid var(--secondary);
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: inset 0 0 10px rgba(155, 114, 207, 0.3), 0 0 15px rgba(155, 114, 207, 0.3);
    text-shadow: 0 0 8px rgba(155, 114, 207, 0.5);
}

.btn-primary-outline:hover {
    background: var(--secondary);
    color: var(--white);
    box-shadow: 0 0 20px rgba(155, 114, 207, 0.7), 0 0 40px rgba(115, 66, 145, 0.5);
    text-shadow: none;
    border-color: transparent;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 95%;
    max-width: 1200px;
    background: transparent;
    z-index: 1000;
    padding: 15px 30px;
    border-radius: 50px;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.navbar .container {
    width: 100%;
}

.navbar.scrolled {
    top: 15px;
    background: rgba(20, 11, 25, 0.3); /* Transparent dark glass */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 10px 30px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 110px;
    max-width: 100%;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
}

.logo h1 {
    color: var(--secondary);
    font-size: 24px;
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.8), 0 0 20px rgba(212, 175, 55, 0.4);
}

.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-links a {
    color: var(--white);
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
}

.nav-links a:hover {
    color: var(--primary);
}

.menu-toggle {
    display: none;
    color: var(--white);
    font-size: 32px;
    cursor: pointer;
    text-shadow: 0 0 10px rgba(255,255,255,0.4), 0 0 20px var(--secondary);
    transition: all 0.3s ease;
    padding: 5px;
}

.menu-toggle:hover {
    color: var(--white);
    text-shadow: 0 0 15px rgba(255,255,255,0.8), 0 0 25px var(--primary), 0 0 35px var(--secondary);
    transform: scale(1.1);
}

/* Hero Section */
.hero {
    height: 100vh;
    min-height: 600px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-video-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    object-position: center center;
    z-index: 0;
}

#cityCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.hero-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 25, 47, 0.5); /* Matches original linear-gradient color */
    z-index: 1;
}

.mobile-only {
    display: none;
}

@media (max-width: 768px) {
    .desktop-only {
        display: none;
    }
    .mobile-only {
        display: block;
    }
}

.hero-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 1;
}

.shape {
    position: absolute;
    background: var(--secondary);
    opacity: 0.1;
    border-radius: 50%;
    filter: blur(50px);
}

.shape-1 {
    width: 400px;
    height: 400px;
    top: -100px;
    right: -100px;
}

.shape-2 {
    width: 300px;
    height: 300px;
    bottom: 10%;
    left: -50px;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: var(--white);
    text-align: center;
    max-width: 800px;
}

.hero-content h1 {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    color: #E2E8F0;
}

/* Contact Section */
.contact-section {
    padding: 100px 0;
    background: var(--bg-light);
    position: relative;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--secondary);
    border-radius: 2px;
}

.section-title p {
    color: #666;
    font-size: 1.1rem;
}

.form-container {
    background: var(--white);
    padding: 50px;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.05);
    position: relative;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.input-group {
    display: flex;
    flex-direction: column;
}

.input-group.full-width {
    grid-column: 1 / -1;
    margin-top: 15px;
}

.input-group label {
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--primary);
}

.required {
    color: var(--danger);
}

.input-group input,
.input-group select,
.input-group textarea {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 15px;
    border: 1px solid #E2E8F0;
    border-radius: 10px;
    background: #F8FAFC;
    font-size: 1rem;
    transition: all 0.3s;
    outline: none;
}

.input-group input:focus,
.input-group select:focus,
.input-group textarea:focus {
    border-color: var(--secondary);
    background: var(--white);
    box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.1);
}

.submit-btn {
    margin-top: 30px;
    width: 100%;
    font-size: 1.2rem;
    padding: 18px;
}

.hidden {
    display: none !important;
}

/* Alert Messages */
.alert {
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 25px;
    text-align: center;
    font-weight: 600;
}

.alert.success {
    background-color: #DEF7EC;
    color: var(--success);
    border: 1px solid #84E1BC;
}

.alert.error {
    background-color: #FDE8E8;
    color: var(--danger);
    border: 1px solid #F8B4B4;
}

/* Footer */
footer {
    background: rgba(20, 11, 25, 0.7); /* Cinematic dark glass */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    color: rgba(255,255,255,0.7);
    padding: 40px 0;
    border-top: 1px solid rgba(225, 205, 164, 0.15); /* Subtle champagne border */
    position: relative;
    z-index: 10;
}

/* WhatsApp Float */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 0px 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    background-color: #128C7E;
    color: #FFF;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    width: 50px;
    height: 50px;
    bottom: 40px;
    left: 40px;
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    color: var(--white);
    border-radius: 50%;
    text-align: center;
    font-size: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 25px rgba(155, 114, 207, 0.6), inset 0 0 10px rgba(255, 255, 255, 0.2);
    color: var(--white);
}

/* About Section */
.about-section {
    padding: 100px 0;
    background: var(--white);
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
}

.about-content .lead-text {
    font-size: 1.25rem;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 20px;
}

.about-content p {
    color: #555;
    margin-bottom: 40px;
    font-size: 1.1rem;
    line-height: 1.8;
}

.vision-mission {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.vm-box {
    background: linear-gradient(145deg, #ffffff, #f8faff);
    padding: 40px 30px;
    border-radius: 24px;
    text-align: center;
    border: 1px solid rgba(155, 114, 207, 0.15);
    border-bottom: 4px solid var(--secondary);
    transition: transform 0.1s ease-out, box-shadow 0.4s ease, border-color 0.4s ease;
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    cursor: pointer;
}

@keyframes khozamy-neon {
    0% {
        box-shadow: 0 15px 30px rgba(115, 66, 145, 0.3), 
                    0 0 15px rgba(155, 114, 207, 0.4), 
                    inset 0 0 15px rgba(155, 114, 207, 0.1);
        border-color: rgba(155, 114, 207, 0.6);
    }
    100% {
        box-shadow: 0 25px 50px rgba(155, 114, 207, 0.6), 
                    0 0 40px rgba(179, 136, 235, 0.8), 
                    inset 0 0 30px rgba(179, 136, 235, 0.3);
        border-color: rgba(179, 136, 235, 1);
    }
}

.vm-box:hover {
    animation: khozamy-neon 1.2s infinite alternate ease-in-out;
    z-index: 10;
}

.card-glare {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    mix-blend-mode: overlay;
    z-index: 5;
    border-radius: 24px;
}

.vm-box > * {
    position: relative;
    z-index: 2;
    transform: translateZ(30px);
    transition: transform 0.3s ease;
}

.vm-box i {
    font-size: 40px;
    color: var(--secondary);
    margin-bottom: 20px;
}

.vm-box h3 {
    color: var(--primary);
    margin-bottom: 15px;
    font-size: 1.3rem;
}

.vm-box p {
    margin-bottom: 0;
    font-size: 1rem;
}

/* Stats Section */
.stats-section {
    padding: 80px 0;
    background-color: transparent; 
    position: relative;
    overflow: hidden;
}

.stats-bg-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: 0;
}

.stats-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(20, 11, 25, 0.85); /* Cinematic dark overlay */
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 1;
}

.stats-heading {
    color: var(--warm-white, #fcfbf9);
    position: relative;
    z-index: 2;
    font-size: 3.5rem;
    font-weight: 800;
}

.stats-subheading {
    color: #c89f53; 
    font-size: 1.3rem; 
    font-weight: bold;
    position: relative;
    z-index: 2;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    text-align: center;
}

@media (min-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .stats-grid .stat-item:last-child:nth-child(odd) {
        grid-column: span 2;
    }
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-icon {
    width: 80px;
    height: 80px;
    background: rgba(225, 205, 164, 0.05); /* Metallic champagne light */
    border: 1px solid rgba(225, 205, 164, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    transition: all 0.4s ease;
}

.stat-item:hover .stat-icon {
    transform: scale(1.1);
    background: rgba(225, 205, 164, 0.1);
    border-color: rgba(225, 205, 164, 0.5);
    box-shadow: 0 0 20px rgba(225, 205, 164, 0.2);
}

.stat-icon i {
    font-size: 35px;
    color: var(--metallic-champagne, #e1cda4);
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--warm-white, #fcfbf9);
    margin-bottom: 5px;
    font-family: 'Cairo', sans-serif;
}

.stat-text {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 600;
    font-family: 'Cairo', sans-serif;
}

/* Map Section */
.map-section {
    padding: 60px 0;
    background-color: #f1f3f6;
}

.map-container {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    height: 500px;
    position: relative;
    border: 5px solid #fff;
}

#saudiMap {
    width: 100%;
    height: 100%;
    z-index: 1;
}

.map-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 30px;
    flex-direction: row-reverse; /* To align Arabic 'All' button nicely */
}

.map-filter-btn {
    background: white;
    border: 1px solid var(--secondary);
    padding: 10px 30px;
    border-radius: 50px;
    font-weight: bold;
    font-family: 'Cairo', sans-serif;
    color: var(--primary);
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.map-filter-btn:hover, .map-filter-btn.active {
    background: linear-gradient(135deg, var(--secondary), var(--primary));
    color: var(--white);
    border-color: transparent;
    box-shadow: 0 0 15px rgba(155, 114, 207, 0.6), 0 0 30px rgba(115, 66, 145, 0.4), inset 0 0 10px rgba(255, 255, 255, 0.2);
    animation: neon-pulse 2s infinite alternate;
}

/* Custom Marker Styling */
.custom-map-marker {
    width: 40px;
    height: 40px;
    background-color: white;
    border: 3px solid #1a2a40; /* Navy Border */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.custom-map-marker img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.marker-tail {
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0; 
    height: 0; 
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 8px solid #1a2a40;
}

.leaflet-popup-content-wrapper {
    font-family: 'Cairo', sans-serif;
    text-align: right;
    direction: rtl;
}

/* Testimonials Section */
.testimonials-section {
    padding: 80px 0;
    background-color: transparent;
    overflow: hidden;
}

.globe-scene {
    perspective: 1500px;
    width: 100%;
    height: 550px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: visible;
    margin-top: 20px;
}

.globe-carousel {
    width: 320px;
    height: 350px;
    position: absolute;
    transform-style: preserve-3d;
    animation: rotateGlobe 35s infinite linear;
}

.globe-carousel:hover {
    animation-play-state: paused;
}

.globe-cell {
    position: absolute;
    width: 320px;
    height: 350px;
    left: 0;
    top: 0;
    transition: transform 1s;
}

/* 3D Testimonial Card */
.testimonial-card-3d {
    direction: rtl;
    background: rgba(15, 23, 42, 0.6); /* Navy Blue Glass */
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(212, 175, 55, 0.3); /* Gold border */
    border-radius: 20px;
    padding: 30px 20px;
    width: 100%;
    height: 100%;
    white-space: normal;
    text-align: center;
    box-shadow: 0 15px 35px rgba(0,0,0,0.5), inset 0 0 15px rgba(212, 175, 55, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
    transform-style: preserve-3d;
}

.testimonial-card-3d:hover {
    transform: translateZ(30px) scale(1.05); /* Pop out effect */
    border-color: rgba(212, 175, 55, 0.8);
    box-shadow: 0 20px 50px rgba(0,0,0,0.7), inset 0 0 20px rgba(212, 175, 55, 0.3);
    background: rgba(15, 23, 42, 0.85);
}

.testi-img-3d {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 20px;
    border: 3px solid rgba(212, 175, 55, 0.8);
    padding: 4px;
    background: rgba(15, 23, 42, 0.9);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.4);
    transform: translateZ(30px);
}

.testi-name-3d {
    font-size: 1.3rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
    transform: translateZ(25px);
}

.testi-rating-3d {
    color: #D4AF37;
    margin-bottom: 15px;
    font-size: 1.2rem;
    letter-spacing: 3px;
    transform: translateZ(20px);
}

.testi-text-3d {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.8;
    font-weight: 500;
    transform: translateZ(15px);
}

@keyframes rotateGlobe {
    from { transform: rotateY(0deg); }
    to { transform: rotateY(-360deg); }
}

@media (max-width: 768px) {
    .globe-scene {
        height: 450px;
        perspective: 1000px;
    }
    .globe-carousel {
        width: 260px;
        height: 300px;
    }
    .globe-cell {
        width: 260px;
        height: 300px;
    }
    .testimonial-card-3d {
        padding: 20px 15px;
    }
    .testi-img-3d {
        width: 70px;
        height: 70px;
    }
}

/* Services Section */
.services-section {
    padding: 100px 0;
    background: #F4F7FE;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: linear-gradient(145deg, #ffffff, #f8faff);
    padding: 40px 30px;
    border-radius: 24px;
    text-align: center;
    border: 1px solid rgba(155, 114, 207, 0.15);
    border-bottom: 4px solid var(--secondary);
    transition: transform 0.1s ease-out, box-shadow 0.4s ease, border-color 0.4s ease;
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    cursor: pointer;
}

.service-card:hover {
    animation: khozamy-neon 1.2s infinite alternate ease-in-out;
    z-index: 10;
}

.service-card > * {
    position: relative;
    z-index: 2;
    transform: translateZ(30px);
    transition: transform 0.3s ease;
}

.icon-wrapper {
    width: 80px;
    height: 80px;
    background: rgba(212, 175, 55, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
}

.icon-wrapper i {
    font-size: 35px;
    color: var(--secondary);
}

.service-card h3 {
    color: var(--primary);
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.service-card p {
    color: #666;
    line-height: 1.7;
}

/* Investments Section */
.investments-section {
    padding: 100px 0;
    background: var(--white);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 40px;
}

.project-card {
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.03);
    background: linear-gradient(145deg, #ffffff, #f8faff);
    transition: transform 0.1s ease-out, box-shadow 0.4s ease, border-color 0.4s ease;
    border: 1px solid rgba(155, 114, 207, 0.15);
    border-bottom: 4px solid var(--secondary);
    position: relative;
    transform-style: preserve-3d;
    cursor: pointer;
}

.project-card:hover {
    animation: khozamy-neon 1.2s infinite alternate ease-in-out;
    z-index: 10;
}

.project-img {
    height: 300px;
    background-size: cover;
    background-position: center;
    transform: translateZ(10px);
    transition: transform 0.3s ease;
    border-radius: 24px 24px 0 0;
}

.project-info {
    position: relative;
    z-index: 2;
    transform: translateZ(40px);
    transition: transform 0.3s ease;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    margin: -40px 15px 15px 15px;
    padding: 25px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
}

.project-info h3 {
    color: var(--primary);
    font-size: 1.6rem;
    margin-bottom: 10px;
}

.project-info p {
    color: #555;
    line-height: 1.7;
}

/* Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .menu-toggle { display: block; }
    
    .nav-links { 
        display: none; 
        flex-direction: column;
        align-items: flex-start; /* Align items to the right in RTL */
        position: absolute;
        top: 100%;
        right: 0;
        left: auto;
        width: 280px;
        background: linear-gradient(135deg, var(--secondary), var(--primary));
        padding: 30px;
        text-align: right;
        gap: 20px;
        border-bottom-left-radius: 30px;
        box-shadow: 0 0 15px rgba(155, 114, 207, 0.6), 0 0 30px rgba(115, 66, 145, 0.4), inset 0 0 10px rgba(255, 255, 255, 0.2);
        border: 1px solid rgba(255, 255, 255, 0.3);
        border-top: none;
        border-right: none;
        animation: neon-pulse-menu 2s infinite alternate;
        z-index: 999;
    }

    @keyframes neon-pulse-menu {
        0% { box-shadow: 0 0 15px rgba(155, 114, 207, 0.5), 0 0 30px rgba(115, 66, 145, 0.3), inset 0 0 10px rgba(255, 255, 255, 0.2); }
        100% { box-shadow: 0 0 25px rgba(179, 136, 235, 0.8), 0 0 50px rgba(155, 114, 207, 0.6), inset 0 0 20px rgba(255, 255, 255, 0.4); }
    }
    
    .nav-links.active {
        display: flex;
    }

    .hero-content h1 { font-size: 2.5rem; }
    .form-container { 
        padding: 25px 15px; 
        width: 100%; 
        box-sizing: border-box; 
        overflow-x: hidden; 
    }
    .form-grid { 
        grid-template-columns: 1fr; 
        gap: 15px; 
    }
    .whatsapp-float { bottom: 20px; right: 20px; width: 50px; height: 50px; font-size: 24px; }
    .logo img { height: 80px; }
}

/* Enhanced Hover Effects */
.service-card:hover .icon-wrapper {
    background: var(--secondary);
    transform: translateZ(40px) scale(1.1) rotate(5deg);
    transition: 0.3s;
}
.service-card:hover .icon-wrapper i {
    color: var(--white);
}

.project-card:hover .project-img {
    transform: translateZ(10px) scale(1.05);
}

.about-image img {
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}
.about-image:hover img {
    transform: scale(1.02);
    box-shadow: 0 30px 60px rgba(0,0,0,0.15) !important;
}

.btn-gold {
    background: linear-gradient(135deg, var(--secondary), var(--accent));
    position: relative;
    overflow: hidden;
    z-index: 1;
}
.btn-gold::before {
    content: '';
    position: absolute;
    top: 0; left: -100%; width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: 0.5s;
    z-index: -1;
}
.btn-gold:hover::before {
    left: 100%;
}

.navbar {
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.nav-links a {
    position: relative;
}
.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--secondary);
    transition: 0.3s;
}
.nav-links a:hover::after {
    width: 100%;
}

/* Footer Layout */
.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap-reverse;
    gap: 20px;
}

.footer-content {
    text-align: right;
}

@media (max-width: 768px) {
    .footer-container {
        flex-direction: column-reverse;
        justify-content: center;
        text-align: center;
    }
    .footer-content {
        text-align: center;
    }
}

/* Social Footer Links */
.social-footer-links {
    margin-top: 0;
    display: flex;
    justify-content: center;
    gap: 15px;
}

.social-footer-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: rgba(255,255,255,0.15);
    color: #fff;
    border-radius: 50%;
    text-decoration: none;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.social-footer-links a:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.social-footer-links a.social-fb:hover { background: #1877F2; }
.social-footer-links a.social-tw:hover { background: #1DA1F2; }
.social-footer-links a.social-ig:hover { background: #E4405F; }
.social-footer-links a.social-snap:hover { background: #FFFC00; color: #000; }
.social-footer-links a.social-tt:hover { background: #000000; }
.social-footer-links a.social-in:hover { background: #0A66C2; }

/* Hide number input arrows */
input[type="number"]::-webkit-inner-spin-button, 
input[type="number"]::-webkit-outer-spin-button { 
  -webkit-appearance: none; 
  margin: 0; 
}
input[type="number"] {
  -moz-appearance: textfield;
}




/* ==========================================================================
   Ultra Premium Navbar Styles (Floating Pill & Centered Logo)
   ========================================================================== */
.premium-navbar {
    position: fixed;
    top: 25px;
    left: 50%;
    transform: translateX(-50%);
    width: 92%;
    max-width: 1400px;
    background: rgba(10, 15, 30, 0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(212, 175, 55, 0.2);
    box-shadow: 0 15px 40px rgba(0,0,0,0.4), inset 0 0 20px rgba(255,255,255,0.02);
    z-index: 1000;
    padding: 8px 30px;
    border-radius: 100px;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.premium-navbar::before {
    content: '';
    position: absolute;
    top: -1px; left: -1px; right: -1px; bottom: -1px;
    border-radius: 100px;
    background: linear-gradient(90deg, transparent, rgba(212,175,55,0.5), transparent);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.premium-navbar.scrolled {
    top: 15px;
    width: 96%;
    background: rgba(10, 15, 30, 0.9);
    border-color: rgba(212, 175, 55, 0.5);
    box-shadow: 0 20px 50px rgba(0,0,0,0.6), inset 0 0 30px rgba(212, 175, 55, 0.1);
}

.premium-navbar.scrolled::before {
    opacity: 1;
}

.nav-wrapper-ultra {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    width: 100%;
}

.nav-right {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.nav-center {
    display: flex;
    justify-content: center;
    align-items: center;
}

.nav-left {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.logo-box-ultra img {
    height: 70px;
    max-width: 220px;
    object-fit: contain;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    filter: drop-shadow(0px 0px 10px rgba(255, 255, 255, 0.6));
}

.premium-navbar.scrolled .logo-box-ultra img {
    height: 55px;
}

.logo-box-ultra img:hover {
    transform: scale(1.05);
}

.nav-menu {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 30px;
    margin: 0;
    padding: 0;
}

.nav-item {
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    font-weight: 700;
    font-size: 1.05rem;
    position: relative;
    padding: 8px 5px;
    transition: color 0.3s ease;
}

.nav-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background: var(--secondary);
    border-radius: 50%;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 0 10px var(--secondary);
}

.nav-item:hover, .nav-item.active {
    color: var(--secondary);
}

.nav-item:hover::after, .nav-item.active::after {
    opacity: 1;
    width: 100%;
    height: 2px;
    border-radius: 2px;
}

.btn-ultra-contact {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 12px 30px;
    font-size: 1.05rem;
    font-weight: bold;
    border-radius: 50px;
    background: linear-gradient(135deg, rgba(212,175,55,0.1), rgba(212,175,55,0.05));
    border: 1px solid rgba(212, 175, 55, 0.5);
    color: var(--secondary);
    text-decoration: none;
    transition: all 0.4s ease;
    backdrop-filter: blur(10px);
}

.btn-ultra-contact:hover {
    background: linear-gradient(135deg, var(--secondary), #F3E5AB);
    color: #0F172A;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(212, 175, 55, 0.4);
}

.btn-ultra-contact .btn-icon {
    font-size: 1.1rem;
    transition: transform 0.3s ease;
}

.btn-ultra-contact:hover .btn-icon {
    transform: translateX(-5px);
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 1001;
    margin-left: 20px;
}

.mobile-toggle span {
    display: block;
    width: 35px;
    height: 3px;
    background: var(--secondary);
    border-radius: 3px;
    transition: all 0.3s ease;
}

@media (max-width: 1024px) {
    .premium-navbar {
        width: 95%;
        padding: 10px 20px;
        border-radius: 20px;
    }
    .nav-wrapper-ultra {
        grid-template-columns: auto 1fr auto;
    }
    .nav-links-wrapper {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(10, 15, 30, 0.98);
        backdrop-filter: blur(20px);
        display: flex;
        align-items: center;
        justify-content: center;
        transition: right 0.5s cubic-bezier(0.16, 1, 0.3, 1);
        z-index: 999;
    }
    .nav-links-wrapper.active {
        right: 0;
    }
    .nav-menu {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }
    .nav-item {
        font-size: 1.5rem;
    }
    .mobile-toggle {
        display: flex;
    }
    .btn-ultra-contact {
        display: none;
    }
    .logo-box-ultra img {
        height: 50px;
    }
}

/* ==========================================================================
   Premium Corporate Footer Styles
   ========================================================================== */
.premium-footer {
    position: relative;
    background: linear-gradient(to top, #080c17, #0F172A);
    padding: 100px 0 30px;
    color: #e2e8f0;
    overflow: hidden;
    border-top: 1px solid rgba(212, 175, 55, 0.2);
}

.footer-glow {
    position: absolute;
    top: -150px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 300px;
    background: radial-gradient(ellipse at top, rgba(212, 175, 55, 0.15), transparent 70%);
    pointer-events: none;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-logo {
    max-width: 250px;
    margin-bottom: 25px;
    filter: drop-shadow(0px 0px 10px rgba(255, 255, 255, 0.6));
}

.footer-about {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #94a3b8;
    margin-bottom: 30px;
    max-width: 400px;
}

.footer-socials {
    display: flex;
    gap: 15px;
}

.social-link {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary);
    font-size: 1.2rem;
    transition: all 0.4s ease;
}

.social-link:hover {
    background: var(--secondary);
    color: #0F172A;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(212, 175, 55, 0.3);
}

.footer-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 15px;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40px;
    height: 3px;
    background: var(--secondary);
    border-radius: 3px;
}

.footer-links-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links-list li {
    margin-bottom: 15px;
}

.footer-links-list a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-links-list a:hover {
    color: var(--secondary);
    transform: translateX(-8px);
}

.footer-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 25px;
}

.footer-contact-item .icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(212, 175, 55, 0.1);
    color: var(--secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.footer-contact-item .text {
    font-size: 1.1rem;
    color: #cbd5e1;
    line-height: 1.6;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    flex-wrap: wrap;
    gap: 20px;
}

.footer-bottom p {
    color: #64748b;
}

.footer-bottom-links {
    display: flex;
    align-items: center;
    gap: 15px;
}

.footer-bottom-links a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-bottom-links a:hover {
    color: var(--secondary);
}

.divider {
    color: #475569;
}

@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}
