/* Dedicated mobile UI layer.
   Desktop UI remains fully controlled by style.css */

:root {
  --mobile-surface: rgba(255, 255, 255, 0.82);
  --mobile-border: rgba(2, 132, 199, 0.18);
  --mobile-shadow: 0 8px 24px -16px rgba(2, 23, 62, 0.25);
  --mobile-content-inset: 0.2rem;
}

html,
body {
  overflow-x: hidden;
}

body {
  background-image:
    radial-gradient(circle at 0% 10%, rgba(56, 189, 248, 0.12) 0%, transparent 42%),
    radial-gradient(circle at 95% 90%, rgba(99, 102, 241, 0.12) 0%, transparent 44%);
}

.container {
  padding: 0 1.2rem;
}

header {
  padding: 1.1rem 0 0.6rem;
  min-height: auto;
}

.hero-layout {
  flex-direction: column;
  text-align: center;
  gap: 0.9rem;
  align-items: center;
}

.profile-img-container {
  width: 135px;
  height: 135px;
  border-radius: 20%;
  border: 3px solid rgba(255, 255, 255, 0.9);
}

h1 {
  font-size: 1.85rem;
  line-height: 1.15;
}

h2 {
  font-size: 1.35rem;
  margin-bottom: 0.55rem;
}

h3 {
  font-size: 1.1rem;
}

h2::after {
  width: 38px;
  height: 2.5px;
  bottom: -3px;
}

.hero-subtitle {
  font-size: 0.92rem;
  margin-bottom: 0.25rem;
}

.hero-role {
  font-size: 1rem;
  margin-top: 0.25rem;
}

.hero-desc {
  font-size: 0.88rem;
  line-height: 1.45;
  margin-top: 0.4rem;
}

.hero-content p {
  font-size: 0.88rem;
  line-height: 1.45;
}

.social-links {
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 0.75rem;
}

.social-links a {
  width: 38px;
  height: 38px;
  font-size: 1.1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--mobile-border);
}

.btn {
  width: 100%;
  text-align: center;
  margin-top: 0.7rem;
  padding: 0.65rem 1rem;
  font-size: 0.88rem;
  border-radius: 12px;
}

.section {
  padding: 0.75rem 0;
}

.section > h2,
.section > .timeline,
.section > .projects-grid,
.section > .contact-grid,
.section > .glass-card {
  padding-inline: var(--mobile-content-inset);
}

.section > h2 {
  margin-left: var(--mobile-content-inset);
}

.section > h2::after {
  left: var(--mobile-content-inset);
}

/* Compact section separator on mobile */
.section + .section {
  margin-top: 0.45rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--glass-border);
}

.section .glass-card {
  background: var(--mobile-surface);
  border: 1px solid var(--mobile-border);
  box-shadow: var(--mobile-shadow);
  border-radius: 12px;
  padding: 0.85rem 0.95rem;
  margin-inline: 0;
}

.timeline {
  border-left: none;
  margin-left: 0;
  padding-left: 0;
}

.timeline-item {
  margin-bottom: 0.65rem;
}

.timeline-item::before {
  display: none;
}

.timeline .glass-card ul {
  padding-left: 1rem;
  margin-top: 0.35rem;
}

.timeline .glass-card li {
  margin-bottom: 0.3rem;
  font-size: 0.85rem;
  line-height: 1.4;
}

.timeline .glass-card li:last-child {
  margin-bottom: 0;
}

.date {
  margin-bottom: 0.25rem;
  font-size: 0.78rem;
  margin-left: var(--mobile-content-inset);
}

.skills-grid {
  gap: 0.35rem 0.45rem;
}

.skill-tag {
  font-size: 0.76rem;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
}

.skill-category {
  margin-bottom: 0.65rem;
}

.skill-category h3 {
  font-size: 0.95rem;
  margin-bottom: 0.35rem;
}

.projects-grid {
  grid-template-columns: 1fr;
  gap: 0.85rem;
}

.project-card {
  padding: 1rem 1rem 0.9rem;
  border-radius: 14px;
}

.project-top-meta {
  margin-bottom: 0.55rem;
  gap: 0.45rem;
}

.proj-category-badge {
  font-size: 0.68rem;
  padding: 0.22rem 0.55rem;
}

.project-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}

.project-card h3 {
  font-size: 1.02rem;
  margin-bottom: 0.2rem;
}

.project-summary {
  font-size: 0.84rem;
  line-height: 1.45;
  margin-bottom: 0.55rem;
}

.project-metrics {
  gap: 0.35rem;
  margin-bottom: 0.65rem;
}

.proj-metric-chip {
  font-size: 0.72rem;
  padding: 0.2rem 0.5rem;
}

.store-badge {
  width: 28px;
  height: 28px;
  font-size: 0.86rem;
  border-radius: 7px;
}

.store-badge .play-svg {
  width: 14px;
  height: 14px;
}

.store-badge.store-badge-apple i {
  font-size: 0.95rem;
}

.project-tags {
  margin-top: 0.35rem;
  gap: 0.3rem;
  margin-bottom: 0.75rem;
}

.project-tags .skill-tag {
  font-size: 0.72rem;
  padding: 0.18rem 0.5rem;
}

.contact-grid {
  grid-template-columns: 1fr;
  gap: 0.65rem;
  margin-top: 0.65rem;
}

.contact-item {
  align-items: center;
  gap: 0.65rem;
}

.contact-icon {
  width: 36px;
  height: 36px;
  font-size: 0.95rem;
}

.contact-item h3 {
  font-size: 0.92rem;
}

.contact-item p {
  font-size: 0.84rem;
}

.reference-box {
  margin-top: 0.85rem;
  padding-top: 0.75rem;
}

.reference-box h3 {
  font-size: 0.95rem;
}

.reference-box p {
  font-size: 0.84rem;
  line-height: 1.4;
}

.resume-download-box {
  margin-top: 0.9rem;
}

.resume-download-box .btn {
  width: 100%;
  margin-top: 0;
}

.edu-card {
  align-items: center;
  gap: 0.75rem;
}

.edu-content h3 {
  font-size: 0.98rem;
  margin-bottom: 0.15rem;
}

.edu-content h4 {
  font-size: 0.86rem;
  margin-bottom: 0.2rem;
}

.edu-content p {
  font-size: 0.82rem;
}

.edu-logo {
  width: 48px;
  height: 48px;
  border-radius: 8px;
}

footer {
  margin-top: 0.9rem;
  padding: 0.8rem 0 1.1rem;
  font-size: 0.78rem;
}

@media (max-width: 480px) {
  .container {
    padding: 0 1rem;
  }

  .profile-img-container {
    width: 120px;
    height: 120px;
  }

  h1 {
    font-size: 1.62rem;
  }

  h2 {
    font-size: 1.25rem;
  }

  .section {
    padding: 0.65rem 0;
  }

  .section + .section {
    margin-top: 0.35rem;
    padding-top: 0.65rem;
  }
}
