/* ==========================================
   RESUME WEBSITE — DARK THEME
   ========================================== */

/* --- CSS Variables --- */
:root {
  --bg-primary: #0a0a0f;
  --bg-secondary: #0f0f17;
  --bg-tertiary: #151520;
  --bg-card: #12121c;
  --bg-card-hover: #1a1a28;

  --text-primary: #e4e4e7;
  --text-secondary: #a1a1aa;
  --text-muted: #6b6b76;

  --accent: #64ffda;
  --accent-dim: rgba(100, 255, 218, 0.1);
  --accent-glow: rgba(100, 255, 218, 0.15);
  --accent-secondary: #7c83ff;
  --accent-secondary-dim: rgba(124, 131, 255, 0.1);

  --border: rgba(255, 255, 255, 0.06);
  --border-hover: rgba(255, 255, 255, 0.12);

  --gradient-accent: linear-gradient(135deg, var(--accent), var(--accent-secondary));

  --nav-height: 70px;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  --transition-fast: 0.2s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 20px var(--accent-glow);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background-color: var(--accent-dim);
  color: var(--accent);
}

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

a:hover {
  color: var(--accent);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

/* --- Particle Canvas --- */
#particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* --- Custom Cursor --- */
.cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 10000;
  transition: transform 0.1s ease, opacity 0.3s ease;
  transform: translate(-50%, -50%);
  opacity: 0;
}

.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  width: 36px;
  height: 36px;
  border: 1.5px solid var(--accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 10000;
  transition: width 0.3s ease, height 0.3s ease, border-color 0.3s ease, opacity 0.3s ease;
  transform: translate(-50%, -50%);
  opacity: 0;
}

.cursor-hover .cursor-ring {
  width: 50px;
  height: 50px;
  border-color: var(--accent-secondary);
}

body:hover .cursor-dot,
body:hover .cursor-ring {
  opacity: 1;
}

/* --- Scrollbar --- */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: var(--bg-tertiary);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

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

.section {
  padding: 120px 0;
  position: relative;
  z-index: 1;
}

/* --- Accent utility --- */
.accent {
  color: var(--accent);
}

.highlight {
  color: var(--accent);
  font-weight: 500;
}

.highlight-link {
  color: var(--accent);
  position: relative;
}

.highlight-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--transition-base);
}

.highlight-link:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* --- Section Title --- */
.section-title {
  font-size: clamp(1.6rem, 3vw, 2rem);
  font-weight: 700;
  margin-bottom: 3rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  white-space: nowrap;
}

.section-title::after {
  content: '';
  display: block;
  width: 100%;
  max-width: 300px;
  height: 1px;
  background: var(--border);
}

.section-number {
  font-family: var(--font-mono);
  color: var(--accent);
  font-size: 1rem;
  font-weight: 500;
}

/* =========================
   NAVIGATION
   ========================= */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  z-index: 1000;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(10, 10, 15, 0.85);
  border-bottom: 1px solid var(--border);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.nav.hidden {
  transform: translateY(-100%);
}

.nav.scrolled {
  box-shadow: var(--shadow-md);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.5px;
}

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

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-link {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-secondary);
  padding: 0.5rem 1rem;
  border-radius: 6px;
  transition: color var(--transition-fast), background var(--transition-fast);
}

.nav-link:hover {
  color: var(--accent);
  background: var(--accent-dim);
}

.nav-link.active {
  color: var(--accent);
}

.nav-resume-btn {
  border: 1px solid var(--accent);
  color: var(--accent) !important;
  margin-left: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.nav-resume-btn:hover {
  background: var(--accent-dim) !important;
}

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

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

.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
   ========================= */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 2rem;
  padding-top: var(--nav-height);
  position: relative;
  z-index: 1;
}

.hero-content {
  max-width: 900px;
  margin: 0 auto;
  width: 100%;
}

.hero-greeting {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-family: var(--font-mono);
  font-size: 1rem;
  color: var(--accent);
  margin-bottom: 1.25rem;
}

.hero-line {
  display: block;
  width: 40px;
  height: 1px;
  background: var(--accent);
}

.hero-name {
  font-size: clamp(2.8rem, 7vw, 5rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 0.5rem;
  letter-spacing: -2px;
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--text-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-name .accent {
  -webkit-text-fill-color: var(--accent);
}

.hero-title {
  font-size: clamp(1.3rem, 3.5vw, 2.2rem);
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  line-height: 1.3;
}

.typed-wrapper {
  color: var(--accent);
}

.typed-cursor {
  animation: blink 1s infinite;
  color: var(--accent);
  font-weight: 300;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.hero-description {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 560px;
  margin-bottom: 2.5rem;
  line-height: 1.8;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  margin-bottom: 4rem;
  flex-wrap: wrap;
}

/* --- Hero Stats --- */
.hero-stats {
  display: flex;
  gap: 3rem;
  flex-wrap: wrap;
}

.stat {
  text-align: center;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
}

.stat .accent {
  font-size: 2rem;
  font-weight: 700;
}

.stat-label {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* --- Scroll indicator --- */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  animation: float 3s ease-in-out infinite;
}

.scroll-indicator span {
  font-size: 0.7rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
  letter-spacing: 2px;
  text-transform: uppercase;
}

.mouse {
  width: 22px;
  height: 34px;
  border: 2px solid var(--text-muted);
  border-radius: 12px;
  display: flex;
  justify-content: center;
  padding-top: 6px;
}

.mouse-wheel {
  width: 3px;
  height: 8px;
  background: var(--accent);
  border-radius: 2px;
  animation: scroll-wheel 2s ease-in-out infinite;
}

@keyframes scroll-wheel {
  0% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(10px); }
}

@keyframes float {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-10px); }
}

/* =========================
   BUTTONS
   ========================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 500;
  border-radius: 8px;
  cursor: pointer;
  transition: all var(--transition-base);
  border: none;
  text-decoration: none;
}

.btn-primary {
  background: var(--accent-dim);
  color: var(--accent);
  border: 1px solid var(--accent);
}

.btn-primary:hover {
  background: rgba(100, 255, 218, 0.2);
  box-shadow: var(--shadow-glow);
  transform: translateY(-2px);
  color: var(--accent);
}

.btn-outline {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border-hover);
}

.btn-outline:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-dim);
  transform: translateY(-2px);
}

.btn-large {
  padding: 1rem 2.5rem;
  font-size: 1rem;
}

/* =========================
   ABOUT
   ========================= */
.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
  align-items: start;
}

.about-text p {
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
  font-size: 0.95rem;
}

.about-quick-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-top: 2rem;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-family: var(--font-mono);
}

.info-item i {
  color: var(--accent);
  font-size: 0.9rem;
  width: 16px;
}

.about-highlights {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.highlight-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  transition: all var(--transition-base);
}

.highlight-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}

.highlight-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--accent-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
}

.highlight-icon i {
  color: var(--accent);
  font-size: 1rem;
}

.highlight-card h3 {
  font-size: 0.95rem;
  margin-bottom: 0.4rem;
  font-weight: 600;
}

.highlight-card p {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* =========================
   TIMELINE (Experience)
   ========================= */
.timeline {
  position: relative;
  padding-left: 2rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 5px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent), var(--accent-secondary), transparent);
}

.timeline-item {
  position: relative;
  margin-bottom: 3rem;
  padding-left: 2rem;
}

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

.timeline-marker {
  position: absolute;
  left: -2rem;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--bg-primary);
  border: 2px solid var(--accent);
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.timeline-marker-inner {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
}

.timeline-content {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.75rem;
  transition: all var(--transition-base);
}

.timeline-content:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-md);
}

.timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
  gap: 1rem;
  flex-wrap: wrap;
}

.timeline-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.timeline-company a {
  color: var(--accent);
  font-size: 0.95rem;
  font-weight: 500;
}

.timeline-date {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--bg-tertiary);
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
}

.timeline-details {
  list-style: none;
  margin-bottom: 1rem;
}

.timeline-details li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.timeline-details li::before {
  content: '▹';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-size: 0.9rem;
}

.timeline-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent);
  background: var(--accent-dim);
  padding: 0.25rem 0.65rem;
  border-radius: 4px;
}

/* =========================
   PROJECTS
   ========================= */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.25rem;
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.project-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-base);
}

.project-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.project-card:hover::before {
  transform: scaleX(1);
}

.project-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.project-card-icon i {
  font-size: 2rem;
  color: var(--accent);
}

.project-card-links {
  display: flex;
  gap: 0.75rem;
}

.project-card-links a {
  color: var(--text-muted);
  font-size: 1.1rem;
  transition: color var(--transition-fast);
}

.project-card-links a:hover {
  color: var(--accent);
}

.project-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  transition: color var(--transition-fast);
}

.project-card:hover .project-card-title {
  color: var(--accent);
}

.project-card-description {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.7;
  flex-grow: 1;
  margin-bottom: 1.5rem;
}

.project-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.project-card-tags span {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
}

.project-card-tags span::before {
  content: '#';
  color: var(--accent);
}

/* =========================
   SKILLS
   ========================= */
.skills-categories {
  display: grid;
  gap: 2.5rem;
}

.skill-category-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text-primary);
}

.skill-category-title i {
  color: var(--accent);
  font-size: 1rem;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 1rem;
}

.skill-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  padding: 1.25rem 0.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: all var(--transition-base);
  cursor: default;
}

.skill-item i {
  font-size: 2rem;
  transition: transform var(--transition-base);
}

.skill-item span {
  font-size: 0.78rem;
  font-family: var(--font-mono);
  color: var(--text-secondary);
  text-align: center;
}

.skill-item:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}

.skill-item:hover i {
  transform: scale(1.2);
}

/* =========================
   EDUCATION
   ========================= */
.education-grid {
  display: grid;
  gap: 1.5rem;
}

.education-card {
  display: flex;
  gap: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  transition: all var(--transition-base);
}

.education-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-md);
}

.education-icon {
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: var(--accent-dim);
  display: flex;
  align-items: center;
  justify-content: center;
}

.education-icon i {
  font-size: 1.25rem;
  color: var(--accent);
}

.education-info h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.education-info h4 {
  margin-bottom: 0.5rem;
}

.education-info h4 a {
  color: var(--accent);
  font-size: 0.95rem;
  font-weight: 500;
}

.education-date {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--bg-tertiary);
  padding: 0.25rem 0.7rem;
  border-radius: 20px;
  margin-bottom: 0.75rem;
}

.education-info p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.education-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.education-highlights span {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent);
  background: var(--accent-dim);
  padding: 0.3rem 0.7rem;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.education-highlights span i {
  font-size: 0.7rem;
}

/* --- Certifications --- */
.cert-list {
  list-style: none;
}

.cert-list li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
}

.cert-list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.cert-list li i {
  color: var(--accent);
  font-size: 1.2rem;
  margin-top: 0.15rem;
  flex-shrink: 0;
}

.cert-list li strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.15rem;
}

.cert-list li span {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

/* =========================
   CONTACT
   ========================= */
.contact-content {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.contact-description {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  line-height: 1.8;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  margin-top: 3rem;
}

.social-link {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--text-secondary);
  transition: all var(--transition-base);
}

.social-link:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-dim);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}

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

.footer-content p {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
}

.footer-content a {
  color: var(--accent);
}

.footer-note {
  margin-top: 0.35rem;
  font-size: 0.7rem !important;
}

/* =========================
   SIDE ELEMENTS
   ========================= */
.side-element {
  position: fixed;
  bottom: 0;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.side-left {
  left: 2rem;
}

.side-right {
  right: 2rem;
}

.side-social {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.side-social a {
  color: var(--text-muted);
  font-size: 1.1rem;
  transition: all var(--transition-base);
  padding: 2px;
}

.side-social a:hover {
  color: var(--accent);
  transform: translateY(-3px);
}

.side-email {
  writing-mode: vertical-rl;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
  letter-spacing: 1.5px;
  transition: color var(--transition-base);
}

.side-email:hover {
  color: var(--accent);
}

.side-line {
  width: 1px;
  height: 90px;
  background: var(--text-muted);
  margin-top: 1.25rem;
}

/* =========================
   REVEAL ANIMATIONS
   ========================= */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
.reveal:nth-child(2) { transition-delay: 0.1s; }
.reveal:nth-child(3) { transition-delay: 0.2s; }
.reveal:nth-child(4) { transition-delay: 0.3s; }
.reveal:nth-child(5) { transition-delay: 0.4s; }
.reveal:nth-child(6) { transition-delay: 0.5s; }

/* =========================
   RESPONSIVE
   ========================= */

/* Tablet */
@media (max-width: 1024px) {
  .side-element {
    display: none;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .about-highlights {
    grid-template-columns: repeat(4, 1fr);
  }
}

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

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 75%;
    max-width: 400px;
    height: 100vh;
    background: var(--bg-secondary);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    transition: right var(--transition-base);
    border-left: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
  }

  .nav-links.open {
    right: 0;
  }

  .nav-link {
    font-size: 1rem;
    padding: 0.75rem 1.5rem;
  }

  .nav-resume-btn {
    margin-left: 0;
    margin-top: 0.5rem;
  }

  .hero-stats {
    gap: 2rem;
  }

  .about-highlights {
    grid-template-columns: 1fr 1fr;
  }

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

  .timeline {
    padding-left: 1.5rem;
  }

  .timeline-item {
    padding-left: 1.5rem;
  }

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

  .skills-grid {
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 0.75rem;
  }

  .education-card {
    flex-direction: column;
    gap: 1rem;
    padding: 1.5rem;
  }

  .section {
    padding: 80px 0;
  }

  .scroll-indicator {
    display: none;
  }
}

/* Mobile Portrait */
@media (max-width: 480px) {
  html {
    font-size: 14px;
  }

  .container {
    padding: 0 1.25rem;
  }

  .hero {
    padding: 0 1.25rem;
    padding-top: var(--nav-height);
  }

  .hero-name {
    letter-spacing: -1px;
  }

  .hero-stats {
    flex-direction: column;
    gap: 1.5rem;
    align-items: flex-start;
  }

  .stat {
    text-align: left;
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
  }

  .stat-label {
    display: inline;
    margin-top: 0;
  }

  .about-quick-info {
    grid-template-columns: 1fr;
  }

  .about-highlights {
    grid-template-columns: 1fr;
  }

  .timeline-content {
    padding: 1.25rem;
  }

  .project-card {
    padding: 1.5rem;
  }

  .skills-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .social-links {
    gap: 0.75rem;
  }

  .contact-content .btn-large {
    width: 100%;
    justify-content: center;
  }

  .section-title::after {
    max-width: 100px;
  }

  .education-highlights {
    flex-direction: column;
  }
}

/* Disable custom cursor on touch devices */
@media (hover: none) and (pointer: coarse) {
  .cursor-dot,
  .cursor-ring {
    display: none !important;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .scroll-indicator,
  .typed-cursor {
    animation: none;
  }
}
