/* --- Skills icons (inline SVG) --- */
.tech-icons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin: 14px 0 10px;
}

#about .skill-icon {
  width: 44px !important;
  height: 44px !important;
  color: #444;
}

.tech p {
  max-width: 320px;
  margin: 14px auto 0;
}

@media only screen and (max-width: 768px) {
  .tech p { max-width: 420px; }
}
.intro-line{
  margin: 0 0 8px;
  font-size: 22px;
  opacity: 0.9;
  letter-spacing: 0.02em;
}
.site-description {
  display: block;
  white-space: nowrap;     /* forces single line */
  max-width: 100%;
  margin: 0 auto;
}
@media (max-width: 768px) {
  .site-description {
    white-space: normal;   /* allow wrapping on small screens */
    text-align: center;
  }
}
.profile-pic {
  width: 300px;
  height: 300px;
  border-radius: 50%;
  object-fit: cover;
}

@media (max-width: 768px) {
  .profile-pic {
    width: 150px;
    height: 150px;
  }
}

/* --- FIX navbar right alignment (desktop) --- */
.navbar{
  display: block !important;   /* important: don't make navbar itself a flex container */
}

.navbar .container{
  width: 100% !important;
  display: flex !important;
  align-items: center !important;
}

.navbar .container ul{
  margin-left: auto !important;   /* pushes links to the right */
}

.navbar .container ul{
  padding-right: 50px;   /* adjust: 16–40px */
}

.hero-heading {
  max-width: 850px;
  margin: 0 auto 24px auto;
  padding: 0 20px;
  text-align: left;
}



/****************/
/* ===== Base container ===== */
.container {
  width: min(1100px, 92%);
  margin: 0 auto;
}

/* ===== HERO (Split Layout) ===== */
.hero {
  padding: 0px 0 0px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.85fr;
  gap: 48px;
  align-items: center;
}

.hero-title {
  margin: 0 0 14px;
  line-height: 1.15;
}

.hero-lead {
  margin: 0 0 12px;
  line-height: 1.7;
  max-width: 62ch; /* good reading width */
}

.hero-cta {
  margin-top: 22px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Right visual */
.hero-visual {
  position: relative;
  border-radius: 18px;
  padding: 18px;
  border: 1px solid rgba(0,0,0,0.10);
  box-shadow: 0 16px 40px rgba(0,0,0,0.06);
  overflow: hidden;
  background: rgba(255,255,255,0.6);
  backdrop-filter: blur(6px);
}

.hero-photo {
  width: 100%;
  aspect-ratio: 5.5 / 5;
  object-fit: cover;
  border-radius: 16px;
  display: block;
}

.hero-visual.no-photo .hero-fallback {
  display: block;
}

.hero-fallback {
  display: none;
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 16px;
  background: radial-gradient(circle at 30% 30%, rgba(0,0,0,0.10), transparent 55%),
              radial-gradient(circle at 70% 70%, rgba(0,0,0,0.08), transparent 55%),
              linear-gradient(135deg, rgba(0,0,0,0.06), rgba(0,0,0,0.02));
}

/* Chips */
.chips {
  margin-top: 14px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,0.12);
  background: rgba(255,255,255,0.7);
  font-size: 0.92rem;
}

/* ===== "What I Work On" Cards ===== */
.work {
  padding: 0px 0 70px;
}

.section-title {
  margin: 0 0 18px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  padding: 50px 0 70px;
}

.card {
  border: 1px solid rgba(0,0,0,0.10);
  border-radius: 18px;
  padding: 18px 18px 16px;
  background: rgba(255,255,255,0.7);
  box-shadow: 0 10px 28px rgba(0,0,0,0.05);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 44px rgba(0,0,0,0.08);
}

.card-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,0.85);
  margin-bottom: 12px;
}

.card-title {
  margin: 0 0 8px;
  line-height: 1.2;
}

.card-text {
  margin: 0;
  line-height: 1.65;
  opacity: 0.9;
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .cards {
    grid-template-columns: 1fr;
  }
}

/* ===== Card SVG tools ===== */
.card-tools {
  margin-top: 16px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 1px;
  flex-wrap: nowrap;       /* ✅ keep in one line */
  white-space: nowrap;     /* extra safety */
  overflow: hidden;        /* prevents spilling out */
}
.card-tools { justify-content: center; }

.card-tools svg {
  width: 38px !important;             /* ✅ smaller */
  height: 38px !important;
  flex: 0 0 auto;          /* don’t shrink weirdly */
  opacity: 0.9;
  transition: opacity 160ms ease, transform 160ms ease;
}

/* Fix hover selector (you have img, but you're using svg) */
.card:hover .card-tools svg {
  opacity: 0.7;
  transform: translateY(-1px);
}

/* Optional: on very small screens, allow wrap instead of overflow */
@media (max-width: 420px) {
  .card-tools {
    flex-wrap: wrap;
    overflow: visible;
  }
}