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

body {
  font-family: "Segoe UI", sans-serif;
  background-color: #121212;
  color: #e0e0e0;
  line-height: 1.6;
  scroll-behavior: smooth;
}

header {
  padding: 1rem 2rem;
  background: #1f1f1f;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 1000;
}

nav {
  display: flex;
  justify-content: space-between;
}

nav .logo {
  font-weight: bold;
  color: #4ecca3;
  font-size: 1.5rem;
}

nav .logo a {
  text-decoration: none;
  color: inherit;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
}

@media screen and (max-width: 1200px) {
  nav{
    flex-direction: column;
    justify-content: space-evenly ;
  }
  
  nav .resume a {
    float: right;
    margin-top: -3rem;
  }
}

@media screen and (max-width: 700px) {
  nav ul {
    display: none;
  }  
}


nav a {
  text-decoration: none;
  color: #ccc;
  transition: color 0.3s;
}

nav a:hover {
  color: #4ecca3;
}

.resume a {
  color: #4ecca3;
  text-decoration: none;
  border: 1px solid #4ecca3;
  padding: 0.5rem 1rem;
  border-radius: 5px;
  transition: background 0.3s;
}

.hero {
  height: 90vh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.hero h1 {
  font-size: 3rem;
  color: #4ecca3;
}

.hero h2 {
  font-weight: 300;
  color: #aaa;
}

.socials {
  margin-top: 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
}

.socials a {
  color: #4ecca3;
  text-decoration: none;
  border: 1px solid #4ecca3;
  padding: 0.5rem 1rem;
  border-radius: 5px;
  transition: background 0.3s;
}

.socials a:hover, .resume a:hover {
  background: #4ecca3;
  color: #121212;
}

section {
  padding: 4rem 2rem;
}

h2 {
  color: #4ecca3;
  margin-bottom: 1rem;
}

.about-container {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  flex-wrap: wrap;
}

.profile-pic {
  width: 200px;
  height: 200px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid #4ecca3;
  box-shadow: 0 0 15px rgba(100, 255, 218, 0.2);
}

#about {
  padding: 4rem 0;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  color: #64ffda;
  margin-bottom: 2rem;
  letter-spacing: 2px;
}

.about-wrapper {
  display: flex;
  align-items: center;
  gap: 3rem;
  flex-wrap: wrap;
  justify-content: center;
}

.about-img-container {
  flex-shrink: 0;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 0 30px rgba(100, 255, 218, 0.3);
  animation: float 4s ease-in-out infinite;
}

@keyframes float {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
  100% {
    transform: translateY(0px);
  }
}

.about-img {
  width: 250px;
  height: 250px;
  object-fit: cover;
  border-radius: 20px;
  transition: transform 0.4s ease;
}

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

.about-content {
  max-width: 600px;
  font-size: 1.2rem;
  line-height: 1.8;
  color: #e0e0e0;
}

.about-content strong {
  color: #4ecca3;
  font-weight: bold;
}

.highlight {
  color: #64ffda;
  font-style: italic;
}

.skills-list {
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(100px, 1fr));
  gap: 0.5rem;
  list-style: none;
  padding: 0;
}

.skills-list li {
  background: rgba(100, 255, 218, 0.1);
  border: 1px solid #64ffda33;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  text-align: center;
  color: #64ffda;
  transition: all 0.3s ease;
}

.skills-list li:hover {
  transform: scale(1.05);
}

@media screen and (max-width: 768px) {
  .about-wrapper {
    flex-direction: column;
    text-align: center;
  }

  .about-img {
    width: 180px;
    height: 180px;
  }

  .skills-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

.projects-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  padding: 2rem 0;
}

.project-card {
  background-color: #1e1e1e;
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
}

.project-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.project-card h3 {
  font-size: 1.4rem;
  margin: 1rem 1rem 0.5rem;
  color: #64ffda;
}

.project-card p {
  font-size: 1rem;
  color: #b0b0b0;
  padding: 0 1rem 1rem;
  line-height: 1.6;
}

.project-card a {
  display: block;
  padding: 1rem;
  text-align: center;
  background-color: #4ecca3;
  color: #121212;
  text-decoration: none;
  border-radius: 0 0 16px 16px;
  transition: background-color 0.3s ease;
}

.project-card a:hover {
  background-color: #3bbf8d;
}

footer {
  background: #1f1f1f;
  padding: 2rem;
  text-align: center;
  color: #ccc;
}

footer p {
  margin: 0;
}

footer a {
  color: #4ecca3;
  text-decoration: none;
  transition: color 0.3s;
}

footer a:hover {
  color: #64ffda;
}

#contact {
  background-color: #1e1e1e;
  padding: 4rem 2rem;
  border-radius: 16px;
  max-width: 700px;
  margin: 0 auto 5rem;
  text-align: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

#contact h2 {
  font-size: 2rem;
  color: #64ffda;
  margin-bottom: 1rem;
}

#contact p {
  font-size: 1.1rem;
  color: #b0b0b0;
  line-height: 1.8;
  max-width: 600px;
  margin: 0 auto 2rem;
}

#contact button {
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  background-color: transparent;
  border: 2px solid #64ffda;
  color: #64ffda;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}

#contact button:hover {
  background-color: #64ffda;
  color: #121212;
  transform: scale(1.05);
  box-shadow: 0 4px 14px rgba(100, 255, 218, 0.3);
}

.cta-btn {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.75rem 1.5rem;
  background: transparent;
  border: 2px solid #4ecca3;
  color: #4ecca3;
  text-decoration: none;
  border-radius: 5px;
  transition: all 0.3s;
}

.cta-btn:hover {
  background: #4ecca3;
  color: #121212;
}

/* Fade-in animation */
.fade-section {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-section.visible {
  opacity: 1;
  transform: translateY(0);
}
