/* Main section styling */
.main {
  flex: 1;
  padding: 20px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}

.header-section {
  margin-bottom: 40px;
}

h1 {
  font-size: 2.5rem;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 20px;
}

.subtitle {
  font-size: 1.1rem;
  color: #6c757d;
  margin-bottom: 30px;
  line-height: 1.8;
}

.intro-text {
  font-size: 1.4rem;
  color: #abb4c7;
  margin-bottom: 40px;
}

.main-content {
  margin-bottom: 40px;
}

.content-paragraph {
  font-size: 1rem;
  color: #495057;
  margin-bottom: 30px;
  line-height: 1.7;
}

.section-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 20px;
  margin-top: 30px;
}

.current-role {
  font-size: 1rem;
  color: #495057;
  margin-bottom: 30px;
  line-height: 1.7;
}

.experience-section {
  margin-bottom: 30px;
}

.experience-intro {
  font-size: 1rem;
  color: #495057;
  margin-bottom: 15px;
}

.skills-list {
  list-style: none;
  margin-bottom: 30px;
}

.skills-list li {
  font-size: 1rem;
  color: #495057;
  margin-bottom: 8px;
  position: relative;
  padding-left: 25px;
}

.collaboration-text {
  font-size: 1rem;
  color: #495057;
  margin-bottom: 40px;
  line-height: 1.7;
}

.images-section {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 40px;
}

.image-container {
  flex: 1;
  min-width: 200px;
  max-width: 250px;
}

.image-container img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.image-container img:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* New sections styling */
.approach-section,
.learning-section,
.stack-section {
  margin-top: 50px;
  margin-bottom: 40px;
}

.approach-formula {
  text-align: left;
  margin: 30px 0;
  border-radius: 8px;
}

.formula-text {
  font-size: 1.1rem;
  font-weight: 600;
  color: #2c3e50;
  font-family: "Courier New", monospace;
}

.tools-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
  align-items: center;
  margin-left: 0;
}

.tool-item {
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 10px;
}

.tool-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.5rem;
  border-radius: 8px;
}

.stack-description {
  margin-top: 30px;
  font-size: 1rem;
  color: #495057;
  line-height: 1.7;
}

/* How I Work Section */
.work-process-section {
  margin-top: 60px;
  margin-bottom: 40px;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin-top: 40px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.process-card {
  background: #ffffff;
  padding: 30px 20px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  border: 1px solid #e9ecef;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.process-card img,
.process-image img {
  max-width: 100%;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
  height: auto;
}

.process-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.process-icon {
  margin-bottom: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 80px;
}

.process-image {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 18px;
}

.process-img {
  width: 100%;
  max-width: 220px;
  height: 100px;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}

.process-title {
  font-size: 1.3rem;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 6px;
  text-align: left;
}

.process-description {
  font-size: 0.95rem;
  color: #6c757d;
  line-height: 1.5;
  margin: 0;
  text-align: left;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  main {
    margin-top: 50px;
    padding: 20px 15px;
  }

  h1 {
    font-size: 2rem;
  }

  .images-section {
    flex-direction: column;
    align-items: center;
  }

  .image-container {
    max-width: 100%;
  }

  .tools-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
  }

  .approach-formula {
    padding: 15px;
  }

  .formula-text {
    font-size: 1rem;
  }

  .process-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .process-card {
    padding: 25px 15px;
  }
}

/* Another section */
.outside-work-section {
  max-width: 1200px;
  margin: 0 auto;
  border-radius: 16px;
}

.section-title {
  font-size: 28px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 20px;
}

.intro-text {
  color: #6b7280;
  font-size: 16px;
  line-height: 1.5;
  margin-bottom: 24px;
}

.main-description {
  font-size: 18px;
  font-weight: 500;
  color: #1f2937;
  line-height: 1.6;
  margin-bottom: 12px;
}

.sub-description {
  color: #6b7280;
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 32px;
}

.gallery-intro {
  color: #6b7280;
  font-size: 14px;
  margin-bottom: 20px;
}

.photo-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 200px);
  gap: 16px;
}

.photo-item {
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}

.photo-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.photo-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.photo-item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.1);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}

.photo-item:hover::before {
  opacity: 1;
}

.photo-item:nth-child(1) {
  grid-column: 1;
  grid-row: 1;
}

.photo-item:nth-child(2) {
  grid-column: 2;
  grid-row: 1;
}

.photo-item:nth-child(3) {
  grid-column: 3;
  grid-row: 1;
}

.photo-item:nth-child(4) {
  grid-column: 1;
  grid-row: 2;
}

.photo-item:nth-child(5) {
  grid-column: 2;
  grid-row: 2;
}

.photo-item:nth-child(6) {
  grid-column: 3;
  grid-row: 2;
}

.photo-item::after {
  content: attr(data-caption);
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
  color: white;
  padding: 20px 12px 12px;
  font-size: 12px;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 2;
}

.photo-item:hover::after {
  opacity: 1;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .outside-work-section {
    padding: 24px;
  }

  .photo-gallery {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(3, 180px);
    gap: 12px;
  }

  .photo-item:nth-child(1) {
    grid-column: 1;
    grid-row: 1;
  }

  .photo-item:nth-child(2) {
    grid-column: 2;
    grid-row: 1;
  }

  .photo-item:nth-child(3) {
    grid-column: 1;
    grid-row: 2;
  }

  .photo-item:nth-child(4) {
    grid-column: 2;
    grid-row: 2;
  }

  .photo-item:nth-child(5) {
    grid-column: 1;
    grid-row: 3;
  }

  .photo-item:nth-child(6) {
    grid-column: 2;
    grid-row: 3;
  }

  .section-title {
    font-size: 24px;
  }

  .main-description {
    font-size: 16px;
  }
}

/* Mobile responsiveness */
@media (max-width: 480px) {
  .photo-gallery {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(6, 200px);
  }

  .photo-item:nth-child(n) {
    grid-column: 1;
  }

  .photo-item:nth-child(1) {
    grid-row: 1;
  }
  .photo-item:nth-child(2) {
    grid-row: 2;
  }
  .photo-item:nth-child(3) {
    grid-row: 3;
  }
  .photo-item:nth-child(4) {
    grid-row: 4;
  }
  .photo-item:nth-child(5) {
    grid-row: 5;
  }
  .photo-item:nth-child(6) {
    grid-row: 6;
  }
}
