/* ========================================
   Reset & Base Styles
   ======================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background-color: #181d21;
  color: #f5f5f5;
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ========================================
   Typography
   ======================================== */

h1 {
  font-size: 40px;
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 0.5rem;
}

h2 {
  font-size: 26px;
  font-weight: 500;
  line-height: 1.3;
  margin-bottom: 1.5rem;
}

h3 {
  font-size: 20px;
  font-weight: 500;
  line-height: 1.4;
  margin-bottom: 1rem;
}

p {
  margin-bottom: 1.25rem;
  color: rgba(245, 245, 245, 0.9);
}

a {
  color: #38e08f;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

a:hover {
  opacity: 0.8;
  text-decoration: underline;
}

a:focus {
  outline: 2px solid #38e08f;
  outline-offset: 2px;
  border-radius: 2px;
}

/* ========================================
   Layout Container
   ======================================== */

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

/* ========================================
   Photo Gallery (Left Column on Desktop)
   ======================================== */

.gallery-column {
  display: none;
}

.photo-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  position: sticky;
  top: 2rem;
  align-self: start;
}

.gallery-item {
  margin: 0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  background-color: rgba(255, 255, 255, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.gallery-item:focus-within {
  outline: 2px solid #38e08f;
  outline-offset: 2px;
}

.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.02);
  filter: brightness(1.1);
}

.gallery-item figcaption {
  padding: 8px 12px;
  font-size: 12px;
  color: rgba(245, 245, 245, 0.4);
  line-height: 1.4;
  transition: color 0.2s ease;
}

.gallery-item:hover figcaption {
  color: rgba(245, 245, 245, 0.6);
}

/* Mobile Gallery (Horizontal Scroll) */
.mobile-gallery {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  gap: 16px;
  padding-bottom: 8px;
  margin-bottom: 2rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

@media (min-width: 1024px) {
  .mobile-gallery {
    display: none;
  }
}

.mobile-gallery::-webkit-scrollbar {
  height: 6px;
}

.mobile-gallery::-webkit-scrollbar-track {
  background: transparent;
}

.mobile-gallery::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
}

.mobile-gallery .gallery-item {
  flex: 0 0 85%;
  scroll-snap-align: start;
  min-width: 0;
}

.mobile-gallery .gallery-item figcaption {
  font-size: 11px;
  color: rgba(245, 245, 245, 0.4);
}

/* ========================================
   Main Content Column
   ======================================== */

.content-column {
  max-width: 800px;
  margin: 0 auto;
}

/* ========================================
   Header
   ======================================== */

.site-header {
  margin-bottom: 3rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.header-name-container {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1rem;
}

.header-portrait {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
}

.site-logo {
  font-size: 32px;
  font-weight: 600;
  margin: 0;
  color: #f5f5f5;
}

.main-nav {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.nav-link {
  color: rgba(245, 245, 245, 0.75);
  font-size: 15px;
  font-weight: 400;
  text-decoration: none;
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: #38e08f;
  text-decoration: none;
}

.nav-link:focus {
  color: #38e08f;
  outline: 2px solid #38e08f;
  outline-offset: 2px;
  border-radius: 2px;
}

/* ========================================
   Content Sections
   ======================================== */

.content-section {
  margin-bottom: 4rem;
}

.section-heading {
  font-size: 26px;
  font-weight: 500;
  margin-bottom: 2rem;
  color: #f5f5f5;
}

.section-subtitle {
  font-size: 26px;
  font-weight: 400;
  margin-bottom: 2rem;
  color: rgba(245, 245, 245, 0.9);
  line-height: 1.4;
}

.bio-content {
  margin-bottom: 2rem;
}

.bio-content p {
  margin-bottom: 1.5rem;
  font-size: 17px;
  line-height: 1.65;
}

/* ========================================
   Skills Line
   ======================================== */

.skills-line {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.skill-tag {
  display: inline-block;
  padding: 0.5rem 1rem;
  background-color: rgba(56, 224, 143, 0.1);
  color: #38e08f;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 400;
  border: 1px solid rgba(56, 224, 143, 0.2);
}

/* ========================================
   Work Section
   ======================================== */

.work-content p {
  margin-bottom: 1.5rem;
  font-size: 17px;
  line-height: 1.65;
}

/* ========================================
   Timeline
   ======================================== */

.timeline {
  position: relative;
  padding-left: 2rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: rgba(255, 255, 255, 0.15);
}

.timeline-subsection {
  font-size: 22px;
  font-weight: 500;
  margin: 3rem 0 2rem 0;
  color: #f5f5f5;
}

.timeline-subsection:first-child {
  margin-top: 0;
}

.timeline-entry {
  position: relative;
  margin-bottom: 3rem;
  padding-left: 2rem;
}

.timeline-marker {
  position: absolute;
  left: -1.5rem;
  top: 0.5rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #38e08f;
  border: 2px solid #181d21;
  box-shadow: 0 0 0 2px rgba(56, 224, 143, 0.3);
}

.timeline-card {
  background-color: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 1.5rem;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.timeline-card:hover {
  background-color: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.15);
}

.timeline-header {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.timeline-role {
  font-weight: 500;
  font-size: 18px;
  color: #f5f5f5;
}

.timeline-company {
  font-size: 16px;
  color: #38e08f;
}

.timeline-company a {
  color: #38e08f;
}

.timeline-date {
  display: block;
  font-size: 14px;
  color: rgba(245, 245, 245, 0.6);
  margin-bottom: 0.75rem;
}

.timeline-description {
  font-size: 15px;
  line-height: 1.6;
  color: rgba(245, 245, 245, 0.85);
  margin: 0;
}

.timeline-images {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.timeline-image {
  margin: 0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  background-color: rgba(255, 255, 255, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.timeline-image:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.timeline-image img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.timeline-image:hover img {
  transform: scale(1.02);
  filter: brightness(1.1);
}

.timeline-image figcaption {
  padding: 8px 12px;
  font-size: 12px;
  color: rgba(245, 245, 245, 0.4);
  line-height: 1.4;
  transition: color 0.2s ease;
}

.timeline-image:hover figcaption {
  color: rgba(245, 245, 245, 0.6);
}

.timeline-videos {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.timeline-video-item {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.video-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  color: rgba(245, 245, 245, 0.9);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
}

.video-meta {
  font-size: 13px;
  color: rgba(245, 245, 245, 0.5);
  white-space: nowrap;
  flex-shrink: 0;
  font-weight: 400;
}

.video-embed {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 8px;
  background-color: rgba(0, 0, 0, 0.3);
}

.video-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* ========================================
   Media Section
   ======================================== */

.contact-content {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem 0;
}

.contact-button {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  background-color: rgba(56, 224, 143, 0.1);
  color: #38e08f;
  border: 1px solid rgba(56, 224, 143, 0.3);
  border-radius: 8px;
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
}

.contact-button:hover {
  background-color: rgba(56, 224, 143, 0.15);
  border-color: rgba(56, 224, 143, 0.5);
  color: #38e08f;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(56, 224, 143, 0.2);
  text-decoration: none;
}

.contact-button:focus {
  outline: 2px solid #38e08f;
  outline-offset: 2px;
  border-radius: 8px;
}

.contact-button svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.media-image {
  margin: 2rem 0 0 0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  background-color: rgba(255, 255, 255, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.media-image:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.media-image img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.media-image:hover img {
  transform: scale(1.02);
  filter: brightness(1.1);
}

.media-image figcaption {
  padding: 12px;
  font-size: 13px;
  color: rgba(245, 245, 245, 0.4);
  line-height: 1.4;
  transition: color 0.2s ease;
}

.media-image:hover figcaption {
  color: rgba(245, 245, 245, 0.6);
}

.media-videos {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.media-subheading {
  font-size: 20px;
  font-weight: 500;
  margin-bottom: 1.5rem;
  color: #f5f5f5;
}

.video-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.video-item {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.video-item:last-child {
  border-bottom: none;
}

.video-link {
  flex: 1;
  color: rgba(245, 245, 245, 0.85);
  font-size: 15px;
  line-height: 1.5;
  text-decoration: none;
  transition: color 0.2s ease;
}

.video-link:hover {
  color: #38e08f;
  text-decoration: underline;
}

.video-duration {
  font-size: 13px;
  color: rgba(245, 245, 245, 0.5);
  white-space: nowrap;
  flex-shrink: 0;
}

/* ========================================
   Footer
   ======================================== */

.site-footer {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  text-align: center;
}

.copyright {
  font-size: 14px;
  color: rgba(245, 245, 245, 0.6);
  margin-bottom: 1.5rem;
}

.footer-nav {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  align-items: center;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: rgba(245, 245, 245, 0.6);
  transition: color 0.2s ease, transform 0.2s ease;
  border-radius: 50%;
}

.social-link:hover {
  color: #38e08f;
  transform: translateY(-2px);
  text-decoration: none;
}

.social-link:focus {
  color: #38e08f;
  outline: 2px solid #38e08f;
  outline-offset: 2px;
}

.social-link svg {
  width: 20px;
  height: 20px;
}

/* ========================================
   Desktop Layout (1024px and up)
   ======================================== */

@media (min-width: 1024px) {
  .container {
    padding: 48px 72px;
  }

  h1 {
    font-size: 48px;
  }

  h2 {
    font-size: 30px;
  }

  h3 {
    font-size: 22px;
  }

  body {
    font-size: 18px;
  }

  .header-portrait {
    width: 100px;
    height: 100px;
  }

  .site-logo {
    font-size: 40px;
  }

  .section-heading {
    font-size: 30px;
  }

  .section-subtitle {
    font-size: 30px;
  }

  .bio-content p {
    font-size: 18px;
  }

  .work-content p {
    font-size: 18px;
  }

  .media-content p {
    font-size: 18px;
  }

  .timeline {
    padding-left: 3rem;
  }

  .timeline::before {
    left: 0.5rem;
  }

  .timeline-entry {
    padding-left: 3rem;
  }

  .timeline-marker {
    left: -2.5rem;
  }

  .timeline-card {
    padding: 2rem;
  }

  .timeline-header {
    flex-direction: row;
    align-items: baseline;
    gap: 1rem;
  }

  .timeline-role {
    font-size: 20px;
  }

  .timeline-company {
    font-size: 17px;
  }

  .timeline-images {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .timeline-image figcaption {
    font-size: 13px;
  }

  .video-title {
    font-size: 16px;
  }

  .video-meta {
    font-size: 14px;
  }
}

/* ========================================
   Tablet Layout (768px - 1023px)
   ======================================== */

@media (min-width: 768px) and (max-width: 1023px) {
  .container {
    padding: 36px;
  }

  h1 {
    font-size: 36px;
  }

  h2 {
    font-size: 24px;
  }

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

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

/* ========================================
   Mobile Layout (up to 767px)
   ======================================== */

@media (max-width: 767px) {
  .container {
    padding: 24px;
  }

  h1 {
    font-size: 32px;
  }

  h2 {
    font-size: 22px;
  }

  h3 {
    font-size: 18px;
  }

  .header-portrait {
    width: 60px;
    height: 60px;
  }

  .header-name-container {
    gap: 1rem;
  }

  .site-logo {
    font-size: 28px;
  }

  .video-link {
    font-size: 14px;
  }

  .video-duration {
    font-size: 12px;
  }

  .section-heading {
    font-size: 22px;
  }

  .section-subtitle {
    font-size: 22px;
  }

  .main-nav {
    gap: 1.5rem;
  }

  .nav-link {
    font-size: 14px;
  }

  .bio-content p {
    font-size: 16px;
  }

  .work-content p {
    font-size: 16px;
  }

  .media-content p {
    font-size: 16px;
  }

  .timeline {
    padding-left: 1.5rem;
  }

  .timeline-entry {
    padding-left: 1.5rem;
    margin-bottom: 2rem;
  }

  .timeline-marker {
    left: -1.25rem;
    width: 10px;
    height: 10px;
  }

  .timeline-card {
    padding: 1.25rem;
  }

  .timeline-role {
    font-size: 17px;
  }

  .timeline-company {
    font-size: 15px;
  }

  .timeline-description {
    font-size: 14px;
  }

  .skills-line {
    gap: 0.5rem;
  }

  .skill-tag {
    font-size: 13px;
    padding: 0.4rem 0.8rem;
  }

  .timeline-images {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .timeline-images {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .timeline-image figcaption {
    font-size: 11px;
  }

  .video-title {
    font-size: 14px;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }

  .video-meta {
    font-size: 12px;
  }

  .timeline-videos {
    gap: 1.5rem;
  }
}

  .media-image {
    margin: 1.5rem 0 0 0;
  }

  .media-image figcaption {
    font-size: 12px;
  }
}

