:root {
    --primary: #4CAF50;
    --primary-dark: #388E3C;
    --secondary: #8BC34A;
    --accent: #FFC107;
    --text-dark: #212121;
    --text-muted: #757575;
    --bg-light: #F1F8E9;
    --white: #FFFFFF;
    --glass: rgba(255, 255, 255, 0.7);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --radius: 20px;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-light);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    font-family: 'Playfair Display', serif;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Glassmorphism Classes */
.glass {
    background: var(--glass);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 20px;
    left: 0;
    width: 100%;
    z-index: 1000;
}

.nav-container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 30px;
    border-radius: 50px;
    box-shadow: var(--shadow);
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--primary-dark);
}

.logo img {
    height: 40px;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 20px;
    align-items: center;
}

nav ul li a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    transition: var(--transition);
}

nav ul li a:hover {
    color: var(--primary);
}

.cta-nav {
    background: var(--primary);
    color: var(--white) !important;
    padding: 10px 20px;
    border-radius: 30px;
    box-shadow: 0 4px 10px rgba(76, 175, 80, 0.3);
}

.cta-nav:hover {
    background: var(--primary-dark);
    box-shadow: 0 6px 15px rgba(76, 175, 80, 0.5);
    transform: translateY(-2px);
}

.btn-login {
    background: white;
    border: 1px solid #ddd;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.btn-login:hover {
    background: #f8f8f8;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-avatar {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    border: 2px solid var(--primary);
}

.btn-logout {
    font-size: 0.8rem;
    color: var(--text-muted);
    background: none;
    border: none;
    cursor: pointer;
    text-decoration: underline;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 140px 10% 80px;
    background: radial-gradient(circle at 10% 20%, rgba(216, 241, 223, 0.46) 0%, rgba(248, 241, 192, 0.46) 90.1%);
}

.hero-content {
    flex: 1;
    max-width: 600px;
    padding-right: 50px;
}

.hero h1 {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 20px;
}

.highlight {
    color: var(--primary);
    position: relative;
    display: inline-block;
}

.highlight::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 10px;
    background: rgba(76, 175, 80, 0.2);
    z-index: -1;
}

.hero-btns {
    display: flex;
    gap: 20px;
    margin-top: 40px;
}

.hero-image {
    flex: 0.8;
    position: relative;
}

.hero-image img {
    width: 100%;
    border-radius: var(--radius);
    box-shadow: 20px 20px 60px rgba(0, 0, 0, 0.1);
}

/* AI Section */
.ai-section {
    padding: 100px 0;
    background-color: var(--white);
    position: relative;
}

.container-ai {
    max-width: 1000px;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 3rem;
    margin-bottom: 15px;
}

.ai-card {
    padding: 50px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-align: center;
}

.drop-area {
    border: 3px dashed var(--primary);
    padding: 60px;
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
}

.drop-area:hover, .drop-area.active {
    background: rgba(76, 175, 80, 0.05);
}

.icon-upload {
    font-size: 4rem;
    color: var(--primary);
    margin-bottom: 20px;
}

/* Prediction Results */
.hidden {
    display: none !important;
}

.preview-container {
    margin-top: 30px;
}

#image-preview {
    max-width: 100%;
    max-height: 400px;
    border-radius: var(--radius);
    margin-bottom: 20px;
}

.analysis-status {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(76, 175, 80, 0.1);
    border-top: 5px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.result-container {
    text-align: left;
    margin-top: 30px;
}

.result-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    border-bottom: 2px solid var(--bg-light);
    padding-bottom: 15px;
}

.badge {
    background: var(--primary);
    color: white;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
}

.result-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.result-price {
    grid-column: span 2;
    background: var(--bg-light);
    padding: 20px;
    border-radius: var(--radius);
    text-align: center;
}

.price-box {
    margin-top: 10px;
}

.price {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary-dark);
}

.result-actions {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* Buttons */
.btn {
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    display: inline-block;
    text-decoration: none;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: scale(1.05);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
}

.btn-action {
    margin-top: 15px;
    background: var(--primary);
    color: white;
}

/* Footer Premium */
.footer-premium {
    background: #1B2E1E;
    color: #E8F5E9;
    padding: 60px 0 30px;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.5rem;
    font-weight: 700;
}

.footer-logo img {
    height: 50px;
    filter: brightness(1.2);
}

.footer-links a {
    color: #A5D6A7;
    margin-left: 30px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    padding-top: 30px;
    text-align: center;
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Animations */
.animate-fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 0.8s ease forwards;
}

.animate-fade-in-delay {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 0.8s ease forwards 0.3s;
}

.animate-slide-up {
    opacity: 0;
    transform: translateY(50px);
    animation: fadeIn 0.8s ease forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 900px) {
    .hero {
        flex-direction: column-reverse;
        padding-top: 120px;
        text-align: center;
    }
    .hero-content {
        padding-right: 0;
        margin-top: 40px;
    }
    .hero h1 {
        font-size: 3rem;
    }
    .result-grid {
        grid-template-columns: 1fr;
    }
    .result-price {
        grid-column: span 1;
    }
}
