body {
  font-family: 'Poppins', sans-serif;
  background: #f6f3ee;
  color: #3b3b3b;
  margin: 0;
  overflow-x: hidden;
}

html { scroll-behavior: smooth; }

h1, h2, h3 { font-weight: 600; color: #2e2e2e; }

h2 {
  font-size: 26px;
  margin-bottom: 35px;
  text-transform: uppercase;
  position: relative;
}

.navbar {
  background: #e9dfd2 !important;
  padding: 14px 0;
  border-bottom: 1px solid #d9c9b5;
}

.navbar .nav-link {
  color: #4e4e4e !important;
  margin: 0 15px;
  font-weight: 500;
  transition: .3s;
}

.navbar .nav-link:hover {
  color: #9a7f63 !important;
  letter-spacing: .5px;
}

header {
  background: linear-gradient(90deg, #e4d7c6, #f5eee4);
  text-align: center;
  padding: 95px 20px;
}


header h1 { font-size: 42px; }

.hero-section {
  background: linear-gradient(135deg, #f4efe7, #e8e0d4);
  padding: 80px 20px;
  border-bottom: 3px solid #c8b39c;
}

.profile-img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #d2b999;
  box-shadow: 0 6px 15px rgba(0,0,0,0.08);
}

.hero-name {
  font-size: 2.6rem;
  font-weight: 600;
  color: #4b3621;
  margin: 15px 0 5px;
  font-family: 'Playfair Display', serif;
}

.hero-role {
  font-size: 1.3rem;
  font-weight: 400;
  color: #7d5c47;
  margin-bottom: 12px;
  letter-spacing: 0.5px;
}

.hero-sub {
  font-size: 1rem;
  color: #9a856f;
  max-width: 600px;
  margin: 0 auto;
  font-style: italic;
  letter-spacing: 0.3px;
}
.resume-btn {
  background: #9a7f63;
  color: white;
  padding: 12px 28px;
  border-radius: 30px;
  font-weight: 500;
  display: inline-block;
  margin-top: 20px;
  text-decoration: none;
  transition: .3s;
}

.resume-btn:hover {
  background: #7a6148;
  transform: scale(1.06);
}

section {
  background: white;
  padding: 50px 35px;
  margin: 50px auto;
  border-radius: 14px;
  max-width: 1100px;
  box-shadow: 0 0 18px rgba(0,0,0,0.05);
}

.skills-section {
  max-width: 1100px;
  margin: 80px auto;
  padding: 20px;
  text-align: center;
}

.section-title {
  font-size: 2.4rem;
  font-weight: 600;
  color: #4b3621;
  margin-bottom: 40px;
  font-family: "Playfair Display", serif;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 25px;
  padding: 10px;
}

.skill-card {
  background: #f8f5f2;
  padding: 25px;
  border-radius: 14px;
  transition: all 0.3s ease;
  border: 1px solid rgba(75, 54, 33, 0.15);
  cursor: default;
}

.skill-card i {
  font-size: 28px;
  color: #6b4f3f;
  margin-bottom: 10px;
}

.skill-card h4 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: #4b3621;
}

.skill-card p {
  font-size: 0.95rem;
  color: #6d5a4a;
}

.skill-card:hover {
  transform: translateY(-6px);
  box-shadow: 0px 10px 20px rgba(93, 64, 55, 0.15);
  border-color: #c2a78b;
}

.projectItem {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box; 
  word-break: break-word;  
  overflow-wrap: anywhere; 
  white-space: normal;     
  background: white;
  padding: 20px;
  border-radius: 12px;
  border-left: 4px solid #9a7f63;
  margin-bottom: 25px;
  box-shadow: 0px 0px 16px rgba(0,0,0,0.05);
  transition: .35s;
}

.projectItem a {
  color: #7a6148;
  font-weight: 500;
  text-decoration: none;
  word-break: break-word;
  overflow-wrap: anywhere;
  white-space: normal;
}

.projectItem a:hover {
  text-decoration: underline;
}

.projectItem:hover {
  transform: translateY(-6px);
  box-shadow: 0px 8px 24px rgba(0,0,0,0.12);
}

.projectItem a {
  color: #7a6148;
  font-weight: 500;
  text-decoration: none;
}
.projectItem a:hover { text-decoration: underline; }

.timeline {
  border-left: 3px solid #9a7f63;
  padding-left: 25px;
  margin-top: 20px;
}

.timeline-item {
  margin-bottom: 30px;
  position: relative;
}

.timeline-item::before {
  content: "";
  width: 14px;
  height: 14px;
  background: #9a7f63;
  border-radius: 50%;
  position: absolute;
  left: -32px;
  top: 4px;
}

#contact a {
  color: #9a7f63;
  font-weight: 600;
  text-decoration: none;
}
#contact a:hover { opacity: .7; }

footer {
  background: #e4d7c6;
  text-align: center;
  padding: 22px;
  margin-top: 40px;
  color: #4d4d4d;
}

.fadeInUp {
  opacity: 0;
  transform: translateY(25px);
  transition: .9s ease;
}

.fadeInUp.visible {
  transform: translateY(0); 
  opacity: 1;
}

@media (max-width: 375px) {

  .hero-name {
    font-size: 1.9rem;
  }

  .hero-role {
    font-size: 1rem;
  }

  .hero-sub {
    font-size: .85rem;
    padding: 0 10px;
  }

  .profile-img {
    width: 120px;
    height: 120px;
  }

  .navbar .nav-link {
    margin: 8px 0;
    text-align: center;
  }
  .projectItem p {
  word-break: break-word;
  overflow-wrap: anywhere;
}

  section {
    padding: 30px 18px;
    margin: 20px 12px;
  }

  .skills-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {

  .hero-name {
    font-size: 2.2rem;
  }

  .profile-img {
    width: 135px;
    height: 135px;
  }
  .projectItem p, 
  .projectItem a {
    font-size: 0.9rem;
    line-height: 1.4;
  }

  .skills-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
}

@media (max-width: 768px) {

  header {
    padding: 70px 20px;
  }

  .hero-name {
    font-size: 2.4rem;
  }

  .hero-sub {
    max-width: 90%;
  }

  section {
    margin: 30px auto;
    padding: 40px;
  }

  .skills-grid {
    gap: 18px;
  }

  .projectItem {
    padding: 18px;
  }

  .timeline {
    padding-left: 20px;
  }
}

@media (max-width: 1024px) {

  section {
    max-width: 90%;
  }

  .skills-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }

  .hero-name {
    font-size: 2.5rem;
  }
}

