/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --blue-600: #2563eb;
  --blue-700: #1d4ed8;
  --blue-100: #dbeafe;
  --blue-50: #eff6ff;
  --blue-400: #60a5fa;
  --purple-700: #7e22ce;
  --purple-600: #9333ea;
  --purple-50: #faf5ff;
  --gray-900: #111827;
  --gray-700: #374151;
  --gray-400: #9ca3af;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-800: #1f2937;
  --green-600: #16a34a;
  --green-50: #f0fdf4;
  --orange-600: #ea580c;
  --orange-50: #fff7ed;
  --pink-50: #fdf2f8;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: var(--gray-900);
  background: #ffffff;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header Styles */
header {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  z-index: 50;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  max-width: 1280px;
  margin: 0 auto;
}

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--blue-600);
  text-decoration: none;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-menu a {
  color: var(--gray-700);
  text-decoration: none;
  transition: color 0.3s;
}

.nav-menu a:hover {
  color: var(--blue-600);
}

.btn-primary {
  background: var(--blue-600);
  color: white;
  padding: 0.5rem 1.5rem;
  border-radius: 9999px;
  text-decoration: none;
  transition: background 0.3s, transform 0.2s;
  display: inline-block;
}

.btn-primary:hover {
  background: var(--blue-700);
  transform: scale(1.05);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
}

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 1rem;
  padding: 1rem 0;
}

.mobile-menu a {
  color: var(--gray-700);
  text-decoration: none;
  padding: 0.5rem 0;
}

/* Hero Section */
.hero {
  background: linear-gradient(to bottom right, var(--blue-600), var(--purple-700));
  color: white;
  padding: 8rem 0 5rem;
  text-align: center;
  position: relative;
}

.hero h1 {
  font-size: 3rem;
  font-weight: bold;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.hero p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  color: var(--blue-100);
  max-width: 56rem;
  margin-left: auto;
  margin-right: auto;
}

.btn-hero {
  background: white;
  color: var(--blue-600);
  padding: 1rem 2rem;
  border-radius: 9999px;
  text-decoration: none;
  font-size: 1.125rem;
  font-weight: 600;
  transition: all 0.3s;
  display: inline-block;
}

.btn-hero:hover {
  background: var(--blue-50);
  transform: scale(1.05);
}

/* Section Styles */
section {
  padding: 5rem 0;
}

.section-title {
  font-size: 2.25rem;
  font-weight: bold;
  text-align: center;
  margin-bottom: 3rem;
  color: var(--gray-900);
}

/* Grid Layouts */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

/* Card Styles */
.card {
  background: white;
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: all 0.3s;
}

.card:hover {
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
  transform: translateY(-8px);
}

.card-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.card h3 {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 1rem;
  color: var(--gray-900);
}

.card p {
  color: var(--gray-700);
  line-height: 1.8;
}

/* Stats Section */
.stats {
  background: var(--blue-600);
  color: white;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 3rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 1.25rem;
  color: var(--blue-100);
}

/* Why Choose Section */
.why-choose-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  text-align: center;
}

.why-item {
  padding: 1rem;
}

.why-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

/* CTA Section */
.cta {
  background: linear-gradient(to right, var(--blue-600), var(--purple-700));
  color: white;
  text-align: center;
}

/* Footer */
footer {
  background: #111827;
  color: white;
  padding: 3rem 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
  margin-bottom: 1rem;
}

.footer-section h3 {
  color: var(--blue-400);
  font-size: 1.5rem;
}

.footer-section p,
.footer-section li {
  color: var(--gray-400);
  margin-bottom: 0.5rem;
}

.footer-section ul {
  list-style: none;
}

.footer-section a {
  color: var(--gray-400);
  text-decoration: none;
  transition: color 0.3s;
}

.footer-section a:hover {
  color: var(--blue-400);
}

.footer-bottom {
  border-top: 1px solid var(--gray-800);
  margin-top: 2rem;
  padding-top: 2rem;
  text-align: center;
  color: var(--gray-400);
}

/* Form Styles */
.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  font-size: 1rem;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--blue-600);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-group textarea {
  resize: none;
}

.btn-submit {
  width: 100%;
  background: var(--blue-600);
  color: white;
  padding: 1rem;
  border: none;
  border-radius: 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-submit:hover {
  background: var(--blue-700);
  transform: scale(1.02);
}

/* Contact Info */
.contact-info {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.contact-icon {
  font-size: 1.875rem;
}

.contact-details h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.contact-details p {
  color: var(--gray-700);
}

/* Background Colors */
.bg-white {
  background: white;
}

.bg-gray {
  background: var(--gray-50);
}

.bg-gradient {
  background: linear-gradient(to bottom right, var(--blue-50), var(--purple-50));
}

/* Service Cards with Gradient */
.service-card-1 {
  background: linear-gradient(to bottom right, var(--blue-50), var(--purple-50));
}

.service-card-2 {
  background: linear-gradient(to bottom right, var(--purple-50), var(--pink-50));
}

.service-card-3 {
  background: linear-gradient(to bottom right, var(--green-50), var(--blue-50));
}

.service-card-4 {
  background: linear-gradient(to bottom right, var(--orange-50), #fef2f2);
}

/* Process Steps */
.process-step {
  text-align: center;
}

.step-number {
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: bold;
  color: white;
  margin: 0 auto 1rem;
}

.step-1 { background: var(--blue-600); }
.step-2 { background: var(--purple-600); }
.step-3 { background: var(--green-600); }
.step-4 { background: var(--orange-600); }

/* Responsive Design */
@media (min-width: 768px) {
  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .hero h1 {
    font-size: 3.75rem;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    display: none;
  }
  
  .mobile-menu-btn {
    display: block;
  }
  
  .mobile-menu.active {
    display: flex;
  }
  
  .hero {
    padding: 6rem 0 4rem;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .hero p {
    font-size: 1rem;
  }
  
  .section-title {
    font-size: 1.875rem;
  }
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.6s ease-out;
}

/* Portfolio Gallery */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}

.portfolio-item {
  background: white;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: all 0.3s;
  cursor: pointer;
}

.portfolio-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.portfolio-image {
  width: 100%;
  height: 250px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--blue-100), var(--purple-100));
}

.portfolio-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.portfolio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(59, 130, 246, 0.95);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  transition: opacity 0.3s;
}

.portfolio-item:hover .portfolio-overlay {
  opacity: 1;
}

.portfolio-overlay h3 {
  color: white;
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 0.75rem;
  text-align: center;
}

.portfolio-overlay p {
  color: var(--blue-100);
  text-align: center;
  line-height: 1.6;
}

.portfolio-info {
  padding: 1.5rem;
  text-align: center;
  background: white;
}

.portfolio-content {
  padding: 1.5rem;
}

.portfolio-category {
  display: inline-block;
  background: var(--blue-100);
  color: var(--blue-600);
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.portfolio-title {
  font-size: 1.25rem;
  font-weight: bold;
  color: var(--gray-900);
  margin-bottom: 0.5rem;
}

.portfolio-description {
  color: var(--gray-700);
  line-height: 1.6;
}

/* Filter Buttons */
.filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 3rem;
}

.filter-btn {
  background: white;
  border: 2px solid var(--gray-300);
  color: var(--gray-700);
  padding: 0.5rem 1.5rem;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.3s;
  font-size: 1rem;
  font-weight: 500;
}

.filter-btn:hover,
.filter-btn.active {
  background: var(--blue-600);
  border-color: var(--blue-600);
  color: white;
}

/* Edit Mode Styles */
.edit-controls {
  opacity: 0;
  transition: opacity 0.3s ease;
}

*:hover > .edit-controls {
  opacity: 1;
}

.edit-button {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
  color: white !important;
  border: none !important;
  border-radius: 4px !important;
  padding: 6px 12px !important;
  font-size: 12px !important;
  cursor: pointer !important;
  margin: 0 2px !important;
  opacity: 0.8 !important;
  transition: opacity 0.2s !important;
}

.edit-button:hover {
  opacity: 1 !important;
}

#editModeToggle {
  position: fixed !important;
  top: 20px !important;
  right: 20px !important;
  z-index: 9999 !important;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
  color: white !important;
  border: none !important;
  padding: 12px 20px !important;
  border-radius: 25px !important;
  cursor: pointer !important;
  font-weight: bold !important;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2) !important;
  transition: all 0.3s !important;
}

#editModeToggle.editing {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
}

#adminLogoutBtn {
  position: fixed !important;
  top: 20px !important;
  right: 150px !important;
  z-index: 9999 !important;
  background: #ef4444 !important;
  color: white !important;
  border: none !important;
  padding: 12px 20px !important;
  border-radius: 25px !important;
  cursor: pointer !important;
  font-weight: bold !important;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2) !important;
  transition: all 0.3s !important;
}

.edit-modal, .login-modal {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  background: rgba(0,0,0,0.8) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  z-index: 10000 !important;
  font-family: system-ui, -apple-system, sans-serif !important;
}

.edit-modal > div, .login-modal > div {
  background: white !important;
  padding: 2rem !important;
  border-radius: 8px !important;
  width: 90% !important;
  max-width: 600px !important;
  max-height: 80vh !important;
  overflow-y: auto !important;
  position: relative !important;
}

/* Admin Panel Styles */
.admin-container {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 1.5rem;
}

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.btn-add {
  background: var(--green-600);
  color: white;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  transition: all 0.3s;
}

.btn-add:hover {
  background: #15803d;
  transform: scale(1.05);
}

.admin-table {
  width: 100%;
  background: white;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.admin-table table {
  width: 100%;
  border-collapse: collapse;
}

.admin-table th,
.admin-table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid var(--gray-200);
}

.admin-table th {
  background: var(--gray-50);
  font-weight: 600;
  color: var(--gray-900);
}

.admin-table img {
  width: 80px;
  height: 60px;
  object-fit: cover;
  border-radius: 0.5rem;
}

.btn-edit,
.btn-delete {
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 0.375rem;
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 500;
  margin-right: 0.5rem;
  transition: all 0.3s;
}

.btn-edit {
  background: var(--blue-600);
  color: white;
}

.btn-edit:hover {
  background: var(--blue-700);
}

.btn-delete {
  background: #dc2626;
  color: white;
}

.btn-delete:hover {
  background: #b91c1c;
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.modal.active {
  display: flex;
}

.modal-content {
  background: white;
  padding: 2rem;
  border-radius: 1rem;
  max-width: 600px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.modal-header h2 {
  font-size: 1.5rem;
  color: var(--gray-900);
}

.btn-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--gray-500);
}

.btn-close:hover {
  color: var(--gray-900);
}

.image-preview {
  width: 100%;
  max-height: 200px;
  object-fit: contain;
  margin-top: 1rem;
  border-radius: 0.5rem;
}

.btn-cancel {
  background: var(--gray-400);
  color: white;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  font-size: 1rem;
  margin-right: 1rem;
}

.btn-cancel:hover {
  background: var(--gray-500);
}
