/* ===================================
   DUBAI BALLOONING - MAIN STYLES
   =================================== */
/* 1. Define Header Heights in Variables */
:root {
    --header-top-bar-height: 40px;
    --header-main-nav-height: 72px; /* Approx. height of main nav bar */
    --header-total-desktop-height: calc(var(--header-top-bar-height) + var(--header-main-nav-height));
    
    /* Mobile header height is dynamic, so we'll set it in the media query */
}

/* 2. Remove Margin from Carousel and Fix Height */
.carousel {
    margin-top: 0 !important;
}

.hero-slide {
    /* This is the key fix: calculate the correct height */
    height: calc(100vh - var(--header-total-desktop-height));
    background-attachment: scroll !important; /* Fixed attachment can cause issues on mobile */
}
/* CSS Custom Properties (Colors) */
:root {
    --primary-color: #FF6B35;        /* Orange from logo */
    --primary-dark: #E55A2B;         /* Darker orange */
    --primary-light: #FF8555;        /* Lighter orange */
    --secondary-color: #2C5F7D;      /* Blue-gray */
    --secondary-dark: #1E4152;       /* Darker blue-gray */
    --secondary-light: #4A7A99;      /* Lighter blue-gray */
    --accent-color: #FFD700;         /* Gold accent */
    --text-dark: #333333;
    --text-light: #666666;
    --text-muted: #888888;
    --white: #FFFFFF;
    --light-gray: #F8F9FA;
    --border-color: #E9ECEF;
}

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    font-size: 16px;
}

/* Custom Utility Classes */
.text-primary-custom { color: var(--primary-color) !important; }
.text-secondary-custom { color: var(--secondary-color) !important; }
.bg-primary-custom { background-color: var(--primary-color) !important; }
.bg-secondary-custom { background-color: var(--secondary-color) !important; }

/* Button Styles */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    font-weight: 500;
    padding: 12px 30px;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
    font-weight: 500;
    padding: 12px 30px;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

/* ===================================
   NAVBAR STYLES
   =================================== */
.navbar {
    padding: 15px 0;
    transition: all 0.3s ease;
    z-index: 1030;
}

.navbar.scrolled {
    padding: 10px 0;
    background-color: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
}

.navbar-brand {
    margin-right: 50px;
}

.logo-container {
    display: flex;
    align-items: center;
    line-height: 1;
}

.logo-image {
    height: 50px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
    transition: all 0.3s ease;
}

.logo-image:hover {
    transform: scale(1.05);
}

.logo-text {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: 1px;
}

.logo-subtext {
    font-size: 12px;
    font-weight: 400;
    color: var(--secondary-color);
    margin-top: -2px;
    letter-spacing: 0.5px;
}

.navbar-nav .nav-link {
    font-weight: 500;
    color: var(--text-dark);
    margin: 0 8px;
    padding: 8px 16px !important;
    transition: all 0.3s ease;
    border-radius: 25px;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary-color);
    background-color: rgba(255, 107, 53, 0.1);
}

.dropdown-menu {
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    padding: 10px;
    margin-top: 10px;
}

.dropdown-item {
    padding: 8px 16px;
    border-radius: 5px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.navbar-contact {
    border-left: 2px solid var(--border-color);
    padding-left: 20px;
    margin-left: 20px;
}

.contact-info {
    text-align: right;
}

.contact-phone {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    font-size: 14px;
}

.contact-phone:hover {
    color: var(--primary-dark);
}

.social-links {
    display: flex;
    gap: 8px;
}

.social-link {
    width: 43px;
    height: 43px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 18px;
    margin-right: 0;
}

.social-link.whatsapp-icon {
    background-color: #25D366;
    color: white;
}

.social-link.twitter-icon {
    background-color: #1DA1F2;
    color: white;
}

.social-link.instagram-icon {
    background: linear-gradient(45deg, #f09433 0%,#e6683c 25%,#dc2743 50%,#cc2366 75%,#bc1888 100%);
    color: white;
}

.social-link:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* ===================================
   HERO CAROUSEL STYLES
   =================================== */
.carousel {
    margin-top: 20px;
}

.hero-slide {
    height: 100vh;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    position: relative;
}

.hero-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.2), rgba(44, 95, 125, 0.3));
    z-index: 1;
}

.hero-slide .container {
    position: relative;
    z-index: 2;
}

.hero-content {
    animation: slideInUp 1s ease-out;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 30px;
    font-weight: 300;
    max-width: 500px;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

/* Chat Widget */
.chat-widget {
    background: var(--white);
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    max-width: 350px;
    margin-left: auto;
    animation: slideInRight 1s ease-out 0.3s both;
}

.chat-header h5 {
    color: var(--text-dark);
    font-weight: 600;
    margin-bottom: 5px;
}

.chat-header p {
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 20px;
}

.chat-form .form-control {
    border: 2px solid var(--border-color);
    border-radius: 25px;
    padding: 12px 20px;
    font-size: 14px;
}

.chat-form .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(255, 107, 53, 0.25);
}

.chat-form .btn {
    border-radius: 25px;
    padding: 12px 20px;
}

/* Carousel Controls */
.carousel-control-prev,
.carousel-control-next {
    width: 50px;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    /*top: 50%;*/
    transform: translateY(-50%);
    opacity: 0.8;
    transition: all 0.3s ease;
}

.carousel-control-prev {
    left: 30px;
}

.carousel-control-next {
    right: 30px;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    background-color: var(--primary-color);
    opacity: 1;
}

.carousel-indicators {
    bottom: 30px;
}

.carousel-indicators [data-bs-target] {
    width: 50px;
    height: 4px;
    border-radius: 2px;
    background-color: rgba(255, 255, 255, 0.5);
    border: none;
    margin: 0 5px;
    transition: all 0.3s ease;
}

.carousel-indicators [data-bs-target].active {
    background-color: var(--primary-color);
    width: 80px;
}

/* ===================================
   ANIMATIONS
   =================================== */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ===================================
   RESPONSIVE STYLES
   =================================== */
@media (max-width: 991.98px) {
    .navbar-contact {
        border-left: none;
        padding-left: 0;
        margin-left: 0;
        margin-top: 20px;
        padding-top: 20px;
        border-top: 1px solid var(--border-color);
        justify-content: center;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .chat-widget {
        margin-top: 30px;
        max-width: 100%;
    }
    
    .hero-buttons {
        justify-content: center;
    }
}

@media (max-width: 767.98px) {
    /*.carousel {*/
    /*    margin-top: 70px;*/
    /*}*/
    
    .hero-slide {
        height: 80vh;
        background-attachment: scroll;
    }
    
    .hero-title {
        font-size: 2rem;
        text-align: center;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        text-align: center;
    }
    
    .carousel-control-prev,
    .carousel-control-next {
        display: none;
    }
    
    .logo-text {
        font-size: 20px;
    }
    
    .navbar-nav .nav-link {
        margin: 0;
        padding: 10px 16px !important;
    }
}

@media (max-width: 575.98px) {
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-lg {
        width: 100%;
        max-width: 250px;
    }
    
    .chat-widget {
        padding: 20px;
    }
}


/* ===================================
   HEADER & GAP FIX (ADD TO main.css)
   =================================== */

/* 1. The Gap Fix */
.page-content-start,
.carousel {
    margin-top: 0 !important;
}

/* 2. Main Navbar Tweaks for Integration */
.main-navbar {
    padding-top: 10px;
    padding-bottom: 10px;
}

/* 3. Mobile Offcanvas Styles */
.offcanvas-contact-primary {
    text-align: center;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
}
.offcanvas-contact-primary .support-text {
    font-size: 14px;
    display: block;
    color: var(--text-light);
}
.offcanvas-contact-primary .contact-phone-mobile {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
}
.mobile-nav-section .nav-link {
    color: var(--text-dark);
    font-size: 1.1rem;
    font-weight: 600;
    padding: 0.75rem 0;
    text-align: center;
}
.mobile-nav-section .nav-link:hover {
    color: var(--primary-color);
}
.offcanvas-contact-secondary {
    text-align: center;
    border-top: 1px solid var(--border-color);
    padding-top: 1rem;
}
.offcanvas-contact-secondary .email-link {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
}
.offcanvas-contact-secondary .email-link:hover {
    color: var(--primary-color);
}