/*=======================================================
* Modern UI/UX Enhancements for Huda Travels
* Responsive Design | Accessibility | Performance
=======================================================*/

/* CSS Custom Properties for consistent theming */
:root {
    --primary-color: #143D59;
        --secondary-color: #F4B41A;
    --accent-color: #F4B41A;
    --text-dark: #222222;
    --text-light: #666666;
    --text-muted: #aaa;
    --white: #ffffff;
    --background-light: #f9f9f9;
    --shadow-light: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 5px 20px rgba(0, 0, 0, 0.15);
    --shadow-heavy: 0 10px 30px rgba(0, 0, 0, 0.2);
    --border-radius: 8px;
    --border-radius-large: 16px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --font-family: 'Poppins', sans-serif;
    
    /* Standardized Font Sizes */
    --font-size-xs: 0.75rem;    /* 12px */
    --font-size-sm: 0.875rem;   /* 14px */
    --font-size-base: 1rem;     /* 16px - Standard base size */
    --font-size-lg: 1.125rem;   /* 18px */
    --font-size-xl: 1.25rem;    /* 20px */
    --font-size-2xl: 1.5rem;    /* 24px */
    --font-size-3xl: 1.875rem;  /* 30px */
    --font-size-4xl: 2.25rem;   /* 36px */
    --font-size-5xl: 3rem;      /* 48px */
    
    /* Line Heights */
    --line-height-tight: 1.25;
    --line-height-normal: 1.5;
    --line-height-relaxed: 1.75;
}

/* Modern scroll behavior */
html {
    scroll-behavior: smooth;
    font-size: 16px; /* Set base font size */
}

/* Body base styling with standard font size */
body {
    font-size: var(--font-size-base);
    line-height: var(--line-height-normal);
    font-family: var(--font-family);
    color: var(--text-dark);
}

/* Headings with consistent sizing */
h1 {
    font-size: var(--font-size-4xl);
    line-height: var(--line-height-tight);
    font-weight: 700;
}

h2 {
    font-size: var(--font-size-3xl);
    line-height: var(--line-height-tight);
    font-weight: 600;
}

h3 {
    font-size: var(--font-size-xl);
    line-height: var(--line-height-normal);
    font-weight: 600;
}

h4 {
    font-size: var(--font-size-lg);
    line-height: var(--line-height-normal);
    font-weight: 500;
}

h5, h6 {
    font-size: var(--font-size-base);
    line-height: var(--line-height-normal);
    font-weight: 500;
}

/* Paragraph standardization */
p {
    font-size: var(--font-size-base);
    line-height: var(--line-height-normal);
    margin-bottom: 1rem;
}

/* Small text */
small, .small {
    font-size: var(--font-size-sm);
}

/* Large text */
.lead {
    font-size: var(--font-size-lg);
    line-height: var(--line-height-relaxed);
}

/* Focus improvements for accessibility */
*:focus {
    outline: 2px solid var(--secondary-color);
    outline-offset: 2px;
}

/* Skip navigation for screen readers */
.skip-nav {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--primary-color);
    color: var(--white);
    padding: 8px;
    text-decoration: none;
    z-index: 1000;
    border-radius: var(--border-radius);
}

.skip-nav:focus {
    top: 6px;
}

/* Modern Hero Section Styling */
.hero-section {
    position: relative;
    background: linear-gradient(135deg, rgba(20, 61, 89, 0.8), rgba(244, 180, 26, 0.6)),
                url('../images/home/beach_1920.jpg') center/cover no-repeat;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(20, 61, 89, 0.7), rgba(244, 180, 26, 0.5));
    animation: backgroundShift 20s ease-in-out infinite alternate;
    z-index: 1;
}

@keyframes backgroundShift {
    0% {
        background: linear-gradient(135deg, rgba(20, 61, 89, 0.7), rgba(244, 180, 26, 0.5));
    }
    50% {
        background: linear-gradient(135deg, rgba(20, 61, 89, 0.6), rgba(244, 180, 26, 0.6));
    }
    100% {
        background: linear-gradient(135deg, rgba(20, 61, 89, 0.8), rgba(244, 180, 26, 0.4));
    }
}

.hero-content {
    text-align: center;
    position: relative;
    z-index: 2;
    animation: fadeInUp 1s ease-out;
}

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

.hero-title {
    font-size: clamp(var(--font-size-4xl), 8vw, 5rem);
    font-weight: 700;
    color: var(--white);
    margin-bottom: 1.5rem;
    line-height: var(--line-height-tight);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    animation: slideInFromLeft 1.2s ease-out 0.3s both;
}

@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translateX(-100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero-subtitle {
    font-size: clamp(var(--font-size-base), 2vw, var(--font-size-xl));
    color: var(--white);
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: var(--line-height-relaxed);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    animation: slideInFromRight 1.2s ease-out 0.6s both;
}

@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero-cta {
    margin-top: 2rem;
    animation: bounceIn 1.5s ease-out 0.9s both;
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.cta-link {
    text-decoration: none;
}

.cta-button {
    background: var(--secondary-color);
    border: 2px solid var(--secondary-color);
    color: var(--primary-color);
    padding: 1rem 2.5rem;
    font-size: var(--font-size-lg);
    font-weight: 600;
    border-radius: var(--border-radius-large);
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: var(--shadow-medium);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:hover,
.cta-button:focus {
    background: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: var(--shadow-heavy);
}

.cta-button i {
    transition: var(--transition);
}

.cta-button:hover i {
    transform: translateX(4px);
}

/* Modern Services Section */
.services-section {
    padding: 5rem 0;
    background: var(--white);
}

.section-header {
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: var(--font-size-3xl);
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: capitalize;
}

.section-subtitle {
    font-size: var(--font-size-lg);
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
    line-height: var(--line-height-relaxed);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    padding: 0;
    max-width: 1200px;
    margin: 0 auto;
}

.service-card {
    background: var(--white);
    border-radius: var(--border-radius-large);
    padding: 2.5rem;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    border: 1px solid #f0f0f0;
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    min-height: 180px;
    width: 100%;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-heavy);
    border-color: var(--secondary-color);
}

.service-icon {
    flex-shrink: 0;
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--secondary-color), #ffd700);
    border-radius: var(--border-radius-large);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-light);
    position: relative;
}

.service-image {
    width: 80px !important;
    height: 80px !important;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.service-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

    .service-text h3 {
        font-size: var(--font-size-lg);
        margin-bottom: 1rem;
    }
    
    .hero-title {
        font-size: var(--font-size-3xl);
    }
    
    .hero-subtitle {
        font-size: var(--font-size-base);
    }

.service-text p {
    color: var(--text-light);
    line-height: var(--line-height-relaxed);
    font-size: var(--font-size-base);
    margin: 0;
}

/* Modern Contact Section */
.contact-section {
    padding: 5rem 0;
    background: var(--background-light);
}

.contact-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 3rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.contact-map {
    border-radius: var(--border-radius-large);
    overflow: hidden;
    box-shadow: var(--shadow-medium);
    height: 450px;
    width: 100%;
}

.contact-map iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    height: 450px;
    justify-content: space-between;
}

.contact-item {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius-large);
    display: flex;
    align-items: center;
    gap: 1.5rem;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    flex: 1;
    min-height: 120px;
}

.contact-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.contact-icon {
    width: 60px;
    height: 60px;
    /* background: linear-gradient(135deg, var(--primary-color), var(--accent-color)); */
    background: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon i {
    font-size: 1.5rem;
    color: var(--white);
}

.contact-text {
    flex: 1;
}

.contact-text h3 {
    font-size: var(--font-size-xl);
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.contact-text p {
    color: var(--text-light);
    margin: 0;
    line-height: var(--line-height-normal);
    font-size: var(--font-size-base);
}

.contact-text a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
    font-weight: 500;
}

.contact-text a:hover {
    color: var(--secondary-color);
}

/* Enhanced Header Styling */
.top-area {
    position: fixed !important;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: var(--transition);
}

.header-area {
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid rgba(244, 180, 26, 0.2);
    padding: 0.5rem 0;
}

/* Add top padding to body to compensate for fixed header */
body {
    padding-top: 80px;
}

/* Hero section adjustments */
.hero-section {
    position: relative;
    background: linear-gradient(135deg, rgba(20, 61, 89, 0.8), rgba(244, 180, 26, 0.6)),
                url('../images/home/beach_1920.jpg') center/cover no-repeat;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    z-index: 1;
}

.main-menu .nav li a {
    position: relative;
    font-weight: 500;
    transition: var(--transition);
    font-family: var(--font-family) !important;
}

.main-menu .nav li a:hover {
    transform: translateY(-1px);
}

/* Mobile menu improvements */
@media (max-width: 767px) {
    .navbar-collapse {
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        border-radius: var(--border-radius);
        box-shadow: var(--shadow-medium);
        margin-top: 10px;
        padding: 1rem;
    }
    
    .navbar-collapse.in {
        max-height: 500px;
        overflow-y: auto;
    }
    
    /* Menu overlay for click-outside functionality */
    .navbar-collapse.in::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.3);
        z-index: -1;
        pointer-events: auto;
    }
}

/* Modern Button Styles */
.book-btn {
    background: linear-gradient(135deg, var(--secondary-color), #ffd700);
    border: none;
    color: var(--primary-color);
    font-weight: 600;
    transition: var(--transition);
    box-shadow: var(--shadow-light);
    font-family: var(--font-family) !important;
}

.book-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
    background: linear-gradient(135deg, #ffd700, var(--secondary-color));
}

/* Footer Enhancements */
.footer-copyright {
    background: linear-gradient(135deg, var(--primary-color), #0f2d42);
    color: var(--white);
}

.footer-social-links a {
    transition: var(--transition);
}

.footer-social-links a:hover {
    transform: translateY(-3px) scale(1.05);
}

/* Loading Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.service-card {
    animation: fadeInUp 0.6s ease-out;
}

.service-card:nth-child(even) {
    animation-delay: 0.1s;
}

/* Responsive Improvements */
@media (min-width: 800px) {
    .hero-title {
        font-size: 4rem;
    }
    .hero-subtitle {
        font-size: 1.5rem;
    }

}
/* Responsive Improvements */
@media (max-width: 768px) {
    body {
        padding-top: 70px; /* Smaller header height on mobile */
    }
    
    .header-area {
        padding: 0.25rem 0;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0 15px;
    }
    
    .service-card {
        flex-direction: column;
        text-align: center;
        align-items: center;
        padding: 2rem;
        min-height: auto;
    }
    
    .service-icon {
        margin-bottom: 0;
        width: 120px;
        height: 120px;
    }
    
    .service-image {
        width: 90px;
        height: 90px;
    }
    
    .service-text {
        text-align: center;
        width: 100%;
    }
    
    .service-text h3 {
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }
    
    .contact-info {
        grid-template-columns: 1fr;
        gap: 3rem;
        margin-top: 2rem;
    }
    
    .contact-map {
        height: 300px;
        order: 2;
    }
    
    .contact-details {
        height: auto;
        gap: 1.5rem;
        order: 1;
    }
    
    .contact-item {
        flex-direction: row;
        text-align: left;
        min-height: 100px;
        padding: 1.5rem;
    }
    
    .contact-icon {
        width: 50px;
        height: 50px;
    }
    
    .contact-icon i {
        font-size: 1.2rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    body {
        padding-top: 65px; /* Even smaller on very small screens */
    }
    
    .services-grid {
        padding: 0 10px;
        gap: 1rem;
    }
    
    .service-card {
        padding: 1.5rem;
        gap: 1rem;
    }
    
    .service-icon {
        width: 100px;
        height: 100px;
    }
    
    .service-image {
        width: 70px;
        height: 70px;
    }
    
    .service-text h3 {
        font-size: var(--font-size-base);
    }
    
    .service-text p {
        font-size: var(--font-size-sm);
    }
    
    .contact-item {
        padding: 1.25rem;
        min-height: 90px;
    }
    
    .contact-icon {
        width: 45px;
        height: 45px;
    }
    
    .contact-icon i {
        font-size: 1.1rem;
    }
    
    .contact-text h3 {
        font-size: var(--font-size-lg);
    }
    
    .contact-text p {
        font-size: var(--font-size-sm);
    }
    
    .contact-map {
        height: 250px;
    }
    
    .section-header {
        margin-bottom: 2rem;
    }
}

/* Print Styles */
@media print {
    .hero-section,
    .footer-copyright,
    .contact-map {
        display: none;
    }
    
    .services-section {
        page-break-inside: avoid;
    }
}

/* Override original Bootstrap column behavior for services */
.services-grid .col-md-6,
.services-grid .col-sm-12 {
    padding: 0;
    margin: 0;
    width: auto;
    float: none;
}

/* Override Bootstrap columns for contact section */
.contact-info .col-md-6,
.contact-info .col-sm-12 {
    padding: 0;
    margin: 0;
    width: auto;
    float: none;
}

/* Ensure images render properly */
.service-image {
    display: block;
    height: auto !important;
    max-width: 100% !important;
}

/* Fix for original CSS conflicts */
.services-section img:not(.single-service-img) {
    height: auto !important;
    max-width: 100% !important;
    border: none;
}

.services-section .service-image {
    height: 80px !important;
    width: 80px !important;
    max-height: none !important;
    max-width: none !important;
}

/* Contact section map iframe styling */
.contact-section iframe {
    border-radius: var(--border-radius);
}

/* Ensure consistent Poppins font across website */
* {
    font-family: var(--font-family) !important;
}

body, h1, h2, h3, h4, h5, h6, p, span, a, button, input, textarea, select {
    font-family: var(--font-family) !important;
}

/* Contact section specific margin fixes */
.contact-details .contact-item:nth-child(1) {
    margin-bottom: 0;
}

.contact-details .contact-item:nth-child(2) {
    margin-bottom: 0;
}

.contact-details .contact-item:nth-child(3) {
    margin-bottom: 0;
}

/* Mobile-specific image fixes */
@media (max-width: 768px) {
    .services-section .service-image {
        height: 90px !important;
        width: 90px !important;
    }
}

@media (max-width: 480px) {
    .services-section .service-image {
        height: 80px !important;
        width: 80px !important;
    }
}
@media (prefers-contrast: high) {
    :root {
        --shadow-light: 0 2px 10px rgba(0, 0, 0, 0.3);
        --shadow-medium: 0 5px 20px rgba(0, 0, 0, 0.4);
        --shadow-heavy: 0 10px 30px rgba(0, 0, 0, 0.5);
    }
}

/* Font Awesome Loading Fix */
@font-face {
    font-family: 'FontAwesome';
    src: url('../fonts/fontawesome-webfont.eot?v=4.7.0');
    src: url('../fonts/fontawesome-webfont.eot?#iefix&v=4.7.0') format('embedded-opentype'),
         url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/fonts/fontawesome-webfont.woff2?v=4.7.0') format('woff2'),
         url('../fonts/fontawesome-webfont.woff2?v=4.7.0') format('woff2'),
         url('../fonts/fontawesome-webfont.woff?v=4.7.0') format('woff'),
         url('../fonts/fontawesome-webfont.ttf?v=4.7.0') format('truetype'),
         url('../fonts/fontawesome-webfont.svg?v=4.7.0#fontawesomeregular') format('svg');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* Font Awesome icon fixes and mobile menu improvements */
/* Hamburger Menu Icon Fix */
.navbar-toggle .fa-bars:before {
    content: "\f0c9" !important;
    font-family: 'FontAwesome' !important;
}

/* Alternative hamburger menu if Font Awesome fails */
.navbar-toggle {
    background: transparent !important;
    border: 2px solid var(--text-dark) !important;
    border-radius: var(--border-radius) !important;
    padding: 8px 12px !important;
    margin-top: 8px !important;
    margin-bottom: 8px !important;
    position: relative !important;
}

.navbar-toggle .fa {
    color: var(--text-dark) !important;
    font-size: 18px !important;
    line-height: 1 !important;
}

/* Fallback hamburger icon using CSS if FontAwesome doesn't load */
.navbar-toggle:after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 18px;
    height: 2px;
    background: var(--text-dark);
    box-shadow: 0 -6px 0 var(--text-dark), 0 6px 0 var(--text-dark);
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Show fallback icon only if FontAwesome doesn't load */
.no-fontawesome .navbar-toggle:after {
    opacity: 1;
}

.no-fontawesome .navbar-toggle .fa {
    opacity: 0;
}

.navbar-toggle:hover,
.navbar-toggle:focus {
    background: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
}

.navbar-toggle:hover .fa,
.navbar-toggle:focus .fa {
    color: white !important;
}

.navbar-toggle:hover:after,
.navbar-toggle:focus:after {
    background: white;
    box-shadow: 0 -6px 0 white, 0 6px 0 white;
}

/* Scroll to top button improvements */
.return-to-top {
    position: fixed !important;
    bottom: 30px !important;
    right: 30px !important;
    background: var(--primary-color) !important;
    color: white !important;
    border: none !important;
    border-radius: 50% !important;
    width: 50px !important;
    height: 50px !important;
    font-size: 20px !important;
    cursor: pointer !important;
    z-index: 999 !important;
    transition: all 0.3s ease !important;
    box-shadow: var(--shadow-medium) !important;
    display: none !important;
}

/* WhatsApp Sticky Button */
.whatsapp-sticky {
    position: fixed !important;
    bottom: 90px !important;
    right: 30px !important;
    background: #25D366 !important;
    color: white !important;
    border: none !important;
    border-radius: 50% !important;
    width: 60px !important;
    height: 60px !important;
    font-size: 28px !important;
    cursor: pointer !important;
    z-index: 998 !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-decoration: none !important;
    animation: whatsappPulse 2s infinite;
}

@keyframes whatsappPulse {
    0% {
        transform: scale(1);
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 6px 25px rgba(37, 211, 102, 0.6);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    }
}

.whatsapp-sticky:hover {
    background: #128C7E !important;
    transform: translateY(-3px) scale(1.1) !important;
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.7) !important;
    animation: none;
}

.whatsapp-sticky:focus {
    outline: 2px solid #25D366;
    outline-offset: 3px;
}

.whatsapp-sticky .fa {
    color: white !important;
    line-height: 1 !important;
}

/* WhatsApp icon fix */
.whatsapp-sticky .fa-whatsapp:before {
    content: "\f232" !important;
    font-family: 'FontAwesome' !important;
}

/* Fallback WhatsApp icon if FontAwesome fails */
.whatsapp-sticky:after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 24px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.no-fontawesome .whatsapp-sticky:after {
    opacity: 1;
}

.no-fontawesome .whatsapp-sticky .fa {
    opacity: 0;
}

.return-to-top:hover {
    background: var(--secondary-color) !important;
    transform: translateY(-2px) !important;
    box-shadow: var(--shadow-heavy) !important;
}

.return-to-top .fa {
    line-height: 50px !important;
    color: white !important;
}

/* Scroll to top icon fix */
.return-to-top .fa-angle-double-up:before {
    content: "\f102" !important;
    font-family: 'FontAwesome' !important;
}

/* Fallback arrow for scroll to top if FontAwesome fails */
.return-to-top:after {
    content: "↑";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 24px;
    color: white;
    font-weight: bold;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.no-fontawesome .return-to-top:after {
    opacity: 1;
}

.no-fontawesome .return-to-top .fa {
    opacity: 0;
}

/* Font Awesome icon loading backup */
.fa:before {
    font-family: 'FontAwesome' !important;
    font-style: normal !important;
    font-weight: normal !important;
    line-height: 1 !important;
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
}

/* Ensure icons display properly on mobile */
@media (max-width: 768px) {
    .navbar-toggle {
        display: block !important;
        float: right !important;
        margin-right: 15px !important;
    }
    
    .return-to-top {
        bottom: 20px !important;
        right: 20px !important;
        width: 45px !important;
        height: 45px !important;
        font-size: 18px !important;
    }
    
    .return-to-top .fa {
        line-height: 45px !important;
    }
    
    .whatsapp-sticky {
        bottom: 75px !important;
        right: 20px !important;
        width: 55px !important;
        height: 55px !important;
        font-size: 24px !important;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
