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

:root {
  /* iOS Dark Mode Colors */
  --bg-primary: #000000;
  --bg-secondary: #1c1c1e;
  --bg-tertiary: #2c2c2e;
  --bg-elevated: #1c1c1e;
  --bg-grouped: #1c1c1e;
  --text-primary: #ffffff;
  --text-secondary: #98989d;
  --text-tertiary: #636366;
  --separator: rgba(84, 84, 88, 0.65);
  --separator-light: rgba(84, 84, 88, 0.35);
  --accent-blue: #0a84ff;
  --accent-green: #30d158;
  --accent-indigo: #5e5ce6;
  --accent-orange: #ff9f0a;
  --accent-pink: #ff375f;
  --accent-purple: #bf5af2;
  --accent-teal: #64d2ff;
  --fill-primary: rgba(120, 120, 128, 0.36);
  --fill-secondary: rgba(120, 120, 128, 0.32);
  --fill-tertiary: rgba(120, 120, 128, 0.24);
  --card-radius: 16px;
  --section-radius: 12px;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.47;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Remove particles - clean iOS look */
#particles-container {
  display: none;
}

/* ============================================
   NAVBAR - iOS Frosted Glass Style
   ============================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0 16px;
  height: 48px;
  display: flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 0.5px solid var(--separator-light);
  transition: background 0.3s ease;
}

.navbar.scrolled {
  background: rgba(0, 0, 0, 0.85);
}

.nav-container {
  max-width: 980px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav-logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 400;
  transition: color 0.2s ease;
  letter-spacing: -0.01em;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-primary);
}

.nav-cta {
  background: var(--accent-blue);
  color: var(--text-primary) !important;
  padding: 6px 16px;
  border-radius: 980px;
  font-weight: 500;
  font-size: 0.8125rem;
}

.nav-cta:hover {
  background: #409cff;
}

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.mobile-menu-btn span {
  width: 20px;
  height: 1.5px;
  background: var(--text-primary);
  transition: all 0.3s ease;
  border-radius: 1px;
}

.mobile-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: rgba(28, 28, 30, 0.97);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  padding: 8px 0;
}

.mobile-menu.active {
  display: block;
}

.mobile-link {
  display: block;
  padding: 12px 20px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 400;
  border-bottom: 0.5px solid var(--separator-light);
}

.mobile-link:last-child {
  border-bottom: none;
}

.mobile-link:active {
  background: var(--fill-tertiary);
}

/* ============================================
   CONTAINERS
   ============================================ */
.container {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 20px;
}

.container-sm {
  max-width: 580px;
}

/* ============================================
   HERO SECTION - Clean Apple Style
   ============================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 20px 60px;
  position: relative;
}

.hero-container {
  max-width: 980px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-badge {
  display: inline-block;
  padding: 6px 14px;
  background: var(--bg-secondary);
  border: 0.5px solid var(--separator);
  border-radius: 980px;
  color: var(--accent-blue);
  font-size: 0.8125rem;
  font-weight: 500;
  margin-bottom: 20px;
  letter-spacing: -0.01em;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

.text-gradient {
  background: linear-gradient(90deg, var(--accent-blue), var(--accent-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  margin-bottom: 12px;
  font-weight: 400;
  line-height: 1.47;
  letter-spacing: -0.01em;
}

.highlight {
  color: var(--text-primary);
  font-weight: 600;
}

.hero-description {
  color: var(--text-tertiary);
  margin-bottom: 28px;
  max-width: 460px;
  line-height: 1.58;
  font-size: 0.9375rem;
  letter-spacing: -0.01em;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ============================================
   BUTTONS - iOS Style
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 22px;
  border-radius: 980px;
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
  letter-spacing: -0.01em;
  font-family: inherit;
}

.btn-icon {
  width: 16px;
  height: 16px;
}

.btn-primary {
  background: var(--accent-blue);
  color: var(--text-primary);
}

.btn-primary:hover {
  background: #409cff;
  transform: scale(1.02);
}

.btn-primary:active {
  transform: scale(0.98);
}

.btn-outline {
  background: transparent;
  color: var(--accent-blue);
  border: 1px solid var(--separator);
}

.btn-outline:hover {
  background: var(--fill-tertiary);
}

.btn-ghost {
  background: transparent;
  color: var(--accent-blue);
}

.btn-ghost:hover {
  background: var(--fill-tertiary);
}

.btn-full {
  width: 100%;
}

/* Resume Download Button */
.btn-resume {
  background: var(--accent-green);
  color: #000;
  font-weight: 600;
}

.btn-resume:hover {
  background: #3ddc67;
  transform: scale(1.02);
}

.btn-resume:active {
  transform: scale(0.98);
}

/* ============================================
   HERO IMAGE - iOS Style Avatar
   ============================================ */
.hero-image-container {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-image-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, rgba(10, 132, 255, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  transform: scale(1.2);
}

.hero-image-wrapper {
  position: relative;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  padding: 4px;
  background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
}

.hero-image {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--bg-primary);
}

.floating-badge {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: var(--bg-secondary);
  border: 0.5px solid var(--separator);
  border-radius: var(--section-radius);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-secondary);
  z-index: 10;
  animation: floatBadge 4s ease-in-out infinite;
  letter-spacing: -0.01em;
}

.floating-badge svg {
  width: 18px;
  height: 18px;
}

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

.badge-top svg {
  stroke: var(--accent-purple);
}

.badge-bottom {
  bottom: -30px;
  left: 0;
  animation-delay: 1s;
}

.badge-bottom svg {
  stroke: var(--accent-orange);
}

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

.scroll-indicator {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  animation: bounce 2s infinite;
}

.scroll-mouse {
  width: 22px;
  height: 36px;
  border: 1.5px solid var(--text-tertiary);
  border-radius: 980px;
  display: flex;
  justify-content: center;
  padding-top: 8px;
}

.scroll-dot {
  width: 3px;
  height: 3px;
  background: var(--text-tertiary);
  border-radius: 50%;
  animation: scrollDot 2s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
  40% { transform: translateX(-50%) translateY(-8px); }
  60% { transform: translateX(-50%) translateY(-4px); }
}

@keyframes scrollDot {
  0%, 100% { opacity: 0.4; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(8px); }
}

/* ============================================
   SECTIONS - iOS Grouped Style
   ============================================ */
.section {
  padding: 80px 20px;
  position: relative;
  z-index: 1;
}

.section-dark {
  background: var(--bg-secondary);
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-title {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 8px;
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 1.0625rem;
  font-weight: 400;
  letter-spacing: -0.01em;
}

/* ============================================
   GLASS CARD - iOS Card Style
   ============================================ */
.glass-card {
  background: var(--bg-secondary);
  border: 0.5px solid var(--separator-light);
  border-radius: var(--card-radius);
  position: relative;
  overflow: hidden;
}

/* ============================================
   ABOUT SECTION - iOS Style
   ============================================ */
.about-card {
  padding: 28px;
}

.about-glow {
  display: none;
}

.about-content {
  position: relative;
  z-index: 1;
}

.about-content p {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.58;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

.about-content p:last-child {
  margin-bottom: 0;
}

.text-white {
  color: var(--text-primary);
  font-weight: 600;
}

.text-blue {
  color: var(--accent-blue);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 24px;
  padding-top: 0;
  border-top: none;
}

.stat-item {
  text-align: center;
  padding: 20px 12px;
  background: var(--bg-tertiary);
  border-right: 0.5px solid var(--separator-light);
}

.stat-item:first-child {
  border-radius: var(--section-radius) 0 0 var(--section-radius);
}

.stat-item:last-child {
  border-radius: 0 var(--section-radius) var(--section-radius) 0;
  border-right: none;
}

.stat-value {
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-tertiary);
  margin-top: 4px;
  font-weight: 500;
  letter-spacing: -0.01em;
}

/* ============================================
   EXPERIENCE SECTION - iOS List Style
   ============================================ */
.experience-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.experience-card {
  display: flex;
  gap: 16px;
  padding: 20px;
  transition: transform 0.2s ease;
}

.experience-card:hover {
  border-color: var(--separator);
}

.experience-card:active {
  transform: scale(0.99);
}

.exp-logo {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  background: var(--bg-tertiary);
  border-radius: var(--section-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0.5px solid var(--separator-light);
  overflow: hidden;
}

.exp-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 8px;
}

.exp-content {
  flex: 1;
}

.exp-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 8px;
}

.exp-role {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.exp-company {
  color: var(--accent-blue);
  font-weight: 500;
  font-size: 0.875rem;
  margin-top: 2px;
}

.exp-duration {
  font-size: 0.8125rem;
  color: var(--text-tertiary);
  background: var(--bg-tertiary);
  padding: 4px 10px;
  border-radius: 980px;
  border: 0.5px solid var(--separator-light);
  white-space: nowrap;
  font-weight: 500;
}

.exp-description {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.47;
  letter-spacing: -0.01em;
}

/* ============================================
   SKILLS SECTION - iOS Grid Style
   ============================================ */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.skill-card {
  padding: 20px;
  transition: transform 0.2s ease;
}

.skill-card:hover {
  border-color: var(--separator);
}

.skill-card:active {
  transform: scale(0.98);
}

.skill-icon {
  width: 44px;
  height: 44px;
  background: var(--bg-tertiary);
  border: 0.5px solid var(--separator-light);
  border-radius: var(--section-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.skill-card:hover .skill-icon {
  transform: none;
}

.skill-icon svg {
  width: 22px;
  height: 22px;
}

.skill-icon.purple svg { stroke: var(--accent-purple); }
.skill-icon.blue svg { stroke: var(--accent-blue); }
.skill-icon.cyan svg { stroke: var(--accent-teal); }
.skill-icon.green svg { stroke: var(--accent-green); }
.skill-icon.orange svg { stroke: var(--accent-orange); }
.skill-icon.pink svg { stroke: var(--accent-pink); }

.skill-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.skill-tag {
  font-size: 0.75rem;
  padding: 4px 10px;
  background: var(--bg-tertiary);
  color: var(--text-secondary);
  border: 0.5px solid var(--separator-light);
  border-radius: 980px;
  font-weight: 500;
  letter-spacing: -0.01em;
}

/* ============================================
   EDUCATION SECTION - iOS Timeline
   ============================================ */
.timeline {
  position: relative;
  margin-left: 12px;
  padding-left: 28px;
  border-left: 1.5px solid var(--separator);
}

.timeline-item {
  position: relative;
  margin-bottom: 16px;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-dot {
  position: absolute;
  left: -34.5px;
  top: 8px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--bg-primary);
  border: 3px solid var(--text-tertiary);
}

.timeline-dot.active {
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 4px rgba(10, 132, 255, 0.2);
}

.timeline-content {
  padding: 20px;
}

.edu-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 8px;
}

.edu-degree {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.edu-school {
  color: var(--accent-blue);
  font-weight: 500;
  font-size: 0.875rem;
  margin-top: 2px;
}

.edu-year {
  font-size: 0.8125rem;
  color: var(--text-tertiary);
  background: var(--bg-tertiary);
  padding: 4px 10px;
  border-radius: 980px;
  border: 0.5px solid var(--separator-light);
  white-space: nowrap;
  font-weight: 500;
}

.edu-description {
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.47;
  letter-spacing: -0.01em;
}

/* ============================================
   CONTACT SECTION - iOS Form Style
   ============================================ */
.contact-card {
  padding: 28px;
}

.contact-gradient {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-blue), var(--accent-purple));
}

.contact-form {
  position: relative;
  z-index: 1;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 6px;
  margin-left: 4px;
  letter-spacing: -0.01em;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-tertiary);
  border: 0.5px solid var(--separator);
  border-radius: var(--section-radius);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 1rem;
  transition: all 0.2s ease;
  letter-spacing: -0.01em;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-blue);
  box-shadow: 0 0 0 3px rgba(10, 132, 255, 0.15);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-tertiary);
}

.form-group textarea {
  resize: none;
  min-height: 140px;
}

.contact-alt {
  text-align: center;
  margin-top: 28px;
  color: var(--text-tertiary);
  font-size: 0.875rem;
  letter-spacing: -0.01em;
}

.contact-alt a {
  color: var(--accent-blue);
  text-decoration: none;
}

.contact-alt a:hover {
  text-decoration: underline;
}

/* ============================================
   FOOTER - iOS Style
   ============================================ */
.footer {
  padding: 20px;
  text-align: center;
  border-top: 0.5px solid var(--separator-light);
  color: var(--text-tertiary);
  font-size: 0.8125rem;
  letter-spacing: -0.01em;
}

.footer-sub {
  font-size: 0.75rem;
  margin-top: 4px;
}

/* ============================================
   TOAST NOTIFICATION - iOS Style
   ============================================ */
.toast {
  position: fixed;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%) translateY(150%);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  background: var(--bg-elevated);
  color: var(--text-primary);
  border-radius: var(--card-radius);
  border: 0.5px solid var(--separator);
  font-weight: 500;
  font-size: 0.9375rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1);
  z-index: 9999;
  letter-spacing: -0.01em;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
}

.toast-icon {
  width: 20px;
  height: 20px;
  stroke: var(--accent-green);
}

/* ============================================
   ANIMATIONS - iOS Style (subtle, springy)
   ============================================ */
.fade-in {
  opacity: 0;
  transform: translateY(16px);
  animation: fadeIn 0.6s cubic-bezier(0.32, 0.72, 0, 1) forwards;
}

.fade-in-delay {
  opacity: 0;
  transform: translateY(16px);
  animation: fadeIn 0.6s cubic-bezier(0.32, 0.72, 0, 1) 0.15s forwards;
}

.fade-in-up {
  opacity: 0;
  transform: translateY(24px);
}

.fade-in-up.visible {
  animation: fadeInUp 0.5s cubic-bezier(0.32, 0.72, 0, 1) forwards;
}

@keyframes fadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================
   RESPONSIVE - iOS Adaptive Layout
   ============================================ */
@media (max-width: 1024px) {
  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .hero {
    padding: 80px 20px 40px;
  }

  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 32px;
  }

  .hero-content {
    order: 2;
  }

  .hero-image-container {
    order: 1;
  }

  .hero-description {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-image-wrapper {
    width: 200px;
    height: 200px;
  }

  .floating-badge {
    display: none;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat-item:first-child {
    border-radius: var(--section-radius) 0 0 0;
  }

  .stat-item:nth-child(2) {
    border-radius: 0 var(--section-radius) 0 0;
    border-right: none;
  }

  .stat-item:nth-child(3) {
    border-radius: 0 0 0 var(--section-radius);
  }

  .stat-item:last-child {
    border-radius: 0 0 var(--section-radius) 0;
  }

  .experience-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .exp-header {
    flex-direction: column;
  }

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

  .timeline {
    margin-left: 4px;
    padding-left: 24px;
  }

  .timeline-dot {
    left: -30.5px;
  }

  .edu-header {
    flex-direction: column;
  }

  .about-card {
    padding: 20px;
  }

  .section {
    padding: 60px 20px;
  }

  .contact-card {
    padding: 20px;
  }
}
