* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Raleway', sans-serif;
    line-height: 1.6;
    color: #333;
    cursor: none;
}

.new-font {
    font-family: 'Chakra Petch', sans-serif;
    font-weight: 300;
}

/* Custom cursor styles */
.custom-cursor {
    width: 20px;
    height: 20px;
    border: 2px solid #fff;
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    transition: transform 0.2s ease;
}

/* Hamburger Menu Styles */
.hamburger-menu {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
    cursor: none;
}

body:hover .hamburger-menu {
    opacity: 1;
    cursor: none;
}

.menu-container {
    position: relative;
    width: 200px;
    padding: 20px;
    cursor: none;
}

.hamburger-icon {
    width: 30px;
    height: 25px;
    position: relative;
    margin-left: auto;
    transition: transform 0.4s ease; /* Faster rotation */
    cursor: none;
}

.menu-container:hover .hamburger-icon {
    transform: rotate(90deg);
    cursor: none;
}

.hamburger-icon span {
    display: block;
    position: absolute;
    height: 3px;
    width: 100%;
    background: #fff;
    border-radius: 3px;
    opacity: 1;
    left: 0;
    transform: rotate(0deg);
    transition: 0.4s ease-in-out; /* Faster transition */
    cursor: none
}

.hamburger-icon span:nth-child(1) {
    top: 0px;
    cursor: none;
}

.hamburger-icon span:nth-child(2) {
    top: 10px;
    cursor: none;
}

.hamburger-icon span:nth-child(3) {
    top: 20px;
    cursor: none;
}

.menu-container:hover .hamburger-icon span:nth-child(1) {
    top: 10px;
    left: 0px;
    cursor: none;
}

.menu-container:hover .hamburger-icon span:nth-child(2) {
    top: 10px;
    left: 8px;
    cursor: none;
}

.menu-container:hover .hamburger-icon span:nth-child(3) {
    top: 10px;
    left: 16px;
    cursor: none;
}

.menu-items {
    position: absolute;
    top: 100%;
    right: 0;
    background: rgba(51, 51, 51, 0.9);
    padding: 10px;
    border-radius: 5px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease, visibility 0.6s ease;
    transition-delay: 0.6s; /* Delay to match icon animation */
    width: 100%;
    cursor: none;
}

.menu-container:hover .menu-items {
    opacity: 1;
    visibility: visible;
}

.menu-items a {
    display: block;
    color: #fff;
    text-decoration: none;
    padding: 5px 10px;
    font-size: 1rem;
    transition: background-color 0.3s;
    white-space: nowrap;
    cursor: none;
}

.menu-items a:hover {
    background-color: #555;
}

/* Existing Styles */
.section {
    padding: 100px 20px;
    min-height: 100vh;
    text-align: center;
}

.home {
    position: relative;
    height: 100vh;
    overflow: hidden;
}

.background-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.content h1 {
    font-size: 5rem;
    color: #fff;
    margin-bottom: 10px;
    font-weight: 400;
}

/* Updated styles for typewriter effect */
.sub-text-left {
    position: absolute;
    bottom: 20px;
    left: 20px;
    color: #fff;
    font-size: 1rem;
    font-weight: 300;
    line-height: 1.5;
    text-align: left;
}

#typewriter-container {
    height: 100px; /* Adjust based on your needs */
}

.typewriter-text {
    display: inline-block;
    overflow: hidden;
    border-right: 2px solid #fff;
    white-space: nowrap;
    margin: 0 auto;
    animation: typing 3.5s steps(40, end), blink-caret 0.75s step-end infinite;
}

@keyframes typing {
    from { width: 0 }
    to { width: 100% }
}

@keyframes blink-caret {
    from, to { border-color: transparent }
    50% { border-color: #fff }
}

.sub-text-right {
    position: absolute;
    bottom: 20px;
    right: 20px;
    color: #fff;
    font-size: 1rem;
    font-weight: 300;
    line-height: 1.5;
    text-align: right;
    cursor: none;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    color: #fff;
    background-color: transparent;
    border: 2px solid #fff;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 400;
    transition: background-color 0.3s, color 0.3s;
    font-size: 1rem;
    margin-bottom: 10px;
    cursor: none
}

.btn:hover {
    background-color: #fff;
    color: #000;
    cursor: none;
}

/* How it Works Styles */
.how-it-works {
    background-color: #000000;
    color: #ffffff;
    position: relative;
    overflow: hidden;
}

.how-it-works h2 {
    font-family: 'Chakra Petch', sans-serif;
    font-weight: 400;
    margin-bottom: 50px;
    font-size: 2.5rem;
}

.timeline-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.timeline-container::after {
    content: '';
    position: absolute;
    width: 6px;
    background-color: #ffffff;
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -3px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.timeline-item.aos-animate {
    opacity: 1;
    transform: translateY(0);
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 25px;
    right: -17px;
    background-color: #ffffff;
    border: 4px solid #635d5d;
    top: 15px;
    border-radius: 50%;
    z-index: 1;
}

.timeline-item:nth-child(even) {
    left: 50%;
}

.timeline-item:nth-child(odd) {
    left: 0;
}

.timeline-item:nth-child(even)::after {
    left: -16px;
}

.timeline-content {
    padding: 20px 30px;
    background-color: #333333;
    position: relative;
    border-radius: 6px;
}

.timeline-content h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.lottie-animation {
    width: 200px;
    height: 200px;
    margin: 20px auto;
}


/* Updated How it Works hover effect */
.timeline-item {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
    transition: all 0.3s ease, opacity 0.3s ease;
    opacity: 0;
    transform: translateY(50px);
}

.timeline-item.aos-animate {
    opacity: 1;
    transform: translateY(0);
}


#team {
    background-color: #000000;
    color: #ffffff;
}

.team-member {
    flex-basis: calc(33.333% - 40px);
    margin: 20px;
    text-align: center;
    background-color: #000000;
    border-radius: 10px;
    overflow: hidden;
    height: 300px;
}

.team-member-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s;
}

.team-member:hover .team-member-inner {
    transform: translateX(-40%);
}

.team-member-front,
.team-member-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.team-member-front {
    background-color: #000000;
    color: #ffffff;
}

.team-member-back {
    background-color: #ffffff;
    color: #1e1e1e;
    left: 100%;
    top: 0;
    align-items: top;
    overflow-x: auto;
}

.team-member img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 10px;
    border: 3px solid #000000;
}

.team-member h3 {
    margin-bottom: 5px;
}

.team-member-bio {
    opacity: 0;
    transition: opacity 0.3s;
    width: 25%;
    margin-left: -50%;
    word-wrap: normal;
    white-space: normal;
    font-size: 1.5rem;
    line-height: 1.0;
    text-align: left;
}

.team-member:hover .team-member-bio {
    opacity: 1;
}

/* Contact Styles */
.contact {
    background-color: #000000;
    color: #ffffff;
    cursor: none
}

.contact h2 {
    font-family: 'Chakra Petch', sans-serif;
    font-weight: 400;
    margin-bottom: 30px;
    font-size: 2.5rem;
    cursor: none
}

#contact-form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    cursor: none
}

#contact-form input,
#contact-form textarea {
    margin-bottom: 20px;
    padding: 10px;
    border: 1px solid #ffffff;
    border-radius: 5px;
    background-color: #333333;
    color: #ffffff;
    cursor: none
}

#contact-form textarea {
    height: 150px;
    cursor: none
}

.contact button {
    font-family: 'Chakra Petch', sans-serif;
    font-weight: 400;
    background-color: #ffffff;
    color: #1e1e1e;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: none;
}

.contact button:hover {
    background-color: #343434;
    color: #ffffff;
}

footer {
    background-color: #000000;
    color: #ffffff;
    text-align: center;
    padding: 1rem 0;
}

@media (max-width: 768px) {
    .content h1 {
        font-size: 3rem;
    }

    .timeline-container::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%;
    }

    .team-member {
        flex-basis: calc(50% - 40px);
    }
}

@media (max-width: 480px) {
    .timeline-content {
        padding: 15px;
    }

    .lottie-animation {
        width: 150px;
        height: 150px;
    }

    .team-member {
        flex-basis: calc(50% - 40px);
    }

    .team-member {
        flex-basis: 100%;
    }
}