/* ===== Global Styles ===== */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&display=swap');

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

body {
  font-family: 'Poppins', sans-serif;
  color: #fff;
  background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
  overflow-x: hidden;
}

/* ===== Modern Animated Navbar ===== */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.2rem 5%;
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(12px);
  background: linear-gradient(90deg, rgba(0, 212, 255, 0.12), rgba(123, 47, 247, 0.12));
  background-size: 300% 300%;
  animation: moveGradient 12s ease infinite, fadeSlideDown 1s ease forwards;
  transition: all 0.5s ease;
  box-shadow: 0 5px 15px rgba(0, 212, 255, 0.1);
}

/* Smooth gradient animation */
@keyframes moveGradient {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Slide in from top animation */
@keyframes fadeSlideDown {
  0% { opacity: 0; transform: translateY(-100%); }
  100% { opacity: 1; transform: translateY(0); }
}

/* Logo Area */
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.6rem;
  font-weight: 600;
  color: #00d4ff;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.4s ease;
}

.logo img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  animation: floatLogo 3s ease-in-out infinite;
  box-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
  border: 2px solid rgba(255, 255, 255, 0.2);
}

@keyframes floatLogo {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.logo:hover {
  transform: scale(1.08) rotate(-3deg);
  text-shadow: 0 0 10px #00d4ff, 0 0 25px #7b2ff7;
}

/* Navbar Links */
.nav-links {
  list-style: none;
  display: flex;
  gap: 2.5rem;
}

.nav-links a {
  position: relative;
  color: #fff;
  text-decoration: none;
  font-weight: 400;
  font-size: 1.05rem;
  transition: all 0.4s ease;
}

/* Glowing underline effect */
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0%;
  height: 2px;
  background: linear-gradient(90deg, #00d4ff, #7b2ff7);
  border-radius: 2px;
  transition: width 0.4s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-links a:hover {
  color: #00d4ff;
  text-shadow: 0 0 10px #00d4ff, 0 0 20px #7b2ff7;
  transform: translateY(-3px);
}

/* Scroll Effect (Navbar Shrinks and Darkens) */
.scrolled {
  background: rgba(5, 10, 15, 0.95);
  border-bottom: 1px solid rgba(0, 212, 255, 0.3);
  box-shadow: 0 5px 25px rgba(0, 212, 255, 0.2);
  padding: 0.9rem 5%;
  transition: all 0.4s ease;
}
/* ===== Hero Section ===== */
.hero-section {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  padding: 2rem;
  position: relative;
  overflow: hidden;
}

.circle-image {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  overflow: hidden;
  border: 5px solid transparent;
  background: linear-gradient(45deg, #00d4ff, #7b2ff7);
  background-clip: padding-box;
  box-shadow: 0 0 25px rgba(0, 212, 255, 0.5);
  margin-bottom: 1.5rem;
  animation: float 4s ease-in-out infinite;
  align-items: center;
  justify-content: center;
  margin-left: 130px;
}

.circle-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  align-items: center;
}

/* Floating animation */
@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-15px);
  }
}

.hero-section h1 {
  font-size: 2.5rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.hero-section h1 span {
  background: linear-gradient(90deg, #00d4ff, #7b2ff7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.tagline {
  font-size: 1.2rem;
  color: #ccc;
  margin-bottom: 1.5rem;
}

.btn {
  padding: 0.75rem 1.5rem;
  background: linear-gradient(90deg, #00d4ff, #7b2ff7);
  border: none;
  border-radius: 30px;
  color: #fff;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.4s ease;
}

.btn:hover {
  box-shadow: 0 0 20px #00d4ff;
  transform: scale(1.05);
}

/* ===== About Section ===== */
.about-section {
  padding: 5rem 10%;
  text-align: center;
}

.about-section h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  position: relative;
}

.about-section h2::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background: #00d4ff;
  margin: 0.5rem auto;
}

/* ===== Projects Section (Upgraded) ===== */
.projects-section {
  padding: 6rem 10%;
  text-align: center;
  position: relative;
  z-index: 1;
}

.projects-section h2 {
  font-size: 2.2rem;
  background: linear-gradient(90deg, #00d4ff, #7b2ff7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  position: relative;
  display: inline-block;
  margin-bottom: 2rem;
}

.projects-section h2::after {
  content: "";
  display: block;
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, #00d4ff, #7b2ff7);
  margin: 0.5rem auto;
  border-radius: 5px;
}

.project-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2.5rem;
}

.project-card {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  padding: 2.5rem;
  width: 290px;
  text-align: left;
  transition: all 0.5s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 15px rgba(0, 212, 255, 0.1);
}

/* Glowing border animation */
.project-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 20px;
  padding: 2px;
  background: linear-gradient(135deg, #00d4ff, #7b2ff7, #00d4ff);
  background-size: 300% 300%;
  z-index: 0;
  animation: borderGlow 6s ease infinite;
  opacity: 0.6;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

@keyframes borderGlow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.project-card h3 {
  color: #00d4ff;
  font-size: 1.4rem;
  margin-bottom: 0.8rem;
  z-index: 1;
  position: relative;
}

.project-card p {
  color: #ddd;
  font-size: 1rem;
  margin-bottom: 1rem;
  z-index: 1;
  position: relative;
}

.project-card a {
  color: #fff;
  text-decoration: none;
  background: linear-gradient(90deg, #00d4ff, #7b2ff7);
  padding: 0.6rem 1.2rem;
  border-radius: 25px;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  position: relative;
  z-index: 1;
}

.project-card:hover {
  transform: translateY(-12px) scale(1.03);
  box-shadow: 0 15px 30px rgba(0, 212, 255, 0.2);
}

.project-card a:hover {
  box-shadow: 0 0 15px #00d4ff;
  transform: scale(1.05);
}
.project-card:hover {
  transform: perspective(600px) rotateY(5deg) translateY(-10px);
}

/* ===== Contact Section ===== */
.contact-section {
  padding: 5rem 10%;
  text-align: center;
}

.contact-section a {
  color: #00d4ff;
  text-decoration: none;
}

/* ===== Footer ===== */
footer {
  text-align: center;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.05);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}