/* General Styles */
* {
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Helvetica Neue', sans-serif;
    color: #333;
    background-color: #f7f7f7;
}

img {
    max-width: 100%;
    height: auto;
}

/* Preloader Styles */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #f7f7f7; /* Background color while loading */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.spinner {
    border: 8px solid #f3f3f3; /* Light grey */
    border-top: 8px solid #3498db; /* Blue */
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1.5s linear infinite;
    margin-bottom: 20px; /* Space between spinner and text */
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.preloader-text {
    font-family: 'Helvetica Neue', sans-serif;
    font-size: 1.2em;
    color: #2C3E50; /* Dark blue for contrast */
    text-align: center;
    max-width: 80%;
    animation: fadeIn 1s ease-out forwards;
    opacity: 0;
    transform: translateY(20px);
}

@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hide preloader when page is loaded */
body.loaded #preloader {
    display: none;
}

/* Navigation Bar */
header {
    background-color: #2C3E50; /* French blue */
    padding: 10px 0;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    width: 150px;
    margin-left: 20px;
}

.nav-links {
    list-style: none;
    display: flex;
    margin-right: 20px;
    padding: 0;
    margin: 0;
}

.nav-links li {
    margin: 0 15px;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
}

.contact-icons a {
    color: #fff;
    margin-right: 15px;
    font-size: 1.2em;
}

.burger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    justify-content: space-around;
    width: 25px;
    height: 25px;
    z-index: 1001; /* Ensure it's above the nav-links */
}

.burger div {
    width: 25px;
    height: 3px;
    background-color: #fff;
    transition: all 0.3s ease;
}

/* Hero Section */
.hero-section {
    position: relative;
    background-image: url('hero_chinar.jpg');
    background-size: cover;
    background-position: center;
    height: 100vh;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(44, 62, 80, 0.6); /* Dark overlay using French blue with 60% opacity */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    font-size: 4em;
    margin-bottom: 20px;
    color: #ecf0f1; /* Light grey text */
    animation: fadeInDown 1s ease-in-out;
}

.hero-content p {
    font-size: 1.5em;
    margin-bottom: 30px;
    color: #ecf0f1; /* Light grey text */
    animation: fadeInUp 1s ease-in-out;
}

.btn {
    padding: 15px 30px;
    background-color: #3498db;
    color: #fff;
    text-decoration: none;
    border-radius: 30px;
    font-size: 1em;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: #2980b9;
}

.cta-container {
    text-align: center;
    margin-top: 30px;
}

.cta-btn {
    background-color: #e74c3c;
}

.cta-btn:hover {
    background-color: #c0392b;
}

/* Content Sections */
.content-section {
    padding: 60px 50px;
    background-color: #f7f7f7;
    position: relative;
}

.content-section h2 {
    margin-bottom: 40px;
    color: #2C3E50;
    text-align: center;
}

.content-section h3 {
    margin-top: 30px;
    color: #2C3E50;
}

.content-section p {
    line-height: 1.8;
    margin-bottom: 20px;
}

.fade-in-section {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-section.is-visible {
    opacity: 1;
    transform: none;
}

/* Read More Button */
.read-more-btn, .read-less-btn {
    background-color: transparent;
    color: #3498db;
    border: none;
    font-size: 1em;
    cursor: pointer;
    padding: 0;
    margin-top: 10px;
}

.read-more-content {
    display: none;
    margin-top: 20px;
}

.read-more-content ul {
    list-style-type: disc;
    margin-left: 20px;
}

/* Accordion Styles */
.accordion {
    max-width: 800px;
    margin: 0 auto;
}

.accordion-item {
    background-color: #fff;
    margin-bottom: 10px;
    border-radius: 5px;
    overflow: hidden;
    border: 1px solid #ddd;
}

.accordion-header {
    background-color: #2C3E50;
    color: #fff;
    padding: 20px;
    font-size: 1.2em;
    cursor: pointer;
    border: none;
    width: 100%;
    text-align: left;
}

.accordion-content {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background-color: #fff;
}

.accordion-content p {
    padding: 20px 0;
}

/* Credentials Section */
.credentials-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
}

.credential-item {
    flex: 1 1 300px;
    max-width: 300px;
    background-color: #fff;
    padding: 30px;
    margin: 15px;
    border-radius: 5px;
    box-sizing: border-box;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
}

.credential-item h3 {
    margin-top: 0;
}

.credential-item p, .credential-item ul {
    flex-grow: 1;
}

.credential-item ul {
    list-style-type: disc;
    margin-left: 20px;
}

/* Contact Form Styles */
#contact-form {
    display: flex;
    flex-direction: column;
    max-width: 600px;
    margin: 0 auto;
}

#contact-form label {
    margin-bottom: 5px;
    font-weight: bold;
}

#contact-form input, #contact-form textarea {
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid #bdc3c7;
    border-radius: 5px;
    font-size: 1em;
}

#contact-form button {
    padding: 15px;
    background-color: #2C3E50;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
}

#contact-form button:hover {
    background-color: #34495e;
}

.form-spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
    display: none; /* Hidden by default */
    margin: 10px auto;
}

#form-message {
    text-align: center;
    font-size: 1em;
    margin-top: 10px;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

#form-message.visible {
    opacity: 1;
}

#contact-form button:disabled {
    background-color: #95a5a6;
    cursor: not-allowed;
}

/* Contact Info Section */
.contact-info {
    text-align: center;
    margin-top: 30px;
}

.contact-info p {
    font-size: 1.2em;
    margin: 10px 0;
}

.contact-info a {
    color: #3498db;
    text-decoration: none;
}

.contact-info i {
    margin-right: 10px;
}

/* Footer */
footer {
    background-color: #2C3E50;
    color: #fff;
    text-align: center;
    padding: 20px 0;
}

/* Our Offerings Section Styles */
.offerings-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto 30px auto;
    padding: 0 20px;
}

.offering-item {
    background-color: #fff;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    opacity: 0; /* Start hidden */
    transform: translateY(20px); /* Start slightly shifted down */
}

.offering-item.is-visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.offering-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.offering-item h3 {
    font-size: 1.3em;
    margin-bottom: 10px;
    color: #2C3E50;
}

.offering-item ul {
    list-style-type: disc;
    margin-left: 20px;
    padding-left: 0;
}

.offering-item ul li {
    margin-bottom: 8px;
    line-height: 1.6;
    color: #34495e;
}

/* Call to Action Button Styling */
.cta-container {
    text-align: center;
    margin-top: 20px;
}

.cta-btn {
    background-color: #e74c3c; /* Distinct color for CTA to stand out */
}

.cta-btn:hover {
    background-color: #c0392b;
}

/* Media Query for Desktop Screens */
@media (min-width: 1024px) {
    .offerings-container {
        grid-template-columns: repeat(4, 1fr); /* Define four columns */
    }
    
    /* Center the last two tiles */
    .offerings-container .offering-item:nth-child(5),
    .offerings-container .offering-item:nth-child(6) {
        grid-column: 2 / span 2; /* Span two columns starting from the second column */
    }
}

/* Fade-In Section Styles */
.fade-in-section {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in-section.is-visible {
    opacity: 1;
    transform: none;
}

/* Mobile Navigation Styles */
@media (max-width: 768px) {
    .nav-links {
        display: flex;
        flex-direction: column;
        align-items: center;
        position: fixed;
        right: 0;
        height: 100vh;
        top: 0;
        background-color: #2C3E50;
        width: 60%;
        transform: translateX(100vw); /* Fully shift off-screen */
        transition: transform 0.5s ease-in-out;
        z-index: 999;
        padding-top: 60px; /* Space for header */
    }

    .nav-links.nav-active {
        transform: translateX(0);
    }

    .nav-links li {
        opacity: 0;
        margin: 20px 0; /* Consistent margin */
    }

    .burger {
        display: flex;
    }
}

/* Navigation Link Fade Animation */
@keyframes navLinkFade {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Burger Animation */
.burger.toggle div:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.burger.toggle div:nth-child(2) {
    opacity: 0;
}

.burger.toggle div:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Keyframes for Hero Text */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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