/* Valeria Labs - Main Styles */
@import url("./variables.css");

/* Reset and Base Styles */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    /* background: var(--bg-gradient-primary); */
    background: url("/assets/flowerbg.png") no-repeat center center fixed;
    background-size: cover;
    min-height: 100%;
}

body {
    font-family: var(--font-family-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
    /*
    background: var(--bg-gradient-primary);
    */
    background: url("/beta/assets/flowerbg.png") no-repeat center center fixed;
    background-size: cover;
}

/* Animated Background */
.background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: var(--bg-gradient-primary);
    z-index: var(--z-background);
}

.background::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(
            circle at 20% 30%,
            rgba(76, 201, 240, 0.3) 0%,
            transparent 50%
        ),
        radial-gradient(
            circle at 80% 70%,
            rgba(247, 37, 133, 0.2) 0%,
            transparent 50%
        ),
        radial-gradient(
            circle at 40% 80%,
            rgba(58, 12, 163, 0.3) 0%,
            transparent 50%
        );
    animation: float 60s ease-in-out infinite;
}

@keyframes float {
    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }
    33% {
        transform: translate(30px, -30px) rotate(120deg);
    }
    66% {
        transform: translate(-20px, 20px) rotate(240deg);
    }
}

/* Glass Morphism Base Classes */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--glass-shadow);
    position: relative;
    z-index: var(--z-content);
}

.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-md);
    box-shadow: var(--glass-shadow);
    padding: var(--spacing-xl);
    transition: all var(--transition-smooth);
}

.glass-card-nopadding {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-md);
    box-shadow: var(--glass-shadow);
    padding-top: var(--spacing-xl);
    transition: all var(--transition-smooth);
}

.glass-card:hover {
    transform: var(--hover-lift);
    box-shadow: var(--hover-glow), var(--glass-shadow);
}
.glass-card-nopadding:hover {
    transform: var(--hover-lift);
    box-shadow: var(--hover-glow), var(--glass-shadow);
}

/* Container and Layout */
.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.section {
    padding: var(--section-padding) 0;
    position: relative;
    z-index: var(--z-content);
}

/* Typography */
.hero-subtitle {
    background: linear-gradient(
        135deg,
        var(--accent-coral),
        var(--accent-herosubtitle)
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-title {
    font-size: var(--font-size-hero);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--spacing-md);
    text-align: center;
    background: linear-gradient(
        135deg,
        var(--primary-deep-indigo),
        var(--primary-teal)
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-title {
    font-size: var(--font-size-h1);
    font-weight: 600;
    margin-bottom: var(--spacing-lg);
    text-align: center;
    color: white;
}

.subsection-title {
    font-size: var(--font-size-h2);
    font-weight: 600;
    margin-bottom: var(--spacing-md);
}

.subtitle {
    font-size: var(--font-size-body);
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: var(--spacing-xl);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-md) var(--spacing-xl);
    border-radius: var(--border-radius-lg);
    text-decoration: none;
    font-weight: 600;
    font-size: var(--font-size-body);
    transition: all var(--transition-smooth);
    cursor: pointer;
    border: none;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(
        135deg,
        var(--accent-coral),
        var(--accent-magenta)
    );
    color: var(--text-on-accent);
    box-shadow: 0 4px 15px rgba(247, 37, 133, 0.3);
}

.btn-primary:hover {
    transform: var(--hover-lift);
    box-shadow: var(--hover-glow);
}

.btn-primary:active {
    transform: var(--active-scale);
}

.btn-secondary {
    background: var(--glass-bg);
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: var(--hover-lift);
}

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: var(--spacing-md) 0;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    z-index: var(--z-navigation);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: var(--font-size-h3);
    font-weight: 700;
    color: var(--primary-deep-indigo);
    text-decoration: none;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--primary-deep-indigo);
    font-size: 1.5rem;
    cursor: pointer;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: var(--spacing-lg);
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color var(--transition-fast);
}

.nav-link:hover {
    color: var(--primary-deep-indigo);
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    padding-top: 80px; /* Account for fixed navigation */
    box-sizing: border-box;
}

.hero-content {
    max-width: var(--container-max-width);
    width: 100%;
    padding: var(--spacing-2xl) var(--spacing-xl);
    margin: 0 auto;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 80%;
    object-fit: cover;
    opacity: 0.3;
    z-index: -1;
}

/* Grid Layouts */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: center;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-lg);
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-lg);
}

/* Feature Cards */
.feature-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto var(--spacing-md);
    background: linear-gradient(
        135deg,
        var(--primary-teal),
        var(--primary-deep-indigo)
    );
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.feature-title {
    font-size: var(--font-size-h3);
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    text-align: center;
}

.feature-description {
    color: var(--text-secondary);
    text-align: center;
    line-height: 1.5;
}

/* Timeline/Steps */
.timeline {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xl);
    max-width: 600px;
    margin: 0 auto;
}

.timeline-item {
    display: flex;
    gap: var(--spacing-lg);
    align-items: flex-start;
}

.timeline-number {
    width: 40px;
    height: 40px;
    background: linear-gradient(
        135deg,
        var(--accent-coral),
        var(--accent-magenta)
    );
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-on-accent);
    font-weight: 600;
    flex-shrink: 0;
}

.timeline-content h3 {
    margin-bottom: var(--spacing-xs);
}

/* Testimonials */
.testimonial-slider {
    position: relative;
    overflow: hidden;
}

.testimonial-item {
    text-align: center;
    padding: var(--spacing-xl);
}

.testimonial-quote {
    font-size: var(--font-size-h3);
    font-style: italic;
    margin-bottom: var(--spacing-lg);
    color: var(--text-primary);
}

.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-md);
}

.testimonial-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.testimonial-info h4 {
    font-weight: 600;
    margin-bottom: var(--spacing-xs);
}

.testimonial-info p {
    color: var(--text-secondary);
    font-size: var(--font-size-small);
}

/* Form Styles */
.form-group {
    margin-bottom: var(--spacing-lg);
}

.form-label {
    display: block;
    margin-bottom: var(--spacing-xs);
    font-weight: 500;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: var(--spacing-md);
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(58, 12, 163, 0.2);
    border-radius: var(--border-radius-sm);
    color: var(--text-primary);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all var(--transition-fast);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: var(--text-tertiary);
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary-teal);
    box-shadow: 0 0 0 2px rgba(76, 201, 240, 0.2);
}

.form-textarea {
    min-height: 120px;
    resize: vertical;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .section {
        padding: var(--spacing-2xl) 0;
    }

    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }

    .nav {
        padding: var(--spacing-sm) 0;
    }

    .nav-container {
        padding: 0 var(--spacing-md);
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        width: 100%;
        flex-direction: column;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(var(--glass-blur));
        -webkit-backdrop-filter: blur(var(--glass-blur));
        padding: var(--spacing-lg);
        transform: translateY(-100%);
        transition: transform var(--transition-smooth);
        border-top: 1px solid rgba(58, 12, 163, 0.2);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
        opacity: 0;
        visibility: hidden;
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-menu li {
        margin: var(--spacing-sm) 0;
    }

    .nav-link {
        color: var(--primary-deep-indigo);
        font-weight: 600;
        padding: var(--spacing-sm) 0;
        display: block;
        text-align: center;
        border-bottom: 1px solid rgba(58, 12, 163, 0.1);
    }

    .nav-link:hover {
        color: var(--accent-coral);
        background: rgba(76, 201, 240, 0.1);
    }

    .nav-toggle {
        display: block;
        padding: var(--spacing-xs);
    }

    .timeline {
        padding: 0 var(--spacing-md);
    }

    .timeline-item {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--spacing-sm);
    }

    .glass-card,
    .glass-card-nopadding {
        padding: var(--spacing-lg);
    }

    .hero-content {
        padding: var(--spacing-xl) var(--spacing-md);
        max-width: 100%;
    }

    .hero {
        padding-top: 70px; /* Smaller padding for mobile nav */
    }

    .btn {
        padding: var(--spacing-sm) var(--spacing-lg);
        width: 100%;
        max-width: 280px;
    }

    .nav-menu {
        top: 60px;
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}
.text-left {
    text-align: left;
}
.text-right {
    text-align: right;
}

.mb-sm {
    margin-bottom: var(--spacing-sm);
}
.mb-md {
    margin-bottom: var(--spacing-md);
}
.mb-lg {
    margin-bottom: var(--spacing-lg);
}
.mb-xl {
    margin-bottom: var(--spacing-xl);
}

.mt-sm {
    margin-top: var(--spacing-sm);
}
.mt-md {
    margin-top: var(--spacing-md);
}
.mt-lg {
    margin-top: var(--spacing-lg);
}
.mt-xl {
    margin-top: var(--spacing-xl);
}

.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all var(--transition-slow);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Carousel Styles */
.carousel-wrapper {
    width: 100%;
}

.carousel-container {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
    width: 100%;
}

.carousel-images {
    position: relative;
    width: 100%;
    height: 60vh;
    min-height: 400px;
    overflow: visible;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 var(--spacing-lg);
}

.carousel-slide.active {
    opacity: 1;
    z-index: 1;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: var(--border-radius-md);
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all var(--transition-fast);
    color: var(--primary-deep-indigo);
    font-size: 2rem;
    font-weight: 300;
}

.carousel-btn:hover {
    background: rgba(255, 255, 255, 1);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.carousel-btn:active {
    transform: translateY(-50%) scale(0.95);
}

.carousel-btn-prev {
    left: 16px;
}

.carousel-btn-next {
    right: 16px;
}

.carousel-dots {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.8);
    background: transparent;
    cursor: pointer;
    transition: all var(--transition-fast);
    padding: 0;
}

.carousel-dot:hover {
    background: rgba(255, 255, 255, 0.6);
    transform: scale(1.2);
}

.carousel-dot.active {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.2);
}

.carousel-text {
    width: 100%;
    position: relative;
    min-height: 120px;
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.carousel-text-content {
    opacity: 0;
    position: absolute;
    top: var(--spacing-md);
    left: 0;
    right: 0;
    transition: opacity 0.5s ease-in-out;
    width: 100%;
}

.carousel-text-content.active {
    opacity: 1;
    position: relative;
    top: 0;
}

.carousel-title {
    font-size: var(--font-size-h2);
    font-weight: 600;
    margin-bottom: var(--spacing-md);
    background: linear-gradient(
        135deg,
        var(--primary-deep-indigo),
        var(--primary-teal)
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.carousel-description {
    font-size: var(--font-size-body);
    color: var(--text-secondary);
    line-height: 1.8;
}

/* Mobile Responsive Carousel */
@media (max-width: 768px) {
    .carousel-images {
        height: 30vh;
        max-height: 30vh;
        min-height: 300px;
    }

    .carousel-slide {
        padding: var(--spacing-md);
    }

    .carousel-text {
        min-height: 180px;
    }

    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }

    .carousel-btn-prev {
        left: 12px;
    }

    .carousel-btn-next {
        right: 12px;
    }

    .carousel-dots {
        bottom: 12px;
    }

    .carousel-dot {
        width: 10px;
        height: 10px;
    }

    .carousel-title {
        font-size: var(--font-size-h3);
    }

    .carousel-description {
        font-size: var(--font-size-small);
    }
}
