/* =============================================================================
   AI Plant Disease Detection App - Main CSS
   Bootstrap 5 + Custom Styling
   ============================================================================= */

/* Bootstrap 5 CDN Import */
@import url('https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css');

/* FontAwesome CDN Import */
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css');

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

/* =============================================================================
   CSS Variables - Color Palette
   ============================================================================= */
:root {
  /* Primary Colors */
  --primary-green: #4CAF50;
  --primary-blue: #2196F3;
  --primary-orange: #FF9800;
  --primary-teal: #009688;
  --primary-purple: #9C27B0;
  
  /* Light Shades */
  --light-green: #A5D6A7;
  --light-blue: #90CAF9;
  --light-orange: #FFB74D;
  --light-teal: #4DB6AC;
  --light-purple: #CE93D8;
  
  /* Dark Shades */
  --dark-green: #2E7D32;
  --dark-blue: #1565C0;
  --dark-orange: #F57C00;
  --dark-teal: #00695C;
  --dark-purple: #7B1FA2;
  
  /* Neutral Colors */
  --white: #FFFFFF;
  --black: #000000;
  --gray-100: #F8F9FA;
  --gray-200: #E9ECEF;
  --gray-300: #DEE2E6;
  --gray-400: #CED4DA;
  --gray-500: #ADB5BD;
  --gray-600: #6C757D;
  --gray-700: #495057;
  --gray-800: #343A40;
  --gray-900: #212529;
  
  /* Gradients */
  --gradient-primary: linear-gradient(135deg, var(--primary-green), var(--primary-teal));
  --gradient-secondary: linear-gradient(135deg, var(--primary-blue), var(--primary-purple));
  --gradient-accent: linear-gradient(135deg, var(--primary-orange), var(--primary-green));
  
  /* Typography */
  --font-family: 'Poppins', sans-serif;
  --font-size-base: 1rem;
  --line-height-base: 1.6;
  
  /* Spacing */
  --section-padding: 80px 0;
  --container-max-width: 1200px;
  
  /* Animations */
  --transition-base: all 0.3s ease;
  --transition-slow: all 0.5s ease;
}

/* =============================================================================
   Base Styles
   ============================================================================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  line-height: var(--line-height-base);
  color: var(--gray-700);
  background-color: var(--white);
  overflow-x: hidden;
}

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* =============================================================================
   Typography
   ============================================================================= */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.2;
  color: var(--gray-800);
  margin-bottom: 1rem;
}

h1 {
  font-size: 2.25rem;
}

h2 {
  font-size: 1.875rem;
}

h3 {
  font-size: 1.5rem;
}

h4 {
  font-size: 1.25rem;
}

h5 {
  font-size: 1.125rem;
}

h6 {
  font-size: 1rem;
}

p {
  margin-bottom: 1rem;
  color: var(--gray-600);
}

/* =============================================================================
   Header & Navigation
   ============================================================================= */
.navbar {
  background: var(--white);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 1rem 0;
  /* transition: var(--transition-base); DISABLED */
}

.navbar-brand {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-green) !important;
  text-decoration: none;
}

.navbar-nav .nav-link {
  color: var(--gray-700) !important;
  font-weight: 500;
  padding: 0.5rem 1rem !important;
  /* transition: var(--transition-base); DISABLED */
}

/* =============================================================================
   Hero Section
   ============================================================================= */
.hero-section {
  min-height: 100vh;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('../images/hero-bg.webp') center/cover;
  opacity: 0.1;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 1.5rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
  font-size: 1.125rem;
  color: var(--white);
  margin-bottom: 2rem;
  opacity: 0.9;
}

.hero-image {
  text-align: center;
}

.hero-image img {
  max-width: 100%;
  height: auto;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* =============================================================================
   Section Styles
   ============================================================================= */
.section {
  padding: var(--section-padding);
}

.section-title {
  font-size: 2.125rem;
  font-weight: 700;
  color: var(--gray-800);
  text-align: center;
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--primary-green);
  text-align: center;
  margin-bottom: 2rem;
}

.section-description {
  font-size: 1.1rem;
  color: var(--gray-600);
  text-align: center;
  margin-bottom: 3rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* =============================================================================
   About Section
   ============================================================================= */
.about-section {
  background: var(--gray-100);
}

.feature-card {
  background: var(--white);
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  height: 100%;
  /* transition: var(--transition-base); DISABLED */
}

.feature-card:hover {
  /* transform: translateY(-5px); DISABLED */
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.feature-icon {
  font-size: 3rem;
  color: var(--primary-green);
  margin-bottom: 1rem;
}

.feature-name {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--gray-800);
  margin-bottom: 1rem;
}

.feature-desc {
  color: var(--gray-600);
  line-height: 1.6;
}

/* =============================================================================
   Services Section
   ============================================================================= */
.services-section {
  background: var(--white);
}

.service-card {
  background: var(--white);
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  /* transition: var(--transition-base); DISABLED */
  height: 100%;
}

.service-card:hover {
  /* transform: translateY(-10px); DISABLED */
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.service-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.service-content {
  padding: 1.5rem;
}

.service-name {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--gray-800);
  margin-bottom: 1rem;
}

.service-desc {
  color: var(--gray-600);
  margin-bottom: 1.5rem;
}

.service-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-green);
  margin-bottom: 1rem;
}

.service-features {
  list-style: none;
  padding: 0;
}

.service-features li {
  padding: 0.25rem 0;
  color: var(--gray-600);
}

.service-features li i {
  color: var(--primary-green);
  margin-right: 0.5rem;
}

/* =============================================================================
   Team Section
   ============================================================================= */
.team-section {
  background: var(--gray-100);
}

.team-card {
  background: var(--white);
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-align: center;
  /* transition: var(--transition-base); DISABLED */
}

.team-card:hover {
  /* transform: translateY(-5px); DISABLED */
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.team-photo {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.team-info {
  padding: 1.5rem;
}

.team-name {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--gray-800);
  margin-bottom: 0.5rem;
}

.team-role {
  color: var(--primary-green);
  font-weight: 500;
}

/* =============================================================================
   Reviews Section
   ============================================================================= */
.reviews-section {
  background: var(--white);
}

.review-card {
  background: var(--gray-100);
  border-radius: 15px;
  padding: 2rem;
  text-align: center;
  height: 100%;
  /* transition: var(--transition-base); DISABLED */
}

.review-card:hover {
  /* transform: translateY(-5px); DISABLED */
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.review-text {
  font-style: italic;
  color: var(--gray-600);
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

.review-author {
  font-weight: 600;
  color: var(--gray-800);
}

.review-stars {
  color: var(--primary-orange);
  margin-bottom: 1rem;
}

/* =============================================================================
   FAQ Section
   ============================================================================= */
.faq-section {
  background: var(--gray-100);
}

.faq-item {
  background: var(--white);
  border-radius: 10px;
  margin-bottom: 1rem;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.faq-question {
  padding: 1.5rem;
  font-weight: 600;
  color: var(--gray-800);
  cursor: pointer;
  border-bottom: 1px solid var(--gray-200);
}

.faq-answer {
  padding: 1.5rem;
  color: var(--gray-600);
  line-height: 1.6;
}

/* =============================================================================
   Contact Section
   ============================================================================= */
.contact-section {
  background: var(--white);
}

.contact-form {
  background: var(--gray-100);
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.form-control {
  border: 2px solid var(--gray-300);
  border-radius: 10px;
  padding: 0.75rem;
  font-size: 1rem;
  transition: var(--transition-base);
}

.form-control:focus {
  border-color: var(--primary-green);
  box-shadow: 0 0 0 0.2rem rgba(76, 175, 80, 0.25);
}

.btn-primary {
  background: var(--gradient-primary);
  border: none;
  padding: 0.75rem 2rem;
  font-weight: 600;
  border-radius: 10px;
  transition: var(--transition-base);
}

.btn-primary:hover {
  background: var(--gradient-accent);
  transform: translateY(-2px);
}

/* =============================================================================
   Footer
   ============================================================================= */
.footer {
  background: var(--gray-800);
  color: var(--white);
  padding: 3rem 0 1rem;
}

.footer h5 {
  color: var(--white);
  margin-bottom: 1rem;
}

.footer p,
.footer a {
  color: var(--gray-300);
  text-decoration: none;
  transition: var(--transition-base);
}

.footer a:hover {
  color: var(--primary-green);
}

.footer-bottom {
  border-top: 1px solid var(--gray-700);
  padding-top: 1rem;
  margin-top: 2rem;
}

/* =============================================================================
   Utilities
   ============================================================================= */
.text-gradient {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.bg-gradient {
  background: var(--gradient-primary);
}

.shadow-custom {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* =============================================================================
   Animations - DISABLED
   ============================================================================= */
/*@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.animate-fade-in {
  animation: fadeIn 0.6s ease-out;
}

.animate-fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}*/

/* =============================================================================
   Gallery Section
   ============================================================================= */
.gallery-section {
  background: var(--white);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  /* transition: var(--transition-base); DISABLED */
}

.gallery-item:hover {
  /* transform: scale(1.05); DISABLED */
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.gallery-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  /* transition: var(--transition-base); DISABLED */
}

/* =============================================================================
   Process Section
   ============================================================================= */
.process-section {
  background: var(--gray-100);
}

.process-step {
  text-align: center;
  position: relative;
  padding: 2rem 1rem;
}

.process-number {
  width: 60px;
  height: 60px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  margin: 0 auto 1rem;
}

.process-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--gray-800);
  margin-bottom: 1rem;
}

.process-desc {
  color: var(--gray-600);
  line-height: 1.6;
}

/* =============================================================================
   Breadcrumb Navigation
   ============================================================================= */
.breadcrumb {
  background: transparent;
  padding: 1rem 0;
  margin-bottom: 0;
  border-radius: 0;
}

.breadcrumb-item {
  display: flex;
  align-items: center;
}

.breadcrumb-item img {
  border-radius: 3px;
  /* transition: var(--transition-base); DISABLED */
}

.breadcrumb-item img:hover {
  /* transform: scale(1.1); DISABLED */
}

/* =============================================================================
   Nanobar Progress
   ============================================================================= */
#nanobar-target {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  z-index: 9999;
  pointer-events: none;
}

/* =============================================================================
   Image Resolution Specifications
   ============================================================================= */
.hero-image img {
  width: 100%;
  max-width: 600px;
  height: auto;
  min-height: 400px;
  object-fit: cover;
}

.service-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 10px 10px 0 0;
}

.team-photo {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 15px 15px 0 0;
}

.gallery-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 10px;
}

/* Hero background image */
.hero-section::before {
  background-image: url('../images/hero-bg.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Lazy loading placeholder - DISABLED */
.lozad:not(.loaded) {
  background: var(--gray-200);
  /* opacity: 0; DISABLED */
}

.lozad.loaded {
  opacity: 1;
  /* transition: opacity 0.3s ease; DISABLED */
}

/* =============================================================================
   Responsive Design
   ============================================================================= */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .hero-section {
    text-align: center;
  }
  
  .navbar-brand {
    font-size: 1.25rem;
  }
  
  .hero-image img {
    min-height: 300px;
  }
  
  .service-image,
  .team-photo,
  .gallery-image {
    height: 200px;
  }
}

/* =============================================================================
   Additional CSS Enhancements
   ============================================================================= */
.search-form {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  background: var(--white);
  border-radius: 5px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  padding: 1rem;
  min-width: 300px;
}

.search-form.active {
  display: block;
}

.search-form input[type="search"] {
  width: 100%;
  border: 1px solid var(--gray-300);
  border-radius: 5px;
  padding: 0.5rem;
  font-size: 1rem;
}

.contact-info {
  padding: 2rem 0;
}

.contact-info h4 {
  margin-bottom: 1.5rem;
  color: var(--gray-800);
}

.contact-info p {
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.contact-info i {
  color: var(--primary-green);
  width: 20px;
}

/* Loading states */
.loading {
  opacity: 0.6;
  pointer-events: none;
}

.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 20px;
  height: 20px;
  border: 2px solid var(--primary-green);
  border-top: 2px solid transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

/* Enhanced button styles */
.btn {
  border-radius: 8px;
  font-weight: 500;
  text-transform: none;
  /* transition: all 0.3s ease; DISABLED */
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  /* transition: width 0.3s ease, height 0.3s ease; DISABLED */
}

.btn:hover::before {
  /* width: 300px; DISABLED */
  /* height: 300px; DISABLED */
}

/* Focus states for accessibility */
.btn:focus,
.form-control:focus,
.nav-link:focus {
  outline: 2px solid var(--primary-green);
  outline-offset: 2px;
}

/* Print styles */
@media print {
  .navbar,
  .footer,
  .back-to-top {
    display: none !important;
  }
  
  .section {
    page-break-inside: avoid;
  }
  
  .hero-section {
    height: auto !important;
    min-height: auto !important;
  }
} 


/* Team Social Links - Colorful Style */
.team-social-links {
    margin-top: 22px;
    padding: 16px 0;
}

.social-icons-grid {
    display: flex;
    gap: 14px;
    justify-content: center;
    align-items: center;
}

.social-link {
    display: inline-flex;
    width: 48px;
    height: 48px;
    border-radius: 15px;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    font-size: 19px;
    /* transition: all 0.4s ease; DISABLED */
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    position: relative;
    overflow: hidden;
}

.social-link::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255,255,255,0.3);
    border-radius: 50%;
    /* transition: all 0.4s ease; DISABLED */
    transform: translate(-50%, -50%);
}

.social-link:hover::before {
    /* width: 100px; DISABLED */
    /* height: 100px; DISABLED */
}

.social-link:hover {
    /* transform: translateY(-4px) scale(1.05); DISABLED */
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    color: white;
}

.facebook-link {
    background: linear-gradient(45deg, #1877f2, #42a5f5, #64b5f6);
}

.linkedin-link {
    background: linear-gradient(45deg, #0a66c2, #2196f3, #42a5f5);
}

.x-link {
    background: linear-gradient(45deg, #000000, #424242, #666666);
    position: relative;
}

.x-link::after {
    content: '✕';
    font-weight: 900;
    font-size: 20px;
    z-index: 2;
    position: relative;
}

.x-link i {
    display: none;
}

@media (max-width: 768px) {
    .social-icons-grid {
        gap: 10px;
    }
    
    .social-link {
        width: 42px;
        height: 42px;
        font-size: 16px;
    }
}
