/* Hakkimizda Page - Bento Gallery Styles */

p {
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.gallery-wrap {
  position: relative;
  width: 100%;
  height: calc(100vh - 81px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.gallery {
  position: relative;
  width: 100%;
  height: 100%;
  flex: none;
}

.gallery__item {
  background-position: 50% 50%;
  background-size: cover;
  flex: none;
  position: relative;
}

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

.gallery--bento {
  display: grid;
  gap: 4px;
  grid-template-columns: repeat(3, 32.5vw);
  grid-template-rows: repeat(4, 23vh);
  justify-content: center;
  align-content: center;
}

.gallery--final.gallery--bento {
  grid-template-columns: repeat(3, 100vw);
  grid-template-rows: repeat(4, calc((100vh - 81px) / 2 - 2px));
  gap: 4px;
}

.gallery--bento .gallery__item:nth-child(1) {
  grid-area: 1 / 1 / 3 / 2;
}

.gallery--bento .gallery__item:nth-child(2) {
  grid-area: 1 / 2 / 2 / 3;
}

.gallery--bento .gallery__item:nth-child(3) {
  grid-area: 2 / 2 / 4 / 3;
}

.gallery--bento .gallery__item:nth-child(4) {
  grid-area: 1 / 3 / 3 / 3;
}

.gallery--bento .gallery__item:nth-child(5) {
  grid-area: 3 / 1 / 3 / 2;
}

.gallery--bento .gallery__item:nth-child(6) {
  grid-area: 3 / 3 / 5 / 4;
}

.gallery--bento .gallery__item:nth-child(7) {
  grid-area: 4 / 1 / 5 / 2;
}

.gallery--bento .gallery__item:nth-child(8) {
  grid-area: 4 / 2 / 5 / 3;
}

.section {
  padding: 2rem 5rem;
}

/* ======================= */
/* About Content Styles    */
/* ======================= */

.about-content {
  background: #ffffff;
}

.about-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 22px 100px;
}

/* Hero Section */
.about-hero {
  text-align: center;
  max-width: 900px;
  margin: 0 auto 80px;
}

.about-main-title {
  font-size: clamp(40px, 6vw, 64px);
  font-weight: 700;
  color: #111827;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.about-hero-text {
  font-size: 18px;
  line-height: 1.7;
  color: #4b5563;
}

/* Vision & Mission Grid */
.vm-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  margin-bottom: 100px;
}

.vm-card {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border-radius: 20px;
  padding: 40px;
  position: relative;
  overflow: hidden;
}

.vm-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #0066cc, #00a3ff);
}

.vm-icon-wrap {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, #0066cc 0%, #0088ff 100%);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  color: #fff;
  font-size: 24px;
}

.vm-title {
  font-size: 24px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 16px;
}

.vm-text {
  font-size: 16px;
  line-height: 1.7;
  color: #4b5563;
  margin: 0;
}

/* Why Section */
.why-section {
  margin-bottom: 100px;
}

.section-title {
  font-size: clamp(32px, 4vw, 42px);
  font-weight: 700;
  color: #111827;
  text-align: center;
  margin-bottom: 48px;
  letter-spacing: -0.02em;
}

/* Timeline Styles */
.timeline {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding: 20px 0;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, #0066cc 0%, #00a3ff 50%, #0066cc 100%);
}

.timeline-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 48px;
  position: relative;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-item:nth-child(odd) {
  flex-direction: row;
  padding-right: calc(50% + 40px);
}

.timeline-item:nth-child(even) {
  flex-direction: row-reverse;
  padding-left: calc(50% + 40px);
}

.timeline-marker {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #0066cc 0%, #0088ff 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  box-shadow: 0 8px 24px -4px rgba(0, 102, 204, 0.4);
  transition: all 0.3s ease;
}

.timeline-item:hover .timeline-marker {
  transform: translateX(-50%) scale(1.1);
  box-shadow: 0 12px 32px -4px rgba(0, 102, 204, 0.5);
}

.timeline-number {
  color: #ffffff;
  font-size: 18px;
  font-weight: 700;
}

.timeline-content {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 28px 32px;
  flex: 1;
  transition: all 0.3s ease;
  position: relative;
}

.timeline-item:nth-child(odd) .timeline-content::after {
  content: "";
  position: absolute;
  right: -10px;
  top: 24px;
  width: 20px;
  height: 20px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-left: none;
  border-bottom: none;
  transform: rotate(45deg);
}

.timeline-item:nth-child(even) .timeline-content::after {
  content: "";
  position: absolute;
  left: -10px;
  top: 24px;
  width: 20px;
  height: 20px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-right: none;
  border-top: none;
  transform: rotate(45deg);
}

.timeline-item:hover .timeline-content {
  border-color: #0066cc;
  box-shadow: 0 16px 40px -12px rgba(0, 102, 204, 0.15);
  transform: translateY(-4px);
}

.timeline-item:nth-child(odd):hover .timeline-content::after {
  border-color: #0066cc;
}

.timeline-item:nth-child(even):hover .timeline-content::after {
  border-color: #0066cc;
}

.timeline-title {
  font-size: 18px;
  font-weight: 600;
  color: #111827;
  margin-bottom: 12px;
  line-height: 1.4;
}

.timeline-text {
  font-size: 15px;
  line-height: 1.7;
  color: #6b7280;
  margin: 0;
}

/* Sectors Section */
.sectors-section {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border-radius: 24px;
  padding: 60px 48px;
  margin-bottom: 80px;
}

.sectors-intro {
  text-align: center;
  font-size: 18px;
  color: #4b5563;
  margin-bottom: 40px;
}

.sectors-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

.sector-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 28px 20px;
  text-align: center;
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.sector-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px -8px rgba(0, 0, 0, 0.1);
  border-color: #0066cc;
}

.sector-card i {
  font-size: 32px;
  color: #0066cc;
  margin-bottom: 16px;
}

.sector-card h3 {
  font-size: 15px;
  font-weight: 600;
  color: #111827;
  margin-bottom: 8px;
}

.sector-card p {
  font-size: 13px;
  color: #6b7280;
  margin: 0;
  line-height: 1.5;
}

/* Closing Section */
.closing-section {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 0;
}

.closing-text {
  font-size: 20px;
  line-height: 1.7;
  color: #374151;
  margin-bottom: 24px;
}

.closing-tagline {
  font-size: 32px;
  font-weight: 700;
  color: #0066cc;
  margin: 0;
  letter-spacing: -0.01em;
}

/* Responsive Styles for About Content */
@media (max-width: 1024px) {
  .vm-grid {
    gap: 24px;
  }
  
  .timeline::before {
    left: 30px;
  }
  
  .timeline-item:nth-child(odd),
  .timeline-item:nth-child(even) {
    flex-direction: row;
    padding-right: 0;
    padding-left: 80px;
  }
  
  .timeline-marker {
    left: 30px;
    width: 50px;
    height: 50px;
  }
  
  .timeline-number {
    font-size: 16px;
  }
  
  .timeline-item:nth-child(odd) .timeline-content::after,
  .timeline-item:nth-child(even) .timeline-content::after {
    left: -10px;
    right: auto;
    border: 1px solid #e5e7eb;
    border-right: none;
    border-top: none;
  }
  
  .sectors-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .sectors-section {
    padding: 48px 32px;
  }
}

@media (max-width: 768px) {
  .about-container {
    padding: 60px 20px 80px;
  }
  
  .about-hero {
    margin-bottom: 60px;
  }
  
  .about-hero-text {
    font-size: 16px;
  }
  
  .vm-grid {
    grid-template-columns: 1fr;
    margin-bottom: 60px;
  }
  
  .vm-card {
    padding: 32px;
  }
  
  .why-section {
    margin-bottom: 60px;
  }
  
  .timeline::before {
    left: 20px;
  }
  
  .timeline-item:nth-child(odd),
  .timeline-item:nth-child(even) {
    padding-left: 60px;
  }
  
  .timeline-marker {
    left: 20px;
    width: 40px;
    height: 40px;
  }
  
  .timeline-number {
    font-size: 14px;
  }
  
  .timeline-content {
    padding: 20px 24px;
  }
  
  .timeline-item:nth-child(odd) .timeline-content::after,
  .timeline-item:nth-child(even) .timeline-content::after {
    display: none;
  }
  
  .timeline-title {
    font-size: 16px;
  }
  
  .timeline-text {
    font-size: 14px;
  }
  
  .sectors-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  
  .sectors-section {
    padding: 40px 24px;
    border-radius: 16px;
  }
  
  .closing-text {
    font-size: 18px;
  }
  
  .closing-tagline {
    font-size: 26px;
  }
}

@media (max-width: 480px) {
  .about-container {
    padding: 40px 16px 60px;
  }
  
  .about-main-title {
    margin-bottom: 16px;
  }
  
  .vm-card {
    padding: 24px;
  }
  
  .vm-icon-wrap {
    width: 48px;
    height: 48px;
    font-size: 20px;
  }
  
  .vm-title {
    font-size: 20px;
  }
  
  .section-title {
    margin-bottom: 32px;
  }
  
  .timeline-item {
    margin-bottom: 32px;
  }
  
  .timeline-item:nth-child(odd),
  .timeline-item:nth-child(even) {
    padding-left: 50px;
  }
  
  .timeline::before {
    left: 15px;
  }
  
  .timeline-marker {
    left: 15px;
    width: 32px;
    height: 32px;
  }
  
  .timeline-number {
    font-size: 12px;
  }
  
  .timeline-content {
    padding: 16px 20px;
  }
  
  .sectors-grid {
    grid-template-columns: 1fr;
  }
  
  .sector-card {
    padding: 24px 16px;
  }
  
  .closing-section {
    padding: 20px 0;
  }
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .gallery--bento {
    gap: 2px;
  }
  .gallery--final.gallery--bento {
    gap: 2px;
  }
  .section {
    padding: 1.5rem 1.5rem;
  }
}

@media (max-width: 480px) {
  .gallery--bento {
    gap: 1px;
  }
  .gallery--final.gallery--bento {
    gap: 1px;
  }
  .section {
    padding: 1rem 1rem;
  }
  p {
    font-size: 1rem;
  }
}

/* Fix for pinned gallery with sticky header */
.gallery-wrap.pin-spacer {
  padding-top: 0 !important;
}

.pin-spacer {
  z-index: 1;
}

/* Ensure gallery stays below header when pinned */
.gallery-wrap[style*="position: fixed"] {
  top: 81px !important;
  height: calc(100vh - 81px) !important;
}
