/* ===== RESET ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Open Sans", sans-serif;
  background-color: #fdfdfd;
  color: #333;
  line-height: 1.6;
}

/* ===== TYPOGRAPHY ===== */
h1,
h2,
h3 {
  font-family: "Merriweather", serif;
  color: #2c3e50;
}

h1 {
  font-size: 40px;
}

h2 {
  font-size: 28px;
  margin-bottom: 20px;
  border-bottom: 2px solid #e0e0e0;
  padding-bottom: 5px;
}

/* ===== NAVBAR ===== */
nav#navbar {
  background: #2c3e50;
  padding: 12px 20px;
  position: sticky;
  top: 0;
  z-index: 1000;
}

nav#navbar ul {
  display: flex;
  justify-content: center;
  list-style: none;
  flex-wrap: wrap;
}

nav#navbar ul li {
  margin: 0 15px;
}

nav#navbar ul li a {
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

nav#navbar ul li a:hover {
  color: #f39c12;
}

/* ===== HERO ===== */
#hero {
  background: #34495e;
  color: #fff;
  text-align: center;
  padding: 80px 20px;
}

#hero h1 {
  color: #fff;
  margin-bottom: 10px;
}

#hero p {
  font-size: 20px;
}

#hero .button {
  display: inline-block;
  margin-top: 20px;
  padding: 10px 20px;
  background: #e67e22;
  color: white;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
}

#hero .button:hover {
  background: #cf711f;
}

/* ===== SECTIONS ===== */
section {
  padding: 50px 20px;
  max-width: 1000px; /*---Adjustable--*/
  margin: auto;
}

/* ===== ABOUT SECTION ===== */
#about .about-container {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

.about-text {
  flex: 1 1 55%;
}

.about-photo {
  flex: 1 1 35%;
  text-align: center;
}

.about-photo img.profile-photo {
  width: 250px;
  height: auto;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
  #about .about-container {
    flex-direction: column-reverse;
    text-align: center;
  }

  .about-text,
  .about-photo {
    flex: 1 1 100%;
  }
}

.about-contact-icons {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  gap: 20px;
}

.about-contact-icons a {
  color: #2c3e50;
  font-size: 30px;
  transition: color 0.3s ease, transform 0.3s ease;
}

.about-contact-icons a:hover {
  color: #e67e22;
  transform: scale(1.2);
}

/* ===== COMMON CARD BASE ===== */
.card-base {
  background: #ffffff;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
}

.card-base:hover {
  transform: translateY(-10px);
}

/* ===== EXPERIENCE & EDUCATION ===== */
.card {
  border-left: 4px solid #3498db;
}

.experience-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 20px;
}

.education-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

.education-card {
  border-left: 4px solid #8e44ad;
  transition: transform 0.3s ease;
}

.education-card:hover {
  transform: translateY(-5px);
}

.education-card h3 {
  margin-bottom: 10px;
  font-size: 20px;
  color: #2c3e50;
}

.education-card p {
  margin-bottom: 10px;
  color: #555;
}

.education-card .concept-list {
  list-style-type: circle;
  padding-left: 20px;
  color: #333;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .education-container {
    grid-template-columns: 1fr;
  }
}

.education-card .toggle-details {
  background-color: transparent;
  color: #8e44ad;
  border: none;
  font-weight: bold;
  margin-bottom: 10px;
  cursor: pointer;
  font-size: 15px;
  padding: 0;
  transition: color 0.3s ease;
}

.education-card .toggle-details:hover {
  color: #5e3373;
}

.education-details {
  display: none;
  animation: fadeIn 0.3s ease-in-out;
}

.education-details.open {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== SKILLS SECTION ===== */
.skills-list.bullets {
  list-style-type: disc;
  padding-left: 20px;
  columns: 3;
  column-gap: 40px;
}

@media (max-width: 768px) {
  .skills-list.bullets {
    columns: 2;
  }
}

@media (max-width: 500px) {
  .skills-list.bullets {
    columns: 1;
  }
}

/* ===== PROJECTS SECTION ===== */
#projects {
  padding: 50px 20px;
  max-width: 1000px;
  margin: auto;
}

#projects h2 {
  text-align: center;
  font-size: 28px;
  color: #2c3e50;
  margin-bottom: 30px;
}

#projects .projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 20px;
}

/* Make entire card clickable */
#projects .project-card-link {
  text-decoration: none; /* remove underline */
  display: block; /* full card clickable */
  transition: transform 0.3s ease, border-color 0.3s ease;
}

/* Project card styling */
.project-card-link .project-card {
  background: #fafafa;
  padding: 20px;
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.06);
  border-left: 4px solid #27ae60;
  border-radius: 12px;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

/* Card hover effect */
.project-card-link:hover .project-card {
  transform: translateY(-5px);
  border-color: #2ecc71; /* subtle border color change */
}

/* Project images */
.project-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  margin-bottom: 15px;
  border-radius: 5px;
  transition: transform 0.3s ease;
}

.project-card-link:hover img {
  transform: scale(1.03); /* subtle image zoom on hover */
}

/* Project title */
.project-card h3 {
  margin: 0;
  font-size: 20px;
  color: #27ae60;
  transition: color 0.3s ease;
}

.project-card-link:hover h3 {
  color: #2ecc71; /* lighter green on hover */
}

/* Project description */
.project-card p {
  margin-top: 10px;
  color: #555;
  line-height: 1.5;
}

/* ===== RESPONSIVE(Projects sction) ===== */
@media (max-width: 768px) {
  #projects .projects-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== TESTIMONIALS SECTION HEADING ===== */
.section-heading {
  text-align: center;
  margin-bottom: 30px;
}

.section-heading h2 {
  font-size: 28px;
  color: #2c3e50;
  position: relative;
  display: inline-block;
}

.section-heading h2 i {
  color: #e67e22;
  margin-right: 10px;
}

.section-subtitle {
  font-size: 16px;
  color: #666;
  margin-top: 8px;
  font-style: italic;
}

/* ===== TESTIMONIALS SECTION ===== */
#testimonials {
  background-color: #f8f8f8;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.testimonial-grid blockquote {
  background: #fff;
  padding: 20px;
  border-left: 4px solid #e67e22;
  border-radius: 20px;
  font-style: italic;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

/* ===== TOOLS SECTION ===== */
#tools {
  background-color: #fafafa;
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  align-items: center;
  justify-items: center;
  margin-top: 20px;
}

.tools-grid img {
  max-width: 100px;
  transition: transform 0.3s ease;
}

.tools-grid img:hover {
  transform: scale(1.2);
}

.tool-tile {
  background-color: white;
  width: 200px;
  height: 120px;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

.tool-tile:hover {
  transform: translateY(-5px);
}

.tool-tile img {
  width: 100px;
  height: 100px;
  object-fit: contain;
}

.tools-intro {
  text-align: center;
  font-size: 16px;
  color: #555;
  margin-bottom: 20px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* ===== CONTACT SECTION HEADING ===== */
.section-heading {
  text-align: center;
  margin-bottom: 30px;
}

.section-heading h2 {
  font-size: 28px;
  color: #2c3e50;
  position: relative;
  display: inline-block;
}

.section-heading h2 i {
  color: #e67e22;
  margin-right: 10px;
}

.section-subtitle {
  font-size: 16px;
  color: #666;
  margin-top: 8px;
  font-style: italic;
}

/* ===== CONTACT FORM ===== */
.contact-form {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.contact-form input,
.contact-form textarea {
  padding: 10px;
  border: 1px solid #ccc;
  font-family: inherit;
  border-radius: 4px;
  font-size: 16px;
  width: 100%;
  resize: vertical;
}

.contact-form button {
  padding: 12px;
  background-color: #e67e22;
  color: white;
  border: none;
  border-radius: 4px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
  font-size: 16px;
}

.contact-form button:hover {
  background-color: #cf711f;
}

/* ===== FOOTER ===== */
footer {
  background-color: #2c3e50;
  color: white;
  text-align: center;
  padding: 20px;
  margin-top: 50px;
  font-size: 14px;
}
