@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

.montserrat {
    font-family: "Montserrat", sans-serif;
    font-optical-sizing: auto;
    font-weight: 500;
}

/* html {
    scroll-behavior: smooth;
} */

body {
    overflow-x: hidden;
}

/* Navbar Styles */
.nav-link {
    position: relative;
    transition: all 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: white;
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Hero Section Styles */
.hero-bg {
    background-color: rgba(220, 252, 231, 0.7);
    background-image: url('https://images.unsplash.com/photo-1458966480358-a0ac42de0a7a?w=600&auto=format&fit=crop&q=60&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxzZWFyY2h8MTR8fFRyZWVzfGVufDB8fDB8fHww');
    background-blend-mode: overlay;
    background-size: cover;
    background-position: center;
    filter: blur(1px);
}

.hero-title,
.hero-subtitle {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hero-image img {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    transform: perspective(1000px) rotateY(-5deg) rotateX(5deg);
    transition: all 0.5s ease;
}

.hero-image img:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

/* Button Styles */
.btn-primary,
.btn-secondary {
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover,
.btn-secondary:hover {
    transform: translateY(-3px);
    box-shadow: 0 7px 14px rgba(0, 0, 0, 0.1);
}

.btn-primary:active,
.btn-secondary:active {
    transform: translateY(1px);
    box-shadow: 0 3px 5px rgba(0, 0, 0, 0.1);
}

/* Feature Card Styles */
.feature-card {
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Timeline Styles */
.timeline-container {
    position: relative;
    padding-left: 2rem;
}

.timeline-item {
    position: relative;
    margin-bottom: 2.5rem;
}

.timeline-dot {
    position: absolute;
    left: -1.25rem;
    top: 0.5rem;
    width: 1.25rem;
    height: 1.25rem;
    background-color: #16a34a;
    /* Green-600 */
    border-radius: 50%;
    z-index: 1;
}

.timeline-line {
    position: absolute;
    left: -0.625rem;
    top: 1.75rem;
    width: 0.25rem;
    height: calc(100% + 1rem);
    background-color: #16a34a;
    /* Green-600 */
    opacity: 0.5;
}

.timeline-item:last-child .timeline-line {
    display: none;
}

/* Drop Zone Styles */
.drop-zone {
    border: 2px dashed #16a34a;
    /* Green-600 */
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 8px;
}

.drop-zone:hover {
    background-color: #f0fff4;
    transform: scale(1.01);
}

/* Input Field Styles */
.input-field {
    transition: all 0.3s ease;
}

.input-field:focus {
    transform: scale(1.02);
}

/* Auth Container Styles */
.auth-container {
    transition: all 0.3s ease;
}

/* Results Card Styles */
.results-card {
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.results-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

/* Animation Styles */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

/* @keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
} */

/* Leaf Animation */
.leaf {
    position: absolute;
    top: -50px;
    width: 20px;
    height: 20px;
    background-color: #16a34a;
    /* Green-600 */
    clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
    animation: fall linear forwards;
    z-index: -1;
}


#results {
    opacity: 1 !important;
}

#resultsContent {
    opacity: 1 !important;
    background-color: var(--tw-bg-opacity-50);
}

.suggestions {
    opacity: 1 !important;
}

/* Optional: Add this in case there's something making content transparent */
.opacity-0 {
    opacity: 1 !important;
}

/* Improve contrast for results content */
#resultsContent .text-gray-700 {
    color: rgba(55, 65, 81, 1);
}

/* Add a subtle pattern to better distinguish sections */
#resultsContent {
    background-image: linear-gradient(to right, rgba(240, 255, 244, 0.5) 1px, transparent 1px),
                     linear-gradient(to bottom, rgba(240, 255, 244, 0.5) 1px, transparent 1px);
    background-size: 20px 20px;
}


@keyframes fall {
    0% {
        transform: translateY(0) rotate(0deg);
    }

    100% {
        transform: translateY(100vh) rotate(360deg);
    }
}

/* Loading Spinner */
.loading-spinner {
    border: 4px solid rgba(0, 0, 0, 0.1);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border-top: 4px solid #16a34a;
    /* Green-600 */
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}