/* General Styles */
:root {
    --primary-color: #6e39d7;
    --primary-color-hover: #3A7BC8;
    --primary-color-dark: #311074;
    --secondary-color: #f5a623;
    --secondary-color-hover: #ed794b;
    --secondary-color-dark: #cc7f1b;
    --text-color: #281a39;
    --background-color: #f9f9f9;
}

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
}

p {
    font-family: 'Montserrat', sans-serif;
}

/* Header Styles */
header {
    background-color: #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    z-index: 1000;
}

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

.logo h1 {
    font-family: 'Fahkwang', sans-serif;
    font-weight: 700;
    font-size: 2rem;
    margin: 0;
}

.logo-link {
    display: flex;
    list-style: none;
    text-decoration: none;
    color: inherit;
}

.logo-link:hover {
    text-decoration: none;
    color: var(--primary-color-dark); /* Or any color you prefer for hover state */
    transition: color 0.3s ease;
}

.nav-container {
    display: flex;
    align-items: center;
}

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

.nav-links li {
    margin-left: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: bold;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.nav-cta-button {
    background-color: var(--primary-color);
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
    font-family: 'Roboto', sans-serif;
    margin-left: 2rem;
    font-size: 1rem; /* Reduced font size */
}

.nav-cta-button:hover {
    background-color: #3A7BC8; /* Darker blue for hover state */
}

.burger {
    display: none;
    cursor: pointer;
}

.burger div {
    width: 25px;
    height: 3px;
    background-color: var(--text-color);
    margin: 5px;
    transition: all 0.3s ease;
}

/* Hero Section */
#hero {
    background-image: url('../images/hero-bg.png');
    background-size: cover;
    background-position: center;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.hero-content {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.hero-text {
    flex: 0 1 50%;
    max-width: 600px;
    color: #281a39;
    margin-left: 5%;
}

.hero-text h1 {
    font-family: marcellus, marcellus, serif;
    font-size: 48px;
    margin-bottom: 1rem;
}

.hero-text p {
    font-family: bai jamjuree, sans-serif;
    font-size: 18px;
    margin-bottom: 2rem;
}

.cta-button {
    display: inline-block;
    background-color: var(--primary-color);
    color: #fff;
    padding: 1rem 1rem 1rem 1rem; /* Increased vertical padding */
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
    font-family: 'Roboto', sans-serif;
    width: 160px; /* Set a fixed width */
    font-size: 18px; /* Increased font size */
    text-align: center; /* Ensure text is centered */
}

.cta-button:hover {
    transition: 0.2s ease-in;
    background-color: #3A7BC8;
}

.hero-image {
    flex: 0 1 45%;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-right: 5%;
}

.hero-illustration {
    width: 100%;
    max-width: 600px;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    position: relative;
}

.hero-illustration::after {
    content: '';
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background: inherit;
    border-radius: 30px;
    filter: blur(15px);
    opacity: 0.7;
    z-index: -1;
}

#features { 
    padding: 4rem 0;
    background-color: #f9f9f9;
}

.container {
    max-width: 1400px; /* Increase max width to utilize more screen space */
    margin: 0 auto;
}

.feature-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1.5rem; /* Adjusted gap */
}

.feature-item {
    position: relative;
    flex: 0 1 calc(33.333% - 1rem); /* 3 items per row on large screens */
    background-size: cover;
    background-position: center;
    height: 400px; /* Height for each feature block */
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(119, 119, 119, 0.1);
    display: flex;
    align-items: flex-end;
}

.feature-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures the image covers the box without distortion */
}

.feature-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%; /* Make text box the same width as the image */
    height: 100%; /* Make the text box the same height as the image */
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2rem 2rem 1rem 2rem;
    background: linear-gradient(to top, rgba(41, 41, 41, 0.7), rgba(231, 231, 231, 0.1));
    z-index: 2;
    color: #fff;
}

.feature-text {
    max-width: 90%;
    margin-right: auto;
}

.feature-item h2 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

.feature-item p {
    font-size: 0.9rem;
    line-height: 1.4;
    margin-bottom: 1rem;
}

@media screen and (max-width: 1200px) {
    .container {
        max-width: 1200px; /* Slightly reduce max width for smaller screens */
    }
}

@media screen and (max-width: 1024px) {
    .feature-item {
        flex: 0 1 calc(50% - 1rem); /* 2 items per row on medium screens */
    }
}

@media screen and (max-width: 768px) {
    .feature-item {
        flex: 0 1 100%; /* 1 item per row on small screens */
    }
}


/* How It Works Section */
#how-it-works {
    background-color: #4e4359; /* Purple background color */
    padding: 4rem 0;
    color: #f9f9f9;
}

.how-it-works-intro {
    max-width: 800px;
    margin: 0 auto 3rem;
    text-align: center;
}

.how-it-works-intro h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #f9f9f9;
}

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

.steps {
    display: flex;
    flex-direction: column;
    max-width: 1200px;
    margin: 0 auto;
}

.step {
    display: flex;
    align-items: center;
    margin-bottom: 3rem;
}

.step:nth-child(even) {
    flex-direction: row-reverse;
}

.step-content {
    flex: 1;
    padding: 2rem;
}

.step-content h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.step-content p {
    font-size: 1.1rem;
    line-height: 1.6;
}

.step-image {
    flex: 1;
    padding: 2rem;
}

.step-image img {
    width: 100%;
    max-width: 400px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    .step {
        flex-direction: column;
    }

    .step:nth-child(even) {
        flex-direction: column;
    }
}

/* Pricing Section */
#pricing {
    padding: 4rem 0;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.pricing-card {
    background-color: #fff;
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.pricing-card:hover {
    transform: translateY(-5px);
}

.pricing-card.featured {
    border: 2px solid var(--primary-color);
}

.pricing-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.pricing-card .price {
    font-size: 2rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.pricing-card ul {
    list-style: none;
    padding: 0;
    margin-bottom: 2rem;
}

.pricing-card li {
    margin-bottom: 0.5rem;
}

/* Team Section */
#team {
    padding: 4rem 0;
    background-image: url('../images/team.jpg');
    background-repeat: no-repeat;
    background-attachment: fixed;
    position: relative;
}

/* Option 1: Cover the entire section */
#team {
    background-size: cover;
    background-position: center;
}

/* Option 2: Contain the image within the section */
/* #team {
    background-size: contain;
    background-position: center;
} */

/* Option 3: Use a specific size and center it */
/* #team {
    background-size: 80% auto;
    background-position: top;
} */

#team::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(65, 65, 65, 0.6);
    z-index: 1;
}

.team-content {
    display: flex;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.team-left {
    flex: 1;
}

.team-left h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: #f9f9f9;
}

.team-right {
    flex: 1;
}

.team-right p {
    font-size: 1.2rem;
    line-height: 1.6;
    color: #f9f9f9;
    margin-bottom: 1rem;
}

@media (max-width: 768px) {
    .team-content {
        flex-direction: column;
        gap: 2rem;
    }
}

/* Waitlist Section */
.waitlist-section {
    background-color: #f0f0ff;
    padding: 4rem 2rem;
}

.waitlist-content {
    max-width: 800px;
    margin: 0 auto;
}

.waitlist-text {
    text-align: center;
    margin-bottom: 2rem;
}

.waitlist-text h2 {
    font-family: 'Marcellus', serif;
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.waitlist-text p {
    font-family: 'Bai Jamjuree', sans-serif;
    font-size: 1.2rem;
}

.waitlist-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-row {
    display: flex;
    gap: 1rem;
}

.form-row input,
.form-row select,
.form-row button {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
    font-family: 'Montserrat', sans-serif;
}

.checkbox-row {
    display: flex;
    align-items: center;
}

.checkbox-row label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.checkbox-row input[type="checkbox"] {
    width: auto;
    margin-top: 0.25rem;
}

.submit-button {
    background-color: var(--primary-color);
    color: #fff;
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 4px;
    font-family: 'Roboto', sans-serif;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.submit-button:hover {
    background-color: #3A7BC8;
}

/* Media query for larger screens */
@media (min-width: 768px) {
    .waitlist-section {
        padding: 4rem 2rem;
    }

    .waitlist-content {
        max-width: 800px;
    }

    .waitlist-form {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }

    .form-row:nth-child(5),
    .form-row:last-child {
        grid-column: 1 / -1;
    }
}

/* Footer Styles */
footer {
    background-color: #333;
    color: #fff;
    padding: 2rem 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-logo {
    flex: 0 0 auto;
}

.footer-logo h2 {
    font-family: 'Fahkwang', sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    margin: 0;
}

.footer-links {
    display: flex;
    gap: 4rem;
}

.footer-column h3 {
    font-family: 'Roboto', sans-serif;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: #fff;
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column li {
    margin-bottom: 0.5rem;
}

.footer-column a {
    color: #ccc;
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-column a:hover {
    color: #fff;
}

.footer-bottom {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #555;
    font-size: 0.9rem;
    color: #ccc;
}

@media screen and (max-width: 768px) {
    .footer-content {
        flex-direction: column;
    }

    .footer-logo {
        margin-bottom: 2rem;
    }

    .footer-links {
        flex-direction: column;
        gap: 2rem;
    }
}

/* Accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: #000;
    color: white;
    padding: 8px;
    z-index: 100;
}

.skip-link:focus {
    top: 0;
}

/* Responsive Design */
@media screen and (max-width: 1024px) {
    .hero-content {
        flex-direction: column;
        text-align: center;
    }

    .hero-text, .hero-image {
        flex: 0 1 100%;
        max-width: 100%;
        margin: 0 auto;
    }

    .hero-text {
        margin-bottom: 2rem;
    }

    .hero-image {
        justify-content: center;
    }

    .hero-illustration {
        height: 300px;
    }

    .feature-grid, .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 768px) {
    .nav-links, .nav-cta-button {
        display: none;
    }

    .burger {
        display: block;
    }

    .nav-active {
        display: flex;
        flex-direction: column;
        align-items: center;
        position: absolute;
        right: 0;
        top: 70px;
        background-color: #fff;
        width: 100%;
        padding: 1rem 0;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }

    .nav-active li {
        margin: 1rem 0;
    }

    .nav-active .nav-cta-button {
        display: inline-block;
        margin-top: 1rem;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

    .feature-grid, .pricing-grid {
        grid-template-columns: 1fr;
    }

    .steps {
        flex-direction: column;
        align-items: center;
    }

    .step {
        margin-bottom: 2rem;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-logo, .footer-links, .social-links {
        margin-bottom: 1rem;
    }

    .form-row {
        flex-direction: column;
    }

    .form-row input,
    .form-row select {
        width: 100%;
        margin-bottom: 1rem;
    }

    .step {
        flex-direction: column;
    }

    .step:nth-child(even) {
        flex-direction: column;
    }

    .feature-grid {
        flex-direction: column;
    }

    .feature-grid {
        flex-direction: column;
    }

    .feature-item {
        margin-bottom: 2rem;
    }
}

@media screen and (max-width: 480px) {
    .hero-text h1 {
        font-size: 2rem;
    }

    .hero-text p {
        font-size: 1rem;
    }

    .cta-button {
        padding: 0.6rem 1.5rem;
        font-size: 0.9rem;
    }

    .feature h3, .step h3 {
        font-size: 1.2rem;
    }

    .pricing-card h3 {
        font-size: 1.3rem;
    }

    .pricing-card .price {
        font-size: 1.8rem;
    }
}

