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

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

body {
  font-family: 'Poppins', sans-serif;
  background: linear-gradient(135deg, #f5f7fa 0%, #e9ebee 100%);
  overflow-x: hidden;
}

html {
  scroll-behavior: smooth;
}

/* Navigation */
.nav-bar {
  position: fixed;
  top: 30px;
  right: 30px;
  z-index: 1000;
  display: flex;
  gap: 15px;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  padding: 15px 20px;
  border-radius: 50px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.nav-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #4d4d4d;
  cursor: pointer;
  transition: all 0.3s ease;
  opacity: 0.5;
  position: relative;
}

.nav-dot::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #4d4d4d;
  top: 0;
  left: 0;
  transform: scale(0);
  transition: transform 0.3s ease;
}

.nav-dot:hover,
.nav-dot.active {
  opacity: 1;
  transform: scale(1.3);
}

.nav-dot.active::after {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.5);
    opacity: 0;
  }
}

/* Hero Section */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 2rem;
}

.hero-content {
  max-width: 1200px;
  width: 100%;
}

.profile-image-wrapper {
  position: relative;
  display: inline-block;
}

.profile-glow {
  position: absolute;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(77, 77, 77, 0.3) 0%, transparent 70%);
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(1.2);
  animation: glow-pulse 3s ease-in-out infinite;
  z-index: -1;
}

@keyframes glow-pulse {
  0%, 100% {
    transform: translate(-50%, -50%) scale(1.2);
    opacity: 0.5;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.4);
    opacity: 0.8;
  }
}

.profile-image {
  width: 280px;
  height: 280px;
  border-radius: 50%;
  object-fit: cover;
  border: 5px solid #fff;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  transition: transform 0.5s ease;
}

.profile-image:hover {
  transform: scale(1.05) rotate(5deg);
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.2);
}

.floating-badge {
  position: absolute;
  background: #000;
  color: #fff;
  padding: 10px 20px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  animation: float 3s ease-in-out infinite;
}

.badge-1 {
  top: 20px;
  right: -20px;
}

.badge-2 {
  bottom: 40px;
  left: -30px;
}

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

.hero-text h1 {
  font-size: 72px;
  font-weight: 800;
  color: #000;
  margin-bottom: 15px;
  line-height: 1.2;
}

.hero-text .gradient-text {
  background: linear-gradient(135deg, #000 0%, #4d4d4d 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
  display: inline-block;
}

.typing {
  font-size: 1.5rem;
  font-weight: 700;
  color: #183153;
  min-height: 2.5rem;
  margin-bottom: 10px;
}

.job {
  font-size: 1.25rem;
  font-weight: 600;
  color: #4d4d4d;
}

.hero-description {
  font-size: 18px;
  color: #666;
  line-height: 1.8;
  margin-bottom: 40px;
  max-width: 600px;
}

/* Premium Buttons */
.btn-group-premium {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.btn-premium {
  padding: 16px 40px;
  border-radius: 50px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.btn-primary-premium {
  background: #000;
  color: #fff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.btn-shine {
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.6s ease;
}

.btn-primary-premium:hover .btn-shine {
  left: 100%;
}

.btn-primary-premium:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.btn-primary-premium span {
  position: relative;
  z-index: 1;
}

.btn-secondary-premium {
  background: #e9ebee;
  color: #183153;
  border: 2px solid #183153;
}

.btn-secondary-premium:hover {
  background: #183153;
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(24, 49, 83, 0.3);
}

/* Section Styles */
.section {
  min-height: 100vh;
  padding: 100px 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.section-title {
  font-size: 48px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 60px;
  color: #000;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: #000;
  border-radius: 2px;
  animation: title-line 2s ease-in-out infinite;
}

@keyframes title-line {
  0%, 100% {
    width: 80px;
  }
  50% {
    width: 120px;
  }
}

/* Toggle Bar Premium */
.toggle-container {
  display: flex;
  justify-content: center;
  margin-bottom: 60px;
}

.toggle-bar {
  width: 100%;
  max-width: 450px;
  height: 70px;
  display: flex;
  position: relative;
  background: #fff;
  border-radius: 50px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  border: 2px solid #e9ebee;
}

.toggle-option {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 18px;
  font-weight: 600;
  color: #4d4d4d;
  cursor: pointer;
  transition: color 0.3s ease;
  z-index: 2;
}

.toggle-option.active {
  color: #fff;
}

.toggle-indicator {
  position: absolute;
  top: 5px;
  left: 5px;
  width: calc(50% - 10px);
  height: calc(100% - 10px);
  background: #000;
  border-radius: 50px;
  transition: left 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  z-index: 1;
}

/* Projects Grid */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  max-width: 1200px;
  width: 100%;
}

.project-card {
  background: #fff;
  border-radius: 20px;
  padding: 35px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.project-gradient {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, #000, #4d4d4d);
  transform: scaleX(0);
  transition: transform 0.4s ease;
  transform-origin: left;
}

.project-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.project-card:hover .project-gradient {
  transform: scaleX(1);
}

.project-number {
  font-size: 14px;
  color: #4d4d4d;
  font-weight: 600;
  margin-bottom: 15px;
  display: inline-block;
  padding: 5px 12px;
  background: #f5f7fa;
  border-radius: 20px;
}

.project-title {
  font-size: 24px;
  font-weight: 700;
  color: #183153;
  margin-bottom: 15px;
  transition: color 0.3s ease;
}

.project-card:hover .project-title {
  color: #000;
}

.project-description {
  font-size: 15px;
  color: #666;
  line-height: 1.7;
  margin-bottom: 25px;
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #000;
  font-weight: 600;
  text-decoration: none;
  transition: gap 0.3s ease;
}

.project-link:hover {
  gap: 15px;
}

/* Skills Grid */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 25px;
  max-width: 1200px;
  width: 100%;
}

.skill-card {
  background: #fff;
  border-radius: 15px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 15px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.skill-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.03) 0%, rgba(77, 77, 77, 0.05) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.skill-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.skill-card:hover::before {
  opacity: 1;
}

.skill-icon {
  width: 60px;
  height: 60px;
  transition: transform 0.3s ease;
  position: relative;
  z-index: 1;
}

.skill-card:hover .skill-icon {
  transform: scale(1.1) rotate(5deg);
}

.skill-name {
  font-size: 15px;
  font-weight: 600;
  color: #183153;
  text-align: center;
  position: relative;
  z-index: 1;
}
/* Minimal modal — backdrop + content z-index fix kept */
.skill-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  align-items: center;
  justify-content: center;
}

.skill-modal.active { display: flex; }

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 1;
}

.modal-content {
  position: relative;
  z-index: 2;
  background: #fff;
  border-radius: 18px;
  padding: 28px;
  width: 92%;
  max-width: 520px;
  box-shadow: 0 25px 60px rgba(0,0,0,0.18);
  max-height: 85vh;
  overflow-y: auto;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #f5f7fa;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  z-index: 3;
}

.modal-header {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 14px;
}

.modal-icon-wrapper {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  background: #f5f7fa;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
}

.modal-icon { width:100%; height:100%; object-fit:contain; }

.modal-title {
  font-size: 20px;
  margin: 0;
  color: #111;
  font-weight: 700;
}

.modal-body { margin-top: 6px; }

.modal-section-title {
  font-size: 12px;
  font-weight: 700;
  color: #3b4758;
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.modal-section-content {
  font-size: 15px;
  color: #555;
  line-height: 1.6;
  margin-bottom: 12px;
}

.modal-link {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  font-weight: 600;
  text-decoration: none;
  color: #0b2b5a;
}




@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from {
    transform: translateY(50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #f5f7fa;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #4d4d4d;
  transition: all 0.3s ease;
  border: none;
}

.modal-close:hover {
  background: #e9ebee;
  transform: rotate(90deg);
}

.modal-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 30px;
  padding-bottom: 25px;
  border-bottom: 2px solid #f5f7fa;
}

.modal-icon-wrapper {
  width: 80px;
  height: 80px;
  border-radius: 20px;
  background: #f5f7fa;
  padding: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.modal-icon {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.modal-title {
  font-size: 32px;
  font-weight: 700;
  color: #000;
  margin: 0;
}

.modal-subtitle {
  font-size: 14px;
  color: #4d4d4d;
  margin: 5px 0 0 0;
  font-weight: 500;
}

.modal-body {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.modal-section {
  position: relative;
}

.modal-section-title {
  font-size: 14px;
  font-weight: 600;
  color: #183153;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.modal-section-title svg {
  opacity: 0.7;
}

.modal-section-content {
  font-size: 16px;
  color: #666;
  line-height: 1.7;
}

.modal-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.modal-tag {
  background: #f5f7fa;
  color: #183153;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
  border: 1px solid #e9ebee;
  transition: all 0.3s ease;
}

.modal-tag:hover {
  background: #e9ebee;
  transform: translateY(-2px);
}

.modal-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #183153;
  text-decoration: none;
  font-weight: 600;
  margin-top: 10px;
  transition: gap 0.3s ease;
}

.modal-link:hover {
  gap: 12px;
  color: #000;
}

/* Content Sections */
.content-section {
  display: none;
  animation: fadeInContent 0.6s ease;
}

.content-section.active {
  display: block;
}

@keyframes fadeInContent {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Footer */
.footer {
  text-align: center;
  padding: 40px 20px;
  color: #4d4d4d;
  font-size: 14px;
}

/* Responsive */
@media (max-width: 768px) {
  .hero-text h1 {
    font-size: 48px;
  }

  .profile-image {
    width: 220px;
    height: 220px;
  }

  .floating-badge {
    font-size: 12px;
    padding: 8px 16px;
  }

  .section-title {
    font-size: 36px;
  }

  .projects-grid,
  .skills-grid {
    grid-template-columns: 1fr;
  }

  .nav-bar {
    top: 20px;
    right: 20px;
    padding: 12px 15px;
  }

  .modal-content {
    padding: 30px;
  }

  .modal-title {
    font-size: 24px;
  }

  .modal-icon-wrapper {
    width: 60px;
    height: 60px;
  }
}

/* Scroll animations */
[data-aos] {
  pointer-events: auto;
}