/* General Styles
-------------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap');

:root {
    --primary-color: #003366;
    --secondary-color: #C5A46D;
    --accent-color: #0077c8;
    --background-light: #f4f6f8;
    --text-color: #333;
    --text-light: #c0c0c0;
}

body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--background-light);
    color: var(--text-color);
    line-height: 1.5;
    scroll-behavior: smooth;
    font-size: 15px;
}

section {
    padding: 50px 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.content-section {
    display: none;
}

.active-section {
    display: block;
}

h1, h2 {
    font-size: 2.2rem;
    color: var(--primary-color);
    text-align: center;
    margin: 0;
}

h2 {
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 15px;
    opacity: 1; 
    transform: translateX(0); 
}

@keyframes slideInFromLeft {
    0% {
        transform: translateX(-100%);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

.hideable-section h2 {
    opacity: 0;
    transform: translateX(-100%);
    animation: slideInFromLeft 0.8s ease-out forwards;
}

h2::after {
    content: '';
    display: block;
    width: 70px;
    height: 3px;
    background-color: var(--secondary-color);
    margin: 10px auto 0;
}

/* Header & Navigation
-------------------------------------------------- */
.top-bar {
    background-color: var(--primary-color);
    padding: 8px 30px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.top-bar .social-icons {
    display: flex;
    gap: 12px;
    align-items: center;
}

.top-bar .social-icons a {
    color: white;
    font-size: 1.6rem;
    transition: color 0.3s, transform 0.2s;
}

.top-bar .social-icons a:hover {
    color: var(--secondary-color);
    transform: scale(1.1);
}

header {
    background-color: var(--primary-color);
    color: white;
    padding: 15px 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    max-width: 1200px;
    margin: 0 auto;
}

.header-flex {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo {
    height: 80px;
    animation: bounceIn 4s ease-out;
}

@keyframes bounceIn {
    0% { transform: scale(0.5); opacity: 0; }
    60% { transform: scale(1.1); opacity: 1; }
    100% { transform: scale(1); }
}

.logo-title h1 {
    font-size: 1.8rem;
    margin: 0;
}

.slogan {
    font-size: 1rem;
    font-style: italic;
    margin: 5px 0 0;
    color: var(--text-light);
}

#navLinks {
    width: 100%;
    margin-top: 10px;
}

#navLinks nav {
    display: flex;
    justify-content: center;
    gap: 15px;
}

#navLinks a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 8px 12px;
    border-radius: 5px;
    transition: background-color 0.3s, transform 0.2s;
}

#navLinks a:hover,
#navLinks a.active {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
}

header .social-icons {
    display: none;
}

.menu-icon {
    display: none;
    font-size: 2rem;
    cursor: pointer;
    color: white;
}

/* Home Section
-------------------------------------------------- */
#home {
    text-align: center;
    background-image: linear-gradient(rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.8)), url('background.png');
    background-size: cover;
    background-position: center;
    color: var(--text-color);
    padding: 80px 20px;
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#home h2 {
    color: var(--primary-color);
    font-weight: 700;
}

#home h2::after {
    background-color: var(--secondary-color);
}

#home p {
    color: var(--text-color);
    font-size: 1rem;
    max-width: 800px;
}

/* About Section
-------------------------------------------------- */
#about p {
    text-align: justify;
    font-size: 0.9rem;
    max-width: 800px;
    margin: 0 auto;
}

#about p strong {
    color: var(--secondary-color);
}

/* Packages Section
-------------------------------------------------- */
.packages {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    justify-items: center;
    align-items: stretch;
}

.card {
    background: white;
    border: 1px solid #ddd;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.card h3 {
    font-size: 1.4rem;
    color: var(--primary-color);
    text-align: center;
    margin-top: 0;
    margin-bottom: 15px;
}

.card ul {
    list-style: none;
    padding: 0;
    margin: 8px 0;
    text-align: left;
}

.card ul li {
    padding: 6px 0;
    border-bottom: 1px solid #eee;
    color: #555;
    font-size: 0.9rem;
}

.card ul li:last-child {
    border-bottom: none;
}

.pay-btn {
    display: block;
    width: 100%;
    padding: 12px;
    background-color: var(--accent-color);
    color: white;
    text-align: center;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
    text-decoration: none;
}

.pay-btn:hover {
    background-color: #005fa3;
    transform: translateY(-2px);
}

/* Styles for the separate service sections */
.service-details-container {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.service-content {
    flex: 1;
    min-width: 300px;
}

.service-pay-card {
    flex-basis: 250px;
    padding: 20px;
    background-color: var(--background-light);
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.service-pay-card h3 {
    font-size: 1.2rem;
    color: var(--primary-color);
    text-align: center;
    margin-top: 0;
}

.service-pay-card p {
    font-size: 0.9rem;
    text-align: center;
    margin: 10px 0;
}

.service-pay-card ul {
    list-style: none;
    padding: 0;
    text-align: left;
    margin: 0 0 20px;
}

.service-pay-card ul li {
    font-size: 0.9rem;
    padding: 5px 0;
}

/* Services Section
-------------------------------------------------- */
#services {
    background-image: linear-gradient(rgba(244, 246, 248, 0.95), rgba(244, 246, 248, 0.95)), url('background.png');
    background-attachment: fixed;
    background-size: cover;
    text-align: center;
}

/* NEW: Styles for the services hub */
.services-links-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    list-style: none;
    padding: 0;
}

.services-links-list li,
.services-links-list a {
    background: white;
    padding: 20px;
    border-left: 5px solid var(--accent-color);
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s, border-left-color 0.3s;
    text-decoration: none;
    color: var(--text-color);
    display: block;
    height: 100%;
}

.services-links-list li:hover,
.services-links-list a:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
    border-left-color: var(--secondary-color);
}

/* Contact Section
-------------------------------------------------- */
#contact {
    background-color: var(--background-light);
}

.contact-form {
    max-width: 500px;
    margin: 0 auto;
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 10px;
    margin-bottom: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 0.9rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 5px rgba(0, 119, 200, 0.3);
}

.contact-form button {
    width: 100%;
    padding: 12px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.3s;
}

.contact-form button:hover {
    background-color: var(--secondary-color);
}

/* Footer
-------------------------------------------------- */
footer {
    background-color: var(--primary-color);
    color: white;
    text-align: center;
    padding: 15px;
}

/* Floating WhatsApp button styles */
.whatsapp-chat {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: transparent;
    width: 50px;
    height: 50px;
    display: block;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    z-index: 999;
    transition: transform 0.3s;
    border-radius: 50%;
}

.whatsapp-chat:hover {
    transform: scale(1.1);
}

.whatsapp-icon-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

/* Modal Pop-up Styles
-------------------------------------------------- */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
    padding-top: 50px;
    animation: fadeIn 0.3s ease-out;
}

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

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 25px;
    border-radius: 12px;
    max-width: 450px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    position: relative;
    animation: slideUp 0.4s ease-out;
}

@keyframes slideUp {
    from { transform: translateY(50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.close-btn {
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    top: 10px;
    right: 15px;
    cursor: pointer;
    transition: color 0.2s;
}

.close-btn:hover,
.close-btn:focus {
    color: var(--primary-color);
}

#requirementsForm {
    display: flex;
    flex-direction: column;
}

#requirementsForm label {
    font-weight: 500;
    margin-top: 12px;
    color: var(--primary-color);
}

#requirementsForm input {
    width: 100%;
    padding: 8px;
    margin-top: 8px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 0.9rem;
}

/* Media Queries for Mobile Responsiveness
-------------------------------------------------- */
@media (max-width: 768px) {
    /* Updated Mobile Header Styling */
    header {
        padding: 15px 20px;
    }

    .header-flex {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 15px;
    }
    
    .logo-title {
        flex-direction: column;
        text-align: center;
        width: 100%;
        gap: 5px;
        align-items: center;
    }

    .logo {
        height: 70px;
    }

    .logo-title h1 {
        font-size: 1.6rem;
        margin-top: 5px;
    }

    .slogan {
        font-size: 0.9rem;
        display: block;
    }

    /* Updated Menu Icon Position */
    .menu-icon {
        display: block;
        font-size: 2rem;
        position: absolute;
        top: 20px;
        right: 20px;
    }

    /* Updated Mobile Navigation */
    #navLinks {
        margin-top: 0;
        display: none;
    }
    
    .nav-active {
        display: block !important;
    }

    #navLinks nav {
        flex-direction: column;
        text-align: center;
        width: 100%;
        background-color: var(--primary-color);
    }

    #navLinks a {
        padding: 15px;
        border-radius: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        font-size: 1.2rem;
    }
    
    /* Other Mobile Styles */
    h2 {
        font-size: 1.8rem;
        text-align: left;
    }
    
    h2::after {
        margin: 8px 0 0;
    }

    #home h2 {
        font-size: 2.2rem;
        text-align: center;
    }

    #home p {
        font-size: 0.9rem;
    }

    .card h3 {
        font-size: 1.2rem;
    }
    
    .packages, #services ul {
        gap: 15px;
    }

    .service-details-container {
        flex-direction: column;
    }

    .service-pay-card {
        min-width: unset;
        flex-basis: auto;
    }
}