body {
  margin: 0;
  padding-top: 60px;
  font-family: 'Poppins', sans-serif;
  background-color: #111;
  color: #fff;
}

html {
  scroll-behavior: smooth;
}


/* NAVBAR */
.navbar {
  position: fixed; /* Changed from absolute to fixed */
  top: 0;
  width: 100%;
  background: linear-gradient(to bottom, #1a1a1a, #000);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 30px;
  box-sizing: border-box;
  z-index: 1000; /* Increased to stay on top */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4), inset 0 -1px 0 rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0 0 12px 12px;
  backdrop-filter: blur(6px); /* Optional: adds a nice blur behind */
}

.nav-left .logo {
  color: white;
  font-weight: bold;
  font-size: 20px;
  text-decoration: none;
  text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.15);
}

.nav-right {
  list-style: none;
  display: flex;
  gap: 30px;
  margin: 0;
  padding: 0;
}

.nav-right li a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  font-size: 16px;
  padding: 6px 12px;
  border-radius: 6px;
  transition: background 0.2s ease, transform 0.2s ease;
}

.nav-right li a:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-1px);
}



/* BANNER GRADIENT ANIMATION */
@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Default fallback */
.banner {
  background: #111;
  padding: 120px 30px 80px;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Homepage gradient: Warm Orange → Purple */
body.home .banner {
  background: linear-gradient(to right, #f3904f, #3b4371, #f3904f);
  background-size: 300% 300%;
  animation: gradientShift 60s ease infinite;
}

body.projects .banner {
  background: linear-gradient(120deg, #0072ff, #00f2ff, #00d4ff, #0072ff);
  background-size: 300% 300%;
  animation: gradientShift 45s ease infinite;
}

body.contact .banner {
  background: linear-gradient(to right, #cc2b5e, #753a88, #cc2b5e);
  background-size: 300% 300%;
  animation: gradientShift 60s ease infinite;
}

.banner-content {
  display: flex;
  max-width: 1000px;
  width: 100%;
  gap: 40px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  min-height: 200px;
}

.profile-image-wrapper {
  flex: 1;
  display: flex;
  justify-content: center;
}

.profile-text-wrapper {
  flex: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: #fff;
  background-color: rgba(0, 0, 0, 0.7);
  padding: 10px 20px;
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
  height: 200px;
}

.profile-pic {
  width: 260px;
  height: 260px;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid white;
  box-shadow: 0 0 20px #000;
}

.name {
  font-size: 32px;
  font-weight: 700;
  margin: 0 0 10px;
  color: #fff;
}

.job-title {
  font-size: 18px;
  font-weight: 300;
  margin-bottom: 20px;
  color: #ccc;
}

/* SOCIAL ICONS */
.social-icons {
  margin-top: 10px;
}

.social-icons a {
  text-decoration: none;
}

.icon-img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  margin: 0 10px;
  vertical-align: middle;
  transition: transform 0.3s;
  filter: brightness(0) invert(1);
}

.linkedin-icon {
  width: 45.5px;
  height: 45.5px;
  position: relative;
  top: 0px;
}

.icon-img:hover {
  transform: scale(1.1);
}

/* ABOUT SECTION */
.about-section {
  background-color: #1a1a1a;
  padding: 60px 30px;
  text-align: left;
}

.about-container {
  max-width: 800px;
  margin: 0 auto;
}

.about-section h2 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 20px;
  color: #fff;
}

.about-section p {
  font-size: 16px;
  font-weight: 300;
  color: #ccc;
  line-height: 1.6;
}

/* FOOTER */
footer {
  background-color: #000;
  color: #aaa;
  text-align: center;
  padding: 20px 10px;
  font-size: 14px;
  margin-top: 60px;
  border-top: 1px solid #333;
}

footer a {
  color: #aaa;
  text-decoration: none;
  margin: 0 8px;
}

footer a:hover {
  text-decoration: underline;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .banner-content {
    flex-direction: column;
    text-align: center;
  }

  .profile-text-wrapper {
    text-align: center;
    height: auto;
  }

  .profile-image-wrapper {
    margin-bottom: 20px;
  }
}



/* PROJECTS SECTION */
.projects-section {
  background-color: #1a1a1a;
  padding: 60px 30px;
}

.projects-container {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.project-card {
  background-color: #222;
  padding: 20px 25px;
  border-radius: 10px;
  box-shadow: 0 0 10px #000;
}

.project-card h3 {
  font-size: 20px;
  margin-bottom: 10px;
  color: #fff;
}

.project-card p {
  font-size: 15px;
  color: #ccc;
  line-height: 1.5;
}

.projects-category {
  font-size: 24px;
  font-weight: 600;
  color: #fff;
  margin: 40px 0 15px;
  border-bottom: 2px solid #444;
  padding-bottom: 5px;
}

/* CONTACT PAGE */

.contact-section {
  background-color: #1a1a1a;
  padding: 60px 30px;
  display: flex;
  justify-content: center;
}

.contact-container {
  max-width: 800px;
  width: 100%;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-form input,
.contact-form textarea {
  background: #222;
  border: 1px solid #444;
  color: #fff;
  padding: 12px;
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  border-radius: 6px;
}

.contact-form label {
  font-weight: 500;
  color: #ccc;
}

.contact-form button {
  background: #3b4371;
  color: white;
  border: none;
  padding: 12px;
  font-size: 16px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s;
}

.contact-form button:hover {
  background: #2a2f59;
}

.contact-details {
  margin-top: 40px;
  font-size: 14px;
  color: #aaa;
}

.contact-details a {
  color: #ccc;
  text-decoration: none;
}

.contact-details a:hover {
  text-decoration: underline;
}

/* CV PAGE */
body.cv .banner {
background: linear-gradient(to right, #0fd9b5, #3df46a, #0fd9b5);
  background-size: 300% 300%;
  animation: gradientShift 60s ease infinite;
}


.cv-section {
  background-color: #1a1a1a;
  padding: 60px 30px;
}

.cv-container {
  max-width: 900px;
  margin: 0 auto;
}

.quote-section {
  background-color: #181818;
  padding: 60px 20px;
  text-align: center;
}

.quote-container blockquote {
  font-size: 22px;
  font-weight: 300;
  font-style: italic;
  color: #ccc;
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.6;
  border-left: 4px solid #3b4371;
  padding-left: 20px;
}

.featured-projects {
  background-color: #121212;
  padding: 60px 30px;
  text-align: center;
}

.projects-container {
  max-width: 1000px;
  margin: 0 auto;
}

.featured-projects h2 {
  font-size: 28px;
  margin-bottom: 40px;
  color: #fff;
}

.featured-grid {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
  justify-content: center;
}

.featured-card {
  background-color: #1f1f1f;
  padding: 20px 25px;
  border-radius: 10px;
  width: 300px;
  box-shadow: 0 0 10px rgba(0,0,0,0.3);
  transition: transform 0.3s;
  text-align: left;
}

.featured-card:hover {
  transform: translateY(-5px);
}

.featured-card h3 {
  color: #f3904f;
  font-size: 20px;
  margin-bottom: 10px;
}

.featured-card p {
  color: #ccc;
  font-size: 14px;
  margin-bottom: 15px;
  line-height: 1.5;
}

.featured-card a {
  color: #3b82f6;
  text-decoration: none;
  font-weight: 500;
}

.featured-card a:hover {
  text-decoration: underline;
}

.video-container {
  width: 100%;
  margin-top: 15px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 0 10px rgba(0,0,0,0.6);
}

.video-container video {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 12px;
}


.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.gif-container {
  width: 100%;
  margin-top: 15px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 0 10px rgba(0,0,0,0.6);
}

.responsive-gif {
  width: 100%;
  height: auto;
  display: block;
}

.featured-img {
  width: 100%;
  height: 180px;               /* Fixed height for uniformity */
  object-fit: cover;           /* Scales and crops to fit box */
  border-radius: 12px;
  box-shadow: 0 0 10px rgba(0,0,0,0.2);
  margin-bottom: 12px;
}

/* === ANIMATIONS === */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1.2s ease-out, transform 1.2s ease-out;
}

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

/* PURE FADE-IN ANIMATION */
.fade-in {
  opacity: 0;
  animation: fadeInOnly 2.5s ease forwards;
}

@keyframes fadeInOnly {
  to {
    opacity: 1;
  }
}

.project-link {
  display: inline-block;
  margin-top: 10px;
  font-weight: 500;
  font-size: 14px;
  color: #fff !important;        /* Ensures no browser default blue */
  background-color: #333;
  padding: 8px 14px;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.3s, transform 0.2s;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.project-link:hover {
  background-color: #444;
  transform: translateY(-2px);
}

.nav-toggle {
  display: none;
  font-size: 28px;
  color: white;
  cursor: pointer;
}

@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .nav-right {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 60px;
    right: 30px;
    background-color: #000;
    border: 1px solid #444;
    border-radius: 10px;
    padding: 10px 0;
    z-index: 1001;
    width: 160px;
  }

  .nav-right.show {
    display: flex;
  }

  .nav-right li {
    text-align: center;
    padding: 10px 0;
  }

  .nav-right li a {
    padding: 10px 20px;
  }
}
