

html {
  scroll-behavior: smooth;
}

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  overflow-x: hidden;
}

h1 {
  font-size: 32px;
  font-weight: 600;
  margin-bottom: 10px;
}

h2 {
  margin-top: 30px;
  font-size: 22px;
  border-bottom: 1px solid #ccc;
  padding-bottom: 5px;
}

a {
  color: #0073e6;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

#main {
  margin: 2.5% auto 0 auto;
  margin-left: 0;
  padding: 20px;
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
  min-height: 100vh;
}


.main-inner {
  max-width: 1000px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding: 0 24px;
  box-sizing: border-box;
}

/* Intro section layout */
.intro {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

/* Contact info */
.intro .info {
  max-width: 700px;
}

.intro .info h1 {
  font-size: clamp(32px, 7vw, 80px);
  margin-bottom: 10px;
}

.intro .info a {
  color: #0073e6;
  text-decoration: none;
}

.intro .info a:hover {
  text-decoration: underline;
}

.resume-layout {
  display: flex;
  align-items: flex-start;
  gap: 40px;
  margin-bottom: 60px;
  flex-wrap: wrap;
}

/* Left column: image */
.left-column img {
  width: 300px;
  height: 300px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.1);
}

/* Right column: name and all content */
.right-column {
  flex: 1;
  max-width: 800px;
}

.right-column h1 {
  font-size: 28px;
  margin-bottom: 10px;
}

.right-column a {
  color: #0073e6;
  text-decoration: none;
}

.right-column a:hover {
  text-decoration: underline;
}

/* Resume sections */
section {
  margin-top: 40px;
}

.project-links {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 20px;
}

/* Individual project card */
.project-card {
  display: block;
  padding: 20px;
  background-color: #f8f9fa;
  border: 1px solid #ddd;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  color: #333;
  text-decoration: none;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Hover effect */
.project-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
  background-color: #ffffff;
}

.project-card h3 {
  margin: 0 0 10px 0;
  font-size: 20px;
  color: #111;
}

.project-description {
  margin: 0 0 10px 0;
  font-size: 15px;
  color: #444;
  line-height: 1.4;
}

.project-tech {
  font-size: 14px;
  color: #666;
  font-style: italic;
}

/* Row container for name and icons */
.name-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

/* Keep name from wrapping awkwardly */
.my-name {
  margin: 0;
  font-size: 42px;
  white-space: nowrap;
}

/* Icons aligned to right of name */
.social-icons {
  display: flex;
  gap: 15px;
}

.social-icons a {
  color: #0073e6;
  font-size: 20px;
  transition: color 0.2s ease;
}

.social-icons a:hover {
  color: #005bb5;
}

.photo-stack {
  max-width: 100vw;
  overflow-x: auto;
  overflow-y: hidden;
  display: flex;
  gap: 20px;
  scroll-snap-type: x mandatory;
}

.photo-stack > * {
  flex: 0 0 auto;
  scroll-snap-align: start;
}

.photo-stack img {
  width: 80vw;
  max-width: 300px;
  aspect-ratio: 1 / 1;
  height: auto; /* overridden by aspect-ratio */
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.1);
}

/* Tooltip styling (shared) */
.photo-tooltip {
  position: relative;
  display: inline-block;
}

.tooltip-text {
  visibility: hidden;
  width: max-content;
  background-color: #333;
  color: #fff;
  text-align: center;
  padding: 8px 12px;
  border-radius: 6px;
  position: absolute;
  bottom: 90%;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.3s;
  z-index: 10;
}

.photo-tooltip:hover .tooltip-text {
  visibility: visible;
  opacity: 1;
}

.skills-list {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.skill-chip {
  background-color: #0073e6;  /* nice blue */
  border: 2px #f3f7ff solid;
  color: white;
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 14px;
  cursor: default;
  user-select: none;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.skill-chip:hover {
  background-color: #005bb5; /* darker blue on hover */
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.experience-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 60px 25px;
  margin-top: 20px;
  margin-bottom: 70px;
  justify-content: center;
}


.experience-card:hover {
  box-shadow: 0 6px 18px rgba(0,0,0,0.12);
  transform: translateY(-3px);
}

.company-logo {
  width: 60px;
  height: 60px;
  object-fit: contain;
  margin-right: 20px;
}

.experience-info h3 {
  margin: 0;
  font-size: 18px;
  color: #1a1a1a;
}

.experience-info p {
  margin: 4px 0 0 0;
  color: #555;
  font-size: 14px;
}

.experience-flip {
  perspective: 1000px;
  height: 60px; /* Or whatever height you want for the cards */
  position: relative;
}

.experience-card {
  display: flex;
  align-items: center;
  background-color: #f8f9fa;
  border: 1px solid #cbdaf1;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  transition: box-shadow 0.3s ease, transform 0.2s ease;
  width: 90%;
  height: 100%;
  cursor: pointer;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.6s;
}

.experience-flip.flipped .experience-card {
  transform: rotateY(180deg);
}

.card-front, .card-back {
  backface-visibility: hidden;
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  border-radius: 12px;
  padding: 20px;
  box-sizing: border-box;
  background-color: #f8f9fa;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.card-back {
  transform: rotateY(180deg);
  text-align: left;
  background-color: #e8f0fe;
}

.card-front {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
}

.sidenav {
  position: fixed;
  top: 0;
  left: 0; /* ✅ Visible by default */
  width: 175px;
  height: 100%;
  background-color: white;
  transition: left 0.3s ease;
  z-index: 1000;
  padding-top: 60px;
  box-shadow: 2px 0 8px rgba(0, 0, 0, 0.1);
  border-right: 1px solid #ccc;
}

.sidenav p {
  position: absolute;
  bottom: 75px;
  left: 35px;
  text-align: center;
}

  .sidenav.mobile-open {
    left: 0; /* slide in when open */
  }

  #hamburger-toggle {
    display: block;
    position: fixed;
    top: 15px;
    right: 15px;
    z-index: 1500;
    background: #111;
    color: white;
    font-size: 24px;
    border: none;
    border-radius: 6px;
    padding: 10px 14px;
    cursor: pointer;
  }

  .sidebar-toggle {
    display: none; /* hide the desktop toggle button */
  }

  .sidenav a:hover {
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.1);
  }

  .sidenav a {
    font-size: 18px;
  }

  .sidenav.collapsed .nav-link {
    opacity: 0;
    pointer-events: none;
    height: 0;
    overflow: hidden;
    font-size: 0;
    transition: opacity 0.9s ease;
  }

  .sidenav .nav-link {
    display: block;
    padding: 10px 20px;
    color: black;
    text-decoration: none;
    transition: opacity 0.2s ease;
    text-align: center;
  }

  .faq-container {
    margin-bottom: 5%;
  }

  .faq-item {
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.1);
    margin-top: 10px;
  }

  .faq-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
    background-color: #ffffff;
  }

  .faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out;
    opacity: 0;
    color: black;
    text-decoration: none;
    line-height: 20px;
  }

  .faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    cursor: pointer;
    color: black;
  }

  .faq-item.active .faq-answer {
    max-height: 300px;
    opacity: 1;
    transition: max-height 5s;
    margin: 1%;
  }

  .faq-item .icon {
    font-size: 24px;
    transition: transform 0.35s ease-in-out; /* Apply transition to the icon */
  }

  .faq-item.active .icon {
    transform: rotate(-180deg);
  }

  .places-container:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
  }

.places-container {
  padding: 0;
  border: 1px solid #ddd;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  position: relative;
  width: 100%;   /* Match FAQ container width */
  height: 225px; /* Adjust globe height */
}

.map-preview-wrapper {
  position: relative; /* allows absolute children */
  width: 100%;
  height: 225px; /* match your preview height */
  overflow: hidden;
  border-radius: 12px;
}

#map-preview {
  width: 100%;
  height: 100%;
}

.map-overlay-left {
  position: absolute;
  top: 50%;         /* center vertically */
  left: 20%;        /* center horizontally */
  transform: translate(-50%, -50%);
  color: white;     /* text color */
  font-size: 1.5rem;
  font-weight: bold;
  text-shadow: 0 2px 5px rgba(0,0,0,0.6); /* makes text readable */
  pointer-events: none; /* lets clicks go through to the map if needed */
}

.map-overlay-right {
  position: absolute;
  top: 50%;         /* center vertically */
  left: 80%;        /* center horizontally */
  transform: translate(-50%, -50%);
  color: white;     /* text color */
  font-size: 1.5rem;
  font-weight: bold;
  text-shadow: 0 2px 5px rgba(0,0,0,0.6); /* makes text readable */
  pointer-events: none; /* lets clicks go through to the map if needed */
}





@media (min-width: 641px) and (max-width: 960px) {
  #main {
    margin-left: 160px;
    padding: 20px;
  }

  .sidenav {
    width: 200px;
  }

  .sidebar-toggle {
    left: 160px;
  }

}

@media (max-width: 320px) {
  .map-overlay-left {
    display: none; 
  }

  .map-overlay-right {
    display: none;  
  }
}

@media (max-width: 375px) {
  .map-overlay-left {
    left: 45%; 
    font-size: larger;   
  }

  .map-overlay-right {
    left: 50%;  
    font-size: larger;      
  }
}

@media (max-width: 640px) {
  .sidenav {
    left: -250px; /* ❌ Start hidden ONLY on mobile */
  }

  .sidenav.mobile-open {
    left: 0; /* ✅ Slide in when open */
  }

  .sidenav p {
    left: 12px;
    font-size: small;
  }
  .map-overlay-left {
  left: 35%;      
  color: rgb(14, 35, 120);
  }

  .map-overlay-right {
    left: 65%;     
      color: rgb(14, 35, 120);
  }
}

@media (min-width:641px)  { 
  /* portrait tablets, portrait iPad, landscape e-readers, landscape 800x480 or 854x480 phones */ 
  
  #main {
    margin-left: 200px; /* reserve space for sidebar on the right */
    transition: margin-left 0.3s ease;
  }

 .sidenav {
    width: 200px;
  }

  .sidenav p {
    left: 22px;
    font-size: small;
  }

  .sidenav.collapsed ~ #main {
    margin-left: 50px; /* when collapsed */
  }
  
  #hamburger-toggle,
  .mobile-dropdown {
    display: none;
  }

  .sidenav, .sidebar-toggle {
    display: block;
  }

  .sidenav.collapsed {
    width: 50px;
  }

  /* Toggle button */
  .sidebar-toggle {
    position: fixed;
    top: 20px;
    left: 200px; /* default sidebar width */
    z-index: 1100;
    background-color: #111;
    color: white;
    padding: 10px 12px;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
    font-size: 18px;
    transition: left 0.3s ease;
  }

  .sidebar-toggle:hover {
    background-color: rgb(81, 81, 81);
  }

  /* Move toggle with collapsed sidebar */
  .sidenav.collapsed + .sidebar-toggle {
    left: 50px;
  }

  .sidenav.collapsed ~ #main {
    margin-left: 50px;
  }

.map-overlay-left {
  left: 15%;        /* center horizontally */
}

.map-overlay-right {
  left: 85%;        /* center horizontally */
}


}
@media (min-width:961px)  { 
  /* tablet, landscape iPad, lo-res laptops ands desktops */ 
  .photo-stack {
    flex-direction: column;
    overflow-x: visible;
    overflow-y: visible;
    scroll-snap-type: none;
    max-width: 100vw; /* constrain to viewport width */
  }

  .photo-stack > * {
    flex: unset;
  }

  .sidenav {
    width: 250px;
  }

  .sidebar-toggle {
    left: 250px; /* default sidebar width */
  }

  .sidenav p {
    left: 45px;
    font-size: small;
  }

}

@media (min-width:1025px) { /* big landscape tablets, laptops, and desktops */ 
    .sidenav p {
    left: 50px;
    font-size: small;
  }
}

@media (min-width:1281px) { /* hi-res laptops and desktops */ }