/* 
   Project: Dubai Business Expansion Website 
   Theme: Modern Corporate, Premium, Blue & Gold
*/

:root {
    --primary-blue: #002366;
    /* Royal Blue */
    --secondary-blue: #0047AB;
    /* Brighter Blue */
    --accent-gold: #D4AF37;
    /* Gold */
    --accent-gold-light: #F4C430;
    --text-dark: #333333;
    --text-light: #666666;
    --white: #FFFFFF;
    --bg-light: #F9FAFB;
    --bg-gradient: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 15px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 25px rgba(0, 0, 0, 0.15);
    --radius: 8px;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    color: var(--text-dark);
    background-color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.text-gold {
    color: var(--accent-gold);
}

.text-center {
    text-align: center;
}

.bg-light {
    background-color: var(--bg-light);
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.btn-primary {
    background: linear-gradient(90deg, var(--primary-blue), var(--secondary-blue));
    color: var(--white);
    box-shadow: 0 4px 15px rgba(0, 35, 102, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 35, 102, 0.4);
}

.btn-outline {
    background: transparent;
    border-color: var(--white);
    color: var(--white);
}

.btn-outline:hover {
    background: var(--white);
    color: var(--primary-blue);
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--primary-blue);
    color: var(--primary-blue);
}

.btn-secondary:hover {
    background: var(--primary-blue);
    color: var(--white);
}

.btn-gold {
    background: linear-gradient(90deg, var(--accent-gold), var(--accent-gold-light));
    color: var(--primary-blue);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
}

.btn-gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(212, 175, 55, 0.5);
}

/* --- Navigation --- */
.navbar {
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    padding: 0.2rem 0;
    /* Reduced padding */
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.3rem;
    /* Slightly smaller text */
    font-weight: 800;
    color: var(--primary-blue);
    display: flex;
    align-items: center;
    gap: 8px;
    /* Tighter gap */
}

.logo-img {
    height: 60px;
    /* Reduced from 85px */
    width: auto;
    max-height: 100%;
}

.logo-text {
    background: linear-gradient(90deg, var(--accent-gold), var(--primary-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
}

.nav-links a:not(.btn-nav):hover {
    color: var(--accent-gold);
}

.nav-links a.active {
    color: var(--primary-blue);
    font-weight: 600;
}

.btn-nav {
    padding: 10px 25px;
    background: var(--primary-blue);
    color: var(--white);
    border-radius: 4px;
    font-size: 0.9rem;
}

.btn-nav:hover {
    background: var(--secondary-blue);
    color: var(--white);
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    color: var(--primary-blue);
    cursor: pointer;
}

/* --- Hero Section --- */
.hero {
    position: relative;
    height: 90vh;
    display: flex;
    align-items: center;
    background: linear-gradient(rgba(0, 35, 102, 0.7), rgba(0, 35, 102, 0.5)), url('../images/hero_bg.png');
    /* Will fallback to gradient if image missing */
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    /* Parallax effect */
    color: var(--white);
    text-align: left;
}

/* Fallback for hero if image not generated */
.hero {
    background-color: var(--primary-blue);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(0, 35, 102, 0.9) 0%, rgba(0, 0, 0, 0.3) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    animation: fadeInUp 1s ease-out;
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.2;
    color: var(--white);
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
}

.scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--white);
    font-size: 2rem;
    animation: bounce 2s infinite;
}

/* --- Section Styles --- */
.section {
    padding: 80px 0;
}

.section-header {
    margin-bottom: 60px;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.title-underline {
    width: 60px;
    height: 4px;
    background: var(--accent-gold);
    margin: 0 auto 20px;
}

.section-desc {
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* --- Why Dubai --- */
.why-dubai {
    background: linear-gradient(rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.9)), url('../images/why_dubai_bg.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-card {
    background: var(--white);
    padding: 30px;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid #eee;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-gold);
}

.icon-box {
    width: 70px;
    height: 70px;
    background: rgba(212, 175, 55, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--accent-gold);
    font-size: 1.8rem;
    transition: var(--transition);
}

.feature-card:hover .icon-box {
    background: var(--accent-gold);
    color: var(--white);
}

/* --- Services Preview --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    border-bottom: 3px solid transparent;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-bottom-color: var(--accent-gold);
}

.service-icon {
    font-size: 2.5rem;
    color: var(--primary-blue);
    margin-bottom: 20px;
}

.read-more {
    display: inline-block;
    margin-top: 20px;
    color: var(--accent-gold);
    font-weight: 600;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.read-more i {
    /* Arrow icon */
    transition: transform 0.3s;
}

.service-card:hover .read-more i {
    transform: translateX(5px);
}

/* --- Process Section --- */
.process-section {
    background: var(--white);
    position: relative;
}

.timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 40px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #e0e0e0;
    z-index: 0;
    display: none;
    /* Hidden on mobile */
}

@media (min-width: 768px) {
    .timeline::before {
        display: block;
    }
}

.timeline-item {
    position: relative;
    z-index: 1;
    text-align: center;
    flex: 1;
    min-width: 200px;
}

.timeline-number {
    width: 80px;
    height: 80px;
    background: var(--white);
    border: 2px solid var(--accent-gold);
    color: var(--primary-blue);
    font-size: 1.5rem;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: 0 0 0 5px rgba(212, 175, 55, 0.1);
    transition: var(--transition);
}

.timeline-item:hover .timeline-number {
    background: var(--accent-gold);
    color: var(--white);
    transform: scale(1.1);
}

.timeline-content h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

/* --- CTA Section --- */
.cta-section {
    background: linear-gradient(rgba(0, 35, 102, 0.9), rgba(0, 35, 102, 0.9)), url('../svg/cta_bg.svg');
    /* Fallback needed */
    background-color: var(--primary-blue);
    color: var(--white);
    padding: 100px 0;
}

.cta-section h2 {
    color: var(--white);
    font-size: 3rem;
    margin-bottom: 20px;
}

.cta-section p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.9;
}

/* --- Footer --- */
.footer {
    background: #001538;
    /* Darker than primary blue */
    color: rgba(255, 255, 255, 0.7);
    padding-top: 80px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    padding-bottom: 60px;
}

.footer-logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--white);
    display: block;
    margin-bottom: 20px;
}

.footer h4 {
    color: var(--white);
    margin-bottom: 25px;
    font-size: 1.1rem;
}

.footer ul li {
    margin-bottom: 15px;
}

.footer ul li a {
    transition: color 0.3s;
}

.footer ul li a:hover {
    color: var(--accent-gold);
}

.contact-info li {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.contact-info i {
    color: var(--accent-gold);
    margin-top: 5px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--white);
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--accent-gold);
    color: var(--primary-blue);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 30px 0;
    text-align: center;
    font-size: 0.9rem;
}

/* --- Animations --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0) translateX(-50%);
    }

    40% {
        transform: translateY(-10px) translateX(-50%);
    }

    60% {
        transform: translateY(-5px) translateX(-50%);
    }
}

/* --- About Us Section --- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.about-image img {
    width: 100%;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
}

.about-image img:hover {
    transform: scale(1.02);
}

/* --- Responsive Design --- */

/* Tablet View (768px - 1024px) */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 2.8rem;
    }

    .hero {
        height: 80vh;
    }

    .section-title {
        font-size: 2.2rem;
    }
}

/* Mobile View (< 768px) */
@media (max-width: 768px) {
    .hide-on-mobile {
        display: none !important;
    }

    .hide-on-desktop {
        display: block;
    }

    /* Navigation */
    .nav-links {
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: var(--white);
        flex-direction: column;
        padding: 30px;
        box-shadow: var(--shadow-md);
        clip-path: circle(0% at 100% 0);
        transition: clip-path 0.5s ease-in-out;
    }

    .nav-links.active {
        clip-path: circle(140% at 100% 0);
    }

    .menu-toggle {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: 45px;
        height: 45px;
        cursor: pointer;
        z-index: 1100;
        background: rgba(0, 35, 102, 0.05);
        border-radius: 50%;
        transition: var(--transition);
    }

    .menu-toggle:hover {
        background: rgba(0, 35, 102, 0.1);
    }

    .menu-toggle i {
        font-size: 1.4rem;
        color: var(--primary-blue);
        transition: transform 0.3s ease;
    }

    /* Active state for menu toggle (optional if you add JS to toggle 'active' class on button) */
    .menu-toggle.active i {
        transform: rotate(90deg);
        color: var(--accent-gold);
    }

    /* Hero Section */
    .hero {
        height: 55vh;
        /* Reduced from 70vh */
        background-attachment: scroll;
        /* Disable parallax on mobile for performance */
        display: flex;
        align-items: center;
        /* Ensure vertical centering */
        justify-content: center;
    }

    .hero-title {
        font-size: 1.8rem;
        /* Slightly smaller title */
    }

    .hero-subtitle {
        font-size: 0.95rem;
        margin-bottom: 20px;
        /* tighten spacing */
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .hero-buttons .btn {
        width: 100%;
        text-align: center;
    }

    /* Typography & Layout */
    .cta-section h2 {
        font-size: 2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    /* Page Headers (About, Services, etc.) */
    .page-header {
        padding: 60px 0;
        /* Reduced padding */
        min-height: auto;
    }

    .page-header h1 {
        font-size: 2rem !important;
        /* Force smaller size */
    }

    .page-header p {
        font-size: 1rem !important;
        /* Force smaller size */
    }

    /* About Section */
    .about-grid {
        grid-template-columns: 1fr;
    }

    .about-image {
        order: -1;
        /* Image first on mobile */
        margin-bottom: 30px;
    }

    /* Mobile Menu Contact & Social */
    .mobile-menu-extras {
        margin-top: 30px;
        border-top: 1px solid #eee;
        padding-top: 20px;
    }

    .mobile-contact {
        display: flex;
        flex-direction: column;
        gap: 15px;
        margin-bottom: 20px;
        color: var(--primary-blue);
        font-weight: 500;
    }

    .mobile-contact a,
    .mobile-contact span {
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .mobile-contact i {
        color: var(--accent-gold);
        width: 20px;
        text-align: center;
    }

    .mobile-social {
        display: flex;
        gap: 20px;
        justify-content: center;
    }

    .mobile-social a {
        width: 35px;
        height: 35px;
        background: var(--bg-light);
        color: var(--primary-blue);
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        transition: var(--transition);
    }

    .mobile-social a:hover {
        background: var(--accent-gold);
        color: var(--white);
    }
}

/* --- Top Bar --- */
.top-bar {
    background-color: var(--primary-blue);
    color: var(--white);
    padding: 10px 0;
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 100%;
    padding: 0 40px;
}

.top-bar-contact {
    display: flex;
    align-items: center;
    gap: 20px;
}

.top-bar-contact span,
.top-bar-contact a {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--white);
    font-size: 0.85rem;
    font-weight: 500;
}

.top-bar-contact i {
    color: var(--accent-gold);
}

.top-bar-social {
    display: flex;
    gap: 30px;
}

.top-bar-social a {
    color: var(--white);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.top-bar-social a:hover {
    color: var(--accent-gold);
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .top-bar {
        display: none;
        /* Hiding on mobile to avoid clutter, as per common pattern, or user can request otherwise */
    }
}

.hide-on-desktop {
    display: none;
}

@media (max-width: 768px) {
    .hide-on-desktop {
        display: block;
    }
}