/* UAE eVisa Website - Main Stylesheet */

/* ===== CSS VARIABLES (UAE Flag Colors) ===== */
:root {
    /* UAE Flag Colors */
    --uae-red: #CE1126;
    --uae-green: #009639;
    --uae-white: #FFFFFF;
    --uae-black: #000000;
    
    /* Primary Theme Colors */
    --primary-color: #CE1126;
    --secondary-color: #009639;
    --accent-color: #B8860B;
    --dark-color: #1a1a1a;
    --light-color: #f8f9fa;
    
    /* Neutral Colors */
    --gray-100: #f8f9fa;
    --gray-200: #e9ecef;
    --gray-300: #dee2e6;
    --gray-400: #ced4da;
    --gray-500: #adb5bd;
    --gray-600: #6c757d;
    --gray-700: #495057;
    --gray-800: #343a40;
    --gray-900: #212529;
    
    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-secondary: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    
    /* Spacing */
    --section-padding: 4rem 0;
    --container-padding: 1rem;
    
    /* Shadows */
    --shadow-sm: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    --shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 1rem 3rem rgba(0, 0, 0, 0.175);
    
    /* Border Radius */
    --border-radius: 0.5rem;
    --border-radius-lg: 1rem;
    
    /* Transitions */
    --transition: all 0.3s ease;
    --transition-fast: all 0.15s ease;
}

/* ===== GLOBAL STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--gray-800);
    background-color: var(--uae-white);
    overflow-x: hidden;
}

/* Container Fluid Full Width */
.container-fluid {
    max-width: 100%;
    padding-left: var(--container-padding);
    padding-right: var(--container-padding);
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-secondary);
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1.1rem; }

p {
    margin-bottom: 1rem;
    color: var(--gray-700);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition-fast);
}

a:hover {
    color: var(--secondary-color);
    text-decoration: none;
}

/* ===== BUTTONS ===== */
.btn {
    font-family: var(--font-secondary);
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    border: none;
    transition: var(--transition);
    text-transform: none;
    letter-spacing: 0.025em;
    position: relative;
    overflow: hidden;
}

.btn i {
    margin-right: 0.5rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, #e31837 100%);
    color: var(--uae-white);
    box-shadow: var(--shadow);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #b50e23 0%, var(--primary-color) 100%);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: var(--uae-white);
}

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    color: var(--uae-white);
    transform: translateY(-2px);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--secondary-color) 0%, #00a63d 100%);
    color: var(--uae-white);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #008530 0%, var(--secondary-color) 100%);
    transform: translateY(-2px);
    color: var(--uae-white);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

/* ===== TOP BAR ===== */
.top-bar {
    background: linear-gradient(90deg, var(--dark-color) 0%, var(--gray-800) 100%);
    color: var(--uae-white);
    padding: 0.5rem 0;
    font-size: 0.875rem;
}

.top-bar .contact-info span {
    margin-right: 1.5rem;
    display: inline-flex;
    align-items: center;
}

.top-bar .contact-info i {
    margin-right: 0.5rem;
    color: var(--primary-color);
}

.top-links a {
    color: var(--gray-300);
    margin-left: 1rem;
    transition: var(--transition-fast);
    display: inline-flex;
    align-items: center;
}

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

.top-links i {
    margin-right: 0.25rem;
}

.language-selector {
    display: inline-block;
    margin-left: 1rem;
}

.language-selector select {
    background: var(--gray-700);
    border: 1px solid var(--gray-600);
    color: var(--uae-white);
    font-size: 0.8rem;
    padding: 0.25rem 0.5rem;
}

/* ===== MAIN HEADER ===== */
.main-header {
    background: var(--uae-white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar {
    padding: 1rem 0;
}

.navbar-brand {
    display: flex;
    align-items: center;
    font-family: var(--font-secondary);
    font-weight: 700;
    color: var(--dark-color) !important;
    text-decoration: none;
}

.logo-img {
    height: 40px;
    margin-right: 0.75rem;
}

.logo-text strong {
    color: var(--primary-color);
    font-size: 1.5rem;
}

.logo-text small {
    display: block;
    font-size: 0.75rem;
    color: var(--gray-600);
    font-weight: 400;
    line-height: 1;
}

.navbar-nav .nav-link {
    font-weight: 500;
    color: var(--gray-700) !important;
    padding: 0.75rem 1rem !important;
    transition: var(--transition-fast);
    border-radius: var(--border-radius);
    margin: 0 0.25rem;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary-color) !important;
    background: rgba(206, 17, 38, 0.1);
}

.navbar-nav .nav-link i {
    margin-right: 0.5rem;
    font-size: 0.9rem;
}

/* Dropdown Menus */
.dropdown-menu {
    border: none;
    box-shadow: var(--shadow-lg);
    border-radius: var(--border-radius);
    padding: 0.5rem 0;
    margin-top: 0.5rem;
}

.dropdown-item {
    padding: 0.75rem 1.5rem;
    color: var(--gray-700);
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
}

.dropdown-item i {
    margin-right: 0.75rem;
    width: 16px;
    color: var(--primary-color);
}

.dropdown-item:hover {
    background: rgba(206, 17, 38, 0.1);
    color: var(--primary-color);
}

.dropdown-divider {
    margin: 0.5rem 0;
    border-color: var(--gray-200);
}

/* Navbar CTA */
.navbar-cta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Mobile Navbar Toggle */
.navbar-toggler {
    border: none;
    padding: 0.5rem;
    background: var(--gray-100);
    border-radius: var(--border-radius);
}

.navbar-toggler:focus {
    box-shadow: none;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2833, 37, 41, 0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='m4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ===== BREADCRUMB ===== */
.breadcrumb-nav {
    background: var(--gray-100);
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--gray-200);
}

.breadcrumb {
    margin: 0;
    background: none;
    padding: 0;
}

.breadcrumb-item a {
    color: var(--gray-600);
    text-decoration: none;
}

.breadcrumb-item a:hover {
    color: var(--primary-color);
}

.breadcrumb-item.active {
    color: var(--gray-800);
}

.breadcrumb-item + .breadcrumb-item::before {
    content: ">";
    color: var(--gray-500);
}

/* ===== MAIN CONTENT ===== */
.main-content {
    min-height: calc(100vh - 200px);
}

/* ===== SECTIONS ===== */
.section {
    padding: var(--section-padding);
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    position: relative;
}

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

.section-subtitle {
    font-size: 1.1rem;
    color: var(--gray-600);
    max-width: 600px;
    margin: 0 auto;
}

/* ===== CARDS ===== */
.card {
    border: none;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow);
    transition: var(--transition);
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.card-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--uae-white);
    border: none;
    padding: 1.5rem;
}

.card-body {
    padding: 2rem;
}

.card-title {
    font-family: var(--font-secondary);
    font-weight: 600;
    margin-bottom: 1rem;
}

.card-text {
    color: var(--gray-600);
    line-height: 1.6;
}

/* ===== HERO SECTION ===== */
.hero-section {
    background: linear-gradient(135deg, rgba(206, 17, 38, 0.9), rgba(0, 150, 57, 0.9)), url('/images/tourism/burj_khalifa_main.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--uae-white);
    padding: 6rem 0;
    text-align: center;
    position: relative;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ===== FEATURES SECTION ===== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    text-align: center;
    padding: 2rem;
    background: var(--uae-white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--uae-white);
    font-size: 2rem;
}

.feature-title {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.feature-description {
    color: var(--gray-600);
    line-height: 1.6;
}

/* ===== STATS SECTION ===== */
.stats-section {
    background: linear-gradient(135deg, var(--dark-color), var(--gray-800));
    color: var(--uae-white);
    padding: 4rem 0;
}

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

.stat-item {
    padding: 1rem;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    display: block;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1.1rem;
    color: black;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ===== FOOTER ===== */
.main-footer {
    background: var(--dark-color);
    color: var(--gray-300);
}

.footer-main {
    padding: 4rem 0 2rem;
}

.footer-widget {
    margin-bottom: 2rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.footer-logo-img {
    height: 35px;
    margin-right: 0.75rem;
}

.footer-logo h5 {
    color: var(--uae-white);
    margin: 0;
    font-weight: 600;
}

.footer-description {
    color: var(--gray-400);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.footer-stats {
    display: flex;
    gap: 1.5rem;
}

.footer-stats .stat-item {
    text-align: center;
}

.footer-stats .stat-item strong {
    display: block;
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: 700;
}

.footer-stats .stat-item span {
    font-size: 0.9rem;
    color: var(--gray-400);
}

.footer-title {
    color: var(--uae-white);
    font-weight: 600;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
}

.footer-title i {
    margin-right: 0.5rem;
    color: var(--primary-color);
}

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

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--gray-400);
    transition: var(--transition-fast);
    text-decoration: none;
}

.footer-links a:hover {
    color: var(--primary-color);
    padding-left: 0.5rem;
}

/* Contact Info */
.contact-info {
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.contact-item i {
    color: var(--primary-color);
    margin-right: 0.75rem;
    margin-top: 0.25rem;
    width: 16px;
}

.contact-item strong {
    color: var(--uae-white);
    display: block;
    margin-bottom: 0.25rem;
}

/* Newsletter */
.newsletter-signup {
    margin-bottom: 2rem;
}

.newsletter-signup p {
    color: var(--gray-400);
    margin-bottom: 1rem;
}

.newsletter-form .input-group {
    margin-bottom: 1rem;
}

.newsletter-form .form-control {
    background: var(--gray-800);
    border: 1px solid var(--gray-600);
    color: var(--uae-white);
}

.newsletter-form .form-control:focus {
    background: var(--gray-700);
    border-color: var(--primary-color);
    color: var(--uae-white);
    box-shadow: 0 0 0 0.2rem rgba(206, 17, 38, 0.25);
}

/* Social Media */
.social-media h6 {
    color: var(--uae-white);
    margin-bottom: 1rem;
}

.social-links {
    display: flex;
    gap: 0.75rem;
}

.social-link {
    width: 40px;
    height: 40px;
    background: var(--gray-800);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-400);
    transition: var(--transition);
    text-decoration: none;
}

.social-link:hover {
    background: var(--primary-color);
    color: var(--uae-white);
    transform: translateY(-2px);
}

.social-link.facebook:hover { background: #1877f2; }
.social-link.twitter:hover { background: #1da1f2; }
.social-link.linkedin:hover { background: #0077b5; }
.social-link.instagram:hover { background: #e4405f; }
.social-link.youtube:hover { background: #ff0000; }

/* Footer Trust */
.footer-trust {
    background: var(--gray-900);
    padding: 1.5rem 0;
    border-top: 1px solid var(--gray-800);
}

.trust-badges {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.trust-item {
    display: flex;
    align-items: center;
    color: var(--gray-400);
}

.trust-item i {
    color: var(--secondary-color);
    margin-right: 0.5rem;
}

.payment-methods {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: var(--gray-400);
}

.payment-icons {
    display: flex;
    gap: 0.5rem;
}

.payment-icons i {
    font-size: 1.5rem;
    color: var(--gray-500);
}

/* Footer Bottom */
.footer-bottom {
    background: var(--gray-900);
    padding: 1.5rem 0;
    border-top: 1px solid var(--gray-800);
}

.copyright p {
    margin: 0;
    color: var(--gray-500);
}

.footer-bottom-links {
    display: flex;
    gap: 1.5rem;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.footer-bottom-links a {
    color: var(--gray-500);
    font-size: 0.9rem;
    transition: var(--transition-fast);
}

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

/* ===== BACK TO TOP BUTTON ===== */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: var(--uae-white);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
    opacity: 0;
    visibility: hidden;
    z-index: 1000;
    box-shadow: var(--shadow-lg);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
}

/* ===== LIVE CHAT WIDGET ===== */
.live-chat-widget {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    z-index: 1000;
}

.chat-toggle {
    width: 60px;
    height: 60px;
    background: var(--secondary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--uae-white);
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-lg);
    position: relative;
}

.chat-toggle:hover {
    background: var(--primary-color);
    transform: scale(1.1);
}

.chat-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--primary-color);
    color: var(--uae-white);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
}

.chat-window {
    position: absolute;
    bottom: 80px;
    left: 0;
    width: 350px;
    background: var(--uae-white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    display: none;
    overflow: hidden;
}

.chat-header {
    background: var(--secondary-color);
    color: var(--uae-white);
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-header h6 {
    margin: 0;
    font-weight: 600;
}

.chat-close {
    background: none;
    border: none;
    color: var(--uae-white);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-body {
    padding: 1rem;
    height: 300px;
    overflow-y: auto;
}

.chat-message {
    margin-bottom: 1rem;
}

.bot-message .message-content {
    background: var(--gray-100);
    padding: 0.75rem;
    border-radius: var(--border-radius);
    max-width: 80%;
}

.chat-footer {
    padding: 1rem;
    border-top: 1px solid var(--gray-200);
}

.chat-footer .form-control {
    border-radius: var(--border-radius);
}

/* ===== UTILITY CLASSES ===== */
.text-primary { color: var(--primary-color) !important; }
.text-secondary { color: var(--secondary-color) !important; }
.bg-primary { background-color: var(--primary-color) !important; }
.bg-secondary { background-color: var(--secondary-color) !important; }
.bg-light-gray { background-color: var(--gray-100) !important; }

.border-primary { border-color: var(--primary-color) !important; }
.border-secondary { border-color: var(--secondary-color) !important; }

.shadow-sm { box-shadow: var(--shadow-sm) !important; }
.shadow { box-shadow: var(--shadow) !important; }
.shadow-lg { box-shadow: var(--shadow-lg) !important; }

.rounded { border-radius: var(--border-radius) !important; }
.rounded-lg { border-radius: var(--border-radius-lg) !important; }

.transition { transition: var(--transition) !important; }
.transition-fast { transition: var(--transition-fast) !important; }

/* Spacing Utilities */
.py-section { padding: var(--section-padding) !important; }
.my-section { margin: var(--section-padding) !important; }

/* Text Utilities */
.font-primary { font-family: var(--font-primary) !important; }
.font-secondary { font-family: var(--font-secondary) !important; }

.fw-medium { font-weight: 500 !important; }
.fw-semibold { font-weight: 600 !important; }

/* Display Utilities */
.d-flex-center {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.d-flex-between {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
}

