* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  background: linear-gradient(135deg, #f9fafb 0%, #eef2ff 100%);
  color: #1f2937;
  line-height: 1.5;
  scroll-behavior: smooth;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
}

.logo {
  font-size: 1.8rem;
  font-weight: 800;
  background: linear-gradient(135deg, #7c3aed, #2563eb);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  font-weight: 600;
  color: #1e293b;
  transition: 0.3s;
  position: relative;
}

.nav-links a:hover, .nav-links a.active {
  color: #2563eb;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 0%;
  height: 2px;
  background: #2563eb;
  transition: 0.3s;
}

.nav-links a:hover::after, .nav-links a.active::after {
  width: 100%;
}

.hamburger {
  display: none;
  font-size: 1.8rem;
  cursor: pointer;
}

section {
  padding: 80px 0;
  scroll-margin-top: 85px;
  animation: fadeUp 0.8s ease-out forwards;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.section-title {
  font-size: 2.3rem;
  font-weight: 800;
  margin-bottom: 2rem;
  background: linear-gradient(120deg, #1e293b, #3b82f6);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  display: inline-block;
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 60px;
  height: 4px;
  background: #3b82f6;
  border-radius: 4px;
}

.hero {
  background: radial-gradient(circle at 10% 30%, rgba(37,99,235,0.05), transparent);
}

.hero-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
}

.hero-text {
  flex: 1;
}

.badge {
  background: #e0f2fe;
  color: #0369a1;
  padding: 0.3rem 1rem;
  border-radius: 40px;
  display: inline-block;
  font-weight: 600;
  margin-bottom: 1rem;
}

.hero-text h1 {
  font-size: 3.2rem;
  font-weight: 800;
  color: #1e293b;
}

.hero-subtitle {
  font-size: 1.3rem;
  color: #4b5563;
  margin: 0.5rem 0;
}

.btn-group {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.btn {
  padding: 12px 28px;
  border-radius: 40px;
  font-weight: 600;
  text-decoration: none;
  transition: 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-primary {
  background: #2563eb;
  color: white;
  box-shadow: 0 5px 12px rgba(37,99,235,0.3);
}

.btn-primary:hover {
  transform: translateY(-4px);
  background: #1d4ed8;
}

.btn-outline {
  border: 2px solid #2563eb;
  color: #2563eb;
}

.btn-outline:hover {
  background: #2563eb;
  color: white;
  transform: translateY(-4px);
}

.hero-avatar {
  flex: 0.7;
  display: flex;
  justify-content: center;
}

.avatar-circle {
  width: 240px;
  height: 240px;
  background: linear-gradient(145deg, #d9e6ff, #ffffff);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 20px 35px -10px rgba(0,0,0,0.2);
  transition: transform 0.4s;
}

.avatar-circle:hover {
  transform: scale(1.05);
}

.avatar-circle i {
  font-size: 6rem;
  color: #2563eb;
}

.about-content {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  background: rgba(255,255,255,0.6);
  backdrop-filter: blur(4px);
  border-radius: 32px;
  padding: 2rem;
}

.about-text {
  flex: 2;
}

.about-highlight {
  flex: 1;
  background: linear-gradient(145deg, #2563eb10, #7c3aed10);
  border-radius: 28px;
  padding: 1.5rem;
  text-align: center;
  font-style: italic;
}

.info-list {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1rem;
}

.info-item {
  background: white;
  padding: 0.5rem 1rem;
  border-radius: 40px;
  font-weight: 500;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px,1fr));
  gap: 1.5rem;
}

.skill-card {
  background: white;
  padding: 1.2rem;
  text-align: center;
  border-radius: 28px;
  transition: 0.3s;
  box-shadow: 0 6px 14px rgba(0,0,0,0.02);
  border: 1px solid #eef2ff;
}

.skill-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 30px -12px rgba(0,0,0,0.15);
  border-color: #2563eb;
}

.skill-card i {
  font-size: 2.5rem;
  color: #2563eb;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px,1fr));
  gap: 2rem;
}

.project-card {
  background: white;
  border-radius: 28px;
  overflow: hidden;
  transition: 0.3s;
  box-shadow: 0 10px 20px -8px rgba(0,0,0,0.1);
}

.project-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 25px 35px -12px rgba(0,0,0,0.2);
}

.project-img {
  background: linear-gradient(145deg, #3b82f6, #a855f7);
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.project-img i {
  font-size: 4rem;
  color: white;
}

.project-info {
  padding: 1.5rem;
}

.tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 10px 0;
}

.tech-stack span {
  background: #eef2ff;
  padding: 4px 12px;
  border-radius: 30px;
  font-size: 0.75rem;
  font-weight: 600;
}

.project-links a {
  color: #2563eb;
  text-decoration: none;
  margin-right: 1rem;
  font-weight: 600;
}

.resume-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  background: white;
  border-radius: 32px;
  padding: 2rem;
}

.btn-download {
  display: inline-block;
  background: #1e293b;
  color: white;
  padding: 12px 24px;
  border-radius: 40px;
  text-decoration: none;
  font-weight: 600;
  margin-top: 10px;
  border: none;
  cursor: pointer;
}

.btn-download:hover {
  background: #0f172a;
  transform: translateY(-3px);
}

.cert-grid {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.cert-card {
  background: white;
  padding: 1.8rem;
  border-radius: 32px;
  text-align: center;
  flex: 1;
  min-width: 260px;
  transition: 0.3s;
}

.cert-card:hover {
  transform: scale(1.02);
  box-shadow: 0 20px 30px -12px rgba(0,0,0,0.15);
}

.cert-image {
  transition: transform 0.3s;
  width: 100%;
  border-radius: 16px;
  margin-top: 15px;
  cursor: pointer;
}

.cert-image:hover {
  transform: scale(1.02);
}

.cert-link {
  background: #2563eb;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 40px;
  margin-top: 10px;
  cursor: pointer;
  font-weight: 600;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px,1fr));
  gap: 2rem;
}

.contact-info, .contact-form {
  background: white;
  padding: 2rem;
  border-radius: 32px;
}

.contact-detail {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1rem 0;
}

.social-links a {
  background: #f1f5f9;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 10px;
  transition: 0.2s;
  color: #1e293b;
  text-decoration: none;
}

.social-links a:hover {
  background: #2563eb;
  color: white;
  transform: translateY(-4px);
}

input, textarea {
  width: 100%;
  padding: 12px;
  border-radius: 60px;
  border: 1px solid #cbd5e1;
  margin-bottom: 1rem;
  font-family: inherit;
}

.btn-submit {
  background: #2563eb;
  color: white;
  border: none;
  padding: 12px;
  border-radius: 60px;
  width: 100%;
  font-weight: bold;
  cursor: pointer;
}

footer {
  background: #0f172a;
  color: #94a3b8;
  text-align: center;
  padding: 2rem;
}

@media (max-width: 880px) {
  .nav-links {
    position: fixed;
    top: 70px;
    left: -100%;
    background: white;
    flex-direction: column;
    width: 70%;
    height: 100vh;
    padding: 2rem;
    transition: 0.3s;
    z-index: 999;
  }
  .nav-links.active {
    left: 0;
  }
  .hamburger {
    display: block;
  }
  .hero-text h1 {
    font-size: 2.2rem;
  }
  .hero-content {
    flex-direction: column-reverse;
    text-align: center;
  }
  .section-title::after {
    left: 50%;
    transform: translateX(-50%);
  }
  .section-title {
    display: block;
    text-align: center;
  }
}