/* CSS Variables */
:root {
    --primary-color: #1e3c72; /* Dark Blue */
    --secondary-color: #2a5298; /* Medium Blue */
    --accent-color: #f1c40f; /* Yellow */
    --text-color: #ffffff; /* White */
    --divider-color: rgba(255, 255, 255, 0.2); /* Semi-transparent White */
    --background-gradient: linear-gradient(135deg, var(--primary-color), var(--secondary-color), #0f4c75, #3282b8);
}

body {
    margin: 0;
    font-family: 'Roboto', sans-serif;
    background: var(--background-gradient);
    background-size: 400% 400%;
    animation: gradientBG 10s ease infinite;
    color: var(--text-color);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    transition: background 0.5s ease, color 0.5s ease;
}

/* Gradient Animation */
@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Header */
.main-header {
    background: #000; /* Black background */
    color: var(--text-color);
    padding: 5px 15px; /* Increased top and bottom padding */
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px; /* Explicitly set height (optional) */
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.main-header h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    font-weight: bold;
    margin: 0;
}

/* Social Icons Styling */
.social-icons {
    display: flex;
    gap: 10px;
}

.social-icons a {
    display: inline-block;
}

.social-icons img {
    width: 24px;
    height: 24px;
    filter: brightness(0) invert(1); /* Invert for visibility on dark background */
    transition: transform 0.3s ease, filter 0.3s ease;
}

.social-icons img:hover {
    transform: scale(1.1);
}

/* Theme Toggle Button Styling */
#theme-toggle {
    background: none;
    border: none;
    color: var(--text-color);
    font-size: 1.2rem;
    cursor: pointer;
    margin-left: 15px;
    transition: transform 0.3s ease;
}

#theme-toggle:hover {
    transform: rotate(20deg);
}

/* Modal Styles */


/* Modal Background */
.modal {
    display: none; /* Hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8); /* Semi-transparent black background */
    z-index: 10000; /* Ensure it appears on top */
    justify-content: center;
    align-items: center;
}

/* Modal Content */
/* Modal Content */
.modal-content {
    background: rgba(255, 255, 255, 0.1); /* Glass-like transparent background */
    backdrop-filter: blur(10px); /* Blur effect for glass style */
    -webkit-backdrop-filter: blur(10px); /* Safari support */
    border: 1px solid rgba(255, 255, 255, 0.2); /* Subtle border */
    padding: 20px 25px 80px; /* Add extra padding at the bottom */
    border-radius: 15px; /* Rounded corners */
    text-align: center;
    max-width: 400px; /* Maximum width of the modal */
    width: 90%; /* Responsive width for smaller screens */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3); /* Box shadow for depth */
    color: #fff; /* White text for visibility */
    position: relative; /* For positioning close button properly */
    overflow: hidden; /* Ensures animation doesn't overflow */
}

/* Party Popper Animation */
.party-popper {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 100px;
    overflow: visible;
    z-index: 1000;
}

.confetti {
    position: absolute;
    width: 10px;
    height: 20px;
    background: linear-gradient(45deg, #ff5f6d, #ffc371); /* Gradient confetti */
    animation: popper-animation 2s ease-in-out infinite;
    border-radius: 2px;
    opacity: 0;
}

.confetti:nth-child(1) { left: 10%; animation-delay: 0s; }
.confetti:nth-child(2) { left: 20%; animation-delay: 0.2s; }
.confetti:nth-child(3) { left: 30%; animation-delay: 0.4s; }
.confetti:nth-child(4) { left: 40%; animation-delay: 0.6s; }
.confetti:nth-child(5) { left: 50%; animation-delay: 0.8s; }
.confetti:nth-child(6) { left: 60%; animation-delay: 1s; }
.confetti:nth-child(7) { left: 70%; animation-delay: 1.2s; }
.confetti:nth-child(8) { left: 80%; animation-delay: 1.4s; }

/* Animation for Confetti */
@keyframes popper-animation {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
    }
    50% {
        opacity: 1;
    }
    100% {
        transform: translateY(150px) rotate(360deg);
        opacity: 0;
    }
}

/* Title Styling */
.modal-content h2 {
    margin: 0 0 10px;
    color: #f1c40f; /* Highlighted yellow for the title */
    font-size: 1.8rem;
}

/* Paragraph Text */
.modal-content p {
    margin: 10px 0;
    font-size: 1rem;
    color: #ffffff; /* White text */
}

/* Timer Text */
.modal-content .timer {
    font-weight: bold;
    color: #e74c3c; /* Red for timer text */
}

/* Action Buttons Container */
/* Action Buttons Container */
.action-buttons {
    display: flex; /* Flexbox for proper alignment */
    flex-direction: row; /* Place buttons in a row */
    justify-content: center; /* Center align buttons horizontally */
    align-items: center; /* Vertically align buttons */
    gap: 15px; /* Space between the buttons */
    margin-top: 20px; /* Space above the buttons */
}
/* General Button Styles */
.btn {
    display: flex; /* Flexbox for icon and text */
    align-items: center; /* Center-align icon and text */
    justify-content: center;
    padding: 10px 20px; /* Adjust padding for proper size */
    font-size: 1rem; /* Text size */
    border-radius: 25px; /* Rounded edges for buttons */
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    gap: 10px; /* Space between icon and text */
    font-weight: 600; /* Bold text */
}

/* WhatsApp Button */
.whatsapp-btn {
    background-color: #25D366; /* WhatsApp green */
    color: #fff;
    border: none;
}

.whatsapp-btn:hover {
    background-color: #20b857; /* Darker green on hover */
    transform: scale(1.05);
}

/* Call Button */
.call-btn {
    background-color: #1e3c72; /* Primary blue */
    color: #fff;
    border: none;
}

.call-btn:hover {
    background-color: #2a5298; /* Darker blue on hover */
    transform: scale(1.05);
}

/* Close Button */
/* Centered Close Button */
/* Centered Close Button */
.minimal-btn {
    position: absolute; /* Position the button relative to the modal content */
    bottom: 15px; /* Position above the bottom padding */
    left: 50%; /* Center horizontally */
    transform: translateX(-50%); /* Adjust for centering */
    background-color: #f1c40f; /* Yellow background */
    color: #000; /* Black text */
    font-weight: bold; /* Bold text for emphasis */
    border: none; /* Remove border */
    border-radius: 20px; /* Rounded edges */
    padding: 10px 20px; /* Button size */
    font-size: 1rem; /* Font size for better readability */
    cursor: pointer;
    transition: all 0.3s ease;
}

/* Hover Effect for Close Button */
/* Hover Effect for Close Button */
.minimal-btn:hover {
    background-color: #e0b90f; /* Slightly darker yellow on hover */
    transform: translateX(-50%) scale(1.1); /* Slightly enlarge on hover */
}



/* Hero Section */
.hero {
    text-align: center;
    padding: 15px 20px;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    font-weight: bold;
}

.hero p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
}

/* Topics Section */
.topics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.topic {
    text-align: center;
    padding: 15px 0;
    transition: transform 0.3s ease, color 0.3s ease;
}

.topic img {
    width: 250px;
    height: 250px;
    object-fit: cover;
    border-radius: 60%;
    margin-bottom: 10px;
    border: 3px solid rgba(255, 255, 255, 0.3);
}

.topic h2 {
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 8px;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.4);
}

.topic p {
    font-size: 1rem;
    margin-bottom: 10px;
    color: rgba(255, 255, 255, 0.8);
}

/* Divider */
.divider {
    height: 1px;
    width: 80%;
    background: var(--divider-color);
    margin: 15px auto;
}

/* Buttons */
.topic .btn {
    padding: 10px 25px;
    background: var(--accent-color);
    color: #000;
    font-weight: bold;
    text-transform: uppercase;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: transform 0.3s ease, background 0.3s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.topic .btn:hover {
    transform: translateY(-3px);
    background: #e0b90f;
}

/* CTA Section */
.cta {
    text-align: center;
    padding: 40px 20px;
    background: rgba(0, 0, 0, 0.6);
}

.cta h2 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.cta p {
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.cta .btn {
    background: var(--accent-color);
    color: #000;
    padding: 10px 25px;
    border-radius: 30px;
    transition: background 0.3s ease;
}

.cta .btn:hover {
    background: #e0b90f;
}

/* Footer */
footer {
    background: rgba(0, 0, 0, 0.8);
    color: var(--text-color);
    padding: 20px;
    text-align: center;
}

.footer-content {
    max-width: 900px;
    margin: 0 auto;
}

.footer-links {
    margin-top: 10px;
    display: flex;
    justify-content: center;
    gap: 15px;
}

.footer-links a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #f39c12;
}

/* Responsive Design */
@media (max-width: 768px) {
    .main-header h1 {
        font-size: 1.2rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .topic h2 {
        font-size: 1.6rem;
    }

    .topic p {
        font-size: 0.9rem;
    }

    .topic img {
        width: 100px;
        height: 100px;
    }

    .topic .btn {
        font-size: 0.8rem;
        padding: 6px 15px;
    }
}

/* Section Animations */
.section {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s ease, transform 1s ease;
}

.section.visible {
    opacity: 1;
    transform: translateY(0);
}

.whatsapp-contact {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    text-align: center; /* Center-align the text and icon */
}

.whatsapp-contact a {
    display: inline-flex;
    flex-direction: column; /* Stack image and text */
    justify-content: center;
    align-items: center;
    text-decoration: none;
    color: #ffffff; /* WhatsApp green color for the caption */
    font-family: Arial, sans-serif;
    font-size: 14px; /* Caption font size */
    font-weight: bold;
    transition: transform 0.3s ease, color 0.3s ease;
    animation: bounce 2s infinite; /* Continuous bounce animation */
}

.whatsapp-contact a:hover {
    transform: scale(1.2); /* Enlarge icon and caption on hover */
    color: #128C7E; /* Change caption color on hover */
}

.whatsapp-contact img.whatsapp-icon {
    width: 60px; /* Icon size */
    height: 60px;
    border-radius: 50%; /* Circular shape for the icon */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3); /* Add shadow for depth */
    transition: transform 0.3s ease;
    animation: spin 3s linear infinite; /* Continuous rotation animation */
}

.whatsapp-contact span.whatsapp-caption {
    margin-top: 8px; /* Space between the icon and caption */
    animation: fadeIn 2s infinite; /* Fading animation for the caption */
}

/* Bounce Animation */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}



/* Fade In/Out Animation */
@keyframes fadeIn {
    0%, 100% {
        opacity: 0.5;
    }
    50% {
        opacity: 1;
    }
}

.social-icons {
    display: flex;
    gap: 20px;
}

.social-icons a {
    color: #ffffff; /* Icon color */
    font-size: 1.5rem; /* Icon size */
    transition: transform 0.3s ease, color 0.3s ease;
    text-decoration: none;
}

.social-icons a:hover {
    transform: scale(1.2); /* Slightly enlarge on hover */
    color: #f1c40f; /* Change color on hover */
}


/* Contact Buttons Container */
.contact-buttons {
    position: fixed;
    bottom: 20px; /* Position near the bottom */
    right: 20px; /* Align to the right */
    display: flex;
    flex-direction: column; /* Stack buttons vertically */
    gap: 10px; /* Space between buttons */
    z-index: 1000; /* Ensure visibility above other elements */
}

/* Individual Contact Item */
.contact-item {
    display: flex;
    flex-direction: column; /* Stack icon and caption */
    align-items: center; /* Center-align content */
    justify-content: center;
    gap: 5px; /* Space between icon and caption */
    animation: bounce 2s infinite; /* Bounce animation */
    text-align: center; /* Center text */
}

/* Icons */
.contact-item a i {
    font-size: 1.8rem; /* Smaller icon size */
    color: #fff; /* Default icon color */
    background-color: #25D366; /* Default background for WhatsApp */
    border-radius: 50%; /* Circular icon background */
    padding: 10px; /* Icon padding for proper size */
    transition: transform 0.3s ease; /* Smooth hover effect */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3); /* Subtle shadow */
}

.contact-item.call a i {
    background-color: #1e3c72; /* Blue background for Call Us */
}

/* Captions */
.contact-item span {
    font-size: 0.75rem; /* Smaller caption text */
    color: #fff; /* Caption color */
    font-weight: bold;
    text-transform: uppercase; /* Make the text uppercase */
}

/* Hover Effects for Icons */
.contact-item a:hover i {
    transform: scale(1.1); /* Slightly enlarge on hover */
}

/* Bounce Animation */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-6px); /* Smaller bounce distance */
    }
    60% {
        transform: translateY(-3px); /* Smaller bounce distance */
    }
}
