/* Mobile-first responsive styles */

/* Base styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    background-color: #eff6ff; /* bg-blue-50 */
    color: #1a202c; /* text-blue-900 */
}

/* Navigation styles */
header nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    
}

header nav ul li {
    display: inline-block;
    margin-left: 20px;
}

header nav ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
}

header nav img {
    width: 100px; /* Increased width */
    height: 100px; /* Increased height */
}

header {
background-color: #1e40af;
}

/* Mobile menu button (hidden on larger screens) */
.mobile-menu-button {
    display: none;
}

/* Hero section adjustments for mobile */
#hero {
    height: 70vh;
    position: relative;
}

#hero .slideshow-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

#hero .slideshow-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

#hero .slideshow-img.opacity-100 {
    opacity: 1;
}

/* Gallery grid adjustments */
#gallery {
    grid-template-columns: repeat(2, 1fr);
}

/* Media queries for responsiveness */
@media (max-width: 768px) {

    #nav-menu.flex {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 60px; /* Adjust based on your header height */
    left: 0;
    width: 100%;
    background-color: #2b346d; /* Or a dark mode equivalent */
    padding: 1rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    z-index: 999;
}

    #nav-menu li {
        margin: 10px 0;
    }

    #hero {
        height: 40vh;
    }
}

@media (min-width: 769px) {
    #nav-menu {
        display: flex !important;
    }
}

/* Blue Flame Animation Styles */
body {
    width: 100%;
    position: relative;
    padding: 0;
    margin: 0;
}
.mo-fire {
    width: 200px;
    height: auto;
    position: absolute;
    left:85%; /* Moved further to the right */
    margin-left: -100px; /* Centered horizontally relative to new left */
    top: 50%; /* Centered vertically */
    transform: translateY(-50%); /* Adjust for true vertical centering */
    z-index: -1;
  }
.mo-fire svg {
    width: 100%;
    height: auto;
    position: relative
}
.flame {
    animation-name: flamefly;
    animation-duration: 2s;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
    opacity: 0;
    transform-origin: 50% 50% 0;
}
.flame.one {
    animation-delay: 1s;
    animation-duration: 3s;
}
.flame3.two{
    animation-duration: 5s;
    animation-delay: 1s;
}

.flame-main {
    animation-name: flameWobble;
    animation-duration: 3s;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}
.flame-main.one {
    animation-duration: 4s;
    animation-delay: 1s;
}
.flame-main.two {
    animation-duration: 3s;
    animation-delay: 2s;
}
.flame-main.three {
    animation-duration: 2.1s;
    animation-delay: 3s;
}
.flame-main.four {
    animation-duration: 3.2s;
    animation-delay: 4s;
}
.flame-main.five {
    animation-duration: 2.5s;
    animation-delay: 5s;
}
@keyframes flameWobble {
    50% {
        transform: scale(1,1.2) translate(0, -30px) rotate(-2deg);
    }
}
@keyframes flamefly {
    0%{
        transform: translate(0) rotate(180deg);
    }
    50% {
        opacity: 1;
    }
    100% {
        transform: translate(-20px, -100px) rotate(180deg);
        opacity: 0;
    }
}
}







header {
    background-color: #1e254e !important;
}

/* Desktop screens */
@media (min-width: 1024px) {
    #gallery {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Default light mode styles */
body {
    background-color: #eff6ff;
    color: #1a202c;
}



/* Lightbox styles */
#lightbox {
    transition: opacity 0.3s ease-in-out;
}

#lightbox.hidden {
    opacity: 0;
    pointer-events: none;
}

#lightbox img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

#lightbox button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    color: white;
    font-size: 2em;
    z-index: 60;
}

#lightbox-close {
    top: 20px;
    right: 20px;
}

#lightbox-prev {
    left: 20px;
}

#lightbox-next {
    right: 20px;
}

/* Dark mode toggle styles */
.dark-mode {
    background-color: #1e293b;
    color: #f8fafc;
}

.social-icon-grow {
    transition: transform 0.3s ease-in-out;
}

.social-icon-grow:hover {
    transform: scale(1.2);
}

/* General image hover effect */
img {
    transition: transform 0.3s ease-in-out;
}

img:hover {
    transform: scale(1.05);
}

/* About Us image hover effect */
#about img {
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

#about img:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Gallery image 3D effect */
#gallery img {
    transition: transform 0.5s ease-in-out, box-shadow 0.5s ease-in-out;
    transform-style: preserve-3d;
    perspective: 1000px;
}

#gallery img:hover {
    transform: rotateY(15deg) rotateX(5deg) scale(1.05);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.button-grow {
    transition: transform 0.3s ease-in-out;
}

.button-grow:hover {
    transform: scale(1.05);
}

.dark-mode header {
    background-color: #1e40af;
}

.dark-mode #services,
.dark-mode #faq {
    background-color: #1e293b;
}

.dark-mode .bg-white {
    background-color: #334155;
    color: #f8fafc;
}

.dark-mode .bg-white label {
    color: #f8fafc; /* White text for labels in dark mode */
}