/* Global Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Body */
body {
    font-family: 'Arial', sans-serif;
    color: #333;
    background-color: #f2f2f2;
    line-height: 1.6;
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 5%;
    background-color: #1a1a1a;
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 1000;
}

header .logo {
    font-size: 1.8em;
    font-weight: bold;
}

header nav ul {
    display: flex;
    list-style: none;
}

header nav ul li {
    margin-left: 20px;
}

header nav ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

header nav ul li a:hover {
    color: #e25822;
}

header .cta {
    padding: 10px 20px;
    background-color: #e25822;
    border: none;
    color: #fff;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

header .cta:hover {
    background-color: #cc4d1f;
}

@media (max-width: 768px) {
    header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    header .logo {
        font-size: 1rem;
        margin-bottom: 10px;
    }
    
    header nav ul {
        display: none;
        flex-direction: column;
        width: 100%;
    }
    
    header nav ul.active {
        display: flex;
    }
    
    header .cta {
        margin-top: 10px;
    }
}
@media (max-width: 425px) {
    header {
        flex-direction: column;
        align-items: flex-start;
        padding: 1rem;
    }

    .logo {
        font-size: 1rem; /* Smaller logo font size */
        margin-bottom: 1rem;
    }

    nav ul {
        flex-direction: column;
        width: 100%;
        display: none; /* Hide navigation by default on small screens */
    }

    nav ul.active {
        display: flex; /* Show navigation when active */
    }

    nav ul li {
        margin-right: 0;
        margin-bottom: 0.5rem;
    }

    .cta {
        margin-top: 1rem; /* Add space between navigation and CTA button */
    }

    /* Menu toggle button */
    .menu-toggle {
        display: block;
        background-color: #007bff;
        color: #fff;
        border: none;
        padding: 0.5rem 1rem;
        cursor: pointer;
        font-size: 1rem;
        border-radius: 0.3rem;
        margin-bottom: 1rem; /* Space below the toggle button */
    }

    .menu-toggle:hover {
        background-color: #0056b3;
    }
}
/* Hero Section */
.hero {
    position: relative;
    width: 100%;
    height: 70vh; /* Adjusted height for smaller screens */
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #000;
    overflow: hidden;
}

.hero-images {
    width: 100%;
    height: 100%;
    position: relative;
}

.image-overlay {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.6);
}

.overlay-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    text-align: center;
    z-index: 1;
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate(-50%, -40%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

.overlay-text h1 {
    font-size: 2rem; /* Adjusted for smaller screens */
    margin-bottom: 10px;
}

.overlay-text p {
    font-size: 1rem; /* Adjusted for smaller screens */
    margin-top: 0;
}

/* Sections */
section {
    padding: 60px 5%;
}

h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 1.8rem; 
    color: #333;
}

/* Overview Section */
.overview-container {
    margin-left: 15%;
    width: 70%;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px;
}

.overview-graphic {
    flex: 1;
    text-align: center;
}

.overview-video {
    max-width: 100%;
    border-radius: 5px;
}

/* Features Section */
#features {
    padding: 60px 5%;
    background-color: #1a1a1a;
}

#features h2 {
    text-align: center;
    margin-bottom: 40px;
    color: #e25822;
    font-size: 2rem; /* Adjusted for smaller screens */
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.feature-item {
    background: #f4f4f4;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.feature-item:hover {
    background-color: #e25822;
    color: white;
    transform: translateY(-10px);
}

@media (max-width: 768px) {
    .feature-grid {
        grid-template-columns: 1fr;
    }
}

/* Registration Section */
#register {
    padding: 20px;
    background-color: #e25822;
    color: #fff;
    border-radius: 6px;
    margin: 20px 0;
    text-align: center;
}

#register h2 {
    margin-bottom: 15px;
    color: #fff;
}

#register p {
    margin-bottom: 10px;
}

#register .btn {
    display: inline-block;
    padding: 12px 25px;
    background-color: #ffffff;
    color: #e25822;
    border: none;
    border-radius: 4px;
    text-decoration: none;
    font-size: 1.1rem;
    transition: background-color 0.3s ease;
}

#register .btn:hover {
    background-color: #f2f2f2;
}

/* Contact Section */
#contact {
    background-color: #f4f4f4;
    padding: 40px 20px;
    text-align: center;
}

.contact-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 20px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.contact-container h2 {
    color: #e25822;
    margin-bottom: 20px;
}

.contact-container p {
    color: #555;
    margin-bottom: 30px;
}

.contact-form {
    display: flex;
    flex-direction: column;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    margin-bottom: 15px;
    box-sizing: border-box;
}

.contact-form button {
    background-color: #e25822;
    color: #fff;
    padding: 12px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.3s ease;
}

.contact-form button:hover {
    background-color: #cc4d1f;
}

/* Footer */
footer {
    background-color: #1a1a1a;
    color: #fff;
    text-align: center;
    padding: 20px;
}

footer .social-icons a {
    margin: 0 10px;
    color: #e25822;
    text-decoration: none;
    transition: color 0.3s ease;
}

footer .social-icons a:hover {
    color: #fff;
}

footer p {
    margin-top: 10px;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    footer {
        padding: 15px;
    }
}

#animatedElement {
    width: 100px;
    height: 100px;
    background-color: #e25822;
    position: absolute;
}

/* How It Works Section */
#how-it-works {
    padding: 60px 5%;
    background-color: #f4f4f4;
    text-align: center;
}

.how-it-works-container {
    max-width: 800px;
    margin: 0 auto;
}

/* Hidden details are placed above the button and styled for visibility when expanded */
#details {
    display: none;
    text-align: left;
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

#details.visible {
    display: block;
}

/* Button Styling */
.btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #e25822;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 20px;
    transition: background-color 0.3s ease;
}

.btn:hover {
    background-color: #cc4d1f;
}

/* Responsive adjustments for better readability on smaller screens */
@media (max-width: 768px) {
    #how-it-works {
        padding: 40px 5%;
    }

    .how-it-works-container {
        width: 100%;
        padding: 0 10px;
    }
    
    #details {
        padding: 15px;
    }
}
