/* GLOBAL RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  background-color: #111;
  color: #fff;
  font-family: 'Inter', sans-serif;
  overflow-x: hidden;
}

/* ========================================= */
/* UPDATED HEADER STYLING */
/* ========================================= */

.pill-nav {
  position: fixed;
  top: 30px;
  left: 50%;
  transform: translateX(-50%);

  /* Glassmorphism Effect */
  background: rgba(30, 30, 30, 0.8);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.1);

  padding: 8px 8px; /* Tighter padding for the container */
  border-radius: 50px;

  display: flex;
  align-items: center;
  gap: 10px; /* Space between the 3 main sections */
  z-index: 1000;

  /* Ensure height is consistent */
  height: 60px;
}

/* --- 1. PROFILE PICTURE & TOOLTIP --- */
.nav-profile-container {
  position: relative; /* Anchor for the absolute tooltip */
  display: flex;
  align-items: center;
  cursor: pointer;
  margin-left: 5px;
}

.nav-profile-img {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #333;
  transition: transform 0.3s;
}

.nav-profile-container:hover .nav-profile-img {
  transform: scale(1.05);
  border-color: #fff;
}

/* The Tooltip (Hidden by default) */
.work-tooltip {
  position: absolute;
  left: 50%;
  top: 140%; /* Pushes it below the image */
  transform: translateX(-50%) translateY(10px); /* Start slightly lower */

  background: #222;
  color: #fff;
  padding: 8px 15px;
  border-radius: 20px;
  font-size: 0.8rem;
  white-space: nowrap; /* Keeps text on one line */
  border: 1px solid #444;

  /* Animation States */
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;

  display: flex;
  align-items: center;
  gap: 8px;
}

/* Show Tooltip on Hover */
.nav-profile-container:hover .work-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0); /* Slide up into place */
}

/* The Green Dot inside tooltip */
.dot {
  width: 8px;
  height: 8px;
  background-color: #0abab5;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 5px #0abab5;
}

/* --- 2. NAVIGATION LINKS (Center) --- */
.nav-links {
  list-style: none;
  display: flex;
  gap: 5px; /* Small gap between pills */
  background: transparent;
  padding: 0 10px;
  margin: 0;
}

.nav-links a {
  color: #aaa;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;

  /* The Pill Shape Dimensions */
  padding: 10px 20px;
  border-radius: 30px;

  transition: all 0.3s ease;
}

/* The "Pill" Hover Effect */
.nav-links a:hover,
.nav-links a.active {
  background-color: rgba(255, 255, 255, 0.1); /* Grey Pill Background */
  color: #0abab5; /* White Text */
}

/* Light Mode Fix for Nav Links */
body.light-mode .nav-links a:hover,
body.light-mode .nav-links a.active {
  background-color: rgba(0, 0, 0, 0.05); /* Light Grey Pill in Light Mode */
  color: #000;
}

/* --- 3. CONTACT BUTTON (Right) --- */
.btn-contact {
  background: #fff;
  color: #000;
  padding: 12px 25px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.2s;
  white-space: nowrap;
}

.btn-contact:hover {
  transform: scale(1.05);
}

/* Mobile Responsiveness */
@media (max-width: 900px) {
  .pill-nav {
    width: 90%;
    justify-content: space-between;
    padding: 5px 15px;
  }
  .nav-links {
    display: none;
  } /* Hide links on mobile for simplicity */
  .btn-contact {
    padding: 8px 15px;
    font-size: 0.8rem;
  }
  .nav-profile-img {
    width: 35px;
    height: 35px;
  }
}
/* --- THE SCROLL STAGE --- */
.scroll-stage {
  position: relative;
  height: 280vh; /* Long scroll area for smooth animation */
  width: 100%;
}

/* THE STICKY CARD WRAPPER */
.sticky-card-wrapper {
  position: sticky;
  top: 0;
  height: 100vh;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center; /* This ensures the image is DEAD CENTER vertically */
  z-index: 5;
  perspective: 1200px;
  pointer-events: none;
  overflow: visible;
  padding-top: 15vh;
}

/* THE FLIP CARD ITSELF */
.flip-card-inner {
  position: relative;
  /* UPDATED: Made card Larger to match your image */
  width: 360px;
  height: 520px;
  text-align: center;
  transform-style: preserve-3d;
  will-change: transform;
  margin-right: 0.8rem;
}

.flip-card-front,
.flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  border-radius: 20px;
  overflow: visible; /* Changed to visible so Badge can pop out */
  box-shadow: 0 20px 50px #0abab5;
  background-color: #222;
}

.flip-card-front img,
.flip-card-back img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
}
.flip-card-back {
  transform: rotateY(180deg);
}

/* --- THE GREEN BADGE (Restored) --- */
/* --- 3D FLIPPING BADGE ANIMATION --- */

.sticker-badge {
  position: absolute;
  bottom: 30px;
  left: -40px;
  width: 90px;
  height: 90px;
  perspective: 1000px; /* Needed for 3D effect */
  z-index: 10;

  /* Keep the fade-out scroll logic we added earlier */
  transition: opacity 0.3s ease;
}

.badge-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.6s;
  transform-style: preserve-3d;

  /* The Animation Loop */
  animation: badgeFlip 4s infinite ease-in-out;
}

/* Common style for both sides (Green Circle) */
.badge-side {
  position: absolute;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden; /* Hides the back when turned */

  background-color: #0abab5; /* Lime Green */
  color: #000;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: bold;
  box-shadow: 0 10px 20px#0ABAB5 (204, 255, 0, 0.3);
}

/* Front Side (Hand) */
.badge-front {
  font-size: 2rem;
}

/* Back Side ("Hi") - Rotated 180deg so it's ready to show */
.badge-back {
  font-size: 2.2rem;
  font-family: 'Oswald', sans-serif;
  transform: rotateY(180deg);
}

/* The Keyframes: Flip -> Wait -> Flip Back -> Wait */
@keyframes badgeFlip {
  0%,
  40% {
    transform: rotateY(0deg);
  } /* Show Hand */
  50%,
  90% {
    transform: rotateY(180deg);
  } /* Show "Hi" */
  100% {
    transform: rotateY(0deg);
  } /* Back to Hand */
}

/* Mobile Adjustment */
@media (max-width: 900px) {
  .sticker-badge {
    width: 70px;
    height: 70px;
    left: -20px;
    bottom: 20px;
  }
  .badge-front {
    font-size: 1.5rem;
  }
  .badge-back {
    font-size: 1.5rem;
  }
}
.content-layer {
  position: absolute;
  width: 100%;
  height: 100vh;
  padding: 0 5%;
  display: flex;
  align-items: center;
  z-index: 10;
}

/* --- LAYER 1: HERO TEXT (Centered) --- */
.hero-layer {
  position: absolute;
  top: 0;
  width: 100%;
  height: 100vh; /* Matches Sticky Wrapper Height */

  /* GRID FOR PERFECT ALIGNMENT */
  display: grid;
  /* Middle column is slightly wider than card (360px card -> 380px gap) */
  grid-template-columns: 1fr 380px 1fr;
  align-items: center; /* Centers text Vertically */
}

.hero-col {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-col.left {
  text-align: right;
  padding: 50px;
  margin-right: 2rem;
}
.hero-col.right {
  text-align: left;
  /* UPDATED: Removed the transform/padding so it is PERFECTLY centered */
  transform: none;
  padding: 50px;
  margin-top: 85px;
  margin-right: 2rem;
}
/* ========================================= */
/* ALIGNMENT FIX (Match Projects Section)    */
/* ========================================= */

.services-layer,
.about-layer {
  /* 1. Force them to center like the Project container */
  left: 50% !important;
  transform: translateX(-50%) !important;

  /* 2. Match the exact width of the Project Wrapper */
  width: 100% !important;
  max-width: 1200px !important;

  /* 3. Remove the wide percentage padding that misaligns them */
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* Ensure Mobile still has breathing room */
@media (max-width: 1250px) {
  .services-layer,
  .about-layer {
    width: 90% !important; /* Add margins on smaller screens */
    padding-left: 0 !important;
  }
}
/* LAYER 2: SERVICES */
.services-layer {
  top: 100vh;
  justify-content: space-between;
  margin-top: -50px;
}
.services-text {
  flex: 1;
  margin-right: 50px;
  max-width: 600px;
  margin-top: -150px;

  position: relative;
  z-index: 20;
}

/* LAYER 3: ABOUT */
.about-layer {
  top: 200vh;
  justify-content: space-between;
  height: 100vh;
}
.about-text {
  flex: 1;
  margin-right: 50px;
  margin-top: -20rem;
}

/* SPACER */
.right-spacer {
  width: 360px;
  height: 100%;
}
.content-layer {
  position: absolute;
  width: 100%;
  height: 100vh;
  padding: 0 5%;
  display: flex;
  align-items: center;
  z-index: 10;
}

/* TYPOGRAPHY */
.giant-text {
  font-family: 'Oswald', sans-serif;
  font-size: 4rem;
  line-height: 1;
  text-transform: uppercase;
  font-weight: 700;
}
.small-tag {
  font-size: 1.2rem;
  letter-spacing: 4px;
  color: #888;
  text-transform: uppercase;
}
.sub-text {
  margin-top: 15px;
  max-width: 300px;
  color: #aaa;
  font-size: 1rem;
  text-align: justify;
}
.section-title {
  font-family: 'Oswald', sans-serif;
  font-size: 3.5rem;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.section-desc {
  color: #aaa;
  font-size: 1.1rem;
  margin-bottom: 40px;
  max-width: 650px;
}
.section-desc1 {
  color: #aaa;
  font-size: 1.1rem;
  margin-bottom: 40px;
  max-width: 650px;
  margin-left: 17rem;
}
/* ========================================= */
/* BUTTER-SMOOTH ACCORDION (NO JUMPING)      */
/* ========================================= */

.service-list {
  border-top: none;
  width: 90%;
}

.service-item {
  border-bottom: 1px solid #ccc;
  cursor: pointer;
  transition: background-color 0.3s ease;
}
.service-item:hover {
  border-bottom: 1px solid #0abab5;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

/* --- THE HEADER --- */
.s-header {
  display: flex;
  align-items: center;
  padding: 15px 0;
  transition: padding 0.3s;
  max-width: rem;
}

.s-num {
  color: #555;
  margin-right: 20px;
  font-size: 1.2rem;
}
.s-name {
  flex-grow: 1;
  font-family: 'Oswald', sans-serif;
  font-size: 1.6rem;
  transition: color 0.3s;
}
.s-arrow {
  font-size: 2rem;
  transform: rotate(90deg);
  transition: transform 0.4s;
}

/* --- THE BODY (Grid Animation Trick) --- */
/* This animates from 0 space to 1 fraction of space smoothly */
/* --- ACCORDION DETAILS (Checkmark Style) --- */
/* --- THE BODY (Hidden) --- */
.s-body {
  display: grid;
  grid-template-rows: 0fr; /* Collapsed */
  transition: grid-template-rows 0.5s ease-out;
}
.s-body-inner {
  overflow: hidden;
  padding-left: 45px;
}

.detail-item {
  display: flex;
  align-items: center;
  gap: 15px; /* Space between icon and text */
  margin-bottom: 12px;
  font-size: 1rem;
  color: #999;

  /* Animation setup */
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity 0.5s,
    transform 0.5s;
}
/* --- INCREASE LINE SPACING --- */

.detail-item,
.s-body p {
  /* Existing styles... */
  color: #999;
  font-size: 1rem;

  /* NEW: Controls the gap between lines */
  line-height: 1.8;
}
/* The Checkmark Icon */
.detail-item i {
  font-size: 1.2rem;
  color: #0abab5; /* Tiffany Blue Icon */
}

/* Reveal Animation on Hover */
.service-item:hover .detail-item {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger the animation slightly for a premium feel */
.service-item:hover .detail-item:nth-child(1) {
  transition-delay: 0s;
}
.service-item:hover .detail-item:nth-child(2) {
  transition-delay: 0.1s;
}
.service-item:hover .detail-item:nth-child(3) {
  transition-delay: 0.2s;
}

/* Light Mode Support */
body.light-mode .detail-item {
  color: #555;
}
/* Icons stay Tiffany Blue in light mode */

/* Inner wrapper is needed for the grid trick to work */
.s-body-inner {
  overflow: hidden;
}

/* Content Styling */
.s-body p {
  color: #999;
  margin-bottom: 8px;
  font-size: 1rem;
  padding-left: 45px; /* Indent */

  /* Small slide-up effect for text */
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity 0.5s,
    transform 0.5s;
}

/* --- HOVER STATES --- */

/* 1. Header Changes */
.service-item:hover .s-header {
  padding-bottom: 10px; /* Slight movement */
}
.service-item:hover .s-name {
  color: #0abab5;
}
.service-item:hover .s-arrow {
  transform: rotate(-90deg);
  color: #0abab5;
}

/* 2. Open Accordion (0fr -> 1fr) */
.service-item:hover .s-body {
  grid-template-rows: 1fr;
}

/* 3. Reveal Text */
.service-item:hover .s-body p {
  opacity: 1;
  transform: translateY(0);
}

/* Add padding to the bottom ONLY when open */
.service-item:hover .s-body-inner {
  padding-bottom: 25px;
}

/* Light Mode Support */
body.light-mode .service-list,
body.light-mode .service-item {
  border-color: #ccc;
}
body.light-mode .s-name {
  color: #000;
}
body.light-mode .s-body p {
  color: #555;
}
.arrow-icon {
  font-size: 2rem;
  transform: rotate(90deg);
}
.stats-row {
  display: flex;
  gap: 40px;
  margin-bottom: 30px;
}
.stat-box {
  display: flex;
  flex-direction: column;
}
.stat-num {
  font-family: 'Oswald', sans-serif;
  font-size: 2.5rem;
  color: #0abab5;
  font-weight: bold;
}
.stat-label {
  font-size: 0.9rem;
  color: #aaa;
}
.contact-info p {
  margin-bottom: 20px;
  font-size: 1.1rem;
}
.btn-story {
  display: inline-block;
  margin-top: 40px;
  background: #0abab5;
  color: #000;
  padding: 10px 30px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
}
.next-section {
  height: 100vh;
  background: #222;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

/* MOBILE */
@media (max-width: 900px) {
  .hero-layer {
    display: flex;
    flex-direction: column;
    text-align: center;
    justify-content: flex-start;
    padding-top: 120px;
  }
  .hero-col {
    height: auto;
    margin-bottom: 20px;
  }
  .services-layer,
  .about-layer {
    flex-direction: column;
    text-align: center;
    padding-top: 20px;
  }
  .right-spacer {
    display: none;
  }
  .flip-card-inner {
    width: 280px;
    height: 400px;
  }
  .sticker-badge {
    width: 70px;
    height: 70px;
    font-size: 1.5rem;
    left: -20px;
    bottom: 20px;
  }
}

/* ========================================= */
/* NEW SECTIONS STYLING */
/* ========================================= */

.standard-section {
  padding: 100px 5%;
  background-color: #111;
  position: relative;
  z-index: 20; /* Ensures it sits on top of everything else */
}

.content-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  margin-top: 1rem;
}

.giant-text-small {
  font-family: 'Oswald', sans-serif;
  font-size: 4rem;
  text-transform: uppercase;
  margin-bottom: 20px;
  line-height: 1;
}
/* --- BUTTON CONTAINER FIX --- */
.center-btn-container {
  text-align: center;

  /* 1. Push it down significantly to clear the last sticky card */
  margin-top: 80px;

  /* 2. Ensure it sits on top of everything */
  position: relative;
  z-index: 30;
  margin-left: -25rem !important;
  /* 3. Add bottom padding so it doesn't touch the next section */
  padding-bottom: -70px;
}

.btn-outline {
  display: inline-block;
  border: 1px solid #333;
  margin-bottom: -10rem;
  color: #fff;
  padding: 15px 40px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  transition: 0.3s;
  margin-left: 28rem;
  align-items: center;
}
.btn-outline:hover {
  background: #fff;
  color: #000;
}

/* --- PROJECTS STACKING ANIMATION --- */

.projects-section {
  /* Ensure the section allows for the tall scrolling height needed */
  height: auto;
  top: 0vh;
  padding-bottom: 100px;
  margin-top: 100px;
  padding-top: 0;
}

.stack-wrapper {
  /* Limits width and centers, same as before */
  max-width: 1200px;
  margin: 0 auto;
  margin-top: 100px;

  /* Ensure it sits on top of the previous layer */
  position: relative;
  z-index: 20;
}

/* --- FIXED PROJECT CARD STYLES --- */
.project-card {
  /* 1. CRITICAL FIX: Forces the link to act like a box, not text */
  display: block;

  /* 2. COLOR FIX: Removes the ugly purple link color */
  color: #fff;
  text-decoration: none; /* Removes underline */

  /* 3. STICKY ANIMATION LOGIC */
  position: sticky;
  top: 120px;

  /* 4. DIMENSIONS (Must be defined or it collapses) */
  width: 100%;
  height: 550px;

  /* 5. STYLING */
  border-radius: 30px;
  overflow: hidden;
  margin-bottom: 50px;

  /* 6. BACKGROUND (Crucial for stacking effect) */
  background: #111;
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.5);
  border: 1px solid #333;

  cursor: pointer;
}

/* Ensure image behaves correctly inside the link */
.project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
  display: block; /* Removes tiny gap at bottom of image */
}

.project-card:hover img {
  transform: scale(1.05);
}

/* Force the text inside to remain White */
.project-overlay h3 {
  color: #fff !important;
  font-family: 'Oswald', sans-serif;
  font-size: 2.5rem;
  margin-bottom: 0;
}
.project-tag {
  background: #333;
  color: #fff;
  padding: 5px 15px;
  border-radius: 20px;
  align-self: flex-start;
  margin-bottom: 10px;
  font-size: 0.8rem;
}
.project-overlay h3 {
  font-family: 'Oswald', sans-serif;
  font-size: 2.5rem;
  margin-bottom: 0;
}
.round-btn {
  position: absolute;
  bottom: 40px;
  right: 40px;
  background: #0abab5;
  color: #000;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.5rem;
  font-weight: bold;
}

/* ========================================= */
/* WORK EXPERIENCE STYLING */
/* ========================================= */

.work-list {
  display: flex;
  flex-direction: column;
  margin-top: 60px;
  border-top: 1px solid #333;
}

.work-item {
  display: flex;
  padding: 60px 0;
  border-bottom: 1px solid #333;
  transition: all 0.3s ease;
  cursor: default;
}

/* Hover Effect: Darken background and light up accent */
.work-item:hover {
  background-color: #1a1a1a;
  padding-left: 30px; /* Slight shift to the right */
  padding-right: 30px;
  border-bottom-color: #0abab5; /* Green line */
}

/* Left Side (Date) */
.work-left {
  flex: 1;
}

.work-year {
  font-family: 'Oswald', sans-serif;
  font-size: 1.5rem;
  color: #666;
  transition: color 0.3s;
}

/* Date turns green on hover */
.work-item:hover .work-year {
  color: #0abab5;
}

/* Right Side (Details) */
.work-right {
  flex: 3;
}

.work-right h3 {
  font-family: 'Oswald', sans-serif;
  font-size: 2.5rem;
  margin-bottom: 15px;
  line-height: 1;
}

.company-tag {
  display: inline-block;
  background: #333;
  color: #fff;
  padding: 6px 15px;
  border-radius: 20px;
  font-size: 0.9rem;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.work-right p {
  color: #aaa;
  font-size: 1.1rem;
  line-height: 1.6;
  max-width: 600px;
  text-align: justify;
}

/* Mobile Responsiveness */
@media (max-width: 900px) {
  .work-item {
    flex-direction: column;
    gap: 20px;
    padding: 40px 0;
  }
  .work-year {
    font-size: 1.2rem;
    color: #0abab5; /* Always green on mobile for visibility */
    margin-bottom: 10px;
    display: block;
  }
  .work-right h3 {
    font-size: 2rem;
  }
  .work-item:hover {
    padding-left: 0;
    padding-right: 0;
    background-color: transparent;
  }
}

/* --- CONTACT SECTION & FORM FIX --- */

.split-layout {
  display: flex;
  gap: 60px;
  align-items: stretch;
}

/* LEFT SIDE: Image */
.contact-left {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.contact-image-wrapper {
  width: 100%;
  height: 92%;
  min-height: 500px;
  border-radius: 30px;
  overflow: hidden;
  margin-top: 30px;
}

.contact-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%);
  transition: 0.5s;
}

.contact-image-wrapper:hover img {
  filter: grayscale(0%);
  transform: scale(1.03);
}

/* RIGHT SIDE: Form Container */
.contact-right {
  flex: 1.2;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact-text-group {
  margin-bottom: -20px;
}

/* --- FORM STYLING --- */
.contact-form {
  background: #1a1a1a; /* Dark Grey Box */
  padding: 40px;
  border-radius: 30px;
  width: 100%;
}

.form-row {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
}

.input-group {
  width: 100%;
  display: flex;
  flex-direction: column;
  margin-bottom: 20px;
}

/* Labels */
.contact-form label {
  display: block;
  margin-bottom: 8px;
  color: #888;
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* The Inputs (Text, Email, Select, Textarea) */
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  background-color: #111; /* Darker inner background */
  border: 1px solid #333; /* Subtle border */
  padding: 15px;
  border-radius: 8px;
  color: #fff; /* White Text */
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.3s;
}

/* Focus Effect: Green Border when clicking */
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: #0abab5;
}

/* Textarea height */
.contact-form textarea {
  height: 150px;
  resize: none;
}

/* Submit Button */
.btn-submit {
  width: 100%;
  background-color: #0abab5; /* Lime Green */
  color: #000;
  padding: 18px;
  font-weight: bold;
  font-size: 1rem;
  border: none;
  border-radius: 50px; /* Rounded pill shape */
  cursor: pointer;
  transition:
    transform 0.2s,
    background-color 0.3s;
  text-transform: uppercase;
}

.btn-submit:hover {
  background-color: #fff; /* White on hover */
  transform: scale(1.02);
}

/* Mobile Fixes */
@media (max-width: 900px) {
  .split-layout {
    flex-direction: column;
  }
  .form-row {
    flex-direction: column;
    gap: 0;
  }
  .contact-image-wrapper {
    min-height: 300px;
  }
}
/* --- LIME FOOTER --- */
.lime-footer {
  background: black;
  color: #0abab5;

  padding: 40px 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
body.light-mode .lime-footer {
  background: white;
  color: #0abab5;
}
.footer-col {
  display: flex;
  flex-direction: column;
}
.footer-col small {
  font-size: 0.8rem;
  margin-bottom: 5px;
}
.footer-col strong {
  font-size: 1.2rem;
}
.social-icons {
  flex-direction: row;
  gap: 20px;
  font-size: 1.5rem;
}

/* --- FIXED BOTTOM TOGGLE --- */
.bottom-toggle-pill {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999; /* Ensures it sits on top of everything */

  width: 40px;
  height: 18px;
  background-color: #0abab5; /* Lime Green */
  border-radius: 50px;

  display: flex;
  align-items: center;
  padding: 4px;

  cursor: pointer;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
}

.bottom-toggle-pill:hover {
  transform: translateX(-50%) scale(1.1); /* Slightly grows on hover */
}

.toggle-circle {
  width: 15px;
  height: 15px;
  background-color: #111; /* Dark Circle */
  border-radius: 50%;
}
/* ========================================= */
/* THEME SWITCHER (DARK / LIGHT) */
/* ========================================= */

/* 1. Toggle Button Animation */
.bottom-toggle-pill.active .toggle-circle {
  transform: translateX(18px); /* Slides circle to the right */
  background-color: #fff; /* Circle turns white in light mode */
}

/* 2. LIGHT MODE OVERRIDES 
   (These styles only apply when body has class "light-mode") 
*/

body.light-mode {
  background-color: #f4f4f4; /* Light Grey Background */
  color: #111; /* Dark Text */
}
/* --- LIGHT MODE FIX FOR SERVICES LIST --- */

/* 1. Remove the dark background box */
body.light-mode .service-list {
  background: transparent;
  border-top: none; /* Light grey line */
}

/* 2. Fix the list items (Lines and Text) */
body.light-mode .service-item {
  border-bottom: 1px solid #ccc;
  color: #000; /* Black text */
}

/* 3. Fix the Numbers (1, 2, 3...) */
body.light-mode .service-num {
  color: #666; /* Dark grey numbers */
}

/* 4. Hover State (High Contrast) */
body.light-mode .service-item:hover {
  color: #0abab5; /* Keep text black for readability */
  border-bottom-color: #0abab5;
  background-color: #f0f0f0;
}
body.light-mode .btn-story {
  color: white;
}
/* 5. Fix Arrows */
body.light-mode .arrow-icon {
  color: #0abab5;
}
body.light-mode .btn-outline {
  display: inline-block;
  border: 1px solid #0abab5;
  margin-bottom: -10rem;
  color: #0abab5;
  padding: 15px 40px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: bold;
  transition: 0.3s;
  margin-left: 28rem;
  align-items: center;
}
body.light-mode .btn-outline:hover {
  background: #0abab5;
  color: white;
}

/* Navigation */
body.light-mode .pill-nav {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid #0abab5;
}
body.light-mode .nav-links a {
  color: #0abab5;
}
body.light-mode .nav-links a:hover,
body.light-mode .nav-links a.active {
  color: #000;
}
body.light-mode .btn-contact {
  background: #0abab5;
  color: #fff;
}

/* Text Colors */
body.light-mode .giant-text,
body.light-mode .giant-text-project,
body.light-mode .giant-text-small,
body.light-mode .section-title {
  color: #000;
}
body.light-mode .section-desc,
body.light-mode .sub-text,
body.light-mode .project-lead {
  color: #444;
}

/* Cards & Boxes (Invert to White) */
body.light-mode .project-card,
body.light-mode .flip-card-front,
body.light-mode .flip-card-back,
body.light-mode .bento-box,
body.light-mode .blog-card,
body.light-mode .contact-right {
  background: transparent !important;
  box-shadow: #0abab5 !important;
  border: none !important;
}
body.light-mode .contact-form {
  background: #fff;
  border: 1px solid #e0e0e0;
  box-shadow: 0 10px 30px #0abab5;
}

/* Form Inputs */
body.light-mode .contact-form input,
body.light-mode .contact-form select,
body.light-mode .contact-form textarea {
  background: #f9f9f9;
  border: 1px solid #0abab5;
  color: #0abab5;
}

/* Work Experience */
body.light-mode .work-list,
body.light-mode .work-item {
  border-color: #ddd;
}
body.light-mode .work-year {
  color: #888;
}
body.light-mode .work-right h3 {
  color: #000;
}
body.light-mode .work-right p {
  color: #555;
}
body.light-mode .work-item:hover {
  background-color: #fff;
  border-color: #0abab5;
}

/* This forces the section background to turn white so you can see the black text */
body.light-mode .standard-section {
  background-color: #f4f4f4; /* Matches the light body background */
  color: #000;
}

/* Optional: Make the project cards stand out more in light mode */
body.light-mode .project-card {
  border: 1px solid #ddd;
  box-shadow: 0 20px 40px #0abab5;
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .testimonial-grid,
  .blog-grid,
  .split-layout,
  .contact-form .form-row {
    grid-template-columns: 1fr;
    flex-direction: column;
  }
  .giant-text-small {
    font-size: 2.5rem;
  }
  .lime-footer {
    flex-direction: column;
    gap: 30px;
    text-align: center;
  }
  .contact-image-wrapper {
    display: none;
  } /* Hide image on mobile to save space */
}

/* ========================================= */
/* PROJECT DETAILS PAGE STYLING */
/* ========================================= */

/* 1. Header Area */
.project-header {
  padding: 160px 5% 60px 5%; /* Top padding clears the fixed nav bar */
  background: #111;
  text-align: center;
}

.project-tag-pill {
  display: inline-block;
  border: 1px solid #444;
  color: #ccc;
  padding: 8px 25px;
  border-radius: 50px;
  margin-bottom: 30px;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.8rem;
}

.giant-text-project {
  font-family: 'Oswald', sans-serif;
  font-size: 5.5rem; /* Huge title */
  line-height: 1;
  text-transform: uppercase;
  margin-bottom: 30px;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

.project-lead {
  color: #aaa;
  font-size: 1.3rem;
  max-width: 850px;
  margin: 0 auto 80px auto;
  line-height: 1.6;
  text-align: justify;
}

/* 2. Stats Row */
.project-stats-row {
  display: flex;
  justify-content: space-between;
  max-width: 900px;
  margin: 0 auto;
  border-top: 1px solid #333;
  border-bottom: 1px solid #333;
  padding: 40px 0;
  text-align: left;
}

.p-stat {
  display: flex;
  flex-direction: column;
}
.p-stat small {
  color: #666;
  font-size: 0.9rem;
  margin-bottom: 8px;
  text-transform: uppercase;
}
.p-stat strong {
  color: #fff;
  font-size: 1.4rem;
  font-family: 'Oswald', sans-serif;
}

/* 3. Body Content */
.project-body {
  background: #111;
  padding: 0 5% 100px 5%;
}

.project-hero-img img,
.project-full-img img {
  width: 100%;
  height: auto;
  border-radius: 30px;
  margin-bottom: 80px;
}

.text-block {
  max-width: 800px;
  margin: 0 auto 80px auto;
  text-align: justify;
}

.text-block h2 {
  font-family: 'Oswald', sans-serif;
  font-size: 2.2rem;
  color: #0abab5; /* Lime Green Heading */
  margin-bottom: 25px;
  text-transform: uppercase;
}

.text-block p {
  font-size: 1.2rem;
  color: #ddd;
  line-height: 1.8;
  margin-bottom: 25px;
}

/* 4. Fix for "More Projects" Cards */
/* Since these are links, we must force them to act like blocks */
.small-card {
  height: 450px !important; /* Force height */
  position: relative !important; /* Turn off sticky */
  top: auto !important;
  margin-bottom: 0 !important;
  display: block !important;
  text-decoration: none;
  color: white;
}

/* 5. Mobile Responsiveness */
@media (max-width: 900px) {
  .giant-text-project {
    font-size: 3rem;
  }

  .project-stats-row {
    flex-direction: column;
    gap: 30px;
    text-align: center;
  }
  .p-stat {
    align-items: center;
  }

  .project-header {
    padding-top: 120px;
  }
}

/* ========================================= */
/* LIGHT MODE FIX: PROJECT DETAILS PAGE */
/* ========================================= */

/* 1. Turn the Backgrounds White */
body.light-mode .project-header,
body.light-mode .project-body {
  background-color: #f4f4f4; /* Light Grey/White */
  color: #000;
}

/* 2. Fix the Stats Row Lines */
body.light-mode .project-stats-row {
  border-top-color: #ccc;
  border-bottom-color: #ccc;
}

/* 3. Fix the Small Labels (Year, Industry, etc.) */
body.light-mode .p-stat small {
  color: #555;
}

body.light-mode .p-stat strong {
  color: #000;
}

/* 4. Fix the Tag Pill (UI/UX Design) */
body.light-mode .project-tag-pill {
  border-color: #999;
  color: #333;
}

/* 5. Fix Paragraph Text */
body.light-mode .text-block p {
  color: #333;
}
/* ========================================= */
/* ALL PROJECTS PAGE (GRID LAYOUT) */
/* ========================================= */

.projects-page-header {
  padding: 160px 5% 50px 5%;
  text-align: center;
}

/* The Grid Container */
.projects-grid {
  display: grid;
  grid-template-columns: 1fr 1fr; /* 2 Columns */
  gap: 40px; /* Space between cards */
  margin-bottom: 100px;
}

/* Disable Sticky for these cards */
.static-card {
  position: relative !important; /* Turns off sticky */
  top: auto !important;
  height: 450px !important; /* Slightly shorter than homepage cards */
  margin-bottom: 0 !important; /* Grid handles the spacing now */
}

/* Mobile: Switch to 1 column */
@media (max-width: 900px) {
  .projects-grid {
    grid-template-columns: 1fr;
  }
}

/* ========================================= */
/* CUSTOM CURSOR (SMOOTH FLOAT) */
/* ========================================= */

body,
a,
button,
.project-card,
.bottom-toggle-pill {
  cursor: none;
}

.cursor-dot {
  width: 15px;
  height: 15px;
  background-color: #0abab5;
  border-radius: 50%;

  position: fixed;
  /* Start at top-left, but invisible */
  top: 0;
  left: 0;

  /* Center alignment */
  margin-left: -7.5px;
  margin-top: -7.5px;

  pointer-events: none;
  z-index: 10000;

  /* Start Invisible to prevent the "Fly In" glitch */
  opacity: 0;
  transition: opacity 0.3s;
}

/* Hover Scale Effect */
.cursor-hover {
  transform: scale(1.8);
  background-color: #0abab5;
}

/* Light Mode */
body.light-mode .cursor-dot {
  background-color: #000;
}

/* ========================================= */
/* STORY PAGE SPECIFIC STYLES                */
/* ========================================= */

/* Ensure the text size matches the other sections exactly */
.giant-text-small {
  font-size: 3rem; /* Standard size for all headers */
  line-height: 1;
  margin-bottom: 40px;
}

/* 2. Style the Social Icons to fit the theme */
.social-row-large {
  display: flex;
  gap: 20px;
  margin-top: 30px;
  font-size: 1.5rem;
}

.social-row-large i {
  background: #222; /* Match other card elements */
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: 0.3s;
  color: #fff;
}

.social-row-large i:hover {
  background: #ccff00;
  color: #000;
}

/* Light Mode Fix for Icons */
body.light-mode .social-row-large i {
  background: #fff;
  color: #000;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}
body.light-mode .social-row-large i:hover {
  background: #000;
  color: #fff;
}

/* 1. Layout Utils */
.story-left {
  flex: 1;
  padding-right: 50px;
  margin-top: -70px;
}
.story-right {
  flex: 1;
  margin-top: -30px;
}
.rounded-img {
  width: 100%;
  height: 500px;
  object-fit: cover;
  border-radius: 30px;
}

/* 2. Social Icons Row */
.social-row-large {
  display: flex;
  gap: 20px;
  margin-top: 30px;
  font-size: 1.5rem;
}
.social-row-large i {
  background: #333;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: 0.3s;
}
.social-row-large i:hover {
  background: #ccff00;
  color: #000;
}

/* ========================================= */
/* 3. JOURNEY LIST (CSS Grid - No HTML Change) */
/* ========================================= */

.journey-list {
  margin-top: 40px;
  width: 100%;
}

.journey-item {
  display: grid;
  /* Create two columns: Left (Role) gets 45%, Right gets remainder */
  grid-template-columns: 45% 1fr;
  /* Create two rows for the right side to stack */
  grid-template-rows: auto auto;

  padding: 30px 0;
  border-bottom: 1px solid #333;
  column-gap: 30px; /* Physical gap to prevent overlapping */
  align-items: center;
}
.journey-item:hover {
  border-bottom: 1px solid #0abab5;
}

/* Left Side: The Role */
.j-role {
  /* Tell the Role to sit in Column 1 and span both rows height-wise */
  grid-column: 1;
  grid-row: 1 / span 2;

  font-family: 'Oswald', sans-serif;
  font-size: 2rem;
  text-transform: uppercase;
  color: #fff;
  line-height: 1.1;
}

/* Right Side Top: Company */
.j-company {
  grid-column: 2;
  grid-row: 1; /* Top Row */

  text-align: right;
  color: #0abab5;
  font-weight: bold;
  font-size: 1.1rem;
  margin-bottom: 4px;
}

/* Right Side Bottom: Year */
.j-year {
  grid-column: 2;
  grid-row: 2; /* Bottom Row */

  text-align: right;
  color: #888;
  font-size: 0.9rem;
  white-space: nowrap;
}

/* --- LIGHT MODE ADJUSTMENTS --- */
body.light-mode .j-role {
  color: #000;
}
body.light-mode .j-company {
  color: #0abab5;
}
body.light-mode .j-year {
  color: #555;
}
body.light-mode .journey-item {
  border-bottom: 1px solid #ccc;
}
body.light-mode .journey-item:hover {
  border-bottom: 1px solid #0abab5;
}
/* --- MOBILE RESPONSIVENESS --- */
@media (max-width: 900px) {
  .journey-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .j-role {
    width: 100%;
    font-size: 1.8rem;
  }
  .j-company,
  .j-year {
    text-align: left;
  }
}

/* 4. Tech Stack List */
/* --- FORCE TECH STACK TO TOP --- */
#tech-section {
  /* Stop centering it vertically */
  justify-content: flex-start !important;

  /* Set exact distance from the top of the screen */
  padding-top: -40px;

  /* Ensure height doesn't force weird spacing */
  height: 100vh !important;
}

/* Mobile Adjustment */
@media (max-width: 900px) {
  #tech-section {
    padding-top: 120px !important;
  }
}
.tech-list {
  margin-top: 0px;
}
.tech-item {
  display: flex;
  gap: 20px;
  padding: 5px 0;
  border-bottom: 1px solid #333;
}
.tech-item:hover {
  display: flex;
  gap: 20px;
  padding: 4px 0;
  border-bottom: 1px solid #0abab5;
}
body.light-mode .tech-item:hover {
  border-bottom: 1px solid #0abab5;
}
/* Update your .tech-icon class to center images */
.tech-icon {
  width: 70px;
  height: 70px;
  background: #000;
  border-radius: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
  border: 1px solid #333;
  overflow: hidden; /* Keeps images inside rounded corners */
}

/* NEW: Style the images inside */
.tech-icon img {
  width: 35px; /* Perfect size for single icons */
  height: 35px;
  object-fit: contain;
}

/* Style for Dual Icons (Two images side-by-side) */
.dual-icon img {
  width: 28px; /* Slightly smaller to fit two */
  height: 28px;
}

.dual-icon {
  gap: 4px; /* Space between the two icons */
}
.tech-item h3 {
  font-family: 'Oswald', sans-serif;
  font-size: 1.5rem;
  margin-bottom: 5px;
  color: #0abab5;
}
.tech-item p {
  font-size: 0.9rem;
  color: #888;
  line-height: 1.4;
}

/* ========================================= */
/* BENTO PROCESS GRID (New Layout)           */
/* ========================================= */
#my-process {
  padding-top: 115px;
  /* 1. Allow height to grow beyond the screen size */
  height: auto;

  justify-content: flex-start;
  /* 2. Stop hiding content that overflows */
  overflow: visible;

  /* 3. Add padding at the bottom so the last cards aren't stuck to the edge */

  position: relative !important;
  top: auto !important;
}

/* Optional: Mobile Adjustment */
@media (max-width: 900px) {
  #my-process {
    padding-top: 120px !important; /* Ensure nav doesn't cover title on mobile */
  }
}

.process-grid-bento {
  display: grid;
  /* Exactly 3 Equal Columns */
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px;
  margin-top: 60px;
  padding-bottom: 100px;
}

/* --- CARD BASE --- */
.p-card {
  border-radius: 30px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start !important;
  height: 420px; /* Standard Height */
  position: relative;
  overflow: hidden;
  gap: 15px;
  transition: transform 0.3s;
}

/* --- COLORS --- */
.white-card {
  background-color: whitesmoke;
  color: hsl(0, 0%, 0%);
}
.lime-card {
  background-color: #0abab5;
  color: #000;
} /* Matches 02 & 04 */
.dark-card {
  background-color: #1a1a1a !important;
  color: #fff !important;

  /* 1. Center Content Vertically */
  /* Unlike the tall cards, this wide card looks better centered */
  justify-content: center !important;

  /* 2. Extra Padding */
  padding: 60px !important;
  border-radius: 30px;
}
.img-card {
  padding: 0;
}
.img-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --- SPAN UTILITY --- */
/* Makes Card 03 take up the whole row */
.span-2-cols {
  grid-column: span 2; /* Takes up 2 out of 3 columns */
  display: flex;

  flex-direction: column;
  justify-content: center;
  padding: 60px; /* Extra padding for the big card look */
}

/* Specific fix for text width inside the dark card */
.span-2-cols .p-card-content {
  max-width: 80%;
}
.dark-card p {
  font-size: 1rem;
  line-height: 1.6;
  opacity: 0.9;

  /* FIX: Remove any negative margins causing overlap */

  text-align: justify;
}

/* Ensure Title is Bright White */
.dark-card h3 {
  font-family: 'Oswald', sans-serif;
  font-size: 2rem;
  text-transform: uppercase;
  line-height: 1.1;
  font-weight: l;

  /* FIX: Clear spacing around the title */
  margin-bottom: 40px;
}

/* Ensure Number is Bright White */
.dark-card .p-num {
  display: block;
  font-family: 'Oswald', sans-serif;
  font-size: 3.5rem;
  font-weight: bold;
  line-height: 1;

  /* FIX: Ensure positive spacing */
  margin-bottom: 20px;
}

/* Mobile Adjustment */
@media (max-width: 900px) {
  .dark-card {
    padding: 30px !important;
    justify-content: flex-start !important; /* Stack normally on mobile */
  }
  .dark-card p {
    max-width: 100%;
  }
}
/* --- TYPOGRAPHY (Fixed Spacing) --- */

/* ========================================= */
/* TYPOGRAPHY FIX (Prevent Overlap)          */
/* ========================================= */

.p-num {
  display: block;
  font-family: 'Oswald', sans-serif;
  font-size: 3.5rem;
  font-weight: bold;
  line-height: 1;

  /* FIX: Ensure positive spacing */
  margin-bottom: 0px;
}

.p-card h3 {
  font-family: 'Oswald', sans-serif;
  font-size: 2rem;
  text-transform: uppercase;
  line-height: 1.1;
  font-weight: l;

  /* FIX: Clear spacing around the title */
  margin-bottom: 25px;
}

.p-card p {
  font-size: 1rem;
  line-height: 1.6;
  opacity: 0.9;
  text-align: justify;
  /* FIX: Remove any negative margins causing overlap */
  margin-top: -2px;
  text-align: justify;
}

/* Specific fix for the Dark Card container */
.p-card-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
}
/* --- MOBILE --- */
@media (max-width: 900px) {
  .process-grid-bento {
    grid-template-columns: 1fr; /* Stack everything */
  }
  .span-3 {
    grid-column: span 1;
    flex-direction: column;
    align-items: flex-start;
    padding: 30px;
  }
  .span-3 .p-card-content {
    max-width: 100%;
  }
  .p-card {
    min-height: 300px;
  }
}

/* ========================================= */
/* STORY PAGE STACKING EFFECT                */
/* ========================================= */

.story-stack-section {
  position: sticky;
  top: 0;

  /* 1. Force Full Screen Height */
  height: 100vh;

  /* 2. Solid Background */
  background-color: #111;

  /* 3. Shadow creates the "Card" effect */
  box-shadow: 0 -20px 60px rgba(0, 0, 0, 0.8);
  border-top: 1px solid #222;

  /* 4. ALIGNMENT FIX: Start from top, don't center */
  display: flex;
  flex-direction: column;
  justify-content: flex-start; /* Changed from center */

  /* 5. PADDING FIX: Push content down below the Nav Bar */
  padding-top: 180px;
  padding-left: 5%;
  padding-right: 5%;

  /* Allow scrolling if content is too tall for small screens */
  overflow: hidden;
}

/* Mobile Adjustment */
@media (max-width: 900px) {
  .story-stack-section {
    padding-top: 120px;
    height: auto; /* Let it grow on mobile */
    min-height: 100vh;
  }
}

/* Light Mode support */
body.light-mode .story-stack-section {
  background-color: white; /* Tiffany Blue */
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 -20px 60px rgba(0, 0, 0, 0.2);
}

/* ========================================= */
/* SIDE-BY-SIDE IMAGE GRID                   */
/* ========================================= */

.two-image-grid {
  display: flex; /* Puts items in a row */
  gap: 20px; /* Space between images */
  margin: 40px 0; /* Space above and below the section */
  width: 100%;
}

.grid-item {
  flex: 1; /* Each image takes equal width (50%) */
  border-radius: 20px; /* Optional: Rounded corners */
  overflow: hidden; /* Keeps image inside rounded corners */
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1); /* Optional: Shadow */
}

.grid-item img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Ensures image fills the box without stretching */
  display: block; /* Removes tiny bottom gap */
}

/* MOBILE: Stack them vertically on small screens */
@media (max-width: 768px) {
  .two-image-grid {
    flex-direction: column;
  }
}
