@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;700&display=swap');
/* Home section layout */
#home {
  padding: 0px 40px;
/* Logo stays left */
}

.home-content {
  display: flex;
  justify-content: space-between;
  align-items: center; /* centers text vertically relative to carousel */
  gap: 40px;
}

.text-section {
  max-width: 500px;  /* controls how far text stretches */
  text-align: left;
}

.text-section h1 {
  margin-bottom: 0px; /* spacing between h1 and p */
}

.text-section h2 {
  margin-bottom: 0; /* adds space before the h1 */
}

.text-section p {
  margin-top: 0;
  line-height: 1.5;
}

.home-content {
  display: flex;
  justify-content: space-between;
  align-items: center; /* vertically center text with carousel */
  gap: 40px;
}

.carousel {
  width: 550px;       /* fixed width */
  height: 550px;      /* fixed height */
  flex-shrink: 0;     /* prevents it from shrinking in flex */
  overflow: hidden;
  border-radius: 12px;
  position: relative;
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease;
}

.carousel img {
  width: 550px;       /* match carousel width */
  height: 550px;      /* match carousel height */
  object-fit: cover;
  flex-shrink: 0;
}

#carousel-caption {
    font-weight: 600;
    font-size: 20px;
    font-family: 'Inter', sans-serif;
    color: #3F71A8;
    line-height: 1.2; /* optional, for spacing */
    transition: opacity 0.5s ease; /* for fade in/out */
}

body {
  background-color: #ffffff;
  background-image: 
    linear-gradient(rgba(255,255,255,0.6), rgba(255,255,255,0.6)),  
  url('../images/litemodebg.svg');
  background-size: cover;        
  background-repeat: no-repeat;  
  background-position: center;   
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  letter-spacing: -0.05em;
  transition: background 0.3s, color 0.3s;
  position: relative;
  overflow-x: hidden;
  color: #0A0116;   /* 🔹 Light mode text color */
}

/* Dark mode */
body.dark-mode {
  background-color: #0A0116;
  background-image: 
    linear-gradient(rgba(10,1,22,0.8), rgba(10,1,22,0.8)),  
    url('../../images/darkmodebg.svg');
  background-size: cover;        
  background-repeat: no-repeat;  
  background-position: center;   
  color: #ffffff;  /* 🔹 Dark mode text color */
}


h1 {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    letter-spacing: -0.035em;
}

h2 {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    letter-spacing: -0.035em;
    color: #3F71A8;
}


section {
  min-height: 100vh; 
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

#about {
  padding: 20px 40px;      /* less top/bottom space */
  margin: 40px auto;       /* optional vertical spacing */
  text-align: left;
  min-height: auto;
}

#tech-stack {
  padding: 60px 40px;
  text-align: center;
}

#tech-stack h1 {
  margin-bottom: 40px;
  color: #3F71A8;
}

.tech-grid {
  display: flex;
  flex-wrap: wrap;              /* wrap to next line if needed */
  justify-content: center;      /* center all logos horizontally */
  gap: 20px;                    /* spacing between logos */
  padding: 20px 0;
}

.tech-item img {
  width: 60px;                  /* small, uniform size */
  height: 60px;
  object-fit: contain;           /* maintain logo proportions */
  transition: transform 0.3s;
}

.tech-item img:hover {
  transform: scale(1.2);         /* subtle hover effect */
}

/* Dark mode */
.dark-mode .tech-item p {
  color: #f5f5f5;
}


.main-navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 60px;
  background-color: #BEE5FF;
  display: flex;
  align-items: center;
  padding: 0 40px;
  z-index: 9999;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  justify-content: center;
  gap: 0;
}

.main-navbar > .logo {
  position: absolute;
  left: 40px;
  top: 0;
  height: 60px;
  display: flex;
  align-items: center;
}

.main-navbar > .navbar-links.external-links {
  position: absolute;
  right: 40px;
  top: 0;
  height: 60px;
  display: flex;
  align-items: center;
}


/* Logo stays left */
.logo {
  display: flex;
  align-items: center;
}

/* Center the main nav links */
.navbar-links.main-links {
    display: flex;
    gap: 24px;
    justify-content: center;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    margin: 0 auto;
}

/* External links stay on the right */
.navbar-links.external-links {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

.nav-btn {
  background: #BEE5FF;
  color: #fff;
  padding: 8px 16px;
  border-radius: 6px;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.3s;
  display: inline-flex;       /* fixes flex shrinking issue */
  align-items: center;
  justify-content: center;
  white-space: nowrap;        /* prevents text wrapping */
}

.nav-btn:hover {
  background: #FF9A85;
}

/* Graphics Gallery Styles */
.graphics-section {
  padding: 120px 40px 80px;
  min-height: 100vh;
}

.graphics-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 32px;
  margin-top: 40px;
}

.graphics-card {
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.graphics-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 12px rgba(0, 0, 0, 0.15);
}

.graphics-slider {
  position: relative;
  width: 100%;
  height: 250px;
  overflow: hidden;
}

.graphics-images {
  display: flex;
  transition: transform 0.3s ease-in-out;
  height: 100%;
}

.graphics-img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  flex-shrink: 0;
}

.slider-dots {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 2;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.dot.active {
  background: #fff;
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.3);
  color: white;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: background-color 0.3s ease;
  z-index: 2;
}

.slider-btn:hover {
  background: rgba(0, 0, 0, 0.5);
}

.slider-btn.prev {
  left: 10px;
}

.slider-btn.next {
  right: 10px;
}

.graphics-info {
  padding: 20px;
}

.graphics-info h3 {
  margin: 0 0 12px;
  color: #333;
  font-size: 1.25rem;
}

.graphics-info p {
  margin: 0 0 16px;
  color: #666;
  font-size: 0.9rem;
  line-height: 1.5;
}

.graphics-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  background: #FFE5E0;
  color: #FF9A85;
  padding: 4px 12px;
  border-radius: 16px;
  font-size: 0.8rem;
  font-weight: 500;
}

/* Make active nav link stand out */
.nav-btn.active {
  background: #FF9A85;
  color: white;
}

/* Projects Cards Row */
.card-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* exactly 3 columns */
  gap: 24px;                              /* spacing between cards */
  justify-items: center;                  /* centers cards horizontally in their column */
}

/* Individual Cards */
.card-row .card {
  width: 100%;
  max-width: 300px; /* controls card width */
  box-sizing: border-box;
}

.project-icons {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  padding-top: 8px;
}

/* wrapper anchor gets fixed square size so different image types are normalized */
.project-icons a {
  display: inline-flex;
  width: 32px;     /* tweak this to taste (32px is a nice default) */
  height: 32px;
  align-items: center;
  justify-content: center;
  text-decoration: none; /* remove possible underline */
}

/* make the image fill the wrapper while preserving aspect ratio */
.project-icons img {
  max-width: 100%;
  max-height: 100%;
  display: block;
  object-fit: contain; /* preserve proportions without stretching */
}

/* optional hover effect */
.project-icons a:hover img {
  transform: scale(1.12);
  transition: transform 150ms ease;
}

/* Optional: smaller screens */
@media (max-width: 960px) {
  .card-row {
    grid-template-columns: repeat(2, 1fr); /* 2 per row */
  }
}

@media (max-width: 600px) {
  .card-row {
    grid-template-columns: 1fr; /* 1 per row */
  }
}

.experience-wrapper {
  position: relative;
  width: 100%;
  padding-top: 48px;
  padding-bottom: 48px;
  overflow: visible;
}

.card h1 {
  font-weight: 500;
  letter-spacing: -0.025em;
}

.card h4 {
  font-weight: 400;
  letter-spacing: -0.025em;
}


.dark-mode {
  background-color: #0A0116 !important;
  color: #ffffff !important;
}

.card {
  width: 300px;
  height: 200px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  margin: 0;
  box-shadow: 0 4px 8px 0 rgb(198, 208, 227);
  transition: 0.3s;
  border-radius: 5px;
  text-align: center;
}


.dark-mode .card {
  background: #0A0116;
  color: #f5f5f5;
}

.card:hover {
  box-shadow: 0 8px 16px 0 rgb(184, 205, 234);
}

.container {
  padding: 2px 16px;
}

/* /////////Icon Styles///////// */
/*Github Icon*/
.icon-github svg path {
  fill: #ffffff;
  transition: fill 0.3s;
}
.dark-mode .icon-github svg path {
  fill: #ffffff;
}

/* Resume Icon */
.icon-resume svg path {
  fill: #ffffff;
  transition: fill 0.3s;
}
.dark-mode .icon-resume svg path {
  fill: #ffffff;
}

.icon-linkedin svg path {
  fill: #ffffff;
  transition: fill 0.3s;
}
.dark-mode .icon-linkedin svg path {
  fill: #ffffff;
}

* {
  box-sizing: border-box;
}

button {
  cursor: pointer;
  padding: 10px 20px;
  font-size: 16px;
  border: none;
  border-radius: 5px;
  background-color: #95afec;
  color: white;
  transition: background 0.3s;
}

button:hover {
  background-color: #86aede;
}

/* Add this to your css/style.css */
/*Horizontal experience cards*/
.experience-row {
  display: flex;
  flex-direction: column;
  gap: 32px;
  align-items: center;
}

.experience-card {
  display: flex;
  align-items: center;
  width: 600px;
  min-height: 140px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  margin-bottom: 16px;
  transition: background 0.3s, color 0.3s;
}

.experience-card .container {
  padding: 24px;
  width: 100%;
}

.experience-card-left {
  flex-direction: row;
}

.experience-card-right {
  flex-direction: row;
}

.experience-img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 12px 0 0 12px;
  margin: 0 24px;
  transition: opacity 0.3s ease;
}

.experience-img[data-gif] {
  position: relative;
}

.experience-img[data-gif]::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: var(--gif-url);
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: inherit;
}

.experience-card:hover .experience-img[data-gif]::before {
  opacity: 1;
}

.experience-card-right .container {
  text-align: right;
  padding: 24px;
  width: 100%;
}

.experience-card-right .experience-img {
  margin: 0 0 0 24px; /* Only left margin for spacing from content */
  border-radius: 0 12px 12px 0; /* Rounded corners on the right */
  align-self: stretch; /* Makes image flush with the card's right edge */
  object-fit: cover;
}

.experience-card-left .experience-img {
  margin: 0 24px 0 0; /* right margin only */
  border-radius: 12px 0 0 12px; /* rounded corners on the left */
}

.experience-card-left .container {
  text-align: left;
  padding: 24px;
  width: 100%;
}


.dark-mode .experience-card {
  background: #0A0116;
  color: #f5f5f5;
}

/* Timeline scoped to Experience section */
#experience {
  justify-content: flex-start;
  padding: 64px 0;
}

#experience h1 { /*this creates space between the header and the timeline*/
  margin-bottom: 100px;
}

#experience h4 { /*this creates space between the header and the timeline*/
  font-family: "Inter", sans-serif;
  font-weight: 500;
}

#experience h5 { /*this creates space between the header and the timeline*/
  font-family: "Inter", sans-serif;
  font-weight: 400;
  font-style: italic;
}

#experience .experience-row {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 2px 1fr;
  column-gap: 24px;
  --timeline-gap: 96px;
  grid-auto-rows: var(--timeline-gap);
}

#experience .experience-row::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: #dfe6f7;
  transform: translateX(-1px);
  z-index: 1;
}

.dark-mode #experience .experience-row::before {
  background: #0A0116;
}

#experience .experience-card {
  position: relative;
}

#experience .experience-card-left {
  grid-column: 1;
  justify-self: end;
}

#experience .experience-card-left:nth-child(1) { grid-row: 1; }
#experience .experience-card-left:nth-child(3) { grid-row: 3; }
#experience .experience-card-left:nth-child(5) { grid-row: 5; }
#experience .experience-card-left:nth-child(7) { grid-row: 7; }
#experience .experience-card-left:nth-child(9) { grid-row: 9; }

#experience .experience-card-right {
  grid-column: 3;
  justify-self: start;
}

#experience .experience-card-right:nth-child(2) { grid-row: 2; }
#experience .experience-card-right:nth-child(4) { grid-row: 4; }
#experience .experience-card-right:nth-child(6) { grid-row: 6; }
#experience .experience-card-right:nth-child(8) { grid-row: 8; }
#experience .experience-card-right:nth-child(10) { grid-row: 10; }

#experience .experience-card-left::after,
#experience .experience-card-right::after {
  content: "";
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #95afec;
  box-shadow: 0 0 0 3px #ffffff;
}

.dark-mode #experience .experience-card-left::after,
.dark-mode #experience .experience-card-right::after {
  box-shadow: 0 0 0 3px #222;
}

#experience .experience-card-left::after { right: -18px; }
#experience .experience-card-right::after { left: -18px; }

/* Optional: responsive tweak for narrow screens */
@media (max-width: 900px) {
  #experience .experience-row {
    grid-template-columns: 1fr;
  }
  #experience .experience-row::before {
    left: 24px;
    transform: none;
  }
  #experience .experience-card {
    width: 100%;
    max-width: none;
    justify-self: stretch;
  }
  #experience .experience-card-left,
  #experience .experience-card-right {
    grid-column: 1;
    justify-self: stretch;
    transform: none;
  }
  #experience .experience-card::after {
    display: none;
  }
}

.experience-card .container h4 {
  margin-bottom: 4px;  /* tighter spacing under the title */
}

.experience-card .container h5 {
  margin-top: 2px;
  margin-bottom: 4px;  /* tighter spacing under the title */
}

.experience-card .container p {
  margin-top: 10px;   /* small gap above */
  margin-bottom: 2px; /* keeps text blocks close together */
  line-height: 1.4;  /* improves readability */
}


.carousel {
  position: relative;
  width: 550px;
  height: 550px;
  overflow: hidden;
  border-radius: 12px;
  margin: 40px auto;
  margin-left: 200px;
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease;
}

.carousel img {
  width: 550px;
  height: 550px;
  object-fit: cover;
  flex-shrink: 0;
}

/* Dot container */
.carousel-btn-container {
  position: absolute;
  bottom: 15px;
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 10px;
}

/* Dot buttons */
.carousel-btn {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #BEE5FF;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.3s;
}

.carousel-btn.active {
  background: #FFC7BF;
}