:root {
    --primary-blue: #004E89;
    --accent-gold: #E6B325;
    --pure-white: #FFFFFF;
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --text-dark: #1A1A1A;
    --text-light: #F5F5F5;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Tajawal', sans-serif;
}

body {
    background-color: var(--pure-white);
    color: var(--text-dark);
    overflow-x: hidden;
}

a {
    text-decoration: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.glass-header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 15px 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    height: 32px;
    width: auto;
    display: block;
}

.mode-btn:hover {
    background: rgba(0, 0, 0, 0.05) !important;
    color: var(--primary-blue) !important;
}

.mode-btn.active:hover {
    background: var(--primary-blue) !important;
    color: white !important;
}

.btn-whatsapp {
    background: #25D366;
    color: white;
    padding: 8px 16px;
    border-radius: 50px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: transform 0.2s;
}

/* Hamburger Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 35px;
    height: 30px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 1100;
    flex-shrink: 0; /* Prevent squashing */
}

.menu-toggle span {
    width: 30px;
    height: 3px;
    background: var(--primary-blue);
    border-radius: 10px;
    transition: all 0.3s linear;
    position: relative;
    transform-origin: 1px;
}

.menu-toggle.open span:nth-child(1) {
    transform: rotate(45deg);
}

.menu-toggle.open span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.open span:nth-child(3) {
    transform: rotate(-45deg);
}

.btn-whatsapp:hover {
    transform: scale(1.05);
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}

.social-icon img {
    height: 32px;
    width: auto;
}

.social-icon:hover {
    transform: scale(1.1);
}

.wa-icon {
    height: 20px;
    filter: brightness(0) invert(1);
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    overflow: hidden;
    direction: ltr;
    /* Force LTR for layout structure, text inside containers will handle RTL */
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 60%;
    /* Giving image more space on the left */
    height: 100%;
    z-index: -1;
}

/* Image on the LEFT side */
.hero-3d-visual {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* Keep aspect ratio */
    position: absolute;
    left: -10%;
    /* Slight bleed to the left */
    top: 0;
    opacity: 0.9;
}

.hero-content {
    display: flex;
    justify-content: flex-end;
    /* Push content to the RIGHT */
    width: 100%;
    position: relative;
    z-index: 2;
    /* Ensure text is above everything */
}

/* Text on the RIGHT side, aligned RTL */
.hero-text {
    width: 45%;
    /* Restrict width to avoid overlap */
    text-align: right;
    padding: 40px;
    padding-right: 0;
    /* Align with container edge */
    direction: rtl;
    /* Ensure Arabic text is RTL */
    margin-right: 5%;
    /* Spacing from right edge */
}


h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--primary-blue);
}

.text-gold {
    color: var(--accent-gold);
}

.hero-sub {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 40px;
    line-height: 1.6;
}

.hero-cta-group {
    display: flex;
    align-items: center;
    gap: 20px;
}

.btn-primary-gold {
    background: var(--accent-gold);
    color: var(--primary-blue);
    padding: 16px 32px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 800;
    box-shadow: 0 4px 15px rgba(230, 179, 37, 0.4);
    transition: all 0.3s ease;
}

.btn-primary-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(230, 179, 37, 0.6);
}

.pulse {
    animation: pulse-animation 2s infinite;
}

@keyframes pulse-animation {
    0% {
        box-shadow: 0 0 0 0 rgba(230, 179, 37, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(230, 179, 37, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(230, 179, 37, 0);
    }
}

.counter-box {
    text-align: center;
}

.counter-number {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-blue);
}

.counter-label {
    font-size: 0.8rem;
    color: #888;
}

/* Features */
.features-section {
    padding: 80px 0;
    background: #FAFAFA;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary-blue);
    margin-bottom: 60px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background: white;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.3s;
}

.feature-card:hover {
    transform: translateY(-10px);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

/* Smart Card Redesign */
.smart-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 215, 0, 0.1);
    border-radius: 30px;
    padding: 0;
    overflow: hidden;
    position: relative;
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 30px rgba(0, 78, 137, 0.05);
}

.smart-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 25px 60px rgba(0, 78, 137, 0.12);
    border-color: var(--accent-gold);
}

.smart-card-image-wrapper {
    width: 100%;
    height: 300px;
    background: #f0f4f8;
    overflow: hidden;
    position: relative;
}

.smart-card-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.smart-card:hover .smart-card-image-wrapper img {
    transform: scale(1.05);
}

.smart-card-content {
    padding: 40px;
    text-align: right;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.smart-card-label {
    display: inline-block;
    background: rgba(255, 215, 0, 0.15);
    color: var(--primary-blue);
    padding: 6px 15px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 800;
    align-self: flex-start;
    margin-bottom: 5px;
}

.smart-card h3 {
    font-size: 1.8rem;
    color: var(--primary-blue);
    font-weight: 800;
    line-height: 1.3;
}

.smart-card p {
    color: #555;
    line-height: 1.8;
    font-size: 1.1rem;
}

.smart-card-accent {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(to left, var(--accent-gold), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.smart-card:hover .smart-card-accent {
    opacity: 1;
}

/* Security Section (Dark) */
.security-section {
    background: var(--primary-blue);
    color: white;
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.security-layout {
    display: flex;
    align-items: center;
    gap: 50px;
}

.security-text {
    flex: 1;
}

.security-visual {
    flex: 1;
}

.glass-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 30px;
}

.mock-notification {
    background: white;
    border-radius: 12px;
    padding: 15px;
    color: #333;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.notif-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 10px;
}

.notif-body {
    font-weight: 500;
    margin-bottom: 15px;
}

.notif-actions {
    display: flex;
    gap: 10px;
}

.notif-actions button {
    flex: 1;
    padding: 8px;
    border: none;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
}

.btn-approve {
    background: var(--primary-blue);
    color: white;
}

.btn-decline {
    background: #f0f0f0;
    color: #333;
}

/* App Teaser */
.app-teaser {
    padding: 100px 0;
    background: white;
}

.app-mockup-wrapper {
    margin: 50px 0;
    display: flex;
    justify-content: center;
}

.phone-mockup {
    width: 300px;
    height: 600px;
    border-radius: 40px;
    border: 10px solid #333;
    overflow: hidden;
    position: relative;
    background: #000;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.screen-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.waitlist-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.badge-placeholder {
    background: #eee;
    color: #666;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 0.9rem;
    border: 1px dashed #ccc;
    margin-top: 10px;
}

/* Footer */
footer {
    background: #f8f8f8;
    padding: 40px 0;
    text-align: center;
    font-size: 0.9rem;
    color: #666;
}

.footer-links a {
    color: var(--primary-blue);
    margin: 0 10px;
}

/* Payment Section */
.payments-section {
    padding: 60px 0;
    background: white;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.payment-label {
    color: var(--primary-blue);
    margin-bottom: 30px;
    font-weight: 700;
    font-size: 1.2rem;
    opacity: 0.8;
}

.payment-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 40px;
}

.payment-logos img {
    height: 60px;
    /* Increased from 40px */
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all 0.3s;
}

.payment-logos img:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
}



/* Mobile Responsive */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        display: none; /* Controlled by JS */
        border-top: 1px solid #eee;
    }

    .main-nav.open,
    .main-nav.active {
        display: flex !important;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }

    .hero-bg {
        width: 100%;
        height: 50%;
        top: 0;
        opacity: 0.2;
    }

    .hero-3d-visual {
        left: 50%;
        transform: translate(-50%, -50%);
        width: 100%;
    }

    .hero-content {
        justify-content: center;
    }

    .hero-text {
        width: 100%;
        text-align: center;
        padding-top: 200px;
        /* Space for image */
    }

    h1 {
        font-size: 2.5rem;
    }

    .hero-cta-group {
        flex-direction: column;
        justify-content: center;
    }

    .security-layout {
        flex-direction: column;
    }
}

/* FAQ Section */
.faq-section {
    padding: 80px 0;
    background: #fdfdfd;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    margin-bottom: 15px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #eee;
}

.faq-question {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    background: white;
}

.faq-question h3 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--primary-blue);
    font-weight: 700;
}

.faq-icon {
    font-size: 1.5rem;
    color: var(--accent-gold);
    transition: transform 0.3s ease;
    font-weight: 300;
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease;
    background: #fafafa;
    color: #555;
    line-height: 1.6;
}

/* Active State for FAQ */
.faq-item.active {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    border-color: var(--primary-blue);
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
    color: var(--primary-blue);
}

.faq-item.active .faq-answer {
    max-height: 200px;
    /* Arbitrary large height */
    padding: 20px;
    border-top: 1px solid #eee;
}

/* Navigation */
.main-nav ul {
    list-style: none;
    display: flex;
    gap: 30px;
}

.nav-link {
    color: #555;
    font-weight: 500;
    transition: color 0.3s;
    font-size: 1.1rem;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-blue);
    font-weight: 700;
}

/* About Us Page */
.about-section {
    padding: 120px 0 80px;
    min-height: 80vh;
    background: linear-gradient(135deg, #fdfbfb 0%, #ebedee 100%);
}

.about-title {
    text-align: center;
    font-size: 3rem;
    color: var(--primary-blue);
    margin-bottom: 60px;
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
}

.about-card {
    background: white;
    padding: 40px;
    border-radius: 20px;
    margin-bottom: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.about-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 6px;
    height: 100%;
    background: var(--accent-gold);
}

.about-card h2 {
    color: var(--primary-blue);
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.about-card p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
}

/* How it Works */
.how-it-works {
    padding: 100px 0;
    background: white;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.step-card {
    position: relative;
    padding: 40px 30px;
    background: #fdfdfd;
    border-radius: 20px;
    border: 1px solid #eee;
    transition: transform 0.3s ease;
}

.step-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent-gold);
}

.step-number {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    background: var(--primary-blue);
    color: var(--accent-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.2rem;
    box-shadow: 0 4px 10px rgba(0, 78, 137, 0.3);
}

.step-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.step-card h3 {
    color: var(--primary-blue);
    margin-bottom: 15px;
    font-size: 1.4rem;
}

.step-card p {
    color: #666;
    line-height: 1.6;
}

/* Contact Us Page */
.contact-section {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, #fdfbfb 0%, #ebedee 100%);
    min-height: 90vh;
    display: flex;
    align-items: center;
}

.contact-card {
    max-width: 600px;
    margin: 0 auto;
    padding: 50px;
}

.contact-header {
    margin-bottom: 40px;
}

.contact-header p {
    color: #666;
    margin-top: 10px;
}

.contact-form {
    display: grid;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.form-group label {
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--primary-blue);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 16px;
    border-radius: 8px;
    border: 1px solid #ddd;
    background: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
    background: white;
}


/* --- New Viaggio General Landing Page Styles --- */

.hero-bg-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.6) 100%);
    z-index: 0;
}

.hero-full-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-section .hero-bg {
    width: 100%;
    left: 0;
}

.hero-section .hero-content {
    justify-content: center;
    z-index: 1;
}

.hero-section .hero-text {
    width: 100%;
    text-align: center;
    direction: rtl;
    margin: 0;
    padding: 0;
}

.hero-logo {
    height: 80px;
    margin-bottom: 20px;
    filter: drop-shadow(0 2px 10px rgba(0,0,0,0.3));
}

.hero-main-title {
    color: white;
    font-size: 4rem;
    text-shadow: 0 2px 15px rgba(0,0,0,0.5);
}

.hero-section .hero-sub {
    color: #e0e0e0;
    font-size: 1.4rem;
    max-width: 600px;
    margin: 0 auto 40px auto;
    text-shadow: 0 1px 5px rgba(0,0,0,0.5);
}

.horizontal-cta {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.btn-store {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    border: 1px solid rgba(255,255,255,0.2);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.btn-store:hover {
    transform: translateY(-3px);
    background: black;
    border-color: var(--accent-gold);
}

.btn-store img {
    height: 30px;
}

.store-text {
    display: flex;
    flex-direction: column;
    text-align: left;
    line-height: 1.1;
}

.store-text span {
    font-size: 0.7rem;
    opacity: 0.8;
}

.store-text strong {
    font-size: 1.1rem;
    font-family: -apple-system, sans-serif;
}

/* Featured Section */
.featured-section {
    padding: 80px 0;
    background: #fdfdfd;
}

.section-subtitle {
    color: #666;
    margin-top: -40px;
    margin-bottom: 40px;
}

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

.property-card {
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s;
}

.property-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-gold);
}

.property-img {
    height: 200px;
    background: #eee;
    overflow: hidden;
}

.property-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.property-card:hover .property-img img {
    transform: scale(1.05);
}

.property-info {
    padding: 20px;
}

.property-title {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--primary-blue);
    margin-bottom: 5px;
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background: white;
    width: 90%;
    max-width: 600px;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s;
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-content img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.modal-details {
    padding: 30px;
    text-align: center;
}

.close-modal {
    position: absolute;
    top: 15px; right: 15px;
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    border-radius: 50%;
    width: 35px; height: 35px;
    font-size: 20px;
    cursor: pointer;
    z-index: 10;
}

/* Buttons */
.btn-primary-small {
    background: var(--primary-blue);
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: bold;
    transition: background 0.3s;
    border: none;
    cursor: pointer;
}

.btn-primary-small:hover {
    background: var(--accent-gold);
    color: var(--primary-blue);
}

.btn-outline-gold {
    display: inline-block;
    padding: 12px 24px;
    border: 2px solid var(--accent-gold);
    color: var(--accent-gold);
    border-radius: 8px;
    font-weight: bold;
    margin-top: 20px;
    transition: all 0.3s;
}

.btn-outline-gold:hover {
    background: var(--accent-gold);
    color: var(--primary-blue);
}

/* Host Section */
.host-section {
    padding: 100px 0;
    background: var(--primary-blue);
    color: white;
}

.host-layout {
    display: flex;
    align-items: center;
    gap: 50px;
}

.host-text {
    flex: 1;
}

.host-badge {
    background: rgba(255, 215, 0, 0.2);
    color: var(--accent-gold);
    padding: 5px 15px;
    border-radius: 50px;
    display: inline-block;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.host-benefits {
    list-style: none;
    margin-top: 20px;
}

.host-benefits li {
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.icon-check {
    color: var(--accent-gold);
    margin-left: 10px;
}

@media (max-width: 768px) {
    .horizontal-cta {
        flex-direction: column;
    }
    .host-layout {
        flex-direction: column;
    }
    .hero-main-title {
        font-size: 2.5rem;
    }
}

