/* --- Global Styles --- */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;700&display=swap');

:root {
    --primary-color: #0a2e5c; /* Deep Blue */
    --secondary-color: #d4af37; /* Gold */
    --light-gray: #f4f4f4;
    --dark-gray: #333;
    --white: #fff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Cairo', sans-serif;
    direction: rtl;
    line-height: 1.6;
    background-color: var(--white);
    color: var(--dark-gray);
}

h1, h2, h3 {
    font-weight: 700;
    color: var(--primary-color);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

section {
    padding: 60px 0;
}

/* --- Header --- */
header {
    background-color: var(--white);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
}

.nav-links {
    list-style: none;
    display: flex;
}

.nav-links li {
    margin-right: 25px;
}

.nav-links a {
    text-decoration: none;
    color: var(--dark-gray);
    font-weight: 400;
    transition: color 0.3s;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--secondary-color);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
}

/* --- Hero Section --- */
#hero {
    background: -webkit-linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    background: -moz-linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    background: -o-linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    height: 90vh;
    display: -webkit-box;
    display: -webkit-flex;
    display: -moz-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -moz-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
    -moz-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    text-align: center;
}

.hero-content h1 {
    font-size: 48px;
    margin-bottom: 10px;
    color: var(--white);
}

.hero-content h2 {
    font-size: 28px;
    margin-bottom: 20px;
    color: var(--secondary-color);
}

.hero-content p {
    font-size: 18px;
    max-width: 700px;
    margin: 0 auto 30px;
}

.btn {
    display: -webkit-inline-box;
    display: -webkit-inline-flex;
    display: -moz-inline-box;
    display: -ms-inline-flexbox;
    display: inline-flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -moz-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
    -moz-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    gap: 10px;
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 15px 30px;
    text-decoration: none;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    -webkit-transition: all 0.4s ease;
    -moz-transition: all 0.4s ease;
    -o-transition: all 0.4s ease;
    transition: all 0.4s ease;
    min-width: 160px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn:hover {
    background-color: #c5a230;
    -webkit-transform: translateY(-2px);
    -moz-transform: translateY(-2px);
    -ms-transform: translateY(-2px);
    -o-transform: translateY(-2px);
    transform: translateY(-2px);
    -webkit-box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    -moz-box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

/* Hero Buttons Container */
.hero-buttons {
    display: -webkit-box;
    display: -webkit-flex;
    display: -moz-box;
    display: -ms-flexbox;
    display: flex;
    gap: 40px;
    margin-top: 40px;
    -webkit-flex-wrap: wrap;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
    -moz-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    -webkit-align-items: center;
    -moz-box-align: center;
    -ms-flex-align: center;
    align-items: center;
}

/* Call Button */
.btn-call {
    background: -webkit-linear-gradient(45deg, #1e3c72, #2a5298);
    background: -moz-linear-gradient(45deg, #1e3c72, #2a5298);
    background: -o-linear-gradient(45deg, #1e3c72, #2a5298);
    background: linear-gradient(45deg, #1e3c72, #2a5298);
    border: 2px solid transparent;
    -webkit-box-shadow: 0 6px 20px rgba(30, 60, 114, 0.3);
    -moz-box-shadow: 0 6px 20px rgba(30, 60, 114, 0.3);
    box-shadow: 0 6px 20px rgba(30, 60, 114, 0.3);
    font-size: 18px;
    padding: 18px 35px;
    -webkit-border-radius: 50px;
    -moz-border-radius: 50px;
    border-radius: 50px;
    position: relative;
    overflow: hidden;
}

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

.btn-call:hover::before {
    left: 100%;
}

.btn-call:hover {
    background: -webkit-linear-gradient(45deg, #2a5298, #1e3c72);
    background: -moz-linear-gradient(45deg, #2a5298, #1e3c72);
    background: -o-linear-gradient(45deg, #2a5298, #1e3c72);
    background: linear-gradient(45deg, #2a5298, #1e3c72);
    -webkit-transform: translateY(-3px);
    -moz-transform: translateY(-3px);
    -ms-transform: translateY(-3px);
    -o-transform: translateY(-3px);
    transform: translateY(-3px);
    -webkit-box-shadow: 0 8px 25px rgba(30, 60, 114, 0.4);
    -moz-box-shadow: 0 8px 25px rgba(30, 60, 114, 0.4);
    box-shadow: 0 8px 25px rgba(30, 60, 114, 0.4);
}

/* WhatsApp Button */
.btn-whatsapp {
    background: -webkit-linear-gradient(45deg, #25D366, #128C7E);
    background: -moz-linear-gradient(45deg, #25D366, #128C7E);
    background: -o-linear-gradient(45deg, #25D366, #128C7E);
    background: linear-gradient(45deg, #25D366, #128C7E);
    border: 2px solid transparent;
    -webkit-box-shadow: 0 6px 20px rgba(37, 211, 102, 0.3);
    -moz-box-shadow: 0 6px 20px rgba(37, 211, 102, 0.3);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.3);
    font-size: 18px;
    padding: 18px 35px;
    -webkit-border-radius: 50px;
    -moz-border-radius: 50px;
    border-radius: 50px;
    position: relative;
    overflow: hidden;
}

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

.btn-whatsapp:hover::before {
    left: 100%;
}

.btn-whatsapp:hover {
    background: -webkit-linear-gradient(45deg, #128C7E, #25D366);
    background: -moz-linear-gradient(45deg, #128C7E, #25D366);
    background: -o-linear-gradient(45deg, #128C7E, #25D366);
    background: linear-gradient(45deg, #128C7E, #25D366);
    -webkit-transform: translateY(-3px);
    -moz-transform: translateY(-3px);
    -ms-transform: translateY(-3px);
    -o-transform: translateY(-3px);
    transform: translateY(-3px);
    -webkit-box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
    -moz-box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
}

/* Button Icons */
.btn i {
    font-size: 20px;
    margin-left: 8px;
}

/* Pulse Animation for Call Button */
@-webkit-keyframes pulse-call {
    0% {
        -webkit-box-shadow: 0 6px 20px rgba(30, 60, 114, 0.3), 0 0 0 0 rgba(30, 60, 114, 0.7);
        box-shadow: 0 6px 20px rgba(30, 60, 114, 0.3), 0 0 0 0 rgba(30, 60, 114, 0.7);
    }
    70% {
        -webkit-box-shadow: 0 6px 20px rgba(30, 60, 114, 0.3), 0 0 0 10px rgba(30, 60, 114, 0);
        box-shadow: 0 6px 20px rgba(30, 60, 114, 0.3), 0 0 0 10px rgba(30, 60, 114, 0);
    }
    100% {
        -webkit-box-shadow: 0 6px 20px rgba(30, 60, 114, 0.3), 0 0 0 0 rgba(30, 60, 114, 0);
        box-shadow: 0 6px 20px rgba(30, 60, 114, 0.3), 0 0 0 0 rgba(30, 60, 114, 0);
    }
}

@-moz-keyframes pulse-call {
    0% {
        -moz-box-shadow: 0 6px 20px rgba(30, 60, 114, 0.3), 0 0 0 0 rgba(30, 60, 114, 0.7);
        box-shadow: 0 6px 20px rgba(30, 60, 114, 0.3), 0 0 0 0 rgba(30, 60, 114, 0.7);
    }
    70% {
        -moz-box-shadow: 0 6px 20px rgba(30, 60, 114, 0.3), 0 0 0 10px rgba(30, 60, 114, 0);
        box-shadow: 0 6px 20px rgba(30, 60, 114, 0.3), 0 0 0 10px rgba(30, 60, 114, 0);
    }
    100% {
        -moz-box-shadow: 0 6px 20px rgba(30, 60, 114, 0.3), 0 0 0 0 rgba(30, 60, 114, 0);
        box-shadow: 0 6px 20px rgba(30, 60, 114, 0.3), 0 0 0 0 rgba(30, 60, 114, 0);
    }
}

@keyframes pulse-call {
    0% {
        box-shadow: 0 6px 20px rgba(30, 60, 114, 0.3), 0 0 0 0 rgba(30, 60, 114, 0.7);
    }
    70% {
        box-shadow: 0 6px 20px rgba(30, 60, 114, 0.3), 0 0 0 10px rgba(30, 60, 114, 0);
    }
    100% {
        box-shadow: 0 6px 20px rgba(30, 60, 114, 0.3), 0 0 0 0 rgba(30, 60, 114, 0);
    }
}

/* Pulse Animation for WhatsApp Button */
@-webkit-keyframes pulse-whatsapp {
    0% {
        -webkit-box-shadow: 0 6px 20px rgba(37, 211, 102, 0.3), 0 0 0 0 rgba(37, 211, 102, 0.7);
        box-shadow: 0 6px 20px rgba(37, 211, 102, 0.3), 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        -webkit-box-shadow: 0 6px 20px rgba(37, 211, 102, 0.3), 0 0 0 10px rgba(37, 211, 102, 0);
        box-shadow: 0 6px 20px rgba(37, 211, 102, 0.3), 0 0 0 10px rgba(37, 211, 102, 0);
    }
    100% {
        -webkit-box-shadow: 0 6px 20px rgba(37, 211, 102, 0.3), 0 0 0 0 rgba(37, 211, 102, 0);
        box-shadow: 0 6px 20px rgba(37, 211, 102, 0.3), 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

@-moz-keyframes pulse-whatsapp {
    0% {
        -moz-box-shadow: 0 6px 20px rgba(37, 211, 102, 0.3), 0 0 0 0 rgba(37, 211, 102, 0.7);
        box-shadow: 0 6px 20px rgba(37, 211, 102, 0.3), 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        -moz-box-shadow: 0 6px 20px rgba(37, 211, 102, 0.3), 0 0 0 10px rgba(37, 211, 102, 0);
        box-shadow: 0 6px 20px rgba(37, 211, 102, 0.3), 0 0 0 10px rgba(37, 211, 102, 0);
    }
    100% {
        -moz-box-shadow: 0 6px 20px rgba(37, 211, 102, 0.3), 0 0 0 0 rgba(37, 211, 102, 0);
        box-shadow: 0 6px 20px rgba(37, 211, 102, 0.3), 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

@keyframes pulse-whatsapp {
    0% {
        box-shadow: 0 6px 20px rgba(37, 211, 102, 0.3), 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        box-shadow: 0 6px 20px rgba(37, 211, 102, 0.3), 0 0 0 10px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 6px 20px rgba(37, 211, 102, 0.3), 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* Apply pulse animations */
.btn-call {
    -webkit-animation: pulse-call 2s infinite;
    -moz-animation: pulse-call 2s infinite;
    -o-animation: pulse-call 2s infinite;
    animation: pulse-call 2s infinite;
}

.btn-whatsapp {
    -webkit-animation: pulse-whatsapp 2s infinite;
    -moz-animation: pulse-whatsapp 2s infinite;
    -o-animation: pulse-whatsapp 2s infinite;
    animation: pulse-whatsapp 2s infinite;
}

/* Stop animation on hover */
.btn-call:hover,
.btn-whatsapp:hover {
    -webkit-animation: none;
    -moz-animation: none;
    -o-animation: none;
    animation: none;
}

/* --- Services Section --- */
#services h2, #gallery h2, #about h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 36px;
}

.service-cards {
    /* Fallback for browsers without Grid support */
    display: -webkit-box;
    display: -webkit-flex;
    display: -moz-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-flex-wrap: wrap;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
    -moz-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;

    /* Grid for modern browsers */
    display: -ms-grid;
    display: grid;
    -ms-grid-columns: (minmax(280px, 1fr))[auto-fit];
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    grid-gap: 30px; /* Fallback for older browsers */
}

/* Fallback for flex items */
.service-cards .card {
    -webkit-box-flex: 1;
    -webkit-flex: 1 1 280px;
    -moz-box-flex: 1;
    -ms-flex: 1 1 280px;
    flex: 1 1 280px;
    margin: 15px;
    max-width: 400px;
}

.card {
    background: var(--white);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border-radius: 10px;
    overflow: hidden;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card h3 {
    padding: 15px 10px 10px;
    font-size: 22px;
}

.card p {
    padding: 0 15px 20px;
    font-size: 16px;
}

/* --- Gallery Section --- */
.gallery-grid {
    /* Fallback for browsers without Grid support */
    display: -webkit-box;
    display: -webkit-flex;
    display: -moz-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-flex-wrap: wrap;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
    -moz-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;

    /* Grid for modern browsers */
    display: -ms-grid;
    display: grid;
    -ms-grid-columns: (minmax(250px, 1fr))[auto-fit];
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    grid-gap: 15px; /* Fallback for older browsers */
}

/* Fallback for flex items in gallery */
.gallery-grid img {
    -webkit-box-flex: 1;
    -webkit-flex: 1 1 250px;
    -moz-box-flex: 1;
    -ms-flex: 1 1 250px;
    flex: 1 1 250px;
    margin: 7.5px;
    max-width: 350px;
}

.gallery-grid img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s, opacity 0.3s;
    will-change: transform;
    backface-visibility: hidden;
}

.gallery-grid img:hover {
    transform: scale(1.05);
    opacity: 0.9;
}

/* --- Lightbox Styles --- */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    animation: fadeIn 0.3s ease;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    animation: scaleIn 0.3s ease;
}

.lightbox-content img {
    width: 100%;
    height: auto;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 8px;
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: white;
    font-size: 30px;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 50%;
    transition: background-color 0.3s;
}

.lightbox-close:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes scaleIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* --- About Section --- */
#about {
    background-color: var(--light-gray);
}

.about-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    text-align: center;
}

.feature i {
    font-size: 48px;
    color: var(--secondary-color);
    margin-bottom: 15px;
}

.feature h3 {
    font-size: 22px;
    margin-bottom: 10px;
}

/* --- Contact Section --- */
#contact {
    background-color: var(--primary-color);
    color: var(--white);
    text-align: center;
}

#contact h2 {
    color: var(--white);
    font-size: 36px;
    margin-bottom: 15px;
}

#contact p {
    font-size: 18px;
    margin-bottom: 30px;
}

.contact-info {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.contact-button {
    background-color: var(--white);
    color: var(--primary-color);
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 20px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: background-color 0.3s, color 0.3s;
}

.contact-button.whatsapp {
    background-color: #25D366;
    color: var(--white);
}

.contact-button:hover {
    background-color: var(--light-gray);
    color: var(--primary-color);
}

.contact-button.whatsapp:hover {
    background-color: #1da851;
}

/* --- Footer --- */
footer {
    background-color: var(--dark-gray);
    color: var(--white);
    text-align: center;
    padding: 20px 0;
}

/* --- Responsive Design --- */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        background-color: var(--white);
        position: absolute;
        top: 60px;
        right: 0;
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        text-align: center;
        margin: 0;
        padding: 15px 0;
        border-bottom: 1px solid var(--light-gray);
    }

    .menu-toggle {
        display: block;
    }

    .hero-content h1 {
        font-size: 36px;
    }

    .hero-content h2 {
        font-size: 22px;
    }

    #services h2, #gallery h2, #about h2, #contact h2 {
        font-size: 28px;
    }

    /* Hero buttons responsive */
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 20px;
        margin-top: 30px;
    }

    .btn {
        width: 100%;
        max-width: 300px;
        padding: 16px 25px;
        font-size: 16px;
        border-radius: 40px;
    }

    .btn-call, .btn-whatsapp {
        padding: 16px 25px;
        font-size: 16px;
    }

    .btn i {
        font-size: 18px;
    }
}

/* --- Performance Optimizations --- */
/* Reduce paint and layout thrashing */
* {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

/* Optimize animations */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        -webkit-animation-duration: 0.01ms !important;
        -moz-animation-duration: 0.01ms !important;
        -o-animation-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        -webkit-animation-iteration-count: 1 !important;
        -moz-animation-iteration-count: 1 !important;
        -o-animation-iteration-count: 1 !important;
        animation-iteration-count: 1 !important;
        -webkit-transition-duration: 0.01ms !important;
        -moz-transition-duration: 0.01ms !important;
        -o-transition-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

/* Improve font loading */
@font-display: swap;

/* Critical CSS for above-the-fold content */
.hero-content {
    contain: layout style paint;
}

.service-cards, .gallery-grid {
    contain: layout;
}

/* Browser-specific fixes */
/* Fix for Internet Explorer */
.hero-buttons {
    -ms-flex-pack: center;
    -ms-flex-align: center;
}

/* Fix for older Safari versions */
.btn {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

/* Ensure proper rendering in all browsers */
img {
    max-width: 100%;
    height: auto;
    -ms-interpolation-mode: bicubic; /* IE fix */
}

/* Fix for older Firefox versions */
.gallery-grid img, .service-cards img {
    -moz-object-fit: cover;
    -o-object-fit: cover;
    object-fit: cover;
}

/* Additional browser compatibility fixes */
/* Fix for older versions of Safari and Chrome */
.btn, .card {
    -webkit-backface-visibility: hidden;
    -moz-backface-visibility: hidden;
    backface-visibility: hidden;
}

/* Fix for Internet Explorer flexbox bugs */
.hero-buttons {
    -ms-flex-direction: row;
    -ms-flex-wrap: wrap;
}

/* Ensure proper font rendering across browsers */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Fix for older Android browsers */
.btn {
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}
