/* ===== RESET & BASE ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #ffffff;
  --bg-secondary: #F7F7F8;
  --bg-card: #FFFFFF;
  --border: #E4E4E7;
  --border-hover: #6366F1;
  --text-primary: #09090B;
  --text-secondary: #52525B;
  --text-muted: #A1A1AA;
  --accent: #09090B;
  --accent-blue: #6366F1;
  --accent-purple: #8B5CF6;
  --gradient: linear-gradient(135deg, #6366F1, #8B5CF6);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.07), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 8px 32px rgba(0, 0, 0, 0.12);
  --radius: 16px;
  --radius-sm: 10px;
  --radius-full: 100px;
  --nav-height: 68px;
  --transition: 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: #ffffff;
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
}

::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: #f4f4f5;
}

::-webkit-scrollbar-thumb {
  background: #d4d4d8;
  border-radius: 3px;
}

/* ===== UTILITY ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section {
  padding: 96px 0;
}

.section-alt {
  background: var(--bg-secondary);
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-tag {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-blue);
  margin-bottom: 10px;
}

.section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 14px;
  color: var(--text-primary);
}

.section-subtitle {
  color: var(--text-secondary);
  font-size: 1rem;
  max-width: 520px;
  margin: 0 auto;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: #27272A;
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.btn-glass {
  background: transparent;
  color: var(--text-primary);
  border: 1.5px solid var(--border);
}

.btn-glass:hover {
  border-color: var(--border-hover);
  background: rgba(99, 102, 241, 0.04);
}

.btn-outline-dark {
  background: transparent;
  color: var(--text-primary);
  border: 1.5px solid var(--border);
}

.btn-outline-dark:hover {
  border-color: var(--text-primary);
}

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

.btn-text {
  background: transparent;
  color: var(--text-secondary);
  padding: 11px 16px;
}

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

/* ===== NAVBAR ===== */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  z-index: 1000;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}

#navbar.scrolled {
  box-shadow: var(--shadow-sm);
}

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

.nav-logo {
  font-size: 1.55rem;
  font-weight: 800;
  text-decoration: none;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  flex-shrink: 0;
}

.nav-logo-accent {
  color: var(--accent-blue);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.nav-link {
  display: block;
  padding: 6px 13px;
  border-radius: var(--radius-full);
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 500;
  transition: var(--transition);
}

.nav-link:hover {
  background: rgba(0, 0, 0, 0.06);
  color: var(--text-primary);
}

.nav-link.active {
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius-full);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 8px 18px;
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
}

.nav-cta:hover {
  background: #27272A;
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

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

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

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: calc(var(--nav-height) + 40px) 24px 80px;
  background: #ffffff;
  position: relative;
}

.hero-inner {
  max-width: 1060px;
  width: 100%;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 80px;
}

/* LEFT column */
.hero-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  width: 320px;
}

.profile-photo-wrapper {
  position: relative;
  width: 210px;
  height: 210px;
  margin-bottom: 24px;
}

.profile-glow-ring {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, var(--accent-blue), var(--accent-purple), var(--accent-blue));
  animation: spinRing 6s linear infinite;
  opacity: 0.35;
}

@keyframes spinRing {
  to {
    transform: rotate(360deg);
  }
}

.profile-photo {
  position: relative;
  width: 210px;
  height: 210px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  border: 5px solid var(--bg);
  z-index: 1;
  display: block;
}

.hero-name {
  font-size: clamp(1.9rem, 3vw, 2.6rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: 6px;
  text-align: center;
  white-space: nowrap;
}

.hero-typed-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 0.95rem;
  color: var(--accent-blue);
  font-weight: 600;
  margin-bottom: 20px;
  min-height: 1.5rem;
}

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

@keyframes blink {

  0%,
  100% {
    opacity: 1
  }

  50% {
    opacity: 0
  }
}

.hero-left-socials {
  display: flex;
  gap: 10px;
  justify-content: center;
}

/* RIGHT column */
.hero-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 30px;
}

.hero-bio {
  font-size: 1.08rem;
  color: var(--text-secondary);
  line-height: 1.9;
  margin: 0;
}

.hero-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  width: 100%;
}

.hero-stat-card {
  background: #ffffff;
  border: 1.5px solid #D9D9DD;
  border-radius: var(--radius-sm);
  padding: 18px 22px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  transition: var(--transition);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.hero-stat-card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-sm);
}

.hero-stat-num {
  font-size: 1.8rem;
  font-weight: 900;
  line-height: 1;
  color: var(--accent-blue);
}

.hero-stat-lbl {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
}

.hero-ctas {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

/* Social icon buttons */
.social-icon-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  text-decoration: none;
  transition: var(--transition);
}

.social-icon-btn svg {
  width: 17px;
  height: 17px;
}

.social-icon-btn:hover {
  color: var(--text-primary);
  border-color: var(--border-hover);
  background: rgba(99, 102, 241, 0.06);
  transform: translateY(-2px);
}

.scroll-chevron {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--text-muted);
  opacity: 0;
  animation: fadeIn 0.5s ease forwards 2s, chevronBounce 2s ease-in-out 2.5s infinite;
}

@keyframes chevronBounce {

  0%,
  100% {
    transform: translateX(-50%) translateY(0)
  }

  50% {
    transform: translateX(-50%) translateY(6px)
  }
}

@keyframes fadeIn {
  from {
    opacity: 0
  }

  to {
    opacity: 1
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(20px)
  }

  to {
    opacity: 1;
    transform: translateY(0)
  }
}

/* ===== EDUCATION ===== */
.edu-section-header {
  text-align: center;
  margin-bottom: 56px;
}

.edu-section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 14px;
  line-height: 1.2;
}

.edu-title-accent {
  color: var(--accent-blue);
}

.edu-section-subtitle {
  font-size: 0.95rem;
  color: var(--text-secondary);
  font-weight: 400;
  max-width: 600px;
  margin: 0 auto;
}

.edu-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  max-width: 960px;
  margin: 0 auto;
}

.edu-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.edu-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-4px);
  border-color: var(--border-hover);
}

.edu-card-img-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: #eee;
}

.edu-card-slides {
  width: 100%;
  height: 100%;
}

.edu-slide {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
  transition: opacity 0.4s ease;
}

.edu-slide.active {
  display: block;
}

.edu-slide-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 34px;
  height: 34px;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  z-index: 2;
}

.edu-slide-btn:hover {
  background: rgba(0, 0, 0, 0.7);
}

.edu-slide-prev {
  left: 10px;
}

.edu-slide-next {
  right: 10px;
}

.edu-card-body {
  padding: 20px 22px 22px;
}

.edu-card-degree {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
  line-height: 1.45;
}

.edu-card-school {
  font-size: 0.85rem;
  color: var(--accent-blue);
  font-weight: 500;
  margin-bottom: 14px;
}

.edu-card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.edu-card-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 11px;
  border-radius: var(--radius-full);
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid rgba(99, 102, 241, 0.2);
  color: var(--accent-blue);
}

.edu-card-year {
  font-size: 0.75rem;
  color: var(--text-muted);
}

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

.about-left p {
  color: var(--text-secondary);
  margin-bottom: 18px;
  font-size: 0.97rem;
  line-height: 1.85;
}

.about-left p strong {
  color: var(--text-primary);
  font-weight: 600;
}

.about-contact-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.about-contact-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: var(--radius-full);
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 500;
  transition: var(--transition);
}

.about-contact-chip:hover {
  color: var(--text-primary);
  border-color: var(--border-hover);
}

.about-right {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.about-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

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

.about-card-icon {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid rgba(99, 102, 241, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-blue);
  margin-bottom: 14px;
}

.about-card h3 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.edu-degree {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.edu-school {
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-bottom: 10px;
}

.edu-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.edu-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid rgba(99, 102, 241, 0.18);
  color: var(--accent-blue);
}

.edu-date {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.focus-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.focus-tag {
  font-size: 0.73rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  background: rgba(99, 102, 241, 0.06);
  border: 1px solid rgba(99, 102, 241, 0.14);
  color: var(--accent-blue);
}

/* ===== SKILLS ===== */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.skill-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.skill-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.skill-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.skill-icon {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.skill-icon.blue {
  background: rgba(99, 102, 241, 0.08);
  color: #6366F1;
  border: 1px solid rgba(99, 102, 241, 0.15);
}

.skill-icon.purple {
  background: rgba(139, 92, 246, 0.08);
  color: #7C3AED;
  border: 1px solid rgba(139, 92, 246, 0.15);
}

.skill-icon.cyan {
  background: rgba(6, 182, 212, 0.08);
  color: #0891B2;
  border: 1px solid rgba(6, 182, 212, 0.15);
}

.skill-icon.green {
  background: rgba(16, 185, 129, 0.08);
  color: #059669;
  border: 1px solid rgba(16, 185, 129, 0.15);
}

.skill-icon.orange {
  background: rgba(245, 158, 11, 0.08);
  color: #D97706;
  border: 1px solid rgba(245, 158, 11, 0.15);
}

.skill-icon.pink {
  background: rgba(236, 72, 153, 0.08);
  color: #DB2777;
  border: 1px solid rgba(236, 72, 153, 0.15);
}

.skill-card-header h3 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
}

.skill-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.skill-item {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.skill-item span {
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.skill-bar {
  height: 4px;
  background: #E4E4E7;
  border-radius: 2px;
  overflow: hidden;
}

.skill-fill {
  height: 100%;
  width: 0;
  background: var(--gradient);
  border-radius: 2px;
  transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.skill-fill.animated {
  width: var(--w);
}

/* ===== EXPERIENCE ===== */
.timeline {
  position: relative;
  padding-left: 32px;
}

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

.timeline-item {
  position: relative;
  margin-bottom: 40px;
}

.timeline-dot {
  position: absolute;
  left: -38px;
  top: 28px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--gradient);
  border: 3px solid var(--bg);
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.25);
}

.exp-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

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

.exp-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 18px;
  flex-wrap: wrap;
  gap: 12px;
}

.exp-role {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--text-primary);
}

.exp-company {
  font-size: 0.88rem;
  color: var(--accent-blue);
  font-weight: 600;
}

.exp-meta {
  text-align: right;
}

.exp-date {
  display: block;
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.exp-location {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 2px 10px;
  border-radius: var(--radius-full);
  background: rgba(6, 182, 212, 0.08);
  border: 1px solid rgba(6, 182, 212, 0.15);
  color: #0891B2;
}

.exp-bullets {
  list-style: none;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.exp-bullets li {
  font-size: 0.88rem;
  color: var(--text-secondary);
  padding-left: 18px;
  position: relative;
  line-height: 1.7;
}

.exp-bullets li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent-blue);
}

.exp-bullets li strong {
  color: var(--text-primary);
}

.exp-metrics {
  display: flex;
  gap: 20px;
  padding: 14px 18px;
  background: rgba(99, 102, 241, 0.04);
  border: 1px solid rgba(99, 102, 241, 0.1);
  border-radius: 10px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.metric-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.metric-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.metric-value {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
}

.exp-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.exp-tag {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: var(--radius-sm);
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  color: var(--text-secondary);
}

/* ===== PROJECTS ===== */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.project-img-wrapper {
  width: 100%;
  height: 170px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
}

.project-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.project-card:hover .project-img {
  transform: scale(1.05);
}

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

.project-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.project-card:hover::before {
  opacity: 1;
}

.project-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.project-category {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-blue);
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid rgba(99, 102, 241, 0.15);
  padding: 3px 10px;
  border-radius: var(--radius-full);
}

.project-links {
  display: flex;
  gap: 8px;
}

.project-icon-link {
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  text-decoration: none;
  transition: var(--transition);
}

.project-icon-link:hover {
  color: var(--text-primary);
  border-color: var(--border-hover);
  background: rgba(99, 102, 241, 0.06);
}

.project-title {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
  color: var(--text-primary);
}

.project-desc {
  font-size: 0.83rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.project-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.project-features li {
  font-size: 0.78rem;
  color: var(--text-secondary);
  padding-left: 14px;
  position: relative;
  line-height: 1.6;
}

.project-features li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: var(--accent-blue);
}

.project-features li strong {
  color: var(--text-primary);
}

.project-key-metric {
  font-size: 0.78rem;
  color: var(--accent-blue);
  background: rgba(99, 102, 241, 0.06);
  border: 1px solid rgba(99, 102, 241, 0.12);
  border-radius: 8px;
  padding: 10px 14px;
  line-height: 1.6;
}

.project-key-metric strong {
  color: var(--text-primary);
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
}

.project-tag {
  font-size: 0.68rem;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 5px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  color: var(--text-muted);
}

/* ===== CERTIFICATIONS ===== */
.certs-img-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.cert-img-card {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
}

.cert-img-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.cert-img-link {
  display: block;
  text-decoration: none;
}

.cert-img-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: #f8f8f8;
}

.cert-preview-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
  transition: transform 0.4s ease;
}

.cert-img-card:hover .cert-preview-img {
  transform: scale(1.04);
}

.cert-img-overlay {
  position: absolute;
  inset: 0;
  background: rgba(9, 9, 11, 0.6);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #fff;
  opacity: 0;
  transition: opacity 0.3s ease;
  backdrop-filter: blur(2px);
}

.cert-img-overlay span {
  font-size: 0.85rem;
  font-weight: 600;
}

.cert-img-card:hover .cert-img-overlay {
  opacity: 1;
}

.cert-img-label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 16px;
  background: var(--bg-secondary);
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 500;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}

.cert-img-label svg {
  flex-shrink: 0;
  color: var(--accent-blue);
}

.cert-img-label span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--text-primary);
  font-weight: 600;
}

/* ===== CONTACT ===== */
.contact-section-new {
  background: var(--bg-secondary);
}

.contact-new-header {
  text-align: center;
  margin-bottom: 48px;
}

.contact-new-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.contact-new-subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 24px;
  line-height: 1.7;
}

.contact-new-divider {
  width: 60px;
  height: 3px;
  background: var(--gradient);
  border-radius: 2px;
  margin: 0 auto;
}

.contact-new-card {
  max-width: 780px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 40px;
  box-shadow: var(--shadow);
}

.contact-new-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.form-group-new {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.form-group-new:last-of-type {
  margin-bottom: 0;
}

.form-group-new label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
}

.field-required {
  color: #EF4444;
  font-size: 0.75rem;
}

.form-group-new input,
.form-group-new textarea {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 16px;
  font-family: inherit;
  font-size: 0.88rem;
  color: var(--text-primary);
  transition: var(--transition);
  outline: none;
  resize: vertical;
}

.form-group-new input::placeholder,
.form-group-new textarea::placeholder {
  color: var(--text-muted);
}

.form-group-new input:focus,
.form-group-new textarea:focus {
  border-color: var(--accent-blue);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.contact-new-btn-wrap {
  display: flex;
  justify-content: center;
  margin-top: 28px;
}

.btn-send-new {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 34px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius-full);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.btn-send-new:hover {
  background: #27272A;
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.form-success {
  display: none;
  align-items: center;
  gap: 10px;
  color: #059669;
  font-size: 0.88rem;
  font-weight: 600;
  background: rgba(16, 185, 129, 0.07);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: 8px;
  padding: 12px 16px;
  margin-top: 16px;
}

.form-success.show {
  display: flex;
}

/* ===== SOCIAL LINKS ===== */
.social-link {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  text-decoration: none;
  transition: var(--transition);
}

.social-link svg {
  width: 16px;
  height: 16px;
}

.social-link:hover {
  color: var(--text-primary);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

.social-link.sm {
  width: 34px;
  height: 34px;
}

.social-link.sm svg {
  width: 13px;
  height: 13px;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 64px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-logo {
  display: inline-block;
  font-size: 1.05rem;
  font-weight: 800;
  text-decoration: none;
  color: var(--text-primary);
  margin-bottom: 14px;
}

.footer-name {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.footer-role {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent-blue);
  margin-bottom: 14px;
}

.footer-bio {
  font-size: 0.83rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 20px;
}

.footer-socials {
  display: flex;
  gap: 8px;
}

.footer-links-col h4 {
  font-size: 0.73rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.footer-links-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links-col ul li a {
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-decoration: none;
  transition: var(--transition);
}

.footer-links-col ul li a:hover {
  color: var(--text-primary);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 24px 0;
  text-align: center;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ===== ANIMATIONS ===== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

.reveal-delay-1 {
  transition-delay: 0.1s;
}

.reveal-delay-2 {
  transition-delay: 0.2s;
}

.reveal-delay-3 {
  transition-delay: 0.3s;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .certs-img-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .nav-links {
    position: static;
    transform: none;
  }

  .hero-inner {
    gap: 48px;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 72px 0;
  }

  .nav-links {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 20px 24px;
    gap: 4px;
    transform: translateY(-110%);
    transition: transform var(--transition);
  }

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

  .nav-toggle {
    display: flex;
  }

  .nav-cta {
    display: none;
  }

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

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

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

  .certs-img-grid {
    grid-template-columns: 1fr;
  }

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

  .contact-new-card {
    padding: 28px 20px;
  }

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

  /* Hero stacks to single column on mobile */
  .hero-inner {
    flex-direction: column;
    gap: 36px;
    align-items: center;
  }

  .hero-left {
    width: 100%;
  }

  .hero-right {
    align-items: center;
    text-align: center;
  }

  .hero-bio {
    text-align: center;
  }

  .hero-ctas {
    justify-content: center;
  }

  .hero-stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .hero {
    padding: calc(var(--nav-height) + 40px) 20px 80px;
  }
}

@media (max-width: 480px) {
  .hero-ctas {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-ctas .btn {
    justify-content: center;
  }

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

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

  .exp-meta {
    text-align: left;
  }

  .edu-cards-grid {
    grid-template-columns: 1fr;
  }
}