*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  margin: 0;
  font-family: "Poppins", sans-serif;
}
a {
  text-decoration: none;
  color: inherit;
}

.home {
  position: relative;
  width: 100%;
  height: 100vh;
  background: url("/images/background1.jpg") no-repeat center center/cover;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white;
  overflow: hidden;
  padding-top: 80px;
}
/* Overlay */
.home .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(111, 78, 55, 0.6);
  /* brown overlay */
  z-index: 0;
}
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  backdrop-filter: blur(1px);
  color: white;
}
.header .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(111, 78, 55, 0.6);
  z-index: 0;
}
.logo a {
  font-size: 1.3rem;
  font-style: italic;
}
.logo a:hover {
  color: #ffd700;
  text-decoration: none;
  color: aliceblue;
}
header.scrolled {
  background: #6f4e37;
}
/* Mobile Menu Button */
.menu-toggle {
  font-size: 1.8rem;
  cursor: pointer;
}
/* Mobile nav hidden by default */
.mobile-nav {
  position: fixed;
  top: 60px;
  right: -100%;
  width: 100%;
  height: 250px;
  background: white;
  box-shadow: -2px 0 5px rgba(0, 0, 0, 0.1);
  transition: right 0.3s ease-in-out;
  z-index: 999;
}
.mobile-nav ul {
  list-style: none;
}
.mobile-nav li {
  border-bottom: 1px solid #eee;
  width: 90%;
  text-align: center;
}
.mobile-nav a {
  display: flex;
  justify-content: center;
  padding: 13px;
  text-align: left;
  text-decoration: none;
  font-size: 1.1rem;
  color: #333;
  transition: color 0.3s;
  cursor: pointer;
  transition: color 0.3s ease;
}
.mobile-nav a:hover {
  color: #007acc;
}
.desktop-nav {
  display: none;
}
.hero-content {
  position: relative;
  z-index: 1;
}
.hero-content h1 {
  font-size: 2.5rem;
  margin-bottom: 15px;
}
/* typing text */
.typing-text {
  font-size: 1.2rem;
  margin-bottom: 25px;
  min-height: 25px;
  color: white;
  white-space: nowrap;
  overflow: hidden;
  display: inline-block;
  border-right: 2px solid #ffd700;
  animation: blink 0.7s infinite;
}
@keyframes blink {
  0% {
    border-color: #ffd700;
  }
  50% {
    border-color: transparent;
  }
  100% {
    border-color: #ffd700;
  }
}
/* ABOUT ME SECTION */
.about {
  position: relative;
  padding: 60px 20px;
  text-align: center;
}
.about h2 {
  font-size: 2rem;
  margin-bottom: 30px;
  color: #333;
}
.about-content {
  display: flex;
  flex-direction: column;
  /* mobile first: stacked */
  align-items: center;
  gap: 20px;
}
.about-text {
  max-width: 600px;
  color: #444;
  font-size: 1rem;
  line-height: 1.6;
}
.about-text .btn {
  margin-top: 20px;
}
.about-image img {
  width: 200px;
  height: 200px;
  object-fit: contain;
  border-radius: 50%;
  border: 4px solid #ddd;
}
/* Skills Section (inside About) */
.skills {
  width: 100%;
  max-width: 600px;
  margin-top: 40px;
  text-align: left;
}
.skills h3 {
  font-size: 1.5rem;
  margin-bottom: 20px;
  color: #333;
  text-align: center;
}
.skill {
  margin-bottom: 20px;
}
.skill span {
  display: block;
  margin-bottom: 5px;
  color: #444;
}
.skill-bar {
  width: 100%;
  background: #ddd;
  height: 3px;
  border-radius: 5px;
  overflow: hidden;
}
.skill-level {
  height: 100%;
  background: #6f4e37;
  width: 0;
  transition: width 2s ease-in-out;
}
/* portfolio section */
.portfolio {
  padding: 1px 10px;
  /* top/bottom 60px, left/right 20px */
}
.portfolio .container {
  max-width: 1200px;
  /* keeps content from stretching too wide */
  margin: 0 auto;
  /* centers the container */
  padding-left: 20px;
  padding-right: 20px;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.portfolio-box {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.portfolio-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}
.portfolio-placeholder {
  height: 180px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  font-size: 1.1rem;
  text-align: center;
  color: #fff;
  /* force white text */
}
.placeholder-1 {
  background: #6f4e37;
}
/* brown */
.placeholder-2 {
  background: #2a9d8f;
}
/* teal */
.placeholder-3 {
  background: #e76f51;
}
/* orange-red */
.placeholder-4 {
  background: #264653;
}
/* dark navy */
.portfolio-info {
  padding: 15px;
}
.portfolio-info h3 {
  margin-top: 0;
  font-size: 1.2rem;
}
.tech-used {
  font-size: 0.85rem;
  color: #555;
  margin-top: 5px;
}
/* What I do section */
.services {
  padding: 60px 20px;
  background: #f9f9f9;
}
.services .container {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}
.services h2 {
  font-size: 2rem;
  margin-bottom: 10px;
}
.services p {
  margin-bottom: 40px;
  color: #555;
}
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.service-card {
  background: #fff;
  border-radius: 10px;
  padding: 30px 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}
.service-card .icon {
  font-size: 2rem;
  margin-bottom: 15px;
  color: #6f4e37;
  /* brown accent */
}
/* Contact Section */
.contact {
  padding: 60px 20px;
  background: #f9f9f9;
  /* slightly off-white like Adrian */
  text-align: center;
}
.contact h2 {
  font-size: 2rem;
  margin-bottom: 30px;
  color: #2e2e2e;
}
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 500px;
  margin: 0 auto;
}
.contact-form input,
.contact-form textarea {
  background: transparent;
  border: none;
  border-bottom: 2px solid #ccc;
  padding: 10px;
  font-size: 1rem;
  outline: none;
  transition: border-color 0.3s;
}
.contact-form input:focus,
.contact-form textarea:focus {
  border-bottom-color: #8b5e3c;
  /* accent brown */
}
.contact-form button {
  background: transparent;
  border: 2px solid #8b5e3c;
  color: #8b5e3c;
  padding: 12px;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s;
}
.contact-form button:hover {
  background: #8b5e3c;
  color: #fff;
}
/* footer section */
.footer {
  background: #2e2e2e;
  /* dark background */
  color: #fff;
  text-align: center;
  padding: 30px 20px;
}
.footer p {
  margin-bottom: 15px;
  font-size: 0.9rem;
  color: #ccc;
}
.footer-links {
  display: flex;
  justify-content: center;
  gap: 20px;
}
.footer-links a {
  color: #8b5e3c;
  /* brown icons */
  font-size: 1.8rem;
  /* slightly bigger */
  transition: color 0.3s, transform 0.2s;
}
.footer-links a:hover {
  color: #fff;
  /* white on hover */
  transform: translateY(-3px);
  /* slight lift effect */
}
.copyright {
  color: #aaa;
  font-size: 0.5rem;
  margin-top: 10px;
}
/* ===== Header ===== */
header {
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 50;
  transition: background-color 0.3s ease;
}
header.scrolled {
  background-color: #6b4423;
  /* brown after hero */
}
/* ===== Section Defaults ===== */
section {
  padding: 60px 20px;
}
/* Background colors */
.hero {
  background-color: #f9f9f9;
}
.about {
  background-color: #f3f3f3;
}
.skills {
  background-color: #f7f7f7;
}
.portfolio {
  background-color: #f9f9f9;
}
.services {
  background-color: #f3f3f3;
}
.contact {
  background-color: #f7f7f7;
}
footer {
  background-color: #222;
  color: #fff;
  padding: 20px;
  text-align: center;
}
/* ===== Section Headings ===== */
h2.section-title {
  text-align: center;
  margin-bottom: 40px;
  font-size: 2rem;
  font-weight: 600;
}
/* ===== About ===== */
.about-content {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}
/* ===== Skills ===== */
.skills-grid {
  display: grid;
  gap: 15px;
  max-width: 900px;
  margin: 0 auto;
}
.skills-grid .skill {
  background: #fff;
  border: 1px solid #ddd;
  padding: 15px;
  border-radius: 8px;
  text-align: center;
}
/* ===== Portfolio ===== */
.portfolio-grid {
  display: grid;
  gap: 20px;
}
.portfolio-card {
  background: #fff;
  border-radius: 10px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
/* ===== Services ===== */
.services {
  display: grid;
  gap: 20px;
}
.service-card {
  background: #fff;
  border-radius: 10px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
/* ===== Contact ===== */
.contact-form {
  max-width: 600px;
  margin: 0 auto;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  border: none;
  border-bottom: 2px solid #ccc;
  padding: 10px;
  margin-bottom: 20px;
  background: transparent;
  outline: none;
}
.contact-form button {
  border: 2px solid #6b4423;
  background: transparent;
  color: #6b4423;
  padding: 10px 20px;
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.3s ease;
}
.contact-form button:hover {
  background: #6b4423;
  color: #fff;
}
/* Tablet media */
/* =========================
   TABLET LAYOUTS (≥768px)
========================= */
@media (min-width: 768px) {
  .desktop-nav {
    display: flex;
  }

  .desktop-nav ul {
    display: flex;
    gap: 20px;
  }

  .desktop-nav ul li a {
    text-decoration: none;
    font-size: 14px;
    font-weight: 200;
    padding: 8px 12px;
    color: white;
  }

  .desktop-nav ul li a:hover {
    color: #6b4423;
  }

  /* Hide mobile toggle + nav on tablet/desktop */
  .menu-toggle,
  .mobile-nav {
    display: none;
  }
  /* Section padding more generous on tablet */
  section {
    padding: 80px 40px;
  }

  /* ===== Header ===== */
  header nav ul {
    display: flex;
    justify-content: center;
    gap: 30px;
  }

  header nav ul li {
    display: inline-block;
    margin: 0;
  }

  /* ===== About ===== */
  .about {
    max-width: 1100px;
    margin: 0 auto;
  }

  .about-content {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    text-align: left;
  }

  .about-text {
    flex: 1;
    padding-right: 30px;
  }

  .about-image {
    flex: 1;
    display: flex;
    justify-content: center;
  }

  /* Skills side by side with about */
  .skills {
    flex: 1;
    margin-top: 0;
    padding-left: 30px;
  }
  /* ===== Skills ===== */
  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  /* ===== Portfolio ===== */
  .portfolio {
    padding: 80px 40px;
  }
  .container h3 {
    padding-bottom: 10px;
  }
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
  }
  .portfolio-card {
    min-height: 350px; /* same size for all cards */
    padding: 30px;
  }

  /* ===== Services ("What I Do") ===== */
  .services {
    grid-template-columns: 1fr; /* keep single column on tablet */
    gap: 25px;
    max-width: 700px;
    margin: 0 auto;
  }

  .service-card {
    padding: 30px;
  }

  /* ===== Contact ===== */
  .contact-form {
    max-width: 700px;
  }

  .contact-form input,
  .contact-form textarea {
    font-size: 1rem;
    padding: 12px;
  }

  .contact-form button {
    font-size: 1rem;
    padding: 12px 25px;
  }
}
