/* style.css */
#bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1; /* 🔁 keeps it behind all content */
  pointer-events: none; /* allows clicks to go through */
}

body {
  font-family: 'Segoe UI', sans-serif;
  margin: 0;
  padding: 0;
  background: linear-gradient(to bottom right, #0f0f0f, #1f1f1f);
  color: #e0e0e0;
  scroll-behavior: smooth;
}

.hero {
  background: linear-gradient(to right, #0d1b2a, #1b263b);
  color: #ffffff;
  padding: 4rem 2rem 2rem 2rem;
}

.hero-container {
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.hero-text {
  text-align: center;
  max-width: 600px;
}

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

.profile-fancy {
  width: 240px;
  height: 240px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #00e0ff;
  box-shadow: 0 0 25px rgba(0, 224, 255, 0.5);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.profile-fancy:hover {
  box-shadow: 0 0 40px rgba(0, 224, 255, 0.7);
}

nav {
  background: #111;
  display: flex;
  justify-content: center;
  gap: 2rem;
  padding: 0.8rem 1rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
  position: sticky;
  top: 0;
  z-index: 999;
}

nav a {
  text-decoration: none;
  color: #00bfff;
  font-weight: bold;
  transition: color 0.3s;
}

nav a:hover {
  color: #00ffff;
}

section {
  padding: 2.5rem 1rem 2rem 1rem;
  max-width: 1100px;
  margin: 0 auto;
}

.card, .project-card, .cert-card, .edu-card {
  background: #222;
  border-radius: 15px;
  padding: 1.2rem;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s, box-shadow 0.3s;
}

.project-card:hover,
.cert-card:hover,
.edu-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.6);
}

.project-grid, .cert-grid, .education-grid, .contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.project-card img, .cert-card img {
  width: 100%;
  border-radius: 10px;
  margin-bottom: 1rem;
}

.btn {
  display: inline-block;
  margin: 0.3rem 0.5rem 0 0;
  padding: 0.5rem 1rem;
  background: #00bfff;
  color: #000;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: background 0.3s;
}

.btn:hover {
  background: #00ffff;
}

footer {
  text-align: center;
  padding: 2rem 1rem 1rem 1rem;
  background: #111;
  color: #bbb;
  font-size: 0.95rem;
}

/* Animation classes */
.hidden {
  opacity: 0;
  transform: translateY(30px);
  pointer-events: none;
  transition: all 0.6s ease-out;
}

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

/* Tags section if still used */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.tags span {
  background-color: #333;
  padding: 0.4rem 0.8rem;
  border-radius: 15px;
  font-size: 0.9rem;
  color: #eee;
}

@media (min-width: 768px) {
  .hero-container {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }

  .hero-text {
    flex: 1;
  }

  .hero-image {
    flex: 0 0 auto;
  }
}

.contact-form {
  background-color: #1e1e2f;
  border-radius: 10px;
  padding: 2rem;
  box-shadow: 0 8px 20px rgba(0, 183, 255, 0.15);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 600px;
  margin: 2rem auto;
}

.contact-form input,
.contact-form textarea {
  padding: 1rem;
  background: #2a2a3d;
  border: 2px solid #00bfff;
  border-radius: 8px;
  font-size: 1rem;
  color: #fff;
  transition: border-color 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #00ffff;
}

.contact-form button {
  background: #00bfff;
  color: #000;
  border: none;
  padding: 0.8rem;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s;
}

.contact-form button:hover {
  background: #00ffff;
}

.about-container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

@media (min-width: 768px) {
  .about-container {
    flex-direction: row;
    align-items: flex-start;
  }

  .about-text {
    flex: 1;
    padding-right: 2rem;
  }

  .photo-gallery {
    flex: 1;
  }
}

.photo-gallery h3 {
  margin-bottom: 1rem;
  color: #00bfff;
  text-align: center;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 1rem;
}

.gallery-grid img {
  width: 100%;
  border-radius: 10px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 183, 255, 0.2);
}

.gallery-grid img:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(0, 255, 255, 0.3);
}

.skills-section {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

@media (min-width: 768px) {
  .skills-section {
    flex-direction: row;
    align-items: flex-start;
  }

  .skills-text {
    flex: 1;
    padding-right: 2rem;
  }

  .skills-list {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }
}

.skills-list .card {
  background: #222;
  padding: 1rem;
  border-radius: 10px;
  box-shadow: 0 6px 16px rgba(0, 183, 255, 0.1);
  transition: 0.3s ease;
}

.skills-list .card:hover {
  transform: scale(1.02);
  box-shadow: 0 12px 24px rgba(0, 183, 255, 0.2);
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1rem;
}

.social-icons a img {
  width: 40px;
  height: 40px;
  filter: brightness(1.2) drop-shadow(0 0 5px #00bfff);
  transition: transform 0.3s ease, filter 0.3s ease;
}

.social-icons a img:hover {
  transform: scale(1.2);
  filter: brightness(1.5) drop-shadow(0 0 8px #00ffff);
}
