/* Index Page Specific Styles */

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 8rem 0 4rem;
  position: relative;
}

.hero-content {
  max-width: 100%;
  animation: fadeInUp 1s ease;
  margin: 0 auto;
  text-align: center;
  padding: 0 1rem;
}

.hero-subtitle {
  font-size: 1.375rem;
  color: var(--text-secondary);
  margin-bottom: 3rem;
  line-height: 1.6;
  font-weight: 300;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.hero-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.gallery-item {
  position: relative;
  aspect-ratio: 3/4;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #667EEA, #54B1DF);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: white;
  font-weight: 700;
}

.hero-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  padding: 2rem;
  background: white;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

[data-theme="dark"] .hero-meta {
  background: var(--dark-surface);
  border-color: var(--dark-border);
}

.hero-meta dt {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.hero-meta dd {
  font-weight: 500;
  color: var(--text-primary);
  font-size: 1rem;
}

/* Carousel */
.carousel {
  position: relative;
  padding: 0 4rem;
  max-width: 100%;
}

.carousel-viewport {
  overflow: visible;
  border-radius: 16px;
}

.carousel-track {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  transition: none;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border: 1px solid var(--border-color);
  background: white;
  border-radius: 50%;
  color: var(--flutter-blue);
  font-size: 1.5rem;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 10;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .carousel-btn {
  background: var(--dark-surface);
  border-color: var(--dark-border);
}

.carousel-btn:hover {
  background: var(--flutter-blue);
  color: white;
  border-color: var(--flutter-blue);
  transform: translateY(-50%) scale(1.05);
}

.carousel-btn:focus-visible {
  outline: 3px solid var(--flutter-light-blue);
  outline-offset: 3px;
}

.carousel-btn-prev {
  left: 0;
}

.carousel-btn-next {
  right: 0;
}

/* Carousel Indicators */
.carousel-indicators {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2rem;
}

.carousel-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border-color);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.carousel-indicator.active {
  width: 24px;
  border-radius: 4px;
  background: var(--flutter-blue);
}

.carousel-indicator:hover {
  background: var(--flutter-blue);
  opacity: 0.7;
}

/* Project Cards Grid (Projects Page Style) */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  animation: fadeIn 0.6s ease-out;
  background: linear-gradient(135deg, #ffffff 0%, #f8fafb 100%);
  padding: 3.5rem;
  border-radius: 20px;
  border: 1px solid rgba(1, 117, 194, 0.08);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
}

[data-theme="dark"] .projects-grid {
  background: linear-gradient(135deg, var(--dark-surface) 0%, var(--dark-bg) 100%);
  border-color: var(--dark-border);
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.project-card {
  background: white;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .project-card {
  background: var(--dark-surface);
  border-color: var(--dark-border);
}

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

.project-image-container {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: linear-gradient(135deg, #667EEA, #54B1DF);
  border-bottom: 2px solid rgba(1, 117, 194, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.project-card:hover .project-overlay {
  background: rgba(1, 117, 194, 0.1);
}

.project-content {
  padding: 2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  background: white;
  height: 280px;
}

[data-theme="dark"] .project-content {
  background: var(--dark-surface);
}

.project-category {
  font-size: 0.8rem;
  color: var(--flutter-blue);
  font-weight: 700;
  margin-bottom: 0.3rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.project-card h3 {
  font-family: 'Google Sans', sans-serif;
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--text-primary);
}

.project-description {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 1rem;
  line-height: 1.6;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.project-tags {
  list-style: none;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.project-tags li {
  padding: 0.35rem 0.8rem;
  border-radius: 18px;
  font-size: 0.7rem;
  font-weight: 600;
  color: white;
  transition: all 0.2s ease;
  display: inline-block;
}

.project-tags li:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--flutter-blue);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  width: fit-content;
}

.project-link:hover {
  gap: 0.75rem;
  color: var(--flutter-navy);
}

.project-link::after {
  content: '→';
  font-size: 1.1rem;
  transition: transform 0.3s ease;
}

.project-link:hover::after {
  transform: translateX(2px);
}

/* Project-specific colors */
.project-protectin:hover {
  border-color: #9333ea;
}

.project-protectin .project-image-container {
  background: linear-gradient(135deg, #a855f7, #9333ea);
}

.project-protectin .project-tags li:nth-child(1) { background: #a855f7; }
.project-protectin .project-tags li:nth-child(2) { background: #ec4899; }
.project-protectin .project-tags li:nth-child(3) { background: #8b5cf6; }
.project-protectin .project-tags li:nth-child(4) { background: #d946ef; }

.project-erpschool:hover {
  border-color: #f97316;
}

.project-erpschool .project-image-container {
  background: linear-gradient(135deg, #fb923c, #f97316);
}

.project-erpschool .project-tags li:nth-child(1) { background: #fb923c; }
.project-erpschool .project-tags li:nth-child(2) { background: #fbbf24; }
.project-erpschool .project-tags li:nth-child(3) { background: #fb7185; }
.project-erpschool .project-tags li:nth-child(4) { background: #fdba74; }
.project-erpschool .project-tags li:nth-child(5) { background: #f97316; }

.project-algerianature:hover {
  border-color: #22c55e;
}

.project-algerianature .project-image-container {
  background: linear-gradient(135deg, #4ade80, #22c55e);
}

.project-algerianature .project-tags li:nth-child(1) { background: #4ade80; }
.project-algerianature .project-tags li:nth-child(2) { background: #34d399; }
.project-algerianature .project-tags li:nth-child(3) { background: #60a5fa; }
.project-algerianature .project-tags li:nth-child(4) { background: #2dd4bf; }
.project-algerianature .project-tags li:nth-child(5) { background: #84cc16; }

/* Mobile Responsive */
@media (max-width: 768px) {
  .hero {
    padding: 6rem 0 3rem;
    min-height: auto;
  }

  .hero-content {
    padding-top: 3rem;
  }

  .hero-subtitle {
    font-size: 0.95rem;
    line-height: 1.5;
  }

  .hero-actions {
    gap: 0.75rem;
  }

  .carousel {
    padding: 0 1rem;
  }

  .carousel-track {
    grid-template-columns: 1fr;
  }

  .carousel-btn {
    width: 40px;
    height: 40px;
    font-size: 1.25rem;
  }

  .projects-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 0.5rem;
  }

  .project-card {
    margin: 0.5rem;
  }

  .project-card:hover {
    transform: translateY(-8px);
  }

  .project-card h3 {
    font-size: 1.25rem;
  }

  .project-description {
    font-size: 0.9rem;
  }
}

