body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #1a1a1a;
  color: #fff;
}

/* Sticky header */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: #111;
  color: #fff;
  padding: 2rem 2rem; /* increased vertical padding for more height */
  z-index: 1000;
}

/* Flex layout for header */
.header-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Name/Logo styling */
header h1 {
  font-size: 1.5rem;
  margin: 0;
  font-weight: bold;
  color: #e1e1e1;
}

/* Nav links & icons */
header nav a {
  color: #d8d8d8;
  margin: 0 0.8rem;
  font-size: 1.rem;  /* normal size for text links */
  text-decoration: none;
  font-weight: bold;
}

header nav a:hover {
  color: #00ffcc;
}

header nav a i {
  color: #00fff7; /* light pink */
  font-size: 2rem; /* larger size only for icons */
}
header nav a i:hover {
  color: #ffb6c1; /* light pink on hover */
}

/* Push content down so it's not hidden under header */
.content {
  padding-top: 120px; /* increased to accommodate taller header */
}

/* Limit content width */
.container {
  max-width: 1000px;
  margin: 0 auto;       /* centers content */
  padding: 0 2rem;      /* breathing room */
}

/* Section styling */
section {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 2rem 0;
}

section:nth-child(odd) {
  background: #222;
  color: #fff;
}

section:nth-child(even) {
  background: #eee;
  color: #111;
}

/* Override for projects section - make it dark */
#projects {
  background: #111 !important;
  color: #fff !important;
}

/* Add padding to About section paragraph */
#about p {
  padding: 20px 40px;
  line-height: 1.6;
  font-size: xx-large;
  color: #a0a0a0;
}

/* Resume button */
.resume-btn {
  border: 1px solid #ffb6c1;
  padding: 0.3rem 0.7rem;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: bold;
  color: #ffb6c1;
}

.resume-btn:hover {
  background: #ffb6c1;
  color: #111;
}

.projects-carousel {
  position: relative;
  width: 100%;
  max-width: 800px;
  margin: 2rem auto;
  overflow: hidden;
  border-radius: 10px;
}

.carousel-container {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.carousel-slide {
  min-width: 100%;
  box-sizing: border-box;
}

.carousel-slide img,
.carousel-slide video {
  width: 100%;
  height: auto;
  display: block;
}

/* Navigation buttons */
.prev,
.next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0,0,0,0.5);
  color: white;
  border: none;
  font-size: 2rem;
  padding: 0.5rem 1rem;
  cursor: pointer;
  border-radius: 5px;
}

.prev { left: 10px; }
.next { right: 10px; }

.prev:hover,
.next:hover {
  background-color: rgba(0,0,0,0.8);
}

.project-gallery {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

.project-item {
  position: relative;
  width: 300px;
  height: 170px;
  cursor: pointer;
  overflow: hidden;
  border-radius: 10px;
}

.project-item img.thumbnail {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.3s ease;
}

.project-item video.project-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.projects-container {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.project-showcase {
  display: flex;
  gap: 0px;
  align-items: flex-start;
  margin: 2rem 0;
  width: 100%;
}

.project-carousel {
  flex: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0; /* Allow flex item to shrink */
  width: 100%;
}

.project-description {
  flex: 1;
  min-width: 100px;
  padding: 20px;
}

.description-content {
  color: #fff;
  text-align: left;
}

.description-title {
  margin: 0 0 15px 0;
  color: #00ffcc;
  font-size: 1.4rem;
  font-weight: bold;
  text-align: left;
}

.description-text {
  line-height: 1.6;
  margin-bottom: 20px;
  color: #e0e0e0;
  text-align: left;
}

.tech-stack {
  margin-bottom: 20px;
}

.tech-stack h4 {
  margin: 0 0 8px 0;
  color: #fff;
  font-size: 1rem;
}

.tech-tags {
  display: inline-block;
  background: linear-gradient(45deg, #00ffcc, #0073ff);
  color: #111;
  padding: 5px 10px;
  border-radius: 15px;
  font-size: 0.9rem;
  font-weight: bold;
}

.project-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.project-link {
  display: inline-block;
  padding: 8px 16px;
  background: transparent;
  border: 2px solid #00ffcc;
  color: #00ffcc;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: all 0.3s ease;
}

.project-link:hover {
  background: #00ffcc;
  color: #111;
}

/* Responsive design for smaller screens */
@media (max-width: 768px) {
  .project-showcase {
    flex-direction: column;
    gap: 20px;
  }
  
  .project-description {
    min-width: auto;
    width: 50%;
  }
}

.main-display {
  width: 100%;
  max-width: 600px;
  height: 350px;
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  margin-bottom: 15px;
}

.main-display img,
.main-display video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  position: absolute;
  top: 0;
  left: 0;
}

.main-display video {
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* Ensure video controls are visible when they exist */
.main-display video[controls] {
  cursor: default;
}

.main-display video:not([controls]) {
  cursor: pointer;
}

.main-display img.active {
  opacity: 1;
}

.thumbnails {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  width: 100%;
  max-width: 600px;
  padding: 10px 0;
}

.thumbnails img {
  width: 120px;
  height: 70px;
  object-fit: cover;
  cursor: pointer;
  border: 2px solid transparent;
  border-radius: 5px;
  transition: all 0.2s ease;
  position: relative;
}

.thumbnails img.active {
  border-color: #00ffcc;
}

.thumbnails img:hover {
  transform: scale(1.05);
}

/* Add video play icon overlay for video thumbnails */
.thumbnails img[data-type="video"]::after {
  content: '▶';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 18px;
  background: rgba(0, 0, 0, 0.7);
  border-radius: 50%;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.8;
}

/* Add image icon overlay for image thumbnails */
.thumbnails img[data-type="image"]::before {
  content: '🖼';
  position: absolute;
  top: 5px;
  right: 5px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  border-radius: 3px;
  padding: 2px 4px;
  font-size: 12px;
  opacity: 0.8;
}

/* Make the video section take full width */
.showcase-video {
    width: 100%;
    position: relative;
    overflow: hidden;
}

/* Make the video cover the entire section */
.showcase-video video {
    width: 100%;      /* full width */
    height: 100vh;    /* full viewport height */
    object-fit: cover; /* crop to fill without distortion */
    display: block;    /* remove inline spacing */
}
