/* ============================================
   GLASSMORPHIC RESUME LANDING PAGE
   Modern & Professional Design System
   ============================================ */

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary: #a0aec0;
  --primary-light: #cbd5e1;
  --primary-dark: #718096;
  --accent: #90a4b8;
  --accent-light: #b0c4d8;
  --text: #e8ecf1;
  --text-muted: #8a95a5;
  --text-dark: #0f1419;
  --glass-bg: rgba(255, 255, 255, 0.04);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
  --glass-hover-bg: rgba(255, 255, 255, 0.07);
  --radius: 16px;
  --radius-sm: 10px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  line-height: 1.6;
  font-weight: 450;
  min-height: 100vh;
  overflow-x: hidden;
  background: linear-gradient(160deg, #0d1117 0%, #131921 30%, #161b22 50%, #111820 75%, #0d1117 100%);
  background-attachment: fixed;
}

/* ---------- Animated Background ---------- */
.bg-orbs {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.bg-orbs .orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.15;
  animation: orbFloat 20s ease-in-out infinite;
}

.bg-orbs .orb:nth-child(1) {
  width: 600px;
  height: 600px;
  background: #334155;
  top: -15%;
  left: -10%;
  animation-duration: 28s;
}

.bg-orbs .orb:nth-child(2) {
  width: 450px;
  height: 450px;
  background: #475569;
  top: 50%;
  right: -12%;
  animation-duration: 32s;
  animation-delay: -5s;
}

.bg-orbs .orb:nth-child(3) {
  width: 400px;
  height: 400px;
  background: #3b4a5c;
  bottom: -10%;
  left: 25%;
  animation-duration: 24s;
  animation-delay: -10s;
}

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(30px, -40px) scale(1.05); }
  50% { transform: translate(-20px, 20px) scale(0.95); }
  75% { transform: translate(15px, 35px) scale(1.02); }
}

/* ---------- Glass Card Utility ---------- */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  box-shadow: var(--glass-shadow);
}

.glass:hover {
  background: var(--glass-hover-bg);
  border-color: rgba(255, 255, 255, 0.12);
}

/* ---------- Navigation ---------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1rem 2rem;
  transition: var(--transition);
}

.navbar.scrolled {
  background: rgba(13, 17, 23, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}

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

.nav-logo {
  font-family: 'Inter', sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  letter-spacing: 1px;
  transition: var(--transition);
}

.nav-logo:hover {
  color: var(--primary-light);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 0.25rem;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 550;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  position: relative;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: var(--transition);
  transform: translateX(-50%);
  border-radius: 1px;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 40%;
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  z-index: 1001;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

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

.hero-content {
  max-width: 800px;
  text-align: center;
}

.hero-avatar {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 50px rgba(100, 116, 139, 0.15);
  margin-bottom: 2rem;
  transition: var(--transition);
}

.hero-avatar:hover {
  transform: scale(1.03);
  box-shadow: 0 0 60px rgba(100, 116, 139, 0.25);
}

.hero-badge {
  display: inline-block;
  padding: 0.4rem 1.2rem;
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--primary-light);
  border: 1px solid rgba(160, 174, 192, 0.2);
  border-radius: 50px;
  background: rgba(160, 174, 192, 0.06);
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-family: 'Inter', sans-serif;
  font-size: clamp(2.5rem, 6vw, 4.2rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 1rem;
  letter-spacing: -1.5px;
}

.hero h1 .gradient-text {
  background: linear-gradient(135deg, #e2e8f0, #94a3b8);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.1rem;
  font-weight: 450;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto 2.5rem;
  line-height: 1.75;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  cursor: pointer;
  border: none;
  font-family: inherit;
}

.btn-primary {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-primary:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.btn-glass {
  background: var(--glass-bg);
  color: var(--text-muted);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.btn-glass:hover {
  background: var(--glass-hover-bg);
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

.btn svg {
  width: 18px;
  height: 18px;
}

/* ---------- Sections ---------- */
.section {
  position: relative;
  z-index: 1;
  padding: 5rem 2rem;
}

.section-container {
  max-width: 1100px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--primary-dark);
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: 'Inter', sans-serif;
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -1px;
  margin-bottom: 1rem;
}

.section-desc {
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto;
  font-size: 1rem;
  font-weight: 450;
}

/* ---------- Competencies Grid ---------- */
.competencies-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.competency-card {
  padding: 2rem;
  transition: var(--transition);
}

.competency-card:hover {
  transform: translateY(-4px);
}

.competency-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--primary);
  margin-bottom: 1.25rem;
  font-size: 1.3rem;
}

.competency-card h3 {
  font-size: 1.05rem;
  font-weight: 650;
  margin-bottom: 0.6rem;
}

.competency-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 450;
  line-height: 1.65;
}

/* ---------- Stats Row ---------- */
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-top: 4rem;
}

.stat-card {
  text-align: center;
  padding: 2rem 1.5rem;
  transition: var(--transition);
}

.stat-card:hover {
  transform: translateY(-3px);
}

.stat-number {
  font-family: 'Inter', sans-serif;
  font-size: 2.75rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
}

.stat-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 550;
  margin-top: 0.25rem;
  letter-spacing: 0.3px;
}

/* ---------- Experience Timeline ---------- */
.timeline {
  position: relative;
  max-width: 700px;
  margin: 0 auto;
  padding-left: 2rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.12), rgba(255,255,255,0.04), transparent);
  border-radius: 1px;
}

.timeline-item {
  position: relative;
  padding: 1.75rem;
  margin-bottom: 1.5rem;
  transition: var(--transition);
}

.timeline-item:hover {
  transform: translateX(4px);
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -2.6rem;
  top: 2rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--primary-dark);
  border: 2px solid #161b22;
  box-shadow: 0 0 8px rgba(113, 128, 150, 0.3);
}

.timeline-date {
  font-size: 0.78rem;
  font-weight: 650;
  color: var(--primary-dark);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}

.timeline-item h3 {
  font-size: 1.05rem;
  font-weight: 650;
  margin-bottom: 0.25rem;
}

.timeline-item h4 {
  font-size: 0.88rem;
  font-weight: 550;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.timeline-item p {
  font-size: 0.88rem;
  font-weight: 450;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ---------- Contact Section ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.5rem 1.75rem;
  text-decoration: none;
  color: var(--text);
  transition: var(--transition);
}

.contact-card:hover {
  transform: translateY(-3px);
}

.contact-icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--primary);
  font-size: 1.2rem;
}

.contact-info h3 {
  font-size: 0.95rem;
  font-weight: 650;
  margin-bottom: 0.15rem;
}

.contact-info p {
  font-size: 0.85rem;
  font-weight: 450;
  color: var(--text-muted);
}

/* ---------- Contact Form ---------- */
.contact-form-wrapper {
  max-width: 640px;
  margin: 2.5rem auto 0;
}

.contact-form {
  padding: 2.5rem;
}

.form-title {
  font-size: 1.1rem;
  font-weight: 650;
  margin-bottom: 1.75rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.3px;
  margin-bottom: 0.5rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 450;
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  outline: none;
  transition: var(--transition);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(138, 149, 165, 0.5);
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.05);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-submit {
  width: 100%;
  justify-content: center;
  padding: 0.9rem 2rem;
  margin-top: 0.25rem;
}

.form-status {
  text-align: center;
  margin-top: 1rem;
  font-size: 0.85rem;
  font-weight: 550;
  min-height: 1.5rem;
}

.form-status.success {
  color: #6ee7b7;
}

.form-status.error {
  color: #fca5a5;
}

@media (max-width: 480px) {
  .form-row {
    grid-template-columns: 1fr;
  }

  .contact-form {
    padding: 1.75rem 1.25rem;
  }
}

/* ---------- Footer ---------- */
.footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 2.5rem 2rem;
  border-top: 1px solid var(--glass-border);
}

.footer p {
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 450;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 0.75rem;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 550;
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--text);
}

/* ---------- Resume / Contact Page ---------- */
.resume-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6rem 2rem;
  position: relative;
  z-index: 1;
}

.resume-card {
  max-width: 520px;
  width: 100%;
  padding: 3rem;
  text-align: center;
}

.resume-card .resume-icon {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--primary);
  font-size: 2rem;
  margin: 0 auto 1.75rem;
}

.resume-card h1 {
  font-family: 'Inter', sans-serif;
  font-size: 1.85rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 0.75rem;
}

.resume-card p {
  color: var(--text-muted);
  margin-bottom: 2rem;
  line-height: 1.7;
  font-size: 0.92rem;
  font-weight: 450;
}

.resume-card .btn {
  width: 100%;
  justify-content: center;
  padding: 1rem 2rem;
  font-size: 0.95rem;
}

.resume-card .btn + .btn {
  margin-top: 0.75rem;
}

.resume-notice {
  margin-top: 1.75rem;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.resume-notice p {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0;
  line-height: 1.5;
  font-weight: 450;
}

/* ---------- Scroll Animations ---------- */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    inset: 0;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: rgba(13, 17, 23, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .nav-links.open {
    transform: translateX(0);
  }

  .nav-links a {
    font-size: 1.15rem;
    padding: 0.75rem 1.5rem;
  }

  .hero {
    padding: 5rem 1.5rem 3rem;
  }

  .hero-avatar {
    width: 105px;
    height: 105px;
  }

  .section {
    padding: 3.5rem 1.25rem;
  }

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

  .stats-row {
    grid-template-columns: 1fr 1fr;
  }

  .timeline {
    padding-left: 1.5rem;
  }

  .timeline-item::before {
    left: -2.1rem;
  }

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

  .resume-card {
    padding: 2rem 1.5rem;
  }
}

@media (max-width: 480px) {
  .stats-row {
    grid-template-columns: 1fr;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .hero-buttons .btn {
    width: 100%;
    justify-content: center;
  }
}
