@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;600;700&family=Outfit:wght@300;400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap');

:root {
  --background: 0 0% 0%;
  --foreground: 0 0% 100%;

  --card: 0 0% 5%;
  --card-foreground: 0 0% 100%;

  --popover: 0 0% 5%;
  --popover-foreground: 0 0% 100%;

  --primary: 0 0% 100%;
  --primary-foreground: 0 0% 0%;

  --secondary: 0 0% 10%;
  --secondary-foreground: 0 0% 100%;

  --muted: 0 0% 15%;
  --muted-foreground: 0 0% 65%;

  --accent: 0 0% 20%;
  --accent-foreground: 0 0% 100%;

  --destructive: 0 84.2% 60.2%;
  --destructive-foreground: 0 0% 100%;

  --border: 0 0% 20%;
  --input: 0 0% 15%;
  --ring: 0 0% 100%;

  --radius: 0.5rem;

  /* Custom tokens */
  --font-display: 'Roboto', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  
  --glow-primary: 0 0 40px hsl(0 0% 100% / 0.1);
  --shadow-card: 0 4px 20px hsl(0 0% 0% / 0.5);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  border-color: hsl(var(--border));
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
  font-family: var(--font-display);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
}

code, pre {
  font-family: var(--font-mono);
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* Container */
.container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Header */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background-color: hsl(var(--background) / 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid hsl(var(--border));
}

header .navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
}

header .logo {
  font-size: 1.25rem;
  font-weight: bold;
  font-family: var(--font-mono);
}

header .logo .dot {
  color: hsl(var(--muted-foreground));
}

header .nav-links {
  display: none;
  gap: 2rem;
  list-style: none;
}

header .social-links {
  display: none;
  gap: 1rem;
  list-style: none;
}

header .menu-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
  color: hsl(var(--foreground));
}

header .mobile-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background-color: hsl(var(--background));
  border-bottom: 1px solid hsl(var(--border));
  padding: 1rem;
  flex-direction: column;
  gap: 1rem;
}

header .mobile-menu.open {
  display: flex;
}

@media (min-width: 768px) {
  header .nav-links {
    display: flex;
  }

  header .social-links {
    display: flex;
  }

  header .menu-btn {
    display: none;
  }

  header .mobile-menu {
    display: none !important;
  }
}

header a {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  transition: color var(--transition-smooth);
}

header a:hover {
  color: hsl(var(--foreground));
}

/* Hero Section */
#about {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 6rem;
  padding-bottom: 6rem;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -10;
}
.hero-particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -20; /* behind glows */
  pointer-events: none; /* don't block UI interactions */
  display: block;
}

/* Respect user preference for reduced motion */
@media (prefers-reduced-motion: reduce) {
  .hero-particles { display: none !important; }
}

.hero-glow {
  position: absolute;
  width: 24rem;
  height: 24rem;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  filter: blur(3rem);
}

.hero-glow-1 {
  top: 5rem;
  left: 25%;
  animation: floatGlow 6s ease-in-out infinite;
}

.hero-glow-2 {
  bottom: 5rem;
  right: 25%;
  animation: floatGlow 6s ease-in-out infinite;
  animation-delay: 2s;
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  max-width: 60rem; /* widen hero content for comfort */
  padding-left: 1rem;
  padding-right: 1rem;
}

.hero-content > * {
  display: flex;
  flex-direction: column;
  gap: 3rem; /* slightly more spacing for less congestion */
}

.hero-greeting {
  color: hsl(var(--muted-foreground));
  font-family: var(--font-mono);
  font-size: 0.875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  animation: slideUp 0.6s ease-out forwards;
  animation-delay: 0.1s;
  opacity: 0;
  margin-bottom: 0.25rem;
}

.hero-name {
  font-size: 3rem;
  font-weight: bold;
  letter-spacing: -0.02em;
  animation: slideUp 0.6s ease-out forwards;
  animation-delay: 0.2s;
  opacity: 0;
  line-height: 1.2;
  margin-bottom: 0.5rem;
}

@media (min-width: 768px) {
  .hero-name {
    font-size: 3.75rem;
  }
}

@media (min-width: 1024px) {
  .hero-name {
    font-size: 4.5rem;
  }
}

.hero-title {
  font-size: 1.25rem;
  color: hsl(var(--muted-foreground));
  animation: slideUp 0.6s ease-out forwards;
  animation-delay: 0.3s;
  opacity: 0;
  margin-bottom: 0.75rem;
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 1.5rem;
  }
}

.hero-bio {
  max-width: 48rem; /* give the hero more breathing room */
  margin: 0 auto;
  animation: slideUp 0.6s ease-out forwards;
  animation-delay: 0.4s;
  opacity: 0;
}

.hero-bio { margin-bottom: 1.25rem; }

.hero-bio p {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  line-height: 1.75;
}

@media (min-width: 768px) {
  .hero-bio p {
    font-size: 1rem;
  }
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding-top: 0.5rem;
  justify-content: center;
  align-items: center;
  animation: slideUp 0.6s ease-out forwards;
  animation-delay: 0.5s;
  opacity: 0;
}

.hero-cta-row {
  display:flex;
  justify-content:center; /* keep buttons together */
  gap: 0.6rem;
  align-items:center;
  margin: 0 auto;
}

@media (max-width:640px) {
  .hero-cta-row { flex-direction:column; gap:0.5rem; }
  .hero-cta-row .cta-btn { width:100%; }
}

.hero-social { margin-top:0.6rem; }

.social-icon-btn {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:36px;
  height:36px;
  border:1px solid hsl(var(--border));
  border-radius:8px;
  background:transparent;
  color: hsl(var(--foreground));
  transition:var(--transition-smooth);
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.social-icon-btn:hover {
  background: linear-gradient(180deg, hsl(var(--accent) / 0.08), hsl(var(--accent) / 0.02));
  border-color: hsl(var(--muted-foreground));
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(24,24,24,0.12);
}

.hero-cta .cta-btn {
  padding: 0.5rem 0.75rem;
  font-size: 0.9rem;
}

@media (max-width: 520px) {
  .hero-cta { gap: 0.5rem; }
}

.hero-social {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding-top: 0.25rem;
  animation: slideUp 0.6s ease-out forwards;
  animation-delay: 0.6s;
  opacity: 0;
}

.hero-social a {
  font-size: 0.9rem;
}

.social-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: hsl(var(--muted-foreground));
  transition: color var(--transition-smooth);
  font-size: 0.875rem;
}

.social-link:hover {
  color: hsl(var(--foreground));
  text-decoration: underline;
  /* text-decoration-offset is not widely supported; use text-underline-offset instead */
  text-underline-offset: 0.25rem;
}

/* Social icon images (SVG/PNG) used for social links */
.social-img {
  width: 18px;
  height: 18px;
  display: block;
  object-fit: contain;
}

.scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  animation: bounce 2s infinite;
  display: none;
  z-index: 10;
  color: hsl(var(--muted-foreground));
  transition: color var(--transition-smooth);
}

.scroll-indicator:hover {
  color: hsl(var(--foreground));
}

.scroll-indicator .scroll-mouse {
  width: 34px;
  height: 46px;
  stroke-width: 1.25;
  color: hsl(var(--muted-foreground));
}

.scroll-indicator .scroll-mouse path {
  stroke: currentColor;
}

.scroll-indicator .scroll-mouse rect {
  stroke: currentColor;
  stroke-opacity: 0.9;
  fill: none;
}

@media (min-width: 768px) {
  .scroll-indicator {
    display: block;
  }
}

/* Skills Section */
#skills {
  padding: 6rem 1.5rem;
  background-color: hsl(var(--card) / 0.3);
}

.section-header {
  margin-bottom: 4rem;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.section-label {
  color: hsl(var(--muted-foreground));
  font-family: var(--font-mono);
  font-size: 0.875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  display: block;
}

.section-title {
  font-size: 1.875rem;
  font-weight: bold;
}

@media (min-width: 768px) {
  .section-title {
    font-size: 2.25rem;
  }
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .skills-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.skill-card {
  padding: 1.5rem;
  border-radius: calc(var(--radius) + 0.5rem);
  border: 1px solid hsl(var(--border));
  background-color: hsl(var(--card));
  transition: var(--transition-smooth);
  cursor: default;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  height: 100%;
  animation: slideUp 0.6s ease-out forwards;
  opacity: 0;
}

.skill-card:hover {
  transform: translateY(-1rem);
  box-shadow: var(--glow-primary);
}

.skill-icon {
  margin-bottom: 1rem;
  color: hsl(var(--muted-foreground));
  transition: color var(--transition-smooth);
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border: 1px solid hsl(var(--border));
  background: transparent;
}

.skill-icon .skill-img,
.skill-img {
  display: inline-block;
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 8px;
}

.skill-card:hover .skill-icon {
  color: hsl(var(--foreground));
  /* no background on container to preserve transparent look; icon SVGs retain their artwork */
  border-color: hsl(var(--muted-foreground));
  transform: translateY(-2px);
}

.skill-name {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  transition: color var(--transition-smooth);
}

.skill-card:hover .skill-name {
  color: hsl(var(--foreground));
}

.skill-description {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  line-height: 1.6;
  white-space: pre-line;
  word-wrap: break-word;
  text-align: left; /* keep the description left-aligned while headers/icons remain centered */
  align-self: stretch; /* let description flow full width of the card */
  width: 100%;
}

/* Skill bullet list */
.skill-list {
  list-style: none;
  padding-left: 0;
  margin-top: 0.75rem;
  display: grid;
  gap: 0.4rem;
  align-self: stretch; /* allow full width of the card */
  text-align: left; /* left-align bullet contents */
}
.skill-item {
  position: relative;
  padding-left: 1.1rem;
  font-size: 0.82rem;
  color: hsl(var(--muted-foreground));
}
.skill-item::before {
  content: '';
  position: absolute;
  height: 8px;
  width: 8px;
  left: 0;
  top: 0.45rem;
  transform: translateY(-50%);
  border-radius: 50%;
  background: linear-gradient(180deg, hsl(var(--accent) / 0.9), hsl(var(--accent) / 0.6));
}

/* Projects Section */
#projects {
  padding: 6rem 1.5rem;
}

.projects-intro {
  color: hsl(var(--muted-foreground));
  margin: 1rem auto 0;
  max-width: 48rem; /* wider so the sentence doesn't wrap awkwardly */
  text-align: center; /* center under the header */
  font-size: 0.875rem;
  line-height: 1.6;
}

@media (min-width: 768px) {
  .projects-intro {
    font-size: 1rem;
  }
}

.projects-list {
  margin-top: 3rem;
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.project-category {
  animation: slideUp 0.6s ease-out forwards;
  opacity: 0;
}

.category-title {
  text-align: center;
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 2rem;
}

.carousel {
  position: relative;
  overflow: hidden; /* keep slide content clipped to container */
  border-radius: calc(var(--radius) + 0.5rem);
  /* remove large inline padding which causes slides to be cut off on smaller screens */
  padding-inline: 0;
}

.carousel-track {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory; /* snap slides to center */
  scroll-behavior: smooth;
  padding-bottom: 1rem;
  /* add a modest inner padding so the first/last slide isn't flush against the edge */
  padding-inline: 2.5rem; /* give headroom so carousel controls don't overlap content */
}

.carousel-track::-webkit-scrollbar {
  display: none;
}

.carousel-track {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.carousel-slide {
  flex: 0 0 calc(100% - 0.5rem);
  min-width: 220px; /* allow tighter layouts on small devices */
  scroll-snap-align: center; /* ensure each slide snaps to center */
  scroll-snap-stop: always;
  box-sizing: border-box;
}

@media (min-width: 640px) {
  .carousel-slide {
    flex: 0 0 calc(50% - 0.5rem);
  }
}

@media (min-width: 1024px) {
  .carousel-slide {
    flex: 0 0 calc(33.333% - 0.667rem);
  }
}

/* Make sure slides and track are accessible and not clipped on small screens */
@media (max-width: 480px) {
  .carousel {
    padding-inline: 0.5rem; /* account for a small edge gap to the viewport */
  }
  .carousel-track {
    padding-inline: 1.5rem; /* increase to ensure small buttons don't overlap slides */
  }
  .carousel-slide {
    min-width: calc(100% - 0.5rem);
    flex: 0 0 calc(100% - 0.5rem);
    scroll-snap-align: start; /* start aligned on very small screens */
  }
  .carousel-prev, .carousel-next { top: 46%; }
}

@media (min-width: 641px) and (max-width: 1023px) {
  .carousel {
    padding-inline: 1rem;
  }
  .carousel-track {
    padding-inline: 2rem; /* ensure medium screens have enough margin for buttons */
  }
}

.project-card {
  border-radius: calc(var(--radius) + 0.5rem);
  border: 1px solid hsl(var(--border));
  background-color: hsl(var(--card));
  overflow: hidden;
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.project-card:hover {
  border-color: hsl(var(--muted-foreground));
  transform: translateY(-1rem);
  box-shadow: var(--glow-primary);
}

.project-image {
  width: 100%;
  overflow: hidden;
  background-color: hsl(var(--secondary));
  height: 160px; /* reduced height */
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (min-width: 640px) {
  .project-image { height: 165px; }
}

@media (min-width: 1024px) {
  .project-image { height: 185px; }
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* fill the container while maintaining aspect ratio */
  transition: transform 0.3s ease-out;
  background-color: hsl(var(--secondary));
  object-position: center center; /* ensure focal point stays centered */
}

@media (max-width: 640px) {
  .project-image img {
    object-fit: contain; /* show full image on small screens to avoid cropping important content */
  }
}

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

.project-content {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.project-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: hsl(var(--foreground));
  margin-bottom: 0.5rem;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
}

.project-title .title-text {
  flex: 1;
}

.project-external-link {
  flex-shrink: 0;
  color: hsl(var(--muted-foreground));
  transition: color var(--transition-smooth);
  width: 1rem;
  height: 1rem;
}

.project-card:hover .project-external-link {
  color: hsl(var(--foreground));
}

.project-description {
  font-size: 0.85rem;
  color: hsl(var(--muted-foreground));
  line-height: 1.6;
  margin-bottom: 0.75rem;
  flex-grow: 1;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: auto;
}

/* Reviews Section */
#reviews {
  padding: 6rem 1.5rem;
  background-color: transparent; /* keep consistent with projects */
}
.reviews-list {
  margin-top: 3rem;
  display: flex;
  flex-direction: column;
  gap: 3rem;
}
.review-card {
  border-radius: calc(var(--radius) + 0.5rem);
  border: 1px solid hsl(var(--border));
  background-color: hsl(var(--card));
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  height: 100%;
}
.review-stars {
  color: #FFD166; /* warm yellow */
  display: inline-flex;
  gap: 0.25rem;
  align-items: center;
}
.review-client {
  font-weight: 600;
  font-size: 0.95rem;
}
.review-location {
  color: hsl(var(--muted-foreground));
  font-size: 0.85rem;
  /* Place below name: allow wrapping and left align */
  overflow: visible;
  white-space: normal;
  text-overflow: unset;
  text-align: left;
}
.review-project {
  font-size: 0.85rem;
  color: hsl(var(--muted-foreground));
}
.review-header {
  display: flex;
  flex-direction: column; /* stack name and location */
  align-items: flex-start;
  gap: 0.25rem;
}
.review-client { text-align: left; flex: 1 1 auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.review-project { font-weight: 700; color: hsl(var(--foreground)); margin-top: 1rem; font-size: 1rem; }
.review-stars {
  color: #FFD166;
  display: flex;
  justify-content: center; /* center horizontally */
  gap: 0.25rem;
  align-items: center;
  margin-top: 0.75rem;
}
.review-text {
  margin-top: 0.5rem;
  color: hsl(var(--muted-foreground));
  line-height: 1.6;
  flex-grow: 1;
}

/* Slightly smaller width for carousel slide to keep visible spacing */
.carousel-slide .review-card { padding: 1rem; }

/* Carousel controls and progress */
.carousel-prev, .carousel-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  display: inline-grid;
  place-items: center;
  background: hsl(var(--card) / 0.35);
  border: 1px solid hsl(var(--border));
  color: hsl(var(--foreground));
  padding: 0;
  border-radius: 9999px; /* make circular */
  cursor: pointer;
  z-index: 12; /* make sure buttons hover above anything */
  transition: all 0.18s ease;
  box-shadow: 0 6px 14px rgba(0,0,0,0.06);
  opacity: 0.95;
}
.carousel-prev:focus, .carousel-next:focus { outline: 2px solid hsl(var(--ring)); outline-offset: 2px; }
.carousel-prev { left: 1rem; }
.carousel-next { right: 1rem; }

.carousel-prev:hover, .carousel-next:hover { transform: translateY(-50%) scale(1.05); background: hsl(var(--card) / 0.45); }

.carousel-progress .progress-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: hsl(var(--secondary));
  border: 1px solid hsl(var(--border));
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}
.carousel-progress .progress-dot.active {
  background: hsl(var(--foreground));
  transform: scale(1.25);
  border-color: hsl(var(--foreground));
}

.project-tag {
  display: inline-block;
  padding: 0.35rem 0.45rem;
  font-size: 0.7rem;
  font-family: var(--font-mono);
  background-color: hsl(var(--secondary));
  color: hsl(var(--secondary-foreground));
  border-radius: calc(var(--radius) - 2px);
  word-wrap: break-word;
}

/* Contact Section */
#contact {
  padding: 6rem 1.5rem;
  background-color: hsl(var(--card) / 0.3);
}

.contact-header {
  text-align: center;
  margin-bottom: 4rem;
}

.contact-intro {
  color: hsl(var(--muted-foreground));
  margin-top: 1rem;
  max-width: 32rem;
  margin-left: auto;
  margin-right: auto;
  font-size: 0.875rem;
  line-height: 1.6;
}

@media (min-width: 768px) {
  .contact-intro {
    font-size: 1rem;
  }
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: start; /* keep columns aligned at the top */
}

@media (min-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.contact-info h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.contact-items {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-item {
  display: flex;
  gap: 1rem;
  color: hsl(var(--muted-foreground));
  transition: color var(--transition-smooth);
}

.contact-item:hover {
  color: hsl(var(--foreground));
}

.contact-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border: 1px solid hsl(var(--border));
  border-radius: calc(var(--radius) + 0.25rem);
  flex-shrink: 0;
  transition: border-color var(--transition-smooth);
}

.contact-item:hover .contact-icon {
  border-color: hsl(var(--muted-foreground));
}

.contact-icon svg {
  width: 1.25rem;
  height: 1.25rem;
}

.contact-detail {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.contact-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: hsl(var(--muted-foreground));
}

.contact-value {
  color: hsl(var(--foreground));
}

.contact-social {
  padding-top: 1.5rem;
}

.contact-social p {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  margin-bottom: 1rem;
}

.social-icons {
  display: flex;
  gap: 1rem;
}

.social-icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border: 1px solid hsl(var(--border));
  border-radius: calc(var(--radius) + 0.25rem);
  background-color: transparent;
  color: hsl(var(--foreground));
  transition: var(--transition-smooth);
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}

.social-icon-btn:hover {
  border-color: hsl(var(--muted-foreground));
  background: linear-gradient(180deg, hsl(var(--accent) / 0.08), hsl(var(--accent) / 0.02));
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(24,24,24,0.12);
}

.social-icon-btn img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.contact-cta {
  position: relative;
  border-radius: calc(var(--radius) + 0.5rem);
  border: 1px solid hsl(var(--border));
  background-color: hsl(var(--card));
  padding: 2rem;
}

/* New contact form styles */
.contact-form-container {
  padding: 0;
}

.contact-form {
  display: grid;
  gap: 1rem;
}
.contact-form-container { display: block; }
.contact-form { padding: 1.25rem; border-radius: calc(var(--radius) + 0.25rem); border: 1px solid hsl(var(--border)); background-color: hsl(var(--card)); }
.contact-form .form-actions { justify-content: flex-end; }

.contact-form .form-actions input[type="submit"],
.contact-form .form-actions input[type="reset"] { min-width: 140px; }

.contact-form .form-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.contact-form .form-row .form-field {
  display: flex;
  flex-direction: column;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form select,
.contact-form textarea {
  border: 1px solid hsl(var(--border));
  background: transparent;
  color: hsl(var(--foreground));
  padding: 0.6rem 0.75rem;
  border-radius: 8px;
  font-family: inherit;
}

.contact-form input[type="text"]:focus,
.contact-form input[type="email"]:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: hsl(var(--muted-foreground));
  box-shadow: 0 6px 18px rgba(255,255,255,0.02);
}

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

.contact-form label {
  font-size: 0.75rem;
  color: hsl(var(--muted-foreground));
  margin-bottom: 0.35rem;
}

.form-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-start;
}

.form-actions .primary {
  background-color: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  padding: 0.7rem 1rem;
  border-radius: 8px;
  border: none;
}

.form-actions input[type="reset"] {
  background: transparent;
  color: hsl(var(--muted-foreground));
  border: 1px solid hsl(var(--border));
  padding: 0.7rem 1rem;
  border-radius: 8px;
}

/* Single column on small screens */
@media (max-width: 767px) {
  .contact-grid { grid-template-columns: 1fr; }
  .contact-form .form-row { grid-template-columns: 1fr; }
  .form-actions { flex-direction: column; }
}

/* Make the contact info column more prominent */
.contact-info {
  border-radius: calc(var(--radius) + 0.5rem);
  border: 1px solid hsl(var(--border));
  background-color: hsl(var(--card));
  padding: 1.5rem;
}
.contact-cta.moved-cta {
  margin-top: 1.5rem;
  padding: 1rem;
  border-radius: calc(var(--radius) + 0.5rem);
  border: 1px solid hsl(var(--border));
  background-color: hsl(var(--card));
}
.contact-cta.moved-cta .cta-buttons { margin-top: 0.75rem; }

/* Dropdown contrast and appearance improvements */
.contact-form select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-color: hsl(var(--card));
  color: hsl(var(--foreground));
  border: 1px solid hsl(var(--border));
  padding: 0.6rem 1rem 0.6rem 0.75rem;
  border-radius: 8px;
  background-image: linear-gradient(45deg, transparent 50%, hsl(var(--muted-foreground)) 50%), linear-gradient(135deg, hsl(var(--muted-foreground)) 50%, transparent 50%);
  background-position: calc(100% - 18px) calc(1em + 2px), calc(100% - 13px) calc(1em + 2px);
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}
.contact-form select option {
  color: hsl(var(--foreground));
  background-color: hsl(var(--card));
}

/* Ensure select has proper focus state */
.contact-form select:focus { outline: none; border-color: hsl(var(--muted-foreground)); box-shadow: 0 6px 18px rgba(255,255,255,0.02); }

.contact-info h3 { margin-bottom: 1rem; }
.contact-info .contact-items { gap: 0.5rem; }
.contact-info .contact-item { gap: 0.75rem; }

/* Add subtle box shadow for modern look */
.contact-cta, .contact-info, .contact-form {
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
}

.form-result {
  margin-top: .75rem;
  font-size: 0.95rem;
  color: hsl(var(--foreground));
}
.form-result.error {
  color: hsl(var(--destructive));
}

.contact-cta h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.contact-cta p {
  color: hsl(var(--muted-foreground));
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
  line-height: 1.6;
}

.cta-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

@media (min-width: 768px) {
  .cta-buttons {
    flex-direction: row;
    gap: 0.75rem;
  }
}

.cta-btn {
  padding: 0.75rem 1rem;
  border-radius: calc(var(--radius) + 0.25rem);
  font-size: 0.875rem;
  font-weight: 500;
  transition: var(--transition-smooth);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 1px solid hsl(var(--border));
  cursor: pointer;
  text-decoration: none;
  color: hsl(var(--foreground));
}

.cta-btn.primary {
  background-color: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  border-color: hsl(var(--primary));
}

.cta-btn.primary:hover {
  opacity: 0.9;
}

.cta-btn.outline:hover {
  border-color: hsl(var(--muted-foreground));
  background-color: hsl(var(--secondary));
}

.hero-cta .cta-btn.small {
  padding: 0.45rem 0.7rem;
  font-size: 0.85rem;
}

.cta-decorative {
  position: absolute;
  border: 1px solid hsl(var(--border) / 0.5);
  border-radius: calc(var(--radius) + 0.25rem);
  z-index: -1;
}

.cta-decorative-1 {
  width: 6rem;
  height: 6rem;
  top: -1rem;
  right: -1rem;
}

.cta-decorative-2 {
  width: 6rem;
  height: 6rem;
  bottom: -1rem;
  left: -1rem;
}

/* Footer */
footer {
  padding: 2rem 1.5rem;
  border-top: 1px solid hsl(var(--border));
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

@media (min-width: 768px) {
  .footer-content {
    flex-direction: row;
  }
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.25rem;
  font-weight: bold;
  font-family: var(--font-mono);
}

.footer-logo .dot {
  color: hsl(var(--muted-foreground));
}

.footer-copyright {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  text-align: center;
}

.footer-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
}

.footer-nav a {
  font-size: 0.875rem;
  color: hsl(var(--muted-foreground));
  transition: color var(--transition-smooth);
}

.footer-nav a:hover {
  color: hsl(var(--foreground));
}

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

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(1.875rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes floatGlow {
  0%, 100% {
    opacity: 0.3;
    transform: translateY(0px);
  }
  50% {
    opacity: 0.6;
    transform: translateY(-1.25rem);
  }
}

@keyframes bounce {
  0%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(0.5rem);
  }
}

/* Responsive */
@media (max-width: 640px) {
  body {
    font-size: 0.9375rem;
  }

  .container {
    padding: 0 1rem;
  }

  #about,
  #skills,
  #projects,
  #contact {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}
