/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  background: #f0f4ff;
  color: #1e293b;
  line-height: 1.7;
  scroll-behavior: smooth;
}

/* Typography */
h1, h2, h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  text-align: center;
}

h1 {
  font-size: 3.8rem;
  margin-bottom: 1rem;
  color: #1e293b;
}

h2 {
  font-size: 2.6rem;
  margin: 3rem 0;
  color: #1e293b;
  position: relative;
}

h2::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -15px;
  transform: translateX(-50%);
  width: 120px;
  height: 6px;
  background: linear-gradient(90deg, #6d28d9, #ec4899, #0056b3);
  border-radius: 3px;
}

h3 {
  font-size: 1.4rem;
  margin-bottom: 0.8rem;
  color: #2d3748;
  font-weight: 600;
}

p {
  font-size: 1rem;
  color: #555;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 6px 30px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  transition: all 0.4s ease;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.2rem 1.5rem;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 2rem;
  position: relative;
}

.logo {
  position: absolute;
  left: 1.5rem;
  font-size: 1.8rem;
  font-weight: 700;
  color: #4c1d95;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  z-index: 1001;
}

.logo::before {
  content: '';
  width: 12px;
  height: 12px;
  background: radial-gradient(circle, #ec4899, #8b5cf6, #0056b3);
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 10px rgba(236, 72, 153, 0.6);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.2); opacity: 0.8; }
  100% { transform: scale(1); opacity: 1; }
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2.2rem;
}

.nav-links a {
  text-decoration: none;
  color: #4a5568;
  font-weight: 500;
  font-size: 1.15rem;
  transition: all 0.4s ease;
  position: relative;
  padding: 0.4rem 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #6d28d9, #ec4899);
  transition: width 0.4s ease;
}

.nav-links a:hover {
  color: #6d28d9;
}

.nav-links a:hover::after {
  width: 100%;
}

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
}

.hamburger span {
  width: 28px;
  height: 3px;
  background: #4c1d95;
  transition: all 0.3s ease;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 6rem 1.5rem;
  text-align: center;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #f3e7ff, #d0e4ff, #e0f2ff);
  background-size: 400% 400%;
  animation: gradientShift 15s ease infinite;
  z-index: -1;
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.hero-content {
  max-width: 850px;
  margin: 0 auto;
  padding: 3rem 2.5rem;
  background: rgba(255, 255, 255, 0.94);
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(10px);
  z-index: 1;
}

.line {
  display: block;
  font-size: 1.6rem;
  color: #6d28d9;
  margin-bottom: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.highlight {
  color: #0056b3;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  position: relative;
  display: inline-block;
}

.highlight::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #6d28d9, #ec4899);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  animation: underline 1.5s ease forwards;
}

@keyframes underline {
  to {
    transform: scaleX(1);
  }
}

.subtitle {
  font-size: 1.5rem;
  color: #333;
  margin-bottom: 2.5rem;
  font-weight: 500;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 1.6rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.btn {
  padding: 1rem 2.2rem;
  border-radius: 14px;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  display: inline-flex;
  align-items: center;
  font-size: 1.1rem;
  transition: all 0.5s ease;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.btn-primary {
  background-color: #0056b3;
  color: white;
}

.btn-primary:hover {
  background-color: #003d82;
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0, 86, 179, 0.5);
}

.btn-secondary {
  background-color: #6d28d9;
  color: white;
}

.btn-secondary:hover {
  background-color: #5b21b6;
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(109, 40, 217, 0.6);
}

/* Section */
.section {
  padding: 6rem 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  font-size: 2.6rem;
  margin-bottom: 2.8rem;
  color: #1e293b;
  position: relative;
  text-align: center;
}

.section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -15px;
  transform: translateX(-50%);
  width: 120px;
  height: 6px;
  background: linear-gradient(90deg, #6d28d9, #ec4899, #0056b3);
  border-radius: 3px;
}

/* === EDUCATION: Timeline with Glowing Line === */
.timeline-container {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.timeline-line {
  position: absolute;
  left: 50%;
  top: 0;
  width: 2px;
  height: 100%;
  background: linear-gradient(to bottom, #6d28d9, #ec4899);
  transform: translateX(-50%);
  z-index: 0;
}

.timeline-item {
  position: relative;
  display: flex;
  margin-bottom: 3.5rem;
  z-index: 1;
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.9s ease;
}

.timeline-item:nth-child(even) {
  flex-direction: row-reverse;
}

.timeline-dot {
  width: 20px;
  height: 20px;
  background: white;
  border: 4px solid #6d28d9;
  border-radius: 50%;
  box-shadow: 0 0 15px rgba(109, 40, 217, 0.4);
  align-self: center;
  z-index: 2;
}

.timeline-content {
  width: calc(50% - 40px);
  background: white;
  padding: 1.8rem;
  border-radius: 16px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  border: 1px solid #e2e8f0;
  transition: transform 0.4s ease;
}

.timeline-content:hover {
  transform: scale(1.03);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.timeline-content strong {
  color: #1e293b;
  font-size: 1.3rem;
}

.timeline-content .year {
  float: right;
  color: #6d28d9;
  font-weight: 600;
  font-size: 0.95rem;
}

.timeline-content p {
  margin-top: 0.6rem;
  color: #555;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* === SKILLS: Glowing Skill Cards === */
.skills-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  margin-top: 2.8rem;
}

.skill-card {
  background: white;
  padding: 2.2rem;
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.07);
  text-align: center;
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.9s ease;
  border: 1px solid transparent;
  position: relative;
  overflow: hidden;
}

.skill-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 18px;
  padding: 1px;
  background: linear-gradient(45deg, #6d28d9, #ec4899);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: destination-out;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.skill-card:hover::before {
  opacity: 1;
}

.skill-card:hover {
  transform: translateY(-12px) scale(1.03);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.skill-card .icon {
  font-size: 3.2rem;
  color: #6d28d9;
  margin-bottom: 0.8rem;
  transition: all 0.4s ease;
}

.skill-card:hover .icon {
  color: #ec4899;
  transform: scale(1.2) rotate(10deg);
  text-shadow: 0 0 20px rgba(236, 72, 153, 0.4);
}

/* === CERTIFICATIONS: Elegant Floating Cards === */
.certifications-grid {
  display: grid;
  gap: 2.4rem;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  margin-top: 2.8rem;
}

.cert-card {
  background: white;
  padding: 2rem;
  border-radius: 18px;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.09);
  display: flex;
  align-items: center;
  gap: 1.4rem;
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.9s ease;
  border: 1px solid #e2e8f0;
  position: relative;
  overflow: hidden;
}

.cert-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.05), rgba(109, 40, 217, 0.05));
  z-index: 0;
  border-radius: 18px;
}

.cert-card > * {
  position: relative;
  z-index: 1;
}

.cert-icon {
  font-size: 2.8rem;
  color: #ec4899;
  background: linear-gradient(135deg, #fde6f0, #e9d4f7);
  width: 60px;
  height: 60px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s ease;
}

.cert-icon i {
  margin: 0;
}

.cert-icon.unity {
  background: linear-gradient(135deg, #e0f5ff, #d4e6ff);
  color: #0056b3;
}

.cert-card:hover .cert-icon {
  transform: scale(1.1) rotate(12deg);
  box-shadow: 0 10px 25px rgba(236, 72, 153, 0.3);
}

.cert-content h3 {
  font-size: 1.4rem;
  color: #1e293b;
  margin: 0 0 0.4rem 0;
  font-weight: 600;
}

.cert-content p {
  font-size: 1rem;
  color: #6b7280;
  margin: 0;
}

/* Projects & Contact Grid */
.projects-grid,
.contact-grid {
  display: grid;
  gap: 2.6rem;
  margin-top: 2.8rem;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

/* Project Card */
.project-card {
  background: white;
  padding: 2.4rem;
  border-radius: 16px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.07);
  text-align: center;
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.5s ease;
  border: 1px solid #e2e8f0;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.project-card:hover {
  transform: translateY(-14px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
  border-color: #6d28d9;
}

.project-icon {
  font-size: 3.4rem;
  transition: all 0.5s ease;
}

.project-card:hover .project-icon {
  transform: scale(1.2) rotate(5deg);
  text-shadow: 0 0 20px rgba(109, 40, 217, 0.3);
}

/* Project Link */
.project-link {
  display: inline-block;
  margin-top: 1.2rem;
  padding: 0.9rem 1.8rem;
  background: #0056b3;
  color: white;
  text-decoration: none;
  font-weight: 600;
  border-radius: 10px;
  transition: all 0.4s ease;
  font-size: 1.05rem;
}

.project-link:hover {
  background: #003d82;
  transform: translateY(-4px);
  box-shadow: 0 10px 20px rgba(0, 86, 179, 0.5);
}

.project-link i {
  margin-left: 0.6rem;
  transition: transform 0.4s ease;
}

.project-link:hover i {
  transform: translateX(6px);
}

/* Contact Item */
.contact-item {
  background: white;
  padding: 2.4rem;
  border-radius: 16px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.07);
  text-align: center;
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.5s ease;
  border: 1px solid #e2e8f0;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #2d3748;
  gap: 1rem;
}

.contact-item:hover {
  transform: translateY(-12px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
  border-color: #6d28d9;
}

.contact-item .icon-contact {
  font-size: 3.4rem;
  color: #6d28d9;
  transition: all 0.5s ease;
}

.contact-item:hover .icon-contact {
  transform: scale(1.2) rotate(5deg);
  text-shadow: 0 0 20px rgba(109, 40, 217, 0.3);
}

.contact-item h3 {
  margin: 0;
  font-size: 1.4rem;
  color: #2d3748;
  font-weight: 600;
}

.contact-item p {
  font-size: 1rem;
  color: #6b7280;
  margin: 0;
}

/* Footer */
footer {
  text-align: center;
  padding: 4.5rem 1.5rem 3rem;
  background: #0f172a;
  color: white;
  margin-top: 6rem;
  border-top: 2px solid #6d28d9;
}

footer p {
  margin-bottom: 1.8rem;
  font-size: 1.5rem;
  font-weight: 600;
  color: white;
  text-shadow: 0 2px 6px rgba(109, 40, 217, 0.4);
  letter-spacing: 0.5px;
}

.footer-social {
  display: flex;
  justify-content: center;
  gap: 2.6rem;
}

.footer-social a {
  color: white;
  font-size: 2.2rem;
  transition: all 0.4s ease;
}

.footer-social a:hover {
  color: #a78bfa;
  transform: scale(1.4) rotate(8deg);
  text-shadow: 0 0 15px rgba(167, 139, 250, 0.6);
}

/* Responsive */
@media (max-width: 768px) {
  h1 {
    font-size: 3rem;
  }

  h2 {
    font-size: 2.3rem;
  }

  .nav-container {
    flex-wrap: wrap;
    padding: 1.2rem 1.5rem;
    justify-content: center;
  }

  .logo {
    position: static;
    order: -1;
    margin-bottom: 0.5rem;
  }

  .nav-links {
    width: 100%;
    justify-content: center;
    margin-top: 0.8rem;
    flex-direction: column;
    gap: 1.2rem;
    background: rgba(255, 255, 255, 0.98);
    padding: 1rem 0;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    display: none;
  }

  .nav-links.active {
    display: flex;
  }

  .hamburger {
    display: flex;
    z-index: 1001;
  }

  .hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    max-width: 340px;
  }

  .projects-grid,
  .contact-grid,
  .skills-grid,
  .certifications-grid {
    grid-template-columns: 1fr;
  }

  .timeline-container {
    margin-left: 1rem;
    margin-right: 1rem;
  }

  .timeline-line {
    left: 20px;
  }

  .timeline-item {
    flex-direction: row !important;
  }

  .timeline-item:nth-child(even) {
    flex-direction: row !important;
  }

  .timeline-content {
    width: calc(100% - 60px);
  }
}
