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

/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
  border-bottom: 1px solid #eee;
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 100;
}
.navbar a {
  text-decoration: none;
  color: #111;
  margin-right: 20px;
}
.navbar a:hover {
  text-decoration: underline;
}
.nav-right a {
  margin-left: 15px;
  font-size: 1.2rem;
}

/* Hide all sections initially */
section {
  display: none;
}

/* Responsive Design */
@media (max-width: 992px) {
  /* Home / Hero Section */
#home {
  height: 100vh;
  display: flex;
  flex-direction: column;       /* stack text + image vertically */
  justify-content: center;      /* center vertically */
  align-items: center;          /* center horizontally */
  text-align: center;
  padding: 0 20px;
}

.hero {
  display: flex;
  flex-direction: column;       /* keep elements stacked */
  align-items: center;          /* center horizontally */
  justify-content: center;      /* center vertically */
  text-align: center;
  width: 100%;
}

.hero-top {
  font-size: 3rem;
  font-weight: 400;
}

.hero-bottom {
  font-size: 4rem;
  font-weight: 800;
  margin-top: 20px;
  text-align: center;
}

/* Hero Image */
.hero-image {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  margin: 30px 0;
  object-fit: cover;
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
  border: 5px solid rgba(255,255,255,0.8);
  backdrop-filter: blur(4px);
}
}
@media (max-width: 576px) {
  .hero-content h1 {
    font-size: 1.8rem;
  }

  .hero-content h2 {
    font-size: 1rem;
  }

  .hero-image img {
    max-width: 220px;
  }
}

/* Word fade-in animation */
.fade-word {
  opacity: 0;
  animation: wordFade 1s forwards;
}
.fade-word:nth-child(1) { animation-delay: 0.2s; }
.fade-word:nth-child(2) { animation-delay: 0.8s; }
.fade-word:nth-child(3) { animation-delay: 1.4s; }
@keyframes wordFade {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

/* General Sections */
.section {
  max-width: 900px;
  margin: 100px auto;
  padding: 0 20px;
}
.section h1 {
  text-align: center;
  margin-bottom: 30px;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 0.5rem;
  color: #222;
}

.section-subtitle {
  font-size: 1.1rem;
  font-weight: 400;
  text-align: center;
  margin-bottom: 2rem;
  color: #666;
  font-style: italic;
}


/* Skills */
.skill-card {
  background: #fafafa;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.6s ease;
  opacity: 0;
  transform: translateY(20px);
}
.skill-card.visible { opacity: 1; transform: translateY(0); }
.skill-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 15px rgba(0,0,0,0.1);
}
.skill-card h3 { margin-bottom: 8px; font-size: 1.2rem; }
.skill-bar { width: 100%; height: 8px; background: #eee; border-radius: 4px; margin-bottom: 12px; overflow: hidden; }
.skill-fill { height: 100%; background: linear-gradient(90deg, #847577, #5e503f); width: 0; border-radius: 4px; animation: fillBar 1s ease forwards; }
@keyframes fillBar { from { width: 0; } to { width: var(--fill-width, 80%); } }
.skills-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }

/* About Section */
#about { max-width: 800px; margin: 100px auto; line-height: 1.7; font-size: 1rem; color: #333; }
#about h1 { text-align: center; margin-bottom: 40px; font-size: 2.2rem; font-weight: 700; }
.intro-line { font-size: 1.3rem; margin-bottom: 15px; }
.impact-line { font-size: 1.2rem; font-weight: 500; font-style: italic; margin: 20px 0; color: #444; }
.impact-line .highlight { color: #847577; font-weight: 700; }
.dual-lines { margin: 30px 0; font-size: 1.05rem; }
.dual-lines p { margin: 10px 0; }
.dual-lines span { font-weight: 600; color: #111; }
.closing-quote { margin-top: 40px; text-align: center; font-size: 1.3rem; font-style: italic; color: #555; border-left: 4px solid #e5e6e4; padding-left: 15px; }

/* Typewriter Effect */
.typewriter { overflow: hidden; white-space: nowrap; border-right: 3px solid #e5e6e4; width: 0; animation: typing 5s steps(60, end) forwards, blink 0.8s step-end infinite; }
@keyframes typing { from { width: 0 } to { width: 100% } }
@keyframes blink { 50% { border-color: transparent } }

/* Connect Section */
.connect-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 25px; margin-top: 40px; }
.connect .skill-card { background: #fafafa; border-radius: 12px; padding: 25px 20px; box-shadow: 0 4px 12px rgba(0,0,0,0.06); text-align: center; transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.6s ease; opacity: 0; transform: translateY(20px); }
.connect .skill-card.visible { opacity: 1; transform: translateY(0); }
.connect .skill-card:hover { transform: translateY(-7px); box-shadow: 0 8px 20px rgba(0,0,0,0.12); }
.skill-icon { font-size: 2.5rem; margin-bottom: 15px; display: inline-block; transition: transform 0.3s ease; }
.skill-card:hover .skill-icon { transform: scale(1.2); }
.connect .skill-card h3 { font-size: 1.2rem; margin-bottom: 10px; color: #5e503f; }
.connect .skill-card p { font-size: 1rem; color: #444; line-height: 1.5; }
.contact-box { text-align: center; margin-top: 40px; font-size: 1rem; }
.contact-box a { color: #421219; text-decoration: none; font-weight: 600; }
.contact-box a:hover { text-decoration: underline; }

/* Floating FAB & Popup */
.contact-fab { position: fixed; bottom: 25px; right: 25px; background: #22282b; color: #fff; font-size: 1.5rem; width: 55px; height: 55px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 5px 15px rgba(0,0,0,0.3); z-index: 1000; transition: transform 0.3s ease; }
.contact-fab:hover { transform: scale(1.1); }
.contact-popup { display: none; position: fixed; bottom: 90px; right: 25px; background: #fff; padding: 20px 25px; border-radius: 12px; box-shadow: 0 8px 25px rgba(0,0,0,0.2); z-index: 1000; text-align: left; font-size: 0.95rem; line-height: 1.6; }
.contact-popup.show { display: block; }
.contact-popup a { display: block; text-decoration: none; color: #111; margin-bottom: 10px; transition: color 0.2s ease; }
.contact-popup a:hover { color: #b02b3d; }

/* Typewriter effect for hero-bottom */
.hero-bottom-typewriter {
  display: inline-block;      /* makes width controlled by content */
  text-align: center;         /* ensures centered inside parent */
  overflow: hidden;
  white-space: nowrap;
  border-right: 3px solid #847577; /* blinking cursor */
  width: 0;
  animation: typing-bottom 3s steps(20, end) forwards, blink-bottom 0.8s step-end infinite;
  font-weight: 800;
  font-size: 4rem;
  margin-top: 20px;
}

.hero-bottom-wrapper {
  display: flex;
  justify-content: center;  /* centers child horizontally */
  width: 100%;
}

@keyframes typing-bottom {
  from { width: 0; }
  to { width: 14ch; } /* Adjust number of characters if needed */
}

@keyframes blink-bottom {
  50% { border-color: transparent; }
}
body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background: #fff;
  color: #111;
}

/* Navbar */
.navbar { display: flex; justify-content: space-between; align-items: center; padding: 20px 40px; border-bottom: 1px solid #eee; position: sticky; top: 0; background: #fff; z-index: 100; }
.navbar a { text-decoration: none; color: #111; margin-right: 20px; }
.navbar a:hover { text-decoration: underline; }
.nav-right a { margin-left: 15px; font-size: 1.2rem; }

section { display: none; }

/* Hero */
.hero { height: 100vh; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; }
.hero-top { font-size: 3rem; font-weight: 400; }
.hero-bottom { font-size: 4rem; font-weight: 800; margin-top: 20px; text-align: center; }

/* Gradient Hero Bottom */
.hero-bottom-gradient {
  display: inline-block;
  font-weight: 800;
  font-size: 4rem;
  background: linear-gradient(90deg, #111111, #5e503f);
  background-size: 0% 100%;
  background-repeat: no-repeat;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientReveal 2s forwards;
  text-align: center;
}
@keyframes gradientReveal { from { background-size: 0% 100%; } to { background-size: 100% 100%; } }

/* Hero Image */
.hero-image { width: 220px; height: 220px; border-radius: 50%; margin: 30px 0; object-fit: cover; box-shadow: 0 10px 25px rgba(0,0,0,0.15); border: 5px solid rgba(255,255,255,0.8); backdrop-filter: blur(4px); }

/* Fade words */
.fade-word { opacity: 0; animation: wordFade 1s forwards; }
.fade-word:nth-child(1) { animation-delay: 0.2s; }
.fade-word:nth-child(2) { animation-delay: 0.8s; }
.fade-word:nth-child(3) { animation-delay: 1.4s; }
@keyframes wordFade { from { opacity: 0; transform: translateY(15px); } to { opacity: 1; transform: translateY(0); } }

/* Footer */
.home-footer { border-top: 1px solid #eee; padding: 15px 30px; font-size: 0.85rem; color: #555; margin-top: 40px; }
.footer-row { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; width: 100%; }
.footer-socials a { margin: 0 8px; font-size: 1.2rem; color: #555; }
.footer-socials a:hover { color: #111; }

/* Connect / Handwriting */
.handwriting { font-family: 'Shadows Into Light', cursive; transition: all 0.4s ease; }
.handwriting p { opacity: 0; transform: translateY(20px); animation: fadeUp 0.8s forwards; }
.handwriting:nth-child(1) p { animation-delay: 0.2s; }
.handwriting:nth-child(2) p { animation-delay: 0.4s; }
.handwriting:nth-child(3) p { animation-delay: 0.6s; }
.handwriting:nth-child(4) p { animation-delay: 0.8s; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

/* Skill cards and other styles remain same */
.skill-card { background: #fafafa; padding: 20px; border-radius: 12px; box-shadow: 0 2px 6px rgba(0,0,0,0.05); transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.6s ease; opacity: 0; transform: translateY(20px); }
.skill-card.visible { opacity: 1; transform: translateY(0); }
.skill-card:hover { transform: translateY(-5px); box-shadow: 0 6px 15px rgba(0,0,0,0.1); }

/* ----- Force-center hero image (paste at EOF of styles.css) ----- */
/* Works whether the image is an <img class="hero-image"> or wrapped inside .hero-image */

#home .hero-image,
#home img.hero-image,
.hero-image,
.hero-image > img {
  display: block;
  margin: 30px auto !important;   /* center horizontally and keep vertical gap */
  width: 220px;                    /* fixed visual size */
  max-width: 100%;                 /* responsive fallback */
  height: 220px;                   /* keep circular aspect */
  border-radius: 50%;
  object-fit: cover;
  align-self: center !important;   /* for flex containers */
  float: none !important;          /* cancel any stray floats */
  position: relative;
}

/* smaller screens: slightly reduce size */
@media (max-width: 576px) {
  #home .hero-image,
  #home img.hero-image,
  .hero-image,
  .hero-image > img {
    width: 180px;
    height: 180px;
    margin: 24px auto !important;
  }
}



