body, html {
    margin: 0;
    padding: 0;
    height: 100%;
}

.header {
    position: relative;
    overflow: hidden;
    z-index: 1;
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: transparent !important;
    padding: 80px 20px; /* Increased top and bottom padding */
    box-sizing: border-box;
}

.header-content {
    max-width: 800px;
    width: 100%;
    text-align: center;
    margin-bottom: 60px; /* Increased margin */
}

.header-title {
    font-size: clamp(40px, 6vw, 64px); /* Slightly larger font size */
    color: var(--primary-color);
    margin-bottom: 30px; /* Increased margin */
    line-height: 1.2;
    font-weight: 700;
}

.header-description {
    font-size: clamp(20px, 3vw, 26px); /* Slightly larger font size */
    color: var(--text-secondary-color);
    max-width: 600px;
    margin: 0 auto 50px; /* Increased margin */
    line-height: 1.5;
}

.download-buttons {
    display: flex;
    justify-content: center;
    margin-bottom: 70px; /* Increased margin */
}

.download-btn {
    background-color: #000000;
    color: white;
    padding: 16px 32px; /* Slightly larger padding */
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 18px; /* Slightly larger font size */
    transition: all 0.3s ease;
    border: 1px solid #000000;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.download-btn:hover {
    background-color: #1a1a1a;
    border-color: #1a1a1a;
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}

.download-btn:active {
    background-color: #000000;
    border-color: #000000;
    transform: translateY(1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.header-image-container {
    position: relative;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
}

.header-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 16px; /* Slightly larger border radius */
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15); /* Enhanced shadow */
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.play-button:hover {
    background-color: rgba(0, 0, 0, 0.9);
    transform: translate(-50%, -50%) scale(1.1);
}

.mesh-background-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 120%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
    filter: blur(10px); /* Adjust blur intensity as needed */
    opacity: 0.2; /* Adjust opacity as needed */
}

#meshCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 120%; /* Increase the height to allow for scrolling */
}

.content-wrapper {
    position: relative;
    z-index: 1;
}

.header-title,
.header-description,
.download-buttons,
.header-image-container {
    position: relative;
    z-index: 1;
}

.features-grid {
    display: grid;
    gap: 30px;
    max-width: 1200px;
    margin: 50px auto;
    padding: 0 20px;
}

.feature-item {
    background-color: var(--feature-background);
    border-radius: 12px;
    padding: 30px;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-color);
}

.feature-item:hover {
    transform: translateY(-5px);
}

.feature-item.small-feature {
    padding: 20px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.feature-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    fill: var(--primary-color);
}

.small-feature .feature-description {
    margin-bottom: 0;
    font-size: 14px;
}

.feature-download-btn {
    background-color: #000000;
    color: white;
    padding: 12px 24px; /* Reduced padding */
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px; /* Slightly smaller font size */
    transition: all 0.3s ease;
    border: 1px solid #000000;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: flex-start;
    margin-top: auto; /* Push button to bottom of flex container */
}

.feature-download-btn:hover {
    background-color: #1a1a1a;
    border-color: #1a1a1a;
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}

.feature-download-btn:active {
    background-color: #000000;
    border-color: #000000;
    transform: translateY(1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Small screens (up to 767px) */
@media (max-width: 767px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .feature-item:not(.small-feature) {
        grid-column: 1 / -1; /* Make big features take full width */
    }
    .small-feature {
        grid-column: span 1; /* Allow small features to be side by side */
    }
    /* Grouping small features */
    .small-feature:nth-child(4),
    .small-feature:nth-child(5) {
        grid-row: 4;
    }
    .small-feature:nth-child(6),
    .small-feature:nth-child(7) {
        grid-row: 5;
    }
    .feature-item.small-feature {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .feature-icon {
        margin-bottom: 10px;
    }
}

/* Extra small screens (up to 480px) */
@media (max-width: 480px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
    .feature-item:not(.small-feature),
    .small-feature {
        grid-column: 1 / -1; /* Make all features full width on very small screens */
    }
    .small-feature:nth-child(4),
    .small-feature:nth-child(5),
    .small-feature:nth-child(6),
    .small-feature:nth-child(7) {
        grid-row: auto;
    }
    .feature-item.small-feature {
        flex-direction: row;
        align-items: flex-start;
        text-align: left;
    }
    .feature-icon {
        margin-bottom: 0;
    }
}

/* Medium and Large screens (768px and above) */
@media (min-width: 768px) {
    .features-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    .feature-item:first-child {
        grid-column: 1 / -1; /* Spans all 4 columns */
    }
    .feature-item:nth-child(2),
    .feature-item:nth-child(3) {
        grid-column: span 2; /* Each spans 2 columns */
    }
    .small-feature {
        grid-column: span 1; /* Each small feature spans 1 column */
    }
}

/* Corrected Medium screens (768px to 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
    .features-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    .feature-item:first-child {
        grid-column: 1 / -1; /* Spans all 4 columns */
    }
    .feature-item:nth-child(2),
    .feature-item:nth-child(3) {
        grid-column: span 2; /* Each spans 2 columns */
    }
    .small-feature {
        grid-column: span 1; /* Each small feature spans 1 column */
    }
}

/* Corrected Large screens (1024px and above) */
@media (min-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    .feature-item:first-child {
        grid-column: 1 / -1; /* Spans all 4 columns */
    }
    .feature-item:nth-child(2),
    .feature-item:nth-child(3) {
        grid-column: span 2; /* Each spans 2 columns */
    }
    .small-feature {
        grid-column: span 1; /* Each small feature spans 1 column */
    }
}

.footer {
    background-color: transparent !important;
    color: var(--text-secondary-color);
    padding: 20px 20px;
    margin-top: 60px;
}

.footer-content {
    max-width: 1800;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.footer-copyright {
    font-size: 14px;
    margin-bottom: 0px;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    color: var(--text-secondary-color);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

@media (max-width: 768px) {
    .footer {
        padding: 20px;
        margin-top: 40px;
    }

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

    .footer-copyright {
        margin-bottom: 15px;
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* FAQ Section Styles */
.faq-section {
    background-color: var(--feature-background);
    padding: 60px 20px;
    box-sizing: border-box;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.faq-title {
    font-size: clamp(22px, 5vw, 38px);
    color: var(--primary-color);
    margin-bottom: 40px;
    font-weight: 700;
}

.faq-item {
    text-align: left;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 15px;
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    text-align: left;
    padding: 10px 0;
    font-size: clamp(16px, 4vw, 20px);
    color: var(--primary-color);
    cursor: pointer;
    position: relative;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question::after {
    content: '+';
    font-size: 24px;
    transition: transform 0.3s ease;
}

.faq-question.active::after {
    content: '-';
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-answer p {
    font-size: clamp(16px, 3vw, 18px);
    color: var(--text-secondary-color);
    margin: 10px 0 0 0;
    padding: 0 0 10px 0; /* Add some padding at the bottom */
}

/* Active state for FAQ */
.faq-question.active + .faq-answer {
    max-height: 1000px; /* Increase this value if needed */
}

/* Responsive adjustments for FAQ */
@media (max-width: 768px) {
    .faq-section {
        padding: 40px 20px;
    }

    .faq-title {
        margin-bottom: 30px;
    }

    .faq-question {
        font-size: clamp(16px, 4vw, 20px);
    }

    .faq-answer p {
        font-size: clamp(14px, 3vw, 16px);
    }
}

:root {
    --border-color: rgba(224, 224, 224, 0.5); /* 50% transparent light grey */
}

@media (prefers-color-scheme: dark) {
    :root {
        --border-color: rgba(51, 51, 51, 0.5); /* 50% transparent dark grey for dark mode */
    }
}

.language-switcher {
    display: flex;
    align-items: center;
    gap: 10px;
}

.language-switcher label {
    font-size: 14px;
    color: var(--text-secondary-color);
}

.language-switcher select {
    padding: 5px;
    border-radius: 4px;
    border: 1px solid var(--border-color);
    background-color: var(--feature-background);
    color: var(--text-color);
    font-size: 14px;
}

.language-switcher select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.video-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.video-container {
    position: relative;
    width: 80%;
    max-width: 1200px;
    height: 75vh; /* 75% of the viewport height */
    max-height: 800px; /* Maximum height to maintain aspect ratio on large screens */
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
    border-radius: 8px; /* Slightly rounded corners for a modern look */
}

.close-video {
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    font-size: 36px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
}

.close-video:hover {
    background-color: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

/* Ensure the play button is clickable */
.play-button {
    cursor: pointer;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .video-container {
        width: 95%;
        height: 50vh; /* Smaller height on mobile devices */
    }
}

@media (max-height: 600px) {
    .video-container {
        height: 90vh; /* Larger height on shorter screens */
    }
}