/* ===== BASE STYLES ===== */
:root {
  --primary: #6c63ff;
  --primary-light: #8a84ff;
  --dark: #1e1e1e;
  --dark-light: #2d2d2d;
  --light: #f9f9f9;
  --gray: #ddd;
  --success: #4caf50;
  --info: #2196f3;
  --warning: #ff9800;
  --danger: #f44336;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  background: var(--light);
  color: var(--dark);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.2;
}

/* ===== NAVIGATION ===== */
.top-nav {
  background: rgba(20, 20, 30, 0.98);
  backdrop-filter: blur(12px);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 3rem;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.logo {
  font-size: 1.8rem;
  font-weight: 700;
  background: linear-gradient(90deg, #27ecef, #142ca9);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-decoration: none;
  transition: all 1s ease-in-out;
  
}

.logo:hover {
  transform: scale(1.2);
  text-shadow: 0px 5px 25px rgb(13, 92, 227);
  transform: rotate(360deg);
  
}

.nav-links {
  display: flex;
  gap: 0.5rem;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.5rem;
  color: white;
  text-decoration: none;
  border-radius: 50px;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-link i {
  font-size: 1.1rem;
  transition: transform 0.5s;
}

.nav-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, rgba(0, 200, 255, 01), rgba(60, 0, 255, 1));
  border-radius: 50px;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.6s cubic-bezier(0.65, 0, 0.35, 1);
  z-index: -1;
}

.nav-link:hover::before {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-link:hover i {
  transform: rotate(360deg) scale(1.5);
}

.auth-buttons {
  display: flex;
  gap: 1rem;
}

.btn-auth {
  padding: 0.8rem 1.8rem;
  border-radius: 50px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: all 0.2s ease-in-out;
  position: relative;
  overflow: hidden;
  border: none;
  z-index: 1;
  cursor: pointer;
  box-shadow: 5px 5px 25px rgb(255, 255, 255);
}

#signInBtn {
  background: linear-gradient(45deg, #00e5ff, #003cff);
  color: white;
}

#signUpBtn {
  background: linear-gradient(45deg, #ff00f7, #ff0066);
  color: white;
}

.btn-auth::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, rgba(255,255,255,0.3), rgba(255,255,255,0.1));
  transform: translateX(-100%);
  transition: transform 0.6s cubic-bezier(0.65, 0, 0.35, 1);
  z-index: -1;
}

.btn-auth:hover {
  transform: scale(1.2);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2), 0 0 20px rgb(0, 255, 17);
}

.btn-auth:hover::before {
  transform: translateX(0);
}

/* ===== MOBILE MENU ===== */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 2rem;
  height: 2rem;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1002;
}

.menu-line {
  width: 100%;
  height: 2px;
  background: white;
  border-radius: 2px;
  transition: all 0.3s ease;
  transform-origin: center;
}

.menu-toggle.active .menu-line:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.menu-toggle.active .menu-line:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active .menu-line:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ===== MAIN CONTENT ===== */
main {
  margin-top: 100px;
  
  
}

.section {
  min-height: 100vh;
  padding: 4rem 0;
  position: relative;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
  font-size: 2.5rem;
  position: relative;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  border-radius: 10px;
}

.section-title.animate {
  opacity: 1;
  transform: translateY(30);
}

/* ===== HERO SECTION ===== */
#home {
  display: flex;
  justify-content: center;
  align-items: center;
  background: linear-gradient(135deg, #a1d9ff 0%, #3c76ff 100%);
}

.hero {
  max-width: 800px;
  width: 100%;
  padding: 2rem;
  text-align: center;
}

.hero-title {
  font-size: 3rem;
  margin: 0%;
  background: linear-gradient(90deg, #2c3e50, #6c63ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: linear-gradient(90deg, #2c3e50, #6c63ff);
}

.hero-title span {
  font-weight: 800;
}

.hero-subtitle {
  font-size: 1.5rem;
  color: #ffffff;
  margin-bottom: 3rem;
}

.profile-card {
  margin-top: 3rem;
}

.profile-image-container {
  position: relative;
  width: 300px;
  height: 300px;
  margin: 0 auto 2rem;
  transition: all 1s ease-in-out;
}

.profile-image {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid white;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 1);
  position: relative;
  z-index: 5;
  animation: float 6s ease-in-out infinite;
}
.profile-image-container:hover{
  transform: scale(1.1);
}
.profile-glow {
  position: absolute;
  top: -10px;
  left: -10px;
  right: -10px;
  bottom: -10px;
  background: linear-gradient(45deg, #0004ff, #00f7ff);
  border-radius: 50%;
  z-index: 1;
  filter: blur(25px);
  opacity: 1;
  animation: glowPulse 4s ease-in-out infinite;
}

@keyframes float {
  0% { transform: translateY(0px); }
  35% { transform: translateY(-50px); }
  65% { transform: translateY(35px); }
  100% { transform: translateY(0px); }
}

@keyframes glowPulse {
  0% { opacity: 0.4; }
  50% { opacity: 1; }
  100% { opacity: 0.4; }
}

.contact-info {
  background:  linear-gradient(45deg, #73ffc5, #467bff);
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 1);
  max-width: 400px;
  margin: 0 auto;
  transition: all 1s ease-in-out;
  animation: contact-info 4s ease-in-out infinite;
}
.contact-info:hover{
  transform: scale(1.2);
  box-shadow: 0 10px 30px rgb(255, 0, 221);
}

.contact-info-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1rem 0;
  color: #0d00c0;
}

.contact-info-item i {
  color: var(--primary);
  font-size: 2rem;
  width: 20px;
  text-align: center;
}
@keyframes contact-info {
  0% { transform: translateY(0px); }
  50% { transform: translateY(60px); }
  100% { transform: translateY(0px); } 
}








/* ===== ABOUT SECTION ===== */
#about{
  /* display: flex; */
  justify-content: center;
  align-items: center;
  background: linear-gradient(135deg, #a1d9ff 0%, #3c76ff 100%);
}
.about-content {
  display: flex;
  gap: 3rem;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;


}

.about-text {
  flex: 1;
}

.about-image {
  flex: 1;
  text-align: center;
}

.about-profile-img {
  width: 300px;
  border-radius: 15px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
  transform: perspective(1000px) rotateY(0deg);
  transition: transform 0.6s ease, box-shadow 0.6s ease;
  animation:  imganm 6s ease-in-out infinite;
}

.about-profile-img:hover {
transform: translateY(-15px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

@keyframes imganm {
  0%{transform: translateX(0px)}
  40%{transform: translateX(30px);}
  80%{transform: translateX(-30px);}
  100%{transform: translateX(0px);}
  
}

.info div {
  margin: 1.5rem 0;
  font-size: 1.1rem;
  font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
}

.info span {
  font-weight: 600;
  color: #0004ff;
}

/* ===== SKILLS SECTION ===== */
#skills{
  /* display: flex; */
  justify-content: center;
  align-items: center;
  background: linear-gradient(135deg, #a1d9ff 0%, #3c76ff 100%);
}

.skills-container {
  max-width: 800px;
  margin: 0 auto;
}

.skill {
  margin: 2.5rem 0;
  opacity: 0;
  transform: translateX(-50px);
  transition: all 0.6s ease;
}

.skill.animate {
  opacity: 1;
  transform: translateX(0);
}

.skill h3 {
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}

.skill-bar {
  height: 12px;
  background: var(--gray);
  border-radius: 6px;
  margin-top: 0.5rem;
  overflow: hidden;
  position: relative;
}

.skill-bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
  border-radius: 6px;
  position: relative;
  animation: fillBars 2s ease-in-out forwards;
}

.skill-bar span::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, 
    rgb(250, 134, 234), 
    rgb(47, 243, 54));
  animation: shine 3s infinite;
}

.skill-percent {
  position: absolute;
  right: 0;
  top: -25px;
  font-size: 0.9rem;
  color: #0004ff;
  font-weight: 600;
}

@keyframes fillBars {
  from { width: 0; }
  to { width: 100%; }
}

@keyframes shine {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* ===== EXPERIENCE SECTION ===== */
#experience{
  justify-content: center;
  align-items: center;
  background: linear-gradient(135deg, #a1d9ff 0%, #3c76ff 100%);
}

.timeline {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  padding: 2rem 0;
}

.timeline::before {
  content: '';
  position: absolute;
  width: 4px;
  background: linear-gradient(to bottom, var(--primary), var(--primary-light));
  left: 50%;
  top: 0;
  bottom: 0;
  transform: translateX(-50%);
}

.timeline-item {
  padding: 1.5rem;
  width: 50%;
  position: relative;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
  animation: floatexp 6s ease-in-out infinite;
}
@keyframes floatexp {
  0% { transform: translateY(0px); }
  35% { transform: translateY(-30px); }
  65% { transform: translateY(50px); }
  100% { transform: translateY(0px); }
}

.timeline-item.animate {
  opacity: 1;
  transform: translateY(0);
}

.timeline-item:nth-child(odd) {
  margin-right: auto;
  text-align: right;
  padding-right: 3rem;
}

.timeline-item:nth-child(even) {
  margin-left: auto;
  padding-left: 3rem;
}

.timeline-card {
  background: linear-gradient(45deg, #73ffc5, #467bff);
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  position: relative;
  transition: all 0.4s ease;
}

.timeline-card:hover {
  transform: translateY(-15px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
}

.timeline-date {
  color: var(--primary);
  font-weight: 600;
  margin: 0.5rem 0;
}

.timeline-badge {
  position: absolute;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: linear-gradient(45deg, var(--primary), var(--primary-light));
  top: 2rem;
}

.timeline-item:nth-child(odd) .timeline-badge {
  right: -10px;
}

.timeline-item:nth-child(even) .timeline-badge {
  left: -10px;
}

/* ===== BLOG SECTION ===== */
#blog{ 
  justify-content: center;
  align-items: center;
  background: linear-gradient(135deg, #a1d9ff 0%, #3c76ff 100%);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.blog-card {
  perspective: 1000px;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.blog-card.animate {
  opacity: 1;
  transform: translateY(0);
}

.blog-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  background:linear-gradient(45deg, #73ffc5, #467bff);
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: transform 0.6s;
  transform-style: preserve-3d;
  animation: floatblog 6s ease-in-out infinite;
}
@keyframes floatblog {
  0% { transform: translateY(0px); }
  35% { transform: translateY(-5px); }
  65% { transform: translateY(80px); }
  100% { transform: translateY(0px); }
}

.blog-card:hover .blog-card-inner {
  transform: rotateY(10deg) scale(1.1) translateY(-15px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
}

.blog-card h3 {
  margin-bottom: 1rem;
  color: #0004ff;
}

.blog-card p {
  margin-bottom: 1.5rem;
  color: #111;
}

.blog-link {
  color: #003cff;
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.3s;
}

.blog-link i {
  transition: transform 0.3s;
}

.blog-link:hover {
  color: var(--primary-light);
}

.blog-link:hover i {
  transform: translateX(5px);
}

/* ===== CONTACT SECTION ===== */
#contact{
  justify-content: center;
  align-items: center;
  background: linear-gradient(135deg, #a1d9ff 0%, #3c76ff 100%);
}
.contact-container {
  display: flex;
  gap: 1rem;
  max-width: 1000px;
  margin: 0 auto;
}

.contact-form {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.form-group {
  position: relative;
  opacity: 0.0;
  transform: translateY(20px);
  transition: all 0.6s ease-in-out;
}

.form-group.animate {
  opacity: 1;
  transform: translateY(5px);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1rem;
  border: 1px solid rgb(0, 255, 89);
  border-radius: 5px;
  font-family: 'Poppins', sans-serif;
  background: transparent;
  z-index: 2;
  position: relative;
}

.form-group textarea {
  min-height: 150px;
  resize: vertical;
}

.form-group label {
  position: absolute;
  top: 1rem;
  left: 1rem;
  color: #555;
  transition: all 0.5s ease-in-out;
  z-index: 1;
}

.form-group input:focus + label,
.form-group input:valid + label,
.form-group textarea:focus + label,
.form-group textarea:valid + label {
  top: -10px;
  left: 10px;
  font-size: 0.8rem;
  background: rgb(0, 251, 255);
  padding: 0 5px;
  color: #29292a;
  z-index: 3;
}

.submit-btn {
  padding: 1rem;
  background: linear-gradient(45deg, rgb(0, 145, 255), rgb(40, 248, 210) );
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.4s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  overflow: hidden;
  position: relative;
}

.submit-btn i {
  transition: all 0.4s;
}

.submit-btn:hover {
  transform: translateY(-10px) scale(1.05);
  box-shadow: 0 10px 20px rgba(34, 34, 35, 0.8);
}

.submit-btn:hover i {
  transform: translateX(5px);
}

.map-container {
  flex: 1;
  height: 400px;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

#map {
  height: 100%;
  width: 100%;
  background: #eeeeee00;
}

/* ===== FOOTER ===== */
footer {
  background: var(--dark);
  color: white;
  text-align: center;
  padding: 3rem 0;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
}

.social-links {
  margin: 2rem 0;
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  color: rgb(4, 255, 84);
  font-size: 1.5rem;
  transition: all 0.4s ease-in-out;
}

.social-link:hover {
  background: #ff00f7;
  transform: translateY(-5px) scale(1.1);
  box-shadow: 0 10px 20px rgb(29, 255, 225);
}

.copyright {
  margin-top: 1rem;
  opacity: 0.8;
  font-size: 0.9rem;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
  .nav-links {
    gap: 0.3rem;
  }
  
  .nav-link {
    padding: 0.8rem 1.2rem;
    font-size: 0.9rem;
  }
  
  .btn-auth {
    padding: 0.7rem 1.5rem;
    font-size: 0.8rem;
  }

  .about-content {
    flex-direction: column;
    gap: 2rem;
  }

  .about-image {
    order: -1;
  }

  .contact-container {
    flex-direction: column;
  }

  .map-container {
    height: 300px;
  }
}

@media (max-width: 768px) {
  .top-nav {
    padding: 1rem 2rem;
  }
  
  .menu-toggle {
    display: flex;
  }
  
  .nav-links, .auth-buttons {
    position: fixed;
    top: 80px;
    right: -100%;
    width: 80%;
    max-width: 300px;
    background: rgba(20, 20, 30, 0.98);
    backdrop-filter: blur(12px);
    border-radius: 15px 0 0 15px;
    box-shadow: -5px 5px 30px rgba(0, 0, 0, 0.3);
    padding: 2rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
    height: calc(100vh - 80px);
    overflow-y: auto;
    transition: right 0.6s cubic-bezier(0.23, 1, 0.32, 1);
  }
  
  .nav-links.active, .auth-buttons.active {
    right: 0;
  }
  
  .auth-buttons {
    top: auto;
    bottom: 20px;
    flex-direction: row;
    justify-content: center;
    width: 80%;
    max-width: 300px;
    background: transparent;
    box-shadow: none;
    padding: 1rem;
  }
  
  .nav-link {
    width: 100%;
    padding: 1rem;
    border-radius: 10px;
    transform: translateX(30px);
    opacity: 0;
  }
  
  .nav-links.active .nav-link {
    animation: fadeInSlide 0.6s cubic-bezier(0.23, 1, 0.32, 1) forwards;
  }
  
  .nav-links.active .nav-link:nth-child(1) { animation-delay: 0.1s; }
  .nav-links.active .nav-link:nth-child(2) { animation-delay: 0.2s; }
  .nav-links.active .nav-link:nth-child(3) { animation-delay: 0.3s; }
  .nav-links.active .nav-link:nth-child(4) { animation-delay: 0.4s; }
  .nav-links.active .nav-link:nth-child(5) { animation-delay: 0.5s; }
  .nav-links.active .nav-link:nth-child(6) { animation-delay: 0.6s; }
  
  @keyframes fadeInSlide {
    from { 
      transform: translateX(30px);
      opacity: 0;
    }
    to { 
      transform: translateX(0);
      opacity: 1;
    }
  }

  .hero-title {
    font-size: 2.2rem;
  }
  
  .hero-subtitle {
    font-size: 1.2rem;
  }
  
  .profile-image-container {
    width: 140px;
    height: 140px;
  }
  
  .contact-info {
    font-size: 1rem;
  }

  .timeline::before {
    left: 20px;
  }

  .timeline-item {
    width: 100%;
    padding-left: 50px;
    padding-right: 0;
    text-align: left;
  }

  .timeline-item:nth-child(odd) {
    text-align: left;
    padding-right: 0;
  }

  .timeline-badge {
    left: 10px !important;
    right: auto !important;
  }
}

@media (max-width: 480px) {
  .top-nav {
    padding: 1rem;
  }
  
  .logo {
    font-size: 1.5rem;
  }
  
  .btn-auth {
    padding: 0.6rem 1.2rem;
    font-size: 0.7rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .about-profile-img {
    width: 250px;
  }
}