/* General Styling */

html {
    scroll-behavior: smooth; /* Enables smooth scrolling for anchor links */
}

body {
    overflow-x: hidden;
    width: 100%;
    font-family: 'Arial', sans-serif;
    margin: 0;
    line-height: 1.6;
    color: #333;
    background-color: #f4f4f4;
    padding: 0;
    padding-top: 90px;
    box-sizing: border-box;
    padding-bottom: 100px;
}

/* General header styling */
.header {
    display: flex;
    justify-content: space-between; /* Space between logo + heading and nav/hamburger */
    align-items: center;
    padding: 10px 20px;
    background-color: #00072d; /* Dark background */
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-sizing: border-box;
}

/* Logo and Heading Section */
.header > div:first-child {
    display: flex;
    align-items: center; /* Align logo and heading vertically */
    gap: 10px; /* Space between logo and heading */
}

.header img {
    height: 50px;
}

.header h1 {
    color: #ffffff; /* White color for heading */
    font-size: 24px;
    margin: 0;
    white-space: nowrap;
}

.header a {
    text-decoration: none; /* Remove underline for links */
    color: #ffffff; /* White color for links */
}

/* Navigation styling */
nav {
    display: flex;
    align-items: center;
    gap: 15px;
}

nav li {
    list-style: none; /* Remove bullet points */
}

nav a {
    color: #ffffff; /* White text for navigation links */
    text-decoration: none; /* Ensure no underline */
    font-size: 16px;
    padding: 5px 10px;
    border-radius: 5px; /* Rounded corners */
    transition: background-color 0.3s ease-in-out, color 0.3s ease-in-out;
}

nav a:hover {
    background-color: #ffffff; /* White background on hover */
    color: #00072d; /* Dark text on hover for contrast */
}

/* Hamburger menu styling */
.hamburger {
    display: none; /* Hidden by default on larger screens */
    font-size: 24px;
    color: #ffffff; /* White color for hamburger */
    cursor: pointer;
}

/* Responsive styling for smaller screens */
@media (max-width: 768px) {
    .hamburger {
        display: block; /* Show hamburger menu on small screens */
    }

    nav {
        display: none; /* Hide navigation by default */
        flex-direction: column; /* Stack links vertically */
        position: fixed;
        top: 60px; /* Below the header */
        right: 0;
        background-color: #00072d; /* Dark background */
        width: 250px;
        padding: 10px;
        box-shadow: -2px 2px 10px rgba(0, 0, 0, 0.2);
        z-index: 999; /* Ensure navigation is above other content */
    }

    nav.show {
        display: flex; /* Show navigation when toggled */
    }

    nav a {
        padding: 10px; /* Add padding for easier tapping */
    }
}


/* Language Toggle */
.language-toggle {
    position: fixed;
    right: 10px;
    top: 80px;
    width: 100px;
    height: 30px;
    background-color: #000;
    color: #fff;
    border: none;
    padding: 5px;
    font-size: 14px;
    text-align: center;
    border-radius: 5px;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: background-color 0.3s;
}

.language-toggle:hover {
    background-color: #0056b3;
}

/* Hide language toggle when hamburger is active */
body.menu-active .language-toggle {
    display: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .language-toggle {
        width: 80px;
        bottom: 15px;
    }
}

@media (max-width: 480px) {
    .language-toggle {
        width: 70px;
        height: 25px;
        font-size: 12px;
    }
}


/* Footer Styling */
footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
  background-color: #00072d; /* Dark background */
    color: #ffffff;
    text-align: center;
    padding: 10px 20px;
    box-sizing: border-box;
    z-index: 1000; /* Ensure it stays above other elements */
}

footer a {
    color: #fff;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}




/* Hero Section */
#hero {
    margin-top: -15px;
    text-align: center;
    padding: 80px 40px;
    min-height: 700px; /* Ensure it takes up space */
    background-size: cover;
    background-position: center;
    background-image: url('https://kabadibazar.in/img/hero.webp');
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden; /* Prevent overflow issues */
    position: relative;
    box-sizing: border-box; /* Include padding and borders */
}

#hero h1 {
    font-size: 48px;
    font-weight: 900;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #000039;
    max-width: 90%; /* Ensure responsiveness */
    word-wrap: break-word;
}

#hero p {
    background-color: rgba(255, 203, 164, 0.6); /* #ffcba4 background with 30% opacity */
    font-size: 20px;
    margin-bottom: 30px;
    font-weight: 300;
    line-height: 1.6;
    color: #000039;
    max-width: 90%; /* Ensure responsiveness */
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px; /* Add spacing between buttons */
}

.hero-buttons a {
    display: inline-block;
    margin: 10px;
    padding: 15px 30px;
    text-decoration: none;
    font-size: 18px;
    font-weight: bold;
    border-radius: 30px;
    transition: background-color 0.3s;
    box-sizing: border-box; /* Ensure consistent sizing */
}

.hero-buttons .button-primary {
    background: #2E7D32;
    color: #fff;
}

.hero-buttons .button-primary:hover {
    background: #0D47A1;
}

.hero-buttons .button-secondary {
    background: #0D47A1;
    color: #fff;
}

.hero-buttons .button-secondary:hover {
    background: #2E7D32;
}

/* Responsive Design */
@media (max-width: 768px) {
    #hero {
        padding: 40px 20px; /* Reduce padding on smaller screens */
        min-height: 400px; /* Adjust height for small devices */
    }

    #hero h1 {
        font-size: 32px; /* Scale down heading size */
        margin-bottom: 15px;
    }

    #hero p {
        font-size: 16px; /* Scale down paragraph size */
        margin-bottom: 20px;
    }

    .hero-buttons a {
        padding: 10px 20px; /* Adjust button size */
        font-size: 16px;
    }
}



/* Common Section Styling */
section {
    min-height: calc(100vh - 100px); /* Subtract header/footer heights if fixed */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 40px 20px;
    gap: 20px;
    color: #00072d;
    z-index: 1;
}

/* Water Flow Background Animation */
section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 300%;
    height: 300%;
    background: radial-gradient(circle, rgba(0, 119, 190, 0.5), transparent 70%);
    animation: waterFlow 6s infinite linear;
    transform: translate(-100%, -100%);
    z-index: -1; /* Behind content */
}

@keyframes waterFlow {
    0% {
        transform: translate(-100%, -100%);
    }
    100% {
        transform: translate(0%, 0%);
    }
}

/* About Us Section */
#about {
    text-align: center;
}

#about h1 {
    font-size: 2.5em;
    color: #00072d;
    margin-bottom: 30px;
}

.animated-card {
    background-color: #ffffff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    max-width: 800px;
    width: 100%;
}


/* Animation triggered on entering the section */
.animated-card.visible {
    opacity: 1; /* Make the card visible */
    transform: rotateY(0); /* Flip back to the normal state */
}

/* Card Hover Effect */
.animated-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* Responsive Design */
@media (max-width: 768px) {
    .animated-card {
        padding: 10px; /* Reduced padding for smaller screens */
    }
}




/* Contact Us Section */
#contact h1 {
    font-size: 2.5em;
    color: #00072d;
    margin-bottom: 20px;
    text-align: center;
}

.contact-container {
    display: flex;
    justify-content: space-between; /* Align cards to the left and right */
    flex-wrap: wrap;
    gap: 20px;
    max-width: 1200px; /* Container width adjustment for larger screens */
    margin: 0 auto;
}

.contact-card {
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    background-color: white;
    padding: 20px;
    flex: 1; /* Allow cards to grow/shrink equally */
    max-width: 48%; /* Keep cards side by side */
    min-width: 500px; /* Ensure minimum width for larger screens */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.contact-details {
    background: #00072d;
    color: #ffffff;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
}

.contact-details h3 {
    font-size: 1.8em;
    color: #ffffff;
}

.contact-details p,
.contact-details a {
    font-size: 1em;
    color: #ffffff;
    margin: 10px 0;
    text-decoration: none;
}

.contact-details a:hover {
    text-decoration: underline;
}

.contact-form {
    background: #ffffff;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
}

.contact-form form {
    display: flex;
    flex-direction: column;
    align-items: center; /* Center-align inputs */
    gap: 10px;
}

.contact-form input,
.contact-form textarea {
    display: block;
    text-align: center;
    width: 90%; /* Centered with responsive width */
    padding: 10px;
    border: 2px solid #ccc;
    border-radius: 3px;
}

.contact-form button {
    background: #00072d;
    color: #ffffff;
    padding: 10px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.contact-form button:hover {
    background: #1e90ff;
}

/* Responsive Design */
@media (max-width: 768px) {
    .contact-container {
        flex-direction: column; /* Stack cards vertically */
        gap: 20px;
    }

    .contact-card {
        max-width: 100%; /* Full width for smaller screens */
        min-width: unset; /* Remove min-width for small screens */
    }

    .contact-form input,
    .contact-form textarea {
        width: 90%; /* Responsive width for small screens */
    }
}





/* Success Card Styling */
.success-card {
    display: none; /* Initially hidden */
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #4caf50; /* Green background for success */
    color: #ffffff;
    padding: 15px 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    font-size: 1em;
    z-index: 1000;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.success-card.show {
    display: block; /* Make visible */
    opacity: 1;
    transform: translateY(0);
}

.success-card.hide {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}


.schedule-page {
    background-image: url(https://kabadibazar.in/img/balance.webp); /* Replace with your image URL */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #fff; /* Default text color for visibility on dark backgrounds */
}


/* Container Styling */
.container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    max-width: calc(100% - 20px); /* Ensure 10px margin on both sides */
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh; /* Ensures the container takes full height */
    box-sizing: border-box; /* Ensures proper padding and border handling */
}


/* Card Styles (Form Card) */
.card {
    border-radius: 10px;
    background-color: rgba(0, 0, 0, 0.7);
    flex: 1;
    margin: 10px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    min-width: 300px;
    max-width: 500px;
    box-sizing: border-box;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.form-card {
    width: 100%;
    text-align: center;
}

/* Form Elements Styling */
.form-group {
    width: 100%;
    margin-bottom: 20px;
    text-align: center;
}

.form-group label {
    font-weight: bold;
    margin-bottom: 8px;
    display: block;
    color: #fff;
}

.form-group input {
    width: 70%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 15px;
    box-sizing: border-box;
}

button {
    background-color: #000;
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s ease;
    width: 70%;
    max-width: 300px;
   margin-bottom:20px;
}

button:hover {
    background-color: #4e9fa7;
}

/* Success Message */
#successMessage {
    display: none;
    text-align: center;
    padding: 20px;
    background-color: #d4edda;
    color: #155724;
    border-radius: 8px;
    width: 100%;
    max-width: 600px;
    margin-top: 20px;
}

#successMessage.show {
    display: block;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .container {
        flex-direction: column;
        padding: 15px;
        margin: 0 auto; /* Center align horizontally */
        justify-content: center; /* Center align vertically */
        align-items: center; /* Ensure proper horizontal centering */
    }

    .card {
        margin-bottom: 20px;
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .container {
        margin: 0 auto; /* Center align horizontally */
        justify-content: center; /* Center align vertically */
        align-items: center; /* Ensure proper horizontal centering */
    }

    .card {
        padding: 0px;
    }

    button {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .container {
        margin: 0 auto; /* Center align horizontally */
        justify-content: center; /* Center align vertically */
        align-items: center; /* Ensure proper horizontal centering */
        text-align: center; /* Align text center */
    }

    h1 {
        font-size: 20px;
        margin-bottom: 10px;
    }

    button {
        font-size: 12px;
        max-width: 100%;
        margin-top: 15px;
    }
}
