/* General Styles */
body {
    margin: 0;
    padding: 0.5cm; /* 0.5cm white padding around the whole site */
    background-color: #002766; /* Blue background color */
    font-family: 'Poppins', sans-serif;
}

/* Navbar Styles */
.navbar-brand {
    font-size: 30px; /* Increased font size */
    color: #FFD700; /* Gold color */
    font-weight: bold;
}

.navbar-nav .nav-link {
    font-size: 18px;
    color: white;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: #FFD700; /* Gold color on hover */
    transform: scale(1.1);
}

/* Welcome Text */
.welcome-text {
    font-size: 5rem; /* Slightly bigger size */
    font-weight: bold;
    color: #FFD700; /* Gold color */
    animation: fadeIn 2s ease-in-out;
}

/* Sub-text */
.welcome-subtext {
    font-size: 2rem; /* Slightly bigger size */
    color: #FFFFFF; /* Bright white */
    line-height: 1.8;
    margin-top: 20px;
    animation: fadeIn 2.5s ease-in-out;
}

/* Know More Button */
.btn-know-more {
    background-color: #F0C674; /* New color for button */
    color: #002766;
    padding: 12px 28px;
    font-size: 1.2rem;
    border-radius: 30px;
    margin-top: 20px;
    transition: background-color 0.3s ease;
}

.btn-know-more:hover {
    background-color: #FFD700; /* Gold color on hover */
    color: #002766;
    transform: scale(1.05);
}

/* About Section */
.about-title {
    color: #FFD700;
    font-size: 2.8rem;
    font-weight: bold;
    opacity: 0; /* Initially hidden */
    transform: translateY(20px);
    transition: opacity 1.5s ease, transform 1.5s ease;
}

.about-description {
    font-size: 1.3rem;
    color: white;
    line-height: 1.8;
    opacity: 0; /* Initially hidden */
    transform: translateY(20px);
    transition: opacity 1.5s ease, transform 1.5s ease;
    margin-bottom: 0;
}

/* Image Slider: Larger Images in 3x3 Square Grid */
.image-container {
    display: grid;
    grid-template-columns: repeat(3, 150px); /* Bigger images */
    grid-template-rows: repeat(3, 150px); /* 3 images per column */
    grid-gap: 15px;
    position: relative;
    opacity: 0; /* Initially hidden */
    transition: opacity 1.5s ease;
    max-width: 500px; /* Adjust max width for bigger images */
    margin: 0 auto; /* Center the images */
}

/* Image Responsiveness */
.img-change {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    transition: opacity 1s ease, transform 1s ease, box-shadow 0.5s ease;
}

/* Glow Effect When Image Changes */
.img-change.active {
    box-shadow: 0 0 20px #FFD700; /* Gold glow */
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Scroll-triggered Animation */
.show-section .about-title, .show-section .about-description, .show-section .image-container {
    opacity: 1;
    transform: translateY(0);
}

/* Responsiveness */
@media (max-width: 768px) {
    .welcome-text {
        font-size: 3.5rem;
    }

    .welcome-subtext {
        font-size: 1.5rem;
    }

    .navbar-brand {
        font-size: 24px;
    }

    .navbar-nav .nav-link {
        font-size: 16px;
    }

    .image-container {
        grid-template-columns: repeat(3, 1fr); /* Still 3 per row on mobile */
        grid-template-rows: repeat(3, 1fr);
        max-width: 100%; /* Ensure images are responsive */
    }
}




/* Our Database Section Title Animation */
.our-database-title {
    font-size: 3.5rem;
    color: #FFD700;
    animation: pulse 2s infinite;
    text-align: center;
    margin-bottom: 50px;
}

/* Pulse animation for the title */
@keyframes pulse {
    0% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.9; transform: scale(1.05); }
    100% { opacity: 1; transform: scale(1); }
}

/* Styling for Database Boxes */
.database-boxes {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 columns per row */
    grid-gap: 40px; /* Increased gap between boxes */
    margin-top: 50px;
    width: 100%;
}

/* Adjusted box size */
.database-box {
    background-color: white;
    padding: 25px;
    border-radius: 20px; /* Rounded corners */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
    height: 260px; /* Reduced height */
    transition: transform 0.5s ease, box-shadow 0.5s ease, background-color 0.3s ease;
    position: relative; /* For z-index changes */
}

/* Hover Animation for the boxes, replicating the style */
.database-box:hover {
    transform: translateY(-10px); /* Lift the box slightly */
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2); /* Enhanced shadow */
    z-index: 2; /* Bring to the front */
    background-color: #f0f8ff; /* Light blue background on hover */
}

/* Responsive Box Sizes */
@media (max-width: 992px) { /* For smaller laptops */
    .database-box {
        height: 230px;
    }
}

@media (max-width: 768px) { /* For tablets */
    .database-box {
        height: 200px;
    }
}

@media (max-width: 576px) { /* For mobile phones */
    .database-boxes {
        grid-template-columns: 1fr; /* Single column on mobile */
    }

    .database-box {
        height: 180px;
    }
}

/* Sequential Color Change for Boxes */
@keyframes colorChange {
    0% { background-color: white; }
    20% { background-color: #e0f7fa; } /* Light Blue */
    40% { background-color: #b2ebf2; } /* Cyan */
    60% { background-color: #80deea; } /* Light Cyan */
    80% { background-color: #4dd0e1; } /* Medium Cyan */
    100% { background-color: white; }
}

.database-box:nth-child(1) {
    animation: colorChange 15s infinite;
}

.database-box:nth-child(2) {
    animation: colorChange 15s infinite 2s;
}

.database-box:nth-child(3) {
    animation: colorChange 15s infinite 4s;
}

.database-box:nth-child(4) {
    animation: colorChange 15s infinite 6s;
}

.database-box:nth-child(5) {
    animation: colorChange 15s infinite 8s;
}

.database-box:nth-child(6) {
    animation: colorChange 15s infinite 10s;
}

.database-box:nth-child(7) {
    animation: colorChange 15s infinite 12s;
}

.database-box:nth-child(8) {
    animation: colorChange 15s infinite 14s;
}

.database-box:nth-child(9) {
    animation: colorChange 15s infinite 16s;
}

/* Icon Styling */
.database-box i {
    font-size: 2.3rem; /* Slightly smaller icons */
    color: #002766;
    margin-bottom: 15px;
}

/* Box Text */
.database-box h3 {
    font-size: 1.6rem; /* Slightly smaller heading text */
    color: #002766;
}

.database-box p {
    font-size: 1.1rem; /* Slightly smaller paragraph text */
    color: #333;
    margin-top: 10px;
    line-height: 1.6;
}

/* Gap Between Sections */
.section-divider {
    margin: 80px 0; /* Large gap between sections */
}




/* How It Works Section Styling */
.how-it-works-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 50px;
    background-color: #002766; /* Light background to contrast text and image */
    margin-top: 80px; /* Adds gap between Our Database and How It Works */
}

/* Section Layout - Image and Text Side by Side */
.how-it-works-layout {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 1200px;
    flex-wrap: wrap;
    gap: 50px;
}

/* Image Styling */
.how-it-works-image {
    flex: 1;
    min-width: 300px;
    max-width: 450px;
}

.how-it-works-image img {
    width: 100%;
    height: auto;
    border-radius: 15px; /* Rounded corners for a cleaner look */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3); /* Soft shadow */
}

/* Text Section */
.how-it-works-text {
    flex: 1;
    background-color: white;
    padding: 20px 30px;
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: left;
}

/* Title Animation */
.how-it-works-title {
    font-size: 3rem;
    color: #FFD700;
    animation: bounceTitle 2s infinite;
    text-align: center;
    margin-bottom: 20px;
}

/* Bounce Animation for Title */
@keyframes bounceTitle {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-30px);
    }
    60% {
        transform: translateY(-15px);
    }
}

/* Individual Content Items */
.how-it-works-item {
    margin-bottom: 20px;
}

.how-it-works-item h3 {
    font-size: 1.6rem;
    color: #002766;
    margin-bottom: 10px;
}

.how-it-works-item p {
    font-size: 1.1rem;
    color: #333;
    line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 992px) {
    .how-it-works-layout {
        flex-direction: column; /* Stack image and text on smaller screens */
    }
}




/* FAQ Section Styling */
.faq-section {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 60px;
    background-color: #002766;
    position: relative;
    margin-top: 80px;
}

/* Image Placement on the Side */
.faq-image-container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 40px; /* Add spacing between image and FAQ */
}

.faq-image {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    opacity: 0.9; /* Slight opacity for elegance */
}

/* FAQ Content Styling */
.faq-content {
    flex: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
}

/* FAQ Title Styling */
.faq-title {
    font-size: 3rem;
    color: #FFD700;
    animation: fadeIn 1.5s ease-in-out;
    margin-bottom: 50px;
}

/* FAQ Items Styling */
.faq-item {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    padding: 20px;
    width: 100%;
    cursor: pointer;
    transition: all 0.4s ease;
    border-left: 4px solid #FFD700;
}

/* Hover Effect */
.faq-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* FAQ Question and Answer */
.faq-question {
    font-size: 1.6rem;
    color: #333;
    margin-bottom: 10px;
}

.faq-answer {
    font-size: 1.2rem;
    color: #666;
    line-height: 1.6;
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease;
}

/* Active FAQ Toggle */
.faq-item.active .faq-answer {
    display: block;
    opacity: 1;
}

/* Fade-in Animation */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Responsive Design */
@media (max-width: 992px) {
    .faq-section {
        flex-direction: column;
    }

    .faq-image-container {
        margin-bottom: 40px;
        margin-right: 0;
    }

    .faq-image {
        max-width: 100%;
    }
}





/* Overlay Background */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    overflow: hidden; /* Prevent overlay from having external scrolling */
}

/* Overlay Content */
.overlay-content {
    background: linear-gradient(145deg, #ffe29f, #ffa99f);
    padding: 40px;
    border-radius: 25px;
    width: 100%;
    max-width: 600px; /* Panel width */
    max-height: 90vh; /* Adjust height */
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.4);
    position: relative;
    overflow-y: auto; /* Scrollable if content is long */
    animation: slideIn 0.5s ease-in-out;
}

/* Slide-in Animation */
@keyframes slideIn {
    from { transform: translateY(-100px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Close Button and Header */
.overlay-header {
    position: sticky;
    top: 0;
    background: linear-gradient(145deg, #ffe29f, #ffa99f);
    width: 100%;
    z-index: 1;
    padding-bottom: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Close Button */
.close-btn {
    position: absolute;
    right: 15px;
    top: 15px;
    font-size: 24px;
    cursor: pointer;
    border: none;
    background: none;
    color: #333;
}

/* Register Header */
.overlay-header h2 {
    color: #3c3c3c;
    font-size: 2.2rem;
    font-weight: bold;
    margin: 0;
    text-align: center;
}

/* Input Fields Styling */
form input[type="text"], 
form input[type="email"], 
form input[type="password"], 
form input[type="date"], 
form input[type="month"], 
form select {
    width: 100%; /* Full width inputs */
    padding: 12px;
    margin-bottom: 20px; /* Space between input fields */
    border: 1px solid #ddd;
    border-radius: 10px;
    background-color: #fff;
    transition: all 0.3s ease;
}

/* Focus effect on inputs */
input:focus, select:focus {
    border-color: #ff7e5f;
    box-shadow: 0 0 8px rgba(255, 126, 95, 0.6);
}

/* Labels */
label {
    font-weight: bold;
    color: #444;
    margin-bottom: 5px;
    display: block;
}

/* Card Details Adjustments */
.payment-section {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-top: 20px;
    width: 100%;
}

.payment-section input[type="text"] {
    width: 100%;
    margin-bottom: 20px;
}

.card-row {
    display: flex;
    justify-content: space-between;
    width: 100%;
}

.card-row input {
    width: 48%; /* Smaller fields for card details */
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 10px;
    background-color: #fff;
}

/* Register Button */
.register-btn {
    width: 100%;
    padding: 15px;
    background-color: #ff7e5f;
    color: white;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-size: 1.2rem;
    margin-top: 20px;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.register-btn:hover {
    background-color: #FFD700;
    transform: scale(1.05);
}

/* Custom Checkbox Styling */
.premium-service input[type="checkbox"] {
    appearance: none;
    width: 20px;
    height: 20px;
    background: #fff;
    border: 2px solid #ff7e5f;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.premium-service input[type="checkbox"]:checked {
    background-color: #ff7e5f;
    box-shadow: 0 0 5px rgba(255, 126, 95, 0.6);
}


/* Overlay Background */
.login-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    overflow-y: auto;
}

/* Login Overlay Content */
.login-overlay-content {
    background: linear-gradient(145deg, #ffecd2, #fcb69f);
    padding: 40px;
    border-radius: 25px;
    width: 100%;
    max-width: 450px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.4);
    position: relative;
    animation: fadeIn 0.5s ease-in-out;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Fade-in Animation */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Close Button and Header */
.login-overlay-header {
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #ffecd2;
    padding-bottom: 20px;
}

/* Close Button */
.close-btn {
    position: absolute;
    right: 15px;
    top: 15px;
    font-size: 24px;
    cursor: pointer;
    border: none;
    background: none;
    color: #333;
}

/* Login Header */
.login-overlay-header h2 {
    color: #333;
    font-size: 2rem;
    font-weight: bold;
    text-align: center;
}

/* Input Fields Styling */
form input[type="email"], 
form input[type="password"] {
    width: 100%;
    padding: 12px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 10px;
    background-color: #fff;
    transition: all 0.3s ease;
}

/* Focus effect on inputs */
input:focus {
    border-color: #ff7e5f;
    box-shadow: 0 0 8px rgba(255, 126, 95, 0.6);
}

/* Labels */
label {
    font-weight: bold;
    color: #444;
    margin-bottom: 5px;
    display: block;
}

/* Login Button */
.login-btn {
    width: 100%;
    padding: 15px;
    background-color: #ff7e5f;
    color: white;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-size: 1.2rem;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.login-btn:hover {
    background-color: #FFD700;
    transform: scale(1.05);
}

/* Forgot Password Link */
.forgot-password {
    display: block;
    margin-top: 10px;
    text-align: center;
    color: #333;
    text-decoration: none;
}

.forgot-password:hover {
    text-decoration: underline;
}



/* Forgot Password Overlay Background */
.forgot-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    overflow-y: auto;
}

/* Forgot Password Overlay Content */
.forgot-overlay-content {
    background: linear-gradient(145deg, #d3f8e2, #91c7b1);
    padding: 40px;
    border-radius: 25px;
    width: 100%;
    max-width: 450px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.4);
    position: relative;
    animation: fadeIn 0.5s ease-in-out;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Fade-in Animation */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Close Button and Header */
.forgot-overlay-header {
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #d3f8e2;
    padding-bottom: 20px;
}

/* Close Button */
.close-btn {
    position: absolute;
    right: 15px;
    top: 15px;
    font-size: 24px;
    cursor: pointer;
    border: none;
    background: none;
    color: #333;
}

/* Forgot Password Header */
.forgot-overlay-header h2 {
    color: #333;
    font-size: 2rem;
    font-weight: bold;
    text-align: center;
}

/* Input Fields Styling */
form input[type="email"] {
    width: 100%;
    padding: 12px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 10px;
    background-color: #fff;
    transition: all 0.3s ease;
}

/* Focus effect on inputs */
input:focus {
    border-color: #58a6ff;
    box-shadow: 0 0 8px rgba(88, 166, 255, 0.6);
}

/* Labels */
label {
    font-weight: bold;
    color: #444;
    margin-bottom: 5px;
    display: block;
}

/* Reset Password Button */
.reset-btn {
    width: 100%;
    padding: 15px;
    background-color: #58a6ff;
    color: white;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-size: 1.2rem;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.reset-btn:hover {
    background-color: #3498db;
    transform: scale(1.05);
}




