/* General Styles */
html, body {
    background-color: #0a0a0a;
    color: #ffffff;
    overflow-y: auto;
    font-family: 'Space Grotesk', sans-serif;
    -ms-overflow-style: none;  /* Hide scrollbar for IE and Edge */
    scrollbar-width: none;     /* Hide scrollbar for Firefox */
}

/* Hide scrollbar for Chrome, Safari and Opera */
html::-webkit-scrollbar,
body::-webkit-scrollbar,
.landing-container::-webkit-scrollbar {
    display: none;
}

/* Animated Background */
.landing-container {
    display: flex;
    height: 100vh;
    width: 100vw;
    position: relative;
    z-index: 1;
    -ms-overflow-style: none;  /* Hide scrollbar for IE and Edge */
    scrollbar-width: none;     /* Hide scrollbar for Firefox */
}

.landing-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 20%, rgba(147, 51, 234, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(192, 132, 252, 0.1) 0%, transparent 50%);
    z-index: -1;
    animation: gradientMove 15s ease infinite;
}

@keyframes gradientMove {
    0% {
        background-position: 0% 0%;
    }
    50% {
        background-position: 100% 100%;
    }
    100% {
        background-position: 0% 0%;
    }
}

/* Floating Circles */
.background-circles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
}

.circle {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(45deg, rgba(147, 51, 234, 0.1), rgba(192, 132, 252, 0.1));
    filter: blur(20px);
    animation: floatCircle 20s infinite linear;
}

.circle:nth-child(1) {
    width: 300px;
    height: 300px;
    top: -150px;
    left: -150px;
}

.circle:nth-child(2) {
    width: 400px;
    height: 400px;
    bottom: -200px;
    right: -200px;
    animation-delay: -5s;
}

.circle:nth-child(3) {
    width: 200px;
    height: 200px;
    top: 50%;
    left: 50%;
    animation-delay: -10s;
}

@keyframes floatCircle {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }
    50% {
        transform: translate(100px, 100px) rotate(180deg);
    }
    100% {
        transform: translate(0, 0) rotate(360deg);
    }
}

/* Content Layout */
.left-content {
    flex: 0 0 56%;
    padding: 3em 0 3em 3em;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 2;
    height: 100vh;
    overflow-y: auto;
}

.right-content {
    flex: 0 0 44%;
    position: relative;
    margin-left: 0rem;
    z-index: 1;
}

/* Welcome Text Styles */
.welcome-text {
    margin-top: 4rem;
    margin-bottom: 2rem;
    position: relative;
}

.title-container {
    position: relative;
    margin-bottom: 2rem;
}

.welcome-text h1 {
    font-weight: 700;
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 0.5rem;
    color: rgba(255, 255, 255, 0.95);
    display: flex;
    align-items: flex-end;
    gap: 1rem;
    white-space: nowrap;
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.1);
}

.powered-by {
    font-size: 1.1rem;
    font-weight: 400;
    font-family: 'Space Grotesk', sans-serif;
    color: rgba(255, 255, 255, 0.7);
    margin-left: 1rem;
    letter-spacing: 0.5px;
    padding-bottom: 0.5rem;
}

.powered-by a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
}

.powered-by a:hover {
    background: linear-gradient(45deg, #9333ea, #c084fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-decoration: none;
}

.gradient-text {
    background: linear-gradient(45deg, #9333ea, #c084fc, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientFlow 8s ease infinite;
    position: relative;
    display: inline-block;
}

.glow-line {
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.3) 20%, 
        rgba(255, 255, 255, 0.9) 50%,
        rgba(255, 255, 255, 0.3) 80%, 
        transparent 100%
    );
    animation: glowLine 3s ease-in-out infinite;
    filter: blur(1px);
}

@keyframes glowLine {
    0%, 100% {
        opacity: 0.3;
        transform: scaleX(0.8);
    }
    50% {
        opacity: 1;
        transform: scaleX(1);
    }
}

.choose-text {
    font-size: 1.25rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 2rem;
    line-height: 1.6;
    max-width: 600px;
    letter-spacing: 0.2px;
}

/* Agent Grid */
.agent-buttons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    position: relative;
    margin-bottom: 2rem;
}

.agent-btn {
    background: rgba(23, 25, 28, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 1.5rem;
    text-align: left;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.agent-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, rgba(147, 51, 234, 0.1), rgba(192, 132, 252, 0.1));
    opacity: 0;
    transition: all 0.4s ease;
    border-radius: 20px;
    z-index: -1;
}

.agent-btn::after {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(45deg, #9333ea, #c084fc, #8b5cf6);
    border-radius: 22px;
    z-index: -2;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.agent-btn:hover {
    transform: translateY(-5px);
    border-color: transparent;
    background: rgba(23, 25, 28, 0.95);
    box-shadow: 
        0 10px 30px -10px rgba(147, 51, 234, 0.5),
        0 0 0 1px rgba(147, 51, 234, 0.2);
}

.agent-btn:hover::before {
    opacity: 0.1;
}

.agent-btn:hover::after {
    opacity: 1;
}

.agent-btn i {
    font-size: 2rem;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, #9333ea, #c084fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: transform 0.4s ease;
}

.agent-btn:hover i {
    transform: scale(1.1);
}

.agent-btn .agent-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
    color: #ffffff;
    transition: transform 0.3s ease;
}

.agent-btn:hover .agent-title {
    transform: translateX(5px);
}

.agent-btn small {
    opacity: 0.7;
    font-size: 0.9rem;
    line-height: 1.5;
    transition: opacity 0.3s ease;
}

.agent-btn:hover small {
    opacity: 0.9;
}

/* Spline Viewer */
spline-viewer {
    width: 100%;
    height: 100%;
    filter: brightness(1.2) contrast(1.1);
}

/* Logo Styles */
.logo-container {
    position: absolute;
    top: 2rem;
    left: 2rem;
    z-index: 10;
}

.better-ai-logo {
    height: 40px;
    width: auto;
    transition: all 0.3s ease;
}
 
.better-ai-logo:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.3));
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .landing-container {
        flex-direction: column;
        overflow-y: auto;
        padding: 1rem;
        position: relative;
        min-height: 100vh;
        margin-bottom: 2rem;
    }

    .left-content {
        flex: none;
        padding: 2rem 1rem;
        width: 100%;
        order: 1;
        position: relative;
        z-index: 2;
        background: linear-gradient(
            to bottom,
            rgba(10, 10, 10, 0.4) 0%,
            rgba(10, 10, 10, 0.3) 100%
        );
        backdrop-filter: blur(5px);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 20px;
        margin-top: 5rem;
    }

    .right-content {
        position: fixed;
        top: 25px;
        left: 0;
        width: 100%;
        height: 100%;
        margin: 0;
        order: 0;
        z-index: 1;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .welcome-text h1 {
        font-size: 2.5rem;
        flex-direction: column;
        align-items: flex-start;
        white-space: normal;
        line-height: 1.3;
    }

    .powered-by {
        margin-left: 0;
        margin-top: 1rem;
        padding-bottom: 0;
    }

    .agent-buttons {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin-bottom: 2rem;
    }

    .agent-btn {
        padding: 1.5rem;
        background: rgba(23, 25, 28, 0.7);
        backdrop-filter: blur(8px);
        border: 1px solid rgba(255, 255, 255, 0.1);
    }

    .agent-btn:hover {
        transform: translateY(-2px) scale(1.01);
    }

    .logo-container {
        position: fixed;
        top: 1rem;
        left: 1rem;
        z-index: 100;
    }

    .better-ai-logo {
        height: 30px;
    }

    .background-circles .circle {
        opacity: 0.3;
    }

    .circle:nth-child(1) {
        width: 200px;
        height: 200px;
    }

    .circle:nth-child(2) {
        width: 250px;
        height: 250px;
    }

    .circle:nth-child(3) {
        width: 150px;
        height: 150px;
    }

    .choose-text {
        font-size: 1.1rem;
        margin-top: 1rem;
        color: rgba(255, 255, 255, 0.9);
    }

    spline-viewer {
        transform: scale(1.2);
        opacity: 0.8;
        filter: brightness(0.8) contrast(1.1);
    }
}

/* Small Mobile Devices */
@media (max-width: 480px) {
    .welcome-text {
        margin-top: 0rem;
    }

    .left-content {
        padding: 1.5rem;
        margin-top: 4rem;
    }

    .agent-btn {
        padding: 1.25rem;
    }

    .agent-btn i {
        font-size: 1.5rem;
    }

    .agent-btn .agent-title {
        font-size: 1.25rem;
    }

    spline-viewer {
        transform: scale(1.4);
    }
}

/* Control Flows Section */
.control-flows {
    margin-top: 1.5rem;
    padding: 1rem;
    background: rgba(23, 25, 28, 0.6);
    border-radius: 16px;
    border: 1px solid rgba(147, 51, 234, 0.2);
}

.flow-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.flow-btn {
    background: rgba(23, 25, 28, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 1.5rem;
    text-align: left;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    cursor: pointer;
}

.flow-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, rgba(147, 51, 234, 0.1), rgba(192, 132, 252, 0.1));
    opacity: 0;
    transition: all 0.4s ease;
    border-radius: 20px;
    z-index: -1;
}

.flow-btn::after {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(45deg, #9333ea, #c084fc, #8b5cf6);
    border-radius: 22px;
    z-index: -2;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.flow-btn:hover {
    transform: translateY(-5px);
    border-color: transparent;
    background: rgba(23, 25, 28, 0.95);
    box-shadow: 
        0 10px 30px -10px rgba(147, 51, 234, 0.5),
        0 0 0 1px rgba(147, 51, 234, 0.2);
}

.flow-btn:hover::before {
    opacity: 0.1;
}

.flow-btn:hover::after {
    opacity: 1;
}

.flow-btn i {
    font-size: 2rem;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, #9333ea, #c084fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: transform 0.4s ease;
}

.flow-btn:hover i {
    transform: scale(1.1);
}

.flow-btn .flow-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
    color: #ffffff;
    transition: transform 0.3s ease;
}

.flow-btn:hover .flow-title {
    transform: translateX(5px);
}

.flow-btn small {
    opacity: 0.7;
    font-size: 0.9rem;
    line-height: 1.5;
    transition: opacity 0.3s ease;
}

.flow-btn:hover small {
    opacity: 0.9;
}

/* Add a media query for laptop screens */
@media (max-width: 1366px) {
    .agent-buttons {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 1024px) {
    .agent-buttons {
        grid-template-columns: repeat(2, 1fr);
    }
} 

@media (max-width: 768px) {
    .agent-buttons {
        grid-template-columns: repeat(1, 1fr);
    }
}