* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  font-family: 'Segoe UI', sans-serif;
  color: #17252a;
  scroll-behavior: smooth;
}

body {
  background-color: #000;
  overflow-x: hidden;
  position: relative;
}

.hero {
  background: linear-gradient(to bottom, #49c5b6, #006381, #17252a);
  height: 100vh;
  position: relative;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 2;
}

.logo {
  font-size: 1.3rem;
  font-weight: 600;
  color: white;
  letter-spacing: 1px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.contact-btn {
  padding: 0.4rem 1rem;
  border: none;
  background-color: #17252a;
  color: white;
  border-radius: 20px;
  font-style: italic;
  cursor: pointer;
  font-size: 0.9rem;
  transition: background 0.3s;
}

.contact-btn:hover {
  background-color: #def2f1;
  color: #17252a;
}

.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 16px;
  cursor: pointer;
}

.hamburger span {
  height: 3px;
  background: white;
  border-radius: 2px;
}

.hamburger:hover span {
  background: #def2f1;
}


.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  margin: auto;
  padding-bottom: 5rem;
}

.hero-content h1 {
  font-size: 4rem;
  font-weight: 900;
  color: white;
  text-shadow: 0 4px 20px rgba(0,0,0,0.3);
  margin-bottom: 1rem;
}

.hero-content p {
  font-size: 1.4rem;
  color: #17252a;
  margin-bottom: 2rem;
  padding: 0 1rem;
}

.hero-content strong {
  color: #17252a;
}

.social-icons {
  margin-top: 1rem;
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

.about-btn {
  background-color: #17252a;
  color: white;
  padding: 0.5rem 1.3rem;
  border-radius: 30px;
  text-decoration: none;
  font-size: 0.95rem;
  transition: background 0.3s;
}

.about-btn:hover {
  background-color: #def2f1;
  color: #17252a;
}

/* Polka Dots */
.dots {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(#17252a 1.5px, transparent 1.5px);
  background-size: 30px 30px;
  animation: moveDots 4s linear infinite;
  opacity: 0.5;
  z-index: 1;
  pointer-events: none;
}

@keyframes moveDots {
  0% { background-position: 0 0; }
  100% { background-position: 30px 30px; }
}


/* Responsive */
@media (max-width: 768px) {
  .hero-content h1 {
    font-size: 2.3rem;
  }

  .hero-content p {
    font-size: 1rem;
  }

  .top-bar {
    flex-direction: row;
    justify-content: space-between;
  }
}


/* Custom Scrollbar for WebKit (Chrome, Edge, Safari) */
::-webkit-scrollbar {
  width: 8px; /* adjust size */
}

::-webkit-scrollbar-track {
  background: #17252a; 
}

::-webkit-scrollbar-thumb {
  background-color: #49c5b6;
  border-radius: 10px;
  border: 2px solid #17252a;
}

/* Firefox scrollbar styling */
* {
  scrollbar-width: thin;
  scrollbar-color: #49c5b6 #17252a;
}

::-webkit-scrollbar-track {
  display: none;
}

.about-section {
  padding: 6rem 3rem;
  background-color: #17252a;
  color: #def2f1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.about-content {
  max-width: 800px;
  text-align: left;
}

.about-content h2 {
  font-size: 1.2rem;
  font-weight: 400;
  text-transform: lowercase;
  color: #def2f1;
  margin-bottom: 0.5rem;
}

.about-content hr {
  width: 90px;
  height: 2px;
  background: #2b7a78;
  border: none;
  margin-bottom: 2rem;
}

.about-content h1 {
  font-size: 2.8rem;
  font-weight: bold;
  color: #2b7a78;
  margin-bottom: 1.5rem;
}

.about-content p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #def2f1;
}

/* SKILLS SECTION */

.skills-section {
  padding: 6rem 3rem;
  background-color: #17252a;
  color: #def2f1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.skills-content {
  max-width: 800px;
  width: 100%;
}

.skills-content h2 {
  font-size: 1.2rem;
  font-weight: 400;
  text-transform: lowercase;
  color: #def2f1;
  margin-bottom: 0.5rem;
}

.skills-content hr {
  width: 90px;
  height: 2px;
  background: #2b7a78;
  border: none;
  margin-bottom: 2rem;
}

.skill-category {
  margin-bottom: 2.5rem;
}

.skill-category h3 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #def2f1;
}

.skill-category ul {
  list-style: none;
  display: flex;
  gap: 2rem;
  padding-left: 0;
}

.skill-category li img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  filter: drop-shadow(0 1px 1px rgba(0,0,0,0.2));
  cursor: default;
  transition: transform 0.3s;
}

.skill-category li img:hover {
  transform: scale(1.2);
}

/* Project Section from here */

.project-main-section {
  padding: 6rem 3rem;
  background-color: #17252a;
  color: #def2f1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.project-main-content {
  max-width: 800px;
}

.project-main-content h2 {
  font-size: 1.2rem;
  font-weight: 400;
  text-transform: lowercase;
  color: #def2f1;
  margin-bottom: 0.5rem;
}

.project-main-content hr {
  width: 90px;
  height: 2px;
  background: #2b7a78;
  border: none;
  margin-bottom: 2rem;
}

.projects-subtitle {
  font-size: 2rem;
  font-weight: 600;
  color: #def2f1;
  margin: 1rem 0 1rem;
  text-transform: capitalize;
  text-align: center;
}

.project-description {
  font-size: 1rem;
  color: #def2f1;
  margin: 0.5rem 0 1rem;
  line-height: 1.4;
}

.project-section {
  display: flex;
  flex-direction: column;
  gap: 40px;
  max-width: 900px;
  margin: 0 auto;
}

.project-card {
  display: flex;
  gap: 20px;
  text-decoration: none;
  border-bottom: 1px solid #333;
  padding-bottom: 20px;
  transition: opacity 0.3s ease;
}

.project-card:hover {
  opacity: 1;
}

.project-card:hover ~ .project-card {
  opacity: 0.3;
}

.project-index {
  font-weight: bold;
  color: #888;
  font-family: monospace;
  font-size: 1rem;
  padding-top: 6px;
}

.project-content {
  flex: 1;
}

.project-title {
  font-size: 2rem;
  color: #2b7a78;
  margin: 0;
  transition: all 0.3s ease;
}

.project-card:hover .project-title {
  color: #58c4bc;
}
.tech-stack {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.9rem;
  color: #aaa;
}

.tech-stack span {
  background: #1a1a1a;
  padding: 4px 8px;
  border-radius: 5px;
}

/* Modal Background */
.modal {
  display: none; /* Hidden by default */
  position: fixed;
  z-index: 1000; /* On top */
  inset:0;
  overflow: auto; /* Enable scroll if needed */
  background-color: rgba(0, 0, 0, 0.5); /* Black with opacity */
}

/* Modal Content Box */
.modal-content {
  background-color: #17252a; /* light background */
  margin: 15% auto; /* 15% from top, centered */
  padding: 20px;
  border-radius: 10px;
  width: 300px;
  box-shadow: 0 0 10px rgba(0,0,0,0.25);
  text-align: center;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 1.1rem;

}

/*Font color*/

.modal-content p {
  color: white;
}

/* Close Button (X) */
.close {
  color: #aaa;
  float: right;
  font-size: 1.5rem;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.3s ease;
}

.close:hover,
.close:focus {
  color: #000;
}

/* Fade in */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
  will-change: opacity, transform;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* footer */

footer {
  background-color: #222;  
  color: #eee;                 
  text-align: center;
  padding: 15px 0;
  font-size: 14px;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  letter-spacing: 0.02em;
  user-select: none;
}

@media (max-width: 1024px) {
  .hero-content h1 {
    font-size: 3rem;
  }

  .about-content h1,
  .project-title,
  .skill-category h3 {
    font-size: 2rem;
  }

  .project-card {
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  .hero {
    padding: 1.5rem;
  }

  .hero-content {
    padding-bottom: 3rem;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .hero-content p {
    font-size: 0.95rem;
  }

  .about-section,
  .skills-section,
  .project-main-section {
    padding: 4rem 1.5rem;
  }

  .about-content h1,
  .project-title,
  .skill-category h3 {
    font-size: 1.6rem;
  }

  .skill-category ul {
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
  }

  .project-card {
    flex-direction: column;
  }

  .modal-content {
    width: 90%;
  }
}

@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 1.7rem;
  }

  .hero-content p {
    font-size: 0.85rem;
  }

  .about-content h1,
  .project-title,
  .skill-category h3 {
    font-size: 1.4rem;
  }

  .contact-btn {
    padding: 0.3rem 0.8rem;
    font-size: 0.8rem;
  }

  .about-btn {
    font-size: 0.85rem;
    padding: 0.4rem 1rem;
  }

  .top-bar {
    flex-direction: column;
    gap: 1rem;
  }
}

/* section {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

section.visible {
  opacity: 1;
  transform: translateY(0);
} */


/* .section {
  padding: 5rem 2rem;
  text-align: center;
  background-color: #ffffff;
}

.section:nth-child(even) {
  background-color: #4f4f4f;
}

.section h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #17252a;
}

.section p {
  font-size: 1.1rem;
  max-width: 700px;
  margin: 0 auto;
  color: #2c3e50;
} */
