/* AgriFarma - Complete UI/UX Redesign with New Color Palette */

/* ============================================
   COLOR PALETTE
   ============================================ */
:root {
    /* Primary Colors */
    --primary: #123524;
    --secondary: #3E7B27;
    --accent: #85A947;
    --background-light: #EFE3C2;
    
    /* Semantic Colors */
    --success: #3E7B27;
    --warning: #F5A623;
    --danger: #D32F2F;
    --info: #1976D2;
    
    /* Neutral Colors */
    --white: #FFFFFF;
    --light-gray: #F5F5F5;
    --gray: #9E9E9E;
    --dark-gray: #424242;
    --black: #212529;
    
    /* Text Colors */
    --text-primary: #123524;
    --text-secondary: #424242;
    --text-light: #757575;
    --text-on-dark: #FFFFFF;
    
    /* Background Colors */
    --bg-primary: #EFE3C2;
    --bg-white: #FFFFFF;
    --bg-light: #F9F7F4;
    --bg-card: #FFFFFF;
    
    /* Border Colors */
    --border-light: rgba(18, 53, 36, 0.1);
    --border-medium: rgba(18, 53, 36, 0.2);
    --border-dark: rgba(18, 53, 36, 0.3);
    
    /* Shadow Colors */
    --shadow-sm: 0 2px 8px rgba(18, 53, 36, 0.08);
    --shadow-md: 0 4px 16px rgba(18, 53, 36, 0.12);
    --shadow-lg: 0 8px 32px rgba(18, 53, 36, 0.16);
    --shadow-xl: 0 12px 48px rgba(18, 53, 36, 0.2);
    
    /* Spacing - Reduced by 25-30% for LinkedIn compact style */
    --spacing-xs: 0.375rem; /* 6px */
    --spacing-sm: 0.75rem; /* 12px */
    --spacing-md: 1rem; /* 16px */
    --spacing-lg: 1.5rem; /* 24px */
    --spacing-xl: 2rem; /* 32px */
    --spacing-xxl: 2.5rem; /* 40px */
    
    /* Border Radius - LinkedIn style (6-8px) */
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-full: 9999px;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* ============================================
   GOOGLE FONTS - LinkedIn style (Inter + Roboto)
   ============================================ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Roboto:wght@300;400;500;700;900&family=Lato:wght@300;400;700;900&display=swap');

/* ============================================
   GLOBAL STYLES
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 15px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', 'Roboto', 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-weight: 400;
    font-size: 15px;
    line-height: 1.5;
    color: var(--text-primary);
    background-color: #f3f2ef; /* LinkedIn-like background */
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Container - LinkedIn-style max-width */
.container,
.container-fluid {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-primary);
    margin-bottom: var(--spacing-md);
}

h1 { font-size: 1.25rem; font-weight: 600; } /* 20px - LinkedIn style */
h2 { font-size: 1.125rem; font-weight: 600; } /* 18px */
h3 { font-size: 1rem; font-weight: 600; } /* 16px */
h4 { font-size: 0.9375rem; font-weight: 600; } /* 15px */
h5 { font-size: 0.875rem; font-weight: 600; } /* 14px */
h6 { font-size: 0.875rem; font-weight: 500; } /* 14px */

p {
    margin-bottom: var(--spacing-sm);
    color: var(--text-secondary);
}

a {
    color: var(--secondary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--accent);
}

/* ============================================
   NAVBAR - LinkedIn Style (50px fixed height)
   ============================================ */
.navbar-fixed-top {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1030;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%) !important;
    box-shadow: 0 0 0 1px rgba(0,0,0,0.08), 0 2px 4px rgba(0,0,0,0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.navbar {
    background: transparent !important;
    height: 50px !important;
    min-height: 50px !important;
    max-height: 50px !important;
    padding: 0 !important;
    box-shadow: none !important;
}

.navbar-brand {
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    font-size: 1.125rem; /* 18px - LinkedIn style */
    color: var(--white) !important;
    letter-spacing: -0.3px;
    padding: 0 !important;
    line-height: 50px;
    height: 50px;
    display: flex;
    align-items: center;
}

.navbar-nav .nav-link {
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9) !important;
    padding: 0.5rem 0.75rem !important;
    margin: 0 0.125rem;
    border-radius: 0;
    transition: all var(--transition-fast);
    font-size: 0.875rem; /* 14px */
    line-height: 1.5;
    height: 50px;
    display: flex;
    align-items: center;
    position: relative;
    background: none !important;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: var(--white);
    transition: all var(--transition-fast);
    transform: translateX(-50%);
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: calc(100% - 1.5rem);
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--white) !important;
    background: none !important;
    transform: none;
}

/* Ensure all navbar icons are white */
.navbar-nav .nav-link i,
.navbar-nav .nav-link .fas,
.navbar-nav .nav-link .fa,
.navbar-nav .nav-link .bi {
    color: rgba(255, 255, 255, 0.9) !important;
}

.navbar-dark .navbar-nav .nav-link i,
.navbar-dark .navbar-nav .nav-link .fas,
.navbar-dark .navbar-nav .nav-link .fa,
.navbar-dark .navbar-nav .nav-link .bi {
    color: rgba(255, 255, 255, 0.9) !important;
}

body {
    padding-top: 50px; /* Add padding to account for fixed navbar */
}

.navbar-toggler {
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-sm);
    padding: 0.5rem 0.75rem;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.9%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='m4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.dropdown-menu {
    background-color: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: var(--spacing-xs);
    margin-top: var(--spacing-xs);
}

.dropdown-item {
    color: var(--text-primary);
    padding: var(--spacing-xs) var(--spacing-md);
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.dropdown-item:hover {
    background-color: var(--bg-light);
    color: var(--secondary);
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    font-family: 'Roboto', sans-serif;
    font-weight: 500;
    padding: 6px 14px; /* LinkedIn compact button style */
    border-radius: 6px; /* LinkedIn style */
    border: none;
    transition: all var(--transition-fast);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    text-transform: none;
    letter-spacing: 0;
    font-size: 0.875rem; /* 14px */
    line-height: 1.5;
}

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

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

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

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

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

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

.btn-lg {
    padding: 8px 18px;
    font-size: 0.9375rem; /* 15px */
    border-radius: 8px;
}

.btn-sm {
    padding: 4px 10px;
    font-size: 0.8125rem; /* 13px */
    border-radius: 6px;
}

/* ============================================
   CARDS - 30% Smaller, Compact LinkedIn Style
   ============================================ */
.card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md); /* 8px - LinkedIn style */
    box-shadow: 0 0 0 1px rgba(0,0,0,0.08), 0 2px 4px rgba(0,0,0,0.08);
    transition: all var(--transition-fast);
    overflow: hidden;
    margin-bottom: var(--spacing-sm);
    /* 30% smaller - reduced dimensions */
    max-width: 100%;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 0 1px rgba(0,0,0,0.08), 0 4px 8px rgba(0,0,0,0.12);
    border-color: var(--accent);
}

/* Product card images - Fixed 4:3 aspect ratio */
.card-img-top {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    object-position: center;
}

.card-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: var(--white);
    padding: 0.75rem 1rem; /* Compact LinkedIn style */
    border-bottom: none;
    font-weight: 600;
    font-size: 0.875rem; /* 14px */
}

.card-body {
    padding: 0.75rem; /* 12px - 30% smaller, LinkedIn compact style */
}

.card-footer {
    background-color: var(--bg-light);
    border-top: 1px solid var(--border-light);
    padding: 0.75rem 1rem; /* Compact LinkedIn style */
}

.card-title {
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--spacing-sm);
}

.card-text {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-sm);
}

/* ============================================
   FORMS
   ============================================ */
.form-control,
.form-select {
    background-color: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm); /* 6px - LinkedIn style */
    padding: 6px 12px; /* Compact LinkedIn style */
    color: var(--text-primary);
    font-size: 0.875rem; /* 14px */
    transition: all var(--transition-fast);
    width: 100%;
    line-height: 1.5;
}

.form-control:focus,
.form-select:focus {
    background-color: var(--bg-white);
    border-color: var(--accent);
    box-shadow: 0 0 0 0.2rem rgba(133, 169, 71, 0.25);
    outline: none;
    color: var(--text-primary);
}

.form-control::placeholder {
    color: var(--text-light);
}

.form-label {
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: var(--spacing-xs);
    display: block;
}

.form-text {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-top: var(--spacing-xs);
}

.form-check-input {
    border: 2px solid var(--border-medium);
    border-radius: var(--radius-sm);
}

.form-check-input:checked {
    background-color: var(--secondary);
    border-color: var(--secondary);
}

.form-check-label {
    color: var(--text-secondary);
    margin-left: var(--spacing-xs);
}

/* ============================================
   ALERTS & FLASH MESSAGES
   ============================================ */
.alert {
    border-radius: var(--radius-sm); /* 6px - LinkedIn style */
    border: none;
    padding: 0.75rem 1rem; /* Compact LinkedIn style */
    margin-bottom: var(--spacing-sm);
    box-shadow: 0 0 0 1px rgba(0,0,0,0.08), 0 2px 4px rgba(0,0,0,0.08);
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    font-size: 0.875rem; /* 14px */
}

.alert-success {
    background-color: rgba(62, 123, 39, 0.1);
    color: var(--success);
    border-left: 4px solid var(--success);
}

.alert-danger,
.alert-error {
    background-color: rgba(211, 47, 47, 0.1);
    color: var(--danger);
    border-left: 4px solid var(--danger);
}

.alert-warning {
    background-color: rgba(245, 166, 35, 0.1);
    color: var(--warning);
    border-left: 4px solid var(--warning);
}

.alert-info {
    background-color: rgba(25, 118, 210, 0.1);
    color: var(--info);
    border-left: 4px solid var(--info);
}

/* ============================================
   TABLES
   ============================================ */
.table {
    background-color: var(--bg-white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.table thead {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: var(--white);
}

.table thead th {
    border: none;
    padding: var(--spacing-md);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.875rem;
    letter-spacing: 0.5px;
}

.table tbody tr {
    border-bottom: 1px solid var(--border-light);
    transition: background-color var(--transition-fast);
}

.table tbody tr:hover {
    background-color: var(--bg-light);
}

.table tbody td {
    padding: var(--spacing-md);
    color: var(--text-secondary);
}

/* ============================================
   BADGES
   ============================================ */
.badge {
    padding: 0.35rem 0.75rem;
    border-radius: var(--radius-full);
    font-weight: 500;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.bg-success,
.badge.bg-success {
    background-color: var(--success) !important;
}

.bg-warning,
.badge.bg-warning {
    background-color: var(--warning) !important;
    color: var(--white) !important;
}

.bg-danger,
.badge.bg-danger {
    background-color: var(--danger) !important;
}

.bg-primary,
.badge.bg-primary {
    background-color: var(--primary) !important;
}

/* ============================================
   MODALS
   ============================================ */
.modal-content {
    background-color: var(--bg-white);
    border: none;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
}

.modal-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: var(--white);
    border-bottom: none;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    padding: var(--spacing-lg);
}

.modal-title {
    font-weight: 700;
    color: var(--white);
}

.modal-body {
    padding: var(--spacing-lg);
}

.modal-footer {
    border-top: 1px solid var(--border-light);
    padding: var(--spacing-md) var(--spacing-lg);
    background-color: var(--bg-light);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.btn-close {
    filter: invert(1);
}

/* ============================================
   PAGINATION
   ============================================ */
.pagination {
    gap: var(--spacing-xs);
}

.page-link {
    color: var(--secondary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm); /* 6px - LinkedIn style */
    padding: 6px 10px; /* Compact LinkedIn style */
    transition: all var(--transition-fast);
    font-size: 0.875rem; /* 14px */
}

.page-link:hover {
    background-color: var(--bg-light);
    border-color: var(--accent);
    color: var(--accent);
}

.page-item.active .page-link {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border-color: var(--secondary);
    color: var(--white);
}

/* ============================================
   FOOTER - Same background as Navbar, Minimal Design
   ============================================ */
footer.footer-navbar-match {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%) !important;
    color: var(--white);
    padding: var(--spacing-md) 0; /* Reduced height and padding */
    margin-top: var(--spacing-lg);
    box-shadow: 0 -2px 8px rgba(18, 53, 36, 0.1);
}

footer.footer-navbar-match h4,
footer.footer-navbar-match h6 {
    font-size: 0.9375rem; /* 15px - smaller */
    font-weight: 600;
    margin-bottom: var(--spacing-sm);
    color: var(--white);
}

footer.footer-navbar-match p,
footer.footer-navbar-match li {
    font-size: 0.875rem; /* 14px - smaller */
    line-height: 1.5;
}

footer.footer-navbar-match a {
    color: rgba(255, 255, 255, 0.8);
    transition: color var(--transition-fast);
}

footer.footer-navbar-match a:hover {
    color: var(--white);
}

footer.footer-navbar-match .list-unstyled li {
    margin-bottom: var(--spacing-xs);
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.text-primary {
    color: var(--primary) !important;
}

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

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

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

.bg-secondary {
    background-color: var(--secondary) !important;
}

.bg-accent {
    background-color: var(--accent) !important;
}

.bg-light-custom {
    background-color: var(--bg-light) !important;
}

.shadow-custom {
    box-shadow: var(--shadow-md) !important;
}

.rounded-custom {
    border-radius: var(--radius-lg) !important;
}

/* ============================================
   SPACING UTILITIES
   ============================================ */
.section {
    padding: var(--spacing-xxl) 0;
}

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

.section-lg {
    padding: 5rem 0;
}

/* ============================================
   HERO SECTION - Full Width with m-3 Margins
   ============================================ */
.hero-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: var(--white);
    padding: var(--spacing-xl) 0;
    position: relative;
    overflow: hidden;
    width: 100% !important;
    margin: 0.75rem 0 !important; /* m-3 = 0.75rem */
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="40" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="40" cy="80" r="1.5" fill="rgba(255,255,255,0.1)"/></svg>');
    opacity: 0.3;
    pointer-events: none;
}

.hero-section h1 {
    color: var(--white);
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: var(--spacing-md);
}

.hero-section p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.25rem;
    margin-bottom: var(--spacing-lg);
}

/* ============================================
   SERVICE CARDS
   ============================================ */
.service-card {
    background-color: var(--bg-white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    transition: all var(--transition-normal);
    height: 100%;
    text-align: center;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: 50%;
    display: flex !important;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--spacing-md);
    color: var(--white) !important;
    font-size: 2rem;
    box-shadow: var(--shadow-md);
}

.service-icon i {
    color: var(--white) !important;
    display: block !important;
}

/* ============================================
   DASHBOARD
   ============================================ */
.dashboard-card {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: var(--white);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    margin-bottom: var(--spacing-md);
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-normal);
}

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

.dashboard-card .card-title {
    color: var(--white);
        font-size: 2.5rem;
    font-weight: 900;
}

.dashboard-card .card-text {
    color: rgba(255, 255, 255, 0.9);
}

/* ============================================
   ADMIN SIDEBAR - LinkedIn style (~250px width)
   ============================================ */
.sidebar-modern {
    background: linear-gradient(180deg, var(--primary) 0%, #1a4a35 100%);
    color: var(--white);
    border-radius: var(--radius-md); /* 8px - LinkedIn style */
    padding: var(--spacing-md); /* Compact LinkedIn style */
    box-shadow: 0 0 0 1px rgba(0,0,0,0.08), 0 2px 4px rgba(0,0,0,0.08);
    position: sticky;
    top: var(--spacing-md);
    height: fit-content;
    max-height: calc(100vh - 2rem);
    overflow-y: auto;
    width: 250px;
    min-width: 250px;
    max-width: 250px;
}

.sidebar-modern .nav-link-modern {
    color: rgba(255, 255, 255, 0.8) !important;
    padding: 0.5rem 0.75rem; /* Compact LinkedIn style */
    border-radius: var(--radius-sm); /* 6px */
    margin-bottom: var(--spacing-xs);
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.875rem; /* 14px */
}

.sidebar-modern .nav-link-modern:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--white) !important;
    transform: translateX(4px);
}

.sidebar-modern .nav-link-modern.active {
    background-color: rgba(255, 255, 255, 0.15);
    color: var(--white) !important;
}

.sidebar-modern .badge {
    background-color: var(--white) !important;
    color: var(--primary) !important;
}

/* ============================================
   CAROUSEL
   ============================================ */
.carousel-item img {
    height: 60vh;
    min-height: 400px;
    object-fit: cover;
    filter: brightness(0.9);
}

.carousel-caption {
    background: rgba(18, 53, 36, 0.7);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-md);
    padding: var(--spacing-lg);
    bottom: 20%;
}

.carousel-control-prev,
.carousel-control-next {
    width: 5%;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: var(--primary);
    border-radius: 50%;
    padding: 1rem;
}

/* ============================================
   SCROLLBAR
   ============================================ */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-light);
    border-radius: var(--radius-sm);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: var(--radius-sm);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--accent) 100%);
}

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

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

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

.slide-in-right {
    animation: slideInRight 0.6s ease-out;
}

/* ============================================
   RESPONSIVE DESIGN - LinkedIn breakpoints
   ============================================ */
/* 1200px breakpoint - Desktop */
@media (max-width: 1200px) {
    .container,
    .container-fluid {
        max-width: 100%;
        padding: 0 12px;
    }
    
    .sidebar-modern {
        width: 220px;
        min-width: 220px;
        max-width: 220px;
    }
}

/* 992px breakpoint - Tablet */
@media (max-width: 992px) {
    .container,
    .container-fluid {
        padding: 0 12px;
    }
    
    .sidebar-modern {
        width: 200px;
        min-width: 200px;
        max-width: 200px;
    }
    
    .card {
        max-height: none; /* Remove height restriction on tablet */
    }
}

/* 768px breakpoint - Mobile */
@media (max-width: 768px) {
    html {
        font-size: 14px;
    }
    
    body {
        font-size: 14px;
    }
    
    h1 { font-size: 1.125rem; } /* 18px */
    h2 { font-size: 1rem; } /* 16px */
    h3 { font-size: 0.9375rem; } /* 15px */
    
    .navbar {
        height: 50px !important;
        min-height: 50px !important;
        max-height: 50px !important;
    }
    
    .navbar-brand {
        font-size: 1rem; /* 16px */
        line-height: 50px;
        height: 50px;
    }
    
    .navbar-nav .nav-link {
        height: 50px;
        font-size: 0.8125rem; /* 13px */
        padding: 0.375rem 0.5rem !important;
    }
    
    body {
        padding-top: 50px !important;
    }
    
    .hero-section h1 {
        font-size: 1.5rem; /* 24px */
    }
    
    .hero-section p {
        font-size: 0.9375rem; /* 15px */
    }
    
    .card {
        max-height: none;
        margin-bottom: var(--spacing-sm);
    }
    
    .card-body {
        padding: 0.75rem; /* 12px */
    }
    
    .card-header,
    .card-footer {
        padding: 0.625rem 0.75rem; /* 10px 12px */
    }
    
    .section {
        padding: var(--spacing-lg) 0;
    }
    
    .carousel-item img {
        height: 40vh;
        min-height: 300px;
    }
    
    .sidebar-modern {
        position: static;
        width: 100%;
        min-width: 100%;
        max-width: 100%;
        margin-bottom: var(--spacing-md);
    }
    
    .btn {
        padding: 5px 12px;
        font-size: 0.8125rem; /* 13px */
    }
}

@media (max-width: 576px) {
    .navbar-brand {
        font-size: 0.9375rem; /* 15px */
    }
    
    .btn-lg {
        padding: 6px 14px;
        font-size: 0.875rem; /* 14px */
    }
    
    .service-icon {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
}

/* ============================================
   ACCESSIBILITY
   ============================================ */
:focus {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

:focus:not(:focus-visible) {
    outline: none;
}

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary);
    color: var(--white);
    padding: var(--spacing-sm);
    text-decoration: none;
    z-index: 100;
}

.skip-link:focus {
    top: 0;
}

/* ============================================
   LANDING PAGE SECTIONS
   ============================================ */

/* Hero Section - Reduced padding and height for better visibility at 100% zoom */
.hero-section {
    padding: 2.5rem 0 !important; /* Reduced from 4rem */
    min-height: auto; /* Changed from 85vh to auto for better control */
    display: flex;
    align-items: center;
    background: linear-gradient(to bottom, var(--bg-primary) 0%, rgba(239, 227, 194, 0.3) 100%);
}

.hero-content h1 {
    font-size: 2rem; /* Reduced from 2.25rem */
    line-height: 1.2;
    margin-bottom: 1rem; /* Reduced from 1.25rem */
}

.hero-image-wrapper {
    position: relative;
}

.hero-main-image {
    border-radius: 0.75rem; /* Slightly smaller radius for better proportions */
    max-width: 100%;
    height: auto;
}

/* Hero floating stats cards - Adjusted for better alignment */
.hero-stat-card-1,
.hero-stat-card-2 {
    animation: float 3s ease-in-out infinite;
}

.hero-stat-card-2 {
    animation-delay: 1.5s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-8px); /* Reduced movement */
    }
}

/* Ensure stats cards don't overflow on smaller screens */
@media (max-width: 1400px) {
    .hero-stat-card-1 {
        right: -2% !important;
    }
    .hero-stat-card-2 {
        left: -2% !important;
    }
}

.hero-image-wrapper .card {
    transition: transform var(--transition-normal);
}

/* Features Section - Reduced padding */
.features-section {
    padding: 2.5rem 0 !important; /* Reduced from 4rem */
}

.feature-card {
    transition: all var(--transition-normal);
    border: 1px solid var(--border-light);
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-4px); /* Reduced from -6px */
    box-shadow: var(--shadow-md); /* Reduced from shadow-lg */
    border-color: var(--accent);
}

.feature-icon {
    transition: transform var(--transition-normal);
    margin-bottom: 0.75rem; /* Reduced spacing */
}

.feature-card:hover .feature-icon {
    transform: scale(1.05); /* Reduced from 1.1 */
}

/* Services Section - Reduced padding */
.services-section {
    padding: 2.5rem 0 !important; /* Reduced from 4rem */
}

.service-card {
    transition: all var(--transition-normal);
    border: 1px solid var(--border-light);
    height: 100%;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent);
}

.service-icon {
    transition: transform var(--transition-normal);
}

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

/* ============================================
   MARKETPLACE PRODUCT CARDS
   ============================================ */
.ecommerce .card {
    transition: all var(--transition-normal);
    border: 1px solid var(--border-light);
    overflow: hidden;
}

.ecommerce .card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.ecommerce .card-img-top {
    transition: transform var(--transition-normal);
}

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

/* Product Detail Page - Better Layout */
.product-detail-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.product-detail-card {
    border-radius: 8px;
    overflow: hidden;
}

/* Blog Section - Margin Top */
.blog-section {
    margin-top: 2rem;
}

/* Testimonials Section - Reduced padding */
.testimonials-section {
    padding: 2.5rem 0 !important; /* Reduced from 4rem */
}

.testimonial-card {
    transition: all var(--transition-normal);
    border: 1px solid var(--border-light);
    height: 100%;
    background: var(--bg-white);
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--secondary);
}

/* Projects Section - Reduced padding */
.projects-section {
    padding: 2.5rem 0 !important; /* Reduced from 4rem */
}

.project-card {
    transition: all var(--transition-normal);
    border: 1px solid var(--border-light);
    height: 100%;
    overflow: hidden;
}

.project-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent);
}

.project-card img {
    transition: transform var(--transition-slow);
}

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

/* Courses Section - Reduced padding */
.courses-section {
    padding: 2.5rem 0 !important; /* Reduced from 4rem */
}

.course-card {
    transition: all var(--transition-normal);
    border: 1px solid var(--border-light);
    height: 100%;
    overflow: hidden;
}

.course-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent);
}

.course-card img {
    transition: transform var(--transition-slow);
}

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

/* News Section - Reduced padding */
.news-section {
    padding: 2.5rem 0 !important; /* Reduced from 4rem */
}

.news-card {
    transition: all var(--transition-normal);
    border: 1px solid var(--border-light);
    height: 100%;
    overflow: hidden;
}

.news-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent);
}

.news-card img {
    transition: transform var(--transition-slow);
}

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

.news-card a {
    transition: color var(--transition-fast);
}

.news-card a:hover {
    color: var(--accent) !important;
}

/* Partners Section - Elegant Corporate Grid */
.partners-section {
    padding: 2.5rem 0 !important;
    background: var(--bg-light);
}

.partner-card {
    transition: all var(--transition-normal);
    border: 1px solid var(--border-light);
    background: var(--bg-white);
    cursor: pointer;
    border-radius: var(--radius-md);
    overflow: hidden;
    height: 100px; /* Uniform height */
    display: flex;
    align-items: center;
    justify-content: center;
}

.partner-card:hover {
    transform: scale(1.05);
    box-shadow: 0 0 0 1px rgba(0,0,0,0.08), 0 4px 12px rgba(0,0,0,0.12);
    border-color: var(--accent);
}

.partner-logo {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* CTA Section - Reduced padding */
.cta-section {
    padding: 2.5rem 0 !important; /* Reduced from 4rem */
}

/* Background Light Custom */
.bg-light-custom {
    background-color: var(--bg-light);
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(133, 169, 71, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 90% 80%, rgba(62, 123, 39, 0.05) 0%, transparent 50%);
}

/* Section Spacing Adjustments - Reduced for better proportions */
section {
    margin-bottom: 0;
}

section.py-5 {
    padding-top: 2.5rem !important; /* Reduced from 3rem */
    padding-bottom: 2.5rem !important; /* Reduced from 3rem */
}

section.py-4 {
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
}

/* Responsive Adjustments for Landing Page - Reduced padding for mobile */
@media (max-width: 992px) {
    .hero-section {
        min-height: auto;
        padding: 2rem 0 !important; /* Reduced */
    }
    
    .hero-image-wrapper .hero-main-image {
        max-height: 350px !important; /* Changed from fixed height */
        margin-top: 1.5rem;
    }
    
    .hero-stat-card-1,
    .hero-stat-card-2 {
        display: none !important; /* Hide on tablet */
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 0.4rem 0 !important;
        min-height: 56px;
    }
    
    .navbar-brand {
        font-size: 1.25rem;
    }
    
    .hero-section {
        padding: 1.5rem 0 !important;
        min-height: auto;
    }
    
    .hero-content h1 {
        font-size: 1.75rem; /* Reduced */
        margin-bottom: 0.75rem;
    }
    
    .hero-content p {
        font-size: 0.95rem; /* Reduced */
        margin-bottom: 1rem;
    }
    
    .hero-image-wrapper .hero-main-image {
        max-height: 280px !important;
        margin-top: 1rem;
    }
    
    section.py-5,
    section.py-4 {
        padding-top: 1.5rem !important;
        padding-bottom: 1.5rem !important;
    }
    
    .partner-card {
        margin-bottom: 0.75rem;
    }
    
    .features-section,
    .services-section,
    .testimonials-section,
    .projects-section,
    .courses-section,
    .news-section,
    .partners-section,
    .cta-section {
        padding: 2rem 0 !important;
    }
}

@media (max-width: 576px) {
    .hero-content h1 {
        font-size: 1.75rem;
    }
    
    .hero-content .lead {
        font-size: 1rem;
    }
    
    .btn-lg {
        padding: 0.75rem 1.5rem;
        font-size: 0.95rem;
    }
}

/* Smooth Transitions for All Interactive Elements */
.feature-card,
.service-card,
.testimonial-card,
.project-card,
.course-card,
.news-card,
.partner-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
}

/* Headings & section spacing */
.section { padding: 2rem 0; } /* Reduced for LinkedIn compact style */
.section-sm { padding: 1.5rem 0; }
.section-lg { padding: 2.5rem 0; }

/* Component refinements - LinkedIn compact style */
.card { 
    border-radius: 8px !important; /* LinkedIn style */
    box-shadow: 0 0 0 1px rgba(0,0,0,0.08), 0 2px 4px rgba(0,0,0,0.08) !important;
    /* 30% smaller - reduce padding and margins */
    margin-bottom: 0.75rem !important;
}

.card-body {
    padding: 0.75rem !important; /* 12px - compact */
}

.card-header {
    padding: 0.625rem 0.75rem !important; /* Compact */
    font-size: 0.875rem !important;
}

.card-footer {
    padding: 0.625rem 0.75rem !important; /* Compact */
}

.btn { 
    border-radius: 6px !important; 
    font-weight: 500; 
    font-size: 0.875rem !important; /* 14px */
    padding: 6px 14px !important; /* Compact */
} 

.btn-lg {
    padding: 8px 18px !important;
    font-size: 0.9375rem !important; /* 15px */
}

.btn-sm {
    padding: 4px 10px !important;
    font-size: 0.8125rem !important; /* 13px */
}

.form-select { 
    border-radius: 6px !important; 
    padding: 6px 12px !important;
    font-size: 0.875rem !important;
}

.table { 
    border-color: rgba(0,0,0,0.05); 
    font-size: 0.875rem !important;
}

.table tbody tr:hover { 
    background-color: rgba(25,135,84,0.05); 
}

.badge { 
    border-radius: 999px; 
    padding: 0.35rem 0.6rem; 
    font-weight: 600; 
    font-size: 0.75rem !important;
}

/* Ensure all images in cards have proper aspect ratio */
.card img {
    aspect-ratio: 4 / 3;
    object-fit: cover;
    width: 100%;
}

/* Remove scroll animations - navbar stays solid */
.navbar-fixed-top {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%) !important;
}
