/* Updated index.css with CSS variables from light.css */

body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    overflow-x: hidden;
}

.landing-container {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
}

/* Navigation */
.landing-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    background-color: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 40px;
    margin-right: 10px;
}

.logo span {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--secondary);
}

.nav-buttons {
    display: flex;
    gap: 15px;
}

.nav-button {
    padding: 10px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.login-btn {
    color: var(--secondary);
    border: 1px solid var(--secondary);
}

.login-btn:hover {
    background-color: var(--bg-panel);
}

.register-btn {
    background-color: var(--secondary);
    color: white;
    border: 1px solid var(--secondary);
}

.register-btn:hover {
    background-color: var(--primary-light);
    border-color: var(--primary-light);
}

/* Hero Section with Carousel */
.hero-section {
    position: relative;
    padding: 40px 0;
    background-color: var(--bg-secondary);
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero-title {
    font-size: 2.8rem;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--text-secondary);
    margin-bottom: 30px;
}

/* Carousel */
.carousel {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-slide {
    min-width: 100%;
    position: relative;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.carousel-container {
    max-width: 1000px;
    margin: 40px auto;
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.carousel-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
    z-index: 1;
    pointer-events: none;
    transition: background 0.3s ease;
}

.carousel-container.transitioning::before {
    background: rgba(255, 255, 255, 0.1);
}

.carousel-slide img {
    width: 100%;
    height: auto;
    display: block;
}

.slide-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 15px;
    text-align: left;
}

.slide-caption h3 {
    margin: 0 0 5px 0;
    font-size: 1.2rem;
}

.slide-caption p {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.9;
}

.carousel-prev, .carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.8);
    color: var(--text-primary);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
}

.carousel-prev:hover, .carousel-next:hover {
    background-color: rgba(255, 255, 255, 0.95);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.carousel-prev {
    left: 20px;
}

.carousel-next {
    right: 20px;
}

.carousel-indicators {
    position: absolute;
    bottom: 60px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.carousel-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.carousel-indicator:hover {
    background-color: rgba(255, 255, 255, 0.8);
    transform: scale(1.2);
}

.carousel-indicator.active {
    background-color: white;
    transform: scale(1.3);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.carousel-indicator.active::after {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%; 
}

/* Why Habitus Section */
.why-habitus {
    padding: 80px 5%;
    background-color: var(--bg-primary);
}

.section-title {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 50px;
    color: var(--text-primary);
    position: relative;
}

.section-title:after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background-color: var(--secondary);
    margin: 15px auto 0;
}

.benefits-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.benefit-card {
    background-color: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    width: 100%;
    max-width: 320px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.benefit-img {
    height: 180px;
    background-position: center;
    background-size: cover;
}

.benefit-content {
    padding: 25px;
}

.benefit-content h3 {
    margin: 0 0 15px 0;
    color: var(--secondary);
    font-size: 1.3rem;
}

.benefit-content p {
    margin: 0;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Features Section */
.features-section {
    padding: 80px 5%;
    background-color: var(--bg-secondary);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.feature {
    display: flex;
    align-items: flex-start;
}

.feature-icon {
    width: 60px;
    height: 60px;
    background-color: var(--bg-panel);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 20px;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.feature-icon img {
    width: 30px;
    height: 30px;
}

.feature-text h3 {
    margin: 0 0 10px 0;
    font-size: 1.2rem;
    color: var(--text-primary);
}

.feature-text p {
    margin: 0;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* How it works section */
.how-it-works {
    padding: 80px 5%;
    background-color: var(--bg-primary);
    text-align: center;
}

.steps-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.step {
    background-color: white;
    border-radius: 15px;
    padding: 30px;
    width: 220px;
    text-align: center;
    position: relative;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.step-number {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 30px;
    background-color: var(--secondary);
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 600;
}

.step-icon {
    width: 70px;
    height: 70px;
    background-color: var(--bg-panel);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 20px;
}

.step-icon img {
    width: 35px;
    height: 35px;
}

.step h3 {
    margin: 0 0 15px 0;
    font-size: 1.2rem;
    color: var(--text-primary);
}

.step p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Final CTA section */
.final-cta {
    padding: 100px 5%;
    background-color: var(--secondary);
    text-align: center;
    color: white;
}

.final-cta h2 {
    font-size: 2.2rem;
    margin-bottom: 15px;
}

.final-cta p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.9;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.primary-button, .secondary-button {
    padding: 12px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    text-align: center;
}

.primary-button {
    background-color: white;
    color: var(--secondary);
}

.primary-button:hover {
    background-color: var(--bg-panel);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
}

.secondary-button {
    background-color: transparent;
    color: white;
    border: 2px solid white;
}

.secondary-button:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* Footer */
.landing-footer {
    padding: 40px 5%;
    background-color: var(--bg-primary);
    text-align: center;
}

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.footer-logo img {
    height: 30px;
    margin-right: 10px;
}

.footer-logo span {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--secondary);
}

.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--secondary);
}

.copyright {
    color: var(--text-secondary);
    opacity: 0.7;
    font-size: 0.9rem;
}

/* Responsive design */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .steps-container {
        gap: 20px;
    }
    
    .step {
        width: calc(50% - 50px);
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .step {
        width: 100%;
        max-width: 350px;
    }
    
    .landing-nav {
        flex-direction: column;
        gap: 15px;
    }
    
    .carousel-prev, .carousel-next {
        width: 30px;
        height: 30px;
        font-size: 1.2rem;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-buttons {
        flex-direction: column;
        max-width: 300px;
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    .nav-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .nav-button {
        width: 100%;
        text-align: center;
    }
    
    .feature {
        flex-direction: column;
        text-align: center;
    }
    
    .feature-icon {
        margin: 0 auto 15px;
    }
    
    .carousel-indicators {
        bottom: 40px;
    }
    
    .carousel-prev, .carousel-next {
        display: none;
    }
}