/* Miatem Custom Styles */

/* Custom Fonts */
@import url('https://fonts.googleapis.com/css2?family=Exo+2:wght@400;500;600;700&family=Open+Sans:wght@400;600&display=swap');

body {
    font-family: 'Open Sans', sans-serif;
}

h1,
h2,
h3,
h4,
h5,
h6,
.display-font {
    font-family: 'Exo 2', sans-serif;
}

/* Background Handling */
.hero-bg-container {
    background-color: #f0f8ff;
    /* Fallback light blue */
    position: relative;
    overflow: hidden;
}

.hero-bg-image {
    background-size: cover;
    background-position: center;
    opacity: 0.7;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    transition: opacity 0.8s ease-in-out;
}

#stars-canvas {
    z-index: 5;
    opacity: 0.6;
}

.hero-gradient-overlay {
    background: linear-gradient(135deg, rgba(235, 248, 255, 0.9) 0%, rgba(255, 255, 255, 0.7) 100%);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* Stars Graphic */
.sparkle {
    position: absolute;
    width: 20px;
    height: 20px;
    background: white;
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
    background: radial-gradient(circle, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0) 70%);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
    animation: twinkle 3s infinite ease-in-out;
}

@keyframes twinkle {

    0%,
    100% {
        transform: scale(0.8);
        opacity: 0.7;
    }

    50% {
        transform: scale(1.2);
        opacity: 1;
    }
}

/* Navigation Hover Effects */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: #1BB638;
    /* Miatem Green */
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link.active {
    color: #1BB638;
}

.nav-link.active::after {
    width: 100%;
}

/* Mobile Menu Transition */
#mobile-menu {
    transition: max-height 0.3s ease-in-out, opacity 0.3s ease-in-out;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
}

#mobile-menu.open {
    max-height: 500px;
    opacity: 1;
}

/* Custom Text Shadow for better contrast on hero */
.text-shadow-hero {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Floating Contact Buttons */
.floating-buttons {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.float-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
}

.float-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.25);
    color: white;
}

.float-whatsapp {
    background-color: #25d366;
}

.float-phone {
    background-color: #005596;
    /* Miatem Blue */
}

/* Mobile Responsive Adjustments */
@media (max-width: 768px) {
    .floating-buttons {
        bottom: 15px;
        right: 15px;
        gap: 10px;
    }

    .float-btn {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }
}