/* General Styles */
body {
    font-family: "Nerko One", cursive;
    font-weight: 200;
    font-style: normal;
    font-size: large;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
}

.nerko-one-regular {
    font-family: "Nerko One", cursive;
    font-weight: 400;
    font-style: normal;
  }  


header {
    text-align: center;
    padding: 20px 0;
    background-color: #363b3d; /* Light background */
    color: #0cc5f3;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    position: relative;
    
}

.header-content {
    display: flex;
    flex-direction: column;
    align-items: center;

}

.brand-logo {
    width: 500px; /* Adjust the size as needed */
    margin-bottom: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: none;
}

.brand-logo:hover {
    transform: scale(1.1); /* Slightly enlarges the logo on hover */
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.8), /* White glow */
                0 0 30px rgba(0, 153, 255, 0.7),   /* Blue glow */
                0 0 40px rgba(0, 153, 255, 0.6);   /* More intense blue glow */
}

nav ul {
    list-style-type: none;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 20px;
    
}

nav ul li {
    position: relative;
    perspective: 1000px;
}

nav ul li a {
    text-decoration: none;
    font-size: 18px;
    color: #18c8fd;
    padding: 10px 20px;
    display: inline-block;
    background: #f7f7f7;
    border-radius: 5px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    transform-style: preserve-3d;
    box-shadow: 0 10px 20px rgba(5, 172, 250, 0.959);
}


nav ul li a::before,
nav ul li a::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 10px;
    background: hsl(192, 98%, 48%);
    transform-origin: top;
    transition: transform 0.4s ease;
    z-index: -1;
    border-radius: 5px;
}

nav ul li a::before {
    top: 100%;
    transform: rotateX(90deg); /* Bottom face */
}

nav ul li a::after {
    bottom: 100%;
    transform: rotateX(-90deg); /* Top face */
}

nav ul li a:hover {
    transform: rotateX(-15deg) rotateY(10deg) translateZ(20px);
    box-shadow: 0 10px 20px rgba(31, 132, 247, 0.2);
}

nav ul li a:hover::before {
    transform: rotateX(0deg); /* Reveal bottom face */
}

nav ul li a:hover::after {
    transform: rotateX(0deg); /* Reveal top face */
}

.dropdown {
    position: relative;
    display: inline-block;
}

.dropbtn {
    background-color: #f0f0f0;
    color: #0c83e4;
    padding: 15px 25px;
    font-size: 18px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    transform-style: preserve-3d;
    box-shadow: 0 10px 20px rgba(0, 119, 255, 0.692);
}

.dropbtn:hover {
    transform: rotateX(-15deg) rotateY(10deg) translateZ(20px);
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    z-index: 1;
    border-radius: 5px;
}

.dropdown-content a {
    color: #333;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}

.dropdown-content a:hover {
    background-color: #ddd;
}

.dropdown:hover .dropdown-content {
    display: block;
}


/* Hero Section */
.hero {
    position: relative;
    width: 100%;
    height: 720px;  /* Adjust as needed */
    overflow: hidden;
}

.hero img {
    width: 100%;
    height: 100%;
    object-fit: fill;
    position: absolute;
    animation: slide 15s infinite;
}

.hero img:nth-child(1) {
    animation-delay: 0s;
}

.hero img:nth-child(2) {
    animation-delay: 5s;
}

.hero img:nth-child(3) {
    animation-delay: 10s;
}

/* Animation for sliding */
@keyframes slide {
    0% {
        opacity: 0;
        transform: translateX(100%);
    }
    20% {
        opacity: 1;
        transform: translateX(0);
    }
    60% {
        opacity: 1;
        transform: translateX(0);
    }
    80% {
        opacity: 0;
        transform: translateX(-100%);
    }
    100% {
        opacity: 0;
        transform: translateX(100%);
    }
}

/* Services Section */
#services {
    padding: 50px 20px;
    background-color: #fff;
}

.services-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
}

.service-item {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin: 20px;
    padding: 20px;
    max-width: 400px;
    text-align: center;
    flex: 1 1 300px;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.service-item img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.service-item h3 {
    margin: 15px 0;
    font-size: 1.5em;
    color: #333;
}

.service-item p {
    font-size: 1em;
    color: #666;
    line-height: 1.6em;
}

.service-item:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(0, 123, 255, 0.5); /* Blue glow effect */
}

.book-now-container {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    visibility: hidden;
    opacity: 0;
    transition: visibility 0.3s, opacity 0.3s;
}

.whatsapp-button {
    display: inline-flex;
    align-items: center;
    background-color: #25D366; /* WhatsApp green */
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-size: 16px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.whatsapp-button:hover {
    background-color: #20b158; /* Darker green on hover */
}

.whatsapp-button i {
    margin-right: 8px; /* Space between icon and text */
    font-size: 20px;    /* Size of WhatsApp icon */
}


.service-item:hover .book-now-container {
    visibility: visible;
    opacity: 1;
}

.book-now-button {
    background-color: #007bff; /* Blue background */
    color: #fff;
    border: none;
    border-radius: 5px;
    padding: 10px 20px;
    font-size: 1em;
    cursor: pointer;
    transition: background-color 0.3s;
}

.book-now-button:hover {
    background-color: #0056b3; /* Darker blue on hover */
}

.products-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
}

.product-item {
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin: 20px;
    padding: 20px;
    max-width: 200px;
    text-align: center;
    flex: 1 1 300px;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.product-item img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.product-item:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(0, 123, 255, 0.5); /* Blue glow effect */
}

.product-item:hover .book-now-container {
    visibility: visible;
    opacity: 1;
}

.book-now-container {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    visibility: hidden;
    opacity: 0;
    transition: visibility 0.3s, opacity 0.3s;
}

.about {
    background-color: #18c8fd;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contact {
    background-color: #18c8fd;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Footer Section */
footer {
    background-color: #333;
    color: #fff;
    padding: 20px 0;
    text-align: center;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-logo {
    width: 250px;
    margin-bottom: 15px;
}

.footer-content p {
    margin: 10px 0;
    font-size: 14px;
}

.social-media {
    margin-top: 15px;
}

.social-icon {
    margin: 0 10px;
    display: inline-block;
}

.social-icon img {
    width: 70px;
    height: 70px;
    transform-style: preserve-3d; /* Ensures the icon rotates in 3D */
    transition: transform 1s;
}

.social-icon img:hover {
    transform: rotate(360deg); /* icon rotation */
}

.popup {
    display: none; /* Hidden by default */
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #333;
    color: white;
    padding: 15px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    z-index: 1000;
}
.popup .close-btn {
    position: absolute;
    top: 5px;
    right: 10px;
    color: white;
    font-size: 18px;
    cursor: pointer;
}

/* Responsive Design */
@media (max-width: 768px) {
    .footer-logo {
        max-width: 120px; /* Smaller logo on small screens */
    }

    .social-icon img {
        width: 24px; /* Adjust size for smaller screens */
        height: 24px;
    }
}
