/* base reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  user-select: none;
  -webkit-user-select: none;
}

input, textarea {
  user-select: auto;
  -webkit-user-select: auto;
}

html {
  scroll-behavior: auto;
  overflow-x: hidden;
}

/* Lenis smooth scroll */
html.lenis,
html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto;
}

.lenis.lenis-smooth [data-lenis-prevent] {
  overscroll-behavior: contain;
}

html,
body {
  height: 100%;
  background: #000000;
  font-family: 'Inter', 'Josefin Sans', sans-serif;
  color: #ffffff;
  overflow-x: hidden;
  width: 100%;
}

::selection {
  background: #d84e2c;
  color: #fff;
}

/* background particles */
#tsparticles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* site wrapper */
#main {
  display: none;
  position: relative;
  z-index: 1;
  width: 100%;
  overflow-x: hidden;
}

/* reusable section stuff */
.section-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

.section-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.95rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #d84e2c;
  margin-bottom: 20px;
  font-weight: 500;
}

.rotating-flower {
  width: 1.6rem;
  height: 1.6rem;
  flex-shrink: 0;
  animation: flowerSpin 1s linear infinite;
  will-change: transform;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

@keyframes flowerSpin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.section-heading,
.cuboid-face {
  font-family: 'Josefin Sans', sans-serif;
  font-size: clamp(2.5rem, 5vw, 4rem);
  /* Restored original static font size */
  font-weight: 600;
  color: #fff;
}

.cuboid-heading-wrapper {
  perspective: 2000px;
  margin-bottom: 50px;
  /* Restored original static margin */
  width: fit-content;
  max-width: 100%;
}

.cuboid-heading {
  display: inline-block;
  max-width: 100%;
}

.cuboid-inner {
  position: relative;
  transform-style: preserve-3d;
  width: fit-content;
  max-width: 100%;
  height: auto;
  display: block;
  will-change: transform;
}

.cuboid-face {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  margin: 0 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  background: rgba(255, 255, 255, 0.03);
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.03);
  border-radius: 8px;
  padding: 5px 20px;
  /* Tighter padding to match original width feel */
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.cuboid-face.front {
  position: relative;
  transform: translateZ(35px);
}

.cuboid-face.back {
  transform: rotateX(180deg) translateZ(35px);
}

.cuboid-face.top {
  transform: rotateX(90deg) translateZ(35px);
}

.cuboid-face.bottom {
  transform: rotateX(-90deg) translateZ(35px);
}

@media (max-width: 480px) {
  .cuboid-face {
    padding: 8px 18px;
  }

  /* Thinner cube for mobile to fit better */
  .cuboid-face.front {
    transform: translateZ(25px);
  }

  .cuboid-face.back {
    transform: rotateX(180deg) translateZ(25px);
  }

  .cuboid-face.top {
    transform: rotateX(90deg) translateZ(25px);
  }

  .cuboid-face.bottom {
    transform: rotateX(-90deg) translateZ(25px);
  }
}

/* Horizontal roll faces */
.cuboid-face.left {
  transform: rotateY(-90deg) translateZ(30px);
}

.cuboid-face.right {
  transform: rotateY(90deg) translateZ(30px);
}

.accent {
  color: #d84e2c;
}

/* preloader styles */
#preloader {
  position: fixed;
  inset: 0;
  background: #6C2716;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  overflow: hidden;
  font-family: 'Josefin Sans', sans-serif;
}

#preloader-logo {
  font-size: 2rem;
  letter-spacing: 2px;
  color: white;
  z-index: 2;
}

.text-wrapper {
  text-align: center;
  z-index: 5;
}

#subtext {
  margin-top: 10px;
  font-size: 1.4rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.904);
  white-space: pre-line;
}

/* preloader transition strips */
.loader-cards {
  position: absolute;
  inset: 0;
  display: flex;
}

.loader-card {
  flex: 1.1;
  margin-left: -1px;
  background: linear-gradient(to bottom, #000000, #0a0a0a, #111111);
  transform: translateY(-100%);
  position: relative;
  overflow: hidden;
}

/* navbar */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  font-family: 'Josefin Sans', sans-serif;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
  max-width: 1400px;
  margin: 0 auto;
}

.logo {
  color: #fff;
  font-size: 1.3rem;
  font-weight: 500;
  cursor: pointer;
  letter-spacing: 0.5px;
  transition: color 0.3s ease;
  opacity: 0;
}

.logo:hover {
  color: #d84e2c;
}

.nav-links {
  display: flex;
  gap: clamp(20px, 4vw, 40px);
}

.nav-links a {
  color: rgb(255, 255, 255);
  text-decoration: none;
  font-size: 0.95rem;
  position: relative;
  transition: color 0.3s ease;
  letter-spacing: 0.5px;
  opacity: 0;
}

.nav-links a i {
  display: inline-block;
  margin-right: 6px;
  font-size: 0.9em;
  color: #d84e2c; /* Make icons red to stand out, optional but looks premium */
}

@media (max-width: 768px) {
  .nav-links a i {
    display: none;
  }
}

.nav-links a:hover {
  color: #fff;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0%;
  height: 1.5px;
  background: #d84e2c;
  transition: width 0.3s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

/* mobile menu toggle */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 7px;
  cursor: pointer;
  z-index: 1001;
  width: 30px;
  height: 20px;
  justify-content: center;
}

.hamburger span {
  width: 28px;
  height: 2px;
  background: white;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 2px;
  display: block;
}

.hamburger.active span:nth-child(1) {
  transform: translateY(4.5px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  transform: translateY(-4.5px) rotate(-45deg);
}

/* hero section */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  padding: clamp(80px, 15vh, 110px) clamp(10px, 4vw, 40px) 40px;
}

.hero-content {
  text-align: center;
  width: 100%;
  max-width: 1400px;
}

/* giant name text */
.hero-big-text {
  line-height: 1;
  /* Tighter line height */
  overflow: hidden;
}

.hero-big-text:first-of-type {
  padding-top: 20px;
  /* Headroom for NAVEEN to prevent cutting */
  margin-bottom: 0px;
}

.hero-big-text:nth-of-type(2) {
  margin-top: 0px;
  padding-bottom: 20px;
}

.hero-name-outline {
  font-family: 'Josefin Sans', sans-serif;
  font-size: clamp(1.8rem, 12vw, 9rem);
  font-weight: 700;
  letter-spacing: clamp(2px, 1.5vw, 8px);
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.651);
  text-transform: uppercase;
  display: inline-block;
  user-select: none;
  opacity: 0;
}

/* Giant name — filled version */
.hero-name-filled {
  font-family: 'Josefin Sans', sans-serif;
  font-size: clamp(1.4rem, 9vw, 6.5rem);
  font-weight: 700;
  letter-spacing: clamp(2px, 1.5vw, 8px);
  color: #fff;
  text-transform: uppercase;
  display: inline-block;
  user-select: none;
  text-shadow: 0 0 80px rgba(216, 78, 44, 0.15);
  opacity: 0;
}

.hero-info {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-top: 60px;
}

.hero-line {
  width: 60px;
  height: 1.5px;
  background: #d84e2c;
  flex-shrink: 0;
}

.hero-details {
  text-align: left;
}

.hero-role {
  font-family: 'Josefin Sans', sans-serif;
  font-size: clamp(1.4rem, 3.5vw, 2.5rem);
  line-height: 1.25;
  font-weight: 300;
  opacity: 0;
}

.hero-role .amp {
  color: #d84e2c;
  font-weight: 300;
  margin: 0 4px;
}

.hero-subtitle {
  font-size: clamp(1rem, 1.2vw, 1.15rem);
  color: rgba(255, 255, 255, 0.663);
  line-height: 1.8;
  letter-spacing: 1px;
  max-width: 800px;
  margin: 20px auto 0;
  opacity: 0;
}

/* buttons */
.hero-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  margin: 44px auto 0;
  max-width: 800px;
  width: 100%;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 15px 32px;
  min-width: 200px;
  justify-content: center;
  border-radius: 8px;
  font-family: 'Josefin Sans', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 1px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  opacity: 0;
  visibility: hidden;
}

.cta-resume {
  background: #ffffff;
  border: 1.5px solid #ffffff;
  color: #000000;
}

.cta-resume:hover {
  background: rgba(255, 255, 255, 0.9);
  border-color: #d84e2c;
  color: #000000;
  transform: translateY(-2px);
}

.cta-github {
  background: #d84e2c;
  border: 1.5px solid #d84e2c;
  color: #fff;
}

.cta-github:hover {
  background: #c44425;
  border-color: #c44425;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(216, 78, 44, 0.3);
}

.cta-icon {
  font-size: 1.6rem;
}

/* scroll icon nudge */
.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0;
}

.scroll-indicator span.scroll-icon {
  font-size: 1.6rem;
  font-weight: 300;
  color: #fff;
  line-height: 1;
  animation: floatDown 1.8s ease-in-out infinite;
}

@keyframes floatDown {

  0%,
  100% {
    transform: translateY(0);
    opacity: 0.3;
  }

  50% {
    transform: translateY(12px);
    opacity: 0.9;
  }
}

.scroll-line {
  display: none;
}

@keyframes scrollPulse {

  0%,
  100% {
    opacity: 0.3;
    transform: scaleY(1);
  }

  50% {
    opacity: 1;
    transform: scaleY(1.3);
  }
}

/* about section */
.about {
  padding: 120px 0;
  position: relative;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 60px;
  align-items: center;
}

.about-heading {
  font-family: 'Josefin Sans', sans-serif;
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 600;
  line-height: 1.1;
  margin-bottom: 8px;
}

.about-subheading {
  font-size: clamp(1rem, 2vw, 1.3rem);
  font-weight: 300;
  color: rgba(255, 255, 255, 0.696);
  margin-bottom: 30px;
  letter-spacing: 0.5px;
}

.about-description {
  font-size: 1rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 16px;
  font-weight: 300;
}

/* mini stats row */
.about-stats {
  display: flex;
  gap: 40px;
  margin-top: 40px;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-number {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 2.2rem;
  font-weight: 600;
  color: #d84e2c;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 2px;
  line-height: 1;
}

.plus-sign {
  font-size: 1.8rem;
  font-weight: 600;
  color: #d84e2c;
  display: inline-block;
}

.infinity-sign {
  font-size: 2.2rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateY(1px);
}

.stat-label {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* profile photo */
.about-image {
  display: flex;
  justify-content: center;
}

.image-frame {
  position: relative;
  width: 100%;
  max-width: 380px;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 3/4;
}

.image-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 12px;
  display: block;
  filter: grayscale(10%);
  transition: filter 0.5s ease, transform 0.5s ease;
}

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

.image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
      transparent 40%,
      rgba(0, 0, 0, 0.7) 100%);
  pointer-events: none;
}

/* scrolling marquee */
.quote-section {
  padding: 20px 0;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  background-color: white;
}

.marquee-track {
  overflow: hidden;
  white-space: nowrap;
}

.marquee-content {
  display: inline-flex;
  animation: marquee 25s linear infinite;
}

.marquee-content span {
  font-family: 'Josefin Sans', sans-serif;
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 600;
  color: #d84e2c;
  padding-right: 40px;
  text-transform: uppercase;
  letter-spacing: 3px;
  flex-shrink: 0;
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

/* my tech stack */
.skills {
  padding: 120px 0;
}

.stack-heading {
  font-family: 'Josefin Sans', sans-serif;
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 700;
  letter-spacing: 4px;
  margin-bottom: 30px;
  margin-top: 50px;
  color: #fff;
}

/* work history */
.experience {
  padding: 100px 0;
}

.experience-timeline {
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 1000px;
  margin: 0 auto;
}

.exp-card {
  background: #000;
  /* Solid Black Background */
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 40px;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.exp-card:hover {
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-5px);
}

.exp-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 15px;
}

.exp-title-row {
  display: flex;
  align-items: center;
  gap: 20px;
}

.exp-icon {
  width: 54px;
  height: 54px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  transition: all 0.3s ease;
}

.exp-icon.qa {
  color: #d84e2c;
  background: rgb(255, 255, 255);
}

.exp-icon.gd {
  color: #d84e2c;
  background: rgb(255, 255, 255);
}

.exp-role h3 {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 1.6rem;
  color: #fff;
  font-weight: 600;
  margin-bottom: 8px;
}

.exp-company {
  font-size: 1rem;
  font-weight: 500;
  font-family: 'Josefin Sans', sans-serif;
}

.exp-company.teal {
  color: #d84e2c;
}

.exp-company.orange {
  color: #d84e2c;
}

.exp-meta {
  text-align: right;
}

.exp-date {
  display: block;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 12px;
}

.exp-badge {
  display: inline-block;
  font-size: 0.8rem;
  padding: 4px 14px;
  border-radius: 20px;
  border: 1px solid;
}

.exp-badge.teal {
  color: #ffffff;
  border-color: #ffffff66;
  background: rgba(32, 201, 151, 0.05);
}

.exp-badge.orange {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.4);
  background: rgba(216, 78, 44, 0.05);
}

.exp-list {
  list-style: none;
  padding: 0;
}

.exp-list li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 12px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 1rem;
  line-height: 1.6;
}

.exp-list li::before {
  content: "●";
  position: absolute;
  left: 0;
  font-size: 0.8rem;
}

.exp-list.teal li::before {
  color: #ffffff;
}

.exp-list.orange li::before {
  color: #ffffff;
}

@media (max-width: 768px) {
  .exp-header {
    flex-direction: column;
    gap: 15px;
  }

  .exp-meta {
    text-align: left;
    display: flex;
    align-items: center;
    gap: 12px;
  }

  .exp-meta .exp-date {
    margin-bottom: 0;
  }

  .exp-card {
    padding: 24px;
    will-change: transform, opacity;
  }

  .exp-icon {
    width: 48px;
    height: 48px;
  }
}


.stack-heading:first-of-type {
  margin-top: 20px;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.skill-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  transition: all 0.3s ease;
  cursor: default;
}

.skill-card:hover {
  background: rgba(255, 255, 255, 0.051);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

.skill-card i {
  font-size: 1.6rem;
  flex-shrink: 0;
}

.skill-card span {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.912);
  font-weight: 400;
  letter-spacing: 0.3px;
}

.skill-icon-text {
  font-size: 0.75rem !important;
  font-weight: 700 !important;
  color: #88ce02 !important;
  letter-spacing: 1px;
  min-width: 26px;
  text-align: center;
}

/* project section */
.projects {
  padding: 120px 0;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.project-card {
  display: block;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.437);
  border-radius: 14px;
  overflow: hidden;
  transition: all 0.4s ease;
  will-change: transform, opacity;
}

.project-card:hover {
  border-color: rgb(255, 255, 255);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.project-image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/10;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.project-image img.contain-img {
  object-fit: contain;
  background: rgba(255, 255, 255, 0.03);
}

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

.project-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.project-card:hover .project-overlay {
  opacity: 1;
}

.project-view {
  color: #fff;
  font-size: 0.95rem;
  letter-spacing: 1px;
  padding: 12px 24px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 30px;
  transition: all 0.3s ease;
}

.project-view:hover {
  background: #d84e2c;
  border-color: #d84e2c;
}

.project-info {
  padding: 24px;
}

.project-info h3 {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 1.2rem;
  font-weight: 500;
  margin-bottom: 8px;
  letter-spacing: 0.5px;
  color: #fff;
}

.project-info p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.6;
  margin-bottom: 16px;
  font-weight: 300;
}

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

.project-tags span {
  font-size: 0.72rem;
  padding: 4px 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  color: rgba(255, 255, 255, 0.751);
  letter-spacing: 0.5px;
}

/* contact form section */
.contact {
  padding: 120px 0;
}

.contact-heading {
  font-family: 'Josefin Sans', sans-serif;
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 600;
  margin-bottom: 10px;
}

.contact-subtitle {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.632);
  margin-bottom: 60px;
  font-weight: 300;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-item {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 20px;
  text-decoration: none;
  padding: 28px 32px;
  background: rgba(255, 255, 255, 0.03);
  border: 1.5px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  backdrop-filter: blur(10px);
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.contact-item:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.contact-icon {
  font-size: 1.4rem;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgb(255, 255, 255);
  border-radius: 10px;
  flex-shrink: 0;
}

.contact-icon i {
  font-size: 2rem;
  color: #d84e2c;
}

.contact-label {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.contact-value {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 400;
}

/* contact form styling */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 32px;
  border: 1.5px solid rgba(255, 255, 255, 0.1);
  padding: 40px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.03);
  width: 100%;
  backdrop-filter: blur(10px);
}

@media (max-width: 480px) {
  .contact-form {
    padding: 25px;
  }
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 1.5px;
  color: rgba(255, 255, 255, 0.819);
  margin-bottom: 10px;
  text-transform: uppercase;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 0 16px 0;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.812);
  border-radius: 0;
  color: #fff;
  font-size: 1.1rem;
  font-family: 'Inter', sans-serif;
  outline: none;
  transition: border-color 0.3s ease;
  resize: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255, 255, 255, 0.727);
  font-weight: 300;
}

.form-group input:focus,
.form-group textarea:focus {
  border-bottom-color: #d84e2c;
}

.btn-submit {
  padding: 16px 36px;
  background: #d84e2c;
  border: none;
  border-radius: 10px;
  color: #fff;
  font-size: 1.2rem;
  font-family: 'Josefin Sans', sans-serif;
  font-weight: 500;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 10px;
  align-self: flex-start;
}

.btn-submit:hover {
  background: #c44425;
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(216, 78, 44, 0.3);
}

.btn-arrow {
  transition: transform 0.3s ease;
}

.btn-submit:hover .btn-arrow {
  opacity: 1;
}

/* footer */
.footer {
  padding: 30px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background-color: #000000;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-name {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 1.1rem;
  color: #ffffff;
  font-weight: 600;
  margin-bottom: 4px;
}

.footer-copy {
  font-size: 0.9rem;
  color: #ffffffcd;
  letter-spacing: 0.5px;
  font-weight: 400;
}

.footer-socials {
  display: flex;
  gap: 24px;
  align-items: center;
}

.footer-socials a {
  color: #ffffff;
  font-size: 1.25rem;
  transition: all 0.3s ease;
}

.footer-socials a:hover {
  color: #d84e2c;
  transform: translateY(-3px);
}

/* mobile fixes */
@media (max-width: 768px) {

  .section-container {
    padding: 0 20px;
  }

  /* Navbar mobile */
  .nav-container {
    padding: 18px 28px;
  }

  .logo {
    font-size: 1.2rem;
  }

  .hamburger {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 75%;
    height: 100vh;
    background: #ffffff;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 16px;
    /* reduced gap since cards are large now */
    transition: 0.4s cubic-bezier(0.8, 0, 0.2, 1);
    border-left: 1px solid rgba(0, 0, 0, 0.05);
  }

  .hamburger.active span {
    background: #111;
  }

  .nav-links.active {
    right: 0;
  }

  .nav-links a {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #ffffff;
    color: #111;
    padding: 14px 22px;
    width: 240px;
    border-radius: 14px;
    font-size: 1.05rem;
    font-weight: 500;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    opacity: 1 !important;
  }

  .nav-links a i {
    display: block;
    font-size: 18px;
    color: #d84e2c;
    width: 24px;
    text-align: center;
  }

  .nav-links a:hover,
  .nav-links a:active {
    transform: translateY(-2px) scale(1.01);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
    color: #111;
  }

  .nav-links a:active {
    transform: translateY(1px) scale(0.99);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  }

  /* hide desktop underline underline on mobile */
  .nav-links a::after {
    display: none;
  }

  /* Hero mobile — push content up */
  .hero {
    padding: 0px 20px 30px;
    min-height: 100svh;
    justify-content: flex-start;
    padding-top: 120px;
    overflow: visible;
  }

  .hero-big-text {
    margin-bottom: 0px;
  }

  .hero-name-outline,
  .hero-name-filled {
    letter-spacing: 2.5px;
    font-size: clamp(3.2rem, 15vw, 5.5rem);
    width: 100%;
    line-height: 1.1;
  }

  .hero-name-outline {
    margin-bottom: 8px;
    /* Added spacing between NAVEEN and YADAV */
  }

  .hero-info {
    flex-direction: column;
    gap: 16px;
    margin-top: 24px;
    align-items: center;
  }

  .hero-line {
    width: 30px;
    margin: 0 auto;
  }

  .hero-details {
    text-align: center;
  }

  .hero-role {
    font-size: 1.45rem;
    font-weight: 400;
  }

  .hero-role span {
    display: block;
    margin-bottom: 6px;
  }

  .hero-cta {
    margin-top: 24px;
    gap: 16px;
    flex-direction: column;
    width: 100%;
    max-width: none;
  }

  .cta-btn {
    width: 100%;
    min-width: auto;
    padding: 14px 22px;
    font-size: 0.9rem;
  }

  /* About mobile */
  .about {
    padding: 80px 0;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-image {
    order: -1;
  }

  .image-frame {
    max-width: 280px;
  }

  .about-stats {
    gap: 24px;
    flex-wrap: wrap;
  }

  /* Skills mobile */
  .skills {
    padding: 80px 0;
  }

  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .skill-card {
    padding: 12px 14px;
  }

  .skill-card i {
    font-size: 1.3rem;
  }

  .skill-card span {
    font-size: 0.78rem;
  }

  /* Projects mobile */
  .projects {
    padding: 80px 0;
  }

  .projects-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  /* Contact mobile */
  .contact {
    padding: 80px 0;
  }

  .contact-icon i {
    font-size: 1.6rem;
    color: #d84e2c;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 30px;
    width: 100%;
  }

  .contact-item {
    width: 100%;
    padding: 18px 20px;
    gap: 15px;
  }

  .form-group input,
  .form-group textarea {
    width: 100%;
  }

  .btn-submit {
    width: 100%;
    align-self: center;
  }

  /* Footer mobile */
  .footer-inner {
    flex-direction: column;
    gap: 24px;
    text-align: center;
  }

  .footer-left {
    display: flex;
    flex-direction: column;
    gap: 4px;
  }

  /* Quote */
  .quote-section {
    padding: 20px 0;
  }
}

/* dimension fix for medium mobile */
@media (min-width: 400px) and (max-width: 450px) {
  .hero {
    min-height: auto;
    padding-bottom: 60px;
  }

  .about {
    padding-top: 40px;
  }

  /* Preloader text centering */
  .text-wrapper {
    text-align: center;
    width: 100%;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  #preloader-logo {
    font-size: 1.6rem;
    text-align: center;
    width: 100%;
  }

  #subtext {
    font-size: 1.1rem;
    text-align: center;
    width: 100%;
  }
}

/* super small mobile fixes */
@media (max-width: 360px) {
  .hero {
    padding: 0px 20px 30px;
    min-height: 100svh;
    justify-content: flex-start;
    padding-top: 120px;
    overflow: visible;
  }

  .hero-big-text {
    margin-bottom: 0px;
  }

  .hero-name-outline,
  .hero-name-filled {
    letter-spacing: 2.5px;
    font-size: clamp(3.2rem, 15vw, 5.5rem);
    width: 100%;
    line-height: 1.1;
  }

  .hero-name-outline {
    margin-bottom: 8px;
    /* Added spacing between NAVEEN and YADAV */
  }

  .hero-info {
    flex-direction: column;
    gap: 16px;
    margin-top: 24px;
    align-items: center;
  }

  .hero-line {
    width: 30px;
    margin: 0 auto;
  }

  .hero-details {
    text-align: center;
  }

  .hero-role {
    font-size: 1.45rem;
    font-weight: 400;
  }

  .hero-role span {
    display: block;
    margin-bottom: 6px;
  }

  .hero-cta {
    margin-top: 24px;
    gap: 16px;
    flex-direction: column;
    width: 100%;
    max-width: none;
  }

  .cta-btn {
    width: 100%;
    min-width: auto;
    padding: 14px 22px;
    font-size: 0.9rem;
  }

  /* shared mobile styles */
  .section-container {
    padding: 0 15px;
  }

  .skills-grid {
    gap: 10px;
  }

  .about-stats {
    gap: 16px;
  }

  .stat-item .stat-num {
    font-size: 1.5rem;
  }

  .stat-item .stat-text {
    font-size: 0.7rem;
  }

  .contact-grid {
    gap: 16px;
  }

  .contact-item {
    padding: 14px 16px;
    gap: 12px;
  }

  .contact-icon {
    width: 38px;
    height: 38px;
  }

  .contact-icon i {
    font-size: 1.4rem;
  }

  .contact-value {
    font-size: 0.8rem;
  }
}

/* tiny phone fixes */
@media (max-width: 320px) {

  .hero-name-outline,
  .hero-name-filled {
    font-size: 3rem;
    /* Keep original mobile size */
    line-height: 1.35;
    /* Adjusted for better spacing */
  }

  .hero-name-outline {
    margin-bottom: 4px;
    /* Reduced gap between NAVEEN and YADAV */
  }
}


/* certificates section */
.certificates {
  padding: 100px 0px 0px 0px;
  background: transparent;
  position: relative;
  overflow: hidden;
}

.certificates .section-container {
  max-width: 1200px;
}

.certificate-swiper {
  padding: 40px 10px 80px !important;
}

.cert-card {
  background: rgb(0, 0, 0);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(10px);
  height: 100%;
  cursor: pointer;
  /* Signal interactivity */
}

/* popup modal styles */
.cert-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.cert-modal.active {
  opacity: 1;
  pointer-events: all;
}

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(15px);
}

.modal-content {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: scale(0.9);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-img-wrapper {
  position: relative;
  width: fit-content;
  height: fit-content;
  max-width: 90vw;
  max-height: 85vh;
  /* Room for close button */
  display: flex;
  align-items: center;
  justify-content: center;
}

.cert-modal.active .modal-content {
  transform: scale(1);
}

.modal-content img {
  display: block;
  max-width: 90vw;
  max-height: 80vh;
  /* Direct constraint for high-res monitors */
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.8);
}

.modal-close {
  position: absolute;
  top: -20px;
  right: -20px;
  background: #d84e2c;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  color: #fff;
  font-size: 1.8rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
  transition: all 0.3s ease;
}

.modal-close:hover {
  transform: scale(1.1) rotate(90deg);
  background: #fff;
  color: #000;
}

@media (max-width: 768px) {
  .modal-close {
    top: -15px;
    right: -5px;
    width: 34px;
    height: 34px;
    font-size: 1.5rem;
  }
}

.cert-card img {
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  /* Let the image dictate its full shape */
  object-fit: contain;
  background: #f8f8f8;
  /* Contrast for certificates */
  transition: transform 0.6s ease;
  display: block;
}

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

.cert-info {
  padding: 24px;
  text-align: center;
}

.cert-info h3 {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 1.2rem;
  font-weight: 500;
  color: #ffffff;
  letter-spacing: 1px;
}

/* swiper arrows */
.certificate-swiper .swiper-button-next,
.certificate-swiper .swiper-button-prev {
  background: #ffffff;
  color: #000000 !important;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

.certificate-swiper .swiper-button-next::after,
.certificate-swiper .swiper-button-prev::after {
  font-size: 1.2rem;
  font-weight: 900;
}

.certificate-swiper .swiper-button-next:hover,
.certificate-swiper .swiper-button-prev:hover {
  transform: translateY(-3px);
  background: #d84e2c;
  color: #fff !important;
}

.certificate-swiper .swiper-pagination-bullet {
  background: rgb(255, 255, 255);
  opacity: 1;
}

.certificate-swiper .swiper-pagination-bullet-active {
  background: #d84e2c;
  width: 20px;
  border-radius: 4px;
}

@media (max-width: 768px) {
  .certificates {
    padding: 60px 0px 0px 0px;
  }
}

/* giant monitor fixes */
@media (min-width: 1940px) {
  #preloader-logo {
    font-size: 3.5rem;
    letter-spacing: 2px;
  }

  #subtext {
    font-size: 1.8rem;
  }

  .logo {
    font-size: 1.6rem;
  }

  .nav-links a {
    font-size: 1.2rem;
  }
}

@media (min-width: 1024px) {

  * {
    cursor: none !important;
  }

  /* Reset cursor for inputs/textareas to allow text selection */
  input,
  textarea {
    cursor: auto !important;
  }
}

.cursor-dot,
.cursor-outline {
  pointer-events: none;
  position: fixed;
  top: 0;
  left: 0;
  border-radius: 50%;
  z-index: 99999;
  transform: translate(-50%, -50%);
  will-change: transform;
  transition: opacity 0.3s ease, transform 0.3s ease, background-color 0.3s ease;
}

.cursor-dot {
  width: 6px;
  height: 6px;
  background-color: #000000;
  z-index: 100000;
}

.cursor-outline {
  width: 34px;
  height: 34px;
  background-color: #ffffff;
  border: 2px solid #fff;
  mix-blend-mode: difference;
}

/* Hover States */
.cursor-active .cursor-dot {
  transform: translate(-50%, -50%) scale(0.5);
  opacity: 0;
}

.cursor-active .cursor-outline,
.cursor-text-active .cursor-outline,
.cursor-accent-active .cursor-outline {
  background-color: #ffffff;
  border: 1.5px solid #fff;
  mix-blend-mode: difference;
  transition: opacity 0.3s ease, border-color 0.3s ease, background-color 0.3s ease;
}

/* Adjust scaling for text specifically */
.cursor-text-active .cursor-outline {
  background-color: transparent;
  border: 1.5px solid #ffffff;
}

/* Custom Blue hover color for Red elements (Highest Priority) */
.cursor-accent-active .cursor-outline {
  background-color: #305CDE !important;
  border: 1.5px solid #305CDE !important;
  mix-blend-mode: normal !important;
}

.cursor-accent-active .cursor-dot {
  background-color: #ffffff !important;
  opacity: 1 !important;
  transform: translate(-50%, -50%) scale(1) !important;
}

/* Text in cursor (optional) */
.cursor-outline::after {
  content: attr(data-text);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 14px;
  font-weight: 600;
  color: #000;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.cursor-active.has-text .cursor-outline::after {
  opacity: 1;
}

/* Hide cursor on mobile */
@media (max-width: 1023px) {

  .cursor-dot,
  .cursor-outline {
    display: none;
  }
}

/* the progress bar */
#scroll-progress-track {
  position: fixed;
  top: 50%;
  right: 1.5%;
  transform: translateY(-50%);
  width: 4px;
  height: 20vh;
  z-index: 9998;
  pointer-events: none;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 999px;
  opacity: 0;
  /* JS fades this in on first scroll */
  will-change: opacity;
}

#scroll-progress-fill {
  width: 100%;
  height: 100%;
  background: #d84e2c;
  border-radius: 999px;
  transform-origin: top;
  transform: scaleY(0);
  will-change: transform;
}

/* Slim down on mobile */
@media (max-width: 768px) {
  #scroll-progress-track {
    width: 3px;
    right: 2%;
  }

  /* Comprehensive Mobile Hero Fixes */
  .hero-name-outline {
    font-size: 12vw !important;
    letter-spacing: 2px !important;
  }
  .hero-name-filled {
    font-size: 9.5vw !important;
    letter-spacing: 2px !important;
  }
  
  .hero-info {
    flex-direction: column !important;
    text-align: center !important;
    margin-top: 30px !important;
    gap: 15px !important;
  }
  
  .hero-details {
    text-align: center !important;
  }
  
  .hero-line {
    width: 40px !important;
    height: 2px !important;
    margin: 0 auto !important;
  }
  
  .hero-role {
    font-size: 1.25rem !important;
    white-space: normal !important;
  }
  
  .hero-cta {
    flex-direction: column !important;
    gap: 15px !important;
    width: 100% !important;
    padding: 0 10px !important;
  }
  
  .cta-btn {
    width: 100% !important;
    min-width: unset !important;
  }
}