.row {
  margin-left: 0;
  margin-right: 0;
}

/* Root & Base */
:root {
  --beige: #f9f4ef;
  --text: #2d2d2d;
  --accent: #c1a57b;
  --active-link: #a88765;
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: var(--beige);
  color: var(--text);
  margin: 0;
  padding: 0;
}

/* NAVBAR */
.custom-navbar {
  background-color: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar-brand {
  font-size: 1.7rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
}

.nav-link {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
  margin: 0 10px;
  text-transform: uppercase;
  position: relative;
  transition: 0s;
}

.nav-link:hover,
.nav-link.active {
  color: var(--active-link);
}

.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  background-color: var(--accent);
  bottom: 0;
  left: 0;
  transition: 0.3s;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}


.hero-coder {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 100px 20px 60px;
  color: var(--text);
  overflow: hidden; /* so background stays inside */
}

.hero-coder .bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  /* transition: opacity 4s ease-in-out; */
    transition: opacity 2s ease-in-out; /* fade speed (2s in + 2s out) */

  z-index: 0; /* behind the text */
}

.hero-coder .container {
  position: relative;
  z-index: 1; /* text stays above background */
}

.type-effect {
  font-size: 3.5rem;
  font-weight: bold;
  font-family: 'Fira Code', monospace;
  white-space: nowrap;
  overflow: hidden;
  border-right: 3px solid var(--accent);
  width: 0;
  animation: typing 3s steps(20, end) forwards, blink 0.7s infinite;
}

@keyframes typing {
  from {
    width: 0;
  }

  to {
    width: 21ch;
  }
}

@keyframes blink {

  0%,
  100% {
    border-color: transparent;
  }

  50% {
    border-color: var(--accent);
  }
}

.subtitle {
  font-size: 1.4rem;
  color: #444;
  max-width: 500px;
  margin-bottom: 20px;
}

.social-icons a {
  font-size: 2rem;
  margin-right: 15px;
  color: var(--accent);
  transition: 0.3s;
}

.social-icons a:hover {
  color: var(--active-link);
}

.btn-about {
  display: inline-block;
  padding: 10px 24px;
  border: 2px solid var(--accent);
  color: var(--accent);
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
  transition: 0.3s;
  margin-top: 40px;
  /* Now this will take effect */
}

.btn-about:hover {
  background-color: var(--accent);
  color: white;
}


@media (max-width: 768px) {
  .hero-coder h1 {
    font-size: 28px;
    /* margin-top: -40px; */

  }

  .subtitle {
    font-size: 18px;
  }

  .social-icons a {
    font-size: 24px;
  }
}

@media (max-width: 480px) {
  .hero-coder h1 {
    font-size: 24px;
    line-height: 1.1;
  }

  .subtitle {
    font-size: 18px;
  }

  .social-icons a {
    font-size: 26px;
  }
}
@media (max-width: 768px) {
  .hero-coder .bg.adjust-right {
    background-position: 42% center; /* push more right */
        top: 40px;              /* pushes the coffee image downward */

    background-size: contain;        /* keep whole image visible */
    background-repeat: no-repeat;
    background-size: cover;
  }
}
@media (max-width: 400px) {
  .hero-coder .bg.adjust-right {
    top: 60px; /* push a bit more down for extra-small screens */
    background-position: 38% center; /* center it better */
    background-size: cover;
  }
}


/* ABOUT SECTION */
.about-section {
  background-color: var(--beige);
  padding: 80px 0;
  position: relative;
  clip-path: polygon(0 0, 100% 0, 100% 95%, 0% 100%);
}

h2 {
  text-align: center;
  font-size: 45px;
  color: rgb(34, 161, 149);
  font-weight: bold;

}

.about-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  max-width: 1200px;
  margin: auto;
  padding: 20px;
  gap: 50px;
  padding-top: 50px;

}

.about-img img {
  width: 300px;
  background-color: #2c2b29;
  border-radius: 160px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.about-text {
  max-width: 500px;
  color: #4b3832;
  font-size: 18px;
  line-height: 1.7;
  font-family: 'Georgia', serif;
  margin-bottom: 20px;
  text-align: justify;
}

/* Responsive Sizes */


.about-text h2 {
  font-size: 32px;
  font-weight: bold;
  color: #3e2723;
  margin-bottom: 20px;
}

.about-text p {
  font-size: 18px;
  margin-bottom: 10px;
}

.btn-resume {
  padding: 10px 20px;
  border: 2px solid #4b3832;
  color: #4b3832;
  font-weight: bold;
  text-decoration: none;
  border-radius: 6px;
  transition: 0.3s;
  display: inline-block;
  margin-right: 12px;
  margin-top: 15px;
}

.btn-resume:hover {
  background-color: #4b3832;
  color: #f5f5dc;
}
@media (max-width: 480px) {

  h2 {
  text-align: center;
  font-size: 30px;
  color: rgb(34, 161, 149);
  font-weight: bold;

}

  .about-text p{
    font-size: 15px;
    padding: 0 15px;
    line-height: 1.6;
    text-align: justify;
  }



   .about-text {
    text-align: center;
  }

  .btn-resume {
        font-size: 13px;

  padding: 8px 16px;
 
  font-weight: bold;
  text-decoration: none;
  border-radius: 6px;
  transition: 0.3s;
  display: inline-block;
  }
}

/* project section button */
.projects-btn-wrapper {
  text-align: center;
  margin: 2rem 0; /* spacing above/below */
}
.view-projects-btn {
  text-align: center;
  align-items: center;
  gap: 10px;
  font-size: 1.3rem;
  font-weight: 600;
  color: #c4a762;
  text-decoration: none;
  background: transparent;
  transition: all 0.35s ease;
  position: relative;
  overflow: hidden;
}

.view-projects-btn .arrow {
  font-size: 2rem;
  display: inline-block;
  transition: transform 0.35s ease;
}

/* Hover Effects */
.view-projects-btn:hover {
  /* background: #c4a762; */
  /* color: #fff; */
  transform: translateY(-2px); /* slight lift */
  box-shadow: 0 8px 20px rgba(196, 167, 98, 0.25);
}

.view-projects-btn:hover .arrow {
  transform: translateX(6px); /* arrow slides forward */
}

/* Optional: subtle arrow breathing animation */
@keyframes arrow-pulse {
  0%   { transform: translateX(0); }
  50%  { transform: translateX(6px); }
  100% { transform: translateX(0); }
}

.view-projects-btn .arrow {
  animation: arrow-pulse 1.4s infinite;
}


/* CONTACT SECTION */
.contact-section {
  background-color: #e8dccf;
  /* dark beige */
  padding: 80px 20px;
}

.contact-section h2 {
  font-size: 2.5rem;
  font-weight: bold;
  color: #3e2723;
}

.contact-section p {
  color: #5c4333;
  font-size: 1.1rem;
}

.contact-btn {
  background-color: transparent;
  color: #3e2723;
  border: 2px solid #3e2723;
  padding: 10px 28px;
  border-radius: 30px;
  font-weight: 600;
  text-decoration: none;
  transition: 0.3s ease;
}

.contact-btn:hover {
  background-color: #3e2723;
  color: #fff;
}

.scroll-up {
  margin-top: 30px;
}

.scroll-icon {
  font-size: 2rem;
  color: #3e2723;
  text-decoration: none;
  transition: transform 0.3s;
}

.scroll-icon:hover {
  transform: translateY(-5px);
}

/* Responsive Fixes */
@media (max-width: 768px) {
  .about-container {
    flex-direction: column;
    text-align: center;
  }

  .about-img img {
    width: 80%;
  }

  .type-effect {
    font-size: 1.7rem;
  }

  .projects-section h2,
  .contact-section h2 {
    font-size: 2rem;
  }
}

/*footer section */
.footer-section {
  background-color: #f5eee6;
  /* soft skin-tone dark beige */
  padding: 40px 0;
  color: #3e2f20;
}

.footer-icons a {
  font-size: 1.8rem;
  margin: 0 12px;
  color: #3e2f20;
  transition: 0.3s;
  text-decoration: none;
}

.footer-icons a:hover {
  color: #7b5e45;
  transform: translateY(-3px);
}

.footer-text {
  font-size: 0.95rem;
  margin-top: 10px;
}

.scroll-arrow {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: #f5f5dc;
  color: #3e2f20;
  font-size: 2rem;
  padding: 10px 14px;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  text-decoration: none;
  transition: all 0.3s ease;
  z-index: 1000;
}

.scroll-arrow:hover {
  background-color: #d8c6ac;
  transform: translateY(-4px);
}



