*{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

html{
  scroll-behavior: smooth;
}

body{
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(173, 216, 255, 0.35), transparent 30%),
    radial-gradient(circle at top right, rgba(120, 200, 255, 0.22), transparent 28%),
    linear-gradient(180deg, #dff3ff 0%, #bfe7ff 50%, #dff3ff 100%);
  color: #123;
  overflow-x: hidden;
  text-align: center;
}

.bg{
  position: fixed;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.28), transparent);
  z-index: -1;
  animation: bgMove 8s ease-in-out infinite alternate;
}

@keyframes bgMove{
  from{ transform: translate3d(0,0,0) scale(1); }
  to{ transform: translate3d(0,-12px,0) scale(1.02); }
}

.navbar{
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 16px 6%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(230, 246, 255, 0.82);
  border-bottom: 1px solid rgba(80,160,220,0.18);
  backdrop-filter: blur(16px);
  z-index: 1000;
}

.logo{
  font-size: 26px;
  font-weight: 800;
  letter-spacing: 1.5px;
  animation: pulseText 2.5s ease-in-out infinite;
  color: #0f2d4a;
}

@keyframes pulseText{
  0%, 100%{ transform: scale(1); text-shadow: 0 0 0 rgba(80,160,220,0); }
  50%{ transform: scale(1.03); text-shadow: 0 0 18px rgba(80,160,220,0.28); }
}

.logo span{
  color: #2f8fd8;
}

nav{
  display: flex;
  gap: 30px;
}

nav a{
  color: #17486f;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  position: relative;
  transition: 0.3s;
}

nav a::after{
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: #2f8fd8;
  transition: 0.3s;
}

nav a:hover{
  color: #0e2f4f;
}

nav a:hover::after{
  width: 100%;
}

.menu-toggle{
  display: none;
}

.menu-icon{
  display: none;
  cursor: pointer;
  font-size: 24px;
  color: #17486f;
}

.hero{
  min-height: 100vh;
  width: 100%;
  padding: 120px 6% 70px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 50px;
  text-align: left;
}

.hero-left{
  max-width: 680px;
  margin: 0 auto;
}

.hero-right{
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.profile-card{
  width: min(500px, 100%);
  padding: 18px;
  border-radius: 24px;
  background: rgba(255,255,255,0.55);
  border: 1px solid rgba(80,160,220,0.18);
  box-shadow: 0 24px 70px rgba(56, 126, 180, 0.18);
  backdrop-filter: blur(16px);
  transition: 0.3s ease;
  animation: floatCard 4s ease-in-out infinite;
}

@keyframes floatCard{
  0%, 100%{ transform: translateY(0); }
  50%{ transform: translateY(-8px); }
}

.profile-card:hover{
  transform: translateY(-4px) scale(1.01);
}

.img-box{
  width: 100%;
  aspect-ratio: 1 / 1.08;
  border-radius: 18px;
  overflow: hidden;
  background: rgba(255,255,255,0.5);
}

.img-box img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: 0.4s ease;
}

.profile-card:hover .img-box img{
  transform: scale(1.04);
}

.profile-links{
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.profile-links a{
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(47,143,216,0.12);
  color: #17486f;
  text-decoration: none;
  transition: 0.3s;
  border: 1px solid rgba(47,143,216,0.14);
}

.profile-links a:hover{
  background: #2f8fd8;
  color: #fff;
  transform: translateY(-2px) rotate(6deg);
  box-shadow: 0 0 18px rgba(47,143,216,0.28);
}

.profile-links a.email {
    background: #dbeafe;
    color: #e63f22;
}
.profile-links a.github {
    background: #f0f0f0;
    color: #333;
}
.profile-links a.linkedin {
    background: #0077b5;
    color: #fff;
}
.profile-links a.instagram {
    background: #e1306c;
    color: #fff;
}

.hero-badge{
  display: inline-block;
  padding: 10px 18px;
  border: 1px solid rgba(47,143,216,0.28);
  border-radius: 999px;
  background: rgba(47,143,216,0.10);
  margin-bottom: 18px;
  font-size: 14px;
  color: #17486f;
}

.hero h3{
  font-size: 22px;
  font-weight: 500;
  color: #2f678f;
}

.hero h1{
  font-size: clamp(44px, 6vw, 76px);
  line-height: 1.02;
  margin: 12px 0;
  letter-spacing: -1px;
  color: #0f2d4a;
}

.hero h2{
  font-size: clamp(22px, 3vw, 34px);
  font-weight: 600;
  color: #153a5c;
  margin-bottom: 18px;
}

#typing{
  color: #2f8fd8;
}

.hero p{
  max-width: 620px;
  color: #335d7f;
  line-height: 1.85;
  font-size: 16px;
}

.hero-buttons{
  display: flex;
  justify-content: flex-start;
  gap: 16px;
  margin: 30px 0;
  flex-wrap: wrap;
}

.btn{
  display: inline-block;
  padding: 14px 24px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  transition: 0.3s;
}

.btn.primary{
  background: linear-gradient(135deg, #5db8ff, #2f8fd8);
  color: #fff;
  box-shadow: 0 14px 30px rgba(47, 143, 216, 0.22);
}

.btn.secondary{
  border: 1px solid rgba(47,143,216,0.18);
  color: #17486f;
  background: rgba(255,255,255,0.55);
}

.btn:hover{
  transform: translateY(-2px);
  box-shadow: 0 0 18px rgba(47,143,216,0.18);
}

.hero-stats{
  display: flex;
  gap: 18px;
  margin-top: 34px;
  flex-wrap: wrap;
}

.stat{
  min-width: 140px;
  padding: 16px 18px;
  border-radius: 16px;
  background: rgba(255,255,255,0.55);
  border: 1px solid rgba(80,160,220,0.14);
  transition: 0.3s ease;
}

.stat:hover{
  transform: translateY(-4px);
  box-shadow: 0 0 18px rgba(47,143,216,0.14);
}

.stat h4{
  font-size: 24px;
  margin-bottom: 4px;
  color: #0f2d4a;
}

.stat p{
  font-size: 13px;
  color: #335d7f;
  line-height: 1.4;
}

section{
  padding: 90px 6%;
}

.section-title{
  font-size: 36px;
  margin-bottom: 30px;
  letter-spacing: -0.5px;
  color: #0f2d4a;
}

.about,
.skills,
.projects,
.experience,
.contact{
  width: 100%;
}

.about{
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 40px;
  align-items: center;
  text-align: left;
}

.about-content p{
  color: #335d7f;
  line-height: 1.8;
  margin-bottom: 14px;
}

.about-img img,
.project-card img{
  width: 100%;
  border-radius: 20px;
  transition: 0.4s ease;
}

.about-img img:hover,
.project-card img:hover{
  transform: scale(1.03);
  filter: brightness(1.05);
}

.skills-container,
.project-container,
.timeline{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 22px;
}

.skill-card,
.project-card,
.item{
  padding: 24px;
  border-radius: 20px;
  background: rgba(255,255,255,0.55);
  border: 1px solid rgba(80,160,220,0.14);
  box-shadow: 0 12px 30px rgba(56, 126, 180, 0.10);
  transition: 0.3s ease;
}

.skill-card:hover,
.project-card:hover,
.item:hover{
  transform: translateY(-4px);
  border-color: rgba(47, 143, 216, 0.25);
  box-shadow: 0 0 24px rgba(47,143,216,0.12);
}

.skill-card h3,
.project-card h3,
.item h3{
  margin-bottom: 10px;
  color: #0f2d4a;
}

.skill-card p,
.project-card p,
.item p{
  color: #335d7f;
  line-height: 1.6;
}

.bar{
  height: 10px;
  border-radius: 999px;
  background: rgba(47,143,216,0.12);
  overflow: hidden;
  margin-top: 14px;
}

.bar span{
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #5db8ff, #2f8fd8);
  border-radius: 999px;
  position: relative;
  overflow: hidden;
}

.bar span::after{
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.35), transparent);
  animation: shine 2s linear infinite;
}

@keyframes shine{
  from{ transform: translateX(-100%); }
  to{ transform: translateX(100%); }
}

form{
  display: grid;
  gap: 16px;
  max-width: 700px;
  margin: 0 auto;
}

input, textarea, button{
  width: 100%;
  border: none;
  outline: none;
  border-radius: 14px;
  padding: 14px 16px;
  font-size: 15px;
}

input, textarea{
  background: rgba(255,255,255,0.60);
  color: #0f2d4a;
  border: 1px solid rgba(80,160,220,0.14);
}

input::placeholder,
textarea::placeholder{
  color: #6283a0;
}

textarea{
  min-height: 160px;
  resize: vertical;
}

button{
  background: linear-gradient(135deg, #5db8ff, #2f8fd8);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 14px 30px rgba(47, 143, 216, 0.22);
  transition: 0.3s;
}

button:hover{
  transform: translateY(-2px);
  box-shadow: 0 0 18px rgba(47,143,216,0.22);
}

footer{
  text-align: center;
  padding: 24px 6% 40px;
  color: #335d7f;
}

@media (max-width: 900px){
  .navbar{
    padding: 14px 5%;
  }

  nav{
    display: none;
    position: absolute;
    top: 70px;
    right: 5%;
    flex-direction: column;
    gap: 0;
    width: 230px;
    padding: 12px;
    border-radius: 18px;
    background: rgba(230, 246, 255, 0.96);
    border: 1px solid rgba(80,160,220,0.14);
    box-shadow: 0 20px 40px rgba(56, 126, 180, 0.14);
  }

  .menu-toggle:checked ~ .nav-menu{
    display: flex;
  }

  .nav-menu a{
    padding: 12px 12px;
    border-radius: 10px;
    color: #17486f;
  }

  .nav-menu a:hover{
    background: rgba(47,143,216,0.08);
  }

  .menu-icon{
    display: block;
  }

  .hero,
  .about{
    grid-template-columns: 1fr;
  }

  .hero{
    text-align: center;
    padding-top: 110px;
  }

  .hero-left{
    order: 1;
    margin-top: 10px;
  }

  .hero-right{
    order: -1;
    margin-bottom: 16px;
  }

  .hero-buttons{
    justify-content: center;
  }

  .hero-stats{
    justify-content: center;
  }

  .about{
    text-align: center;
  }
}

@media (max-width: 600px){
  section{
    padding: 70px 5%;
  }

  .section-title{
    font-size: 28px;
  }

  .profile-card{
    width: 100%;
    max-width: 320px;
    padding: 12px;
  }

  .img-box{
    aspect-ratio: 1 / 1;
  }

  .profile-links{
    gap: 8px;
  }

  .profile-links a{
    width: 38px;
    height: 38px;
  }

  .stat{
    min-width: 120px;
  }
}
