* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
    font-family: "Hanken Grotesk", system-ui;
}

html, body {
    height: 100%; 
    margin: 0; 
    padding: 0; 
    /* background-image: linear-gradient(rgb(70, 188, 234), white);  */
    /* background-color: var(--bg-color); */
    background-size: 100% 200%; /* Ensure gradient covers the entire scrollable area */
    scroll-behavior: smooth;
    font-family: "Hanken Grotesk", system-ui;

    background-position: center;
    overflow-x: hidden; 
    background-color: #121212;

    /* background-image: linear-gradient(180deg, #121212 0%, #121212 100%); */
    scroll-behavior: smooth;
}



:root {
    --bg-color: black;
    --bg-color-secondary: #121212;
    --white-color: #ffffff;
    --primary-color1: #00a359;

    --text-color: #c3c3c3;
    --text-color-secondary: #00e676;

    --primary: #04aa5c;
    --primary-hover: #00cc70;
    --secondary: #06ce71;
    --secondary-hover: #04aa5c;
    --primary-color2: #00a359;

    --primary-color1: #00a359;

    --font-inter: "Inter", sans-serif;
    --font-hankenGrotesk: "Hanken Grotesk", sans-serif;
    --bs-body-font-family: var(--bs-font-sans-serif);
}

section {
    margin: 0;
    padding: 0;
}

html, body {
    background: black;
}

/* Hover effect */
.nav_links .link:hover {
    color: var(--primary-hover) !important; /* Change text color on hover */
}

.nav_links .link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0; /* Position the underline at the bottom */
    width: 0; /* Initially set width to 0 */
    height: 1px; /* Thickness of the underline */
    background-color: var(--primary-color2) !important; /* Underline color */
    transition: width 0.4s ease; /* Smooth expand effect */
}

.nav_links .link:hover::after {
    width: 100%; /* Expand underline to full width on hover */
}

.dropdown-menu li a:hover {
    color: var(--primary-hover);
}

.ai-demos-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100vh; /* Takes up 90% of the viewport height */
    text-align: center;
    padding: 0 10px; /* Add some padding on sides */

    background-image: transparent; /* The background image */
    background-color: var(--bg-color); /* The fallback background color */
    background-size: cover;
    background-position: center;

    margin: 0;
}


.home-demo .home-button {
    display: inline-flex; /* Ensure the text stays in one line */
    align-items: center;
    font-size: 16px;
    margin-top: 6rem;
    border: 1px solid rgb(77, 77, 77);
    padding: 0.4rem 1.3rem;
    border-radius: 5rem;
    text-decoration: none; /* Remove underline for link */

    cursor: default;
}

.home-button {
    position: relative;
    color: white; /* Text color */
    font-weight: bold;
    cursor: pointer;
    border: 0.5px solid transparent; /* Set initial border as transparent */
    background-clip: padding-box; /* Ensures the background does not overlap the border */
    
    box-sizing: border-box;
}

/* Keyframes for rotating gradient border */
@keyframes rotateBorder {
    0% {
        border-color: #757373;
    }
    25% {
        border-color: #5d5d5c;
    }
    50% {
        border-color: #a2a250;
    }
    75% {
        border-color: var(--secondary-hover);
    }
    100% {
        border-color: var(--primary-color1);
    }
}

/* Applying rotating gradient to border */
.home-button {
    animation: rotateBorder 2s linear infinite;
}


.home-text {
    color: var(--primary-color1);
    font-family: var(--font-inter);
    font-size: 0.8rem;
    font-weight: 500;

    text-transform: uppercase;
    letter-spacing: 0.39px;

    cursor: pointer;
}

.demos-text {
    color: var(--white-color);
    font-family: var(--font-inter);
    font-size: 0.8rem;

    text-transform: uppercase;
    letter-spacing: 0.39px;
}

.custom-hyphen {
    color: #ffffff; /* Custom color for hyphen (e.g., orange) */
    transform: scaleX(1.8) scaleY(0.2); 
    margin: 0 5px; 
    margin-right: 0.4rem;
}



/* content */
.ai-demos-header {
    color: var(--white-color);
    font-family: var(--font-hankenGrotesk);
    font-size: 3rem;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 0;
    margin-top: 2rem;
}

.ai-demos-subheading {
    font-size: 1.5rem;
    color: #fff;
    font-weight: 500;
    line-height: 31.27px;
    margin: 0 auto 0 auto;
    margin-top: 1rem;
    margin-bottom: 0;
    padding-bottom: 55px;
}

/* dropdown button */
/* Basic Button Styling */
.demo-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-top: 3.8rem;

    text-decoration: none;
    border: 1.2px solid rgb(77, 77, 77);

    padding: 1.8rem 0.2rem;
    font-size: 1rem;
    font-family: var(--font-inter);
    font-weight: 700;
    color: #007bff;
    border-radius: 2rem;

    animation: moveUpDown 2s ease-in-out infinite; /* Apply animation to button */
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease; /* Smooth transition */

}

/* Hover effect */
.demo-button:hover {
    background-color: var(--primary-color1);
    color: var(--white-color);
    border-color: var(--primary-color1);
}




/* Arrow Icon Styling */
.arrow-icon {
    width: 2rem;
    height: auto;
    transition: transform 0.3s ease, fill 0.3s ease; /* Include fill in the transition */
}

.arrow-icon path {
    fill: var(--white-color); /* Initial color */
}

.arrow-icon:hover path {
    fill: var(--primary-color1); /* Change color on hover */
}




/* Animation to move the button up and down */
@keyframes moveUpDown {
    0% {
        transform: translateY(0); /* Start at normal position */
    }
    50% {
        transform: translateY(-20px); /* Move the button up */
    }
    100% {
        transform: translateY(0); /* Return to normal position */
    }
}

/* ***********************************************  */
/* features section */
.project-section {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    border-bottom-left-radius: 30px;
    border-bottom-right-radius: 30px;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(14, 13, 13, 0.7) 5%, rgba(38, 37, 37, 0.9) 100%);
    gap: 1rem;
    overflow: hidden;
}

.container {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    max-width: 1200px;
    margin-top: 2rem;
}

/* Video Frame Styling */
.content-left,
.content-right {
    flex: 1 1 30%;
    max-width: 340px;
}

.content-left video,
.content-right video {
    width: 100%;
    height: 370px;
    border-radius: 20px;
}


/* Middle Content */
.content-middle {
    flex: 1 1 35%;
    text-align: center;
    max-width: 450px;
}

.content-middle h1 {
    font-size: 1.5rem;
    margin-top: 1.4rem;
    margin-bottom: 1.4rem;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.8px;
    color: var(--text-color-secondary);
    font-family: var(--font-inter);
}

.content-middle p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
    font-weight: 400;
    letter-spacing: 0.4px;
    font-family: var(--font-inter);
    color: var(--text-color);
}

/* Button Styling */
.signup-btn {
    margin-top: 1rem;
    padding: 10px 20px;
    background-color: rgb(33, 45, 33);
    border: none;
    border-radius: 20px;
    cursor: pointer;
}

.signup-btn span {
    color: var(--text-color-secondary);
    font-family: inherit;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.signup-btn:hover {
    background-color: rgb(46, 68, 46);
}

@media (max-width: 1200px) {
    .container {
        gap: 1rem;
        max-width: 1200px;
        margin-top: 2rem;
    }

    .content-left,
    .content-right {
        flex: 1 1 30%;
        max-width: 340px;
    }

    .content-left video,
    .content-right video {
        width: 100%;
        height: 370px;
    }

    
}

@media (max-width: 900px) {
    .content-middle h1 {
        font-size: 1.2rem;
    }
    
    .content-middle p {
        font-size: 0.85rem;
        margin-bottom: 1.5rem;
    }
}

/* Responsive Design: Stacks Content on Smaller Screens */
@media (max-width: 700px) {
    .container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .content-left,
    .content-right,
    .content-middle {
        flex: 1 1 100%;
        max-width: 90%;
    }

    .content-middle {
        order: 2; /* Moves content below the left video */
    }

    .content-right {
        order: 3; /* Moves the right video below the content */
    }

    .signup-btn {
        margin-bottom: 1.7rem;
    }
}


/* project section 2 */
.project-section2 {
    margin: 2rem 0;
    display: flex;
    justify-content: center;
    padding: 1rem;
    background-color: transparent;
    gap: 1rem;
    overflow: hidden; /* Prevents content from overflowing */
    width: 100%;

}

.container2 {
    display: flex;
    flex-wrap: wrap;  /* Ensures items wrap properly */
    width: 100%;
    max-width: 1170px;
    justify-content: space-between;
    align-items: center;
}

/* Default desktop view (Text Left, Video Right) */
.content-left2,
.content-right2 {
    flex: 1 1 45%;
    margin: 1rem;
    max-width: 560px; /* Prevents content from becoming too wide */
}


.content-right2 video {
    width: 100%;
    height: 350px;
    max-height: 350px;
    border-radius: 30%;
}

/* Responsive Design for smaller screens */
@media (max-width: 950px) {
    .project-section2 {
        flex-direction: column; 
        align-items: center;
        text-align: center;
    }

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

    .content-left2,
    .content-right2 {
        flex: 1 1 100%;
        max-width: 100%;
        margin: 0.5rem 0;
    }

    .content-right2 video {
        height: auto;
        max-height: 270px;
        width: 95%;
    }
}

.content-left2 h1 {
    font-size: 1.5rem;
    margin-bottom: 1.4rem;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.8px;
    line-height: 0.7;
    color: var(--text-color-secondary);
    font-family: var(--font-inter);
}

.content-left2 p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
    font-weight: 400;
    letter-spacing: 0.4px;
    font-family: var(--font-inter);
    color: var(--text-color);
}

.signup-btn span {
    color: var(--text-color-secondary);
    font-family: inherit;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.signup-btn {
    margin-top: 1rem;
    padding: 10px 20px;
    background-color: rgb(33, 45, 33);
    border: none;
    border-radius: 20px;
    cursor: pointer;
}

.signup-btn:hover {
    background-color: rgb(46, 68, 46);
}


/* Right Content (Video Player) */
.content-right2 {
    flex: 1 1 45%;
    margin: 1rem;
}

.content-right2 video {
    width: 100%;
    height: 350px;
    max-height: 450px;

    border-radius: 20px;
}

/* Contact Section */
.contact-sec {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.7) 60%, rgba(0, 0, 0, 0.9) 100%);
    color: #ffffff;
    border-top-left-radius: 30px;
    border-top-right-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 50vh;
    padding: 2rem; /* Ensures spacing on smaller screens */
    overflow: hidden; /* Prevents any content from going outside */
}

.contact-container {
    width: 90%;
    max-width: 900px; /* Ensures it doesn't stretch too much */
    text-align: center; /* Centers text */
}


/* Anime effect js */
/* Initial hidden state */
.content-left, .content-left2,
.content-right, .content-right2 {
    opacity: 0;
    transform: translateX(100px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

/* Move left content from left */
.content-left, .content-left2 {
    transform: translateX(-100px);
}

/* Move right content from right */
.content-right, .content-right2 {
    transform: translateX(100px);
}

/* Apply animation when section is visible */
.show-left, .show-right {
    opacity: 1;
    transform: translateX(0);
}



/* Responsive Design - rwd */
@media (max-width: 950px) {
    .contact-container {
        width: 80%; /* Adjusts width to fit smaller screens */
    }
}

@media (max-width: 768px) {
    .contact-sec {
        height: auto; /* Adjusts height dynamically */
        padding: 3rem 1.5rem; /* Ensures proper spacing */
    }

    .contact-container {
        width: 90%;
    }

    .contact-heading {
        font-size: 1.5rem; /* Adjusts heading size */
    }

    .contact-subtitle {
        font-size: 1rem;
    }

    .contact-btn {
        font-size: 1rem;
        padding: 0.8rem 1.2rem; /* Ensures button remains readable */
    }
}


@media (max-width: 600px) {
    .home-demo .home-button {
        font-size: 13px;
        padding: 0.4rem 1.3rem;
    }
    .demos-text {
        font-size: 0.7rem;
    }

    .ai-demos-header {
        font-size: 2rem;
        font-weight: 600;
        line-height: 1.2;
    }
    
    .ai-demos-subheading {
        font-size: 1.2rem;
        line-height: 28.27px;
    }

    .content-right h1 {
        font-size: 1.2rem;
        margin-top: 1.4rem;
        margin-bottom: 1.4rem;
    }
    
    .content-right p {
        font-size: 0.85rem;
        margin-bottom: 1.5rem;
    }

    .content-left2 h1 {
        font-size: 1.2rem;
        margin-bottom: 1.4rem;
    }
    
    .content-left2 p {
        font-size: 0.85rem;
    }
    
}

.footer-sec {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.7) 30%, rgba(0, 0, 0, 0) 60%), 
                url('images/home3-footer-bg.png');
    background-size: cover;
    background-position: center bottom;
    color: #000000;
    padding: 3rem 2rem;
}


/* Auto Scroll Button */
#go-to-top-button {
    position: fixed;
    bottom: 20px;
    right: 120px;
    background: rgba(63, 228, 69, 0.5);
    opacity: 0.5;
    border: none;
    cursor: pointer;
    padding: 10px;
    border-radius: 50%;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    z-index: 10000; 
    transition: all 0.3s linear;
}


@media (min-height: 800px) {
    .ai-demos-section {
        height: 100vh; /* Takes up 90% of the viewport height */
        padding: 0 10px; /* Add some padding on sides */
        padding-top: 4rem;
    }
}