* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue",
    sans-serif;
  background: #ffffff;
  color: #000;
  overflow-x: hidden;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: #111;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
}
h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}
h3 {
  font-size: clamp(1.5rem, 3vw, 2rem);
}
h4 {
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
}
h5 {
  font-size: clamp(1.1rem, 2vw, 1.5rem);
}
h6 {
  font-size: clamp(1rem, 1.5vw, 1.25rem);
}

p,
span,
a {
  font-weight: 400;
  line-height: 1.7;
  /* font-size: clamp(1rem, 1.5vw, 1.125rem); */
  color: #666;
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.nav-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -1px;
  color: #000;
}

.nav-links {
  display: flex;
  gap: 3rem;
  list-style: none;
}
#white {
  color: black !important;
}
.nav-links a {
  text-decoration: none;

  font-size: 0.95rem;
  transition: color 0.3s ease;
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: #000;
  transition: width 0.3s ease;
}

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

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

.menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.menu-btn.active {
  transform: rotate(90deg);
}

/* Mobile Menu Styles */
.mobile-menu {
  display: none;
  position: fixed;
  top: 65px;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  padding: 2rem;
  z-index: 40;
  transform: translateY(-100%);
  opacity: 0;
  transition: all 0.3s ease;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.mobile-menu.active {
  display: block;
  transform: translateY(0);
  opacity: 1;
}

.mobile-menu ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.mobile-menu ul li a {
  text-decoration: none;
  color: #000;
  font-size: 1.1rem;
  font-weight: 500;
  display: block;
  padding: 0.5rem 0;
  transition: all 0.3s ease;
  border-bottom: 2px solid transparent;
}

.mobile-menu ul li a:hover {
  color: #666;
  padding-left: 1rem;
  border-bottom-color: #000;
}

/* Hero Section */
.hero {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 160px;
  padding-right: 1.5rem;
  padding-left: 1.5rem;
  position: relative;
  min-height: 90vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Floating Background Elements */
.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.floating-shape {
  position: absolute;
  opacity: 0.03;
  animation: float 20s infinite ease-in-out;
}

.floating-shape:nth-child(1) {
  width: 300px;
  height: 300px;
  border: 2px solid #000;
  border-radius: 50%;
  top: 15%;
  right: 10%;
  animation-delay: 1s;
  animation-duration: 25s;
}

.floating-shape:nth-child(2) {
  width: 150px;
  height: 150px;
  border: 2px solid #000;
  border-radius: 50%;
  bottom: 20%;
  right: 10%;
  animation-delay: 2s;
  animation-duration: 20s;
}

@keyframes float {
  0%,
  100% {
    transform: translate(0, 0) rotate(0deg);
  }
  33% {
    transform: translate(30px, -30px) rotate(120deg);
  }
  66% {
    transform: translate(-20px, 20px) rotate(240deg);
  }
}

.hero-content {
  max-width: 900px;
  position: relative;
  z-index: 1;
}

/* Availability Badge */
.availability-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.5rem;
  background: rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 50px;
  margin-bottom: 0rem;
  font-size: 0.8rem !important;
  font-weight: 500;
  animation: slideDown 0.8s ease-out;
}

.status-dot {
  width: 8px;
  height: 8px;
  background: #00ff00;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(1.1);
  }
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero h1 {
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  line-height: 1.2;
  margin-bottom: 1.5rem;
  font-weight: 700;
  letter-spacing: -1px;
  animation: fadeInUp 1s ease-out 0.2s both;
}

/* Animated Name with Gradient */
.hero-name {
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  font-weight: 400;
}

@keyframes gradientShift {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2vw, 1.25rem);
  color: #666;
  margin-bottom: clamp(1.5rem, 4vw, 2rem);
  max-width: 600px;
  line-height: 1.7;
  letter-spacing: -0.01em;
  font-weight: 450;
  animation: fadeInUp 1s ease-out 0.4s both;
}

/* Rotating Skills Tags */
.hero-skills {
  display: flex;
  gap: 1rem;
  flex-wrap: nowrap;
  margin-bottom: 2rem;
  animation: fadeInUp 0.9s ease-out 0.6s both;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 6px;
}

.skill-chip {
  list-style: none;
  min-width: 160px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  padding: 0.9rem 1rem;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.skill-chip strong {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.2px;
}

.chip-sub {
  font-size: 0.78rem;
  color: #666;
}

.skill-chip:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.08);
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;

  margin-bottom: 4rem;
  animation: fadeInUp 1s ease-out 0.8s both;
}

.btn {
  margin-top: 10px;
  height: 48px;
  padding: 0 2rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 500;
  cursor: pointer;
  border: none;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  min-width: 160px;
  will-change: background-color;
  line-height: 1;
  color: antiquewhite;
}

/* Button states and animations */
.btn-text {
  display: inline-block;
  transition: all 0.3s ease;
  position: relative;
  top: -1px;
  color: antiquewhite;
}

.btn-dots {
  position: relative;
  width: 24px;
  height: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-dots::after {
  content: ".";
  position: absolute;
  animation: loadingDots 1.5s infinite;
  line-height: 1;
}

.btn-icon {
  margin-left: 6px;
  font-size: 1em;
  opacity: 0;
  transform: scale(0.5);
  transition: all 0.3s ease;
  width: 20px;
  height: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Loading state */
.btn-loading {
  background: #1a365d !important; /* More professional dark blue */
  pointer-events: none;
  color: #ffffff !important;
}

.btn-loading .btn-dots {
  opacity: 1;
  color: #ffffff;
}

/* Success state */
.btn-success {
  background: #065f46 !important; /* Professional dark green */
  pointer-events: none;
  color: #ffffff !important;
}

.btn-success .btn-icon,
.btn-success .btn-text {
  opacity: 1;
  transform: scale(1);
  color: #ffffff;
}

/* Error state */
.btn-error {
  background: #991b1b !important; /* Professional dark red */
  pointer-events: none;
  color: #ffffff !important;
}

.btn-error .btn-icon,
.btn-error .btn-text {
  opacity: 1;
  transform: scale(1);
  color: #ffffff;
}

@keyframes loadingDots {
  0%,
  20% {
    content: ".";
  }
  40%,
  60% {
    content: "..";
  }
  80%,
  100% {
    content: "...";
  }
}

/* Enhanced Button Effects */
.btn::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
  width: 300px;
  height: 300px;
}

.btn-primary {
  background: #000;
  color: #fff;
}

.btn-primary:hover {
  background: #222;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.btn-secondary {
  background: transparent;
  color: #000;
  border: 1px solid #000;
}

.btn-secondary:hover {
  background: #000;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Scroll Indicator */
.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  animation: fadeIn 1s ease-out 1.5s both;
  cursor: pointer;
}

.scroll-indicator span {
  font-size: 0.75rem;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 500;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, #000, transparent);
  animation: scrollAnimation 2s infinite;
}

@keyframes scrollAnimation {
  0% {
    opacity: 0;
    height: 0;
  }
  50% {
    opacity: 1;
    height: 40px;
  }
  100% {
    opacity: 0;
    height: 40px;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Stats Bar */
.hero-stats {
  display: flex;
  gap: 3rem;
  margin-bottom: 3rem;
  animation: fadeInUp 1s ease-out 1s both;
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.stat-number {
  font-size: 2rem;
  font-weight: 700;
  color: #000;
  letter-spacing: -1px;
}

.stat-label {
  font-size: 0.85rem;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Section */
.section {
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(3rem, 8vh, 5rem) 1.5rem;

  position: relative;
  scroll-margin-top: 80px; /* For smooth scrolling with fixed header */
}

.section-title {
  font-size: clamp(2rem, 5vw, 2.75rem);
  margin-bottom: 5rem;
  font-weight: 700;
  position: relative;
  display: inline-block;
  letter-spacing: -0.03em;
  line-height: 1.1;
  background: linear-gradient(to right, #000, #333);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Section Title Decoration */
.section-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 60px;
  height: 3px;
  background: #000;
  animation: expandWidth 1s ease-out;
}

@keyframes expandWidth {
  from {
    width: 0;
  }
  to {
    width: 60px;
  }
}

/* About Section Enhancements */
.about-grid-simple {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 3rem;
  margin-top: 3rem;
  /* padding: 0.5rem; */
}

/* About intro/profile */
.about-intro {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 1.75rem;
  align-items: center;
  margin-bottom: 2rem;
}

.profile-card {
  display: flex;
  gap: 1rem;
  align-items: center;
  padding: 0.4rem 0.25rem;
  border-radius: 10px;
  border: 0; /* remove heavy border */
  box-shadow: none; /* remove heavy shadow for minimal look */
  background: transparent;
}

.avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 1.15rem;
  background: linear-gradient(180deg, #fafafa, #ffffff);
  color: #111;
  border: 1px solid rgba(0, 0, 0, 0.03);
}

.profile-meta .profile-name {
  font-weight: 700;
  font-size: 1rem;
}
.profile-meta .profile-role {
  font-size: 0.85rem;
  color: #666;
}

.about-summary p {
  color: #666;
  line-height: 1.7;
  margin-bottom: 0.75rem;
}

/* About header styling */
.about-header {
  text-align: center;
  margin-bottom: 1.5rem;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}
.about-header .section-title {
  margin-bottom: 0.35rem;
}
.about-subtitle {
  color: #666;
  font-size: 0.98rem;
  margin: 0 auto;
  max-width: 760px;
  line-height: 1.5;
}

.about-cta {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

/* Tech category as subtle cards */
.tech-category-simple {
  padding: 1.25rem;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  background: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
  transition: all 0.3s ease-in-out;
}

.tech-category-simple:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 0, 0, 0.08);
}

.tech-tags {
  margin-top: 0.6rem;
}

.tech-tag {
  padding: 0.45rem 0.85rem;
  border-radius: 6px;
}

.about-column-simple {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  animation: fadeInUp 0.8s ease-out backwards;
}

.about-column-simple:nth-child(1) {
  animation-delay: 0.2s;
}

.about-column-simple:nth-child(2) {
  animation-delay: 0.4s;
}

.column-title-simple {
  font-size: 1.2rem;
  font-weight: 700;
  color: #000;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  padding-bottom: 0.75rem;
  position: relative;
}

.column-title-simple::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 40px;
  height: 2px;
  background: #000;
}

.tech-section-simple {
  display: flex;
  flex-direction: column;
  gap: clamp(1.5rem, 4vw, 2rem);
}

.tech-category-simple {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  animation: fadeInLeft 0.6s ease-out backwards;
}

.tech-category-simple:nth-child(1) {
  animation-delay: 0.3s;
}
.tech-category-simple:nth-child(2) {
  animation-delay: 0.4s;
}
.tech-category-simple:nth-child(3) {
  animation-delay: 0.5s;
}
.tech-category-simple:nth-child(4) {
  animation-delay: 0.6s;
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.tech-category-label {
  font-size: 0.8rem;
  color: #666;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 0.5rem 0;
  padding-left: 0.25rem;
  border-left: 2px solid rgba(0, 0, 0, 0.1);
}

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tech-tag {
  font-size: clamp(0.75rem, 1.2vw, 0.875rem);
  background: rgba(0, 0, 0, 0.04);
  color: #333;
  padding: clamp(0.35rem, 1vw, 0.5rem) clamp(0.6rem, 1.5vw, 0.9rem);
  border-radius: 3px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  letter-spacing: 0.02em;
}

.tech-tag::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(0, 0, 0, 0.05),
    transparent
  );
  transition: left 0.5s;
}

.tech-tag:hover::before {
  left: 100%;
}

.tech-tag:hover {
  background: rgba(0, 0, 0, 0.08);
  border-color: rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
}

/* Soft Skills Section */
.soft-skills-list-simple {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.skill-item-simple {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.5rem;
  margin-bottom: 1.25rem;
  border-radius: 12px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
  animation: fadeInRight 0.6s ease-out backwards;
  transition: all 0.3s ease;
}

.skill-item-simple:nth-child(1) {
  animation-delay: 0.5s;
}
.skill-item-simple:nth-child(2) {
  animation-delay: 0.6s;
}
.skill-item-simple:nth-child(3) {
  animation-delay: 0.7s;
}
.skill-item-simple:nth-child(4) {
  animation-delay: 0.8s;
  padding-bottom: 15px !important;
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.skill-item-simple:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 0, 0, 0.08);
}

.skill-item-simple:hover .skill-label {
  color: #000;
  transform: translateX(2px);
}

.skill-item-simple:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.skill-label {
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  font-weight: 600;
  color: #111;
  letter-spacing: -0.01em;
  transition: all 0.3s ease;
  position: relative;
  display: inline-block;
  line-height: 1.4;
}

.skill-label::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: rgba(0, 0, 0, 0.1);
  transition: width 0.3s ease;
}

.skill-item-simple:hover .skill-label::after {
  width: 100%;
}

.skill-description {
  font-size: clamp(0.875rem, 1.3vw, 0.95rem);
  color: #666;
  line-height: 1.7;
  margin: 0.5rem 0;
  padding-right: 1rem;
  letter-spacing: 0.01em;
  font-weight: 400;
}

/* Projects Section Enhancements */
.projects-list {
  margin-top: 3rem;
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.project-item {
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  padding-bottom: 3rem;
  transition: all 0.3s ease;
  animation: fadeInUp 0.6s ease-out backwards;
  position: relative;
}

.project-item:nth-child(1) {
  animation-delay: 0.1s;
}
.project-item:nth-child(2) {
  animation-delay: 0.2s;
}
.project-item:nth-child(3) {
  animation-delay: 0.3s;
}
.project-item:nth-child(4) {
  animation-delay: 0.4s;
}
.project-item:nth-child(5) {
  animation-delay: 0.5s;
}
.project-item:nth-child(6) {
  animation-delay: 0.6s;
}

.project-item::before {
  content: "";
  position: absolute;
  left: -2rem;
  top: 0;
  width: 3px;
  height: 0;
  background: #000;
  transition: height 0.4s ease;
}

.project-item:hover::before {
  height: 100%;
}

.project-item:hover {
  padding-left: 1rem;
}

.project-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.project-header {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 2rem;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.project-number {
  font-size: 2.8rem;
  font-weight: 700;
  color: rgba(0, 0, 0, 0.06);
  line-height: 1;
  transition: all 0.3s ease;
}

.project-item:hover .project-number {
  color: rgba(0, 0, 0, 0.15);
  transform: scale(1.1);
}

.project-info h3 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 0.5rem !important;
  color: #000;
  transition: all 0.3s ease;
}

.project-item:hover .project-info h3 {
  letter-spacing: 0.5px;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;

  gap: 0.6rem;
}

.project-tag {
  font-size: 0.7rem;
  color: #999;
  background: rgba(0, 0, 0, 0.04);
  padding: 0.4rem 0.8rem;
  border-radius: 3px;
  font-weight: 500;
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.project-item:hover .project-tag {
  background: rgba(0, 0, 0, 0.06);
  border-color: rgba(0, 0, 0, 0.1);
}

/* Disable hover effects on mobile/touch devices */
@media (hover: none) and (pointer: coarse) {
  .project-item:hover::before {
    height: 0;
  }

  .project-item:hover {
    padding-left: 0;
  }

  .project-item:hover .project-number {
    color: rgba(0, 0, 0, 0.06);
    transform: scale(1);
  }

  .project-item:hover .project-info h3 {
    letter-spacing: 0;
  }

  .project-item:hover .project-tag {
    background: rgba(0, 0, 0, 0.04);
    border-color: transparent;
  }
}

.project-description {
  color: #666;
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  margin-left: 70px;
}

.project-links {
  display: flex;
  gap: 2.5rem;
  margin-left: 70px;
}

.project-link {
  font-size: 0.9rem;
  color: #000;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.project-link::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: #000;
  transition: width 0.3s ease;
}

.project-link:hover {
  color: #666;
  transform: translateX(5px);
}

.project-link:hover::after {
  width: 100%;
}

/* Experience Timeline Enhancements */
.timeline {
  max-width: 800px;
  position: relative;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 150px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.1),
    rgba(0, 0, 0, 0.05)
  );
}

.timeline-item {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  position: relative;
  animation: fadeInUp 0.6s ease-out backwards;
}

.timeline-item:nth-child(1) {
  animation-delay: 0.2s;
}
.timeline-item:nth-child(2) {
  animation-delay: 0.4s;
}
.timeline-item:nth-child(3) {
  animation-delay: 0.6s;
}

.timeline-item::after {
  content: "";
  position: absolute;
  left: 150px;
  top: 5px;
  width: 12px;
  height: 12px;
  background: #fff;
  border: 2px solid #000;
  border-radius: 50%;
  transform: translateX(-50%);
  transition: all 0.3s ease;
}

@media (hover: none) and (pointer: coarse) {
  /* Disable all hover effects on touch devices */
  /* .timeline-item:hover::after {
    background: #fff !important;
    transform: translateX(-50%) !important;
  } */

  /* .timeline-item:hover .timeline-content {
    padding-left: 2rem !important;
  } */

  .timeline-item:hover .timeline-content h3 {
    color: #111 !important;
  }
}

.timeline-date {
  font-size: 0.9rem;
  color: #999;
  font-weight: 500;
  padding-right: 2rem;
}

.timeline-content {
  padding-left: 2rem;
  transition: all 0.3s ease;
}

.timeline-content h3 {
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
  transition: all 0.3s ease;
}

.timeline-item:hover .timeline-content h3 {
  color: #000;
}

.timeline-company {
  color: #666;
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.timeline-description {
  color: #666;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Mobile Compact Timeline */
@media (max-width: 768px) {
  .timeline {
    max-width: 100%;
  }

  .timeline::before {
    display: none;
  }

  .timeline-item {
    display: block;
    gap: 0;
    margin-bottom: 2rem;
    padding-left: 45px;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  }

  .timeline-item::after {
    display: none;
  }

  .timeline-date {
    font-size: 0.75rem;
    color: #999;
    padding-right: 0;
    margin-bottom: 0.3rem;
    font-weight: 500;
  }

  .timeline-content {
    padding-left: 0;
  }

  .timeline-content h3 {
    font-size: 0.9rem;
    margin-bottom: 0.1rem;
    font-weight: 600;
  }

  .timeline-item:hover .timeline-content h3 {
    color: #111 !important;
  }

  .timeline-company {
    font-size: 0.8rem;
    margin-bottom: 0.3rem;
    color: #666;
    font-weight: 500;
  }

  .timeline-description {
    font-size: 0.8rem;
    line-height: 1.4;
    color: #666;
  }
}

/* Contact Section Enhancements */
.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  animation: fadeInLeft 0.8s ease-out 0.2s backwards;
}

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

.form-group label {
  margin-bottom: 0.5rem;
  font-weight: 500;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.form-group input,
.form-group textarea {
  padding: 0.75rem 1rem;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 4px;
  font-family: inherit;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  background: #fff;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transform: translateY(-2px);
}

.form-group input:focus + label,
.form-group textarea:focus + label {
  color: #000;
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-info {
  margin-top: 2rem;
  animation: fadeInRight 0.8s ease-out 0.4s backwards;
}

.contact-item {
  margin-bottom: 2rem;
  padding-left: 1rem;
  border-left: 2px solid transparent;
  transition: all 0.3s ease;
  animation: fadeInRight 0.6s ease-out backwards;
}

.contact-item:nth-child(1) {
  animation-delay: 0.5s;
}
.contact-item:nth-child(2) {
  animation-delay: 0.6s;
}
.contact-item:nth-child(3) {
  animation-delay: 0.7s;
}
.contact-item:nth-child(4) {
  animation-delay: 0.8s;
}

.contact-item:hover {
  border-left-color: #000;
  padding-left: 1.5rem;
}

.contact-label {
  font-weight: 600;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.contact-value {
  color: #666;
  font-size: 0.95rem;
}

.contact-value a {
  color: #000;
  text-decoration: none;
  transition: all 0.3s ease;
  position: relative;
}

.contact-value a::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: #000;
  transition: width 0.3s ease;
}

.contact-value a:hover::after {
  width: 100%;
}

.contact-value a:hover {
  color: #666;
}

.social-links {
  display: flex;
  gap: 1.5rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.social-links a {
  text-decoration: none;
  color: #000;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  padding: 0.5rem 1rem;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 4px;
  position: relative;
  overflow: hidden;
}

.social-links a::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.05);
  transition: left 0.3s ease;
}

.social-links a:hover::before {
  left: 0;
}

.social-links a:hover {
  border-color: #000;
  transform: translateY(-2px);
}

/* Toast Notification */
.toast {
  position: fixed;
  bottom: 20px;
  right: 20px;
  padding: 12px 24px;
  border-radius: 4px;
  font-size: 0.9rem;
  font-weight: 500;
  color: white;
  opacity: 0;
  transform: translateY(100%);
  transition: all 0.3s ease-in-out;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.toast.success {
  background-color: #22c55e;
}

.toast.error {
  background-color: #ef4444;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* Footer */
footer {
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  padding: 3rem 2rem;
  text-align: center;
  color: #999;
  font-size: 0.9rem;
}

/* Scroll Animation */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
/* About section specific responsive styles */
@media (max-width: 1024px) {
  .section {
    padding: clamp(2.5rem, 6vh, 4rem) clamp(1.5rem, 4vw, 2rem);
  }

  .about-grid-simple {
    gap: clamp(1.5rem, 4vw, 2rem);
  }

  .tech-category-simple,
  .skill-item-simple {
    padding: clamp(1rem, 3vw, 1.25rem);
  }

  .section-title {
    margin-bottom: clamp(1.5rem, 4vw, 2rem);
  }
}
/* Typography adjustments for readability on mobile */
@media (max-width: 768px) {
  .tech-category-label {
    font-size: clamp(0.7rem, 1.2vw, 0.8rem);
    letter-spacing: 0.05em;
  }

  .skill-label {
    font-size: clamp(0.95rem, 1.3vw, 1rem);
    line-height: 1.3;
  }

  .skill-description {
    font-size: clamp(0.85rem, 1.2vw, 0.9rem);
    line-height: 1.6;
  }

  p,
  span,
  a {
    font-size: clamp(0.95rem, 1.3vw, 1rem);
    line-height: 1.6;
  }
  .section {
    padding: clamp(2rem, 5vh, 3rem) clamp(1rem, 4vw, 1.5rem);
  }

  .nav-links {
    display: none;
  }

  .about-intro {
    grid-template-columns: 1fr;
    gap: clamp(0.75rem, 2vw, 1rem);
  }

  .about-header {
    text-align: left;
    margin-bottom: clamp(1.5rem, 4vw, 2rem);
  }

  /* #home {
    padding-bottom: clamp(4rem, 10vh, 6rem) !important;
  } */
  .menu-btn {
    display: block;
  }

  .mobile-menu {
    display: none;
  }

  .mobile-menu.active {
    display: block;
  }

  .hero {
    min-height: auto;
    padding-top: 120px !important;
    padding-left: 1.5rem !important;
    padding-right: 1.5rem !important;
    /* padding-bottom: 0rem !important; */
  }

  .hero h1 {
    font-size: 1.9rem;
    margin: 0.5rem 0rem;
  }

  .floating-shape {
    display: none;
  }
  .hero-subtitle {
    font-size: 0.9rem;
  }
  .hero-name {
    font-size: 1.9rem;
  }
  .hero-stats {
    gap: 2rem;
  }

  .stat-number {
    font-size: 1.5rem;
  }

  .stat-label {
    font-size: 0.75rem;
  }

  .hero-skills {
    /* switch to a wrapped grid on mobile to avoid horizontal scrolling */
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    overflow: visible;
  }

  .skill-chip {
    min-width: 0;
    width: 100%;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
    padding: 0.75rem 0.9rem;
  }

  .scroll-indicator {
    display: none;
  }

  .about-grid-simple {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    margin-top: 2rem;
  }

  .tech-category-simple,
  .skill-item-simple {
    margin-bottom: 1rem;
  }

  .tech-tags {
    gap: 0.5rem;
  }

  .tech-tag {
    font-size: 0.75rem;
    padding: 0.35rem 0.7rem;
  }

  .skill-label {
    font-size: 0.9rem;
  }

  .skill-description {
    font-size: 0.8rem;
  }

  .contact-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .timeline::before {
    left: 100px;
  }

  .timeline-item {
    grid-template-columns: 100px 1fr;
    gap: 1rem;
  }

  .timeline-item::after {
    left: 100px;
  }

  .timeline-content {
    padding-left: 1rem;
  }

  .section {
    padding: 3rem 1.5rem;
  }

  .project-description,
  .project-links {
    margin-left: 0;
  }

  .project-header {
    grid-template-columns: 1fr;
  }

  .project-item::before {
    display: none;
  }
}

/* Very small devices: single-column chips */
@media (max-width: 420px) {
  .section {
    padding: clamp(1.5rem, 4vh, 2rem) 1.5rem;
  }
  .availability-badge span {
    font-size: 0.7rem;
  }
  .hero-name {
    font-size: 1.9rem;
  }
  .hero h1 {
    font-size: 1.9rem;
    margin: 0.5rem 0rem;
  }
  .hero-cta {
    gap: 0.1rem;
    justify-content: center;
  }
  .hero-skills {
    grid-template-columns: 1fr;
    gap: 0.6rem;
  }

  .tech-category-simple,
  .skill-item-simple {
    padding: 1rem;
    margin-bottom: 0.75rem;
  }

  .tech-tags {
    gap: 0.4rem;
  }

  .tech-tag {
    font-size: 0.7rem;
    padding: 0.3rem 0.6rem;
  }

  .section-title {
    font-size: 1.6rem;
    margin-bottom: 1rem;
  }

  .skill-description {
    font-size: 0.8rem;
    line-height: 1.5;
  }
}
