:root {
    --primary-color: #4f46e5;
    --secondary-color: #06b6d4;
    --accent-color: #f59e0b;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --dark-color: #1f2937;
    --light-bg: #f8fafc;
    --white: #ffffff;
    --gray-100: #f1f5f9;
    --gray-600: #475569;
    --gray-800: #1e293b;
  }

  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }

  body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, var(--light-bg) 0%, var(--gray-100) 100%);
    line-height: 1.6;
    color: var(--gray-800);
  }

  /* Navbar Styles */
  .navbar {
    background: var(--white);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
  }

  .navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary-color) !important;
  }

  .navbar-nav .nav-link {
    font-weight: 500;
    color: var(--gray-600) !important;
    margin: 0 0.5rem;
    transition: color 0.3s ease;
  }

  .navbar-nav .nav-link:hover {
    color: var(--primary-color) !important;
  }

  /* Hero Section */
  .hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--white);
    padding: 4rem 0;
    text-align: center;
  }

  .hero-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
  }

  .hero-subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 2rem;
  }

  .feature-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    margin: 0.25rem;
    font-size: 0.9rem;
  }

  /* Main Tool Section */
  .tool-section {
    padding: 4rem 0;
  }

  .main-card {
    background: var(--white);
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    padding: 2.5rem;
    margin-bottom: 3rem;
  }

  .section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark-color);
    text-align: center;
    margin-bottom: 2rem;
  }

  .upload-area {
    border: 3px dashed var(--primary-color);
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    background: rgba(79, 70, 229, 0.05);
    margin-bottom: 2rem;
    transition: all 0.3s ease;
  }

  .upload-area:hover {
    border-color: var(--secondary-color);
    background: rgba(6, 182, 212, 0.05);
  }

  .upload-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
  }

  .image-area {
    background: var(--gray-100);
    border-radius: 15px;
    padding: 1.5rem;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .image-area img {
    max-width: 100%;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  }

  .controls-panel {
    background: var(--gray-100);
    border-radius: 15px;
    padding: 1.5rem;
  }

  .crop-details {
    background: var(--white);
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 1.5rem;
  }

  .crop-details h5 {
    color: var(--dark-color);
    font-weight: 600;
    margin-bottom: 1rem;
  }

  .detail-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
  }

  .detail-value {
    font-weight: 600;
    color: var(--primary-color);
  }

  .btn-custom {
    width: 100%;
    margin-bottom: 0.75rem;
    border-radius: 10px;
    padding: 0.75rem;
    font-weight: 600;
    border: none;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
  }

  .btn-primary-custom {
    background: var(--primary-color);
    color: var(--white);
  }

  .btn-primary-custom:hover {
    background: #3730a3;
    transform: translateY(-2px);
  }

  .btn-success-custom {
    background: var(--success-color);
    color: var(--white);
  }

  .btn-success-custom:hover {
    background: #059669;
    transform: translateY(-2px);
  }

  .btn-warning-custom {
    background: var(--accent-color);
    color: var(--white);
  }

  .btn-warning-custom:hover {
    background: #d97706;
    transform: translateY(-2px);
  }

  .btn-danger-custom {
    background: var(--danger-color);
    color: var(--white);
  }

  .btn-danger-custom:hover {
    background: #dc2626;
    transform: translateY(-2px);
  }

  .btn-outline-custom {
    background: var(--white);
    border: 2px solid;
    font-weight: 600;
  }

  /* How It Works Section */
  .how-it-works {
    background: var(--white);
    padding: 4rem 0;
  }

  .step-card {
    text-align: center;
    padding: 2rem;
    border-radius: 15px;
    background: var(--gray-100);
    height: 100%;
    transition: transform 0.3s ease;
  }

  .step-card:hover {
    transform: translateY(-5px);
  }

  .step-number {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1rem;
  }

  .step-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 1rem;
  }

  /* Footer */
  .footer {
    background: var(--dark-color);
    color: var(--white);
    padding: 3rem 0 1rem;
  }

  .footer-section h5 {
    color: var(--white);
    font-weight: 600;
    margin-bottom: 1rem;
  }

  .footer-link {
    color: #94a3b8;
    text-decoration: none;
    display: block;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
  }

  .footer-link:hover {
    color: var(--secondary-color);
  }

  .social-links a {
    color: #94a3b8;
    font-size: 1.5rem;
    margin-right: 1rem;
    transition: color 0.3s ease;
  }

  .social-links a:hover {
    color: var(--secondary-color);
  }

  .footer-bottom {
    border-top: 1px solid #374151;
    padding-top: 1rem;
    margin-top: 2rem;
    text-align: center;
    color: #94a3b8;
  }

  /* Responsive Design */
  @media (max-width: 768px) {
    .hero-title {
      font-size: 2rem;
    }

    .hero-subtitle {
      font-size: 1rem;
    }

    .main-card {
      padding: 1.5rem;
    }

    .upload-area {
      padding: 1rem;
    }
  }