/* 
    AgroFeira - Ultra Premium Design System 
    Modern, Sleek, and State-of-the-art
*/

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary: #2E7D32;
    --primary-light: #4CAF50;
    --primary-dark: #1B5E20;
    --accent: #6D4C41;
    --bg-light: #F8FAFC;
    --white: #ffffff;
    --dark: #0F172A;
    --gray-soft: #F1F5F9;
    --gray: #64748B;
    
    /* Premium Gradients */
    --grad-primary: linear-gradient(135deg, #2E7D32 0%, #4CAF50 100%);
    --grad-dark: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
    --grad-glass: linear-gradient(135deg, rgba(255,255,255,0.8) 0%, rgba(255,255,255,0.4) 100%);
    --grad-premium: linear-gradient(135deg, #2E7D32 0%, #1B5E20 100%);
    
    /* Shadows */
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --shadow-premium: 0 30px 60px -12px rgba(46, 125, 50, 0.18);
    
    --radius: 24px;
    --radius-lg: 40px;
    --transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

body {
    background-color: var(--bg-light);
    color: var(--dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography Upgrade */
h1, h2, h3, h4 {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 30px;
}

/* Premium Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 40px;
    border-radius: 100px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    text-decoration: none;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary {
    background: var(--grad-primary);
    color: var(--white);
    box-shadow: 0 10px 30px rgba(46, 125, 50, 0.25);
}

.btn-primary:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px rgba(46, 125, 50, 0.4);
}

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

.btn-white:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

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

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

/* Header Refinement */
header {
    background: rgba(255,255,255,0.7);
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    position: fixed;
    top: 0; width: 100%;
    z-index: 1000;
    padding: 20px 0;
    border-bottom: 1px solid rgba(255,255,255,0.3);
    transition: var(--transition);
}

header.scrolled {
    padding: 12px 0;
    box-shadow: var(--shadow-md);
}

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

.logo {
    font-size: 32px;
    font-weight: 800;
    color: var(--primary);
    text-transform: lowercase;
    text-decoration: none;
}

.logo span { color: var(--accent); }

.nav-links { display: flex; gap: 40px; align-items: center; list-style: none; }
.nav-links a { font-weight: 600; color: var(--dark); font-size: 1rem; text-decoration: none; transition: var(--transition); opacity: 0.8; }
.nav-links a:hover { color: var(--primary); opacity: 1; transform: translateY(-2px); }

/* Premium Hero Carousel */
.slider-container {
    height: 850px;
    margin-top: 0;
    border-radius: 0 0 100px 100px;
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-lg);
}

.slide {
    height: 100%;
    background-size: cover;
    background-position: center;
    padding-top: 150px;
    display: none;
}

.slide.active { display: block; animation: zoomOut 8s ease forwards; }

@keyframes zoomOut {
    from { transform: scale(1.1); }
    to { transform: scale(1); }
}

.slide-content h2 {
    font-size: 6rem;
    line-height: 0.85;
    margin-bottom: 30px;
    animation: fadeInUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(60px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Search Bar - Modern Floating */
.search-container {
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(20px);
    padding: 20px;
    border-radius: 100px;
    box-shadow: 0 40px 100px rgba(0,0,0,0.15);
    margin-top: -80px;
    position: relative;
    z-index: 100;
    border: 1px solid rgba(255,255,255,0.5);
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

.search-form {
    display: flex;
    gap: 15px;
    align-items: center;
}

.search-form .form-group {
    flex: 1;
    padding: 0 25px;
    border-right: 1px solid rgba(0,0,0,0.06);
}

.search-form .form-group:last-of-type { border-right: none; }

.search-form input, .search-form select {
    border: none;
    width: 100%;
    padding: 12px 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark);
    background: transparent;
    outline: none;
}

.search-form label {
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

/* Premium Event Cards */
.event-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.03);
    position: relative;
    box-shadow: var(--shadow-sm);
}

.event-card:hover {
    transform: translateY(-20px) scale(1.03);
    box-shadow: var(--shadow-premium);
}

.event-img {
    height: 320px;
    position: relative;
    overflow: hidden;
}

.event-img img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 1.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.event-card:hover .event-img img { transform: scale(1.15); }

.event-info {
    padding: 40px;
    background: var(--white);
}

.category-badge {
    background: rgba(46, 125, 50, 0.9);
    backdrop-filter: blur(10px);
    color: white;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    position: absolute;
    top: 25px; left: 25px;
    z-index: 10;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.event-title {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--dark);
    line-height: 1.2;
}

.event-title a { text-decoration: none; color: inherit; transition: var(--transition); }
.event-title a:hover { color: var(--primary); }

.event-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(0,0,0,0.05);
    padding-top: 25px;
    margin-top: 25px;
}

/* Glassmorphism Elements */
.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: var(--radius);
    padding: 40px;
}

/* Footer */
footer {
    background: var(--dark);
    color: white;
    padding: 120px 0 60px;
    border-radius: 100px 100px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 60px;
}

/* Animations */
[data-aos] {
    opacity: 0;
    transform: translateY(30px);
    transition: var(--transition);
}

[data-aos].aos-animate {
    opacity: 1;
    transform: translateY(0);
}

/* Detail Page Custom Styles */
.event-details-page {
    background: #fcfdfe;
}

.detail-card {
    background: white;
    padding: 50px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0,0,0,0.02);
}

.countdown-box {
    background: var(--grad-dark);
    padding: 40px;
    border-radius: var(--radius);
    color: white;
    text-align: center;
}

.time-value {
    font-size: 2.5rem;
    font-weight: 800;
    display: block;
    line-height: 1;
}

.time-label {
    font-size: 0.7rem;
    font-weight: 700;
    opacity: 0.6;
    letter-spacing: 1px;
}

/* Responsive */
@media (max-width: 1024px) {
    .search-container { border-radius: 40px; flex-direction: column; padding: 30px; }
    .search-form { flex-direction: column; gap: 20px; }
    .search-form .form-group { border-right: none; border-bottom: 1px solid #eee; padding: 10px 0; width: 100%; }
    .slide-content h2 { font-size: 4rem; }
}

@media (max-width: 768px) {
    .footer-grid { grid-template-columns: 1fr; }
    .nav-links { display: none; }
    .slide-content h2 { font-size: 3rem; }
}
