/* ===== Global Styles ===== */
:root {
  --bg: #f5f3ef;
  --primary: #4a3f35;
  --accent: #c19a6b;
  --text: #1f1f1f;
  --highlight: #d2691e;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}


body {
  font-family: 'Poppins', sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

hr {
  border: none;
  height: 3px;
  background: linear-gradient(to right, transparent, var(--accent), transparent);
  margin: 3rem auto;
  width: 80%;
  border-radius: 5px;
}


/* ===== Header ===== */
.head {
  background-color: var(--primary);
  color: var(--bg);
  padding: 10px 50px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.head h1 {
  font-size: 1.8rem;
  letter-spacing: 1px;
}


nav ul {
  list-style: none;
  display: flex;
  gap: 20px;
}

nav ul li a {
  color: var(--bg);
  text-decoration: none;
  font-weight: 600;
  transition: 0.3s;
}

nav ul li a:hover {
  color: var(--accent);
}



/* ===== Hero Section ===== */
.hero {
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 60px 20px;
  background-color: #fff;
  border-radius: 15px;
  margin: 30px auto;
  max-width: 1200px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  flex-wrap: wrap;
  box-shadow: 8px 4px 10px rgba(9, 4, 4, 0.1);
}

.intro-text h1 {
  color: var(--highlight);
  font-size: 2.5rem;
  margin: 10px 0;
}

.intro-image img {
  width: 300px;
  height: 300px;
  object-fit: cover;
  border-radius: 50%;
  border: 5px solid var(--accent);
}



/* ===== About ===== */
section {
  padding: 60px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

/* Section Headings */
.about h2,
.skills h2,
.work h2,
.certificate h2,
.services h2,
.contact h2 {
  color: var(--primary);
  margin-bottom: 15px;
  font-size: 2rem;
  text-align: center;
}

.about-box {
  background-color: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-left: 5px solid var(--accent);
  border-radius: 12px;
  padding: 30px;
  margin-top: 20px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.about-box h2 {
  margin-bottom: 15px;
  color: var(--primary);
  font-size: 2rem;
}

.about-box p {
  margin-bottom: 15px;
  color: var(--text);
}

.about-box h3 {
  margin-top: 20px;
  margin-bottom: 10px;
  color: var(--highlight);
  font-size: 1.2rem;
}

.about-box ul {
  margin-top: 10px;
  padding-left: 25px;
  line-height: 1.8;
}

.about-box ul li {
  margin-bottom: 8px;
}



/* ===== Skills ===== */
.skill-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 15px;
  margin-top: 20px;
}

.skill {
  background-color: var(--accent);
  color: var(--primary);
  padding: 10px;
  text-align: center;
  border-radius: 10px;
  font-weight: 600;
  transition: 0.3s;
}

.skill:hover {
  background-color: var(--primary);
  color: var(--bg);
}



/* ===== My Works ===== */
.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.work-card {
  background-color: #fff;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s, box-shadow 0.3s;
  /* what does it do*/
}

.work-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  transition: transform 0.3s;
}

.work-card:hover img {
  transform: scale(1.05);
}

.work-info {
  padding: 15px;
}

.work-info h3 {
  color: var(--primary);
  margin-bottom: 10px;
}

.work-info p {
  font-size: 0.95rem;
  margin-bottom: 12px;
  color: #333;
}

.work-info a {
  text-decoration: none;
  color: var(--bg);
  background-color: var(--highlight);
  padding: 8px 12px;
  border-radius: 8px;
  font-weight: 600;
}

.work-info a:hover {
  background-color: var(--primary);
  color: var(--bg);
  transition: 0.3s;
}

.More {
  display: block;
  width: 150px;
  margin: 40px auto 0;
  padding: 10px 0;
  text-align: center;
  background-color: var(--highlight);
  color: var(--bg);
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.3s;
  text-decoration: none;
  color: var(--bg);
}

.More:hover {
  background-color: var(--primary);
  color: var(--bg);
}


/* ===== Certificates ===== */
#certificate {
  margin-top: 10px;
}

.certificate-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.certificate-card {
  background-color: #fff;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

.certificate-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.certificate-card {
  aspect-ratio: 4 / 3;
  /* maintains consistent box shape */
}

.certificate-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.certificate-card:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}


/* ===== Services ===== */
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.service-card {
  background-color: #fff;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

.service-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  transition: transform 0.3s;
}

.service-card:hover {
  transform: scale(1.05);
}

.service-card h3 {
  color: var(--primary);
  margin-bottom: 10px;
}

.service-card p {
  font-size: 0.95rem;
  margin-bottom: 12px;
  color: #333;
}

.service-card {
  padding: 15px;
}


/* ===== Contact ===== */
.contact {
  padding: 80px 10%;
  background: var(--bg);
  text-align: center;
}

.contact h2 {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 15px;
}

.contact p {
  font-size: 1.1rem;
  color: var(--text);
  margin-bottom: 40px;
}

/* Contact links grid */
.contact-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
}

/* Each contact item */
.contact-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: var(--primary);
  font-weight: 600;
  transition: transform 0.3s, color 0.3s;
}

.contact-item:hover {
  transform: translateY(-6px);
  color: var(--highlight);
}

/* Icon styling */
.contact-item img {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--accent);
  box-shadow: 0 4px 12px rgba(74, 63, 53, 0.2);
  margin-bottom: 10px;
  transition: transform 0.3s, box-shadow 0.3s;
}

.contact-item:hover img {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(74, 63, 53, 0.3);
}

/* Responsive Design */
@media (max-width: 600px) {
  .contact-item img {
    width: 60px;
    height: 60px;
  }

  .contact h2 {
    font-size: 1.7rem;
  }
}

/* ===== Footer ===== */
footer {
  background-color: var(--primary);
  color: var(--bg);
  text-align: center;
  padding: 20px;
  margin-top: 50px;
}