/* Global Styles */
:root {
    --primary-color: #2c3e50;
    --secondary-color: #34495e;
    --accent-color: #e67e22;
    --text-color: #333;
    --light-bg: #ecf0f1;
    --font-primary: 'Playfair Display', serif;
    --font-secondary: 'Montserrat', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-secondary);
    color: var(--text-color);
    line-height: 1.6;
    font-size: 16px;
    background-color: #f8f9fa;
}

h1, h2, h3, h4 {
    font-family: var(--font-primary);
    color: var(--primary-color);
    letter-spacing: 1px;
    font-weight: 300;
}

h1 {
    font-size: 3.5rem;
    margin-bottom: 2rem;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

/* Header Styles */
header {
    background-color: var(--primary-color);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.language-switcher {
  margin-left: 20px;
}

#language-select {
  background-color: transparent;
  color: #fff;
  border: 1px solid #fff;
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 14px;
  cursor: pointer;
}

#language-select option {
  background-color: var(--primary-color);
  color: #fff;
}

@media (max-width: 768px) {
  .language-switcher {
    margin-top: 10px;
    margin-left: 0;
  }
}

.logo {
    font-family: var(--font-primary);
    font-size: 2rem;
    color: #fff;
    font-weight: 700;
    letter-spacing: 2px;
}

nav ul {
    display: flex;
    list-style-type: none;
}

nav ul li {
    margin-left: 2rem;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

nav ul li a:hover {
    color: var(--accent-color);
}

/* Main Content Styles */
main {
    padding-top: 80px; /* To account for fixed header */
}

section {
    padding: 5rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Standardized Header and Subheader Styles */
section h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 400;
    text-align: center;
}

section h3 {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-bottom: 2rem;
    font-weight: 300;
    text-align: center;
}

/* Hero Section */
#hero {
    background-color: var(--light-bg);
    text-align: center;
    padding: 8rem 2rem;
}

#hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

#hero p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 2rem;
}

/* About Section */
#about {
    background-color: #fff;
}

/* Features Section */
#features {
    background-color: var(--light-bg);
    text-align: center;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.feature-item {
    background-color: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    text-align: center;
    border: 1px solid rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.feature-item i {
    font-size: 2.5rem;
    color: #fff;
    margin-bottom: 1.5rem;
    background-color: var(--accent-color);
    width: 60px;
    height: 60px;
    line-height: 60px;
    border-radius: 50%;
}

.feature-item h4 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-family: var(--font-primary);
}

/* Use Case Section */
#use-case {
    background-color: #fff;
    text-align: center;
    padding: 5rem 2rem;
}

#use-case h2 {
    font-size: 2.8rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-weight: 400;
    line-height: 1.2;
}

#use-case h3 {
    font-size: 1.8rem;
    color: var(--secondary-color);
    margin-bottom: 2rem;
    font-weight: 300;
}

#use-case p {
    max-width: 800px;
    margin: 0 auto 1.5rem;
    text-align: left;
}

@media (max-width: 768px) {
    #use-case h2 {
        font-size: 2.2rem;
    }

    #use-case h3 {
        font-size: 1.5rem;
    }
}

/* How It Works Section */
#how-it-works {
    background-color: var(--light-bg);
    padding: 4rem 2rem 5rem;
    text-align: center;
}

#how-it-works h2 {
    font-size: 2.8rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-weight: 400;
}

#how-it-works h3 {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-bottom: 2rem;
    font-weight: 300;
    position: relative;
    display: inline-block;
    padding-bottom: 0.5rem;
}

#how-it-works h3::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 8%;
    transform: translateX(-50%);
    width: 50px;
    height: 0px;
    background-color: var(--accent-color);
}

.timeline {
    position: relative;
    max-width: 800px;
    margin: 3rem auto 0;
    text-align: left;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 6px;
    background-color: var(--primary-color);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -3px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
}

.timeline-item h3 {
    text-align: left;
    padding-bottom: 0;
    margin-bottom: 0.5rem;
}

.timeline-item h3::after {
    content: none;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 25px;
    right: -17px;
    background-color: var(--light-bg);
    border: 4px solid var(--accent-color);
    top: 15px;
    border-radius: 50%;
    z-index: 1;
}

.timeline-item:nth-child(odd) {
    left: 0;
}

.timeline-item:nth-child(even) {
    left: 50%;
}

.timeline-item:nth-child(even)::after {
    left: -16px;
}

@media (max-width: 768px) {
    #how-it-works h2 {
        font-size: 2.2rem;
    }

    #how-it-works h3 {
        font-size: 1.3rem;
    }

    .timeline-item h3 {
        font-size: 1.2rem;
    }
}

/* Testimonials Section */
#testimonials {
    background-color: #fff;
    text-align: center;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.testimonial {
    background-color: var(--light-bg);
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    font-style: italic;
    position: relative;
}

.testimonial:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.testimonial::before {
    content: '\201C';
    font-size: 4rem;
    position: absolute;
    left: 0.5rem;
    top: -1rem;
    color: var(--accent-color);
    opacity: 0.3;
}

.testimonial cite {
    display: block;
    margin-top: 1rem;
    font-style: normal;
    font-weight: bold;
}

/* CTA Section */
#cta {
    background-color: var(--primary-color);
    color: #fff;
    text-align: center;
    padding: 5rem 2rem;
}

#cta h2 {
    font-size: 2.8rem;
    color: #fff;
    margin-bottom: 1rem;
    font-weight: 400;
}

#cta h3 {
    font-size: 1.4rem;
    color: #ffffff;
    margin-bottom: 2rem;
    font-weight: 300;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button {
    display: inline-block;
    background-color: var(--accent-color);
    color: #fff;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 1rem;
}

.cta-button:hover {
    background-color: #d35400;
    transform: translateY(-3px);
}

@media (max-width: 768px) {
    #cta h2 {
        font-size: 2.2rem;
    }

    #cta h3 {
        font-size: 1.2rem;
    }
}

/* FAQ Section */
#faq {
    background-color: var(--light-bg);
    text-align: center;
}

.faq-list {
    list-style-type: none;
    max-width: 800px;
    margin: 3rem auto 0;
    text-align: left;
}

.faq-item {
    background-color: #fff;
    margin-bottom: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.faq-question {
    font-size: 1.1rem;
    padding: 1rem 1rem 1rem 2rem; /* Increased left padding */
    cursor: pointer;
    position: relative;
    margin: 0;
    background-color: #f5f5f5;
    text-align: left; /* Explicitly set left alignment */
}

.faq-question::after {
    content: '+';
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question::after {
    transform: translateY(-50%) rotate(45deg);
}

.faq-answer {
    padding: 0 1rem 0 2rem; /* Increased left padding */
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background-color: #fff;
}

.faq-item.active .faq-answer {
    padding: 1rem 1rem 1rem 2rem; /* Increased left padding */
    max-height: 1000px; /* Adjust this value as needed */
}

.faq-answer p {
    margin: 0;
}

/* Contact Section */
#contact {
    background-color: #fff;
    text-align: center;
    padding: 5rem 2rem;
}

#contact h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

#contact > p {
    max-width: 800px;
    margin: 0 auto 2rem;
}

.contact-info {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 3rem;
}

.contact-method {
    flex-basis: calc(50% - 1rem);
    max-width: 300px;
    background-color: var(--light-bg);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-method:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.contact-method h3 {
    font-size: 1.2rem;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.contact-method p {
    font-size: 1rem;
    color: var(--accent-color);
}

.contact-method a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-method a:hover {
    color: var(--primary-color);
}

.cta-container {
    margin-top: 2rem;
}

.cta-container p {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

@media (max-width: 768px) {
    .contact-method {
        flex-basis: 100%;
    }
}


/* Footer Styles */
footer {
    background-color: var(--secondary-color);
    color: #fff;
    padding: 3rem 2rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.footer-logo {
    font-family: var(--font-primary);
    font-size: 1.5rem;
}

.footer-links a {
    color: #fff;
    text-decoration: none;
    margin-right: 1rem;
}

.footer-links a:hover {
    color: var(--accent-color);
}

.footer-copyright {
    font-size: 0.9rem;
    opacity: 0.8;
    width: 100%;
    text-align: center;
    margin-top: 1rem;
}

@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-logo, .footer-links {
        margin-bottom: 1rem;
    }

    .footer-copyright {
        margin-top: 0.5rem;
    }
}

/* CTA Button Styles */
.cta-button {
    display: inline-block;
    background-color: var(--accent-color);
    color: #fff;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
}

.cta-button:hover {
    background-color: #d35400;
}

/* Fade-in animation */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 1s ease-out forwards;
}

/* Mobile menu button */
.mobile-menu-button {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Responsive Styles */
@media (max-width: 768px) {
    section h2 {
        font-size: 2rem;
    }

    section h3 {
        font-size: 1.3rem;
    }

    nav ul {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--primary-color);
        padding: 1rem;
    }

    nav ul.show {
        display: flex;
    }

    nav ul li {
        margin: 0.5rem 0;
    }

    .mobile-menu-button {
        display: block;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }

    .timeline::after {
        left: 31px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 25px;
    }

    .timeline-item::before {
        left: 60px;
        border: medium solid white;
        border-width: 10px 10px 10px 0;
        border-color: transparent white transparent transparent;
    }

    .timeline-item::after {
        left: 15px;
    }

    .timeline-item:nth-child(even) {
        left: 0%;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-logo, .footer-links, .footer-cta {
        margin-bottom: 1rem;
    }

    .footer-cta {
        text-align: center;
    }
}



/* Elegant Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--light-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color);
}