/* ===== GLOBAL ===== */
body {
    background-color: #042e41;
    color: #f3faf6;
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

* { box-sizing: border-box; }

/* ===== HEADER ===== */
.header {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    background-color: #000 !important;
    color: white;
    text-align: center;
}

.logo {
    max-height: 120px;
    width: auto;
    object-fit: contain;
}

.header-text h1, 
.header-text h5 { margin: 2px 0; }

.header-text h1 { margin: 0; }

/* ===== MENU ICON ===== */
.menu-icon {
    font-size: 24px;
    cursor: pointer;
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: #f0eff3;
    color: rgb(10, 9, 7);
    z-index: 1001;
}

#menu-toggle { display: none; }

/* ===== NAVIGATION ===== */
/* Desktop nav */
@media (min-width: 769px) {
    nav {
        display: flex !important;
        gap: 15px;
        margin-top: 5px;
        background: none !important;
        position: static !important;
    }
    nav a {
        color: white !important;
        text-decoration: none;
        font-weight: bold;
        position: relative;
    }
    nav a::after {
        content: "";
        display: block;
        height: 3px;
        width: 0;
        background: rgb(227, 228, 226);
        position: absolute;
        bottom: 0;
        left: 50%;
        transition: width 0.3s ease, left 0.3s ease;
    }
    nav a:hover::after,
    nav a.active::after {
        width: 100%;
        left: 0;
    }
}

/* Mobile nav */
@media (max-width: 768px) {
    nav {
        display: none;
        flex-direction: column;
        background-color: white;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        padding: 10px;
        z-index: 1000;
        border-radius: 6px;
        box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    }
    nav.active {
        display: flex;
    }
    nav a {
        color: black !important;
        text-decoration: none;
        font-size: 16px;
        padding: 12px;
        text-align: center;
        position: relative;
    }
    nav a:hover {
        background-color: #f3f3f3;
    }
}

/* ===== SEARCH ===== */
.search-container {
    margin-top: 1em;
    text-align: right;
    position: relative;
}

.search-input {
    border: none;
    background-color: #fff;
    padding: 0.5em;
    width: 70%;
    border-radius: 5px;
}

.search-button {
    padding: 0.5em 1em;
    background-color: #000203;
    border: none;
    color: #cce3ee;
    border-radius: 5px;
    cursor: pointer;
}
.search-button:hover { background-color: #131212; }

#search-suggestions {
    position: absolute;
    top: 100%;
    right: 0;
    width: 50%;
    background-color: #0be9e9;
    border: 1px solid #ccc;
    border-radius: 5px;
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 4px 6px rgba(122, 185, 243, 0.945);
    text-align: center;
    font-size: larger;
}
.search-result {
    padding: 10px;
    border-bottom: 1px solid #ddd;
    cursor: pointer;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}
.search-result:hover { background-color: #95e403; }
.search-result-link {
    text-decoration: none;
    color: #000;
}
.search-result-link:hover { text-decoration: underline; }

/* ===== TYPOGRAPHY ===== */
h1, h5 { margin: 0; }
h2 {
    margin-bottom: 0;
    text-decoration: underline;
}

/* ===== SECTIONS ===== */
section {
    padding: 2em;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

/* ===== SERVICE DETAILS ===== */
.service-details {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}
.service-details img {
    max-width: 50%;
    height: auto;
    margin-right: 1em;
    animation: slideImage 3s infinite alternate;
}
.text-content { flex-grow: 1; }
.service-details ul { list-style: none; padding: 0; margin: 0; }
.service-details ul li { margin-bottom: 0.5em; }

@keyframes slideImage {
    0% { margin-right: 1em; }
    100% { margin-left: 1em; }
}

.call-to-action {
    background-color: #f4faf5d0;
    color: #0a0909;
    padding: 1em;
    margin: 2em 0;
    text-align: left;
}

/* ===== FLOATING IMAGES ===== */
img {
    max-width: 50%;
    height: auto;
    margin: 1em 0;
    display: inline-block;
}
img:nth-child(even) {
    float: left;
    margin-right: 1em;
}
img:nth-child(odd) {
    float: right;
    margin-left: 1em;
}
.clearfix::after {
    content: "";
    display: table;
    clear: both;
}

/* ===== SERVICES SECTION ===== */
#services {
    background-color: black;
    color: white;
    padding: 20px;
}
#services h2 { color: rgb(145, 241, 248); }
#services ul { list-style: none; padding: 0; }
#services li { margin-bottom: 20px; }

/* ===== FOOTER ===== */
footer {
    background-color: #04050f;
    color: #fff;
    padding: 20px;
}
.footer-links ul { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-right: 10px; }
.footer-links a {
    text-decoration: underline;
    color: #e1e4e6;
}
.centered-footer { text-align: center; }
.whatsapp-number a {
    color: #fff;
    text-decoration: none;
    font-size: 1.5em;
    transition: color 0.3s ease, text-shadow 0.3s ease;
}
.whatsapp-number a:hover {
    color: #00FF00;
    text-shadow: 2px 2px 5px rgba(253, 6, 6, 0.986);
}

/* ===== PRODUCT GRID ===== */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    align-items: start;
}
.product-item { width: 250px; }
.product-card {
    border: 1px solid #ddd;
    padding: 10px;
    background: white;
    text-align: center;
}
.product-card img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
    .product-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
}

@media (max-width: 768px) {
    header {
        padding: 1em;
        flex-direction: column;
        text-align: center;
    }
    header .logo {
        margin: 0 auto 10px;
        max-width: 100px;
    }
    .header-text h1 { font-size: 1.5em; }
    .search-container { text-align: center; }
    .search-input { width: 80%; }
    .service-details img { max-width: 40%; }
    img {
        max-width: 100%;
        float: none !important;
        margin: 1em auto;
        display: block;
    }
    section { padding: 1em; text-align: left; }
    .call-to-action { text-align: center; }
}

@media (max-width: 480px) {
    .header-text h1 { font-size: 1.2em; }
    .header-text h5 { font-size: 0.9em; }
    nav a { font-size: 14px; padding: 8px; }
    .store-link { font-size: 16px; padding: 8px 15px; }
    .service-details img { max-width: 50%; }
}

/* ===== SITE TITLE ===== */
.site-title {
    font-size: 2.5em;
    background: linear-gradient(90deg, #00d2ff, #3a47d5, #00d2ff);
    background-size: 300% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shine 6s ease-in-out infinite;
    font-weight: bold;
}
@keyframes shine {
    0% { background-position: 0% center; }
    50% { background-position: 100% center; }
    100% { background-position: 0% center; }
}
.site-title:hover {
    text-shadow: 0 0 20px rgba(0, 210, 255, 0.7);
    transition: text-shadow 0.3s ease-in-out;
}

/* ===== STORE LINK BUTTON ===== */
.store-link {
    display: inline-block;
    padding: 14px 36px;
    font-size: 1.3em;
    font-weight: 700;
    color: #fff;
    background: #0a74da;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(10, 116, 218, 0.7);
    animation: glowingGlow 3.5s ease-in-out infinite;
    text-decoration: none;
    transition: transform 0.3s ease;
}
@keyframes glowingGlow {
    0%, 100% {
        box-shadow: 0 0 8px rgba(10, 116, 218, 0.7), 
                    0 0 20px rgba(10, 116, 218, 0.5),
                    0 0 30px rgba(10, 116, 218, 0.3);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 20px rgba(10, 116, 218, 1), 
                    0 0 40px rgba(10, 116, 218, 0.7),
                    0 0 50px rgba(10, 116, 218, 0.5);
        transform: scale(1.05);
    }
}