/* ============================================
   Modern UI/UX Variables & Base Styles
   Inspired by agroinvitro.uz design
   ============================================ */

:root {
    /* Primary Colors - Green Palette */
    --primary-green: #2d7a3e;
    --primary-green-dark: #1e5a2e;
    --primary-green-light: #3d9a52;
    --accent-green: #4caf50;
    
    /* Secondary Colors */
    --secondary-orange: #ff9800;
    --secondary-blue: #2196f3;
    
    /* Neutral Colors */
    --text-dark: #212529;
    --text-muted: #6c757d;
    --text-light: #adb5bd;
    --bg-light: #f8f9fa;
    --bg-white: #ffffff;
    --border-color: #e9ecef;
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
    --shadow-hover: 0 12px 32px rgba(45,122,62,0.15);
    
    /* Transitions */
    --transition-base: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.2s ease;
    
    /* Border Radius */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 3rem;
    --spacing-xl: 5rem;
}

/* ============================================
   Typography
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-dark);
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1rem;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

.lead {
    font-size: 1.25rem;
    font-weight: 400;
    line-height: 1.6;
}

/* ============================================
   Utility Classes
   ============================================ */

.bg-success {
    background-color: var(--primary-green) !important;
}

.text-success {
    color: var(--primary-green) !important;
}

.text-muted {
    color: var(--text-muted) !important;
}

/* ============================================
   Buttons
   ============================================ */

.btn {
    font-weight: 600;
    padding: 12px 28px;
    border-radius: var(--radius-sm);
    transition: var(--transition-base);
    border: none;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
}

.btn-success {
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-green-light) 100%);
    color: white;
    box-shadow: var(--shadow-sm);
}

.btn-success:hover {
    background: linear-gradient(135deg, var(--primary-green-dark) 0%, var(--primary-green) 100%);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

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

.btn-outline-success:hover {
    background: var(--primary-green);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

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

.btn-light:hover {
    background: var(--bg-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-lg {
    padding: 16px 36px;
    font-size: 1rem;
}

.btn-sm {
    padding: 8px 20px;
    font-size: 0.875rem;
}

/* ============================================
   Header & Navigation
   ============================================ */

header {
    background: white;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: var(--transition-base);
}

header.scrolled {
    box-shadow: var(--shadow-md);
}

.navbar-brand img {
    transition: var(--transition-fast);
}

.navbar-brand:hover img {
    transform: scale(1.05);
}

.nav-link {
    font-weight: 500;
    color: var(--text-dark) !important;
    padding: 0.75rem 1rem !important;
    position: relative;
    transition: var(--transition-fast);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: var(--primary-green);
    transition: var(--transition-base);
    transform: translateX(-50%);
}

.nav-link:hover {
    color: var(--primary-green) !important;
}

.nav-link:hover::after {
    width: 60%;
}

.nav-link.active::after {
    width: 60%;
}

/* ============================================
   Hero Section
   ============================================ */

.hero {
    position: relative;
    overflow: hidden;
    min-height: 600px;
    display: flex;
    align-items: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(29,90,46,0.92) 0%, rgba(45,122,62,0.85) 50%, rgba(61,154,82,0.75) 100%);
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-weight: 800;
    text-shadow: 0 2px 8px rgba(0,0,0,0.2);
    animation: fadeInUp 0.8s ease;
}

.hero p {
    text-shadow: 0 1px 4px rgba(0,0,0,0.2);
    animation: fadeInUp 1s ease;
}

.hero .btn {
    animation: fadeInUp 1.2s ease;
}

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

/* ============================================
   Cards
   ============================================ */

.card {
    border: none;
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition-base);
    background: white;
    box-shadow: var(--shadow-sm);
}

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

.card-img-top {
    transition: var(--transition-base);
}

.card:hover .card-img-top {
    transform: scale(1.05);
}

.card-body {
    padding: 1.5rem;
}

.card-title {
    font-weight: 600;
    margin-bottom: 0.75rem;
}

/* Feature Cards */
.feature-card {
    background: white;
    border-radius: var(--radius-md);
    padding: 2rem;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: var(--transition-base);
}

.feature-card:hover {
    border-color: var(--primary-green);
    box-shadow: var(--shadow-md);
    transform: translateY(-5px);
}

.feature-card i {
    display: block;
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    color: var(--primary-green);
    transition: var(--transition-base);
}

.feature-card:hover i {
    transform: scale(1.1);
}

/* ============================================
   Process Steps
   ============================================ */

.process-step {
    text-align: center;
    padding: 2rem 1rem;
    position: relative;
}

.process-step-number {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-green-light) 100%);
    color: white;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-md);
    transition: var(--transition-base);
}

.process-step:hover .process-step-number {
    transform: scale(1.1) rotate(5deg);
    box-shadow: var(--shadow-lg);
}

/* ============================================
   Accordion (FAQ)
   ============================================ */

.accordion-item {
    border: 1px solid var(--border-color) !important;
    border-radius: var(--radius-sm) !important;
    margin-bottom: 1rem;
    overflow: hidden;
}

.accordion-button {
    font-weight: 600;
    color: var(--text-dark);
    padding: 1.25rem 1.5rem;
    background: white;
}

.accordion-button:not(.collapsed) {
    background: var(--bg-light);
    color: var(--primary-green);
}

.accordion-button:focus {
    box-shadow: none;
    border-color: var(--primary-green);
}

.accordion-body {
    padding: 1.5rem;
    color: var(--text-muted);
    line-height: 1.8;
}

/* ============================================
   Footer
   ============================================ */

footer {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: rgba(255,255,255,0.8);
}

footer h5 {
    color: white;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

footer a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: var(--transition-fast);
}

footer a:hover {
    color: var(--primary-green-light);
    padding-left: 5px;
}

/* ============================================
   Sections
   ============================================ */

section {
    padding: var(--spacing-xl) 0;
}

section h2 {
    font-weight: 800;
    margin-bottom: 0.5rem;
}

section .text-muted {
    font-size: 1.1rem;
}

/* ============================================
   Animations & Effects
   ============================================ */

.hover-lift {
    transition: var(--transition-base);
}

.hover-lift:hover {
    transform: translateY(-8px);
}

/* Scroll Reveal Animation */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: var(--transition-base);
}

.scroll-reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   Responsive Design
   ============================================ */

@media (max-width: 991px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    
    .hero {
        min-height: 500px;
    }
    
    section {
        padding: var(--spacing-lg) 0;
    }
    
    .btn-lg {
        padding: 14px 28px;
    }
}

@media (max-width: 767px) {
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }
    
    .hero {
        min-height: 400px;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .btn-lg {
        padding: 12px 24px;
    }
    
    .feature-card {
        padding: 1.5rem;
    }
    
    .process-step-number {
        width: 60px;
        height: 60px;
        font-size: 1.75rem;
    }
}

/* ============================================
   Enhanced Feature Cards (Premium Style)
   ============================================ */

.features-section {
    background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
    position: relative;
    overflow: hidden;
}

.features-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(45,122,62,0.05) 0%, transparent 70%);
    border-radius: 50%;
}

.section-header {
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-green) 0%, var(--primary-green-light) 100%);
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    font-weight: 400;
}

/* Premium Feature Cards with Icons */
.feature-card-premium {
    background: white;
    border-radius: var(--radius-lg);
    padding: 2.5rem 2rem;
    text-align: center;
    transition: var(--transition-base);
    border: 1px solid rgba(45,122,62,0.1);
    position: relative;
    overflow: hidden;
    height: 100%;
}

.feature-card-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-green) 0%, var(--primary-green-light) 100%);
    transform: scaleX(0);
    transition: var(--transition-base);
}

.feature-card-premium:hover::before {
    transform: scaleX(1);
}

.feature-card-premium:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(45,122,62,0.15);
    border-color: var(--primary-green);
}

.feature-icon-wrapper {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, rgba(45,122,62,0.1) 0%, rgba(76,175,80,0.05) 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: var(--transition-base);
}

.feature-icon-wrapper::after {
    content: '';
    position: absolute;
    inset: -5px;
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-green-light) 100%);
    border-radius: 22px;
    opacity: 0;
    z-index: -1;
    transition: var(--transition-base);
}

.feature-card-premium:hover .feature-icon-wrapper::after {
    opacity: 0.1;
}

.feature-card-premium:hover .feature-icon-wrapper {
    transform: scale(1.1) rotate(5deg);
}

.feature-icon-wrapper i {
    font-size: 2.5rem;
    color: var(--primary-green);
    transition: var(--transition-base);
}

.feature-card-premium:hover .feature-icon-wrapper i {
    color: var(--primary-green-dark);
    transform: scale(1.1);
}

.feature-card-premium h5 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.feature-card-premium p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
}

/* ============================================
   Enhanced Process Steps (Premium Style)
   ============================================ */

.process-section {
    background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%);
    position: relative;
}

.process-wrapper {
    position: relative;
}

/* Connection Lines for Desktop */
@media (min-width: 992px) {
    .process-wrapper::before {
        content: '';
        position: absolute;
        top: 50px;
        left: 10%;
        right: 10%;
        height: 2px;
        background: linear-gradient(90deg, 
            transparent 0%, 
            rgba(45,122,62,0.2) 10%, 
            rgba(45,122,62,0.2) 90%, 
            transparent 100%);
        z-index: 0;
    }
}

.process-step-premium {
    text-align: center;
    padding: 2rem 1.5rem;
    position: relative;
    z-index: 1;
}

.process-step-number-premium {
    width: 90px;
    height: 90px;
    background: white;
    border: 4px solid var(--primary-green);
    color: var(--primary-green);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 2.25rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    box-shadow: 0 8px 20px rgba(45,122,62,0.15);
    transition: var(--transition-base);
    position: relative;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}

.process-step-number-premium::before {
    content: '';
    position: absolute;
    inset: -8px;
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-green-light) 100%);
    border-radius: 50%;
    opacity: 0;
    z-index: -1;
    transition: var(--transition-base);
}

.process-step-premium:hover .process-step-number-premium {
    transform: scale(1.15) rotate(10deg);
    border-color: var(--primary-green-light);
    color: white;
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-green-light) 100%);
    box-shadow: 0 12px 32px rgba(45,122,62,0.25);
}

.process-step-premium:hover .process-step-number-premium::before {
    opacity: 0.2;
}

.process-step-premium h5 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.process-step-premium p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
}

/* Stagger Animation for Process Steps */
.process-step-premium:nth-child(1) { animation-delay: 0.1s; }
.process-step-premium:nth-child(2) { animation-delay: 0.2s; }
.process-step-premium:nth-child(3) { animation-delay: 0.3s; }
.process-step-premium:nth-child(4) { animation-delay: 0.4s; }
.process-step-premium:nth-child(5) { animation-delay: 0.5s; }
.process-step-premium:nth-child(6) { animation-delay: 0.6s; }

/* Badge/Tag Style for Numbers */
.process-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary-green) 0%, var(--primary-green-light) 100%);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
    box-shadow: 0 4px 12px rgba(45,122,62,0.2);
}

/* ============================================
   Performance & Accessibility
   ============================================ */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus Visible for Accessibility */
:focus-visible {
    outline: 3px solid var(--primary-green);
    outline-offset: 2px;
}

/* ============================================
   Responsive Enhancements
   ============================================ */

@media (max-width: 991px) {
    .section-title {
        font-size: 2rem;
    }
    
    .feature-card-premium {
        padding: 2rem 1.5rem;
    }
    
    .process-step-number-premium {
        width: 75px;
        height: 75px;
        font-size: 1.75rem;
    }
}

@media (max-width: 767px) {
    .section-title {
        font-size: 1.75rem;
    }
    
    .feature-icon-wrapper {
        width: 70px;
        height: 70px;
    }
    
    .feature-icon-wrapper i {
        font-size: 2rem;
    }
    
    .process-step-number-premium {
        width: 65px;
        height: 65px;
        font-size: 1.5rem;
    }
}
