/* General Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
  scroll-behavior: smooth;
}

body {
  background-color: #0f0f0f;
  color: #f0f0f0;
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
}

section {
  padding: 4rem 10%;
  text-align: center;
  max-width: 1200px;
  margin: 0 auto;
}

/* .section-title {
  font-size: 2.5rem;
  color: #ff0055;
  margin-bottom: 2rem;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: "";
  position: absolute;
  width: 50%;
  height: 4px;
  background-color: #ff0055;
  left: 25%;
  bottom: -10px;
  border-radius: 5px;
} */

.section-title {
  font-size: 2.5rem;
  color: #ff0055;
  margin: 0 auto 2rem;
  position: relative;
  display: inline-block;
}
.section-title::after {
  content: "";
  position: absolute;
  width: 50%;
  height: 4px;
  background-color: #ff0055;
  left: 25%;
  bottom: -10px;
  border-radius: 5px;
}

/* Navbar */
.navbar {
  position: fixed;
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 10%;
  background-color: rgba(15, 15, 15, 0.95);
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.logo {
  font-size: 1.8rem;
  font-weight: bold;
  color: #ff0055;
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 18px;
  height: 14px;
  cursor: pointer;
  position: absolute;
  right: 10%;
  top: 50%;
  transform: translateY(-50%);
}

.hamburger span {
  display: block;
  height: 2px;
  background-color: #fff;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

.nav-links a {
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: #ff0055;
}

/* Hero Section */
.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  min-height: 100vh;
  padding-top: 7rem;
  gap: 2rem;
}

.hero-content {
  flex: 1 1 300px;
}

.hero-content h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.hero-content .highlight {
  color: #ff0055;
}

.typewriter {
  font-size: 1.8rem;
  color: #ccc;
  margin-bottom: 2rem;
}

.typed-cursor {
  font-size: 1.8rem;
  line-height: 1;
  color: #ccc;
}

.btn {
  display: inline-block;
  padding: 0.75rem 2rem;
  border-radius: 30px;
  margin-top: 1.5rem;
  margin-right: 1rem;
  font-weight: 600;
  transition: all 0.3s ease;
  text-transform: uppercase;
}

.btn.primary {
  background: #ff0055;
  color: white;
}

.btn.primary:hover {
  background: transparent;
  border: 2px solid #ff0055;
  color: #ff0055;
}

.btn.secondary {
  border: 2px solid #ff0055;
  color: #ff0055;
}

.btn.secondary:hover {
  background: #ff0055;
  color: white;
}

.hero-image {
  flex: 1 1 300px;
  display: flex;
  justify-content: center;
}

.hero-image img {
  width: 100%;
  max-width: 300px;
  height: auto;
  border-radius: 50%;
  border: 6px solid #4d4d4d;
  object-fit: cover;
  animation: breathing-glow 3s linear infinite; /* Always apply the breathing animation */
}

/* Keyframes for the breathing glow effect */
@keyframes breathing-glow {
  0% {
    box-shadow: 0 0 0px #ff0055;
    border-color: #ff0055;
  }
  50% {
    box-shadow: 0 0 40px #ff0055;
    border-color: #ff3366;
  }
  100% {
    box-shadow: 0 0 0px #ff0055;
    border-color: #ff0055;
  }
}

/* Skills */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.skill-card {
  background-color: #1a1a1a;
  padding: 1rem;
  border-radius: 10px;
  border: 1px solid #333;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.skill-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 20px #ff0055;
  border-color: #ff0055;
}

/* Projects */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.project-card {
  background-color: #1a1a1a;
  padding: 1.5rem;
  border-radius: 10px;
  border: 1px solid #333;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 300px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-align: left;
  position: relative;
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 0 25px #ff0055;
  border-color: #ff0055;
}

.project-card h3 {
  color: #ff0055;
  font-size: 1.5rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.project-card p {
  color: #ccc;
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 1rem;
  flex-grow: 1;
}

.project-links a {
  display: inline-block;
  font-weight: 600;
  color: #ff0055;
  border: 2px solid #ff0055;
  padding: 0.4rem 1rem;
  border-radius: 8px;
  transition: all 0.3s ease;
  font-size: 0.95rem;
}

.project-links a:hover {
  background-color: #ff0055;
  color: white;
  text-decoration: none;
}

.project-links i {
  margin-left: 0.5rem;
  font-size: 0.9rem;
}

/* Contact */
.contact-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  margin-top: 2rem;
}

.contact-socials a {
  font-size: 1.8rem;
  color: #fff;
  margin: 0 1rem;
  transition: color 0.3s ease;
}

.contact-socials a:hover {
  color: #ff0055;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
  max-width: 400px;
}

.contact-form input,
.contact-form textarea {
  padding: 0.75rem 1rem;
  background-color: #1a1a1a;
  border: 1px solid #333;
  color: white;
  border-radius: 5px;
  resize: none;
}

.contact-form button {
  background-color: #ff0055;
  color: white;
  border: 2px solid #ff0055;
  padding: 0.75rem;
  border-radius: 30px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease;
}

.contact-form button:hover {
  background-color: transparent;
  border: 2px solid #ff0055;
  color: #ff0055;
}

/* Footer */
footer {
  text-align: center;
  padding: 2rem;
  border-top: 1px solid #2e2e2e;
  font-size: 0.9rem;
  color: #999;
}

/* Responsive Queries */
@media (max-width: 768px) {
  .hero {
    flex-direction: column;
    text-align: center;
  }

  .hero-content,
  .hero-image {
    max-width: 100%;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    background-color: rgba(15, 15, 15, 0.95);
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    padding: 1.7rem 10%;
  }

  .nav-links.active {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: #1a1a1a;
    gap: 1.7rem;
  }

  .hamburger {
    display: flex;
  }

  .navbar {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 2.2rem;
  }

  .typewriter {
    font-size: 1.4rem;
  }

  .btn {
    padding: 0.6rem 1.5rem;
    font-size: 0.85rem;
  }

  .project-card h3 {
    font-size: 1.2rem;
  }

  .project-card p,
  .skill-card {
    font-size: 0.95rem;
  }

  .section-title {
    font-size: 2rem;
  }
}

.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background-color: #333;
  color: #fff;
  padding: 1rem 1.5rem;
  border-radius: 5px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.4s ease;
  transform: translateY(20px);
  z-index: 2000;
}

.toast.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
