/* ===== Android Developer Portfolio Theme =====
   Dark theme inspired by Android Studio
   Accent: Android Green #3DDC84
   ============================================== */

:root {
  --bg-primary:    #0d1117;
  --bg-secondary:  #161b22;
  --bg-card:       #1c2333;
  --bg-elevated:   #21283b;
  --border:        #30363d;
  --border-light:  rgba(61, 220, 132, 0.15);

  --android-green: #3DDC84;
  --android-dark:  #2bb86b;
  --android-glow:  rgba(61, 220, 132, 0.12);
  --blue-accent:   #58a6ff;
  --purple-accent: #bc8cff;
  --orange-accent: #f0883e;

  --text-primary:  #e6edf3;
  --text-secondary:#8b949e;
  --text-muted:    #6e7681;
}

/* ===== Preloader ===== */
.preloader {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.preloader.hidden {
  opacity: 0;
  visibility: hidden;
}

.preloader-content {
  text-align: center;
}

.preloader-welcome {
  font-family: 'Inter', sans-serif;
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.08em;
  margin-bottom: 24px;
  opacity: 0;
  transform: translateY(10px);
  animation: preFadeUp 0.6s ease 0.2s forwards;
}

.preloader-bar {
  width: 220px;
  height: 3px;
  background: var(--border);
  border-radius: 3px;
  margin: 0 auto;
  overflow: hidden;
  opacity: 0;
  animation: preFadeIn 0.3s ease 0.6s forwards;
}

.preloader-bar-fill {
  width: 0;
  height: 100%;
  background: var(--android-green);
  border-radius: 3px;
  animation: preBarFill 1.4s ease 0.8s forwards;
  box-shadow: 0 0 10px rgba(61, 220, 132, 0.5);
}

@keyframes preFadeUp {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes preFadeIn {
  to { opacity: 1; }
}

@keyframes preBarFill {
  to { width: 100%; }
}

/* ===== Mouse Glow ===== */
.mouse-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(61,220,132,0.12) 0%, rgba(61,220,132,0.04) 40%, transparent 70%);
  pointer-events: none;
  z-index: 2;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s ease;
  opacity: 0;
  will-change: auto;
}

.mouse-glow.active {
  opacity: 1;
}

/* ===== Reset & Base ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--text-primary);
  background: var(--bg-primary);
  line-height: 1.7;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Navbar ===== */
.navbar {
  position: fixed;
  top: 0; left: 0; width: 100%;
  z-index: 1000;
  background: rgba(13, 17, 23, 0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s;
}

.navbar.scrolled {
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-logo {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--android-green);
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-logo-img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--android-green);
}

.logo-bracket {
  color: var(--text-muted);
  font-weight: 400;
}

.nav-links { display: flex; gap: 32px; }

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  transition: color 0.3s;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--android-green);
  transition: width 0.3s;
}

.nav-links a:hover, .nav-links a.active { color: var(--text-primary); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px; height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--bg-primary);
  overflow: hidden;
}

/* Floating code background */
.code-rain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.code-line {
  position: absolute;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  white-space: nowrap;
  opacity: 0.06;
  color: var(--android-green);
  animation: floatCode 20s linear infinite;
}

.code-line .kw { color: var(--purple-accent); }
.code-line .fn { color: var(--blue-accent); }
.code-line .cls { color: var(--orange-accent); }
.code-line .str { color: var(--android-green); }

.c1 { top: 8%; left: -20%; animation-delay: 0s; animation-duration: 22s; }
.c2 { top: 18%; left: -30%; animation-delay: 3s; animation-duration: 25s; }
.c3 { top: 32%; left: -25%; animation-delay: 6s; animation-duration: 20s; }
.c4 { top: 48%; left: -35%; animation-delay: 2s; animation-duration: 28s; }
.c5 { top: 60%; left: -20%; animation-delay: 8s; animation-duration: 23s; }
.c6 { top: 72%; left: -30%; animation-delay: 4s; animation-duration: 26s; }
.c7 { top: 85%; left: -25%; animation-delay: 10s; animation-duration: 21s; }
.c8 { top: 94%; left: -35%; animation-delay: 7s; animation-duration: 24s; }

@keyframes floatCode {
  from { transform: translateX(0); }
  to { transform: translateX(calc(100vw + 400px)); }
}

/* Hero Grid */
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 60px;
  align-items: center;
  padding: 120px 0 80px;
  position: relative;
  z-index: 1;
}

/* Hero Text */
.hero-text { position: relative; }

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 50px;
  background: var(--android-glow);
  border: 1px solid var(--border-light);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--android-green);
  margin-bottom: 24px;
}

.status-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--android-green);
  animation: pulse 2s ease infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(61, 220, 132, 0.4); }
  50% { opacity: 0.8; box-shadow: 0 0 0 8px rgba(61, 220, 132, 0); }
}

/* Typewriter wrapper */
.typewriter-wrapper {
  position: relative;
  min-height: 260px;
}

.typewriter-cursor {
  display: inline;
  font-weight: 300;
  color: var(--android-green);
  animation: cursorBlink 0.7s step-end infinite;
  font-size: 1.35rem;
}

@keyframes cursorBlink {
  from, to { opacity: 1; }
  50% { opacity: 0; }
}

#heroGreeting {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--text-secondary);
  letter-spacing: 0.1em;
  margin-bottom: 12px;
  min-height: 1.4em;
}

#heroGreeting::before {
  content: '// ';
  color: var(--text-muted);
}

#heroName {
  font-family: 'Inter', sans-serif;
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--text-primary);
  margin-bottom: 16px;
  min-height: 2.4em;
}

#heroRoles {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--android-green);
  margin-bottom: 12px;
  min-height: 1.5em;
}

#heroSubtitle {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 520px;
  margin-bottom: 32px;
  min-height: 1.5em;
}

/* Stats */
.hero-stats {
  display: flex;
  gap: 32px;
  margin-bottom: 32px;
  padding: 20px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.stat { text-align: left; }

.stat-clickable {
  text-decoration: none;
  color: inherit;
  transition: all 0.25s ease;
  border-radius: 8px;
  padding: 4px 8px;
  margin: -4px -8px;
}

.stat-clickable:hover {
  background: var(--android-glow);
  transform: translateY(-2px);
}

.stat-number {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--android-green);
}

.stat-plus {
  font-family: 'JetBrains Mono', monospace;
  font-size: 1.4rem;
  color: var(--android-green);
}

.stat-label {
  display: block;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* CTA buttons */
.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: all 0.3s;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--android-green);
  color: var(--bg-primary);
}

.btn-primary:hover {
  background: var(--android-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(61, 220, 132, 0.3);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border);
}

.btn-outline:hover {
  border-color: var(--android-green);
  color: var(--android-green);
  transform: translateY(-2px);
}

.btn-resume {
  background: var(--bg-elevated);
  color: var(--text-secondary);
  border: 1px solid var(--border);
}

.btn-resume:hover {
  border-color: var(--android-green);
  color: var(--android-green);
  transform: translateY(-2px);
}

/* Socials */
.hero-socials { display: flex; gap: 12px; }

.hero-socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px; height: 42px;
  border-radius: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  transition: all 0.3s;
}

.hero-socials a:hover {
  color: var(--android-green);
  border-color: var(--android-green);
  transform: translateY(-3px);
  box-shadow: 0 4px 16px rgba(61, 220, 132, 0.15);
}

/* ===== Phone Mockup ===== */
.phone-mockup { perspective: 1000px; }

.phone-frame {
  width: 280px;
  height: 560px;
  background: var(--bg-secondary);
  border-radius: 36px;
  border: 3px solid var(--border);
  overflow: hidden;
  position: relative;
  box-shadow:
    0 0 0 1px rgba(61, 220, 132, 0.05),
    0 20px 60px rgba(0, 0, 0, 0.4),
    0 0 80px rgba(61, 220, 132, 0.05);
  animation: phoneFloat 6s ease-in-out infinite;
  margin: 0 auto;
}

@keyframes phoneFloat {
  0%, 100% { transform: translateY(0) rotateY(-5deg); }
  50% { transform: translateY(-12px) rotateY(0deg); }
}

.phone-notch {
  width: 120px;
  height: 24px;
  background: var(--bg-primary);
  border-radius: 0 0 16px 16px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.phone-screen {
  height: 100%;
  display: flex;
  flex-direction: column;
  background: var(--bg-primary);
}

.app-header {
  padding: 0 16px;
}

.app-status-bar {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 0.7rem;
  color: var(--text-muted);
}

.app-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.95rem;
  border-bottom: 1px solid var(--border);
}

.app-body {
  flex: 1;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: hidden;
}

.chat-bubble {
  max-width: 85%;
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 0.78rem;
  line-height: 1.5;
  animation: bubbleIn 0.4s ease forwards;
  opacity: 0;
}

.chat-bubble:nth-child(1) { animation-delay: 2s; }
.chat-bubble:nth-child(2) { animation-delay: 3.5s; }
.chat-bubble:nth-child(3) { animation-delay: 5s; }
.chat-bubble:nth-child(4) { animation-delay: 6.5s; }

@keyframes bubbleIn {
  from { opacity: 0; transform: translateY(10px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.chat-bubble.incoming {
  background: var(--bg-elevated);
  color: var(--text-primary);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}

.chat-bubble.outgoing {
  background: var(--android-green);
  color: var(--bg-primary);
  align-self: flex-end;
  border-bottom-right-radius: 4px;
  font-weight: 500;
}

.chat-name {
  display: block;
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--android-green);
  margin-bottom: 2px;
}

.app-bottom-nav {
  display: flex;
  justify-content: space-around;
  padding: 10px 0;
  border-top: 1px solid var(--border);
  background: var(--bg-secondary);
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  font-size: 0.6rem;
  color: var(--text-muted);
}

.nav-item.active { color: var(--android-green); }

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.mouse {
  width: 24px;
  height: 38px;
  border-radius: 12px;
  border: 2px solid var(--text-muted);
  position: relative;
}

.wheel {
  width: 4px;
  height: 8px;
  border-radius: 2px;
  background: var(--android-green);
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  animation: scrollWheel 2s ease infinite;
}

@keyframes scrollWheel {
  0% { opacity: 1; transform: translateX(-50%) translateY(0); }
  100% { opacity: 0; transform: translateX(-50%) translateY(14px); }
}

/* Hidden/visible states */
.hero-hidden {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.hero-hidden.hero-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Sections ===== */
.section { padding: 100px 0; }

.section-alt { background: var(--bg-secondary); }

.section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 48px;
  text-align: center;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 48px; height: 3px;
  background: var(--android-green);
  margin: 16px auto 0;
  border-radius: 2px;
}

/* ===== About ===== */
.about-content {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.about-content p {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.about-content strong { color: var(--android-green); }

/* ===== Skills ===== */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.skill-card {
  background: var(--bg-card);
  border-radius: 12px;
  padding: 28px 24px;
  text-align: center;
  border: 1px solid var(--border);
  transition: all 0.3s;
}

.skill-card:hover {
  border-color: var(--android-green);
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(61, 220, 132, 0.08);
}

.skill-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px; height: 56px;
  border-radius: 12px;
  background: var(--android-glow);
  color: var(--android-green);
  margin-bottom: 16px;
}

.skill-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 14px;
  color: var(--text-primary);
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
}

.tag {
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 500;
  font-family: 'JetBrains Mono', monospace;
  background: var(--bg-elevated);
  color: var(--text-secondary);
  border: 1px solid var(--border);
}

/* ===== Projects ===== */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 24px;
}

/* ===== Project Filters ===== */
.project-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
  justify-content: center;
}

.filter-btn {
  padding: 8px 20px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-secondary);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-btn:hover {
  border-color: rgba(61, 220, 132, 0.4);
  color: var(--text-primary);
}

.filter-btn.active {
  background: var(--android-green);
  border-color: var(--android-green);
  color: var(--bg-primary);
  font-weight: 600;
  box-shadow: 0 0 16px rgba(61, 220, 132, 0.25);
}

.project-card {
  transition: all 0.4s ease;
}

.project-card.filter-hidden {
  opacity: 0;
  transform: scale(0.9);
  pointer-events: none;
  position: absolute;
  visibility: hidden;
}

/* ===== Internship ===== */
.internship-card {
  background: var(--bg-card);
  border-radius: 12px;
  padding: 32px 28px;
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  transition: all 0.3s;
}

.internship-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 3px;
  background: linear-gradient(90deg, var(--android-green), var(--blue-accent));
}

.internship-card:hover {
  border-color: rgba(61, 220, 132, 0.3);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}

.internship-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}

.internship-header h3 {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.internship-role {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.internship-date {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--android-green);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 12px;
  border-radius: 6px;
  background: var(--android-glow);
  border: 1px solid var(--border-light);
  white-space: nowrap;
}

.internship-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.internship-list li {
  position: relative;
  padding-left: 20px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.internship-list li::before {
  content: '>';
  position: absolute;
  left: 0;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  color: var(--android-green);
}

.project-card {
  background: var(--bg-card);
  border-radius: 12px;
  padding: 32px 28px;
  border: 1px solid var(--border);
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}

.project-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 3px;
  background: linear-gradient(90deg, var(--android-green), var(--blue-accent));
}

.project-card:hover {
  border-color: rgba(61, 220, 132, 0.3);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.project-badge {
  display: inline-block;
  padding: 3px 12px;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 600;
  font-family: 'JetBrains Mono', monospace;
  background: var(--android-glow);
  color: var(--android-green);
  margin-bottom: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid var(--border-light);
}

.project-card h3 {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.project-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 18px;
  line-height: 1.7;
}

.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.project-tech span {
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 500;
  font-family: 'JetBrains Mono', monospace;
  background: var(--bg-elevated);
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 500;
  font-family: 'JetBrains Mono', monospace;
  color: var(--android-green);
  background: var(--android-glow);
  border: 1px solid var(--border-light);
  text-decoration: none;
  transition: all 0.25s ease;
}

.project-link:hover {
  background: rgba(61, 220, 132, 0.2);
  border-color: var(--android-green);
  transform: translateX(4px);
  box-shadow: 0 0 12px rgba(61, 220, 132, 0.15);
}

/* ===== Timeline ===== */
.timeline {
  max-width: 700px;
  margin: 0 auto;
  position: relative;
  padding-left: 32px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 7px; top: 0; bottom: 0;
  width: 2px;
  background: var(--border);
}

.timeline-item {
  position: relative;
  margin-bottom: 28px;
}

.timeline-dot {
  position: absolute;
  left: -32px; top: 6px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--bg-primary);
  border: 3px solid var(--border);
  z-index: 1;
}

.timeline-item.highlight .timeline-dot {
  background: var(--android-green);
  border-color: var(--android-green);
  box-shadow: 0 0 12px rgba(61, 220, 132, 0.3);
}

.timeline-content {
  background: var(--bg-card);
  border-radius: 10px;
  padding: 20px 24px;
  border: 1px solid var(--border);
  transition: all 0.3s;
}

.timeline-item:hover .timeline-content {
  border-color: rgba(61, 220, 132, 0.2);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.timeline-date {
  display: inline-block;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--android-green);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}

.timeline-content h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.timeline-content p {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.cert-link {
  display: inline-block;
  margin-top: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--android-green);
  text-decoration: none;
  border-bottom: 1px dashed rgba(61, 220, 132, 0.4);
  padding-bottom: 1px;
  transition: all 0.25s ease;
}

.cert-link:hover {
  border-bottom-color: var(--android-green);
  text-shadow: 0 0 8px rgba(61, 220, 132, 0.3);
}

.cert-soon {
  display: inline-block;
  margin-top: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-muted);
  font-style: italic;
}

/* ===== Education ===== */
.education-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.edu-card {
  background: var(--bg-card);
  border-radius: 12px;
  padding: 28px 24px;
  border: 1px solid var(--border);
  transition: all 0.3s;
}

.edu-card:hover {
  border-color: rgba(61, 220, 132, 0.2);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.edu-year {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--android-green);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}

.edu-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.edu-location {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.edu-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 10px;
}

.edu-score {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 6px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
  font-weight: 600;
  background: var(--android-glow);
  color: var(--android-green);
  border: 1px solid var(--border-light);
}

/* ===== Contact ===== */
.contact-content {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.contact-content > p {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-bottom: 36px;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}

.contact-item {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 28px;
  border-radius: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-primary);
  transition: all 0.3s;
  min-width: 280px;
  justify-content: center;
}

.contact-item svg { color: var(--android-green); flex-shrink: 0; }

.contact-item:hover {
  transform: translateY(-3px);
  border-color: var(--android-green);
  box-shadow: 0 4px 20px rgba(61, 220, 132, 0.1);
}

/* ===== Footer ===== */
.footer {
  padding: 32px 0;
  text-align: center;
  background: var(--bg-secondary);
  color: var(--text-muted);
  font-size: 0.82rem;
  border-top: 1px solid var(--border);
}

/* ===== Scroll Animations ===== */
[data-animate] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-animate].visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .hero-text { order: 1; }
  .phone-mockup { order: 2; }

  .hero-stats { justify-content: center; }
  .hero-cta { justify-content: center; }
  .hero-socials { justify-content: center; }
  .status-badge { margin-left: auto; margin-right: auto; }
  #heroSubtitle { margin-left: auto; margin-right: auto; }

  .internship-header { flex-direction: column; }
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }

  .nav-links {
    position: fixed;
    top: 64px; left: 0; right: 0;
    background: rgba(13, 17, 23, 0.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    flex-direction: column;
    align-items: center;
    padding: 32px 0;
    gap: 24px;
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s;
    border-bottom: 1px solid var(--border);
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }

  .section { padding: 72px 0; }
  .projects-grid { grid-template-columns: 1fr; }
  .education-grid { grid-template-columns: 1fr; }

  .hero-cta {
    flex-direction: column;
    align-items: center;
  }

  .hero-stats { flex-direction: column; gap: 16px; text-align: center; }

  .phone-frame {
    width: 220px;
    height: 440px;
  }

  .project-filters { justify-content: center; }

  .filter-btn {
    padding: 6px 14px;
    font-size: 0.72rem;
  }

  .code-rain { display: none; }

  .mouse-glow { display: none; }

  .scroll-indicator { display: none; }

  .internship-card { padding: 24px 20px; }

  .internship-list li { font-size: 0.85rem; }

  .timeline { padding-left: 24px; }

  .timeline-dot { left: -24px; width: 12px; height: 12px; }

  .skill-card { padding: 22px 18px; }

  .btn { padding: 10px 18px; font-size: 0.82rem; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }

  #heroName { font-size: 1.8rem; }
  .hero-greeting { font-size: 0.9rem; }
  .hero-roles { font-size: 0.85rem; }
  .hero-subtitle { font-size: 0.8rem; }

  .section-title { font-size: 1.4rem; }
  .section { padding: 56px 0; }

  .skills-grid { grid-template-columns: 1fr; }

  .contact-item { min-width: unset; width: 100%; padding: 12px 16px; font-size: 0.82rem; }
  .contact-content > p { font-size: 0.92rem; }

  .typewriter-wrapper { min-height: 280px; }

  .phone-mockup { display: none; }

  .hero { min-height: auto; padding: 120px 0 60px; }

  .hero-stats { gap: 12px; }
  .stat-number { font-size: 1.4rem; }
  .stat-label { font-size: 0.7rem; }

  .project-card { padding: 24px 18px; }
  .project-card h3 { font-size: 1.05rem; }
  .project-card p { font-size: 0.82rem; }
  .project-link { font-size: 0.75rem; padding: 6px 12px; }
  .project-badge { font-size: 0.68rem; }

  .filter-btn {
    padding: 6px 12px;
    font-size: 0.68rem;
  }

  .edu-card { padding: 22px 18px; }
  .edu-card h3 { font-size: 0.95rem; }

  .internship-card { padding: 20px 16px; }
  .internship-header h3 { font-size: 1rem; }
  .internship-list li { font-size: 0.82rem; padding-left: 16px; }

  .timeline-content { padding: 16px 18px; }
  .timeline-content h3 { font-size: 0.92rem; }
  .timeline-content p { font-size: 0.8rem; }

  .preloader-welcome { font-size: 1.8rem; }
  .preloader-bar { width: 160px; }

  .hero-socials a svg { width: 18px; height: 18px; }

  .footer { padding: 24px 0; font-size: 0.75rem; }
}

@media (max-width: 360px) {
  .container { padding: 0 12px; }
  #heroName { font-size: 1.5rem; }
  .hero-roles { font-size: 0.78rem; }
  .section-title { font-size: 1.25rem; }
  .stat-number { font-size: 1.2rem; }
  .btn { padding: 8px 14px; font-size: 0.78rem; }
}
