/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Times New Roman", serif;
}
html {
  scroll-behavior: smooth;
}
body {
  background: #ffffff;
  color: #333;
  line-height: 1.6;
}

/* NAVBAR */
.navbar {
  background-color: #000;
}

.navbar ul {
  list-style: none;
  display: flex;
  justify-content: center;
}

.navbar li {
  margin: 0;
}

.navbar a {
  display: block;
  color: white;
  padding: 16px 20px;
  text-decoration: none;
  font-weight: bold;
}

.navbar a:hover {
  background-color: #222;
}
/* HEADEER */
header {
  background-color: #2e8b57;
  color: white;
  padding: 20px;
  text-align: center;
}
#about img {
  width: 150px;
  border-radius: 50%;
  display: block;
  margin: 0 auto 10px;
}

/* HERO SECTION */
.hero {
  padding: 50px;
}

.hero-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.hero-text {
  flex: 1;
  min-width: 300px;
}

.hero-text h1 {
  font-size: 2rem;
  margin-bottom: 20px;
}

.hero-text span {
  color: #000;
  font-weight: bold;
}

.spaced {
  margin-bottom: 20px;
}
.hero-image {
  flex: 1;
  min-width: 280px;
  display: flex;
  align-items: stretch;
  text-align: right;
}

.hero-image img {
  max-width: 100%;
  object-fit: cover;
  border-radius: 12px;
}

/* Buttons */
.button-box {
  margin-top: 20px;
  display: flex;
  gap: 20px;
}

.btn {
  background-color: #fff;
  color: #000;
  padding: 8px 20px;
  text-decoration: none;
  font-weight: bold;
  border-radius: 22px;
  transition: background-color 0.3s ease, color 0.3s ease;
  border: 2px solid #000;
}

.btn:hover {
  background-color: #222;
  color: #fff;
}

/* SECTIONS */
.section {
  padding: 50px;
  text-align: center;
}

.section h2 {
  font-size: 2rem;
  margin-bottom: 30px;
  font-weight: bold;
}

/* SKILLS */
.skills-details {
  max-width: 1200px;
  margin: auto;
  padding: 40px 20px;
}

.skills-about {
  font-size: 1.1rem;
  color: #555;
  margin-bottom: 30px;
  text-align: center;
}

.skills-grid {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.skill-category h3 {
  font-size: 1.5rem;
  margin-bottom: 20px;
  color: #000;
  text-align: center;
}

.cards {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.card {
  background-color: #fff;
  border: 2px solid #000;
  padding: 20px;
  border-radius: 12px;
  width: 250px;
  text-align: center;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.card h4 {
  margin-bottom: 10px;
  font-size: 1.2rem;
  font-weight: bold;
}

.card p {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.4;
}

.card:hover {
  background-color: #000;
  color: #fff;
}

.card:hover p {
  color: #ddd;
}

/* project section */
.project-images {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 15px;
}

.project-images img {
  width: 250px;
  height: 250px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.project-images img:hover {
  transform: scale(1.05);
}



#resume .btn {
  display: inline-block;
  margin-top: 20px;
}

#contact p {
  font-size: 1.1rem;
  margin-bottom: 10px;
  color: #333;
}

#contact a {
  color: #000;
  text-decoration: none;
  font-weight: bold;
  margin: 0 8px;
}

#contact a:hover {
  color: #555;
  text-decoration: underline;
}
  
/* FOOTER */
footer {
  background: #2e8b57;
  color: white;
  text-align: center;
  padding: 20px;
  margin-top: 40px;
}
footer a {
  color: #fff;
  text-decoration: none;
  margin: 0 8px;
  font-weight: bold;
}

footer a:hover {
  text-decoration: underline;
  color: #ddd;
}

footer p {
  margin: 8px 0;
}
/* JS animation support */
.section, .hero {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease;
}

/* Active navbar link */
.navbar a.active {
  background-color: #2e8b57;
  color: #fff;
}
#backToTop {
  display: none; /* hidden by default */
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 100;
  background-color: #4CAF50;
  color: white;
  border: none;
  padding: 12px 18px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  transition: background-color 0.3s ease;
}

#backToTop:hover {
  background-color: #45a049;
}



