/* Modern Landing Page CSS - Cleaned Version (Hero Section Removed) */

/* CSS Variables */
:root {
  --primary-color: #064e3b;
  --primary-light: #059669;
  --accent-color: #f59e0b;
  --accent-light: #fbbf24;
  --text-primary: #1f2937;
  --text-secondary: #6b7280;
  --text-light: #9ca3af;
  --bg-primary: #ffffff;
  --bg-secondary: #f9fafb;
  --bg-dark: #111827;
  --border-color: #e5e7eb;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1);
  --gradient-primary: linear-gradient(135deg, #064e3b 0%, #059669 100%);
  --gradient-accent: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
  --border-radius: 12px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  overflow-x: hidden;
}

.user-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}


.logo-image {
  height: 80px;
  width: auto;
  object-fit: contain;
  display: block;
}

.logo-image-link {
  display: flex;
  align-items: center;
  margin-right: 20px;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
  height: 95px;
  gap: 1rem;
}


.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
}

.user-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Login Button */
.login-btn {
  background: transparent;
  border: 2px solid var(--primary-light);
  color: var(--primary-light);
  padding: 8px 20px;
  border-radius: 25px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

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

/* Profile Icon */
/* Profile Icon & Dropdown Styles */
.profile-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  display: none;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.3s ease;
  background-size: cover;
  background-position: center;
}

.profile-icon:hover {
  border-color: #6366f1;
  transform: scale(1.05);
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.3);
}

/* User Dropdown */
.user-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  min-width: 280px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 1000;
}

.user-dropdown.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-header {
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.dropdown-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}

.user-info {
  flex: 1;
}

.user-name {
  font-weight: 600;
  color: #1a1a1a;
  font-size: 16px;
  margin-bottom: 4px;
}

.user-email {
  color: #666;
  font-size: 14px;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  color: #333;
  text-decoration: none;
  transition: all 0.2s ease;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
}

.dropdown-item:hover {
  background: rgba(99, 102, 241, 0.1);
  color: #6366f1;
}

.dropdown-item i {
  width: 16px;
  font-size: 14px;
}

.dropdown-item.logout {
  color: #ef4444;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.dropdown-item.logout:hover {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
}

.dropdown-divider {
  height: 1px;
  background: rgba(0, 0, 0, 0.1);
  margin: 8px 0;
}

/* Profile Modal */
.profile-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  animation: fadeIn 0.3s ease forwards;
}

.profile-modal {
  background: white;
  border-radius: 24px;
  width: 90%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(0.9);
  animation: scaleIn 0.3s ease 0.1s forwards;
}

.profile-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px;
  border-bottom: 1px solid #e5e7eb;
}

.profile-modal-header h2 {
  margin: 0;
  font-size: 24px;
  font-weight: 600;
  color: #1a1a1a;
}

.modal-close {
  background: none;
  border: none;
  font-size: 24px;
  color: #666;
  cursor: pointer;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.modal-close:hover {
  background: #f3f4f6;
  color: #333;
}

.profile-modal-content {
  padding: 24px;
}

.profile-avatar-section {
  text-align: center;
  margin-bottom: 32px;
}

.profile-avatar-large {
  position: relative;
  display: inline-block;
}

.profile-avatar-large img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #e5e7eb;
}

.avatar-edit-btn {
  position: absolute;
  bottom: 8px;
  right: 8px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #6366f1;
  color: white;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.avatar-edit-btn:hover {
  background: #5856eb;
  transform: scale(1.1);
}

.profile-info-section {
  space-y: 24px;
}

.profile-field {
  margin-bottom: 24px;
}

.profile-field label {
  display: block;
  font-weight: 600;
  color: #374151;
  margin-bottom: 8px;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.profile-value {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  background: #f9fafb;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
}

.profile-value span {
  color: #1a1a1a;
  font-size: 16px;
}

.edit-btn, .upgrade-btn {
  background: none;
  border: 1px solid #d1d5db;
  color: #6b7280;
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: all 0.2s ease;
}

.edit-btn:hover {
  background: #6366f1;
  color: white;
  border-color: #6366f1;
}

.upgrade-btn {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: white;
  border: none;
}

.upgrade-btn:hover {
  background: linear-gradient(135deg, #d97706, #b45309);
  transform: translateY(-1px);
}

.verified-badge {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #10b981;
  font-size: 12px;
  font-weight: 500;
}

.subscription-badge {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.subscription-badge.free {
  background: #e5e7eb;
  color: #6b7280;
}

.subscription-badge.premium {
  background: linear-gradient(135deg, #8b5cf6, #7c3aed);
  color: white;
}

.subscription-badge.pro {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: white;
}

/* Edit Field Modal */
.edit-field-modal {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 24px;
}

.edit-field-content {
  background: white;
  padding: 24px;
  border-radius: 16px;
  width: 90%;
  max-width: 400px;
}

.edit-field-content h3 {
  margin: 0 0 16px 0;
  font-size: 18px;
  font-weight: 600;
  color: #1a1a1a;
}

.edit-input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 16px;
  transition: all 0.2s ease;
}

.edit-input:focus {
  outline: none;
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.edit-actions {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.btn-cancel, .btn-save {
  flex: 1;
  padding: 12px 24px;
  border-radius: 8px;
  border: none;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-cancel {
  background: #f3f4f6;
  color: #374151;
}

.btn-cancel:hover {
  background: #e5e7eb;
}

.btn-save {
  background: #6366f1;
  color: white;
}

.btn-save:hover {
  background: #5856eb;
}

/* Password Change Modal */
.password-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  animation: fadeIn 0.3s ease forwards;
}

.password-modal {
  background: white;
  border-radius: 24px;
  width: 90%;
  max-width: 500px;
  transform: scale(0.9);
  animation: scaleIn 0.3s ease 0.1s forwards;
}

.password-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px;
  border-bottom: 1px solid #e5e7eb;
}

.password-modal-header h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  color: #1a1a1a;
}

.password-modal-content {
  padding: 24px;
}

.password-actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
  .user-dropdown {
    background: rgba(17, 24, 39, 0.95);
    border-color: rgba(255, 255, 255, 0.1);
  }

  .user-name {
    color: #f9fafb;
  }

  .user-email {
    color: #9ca3af;
  }

  .dropdown-item {
    color: #e5e7eb;
  }

  .dropdown-item:hover {
    background: rgba(99, 102, 241, 0.2);
    color: #a5b4fc;
  }

  .profile-modal {
    background: #1f2937;
  }

  .profile-modal-header {
    border-bottom-color: #374151;
  }

  .profile-modal-header h2 {
    color: #f9fafb;
  }

  .modal-close {
    color: #9ca3af;
  }

  .modal-close:hover {
    background: #374151;
    color: #e5e7eb;
  }

  .profile-field label {
    color: #d1d5db;
  }

  .profile-value {
    background: #374151;
    border-color: #4b5563;
  }

  .profile-value span {
    color: #f9fafb;
  }

  .edit-field-content {
    background: #1f2937;
  }

  .edit-field-content h3 {
    color: #f9fafb;
  }

  .edit-input {
    background: #374151;
    border-color: #4b5563;
    color: #f9fafb;
  }

  .password-modal {
    background: #1f2937;
  }
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}


.tech-loader {
  position: relative;
  width: 120px;
  height: 120px;
  margin: 2rem auto;
}

.loader-ring {
  position: absolute;
  border-radius: 50%;
  border: 2px solid rgba(0, 212, 255, 0.1);
}

.ring-outer {
  width: 120px;
  height: 120px;
  top: 0;
  left: 0;
  border-top: 2px solid #00d4ff;
  animation: rotate 2s linear infinite;
}

.ring-middle {
  width: 90px;
  height: 90px;
  top: 15px;
  left: 15px;
  border-right: 2px solid #00ff88;
  animation: rotate 1.5s linear infinite reverse;
}

.ring-inner {
  width: 60px;
  height: 60px;
  top: 30px;
  left: 30px;
  border-bottom: 2px solid #ff6b35;
  animation: rotate 1s linear infinite;
}

.loader-percentage {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 1.2rem;
  font-weight: 700;
  color: #00d4ff;
  text-shadow: 0 0 10px #00d4ff;
}

.loading-status {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  font-family: 'Courier New', monospace;
}

@keyframes rotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 10, 10, 0.9);
  backdrop-filter: blur(4px);
  background-repeat: no-repeat;
  background-size: cover;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: var(--transition);
}

@keyframes pulseGradient {
  0%, 100% {
    background-position: center;
    transform: scale(1);
  }
  50% {
    background-position: 75% 75%;
    transform: scale(1.03);
  }
}

.loading-content {
  text-align: center;
  color: white;
}

.loading-logo {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 2rem;
}

.loading-logo .logo-main {
  color: white;
}

.loading-logo .logo-accent {
  color: var(--accent-color);
}

.loading-spinner {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 1rem;
}

.spinner-ring {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent-color);
  animation: loading-bounce 1.4s ease-in-out infinite both;
}

.spinner-ring:nth-child(2) {
  animation-delay: 0.16s;
}

.spinner-ring:nth-child(3) {
  animation-delay: 0.32s;
}

@keyframes loading-bounce {
  0%, 80%, 100% {
    transform: scale(0.8);
    opacity: 0.5;
  }
  40% {
    transform: scale(1);
    opacity: 1;
  }
}

.loading-text {
  font-size: 1.1rem;
  opacity: 0.9;
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(229, 231, 235, 0.5);
  z-index: 1000;
  transition: var(--transition);
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow-md);
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.logo-main {
  color: var(--primary-color);
}

.logo-accent {
  color: var(--accent-color);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-link {
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 500;
  position: relative;
  transition: var(--transition);
}

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

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-color);
  transition: width 0.3s ease;
}

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

.nav-cta {
  background: var(--gradient-primary);
  color: white !important;
  padding: 0.5rem 1.5rem;
  border-radius: var(--border-radius);
  font-weight: 600;
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.nav-cta::after {
  display: none;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 4px;
}

.menu-toggle span {
  width: 25px;
  height: 3px;
  background: var(--text-primary);
  transition: var(--transition);
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* General Button Styles */
.btn-primary, .btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  border-radius: var(--border-radius);
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

.btn-primary {
  background: var(--gradient-accent);
  color: var(--text-primary);
  box-shadow: var(--shadow-lg);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-xl);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

/* Section Styles */
.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-badge {
  display: inline-block;
  background: var(--gradient-primary);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* Innovations Section */
.innovations-section {
  padding: 6rem 0;
  background: var(--bg-secondary);
}

.innovations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.innovation-card {
  background: white;
  padding: 2.5rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  border: 1px solid var(--border-color);
}

.innovation-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary-light);
}

.card-icon {
  width: 80px;
  height: 80px;
  background: var(--gradient-primary);
  border-radius: var(--border-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: white;
}

.innovation-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.innovation-card p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.card-features {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.card-features span {
  background: var(--bg-secondary);
  color: var(--text-secondary);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 500;
}

/* Featured Projects Section */
.featured-projects {
  padding: 6rem 0;
  background: white;
}

.projects-showcase {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.project-card {
  background: white;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  border: 1px solid var(--border-color);
}

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

.project-card.featured {
  grid-column: span 2;
}

.project-image {
  position: relative;
  height: 200px;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.project-icon {
  font-size: 4rem;
  opacity: 0.9;
}

.project-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
}

.project-card:hover .project-overlay {
  opacity: 1;
}

.btn-project {
  background: var(--gradient-accent);
  color: var(--text-primary);
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
}

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

.project-content {
  padding: 1.5rem;
}

.project-category {
  color: var(--primary-color);
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.project-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.project-card p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
  line-height: 1.6;
}

.project-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.project-price {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-color);
}

.project-category-tag {
  background: var(--bg-secondary);
  color: var(--text-secondary);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 500;
}

.project-downloads {
  color: var(--text-light);
  font-size: 0.875rem;
}

.projects-cta {
  text-align: center;
}

.btn-projects-all {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--gradient-primary);
  color: white;
  padding: 1rem 2rem;
  border-radius: var(--border-radius);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
  box-shadow: var(--shadow-lg);
}

.btn-projects-all:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-xl);
}

/* Why Choose Us Section */
.why-choose-us {
  padding: 6rem 0;
  background: var(--bg-secondary);
}

.why-choose-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.why-choose-text h2 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
}

.why-choose-text p {
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  line-height: 1.7;
}

.benefits-list {
  margin-bottom: 2rem;
}

.benefit-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.benefit-icon {
  width: 24px;
  height: 24px;
  background: var(--gradient-primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 0.875rem;
  flex-shrink: 0;
}

.benefit-item h4 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
  color: var(--text-primary);
}

.benefit-item p {
  color: var(--text-secondary);
  margin: 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.stat-card {
  background: white;
  padding: 2rem;
  border-radius: var(--border-radius);
  text-align: center;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}

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

.stat-icon {
  font-size: 2.2rem;
  margin-bottom: 1rem;
}

.stat-card .stat-number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.stat-card .stat-label {
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
}

/* Services Section */
.services-section {
  padding: 6rem 0;
  background: white;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.service-card {
  background: white;
  padding: 2.5rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  border: 1px solid var(--border-color);
}

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

.service-icon {
  width: 80px;
  height: 80px;
  background: var(--gradient-primary);
  border-radius: var(--border-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: white;
}

.service-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.service-card p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.7;
}

.service-card ul {
  list-style: none;
  padding: 0;
}

.service-card li {
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
  position: relative;
  padding-left: 1.5rem;
}

.service-card li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--primary-color);
  font-weight: bold;
}

/* CTA Section */
.cta-section {
  padding: 6rem 0;
  background: var(--gradient-primary);
  color: white;
  text-align: center;
}

.cta-content h2 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.cta-content p {
  font-size: 1.125rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Contact Section */
.contact-section {
  padding: 6rem 0;
  background: var(--bg-secondary);
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 2rem;
}

.contact-icon {
  width: 48px;
  height: 48px;
  background: var(--gradient-primary);
  border-radius: var(--border-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  flex-shrink: 0;
}

.contact-details h4 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.contact-details a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: var(--transition);
}

.contact-details a:hover {
  color: var(--primary-color);
}

.contact-form-wrapper {
  background: white;
  padding: 2.5rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-lg);
}

.contact-form {
  display: grid;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 1rem;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  font-size: 1rem;
  transition: var(--transition);
  background: white;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(6, 78, 59, 0.1);
}

.btn-full {
  width: 100%;
  justify-content: center;
}

/* Footer */
.footer {
  background: var(--bg-dark);
  color: white;
  padding: 4rem 0 2rem;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.7);
  margin: 1rem 0;
  line-height: 1.7;
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.social-links a {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  transition: var(--transition);
}

.social-links a:hover {
  background: var(--primary-light);
  transform: translateY(-2px);
}

.footer-links h4 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.footer-links ul {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 0.5rem;
}

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

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
}

.footer-bottom-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
}

/* Floating Elements */
.projects-btn,
.scroll-to-top,
.chat-button {
  position: fixed;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-xl);
  transition: var(--transition);
  z-index: 100;
  border: none;
  cursor: pointer;
  text-decoration: none;
}

.projects-btn {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  width: 60px;
  height: 60px;
  background: var(--gradient-primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-xl);
  transition: var(--transition);
  z-index: 100;
  border: none;
  cursor: pointer;
  text-decoration: none;
  overflow: visible;
  animation: pulse 2s infinite;
}

.projects-btn:hover {
  transform: scale(1.1);
}

/* Pulse animation with dark green */
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(6, 78, 59, 0.7); }
  70% { box-shadow: 0 0 0 15px rgba(6, 78, 59, 0); }
  100% { box-shadow: 0 0 0 0 rgba(6, 78, 59, 0); }
}

/* Floating "CLICK here" text with arrow */
.projects-btn::after {
  content: "CLICK\Ahere";
  position: absolute;
  left: 75px;
  top: 15px;
  background: rgba(17, 24, 39, 0.95);
  color: white;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: pre;
  text-align: center;
  line-height: 1.2;
  opacity: 0;
  transform: translateX(-10px);
  animation: clickTextFloat 4s ease-in-out infinite;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Animated arrow pointing to button */
.projects-btn::before {
  content: "↓";
  position: absolute;
  left: 70px;
  top: -35px;
  font-size: 3.0rem;
  color: var(--accent-color);
  animation: arrowBounce 2s ease-in-out infinite;
  transform-origin: center;
  opacity: 0.9;
}

@keyframes clickTextFloat {
  0%, 70% {
    opacity: 0;
    transform: translateX(-10px) translateY(5px);
  }
  75%, 95% {
    opacity: 1;
    transform: translateX(0) translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateX(10px) translateY(-5px);
  }
}

@keyframes arrowBounce {
  0%, 50% {
    transform: translateY(0) rotate(45deg);
    opacity: 0.7;
  }
  25% {
    transform: translateY(-5px) rotate(45deg);
    opacity: 1;
  }
  100% {
    transform: translateY(0) rotate(45deg);
    opacity: 0.7;
  }
}

.scroll-to-top {
  bottom: 2rem;
  right: 8rem;
  background: var(--gradient-accent);
  color: var(--text-primary);
  opacity: 0;
  visibility: hidden;
}

.scroll-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.scroll-to-top:hover {
  transform: scale(1.1);
}

.chat-button {
  bottom: 2rem;
  right: 2rem;
  background: var(--gradient-primary);
  color: white;
  position: relative;
}

.chat-button:hover {
  transform: scale(1.1);
}

.chat-notification {
  position: absolute;
  top: -5px;
  right: -5px;
  background: var(--accent-color);
  color: var(--text-primary);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: bold;
  animation: pulse 2s infinite;
}

/* Chat Widget */
.chat-widget {
  position: fixed;
  bottom: 6rem;
  right: 2rem;
  width: 350px;
  height: 500px;
  background: white;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-xl);
  display: flex;
  flex-direction: column;
  z-index: 1000;
  transform: translateY(100px) scale(0.8);
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.chat-widget.active {
  transform: translateY(0) scale(1);
  opacity: 1;
  visibility: visible;
}

.chat-header {
  background: var(--gradient-primary);
  color: white;
  padding: 1rem;
  border-radius: var(--border-radius) var(--border-radius) 0 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.chat-header-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.avatar {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}

.header-text h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 0;
}

.header-text p {
  font-size: 0.875rem;
  margin: 0;
  opacity: 0.8;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.status-dot {
  width: 8px;
  height: 8px;
  background: #10b981;
  border-radius: 50%;
}

.close-btn {
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: var(--transition);
}

.close-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

.chat-messages {
  flex: 1;
  padding: 1rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.message {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.message-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.bot-avatar {
  background: var(--bg-secondary);
}

.user-avatar {
  background: var(--gradient-primary);
  color: white;
}

.message-content {
  background: var(--bg-secondary);
  padding: 0.75rem 1rem;
  border-radius: 1rem;
  max-width: 80%;
  font-size: 0.875rem;
  line-height: 1.5;
}

.user-message {
  background: var(--gradient-primary);
  color: white;
  margin-left: auto;
}

.typing-indicator .message-content {
  background: var(--bg-secondary);
}

.typing-dots {
  display: flex;
  gap: 4px;
  align-items: center;
}

.typing-dots span {
  width: 6px;
  height: 6px;
  background: var(--text-light);
  border-radius: 50%;
  animation: typing 1.4s infinite;
}

.typing-dots span:nth-child(2) {
  animation-delay: 0.2s;
}

.typing-dots span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes typing {
  0%, 60%, 100% { transform: translateY(0); }
  30% { transform: translateY(-10px); }
}

.quick-replies {
  padding: 1rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.quick-reply {
  background: var(--bg-secondary);
  color: var(--text-secondary);
  padding: 0.5rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid var(--border-color);
}

.quick-reply:hover {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

.chat-input {
  padding: 1rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  gap: 0.5rem;
}

.input-field {
  flex: 1;
  padding: 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: 25px;
  font-size: 0.875rem;
  outline: none;
}

.input-field:focus {
  border-color: var(--primary-color);
}

.send-btn {
  width: 40px;
  height: 40px;
  background: var(--gradient-primary);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.send-btn:hover {
  transform: scale(1.1);
}

/* Dark Mode Toggle Button */
.dark-mode-toggle {
  position: fixed;
  top: 100px;
  right: 2rem;
  width: 50px;
  height: 50px;
  background: var(--gradient-primary);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  transition: var(--transition);
  z-index: 999;
}

.dark-mode-toggle:hover {
  transform: scale(1.1);
  box-shadow: var(--shadow-xl);
}

/* Dark theme variables */
:root.dark {
  --primary-color: #059669;
  --primary-light: #10b981;
  --accent-color: #fbbf24;
  --accent-light: #fde68a;

  --text-primary: #f3f4f6;
  --text-secondary: #d1d5db;
  --text-light: #9ca3af;

  --bg-primary: #0f172a;
  --bg-secondary: #1e293b;
  --bg-dark: #0a0f1c;

  --border-color: #334155;

  --shadow-sm: 0 1px 2px 0 rgb(255 255 255 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(255 255 255 / 0.05);
  --shadow-lg: 0 10px 15px -3px rgb(255 255 255 / 0.08);
  --shadow-xl: 0 20px 25px -5px rgb(255 255 255 / 0.1);

  --gradient-primary: linear-gradient(135deg, #059669 0%, #10b981 100%);
  --gradient-accent: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);

  --border-radius: 12px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dark mode for all sections and elements */
:root.dark body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
}

/* Navigation dark mode */
:root.dark .navbar {
  background: rgba(15, 23, 42, 0.95);
  border-bottom-color: rgba(51, 65, 85, 0.5);
}

:root.dark .navbar.scrolled {
  background: rgba(15, 23, 42, 0.98);
}

:root.dark .nav-link {
  color: var(--text-primary);
}

:root.dark .nav-link:hover {
  color: var(--primary-light);
}

/* All sections backgrounds */
:root.dark .innovations-section,
:root.dark .why-choose-us,
:root.dark .contact-section {
  background: var(--bg-secondary);
}

:root.dark .featured-projects,
:root.dark .services-section {
  background: var(--bg-primary);
}

/* Cards and containers */
:root.dark .innovation-card,
:root.dark .project-card,
:root.dark .service-card,
:root.dark .stat-card,
:root.dark .contact-form-wrapper {
  background: var(--bg-primary);
  border-color: var(--border-color);
  color: var(--text-primary);
}

:root.dark .innovation-card:hover,
:root.dark .project-card:hover,
:root.dark .service-card:hover,
:root.dark .stat-card:hover {
  border-color: var(--primary-light);
}

/* Text colors */
:root.dark .section-title,
:root.dark .innovation-card h3,
:root.dark .project-card h3,
:root.dark .service-card h3,
:root.dark .contact-details h4,
:root.dark .benefit-item h4,
:root.dark h2, :root.dark h3, :root.dark h4 {
  color: var(--text-primary);
}

:root.dark .section-subtitle,
:root.dark .innovation-card p,
:root.dark .project-card p,
:root.dark .service-card p,
:root.dark .contact-details a,
:root.dark .benefit-item p,
:root.dark p {
  color: var(--text-secondary);
}

/* Form elements */
:root.dark .form-group input,
:root.dark .form-group select,
:root.dark .form-group textarea {
  background: var(--bg-secondary);
  border-color: var(--border-color);
  color: var(--text-primary);
}

:root.dark .form-group input::placeholder,
:root.dark .form-group textarea::placeholder {
  color: var(--text-light);
}

:root.dark .form-group input:focus,
:root.dark .form-group select:focus,
:root.dark .form-group textarea:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.1);
}

/* Footer */
:root.dark .footer {
  background: var(--bg-dark);
}

:root.dark .footer-links a {
  color: var(--text-secondary);
}

:root.dark .footer-links a:hover {
  color: var(--accent-color);
}

/* Chat widget */
:root.dark .chat-widget {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
}

:root.dark .chat-messages {
  background: var(--bg-secondary);
}

:root.dark .message-content {
  background: var(--bg-primary);
  color: var(--text-primary);
}

:root.dark .bot-avatar {
  background: var(--bg-primary);
}

:root.dark .input-field {
  background: var(--bg-primary);
  border-color: var(--border-color);
  color: var(--text-primary);
}

:root.dark .input-field::placeholder {
  color: var(--text-light);
}

:root.dark .quick-reply {
  background: var(--bg-primary);
  color: var(--text-secondary);
  border-color: var(--border-color);
}

:root.dark .quick-reply:hover {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

/* Project overlays */
:root.dark .project-overlay {
  background: rgba(15, 23, 42, 0.8);
}

/* Feature tags and badges */
:root.dark .card-features span,
:root.dark .project-category-tag {
  background: var(--bg-secondary);
  color: var(--text-secondary);
}

/* Loading screen */
:root.dark .loading-screen {
  background: rgba(15, 23, 42, 0.3);
  backdrop-filter: blur(3px);
}

/* Floating buttons */
:root.dark .scroll-to-top,
:root.dark .chat-button {
  background: var(--gradient-primary);
}

/* Stats and counters */
:root.dark .stat-number {
  color: var(--accent-color);
}

:root.dark .stat-label,
:root.dark .project-downloads {
  color: var(--text-light);
}

/* Contact items */
:root.dark .contact-item {
  color: var(--text-primary);
}

/* Benefit icons */
:root.dark .benefit-icon {
  background: var(--gradient-primary);
}

/* Service list items */
:root.dark .service-card li {
  color: var(--text-secondary);
}

:root.dark .service-card li::before {
  color: var(--primary-color);
}

/* Project categories */
:root.dark .project-category {
  color: var(--primary-light);
}

:root.dark .project-price {
  color: var(--primary-light);
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav-container {
    padding: 1rem;
  }

  .nav-links {
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100vh;
    background: white;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    transition: var(--transition);
    z-index: 999;
  }

  .nav-links.active {
    left: 0;
  }

  .menu-toggle {
    display: flex;
    z-index: 1000;
  }

  .innovations-grid,
  .projects-showcase,
  .services-grid {
    grid-template-columns: 1fr;
  }

  .project-card.featured {
    grid-column: span 1;
  }

  .why-choose-content,
  .contact-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-bottom-content {
    flex-direction: column;
    text-align: center;
  }

  .chat-widget {
    width: calc(100vw - 2rem);
    right: 1rem;
    left: 1rem;
  }

  .projects-btn,
  .scroll-to-top {
    width: 50px;
    height: 50px;
    bottom: 1rem;
  }

  .projects-btn {
    left: 1rem;
  }

  .scroll-to-top {
    right: 4rem;
  }

  .chat-button {
    bottom: 1rem;
    right: 1rem;
    width: 50px;
    height: 50px;
  }

  .dark-mode-toggle {
    top: 80px;
    right: 1rem;
    width: 45px;
    height: 45px;
  }
}

@media (max-width: 480px) {
  .section-title {
    font-size: 1.75rem;
  }

  .innovation-card,
  .service-card {
    padding: 1.5rem;
  }

  .contact-form-wrapper {
    padding: 1.5rem;
  }
}

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

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

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

@keyframes zoomIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: 0.5rem !important; }
.mb-2 { margin-bottom: 1rem !important; }
.mb-3 { margin-bottom: 1.5rem !important; }
.mb-4 { margin-bottom: 2rem !important; }
.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: 0.5rem !important; }
.mt-2 { margin-top: 1rem !important; }
.mt-3 { margin-top: 1.5rem !important; }
.mt-4 { margin-top: 2rem !important; }

/* Smooth transitions for theme switching */
* {
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* ========================== */
/* MOBILE OPTIMIZATIONS START */
/* ========================== */

@media (max-width: 768px) {
  /* Keep animations but optimize them */
  #matrixCanvas {
    opacity: 0.3 !important;
  }
  
  #neuralCanvas {
    opacity: 0.2 !important;
  }
  
  /* Hide only the most problematic decorative elements */
  .circuit-board,
  .holographic-grid,
  .scan-lines,
  .hud-elements,
  .scroll-indicator,
  .floating-premium-btn,
  .dark-mode-toggle {
    display: none !important;
  }
  
  /* Keep but simplify particles and shapes */
  .data-particles {
    opacity: 0.4 !important;
  }
  
  .geometric-shapes {
    opacity: 0.3 !important;
    transform: scale(0.7) !important;
  }

  /* ===== FIX HERO STATS - SIDE BY SIDE ===== */
  .hero-stats {
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    gap: 0.5rem !important;
    margin-top: 2rem;
    padding: 0 1rem;
  }

  .stat {
    flex: 1 !important;
    text-align: center !important;
    padding: 1rem 0.5rem !important;
    background: rgba(255, 255, 255, 0.1) !important;
    border-radius: 12px !important;
    backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
  }

  .stat-number {
    font-size: 1.25rem !important;
    font-weight: 700 !important;
    color: #fbbf24 !important;
    display: block !important;
    margin-bottom: 0.25rem !important;
  }

  .stat-label {
    font-size: 0.625rem !important;
    color: rgba(255, 255, 255, 0.8) !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    line-height: 1.2 !important;
  }

  /* ===== FIX DARK MODE MOBILE MENU ===== */
  :root.dark .nav-links {
    background: var(--bg-dark) !important;
    color: var(--text-primary) !important;
  }

  :root.dark .nav-link {
    color: var(--text-primary) !important;
  }

  :root.dark .nav-link:hover {
    color: var(--primary-light) !important;
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 8px;
  }

  :root.dark .nav-cta {
    background: var(--gradient-primary) !important;
    color: white !important;
  }

  :root.dark .menu-toggle span {
    background: var(--text-primary) !important;
  }

  /* Mobile menu active state in dark mode */
  :root.dark .nav-links.active {
    background: var(--bg-dark) !important;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
  }

  /* ===== FIX HERO TEXT SIZES ===== */
  .hero-main-title {
    font-size: 1.5rem !important;
    line-height: 1.4 !important;
    margin-bottom: 0.5rem !important;
  }

  .highlight-text {
    font-size: 2.5rem !important;
    margin: 1rem 0 !important;
    background: linear-gradient(45deg, #fbbf24, #f59e0b) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
  }

  .hero-secondary-title {
    font-size: 1rem !important;
    margin-bottom: 1.5rem !important;
  }

  /* ===== OPTIMIZE ANIMATIONS FOR PERFORMANCE ===== */
  @media (prefers-reduced-motion: no-preference) {
    .particle {
      animation-duration: 20s !important;
    }
    
    .geometric-shapes .shape {
      animation-duration: 15s !important;
    }
  }

  /* ===== FIX CONTAINER OVERFLOW ===== */
  .hero {
    overflow: hidden !important;
    position: relative !important;
  }

  .animated-hero-container {
    position: relative !important;
    overflow: hidden !important;
    min-height: 100vh !important;
  }

  /* ===== FIX CTA BUTTONS ===== */
  .hero-cta {
    display: flex !important;
    flex-direction: row !important;
    gap: 1rem !important;
    justify-content: center !important;
    margin-bottom: 2rem !important;
  }

  .cta-button-animated,
  .btn-secondary {
    font-size: 0.875rem !important;
    padding: 0.75rem 1.25rem !important;
    white-space: nowrap !important;
  }

  /* ===== REMOVE FLOATING BUTTON ANIMATIONS ===== */
  .projects-btn::before,
  .projects-btn::after {
    display: none !important;
  }

  /* ===== FIX NAVIGATION BAR ===== */
  .navbar {
    background: rgba(255, 255, 255, 0.95) !important;
  }

  :root.dark .navbar {
    background: rgba(15, 23, 42, 0.95) !important;
  }

  .nav-container {
    padding: 0.75rem 1rem !important;
    height: 70px !important;
  }

  .logo-image {
    height: 60px !important;
  }
  
  /* Hide user actions on mobile */
  .user-actions {
    display: none !important;
  }
  
  /* Fix section padding */
  section {
    padding: 3rem 0 !important;
  }
  
  /* Fix container and prevent overflow */
  .container {
    padding: 0 1rem !important;
    max-width: 100vw !important;
    overflow-x: hidden !important;
  }
  
  /* Fix all grids */
  .innovations-grid,
  .projects-showcase,
  .services-grid,
  .stats-grid {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
    max-width: 100% !important;
  }
  
  /* Fix cards */
  .innovation-card,
  .project-card,
  .service-card,
  .stat-card {
    padding: 5rem !important;
    margin: 0 auto !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  
  /* Fix project card featured */
  .project-card.featured {
    grid-column: span 1 !important;
  }
  
  /* Fix floating buttons */
  .projects-btn {
    bottom: 1rem !important;
    right: 1rem !important;
    left: auto !important;
    width: 50px !important;
    height: 50px !important;
  }
  
   .projects-btn svg {
    width: 18px !important;
    height: 18px !important;
  }
  
  .projects-btn span {
    font-size: 0.7rem !important;
  }
  .chat-button {
    bottom: 1rem !important;
    right: 1rem !important;
    width: 50px !important;
    height: 50px !important;
  }
  
  .scroll-to-top {
    display: none !important;
  }
  
  /* Fix section headers */
  .section-title {
    font-size: 1.75rem !important;
    line-height: 1.3 !important;
  }
  
  .section-subtitle {
    font-size: 1rem !important;
  }
  
  /* Fix form elements */
  .contact-form-wrapper {
    padding: 1.5rem !important;
  }
  
  .form-group input,
  .form-group textarea,
  .form-group select {
    font-size: 16px !important; /* Prevents zoom on iOS */
  }
  
  /* Fix chat widget */
  .chat-widget {
    width: calc(100vw - 2rem) !important;
    max-width: 400px !important;
    right: 1rem !important;
    left: 1rem !important;
    margin: 0 auto !important;
    height: 450px !important;
  }
  
  /* Remove animations on mobile for performance */
  @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
      animation-duration: 0.01ms !important;
      animation-iteration-count: 1 !important;
      transition-duration: 0.01ms !important;
    }
  }
  
  /* Ensure text doesn't overflow */
  h1, h2, h3, h4, h5, h6, p, a {
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    hyphens: auto !important;
  }
}

/* Extra small devices - Further optimize stats */
@media (max-width: 400px) {
  .hero-stats {
    gap: 0.25rem !important;
  }

  .stat {
    padding: 0.75rem 0.25rem !important;
  }

  .stat-number {
    font-size: 1rem !important;
  }

   .stat-number1 {
    font-size: 2.7rem !important;
  }
  .stat-label {
    font-size: 0.9rem !important;
  }

  .cta-button-animated,
  .btn-secondary {
    font-size: 0.75rem !important;
    padding: 0.6rem 1rem !important;
  }
  
  .hero-main-title {
    font-size: 1.25rem !important;
  }

  .highlight-text {
    font-size: 1.75rem !important;
  }

  .section-title {
    font-size: 1.5rem !important;
  }

  .innovation-card,
  .service-card,
  .project-card {
    padding: 1rem !important;
  }
}

/* Ensure mobile menu is visible in both themes */
.nav-links {
  z-index: 999 !important;
}

.nav-links.active {
  background: white !important;
}

:root.dark .nav-links.active {
  background: #0f172a !important;
}

/* Fix menu toggle visibility in dark mode */
:root.dark .menu-toggle.active span {
  background: var(--text-primary) !important;
}

/* Prevent horizontal scroll globally */
html, body {
  overflow-x: hidden !important;
  max-width: 100% !important;
}

/* Fix any absolute positioned elements */
@media (max-width: 768px) {
  [style*="position: absolute"],
  [style*="position: fixed"] {
    max-width: 100vw !important;
  }
}

/* Specific fixes for typing animation */
@media (max-width: 768px) {
  .typing-animation-container {
    width: 100% !important;
    padding: 0 10px !important;
  }

  #typingText {
    display: inline-block !important;
    max-width: 100% !important;
  }
}

/* Fix footer on mobile */
@media (max-width: 768px) {
  .footer-content {
    grid-template-columns: 1fr !important;
    text-align: center !important;
  }

  .social-links {
    justify-content: center !important;
  }
}
/* Mobile - Show Hidden Buttons */
@media (max-width: 768px) {
  /* Show user actions (login/profile) in mobile menu */
  .user-actions {
    display: flex !important;
    position: absolute;
    top: 1rem;
    right: 60px; /* Space for menu toggle */
    gap: 0.5rem;
  }
  
  /* Make login button smaller on mobile */
  .login-btn {
    padding: 6px 16px !important;
    font-size: 0.875rem !important;
  }
  
  /* Keep dark mode toggle but move it */
   .dark-mode-toggle {
    display: flex !important;
    position: fixed;
    top: 85px !important; /* Below navbar */
    right: 0.5rem !important;
    bottom: auto !important;
    width: 45px !important;
    height: 45px !important;
    z-index: 100;
  }
  
  /* Show premium button but relocate it */
  .floating-premium-btn {
    display: flex !important;
    position: fixed;
    top: 145px !important; /* Below dark mode button */
    right: 0.5rem !important;
    bottom: auto !important;
    width: 45px !important;
    height: 45px !important;
    font-size: 1.2rem !important;
    z-index: 100;
  }

  /* Alternative: Add these to mobile menu */
  .nav-links::after {
    content: '';
    display: block;
    width: 100%;
    height: 1px;
    background: rgba(0, 0, 0, 0.1);
    margin: 2rem 0;
  }
  
  /* Add dark mode toggle to mobile menu */
  .nav-links {
    padding-bottom: 2rem;
  }
  
  /* If profile icon is shown, make it smaller */
  .profile-icon {
    width: 35px !important;
    height: 35px !important;
    font-size: 12px !important;
  }
}

/* Stack floating buttons vertically on mobile */
@media (max-width: 768px) {
  .chat-button {
    bottom: 1rem !important;
    right: 1rem !important;
  }
  
  .projects-btn {
    bottom: 5rem !important;
    right: 1rem !important;
    left: auto !important;
  }
  
  .dark-mode-toggle {
    bottom: 9rem !important;
  }
  
  .floating-premium-btn {
    bottom: 13rem !important;
  }
}

/* For very small screens, create a floating action button menu */
@media (max-width: 400px) {
  /* Reduce button sizes further */
  .chat-button,
  .projects-btn,
  .dark-mode-toggle,
  .floating-premium-btn {
    width: 40px !important;
    height: 40px !important;
  }
  
  /* Adjust positions for smaller buttons */
  .projects-btn { bottom: 4.5rem !important; }
  .dark-mode-toggle { bottom: 8rem !important; }
  .floating-premium-btn { bottom: 11.5rem !important; }
}


@media (max-width: 768px) {
  .navbar.scrolled ~ .dark-mode-toggle {
    top: 73px !important; /* Slightly less when scrolled */
  }
  
  .navbar.scrolled ~ .floating-premium-btn {
    top: 135px !important;
  }
}

:root.dark .dark-mode-toggle,
:root.dark .floating-premium-btn {
  background: var(--gradient-accent) !important;
  box-shadow: 0 4px 12px rgba(251, 191, 36, 0.3) !important;
}

@media (max-width: 768px) {
  .dark-mode-toggle:hover,
  .floating-premium-btn:hover,
  .projects-btn:hover,
  .chat-button:hover {
    transform: scale(1.05) !important;
  }
}