/* ============================================
   Modern Agricultural Design - Agroking Uganda
   AI-Inspired, Clean, Modern Look
   ============================================ */

:root {
    /* Green Color Palette Only */
    --primary-green: #2ab737;
    --dark-green: #1e8b2a;
    --darker-green: #155820;
    --light-green: #3dd04f;
    --lighter-green: #5fe86f;
    --muted-green: #8fcc96;
    --off-white: #f8f9fa;
    --text-dark: #1a1a1a;
    --text-muted: #6c757d;
    --white: #ffffff;
}

/* Top Contact Bar */
.top-bar {
    background: #2ab737 !important;
    font-size: 0.85rem;
    padding: 0.5rem 0 !important;
    border-bottom: none;
}

.top-bar a {
    transition: color 0.3s ease;
}

.top-bar a:hover {
    color: var(--light-green) !important;
}

.social-links-top a {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    transition: all 0.3s ease;
}

.social-links-top a:hover {
    background: var(--primary-green);
    transform: translateY(-2px);
}

/* Modern Navbar */
.navbar {
    padding: 1rem 0;
    background: var(--white) !important;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    box-shadow: 0 2px 20px rgba(0,0,0,0.1);
}

.navbar-brand img {
    height: 50px;
    width: auto;
    transition: transform 0.3s ease;
}

.navbar-brand:hover img {
    transform: scale(1.05);
}

.nav-link {
    font-weight: 500;
    color: var(--text-dark) !important;
    margin: 0 0.5rem;
    position: relative;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-green);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-green) !important;
}

/* Profile Icon in Navbar */
.nav-link i.fa-user-circle {
    font-size: 1.5rem;
    transition: transform 0.3s ease, color 0.3s ease;
}

.nav-link:hover i.fa-user-circle {
    transform: scale(1.1);
    color: var(--primary-green) !important;
}

body {
    padding-top: 0 !important;
}

/* Modern Hero Slider */
.hero-slider {
    position: relative;
    height: 100vh;
    overflow: hidden;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
}

.hero-slide.active {
    opacity: 1;
    z-index: 1;
}

.hero-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(30, 139, 42, 0.85), rgba(21, 88, 32, 0.9));
}

.hero-content {
    position: relative;
    z-index: 2;
    color: white;
    animation: fadeInUp 1s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: 1.3rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.hero-buttons .btn {
    padding: 1rem 2.5rem;
    font-weight: 600;
    border-radius: 50px;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    margin-right: 1rem;
    margin-bottom: 1rem;
}

.btn-primary {
    background: var(--primary-green);
    border-color: var(--primary-green);
    color: white;
}

.btn-primary:hover {
    background: var(--dark-green);
    border-color: var(--dark-green);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(42, 183, 55, 0.3);
}

.btn-outline-light {
    border: 2px solid white;
    color: white;
    background: transparent;
}

.btn-outline-light:hover {
    background: white;
    color: var(--primary-green);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(255,255,255,0.3);
}

/* Slider Controls */
.slider-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 10px;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    border: 2px solid white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-dot.active {
    background: var(--primary-green);
    border-color: var(--primary-green);
    transform: scale(1.2);
}

.slider-arrows {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(255,255,255,0.2);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.slider-arrows:hover {
    background: var(--primary-green);
    transform: translateY(-50%) scale(1.1);
}

.slider-prev {
    left: 30px;
}

.slider-next {
    right: 30px;
}

/* Modern Section Styles */
.section-title {
    font-size: 2.8rem;
    color: var(--dark-green);
    font-weight: 800;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--primary-green);
    border-radius: 2px;
}

/* Client Logos Carousel */
.client-logos {
    background: var(--off-white);
    padding: 60px 0;
    overflow: hidden;
}

.logos-wrapper {
    overflow: hidden;
    position: relative;
}

.logos-track {
    display: flex;
    animation: scroll 30s linear infinite;
    gap: 60px;
    width: max-content;
}

.logos-track:hover {
    animation-play-state: paused;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.client-logo-item {
    flex-shrink: 0;
    width: 180px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
}

.client-logo-item:hover {
    transform: translateY(-5px);
}

.client-logo-item img {
    max-width: 100%;
    max-height: 100%;
    filter: grayscale(0%);
    opacity: 1;
    transition: all 0.3s ease;
}

.client-logo-item:hover img {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.05);
}

/* Testimonials */
.testimonials-section {
    background: linear-gradient(135deg, var(--off-white) 0%, white 100%);
    padding: 100px 0;
}

.testimonial-card {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    height: 100%;
    transition: all 0.3s ease;
    border-top: 4px solid var(--primary-green);
}

.testimonial-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}

.testimonial-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.testimonial-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--primary-green);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
}

.testimonial-info h5 {
    color: var(--dark-green);
    margin-bottom: 0.25rem;
    font-weight: 600;
}

.testimonial-info p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0;
}

.testimonial-rating {
    color: var(--muted-gold);
    margin-bottom: 1rem;
}

/* Modern Cards */
.modern-card {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 5px 25px rgba(0,0,0,0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    height: 100%;
    border: 1px solid rgba(0,0,0,0.05);
}

.modern-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 50px rgba(42, 183, 55, 0.2);
}

.modern-card-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-green), var(--light-green));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 10px 25px rgba(42, 183, 55, 0.3);
}

/* Stats Counter */
.stats-section {
    background: linear-gradient(135deg, var(--dark-green), var(--darker-green));
    color: white;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.stats-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><rect width="100" height="100" fill="none"/><path d="M0 50 Q25 0, 50 50 T100 50" stroke="rgba(255,255,255,0.05)" fill="none"/></svg>');
    opacity: 0.3;
}

.stat-item {
    text-align: center;
    position: relative;
    z-index: 1;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--light-green);
    margin-bottom: 0.5rem;
    display: block;
}

.stat-label {
    font-size: 1.2rem;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Feature Cards */
.feature-modern {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.feature-modern:hover {
    border-color: var(--primary-green);
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(42, 183, 55, 0.15);
}

.feature-modern-icon {
    width: 70px;
    height: 70px;
    background: var(--off-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--primary-green);
    font-size: 2rem;
    transition: all 0.3s ease;
}

.feature-modern:hover .feature-modern-icon {
    background: var(--primary-green);
    color: white;
    transform: scale(1.1) rotate(5deg);
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Responsive - Moved to responsive.css for better organization */
