@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@100;300;400;500;600;700&display=swap");

/* --- Light & Professional Theme Variables --- */
:root {
  --primary: #007bff;
  --primary-hover: #0056b3;
  --light-bg: #ffffff;
  --secondary-bg: #f8f9fa;
  --text-color: #212529;
  --light-text: #ffffff;
  --muted-text: #6c757d;
  --border-color: #dee2e6;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: "Poppins", sans-serif;
  background-color: var(--light-bg);
  color: var(--text-color);
}

header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: var(--light-bg);
  padding: 25px;
  color: var(--text-color);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1001;
  border-bottom: 1px solid var(--border-color);
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

header .logo {
  color: var(--primary);
  margin-right: 130px;
  font-weight: 600;
  letter-spacing: 2px;
}

header ul {
  display: flex;
  list-style: none;
}

header ul li {
  margin-right: 30px;
}

header ul li a {
  color: var(--text-color);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease 0s;
}

header ul li a:hover {
  color: var(--primary);
}

section.hero-section {
  background-color: var(--light-bg);
  color: var(--text-color);
  display: flex;
  align-items: center;
  padding: 140px 120px 80px 120px;
  gap: 30px;
}

.hero-text-content {
    flex: 1;
}

.hero-section__title {
  font-size: 48px;
}

.hero-section__title span {
  color: var(--primary);
}

.hero-section__desc {
  color: var(--muted-text);
  max-width: 600px;
}

.hero-img {
    flex-shrink: 0;
}

.hero-img img {
  margin-left: 30px;
  border-radius: 15px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.social-icons {
  margin: 18px 0;
}

ul.social-icons {
  list-style: none;
  display: flex;
}

.social-icons li {
  margin-right: 15px;
  border-radius: 50%;
  border: 1px solid var(--primary);
  padding: 8px 12px;
  transition: all 0.3s ease 0s;
}

.social-icons li:hover {
  background-color: var(--primary);
}

.social-icons li a {
  text-decoration: none;
  color: var(--primary);
  font-size: 18px;
  transition: all 0.3s ease 0s;
}

.social-icons li:hover a {
    color: var(--light-text);
}

.btn {
  padding: 10px 20px;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease 0s;
  display: inline-block;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
}

.btn.btn-primary {
  background-color: var(--primary);
  color: var(--light-text);
  font-weight: 600;
}

.btn.btn-primary:hover {
  background-color: var(--primary-hover);
}

.btn.btn-secondary {
    background-color: #6c757d;
    color: #fff;
}

.btn.btn-secondary:hover {
    background-color: #5a6268;
}


section.about-section {
  background-color: var(--secondary-bg);
  color: var(--text-color);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px;
  gap: 50px;
}

.about-img img {
  width: 250px;
  height: 250px;
  padding: 2px;
  border-radius: 50%;
  border: 3px solid var(--primary);
  box-shadow: 3px 5px 30px rgba(0, 123, 255, 0.2);
  object-fit: cover;
}

.timeline {
  margin-top: 30px;
  padding-left: 20px;
  border-left: 3px solid var(--primary);
  position: relative;
}

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

.timeline-item::before {
  content: '';
  position: absolute;
  top: 5px;
  left: -10.5px;
  width: 16px;
  height: 16px;
  background-color: var(--primary);
  border: 3px solid var(--secondary-bg);
  border-radius: 50%;
  box-shadow: 0 0 0 2px var(--primary);
}

.timeline-date {
  font-weight: 500;
  color: var(--primary);
  margin-bottom: 5px;
  font-size: 14px;
}

.timeline-content {
  background-color: var(--light-bg);
  padding: 15px;
  border-radius: 8px;
  box-shadow: 3px 3px 15px rgba(0, 0, 0, 0.08);
}

.timeline-content h4 {
  margin: 0 0 5px;
  color: var(--text-color);
  font-size: 16px;
}

.timeline-content p {
  margin: 0;
  color: var(--muted-text);
  font-size: 14px;
}

.about-content {
  max-width: 600px;
}

.about-content h2 {
  font-size: 33px;
}

.about-content h2 > span {
  color: var(--primary);
}

.about-content p {
  color: var(--muted-text);
  font-size: 15px;
}

.my-skills-section {
    background-color: var(--secondary-bg);
    padding: 80px 40px;
}

.my-skills-section h2 {
    text-align: center;
    font-size: 28px;
    margin-bottom: 50px;
}

.my-skills-section h2 > span {
    color: var(--primary);
}

.skills-container {
    max-width: 1200px;
    margin: 0 auto;
    background-color: var(--light-bg);
    padding: 50px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.07);
}

.skills-columns {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 50px;
    flex-wrap: wrap;
}

.skills-column {
    flex: 1;
    min-width: 300px;
}

.skills-column h3 {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 20px;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 30px;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 15px;
}

.skills-column h3 i {
    color: var(--primary);
    font-size: 22px;
    width: 25px;
    text-align: center;
}

.skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.skill-card {
    display: flex;
    align-items: center;
    background-color: var(--secondary-bg);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    padding: 12px 22px;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
    cursor: default;
}

.skill-card:hover {
    background-color: var(--primary);
    border-color: var(--primary);
    transform: translateY(-5px);
}

.skill-card:hover h4 {
    color: var(--light-text);
}

.skill-card img {
    height: 24px;
    margin-right: 12px;
}

.skill-card h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 500;
    color: var(--text-color);
    transition: color 0.3s ease;
}

section.projects-section {
    background-color: var(--light-bg);
    color: var(--text-color);
    padding: 80px 40px;
}

.projects-section h2 {
    font-size: 28px;
    text-align: center;
}

.projects-section h2 > span {
    color: var(--primary);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
    max-width: 1400px;
    margin: 40px auto 0 auto;
}

.project-item {
    position: relative;
    display: block;
    height: 250px;
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    background-size: cover;
    background-position: center;
    transition: transform 0.3s ease;
}

.projects-grid > a:first-child.project-item {
     background-size: contain;
     background-repeat: no-repeat;
     background-position: center;
}

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

.project-item-hover {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, transparent 100%);
    color: #fff;
    padding: 40px 20px 20px 20px;
    transform: translateY(100%);
    transition: transform 0.35s ease-out;
}

.project-item:hover .project-item-hover {
    transform: translateY(0);
}

.project-item-hover h4 {
    font-size: 17px;
    font-weight: 500;
    color: #fff;
    margin: 0;
}

.spatial-tools-map-section {
    padding: 60px 0;
    background-color: var(--secondary-bg);
}

.spatial-tools-map-section h2 {
    font-size: 28px;
    text-align: center;
    margin-bottom: 30px;
    color: var(--text-color);
}

.spatial-tools-map-section h2 > span {
    color: var(--primary);
}

#map {
    width: 100%;
    height: 550px;
    background-color: #a2d1ff;
    z-index: 0;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

/* --- NEW: Styles for the Tabbed Tool Interface --- */
.tool-switcher {
    display: flex;
    background-color: var(--light-bg);
    border: 1px solid var(--border-color);
    border-top: none;
    border-bottom: none;
}

.tool-tab-btn {
    flex: 1;
    padding: 15px 10px;
    border: none;
    background-color: transparent;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    font-family: "Poppins", sans-serif;
    color: var(--muted-text);
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
}

.tool-tab-btn:hover {
    background-color: var(--secondary-bg);
}

.tool-tab-btn.active {
    color: var(--primary);
    border-bottom: 3px solid var(--primary);
}

.tool-tab-btn i {
    margin-right: 8px;
}

.tool-controls-container {
    background-color: var(--light-bg);
    border: 1px solid var(--border-color);
    border-top: none;
    border-radius: 0 0 8px 8px;
    padding: 20px 30px;
}

.tool-panel {
    display: none; /* Hidden by default */
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: center;
    gap: 20px;
}

.tool-panel.active {
    display: flex; /* Shown when active */
}

.tool-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.tool-group label {
    font-weight: 500;
    font-size: 14px;
    color: var(--muted-text);
}

.tool-select, .tool-input {
    padding: 8px 12px;
    border-radius: 4px;
    border: 1px solid var(--border-color);
    font-family: "Poppins", sans-serif;
    font-size: 14px;
}

.tool-input {
    width: 100px;
}

.tool-select:focus, .tool-input:focus {
    outline: none;
    border-color: var(--primary);
}

#resetMapBtn {
    margin-left: auto;
}

#resetMapBtn i {
    margin-right: 8px;
}

.tool-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
}

.tool-step .btn i {
    margin-right: 8px;
}

.tool-desc {
    font-size: 13px;
    color: var(--muted-text);
    max-width: 250px;
}

.buffer-form {
    display: flex;
    align-items: center;
    gap: 10px;
}

.buffer-form label {
    font-weight: 500;
}

.buffer-form input {
    width: 70px;
    padding: 8px;
    border-radius: 4px;
    border: 1px solid var(--border-color);
    font-family: "Poppins", sans-serif;
}

section.contact-section {
  background-color: var(--light-bg);
  color: var(--text-color);
  text-align: center;
  padding: 60px 30px;
}

.contact-section h2 {
  font-size: 28px;
  margin: 18px 0;
}

.contact-section h2 > span {
  color: var(--primary);
}

.contact-section form {
    max-width: 400px;
    margin: 0 auto 15px auto;
}

.contact-section form div > input,
textarea {
  background-color: var(--secondary-bg);
  width: 100%;
  padding: 10px 8px;
  margin-bottom: 10px;
  border-radius: 5px;
  border: 1px solid var(--border-color);
  outline: none;
  resize: none;
  font-family: "Poppins", sans-serif;
  color: var(--text-color);
}

.contact-section form div > input:focus,
textarea:focus {
  border: 1px solid var(--primary);
}

.contact__github button {
  padding: 10px 44px;
  background-color: #343a40;
}

.contact__github button > a {
  text-decoration: none;
  color: var(--light-text);
}

.contact__github button > a > i {
  font-size: 16px;
}

.contact__github button:hover {
  background-color: #23272b;
}

footer {
  background-color: var(--secondary-bg);
  color: var(--muted-text);
  text-align: center;
  padding: 15px 0;
  font-size: 13px;
  border-top: 1px solid var(--border-color);
}

footer a {
  text-decoration: none;
  color: var(--primary);
}

@media only screen and (max-width: 768px) {
  header {
    flex-direction: column;
    align-items: center;
    padding: 15px 20px;
  }
  header .logo {
    margin: 0 0 10px 0;
  }

  header ul {
    margin: 0;
    padding: 0;
  }
  
  header ul li {
    margin: 0 10px;
  }

  section.hero-section, section.about-section, section.projects-section, .my-skills-section, .spatial-tools-map-section, section.contact-section {
      padding-left: 20px;
      padding-right: 20px;
  }

  section.hero-section {
    flex-direction: column-reverse;
    padding-top: 150px;
    text-align: center;
  }

  .hero-img img {
    margin: 0 0 30px 0;
    width: 150px;
  }

  section.about-section {
    flex-direction: column;
  }

  .about-content {
    margin-left: 0;
    margin-top: 30px;
    text-align: center;
  }

  .timeline {
    text-align: left;
  }
  
  .projects-grid {
    grid-template-columns: 1fr;
  }
  
  section.projects-section {
      padding: 60px 20px;
  }
  
  .skills-container {
      padding: 30px 20px;
  }

  .contact-section form {
    width: 100%;
  }
}