/* CSS Reset & Variables (Eye-Catching Apple Light Theme) */
:root {
  --bg-color: #f5f5f7;
  --bg-alt: #ffffff;
  --text-primary: #1d1d1f;
  --text-secondary: #424245;
  --accent-color: #0066cc;
  --glass-bg: rgba(255, 255, 255, 0.6);
  --glass-border: rgba(255, 255, 255, 0.9);
  --glass-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
  --hover-shadow: 0 20px 60px rgba(0, 102, 204, 0.15);
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-color);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  /* Very subtle animated mesh gradient background for extra flair */
  background-image: 
    radial-gradient(at 0% 0%, rgba(0, 122, 255, 0.08) 0px, transparent 50%),
    radial-gradient(at 100% 100%, rgba(191, 85, 255, 0.08) 0px, transparent 50%);
  background-attachment: fixed;
  background-size: cover;
}

/* Typography */
h1, h2, h3, h4 {
  font-weight: 700;
  letter-spacing: -0.03em;
}

.section-heading {
  font-size: 3rem;
  text-align: center;
  margin-bottom: 3.5rem;
  background: linear-gradient(135deg, #1d1d1f, #424245);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

a {
  color: var(--accent-color);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  filter: brightness(1.2);
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section-padding {
  padding: 7rem 0;
}

/* Navigation */
.glass-nav {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(245, 245, 247, 0.7);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid rgba(0,0,0,0.05);
  z-index: 100;
  transition: var(--transition);
}

.nav-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  font-weight: 800;
  font-size: 1.4rem;
  letter-spacing: -0.05em;
  background: linear-gradient(135deg, #007aff, #bf55ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-links a {
  margin-left: 2rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.nav-links a:hover {
  color: #007aff;
}

/* Glassmorphism Cards */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(30px) saturate(150%);
  -webkit-backdrop-filter: blur(30px) saturate(150%);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 2.5rem;
  box-shadow: var(--glass-shadow);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.glass-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.8), transparent);
}

.glass-card:hover {
  transform: translateY(-8px) scale(1.01);
  box-shadow: var(--hover-shadow);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 80px;
  position: relative;
}

.hero-content {
  position: relative;
  z-index: 10;
}

.hero-title {
  font-size: 5.5rem;
  font-weight: 800;
  letter-spacing: -0.05em;
  margin-bottom: 1rem;
  /* Eye-catching iridescence Apple gradient */
  background: linear-gradient(135deg, #2ca2b4, #5598de 24%, #7f87ff 45%, #f65aad 76%, #ec3d43);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shine 6s linear infinite;
  background-size: 200% auto;
}

@keyframes shine {
  to {
    background-position: 200% center;
  }
}

.hero-subtitle {
  font-size: 1.7rem;
  color: var(--text-secondary);
  font-weight: 500;
  margin-bottom: 3rem;
}

.hero-contact {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.8);
  padding: 0.5rem 1rem;
  border-radius: 100px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.04);
  border: 1px solid rgba(0,0,0,0.03);
  transition: var(--transition);
}

.contact-item i {
  color: #007aff;
}

.contact-item.interactive:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 122, 255, 0.15);
  color: #007aff;
}

/* Typography Lead Text */
.lead-text {
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}
.lead-text p {
  font-size: 1.35rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.8;
}
.lead-text p:last-child {
  margin-bottom: 0;
}
.lead-text strong {
  color: var(--text-primary);
  font-weight: 700;
}

/* Grids */
.grid-4x {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}

/* Skill Cards */
.skill-card h3 {
  margin: 1rem 0;
  font-size: 1.3rem;
  color: var(--text-primary);
}

.skill-card ul {
  list-style: none;
  font-size: 1rem;
  color: var(--text-secondary);
}

.skill-card li {
  margin-bottom: 0.6rem;
  padding-left: 1.8rem;
  position: relative;
}

.skill-card li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: #007aff;
  font-weight: bold;
}

.skill-icon {
  font-size: 3rem;
  /* gradient icon */
  background: linear-gradient(135deg, #007aff, #34c759);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1rem;
  display: inline-block;
}

/* Timeline */
.timeline {
  position: relative;
  max-width: 850px;
  margin: 0 auto;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 30px;
  top: 0;
  height: 100%;
  width: 4px;
  background: rgba(0, 122, 255, 0.1);
  border-radius: 2px;
}

.timeline-meta {
  margin-bottom: 4rem;
  margin-left: 70px;
  padding: 1.5rem;
  background: linear-gradient(135deg, rgba(0, 122, 255, 0.05), rgba(52, 199, 89, 0.05));
  border-color: rgba(0, 122, 255, 0.1);
}

.timeline-meta strong {
  font-size: 1.2rem;
  color: #007aff;
}

.timeline-item {
  position: relative;
  margin-bottom: 4rem;
  padding-left: 70px;
}

.timeline-dot {
  position: absolute;
  left: 17px;
  top: 40px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #ffffff;
  border: 5px solid #007aff;
  box-shadow: 0 0 20px rgba(0, 122, 255, 0.4);
  z-index: 2;
  transition: var(--transition);
}

.timeline-item:hover .timeline-dot {
  transform: scale(1.2);
  border-color: #bf55ff;
}

.timeline-date {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #007aff;
  font-weight: 700;
  display: block;
  margin-bottom: 0.5rem;
}

.role-title {
  font-size: 1.6rem;
  margin-bottom: 0.3rem;
  color: var(--text-primary);
}

.role-location {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  font-weight: 500;
}

.role-achievements {
  list-style-type: none;
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.7;
}

.role-achievements li {
  position: relative;
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}
.role-achievements li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #007aff;
}

/* Certifications & Tools */
.tech-icon {
  font-size: 3rem;
  color: #ff2d55;
  margin-bottom: 1rem;
}

.minimal-list {
  list-style: none;
}
.minimal-list li {
  margin-bottom: 1.2rem;
  font-size: 1.05rem;
  color: var(--text-secondary);
}
.minimal-list strong {
  color: var(--text-primary);
}

.tool-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1rem;
}

.tag {
  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.06);
  padding: 0.6rem 1.2rem;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.03);
  transition: var(--transition);
  color: var(--text-primary);
}

.tag i {
  font-size: 1.2rem;
}

/* Let the devicons show their original brand colors */
.tag .ph {
  color: #007aff;
}

.tag:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(0, 122, 255, 0.1);
  border-color: rgba(0, 122, 255, 0.2);
  color: #007aff;
}

/* Flex Col Utility */
.flex-col {
  display: flex;
  flex-direction: column;
}

/* Animations */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-up {
  animation: fadeUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeUp {
  0% {
    opacity: 0;
    transform: translateY(40px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Footer */
.footer {
  border-top: 1px solid rgba(0,0,0,0.05);
  background: #ffffff;
}

.footer p {
  color: var(--text-muted);
}

/* Responsive */
@media (max-width: 768px) {
  .hero-title {
    font-size: 3.5rem;
  }
  .section-heading {
    font-size: 2.5rem;
  }
  .hero-subtitle {
    font-size: 1.3rem;
  }
  .timeline::before {
    left: 10px;
  }
  .timeline-dot {
    left: -3px;
    width: 26px;
    height: 26px;
  }
  .timeline-item, .timeline-meta {
    padding-left: 35px;
    margin-left: 0;
  }
  .nav-links {
    display: none;
  }
}
