/* ==== Google Font Import ==== */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;500;700&display=swap');

/* ==== General Reset and Setup ==== */
body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  color: #ffffff;
  background-color: #0d0d0d;
  scroll-behavior: smooth;
  background-image: url('assets/page-bg4.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-repeat: no-repeat;
}
body::before {
  content: "";
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.4);
  z-index: -1;
}

h1, h2, h3 {
  margin: 0 0 10px;
}

p {
  margin-bottom: 20px;
}

/* ==== Header and Navigation ==== */
header {
  background-color: rgba(0, 0, 0, 0.85);
  padding: 15px 30px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0, 255, 255, 0.1);
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.nav h1 {
  font-size: 24px;
  color: #00bfff;
}

nav a {
  margin-left: 20px;
  text-decoration: none;
  color: #ffffff;
  font-weight: 500;
  transition: all 0.3s ease;
}

nav a:hover {
  color: #00ffd1;
  text-shadow: 0 0 5px #00ffd1;
}

nav a.active {
  color: #00ffd1;
  border-bottom: 2px solid #00ffd1;
}

/* ==== Hero Section ==== */
#hero {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  text-align: center;
  background-image: url('assets/hero-bg.jpg');
  background-size: cover;
  background-position: center;
  animation: fadeIn 1.2s ease-in;
  z-index: 1;
  overflow: hidden;
}

#hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1;
}

.hero-overlay {
  position: relative;
  z-index: 2;
  padding: 30px;
  border-radius: 10px;
  max-width: 800px;
  backdrop-filter: blur(6px);
  background-color: rgba(0, 0, 0, 0.6);
}

.profile-img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  border: 2px solid #00bfff;
  margin-bottom: 20px;
}

/* ==== Main Content ==== */
.container {
  max-width: 1000px;
  margin: auto;
  padding: 40px 20px;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 10px;
  backdrop-filter: blur(6px);
  margin-top: 40px;
  animation: fadeIn 1s ease-in;
}

section {
  margin-bottom: 60px;
  animation: slideUp 1s ease-out;
}

.skills-list {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  padding: 0;
}

.skills-list li {
  margin: 10px;
  padding: 10px 15px;
  background-color: #1f1f1f;
  border: 1px solid #444;
  border-radius: 5px;
  transition: transform 0.3s, background-color 0.3s;
}

.skills-list li:hover {
  transform: scale(1.05);
  background-color: #00bfff;
  color: #000;
}

.project {
  margin-bottom: 30px;
  animation: fadeIn 1.2s ease-in;
}

.project-img {
  width: 100%;
  max-width: 600px;
  border-radius: 10px;
  margin-bottom: 15px;
  display: block;
  transition: transform 0.3s ease;
}

.project-img:hover {
  transform: scale(1.03);
  box-shadow: 0 0 12px rgba(0, 191, 255, 0.3);
}

ul li {
  margin-bottom: 10px;
}

/* ==== Footer ==== */
footer {
  text-align: center;
  padding: 20px;
  background-color: rgba(0, 0, 0, 0.75);
  border-top: 1px solid #444;
  margin-top: 60px;
  color: #bbb;
}

/* ==== Links ==== */
a {
  color: #00bfff;
  text-decoration: none;
  transition: color 0.3s;
}

a:hover {
  color: #00ffd1;
}

/* ==== Animations ==== */
@keyframes fadeIn {
  0% { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes slideUp {
  0% { opacity: 0; transform: translateY(40px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* ==== Icon Color Classes ==== */
.icon-blue { color: #00bfff; }
.icon-green { color: #00ff99; }
.icon-yellow { color: #ffcc00; }
.icon-purple { color: #cc99ff; }
.icon-pink { color: #ff66cc; }
.icon-gray { color: #aaaaaa; }

/* ==== Projects Grid Flex Layout ==== */
.projects-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: space-between;
}

.project {
  flex: 1 1 calc(50% - 30px);
  min-width: 280px;
  max-width: 48%;
  box-sizing: border-box;
}

/* ==== Responsive Layout for Smaller Screens ==== */
@media (max-width: 768px) {
  .nav {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-overlay {
    padding: 20px;
  }

  .profile-img {
    width: 90px;
    height: 90px;
  }

  #hero h2 {
    font-size: 20px;
  }

  #hero p {
    font-size: 14px;
  }

  .projects-grid {
    flex-direction: column;
  }

  .project {
    max-width: 100%;
  }

  .skills-list {
    justify-content: center;
  }

  nav a {
    margin: 10px 0;
  }
}
#contact-form {
  margin-top: 40px;
}

#contact-form form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

#contact-form input,
#contact-form textarea {
  padding: 10px;
  font-size: 16px;
  border-radius: 6px;
  border: none;
  background-color: #1f1f1f;
  color: #fff;
}

#contact-form input::placeholder,
#contact-form textarea::placeholder {
  color: #ccc;
}

#contact-form button[type="submit"] {
  background-color: #00bfff;
  color: #000;
  padding: 12px 16px;
  font-weight: bold;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

#contact-form button[type="submit"]:hover {
  background-color: #00ffd1;
}
.footer-links {
  margin-bottom: 10px;
}

.footer-links a {
  margin: 0 8px;
  font-weight: 500;
  color: #00bfff;
}

.footer-links a:hover {
  color: #00ffd1;
}

.social-icons {
  margin: 10px 0;
}

.social-icons a {
  margin: 0 10px;
  font-size: 20px;
}

.social-icons a:hover {
  color: #00ffd1;
}
html {
  scroll-behavior: smooth;
}
/* ==== Hover Image Effect ==== */
.hover-image-container {
  position: relative;
  width: 100%;
  max-width: 400px;
  overflow: hidden;
}

.hover-img {
  width: 100%;
  display: block;
  transition: opacity 0.4s ease-in-out;
  position: absolute;
  top: 0;
  left: 0;
}

.default-img {
  position: relative;
  z-index: 1;
}

.hover-img-active {
  opacity: 0;
  z-index: 2;
}

.hover-image-container:hover .hover-img-active {
  opacity: 1;
}

.hover-image-container:hover .default-img {
  opacity: 0;
}

/* ==== Ripple Effect ==== */
.ripple {
  position: absolute;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  transform: scale(0);
  animation: ripple-animation 0.6s linear;
  background: rgba(0, 255, 209, 0.4);
  pointer-events: none;
  z-index: 9999;
}


@keyframes ripple-animation {
  to {
    transform: scale(10);
    opacity: 0;
  }
}

/* ==== Loader ==== */
/* ==== Loader ==== */
#loader {
  position: fixed;
  width: 100%;
  height: 100%;
  background: #000;
  display: none; /* hide by default */
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.loader-text {
  font-size: 24px;
  font-weight: bold;
  color: #00ffd1;
  animation: pulse 1.2s infinite ease-in-out;
}
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.1); opacity: 0.6; }
}
/* === Section-Specific Hover Background === */
.hover-bg {
  position: relative;
  overflow: hidden;
}

.hover-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url('assets/about-hover1.jpg'); /* Your image path */
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 0.4s ease-in-out;
  z-index: 0;
  filter: brightness(1.2) contrast(1.1);/
}

.hover-bg:hover::before {
  opacity: 0.6; /* Darkness of background image */
}

/* Make text content above the background */
.hover-bg > * {
  position: relative;
  z-index: 1;
}
/* ==== Improved Image Hover Card ==== */
.hover-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 4px 15px rgba(0, 255, 209, 0.1);
  transition: box-shadow 0.3s ease;
}

.hover-card:hover {
  box-shadow: 0 4px 25px rgba(0, 255, 209, 0.3);
}

.hover-image-container {
  position: relative;
  width: 100%;
  max-width: 400px;
  height: auto;
  overflow: hidden;
  border-radius: 10px;
  margin-bottom: 15px;
}

.hover-img {
  width: 100%;
  height: auto;
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  transition: opacity 0.4s ease-in-out;
}

.default-img {
  position: relative;
  z-index: 1;
}

.hover-img-active {
  opacity: 0;
  z-index: 2;
}

.hover-image-container:hover .hover-img-active {
  opacity: 1;
}

.hover-image-container:hover .default-img {
  opacity: 0;
}
/* ==== Section Container Glow on Hover ==== */
.container {
  transition: box-shadow 0.4s ease;
  border: 1px solid rgba(0, 255, 255, 0.1); /* subtle border always */
}

.container:hover {
  box-shadow: 0 0 15px rgba(0, 255, 255, 0.3), 0 0 30px rgba(0, 255, 255, 0.15);
}

/* ==== Infinite Marquee (Image Scroll) ==== */
.marquee-wrapper {
  overflow: hidden;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.02);
  padding: 20px 0;
  border-radius: 10px;
  margin-top: 30px;
}

.marquee-images {
  display: flex;
  gap: 40px;
  animation: scroll 20s linear infinite;
}

.marquee-images:hover {
  animation-play-state: paused;
}

.marquee-images img {
  height: 60px;
  width: auto;
  transition: transform 0.3s ease;
}

.marquee-images img:hover {
  transform: scale(1.1);
}

@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

#scrollText {
  font-size: 28px; /* base font size */
  transition: font-size 5s ease-in-out;
  color: #00ffd1;
  font-weight: bold;
  text-align: center;
  margin-bottom: 20px;
}

#scroll-text-section {
  padding: 60px 20px;
  text-align: center;
}
.image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.image-grid img {
  width: 100%;
  border-radius: 10px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 255, 209, 0.1);
}

.image-grid img:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 20px rgba(0, 255, 209, 0.3);
}
/* ==== Hamburger Menu ==== */
/* ==== Hamburger Menu ==== */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  z-index: 1001;
}

.hamburger span {
  height: 3px;
  width: 25px;
  background: #00ffd1;
  margin: 4px 0;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.nav-menu {
  display: flex;
  flex-direction: row;
  gap: 20px;
}

@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav-menu {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 70px;
    left: 0;
    background-color: rgba(0, 0, 0, 0.9);
    width: 100%;
    padding: 20px;
    z-index: 1000;
  }

  .nav-menu.active {
    display: flex;
  }

  .nav-menu a {
    margin: 10px 0;
  }

  .nav {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Optional: Hamburger animation toggle */
.hamburger.toggle span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.toggle span:nth-child(2) {
  opacity: 0;
}
.hamburger.toggle span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}
body {
  overflow-x: hidden;
}
/* === AI Assistant Tooltip === */
#ai-assistant {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 9999;
  cursor: pointer;
}

#ai-icon {
  background: #00fff7;
  
  color: #000;
  font-size: 24px;
  padding: 12px 14px;
  border-radius: 50%;
  box-shadow: 0 0 12px rgba(0, 255, 209, 0.6);
  transition: transform 0.3s ease;
}

#ai-icon:hover {
  transform: scale(1.1);
}

#ai-tooltip {
  background: rgba(0, 0, 0, 0.85);
  color: #00ffd1;
  font-size: 14px;
  padding: 10px 14px;
  border-radius: 8px;
  position: absolute;
  bottom: 60px;
  right: 0;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(0, 255, 209, 0.3);
  transition: opacity 0.3s ease;
}

#ai-tooltip.hidden {
  opacity: 0;
  pointer-events: none;
}

#ai-tooltip.show {
  opacity: 1;
}
#ai-tooltip {
  position: fixed;
  bottom: 30px;
  right: 30px;
  font-size: 30px;
  cursor: pointer;
  z-index: 9999;
  animation: pulse 1.5s infinite ease-in-out;
  
}

#tooltip-bubble {
  position: fixed;
  bottom: 80px;
  right: 30px;
  background: rgba(0, 255, 209, 0.9);
  color: #000;
  padding: 12px 18px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: bold;
  z-index: 10000;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}
/* ==== Vertical Timeline Styling ==== */
.timeline {
  position: relative;
  margin: 40px 0;
  padding-left: 20px;
  border-left: 2px solid #00ffd1;
}

.timeline-item {
  margin-bottom: 30px;
  position: relative;
  padding-left: 20px;
}

.timeline-item::before {
  content: "";
  position: absolute;
  top: 5px;
  left: -10px;
  width: 15px;
  height: 15px;
  background-color: #00ffd1;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 0 8px rgba(0, 255, 209, 0.5);
}

.timeline-content h3 {
  margin: 0;
  font-size: 20px;
  color: #00bfff;
}

.timeline-content p {
  margin: 4px 0;
  color: #fff;
}

.timeline-date {
  font-size: 14px;
  color: #ccc;
}
/* ==== Minimal Team Section ==== */
.team-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
  margin-top: 20px;
}

.team-member {
  background: rgba(255, 255, 255, 0.03);
  padding: 20px;
  border-radius: 10px;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
  max-width: 250px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.team-member:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 20px rgba(0, 255, 209, 0.2);
}

.team-member h3 {
  margin-bottom: 10px;
  color: #00ffd1;
}

.team-member p {
  font-size: 14px;
  color: #ccc;
}

.team-socials a {
  margin: 0 8px;
  font-size: 18px;
  color: #00ffd1;
  transition: color 0.3s ease;
}

.team-socials a:hover {
  color: #00bfff;
}
