/* =============================================
   VISHNU VARDHAN KOSURU — PORTFOLIO STYLES
   ============================================= */

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

:root {
  --bg-primary: #080c14;
  --bg-secondary: #0d1220;
  --bg-card: rgba(255, 255, 255, 0.04);
  --bg-card-hover: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(57, 255, 20, 0.4);

  --accent-1: #39ff14;
  --accent-2: #00e676;
  --accent-3: #00ff88;
  --gradient: linear-gradient(135deg, var(--accent-1), var(--accent-2));
  --gradient-text: linear-gradient(135deg, #39ff14, #00e676, #00ff88);

  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #475569;

  --font-sans: 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --radius: 16px;
  --radius-sm: 8px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

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

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

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

::-webkit-scrollbar-thumb {
  background: var(--accent-1);
  border-radius: 3px;
}

/* ---- Selection ---- */
::selection {
  background: rgba(57, 255, 20, 0.25);
  color: #fff;
}

/* ---- Container ---- */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- Glass Card ---- */
.glass-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: border-color var(--transition), background var(--transition), transform var(--transition), box-shadow var(--transition);
}

.glass-card:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
  transform: translateY(-3px);
  box-shadow: 0 20px 60px rgba(57, 255, 20, 0.1);
}

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

/* =============================================
   NAVIGATION
   ============================================= */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0;
  transition: background var(--transition), box-shadow var(--transition), padding var(--transition);
}

#navbar.scrolled {
  background: rgba(8, 12, 20, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 var(--border);
  padding: 0;
}

.nav-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: padding var(--transition);
}

#navbar.scrolled .nav-container {
  padding: 14px 24px;
}

.nav-logo {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-primary);
  text-decoration: none;
  letter-spacing: -0.5px;
  transition: text-shadow var(--transition), color var(--transition);
}

.nav-logo:hover {
  text-shadow: 0 0 12px rgba(57, 255, 20, 0.8), 0 0 24px rgba(57, 255, 20, 0.4);
  color: var(--accent-1);
}

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

.nav-links {
  display: flex;
  list-style: none;
  gap: 8px;
  align-items: center;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
}

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

.nav-links .nav-cta {
  background: var(--gradient);
  color: #fff !important;
  padding: 8px 20px;
  border-radius: 50px;
}

.nav-links .nav-cta:hover {
  opacity: 0.85;
  background: var(--gradient);
  transform: none;
}

.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: var(--transition);
}

/* =============================================
   HERO SECTION
   ============================================= */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 120px 24px 80px;
}

#particleCanvas {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 800px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(57, 255, 20, 0.08);
  border: 1px solid rgba(57, 255, 20, 0.2);
  color: #a7f3a0;
  font-size: 0.8rem;
  font-weight: 500;
  padding: 6px 16px;
  border-radius: 50px;
  margin-bottom: 28px;
  letter-spacing: 0.5px;
}

.badge-dot {
  width: 7px;
  height: 7px;
  background: #4ade80;
  border-radius: 50%;
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.6;
    transform: scale(0.8);
  }
}

.hero-name {
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -2px;
  margin-bottom: 20px;
}

.hero-title {
  font-family: var(--font-mono);
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  color: var(--accent-3);
  margin-bottom: 24px;
  min-height: 2em;
}

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

@keyframes blink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}

.hero-bio {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto 36px;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 56px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: all var(--transition);
  cursor: pointer;
}

.btn-primary {
  background: var(--gradient);
  color: #000;
  box-shadow: 0 8px 32px rgba(57, 255, 20, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 48px rgba(57, 255, 20, 0.5);
}

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

.btn-ghost:hover {
  border-color: var(--accent-1);
  background: rgba(57, 255, 20, 0.06);
  transform: translateY(-2px);
}

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
}

.stat {
  text-align: center;
}

.stat-num {
  display: block;
  font-size: 2.2rem;
  font-weight: 800;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.stat-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 4px;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

.hero-scroll-hint {
  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.7rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  animation: float 3s ease-in-out infinite;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--accent-1), transparent);
}

@keyframes float {

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

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

/* =============================================
   SECTIONS
   ============================================= */
.section {
  padding: 100px 0;
}

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

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

.section-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-1);
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -1px;
  color: var(--text-primary);
}

/* =============================================
   ABOUT
   ============================================= */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 48px;
  align-items: center;
}

.about-text p {
  color: var(--text-secondary);
  margin-bottom: 20px;
  font-size: 1.02rem;
}

.about-text strong {
  color: var(--text-primary);
}

.about-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.about-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.88rem;
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: 50px;
  transition: all var(--transition);
}

.about-link svg {
  width: 15px;
  height: 15px;
}

.about-link:hover {
  color: var(--accent-1);
  border-color: var(--accent-1);
  background: rgba(57, 255, 20, 0.06);
}

.phone-link {
  cursor: default;
}

.about-card {
  padding: 32px;
}

.about-avatar {
  position: relative;
  width: 130px;
  height: 130px;
  margin: 0 auto 24px;
}

.avatar-ring {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: var(--gradient);
  animation: spin-slow 8s linear infinite;
}

@keyframes spin-slow {
  to {
    transform: rotate(360deg);
  }
}

.avatar-inner {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #080c14;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  z-index: 1;
}

/* Dark overlay to suppress white background */
.avatar-inner::before {
  display: none;
}

/* Neon green glow overlay on the photo */
.avatar-inner::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(ellipse at 50% 110%, rgba(57, 255, 20, 0.3) 0%, transparent 60%);
  pointer-events: none;
  z-index: 3;
}

.avatar-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  border-radius: 50%;
  display: block;
  z-index: 1;
  position: relative;
}

.about-info {
  text-align: center;
}

.about-info h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.about-info>p {
  color: var(--text-secondary);
  font-size: 0.88rem;
  margin-bottom: 20px;
}

.about-edu {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  text-align: left;
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-sm);
  padding: 14px;
  border: 1px solid var(--border);
}

.about-edu svg {
  width: 18px;
  height: 18px;
  color: var(--accent-1);
  flex-shrink: 0;
  margin-top: 2px;
}

.about-edu div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.about-edu strong {
  font-size: 0.88rem;
  color: var(--text-primary);
}

.about-edu span {
  font-size: 0.78rem;
  color: var(--text-secondary);
}

/* =============================================
   EXPERIENCE / TIMELINE
   ============================================= */
.timeline {
  position: relative;
  max-width: 860px;
  margin: 0 auto;
}

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

.timeline-item {
  position: relative;
  width: calc(50% - 32px);
  margin-bottom: 48px;
}

.timeline-item:nth-child(odd) {
  margin-left: 0;
}

.timeline-item:nth-child(even) {
  margin-left: calc(50% + 32px);
}

.timeline-dot {
  position: absolute;
  width: 14px;
  height: 14px;
  background: var(--gradient);
  border-radius: 50%;
  top: 24px;
  box-shadow: 0 0 20px rgba(57, 255, 20, 0.5);
}

.timeline-item:nth-child(odd) .timeline-dot {
  right: -39px;
}

.timeline-item:nth-child(even) .timeline-dot {
  left: -39px;
}

.timeline-content {
  padding: 24px;
}

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

.timeline-header h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.company-link {
  color: var(--accent-1);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
}

.company-link:hover {
  text-decoration: underline;
}

.timeline-date {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  white-space: nowrap;
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 50px;
  border: 1px solid var(--border);
}

.timeline-bullets {
  list-style: none;
  margin-bottom: 16px;
}

.timeline-bullets li {
  color: var(--text-secondary);
  font-size: 0.88rem;
  padding: 6px 0 6px 16px;
  position: relative;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.timeline-bullets li:last-child {
  border-bottom: none;
}

.timeline-bullets li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 14px;
  width: 6px;
  height: 6px;
  background: var(--accent-1);
  border-radius: 50%;
}

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

.timeline-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag {
  font-size: 0.72rem;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: 50px;
  background: rgba(57, 255, 20, 0.08);
  color: #86efac;
  border: 1px solid rgba(57, 255, 20, 0.18);
}

/* =============================================
   SKILLS
   ============================================= */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.skill-category {
  padding: 28px;
}

.skill-cat-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}

.skill-icon {
  width: 42px;
  height: 42px;
  background: rgba(57, 255, 20, 0.08);
  border: 1px solid rgba(57, 255, 20, 0.18);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.skill-icon svg {
  width: 20px;
  height: 20px;
  color: var(--accent-1);
}

.skill-cat-header h3 {
  font-size: 1rem;
  font-weight: 700;
}

.skill-bars {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.skill-bar-item {
  margin-bottom: 0;
}

.skill-bar-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.skill-bar-track {
  height: 6px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 3px;
  overflow: hidden;
}

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

.skill-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill {
  font-size: 0.8rem;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  transition: all var(--transition);
}

.pill:hover {
  background: rgba(57, 255, 20, 0.08);
  border-color: rgba(57, 255, 20, 0.25);
  color: #86efac;
}

/* =============================================
   PROJECTS
   ============================================= */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.project-card {
  padding: 28px;
  position: relative;
  overflow: hidden;
}

.project-glow {
  position: absolute;
  top: -60px;
  right: -60px;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(57, 255, 20, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.project-glow-2 {
  background: radial-gradient(circle, rgba(0, 230, 118, 0.12) 0%, transparent 70%);
}

.project-glow-3 {
  background: radial-gradient(circle, rgba(0, 255, 136, 0.12) 0%, transparent 70%);
}

.project-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.project-icon {
  font-size: 2rem;
}

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

.icon-link {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  text-decoration: none;
  transition: all var(--transition);
}

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

.icon-link:hover {
  background: rgba(57, 255, 20, 0.1);
  border-color: var(--accent-1);
  color: var(--accent-1);
}

.project-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.project-year {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 12px;
  font-family: var(--font-mono);
}

.project-desc {
  color: var(--text-secondary);
  font-size: 0.88rem;
  line-height: 1.7;
  margin-bottom: 20px;
}

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

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

/* =============================================
   PUBLICATIONS
   ============================================= */
.publications-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 860px;
  margin: 0 auto;
}

.pub-card {
  display: flex;
  gap: 24px;
  padding: 28px;
  align-items: flex-start;
}

.pub-year {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-1);
  background: rgba(57, 255, 20, 0.08);
  border: 1px solid rgba(57, 255, 20, 0.18);
  padding: 4px 12px;
  border-radius: 50px;
  white-space: nowrap;
  height: fit-content;
  margin-top: 4px;
}

.pub-content h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 10px;
  line-height: 1.5;
}

.pub-venue {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.82rem;
}

.pub-venue svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  margin-top: 2px;
}

/* Clickable publication cards */
.pub-card-link {
  text-decoration: none;
  color: inherit;
  display: flex;
  transition: border-color var(--transition), background var(--transition), transform var(--transition), box-shadow var(--transition);
}

.pub-card-link:hover {
  border-color: rgba(57, 255, 20, 0.35);
  background: rgba(57, 255, 20, 0.04);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(57, 255, 20, 0.08);
}

.pub-link-label {
  display: inline-block;
  margin-top: 10px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent-1);
  letter-spacing: 0.3px;
  transition: opacity var(--transition);
}

.pub-card-link:hover .pub-link-label {
  opacity: 0.75;
}

.pub-pending-label {
  display: inline-block;
  margin-top: 10px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #f59e0b;
  letter-spacing: 0.3px;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.25);
  padding: 3px 10px;
  border-radius: 50px;
}

/* =============================================
   CERTIFICATIONS
   ============================================= */
.certs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.cert-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  text-decoration: none;
  color: var(--text-primary);
}

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

.cert-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cert-icon svg {
  width: 24px;
  height: 24px;
}

.cert-google {
  background: rgba(66, 133, 244, 0.1);
  border: 1px solid rgba(66, 133, 244, 0.2);
}

.cert-hashicorp {
  background: rgba(123, 66, 188, 0.12);
  border: 1px solid rgba(123, 66, 188, 0.25);
}

.cert-hashicorp svg {
  color: #7B42BC;
}

.cert-oracle {
  background: rgba(199, 70, 52, 0.12);
  border: 1px solid rgba(199, 70, 52, 0.25);
}

.cert-oracle svg {
  color: #C74634;
}

.cert-info {
  flex: 1;
}

.cert-info h3 {
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 4px;
}

.cert-year {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
}

.cert-arrow {
  color: var(--text-muted);
  font-size: 1rem;
  transition: all var(--transition);
}

.cert-card:hover .cert-arrow {
  color: var(--accent-1);
  transform: translateX(4px);
}

/* =============================================
   COMMUNITY
   ============================================= */
.community-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}

.community-card {
  display: flex;
  gap: 20px;
  padding: 28px;
  align-items: flex-start;
}

.community-icon {
  font-size: 2rem;
  flex-shrink: 0;
}

.community-content h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.community-year {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-1);
  display: block;
  margin-bottom: 12px;
}

.community-content p {
  color: var(--text-secondary);
  font-size: 0.88rem;
  line-height: 1.7;
  margin-bottom: 12px;
}

.community-content strong {
  color: var(--text-primary);
}

.community-link {
  color: var(--accent-1);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 500;
  transition: opacity var(--transition);
}

.community-link:hover {
  opacity: 0.7;
}

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

.contact-wrap .section-tag {
  display: block;
  margin-bottom: 12px;
}

.contact-sub {
  color: var(--text-secondary);
  font-size: 1rem;
  margin: 20px 0 32px;
  line-height: 1.8;
}

/* ---- Like Counter ---- */
.like-section {
  margin-bottom: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.like-prompt {
  font-size: 0.9rem;
  color: var(--text-secondary);
  letter-spacing: 0.3px;
}

.like-btn-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
}

.like-btn {
  font-size: 2rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  position: relative;
  transition: transform 0.15s cubic-bezier(0.34, 1.56, 0.64, 1);
  filter: drop-shadow(0 0 0px rgba(255, 50, 80, 0));
  user-select: none;
}

.like-btn:hover {
  transform: scale(1.2);
  filter: drop-shadow(0 0 8px rgba(255, 50, 80, 0.6));
}

.like-btn:active {
  transform: scale(0.9);
}

.like-btn.pop {
  animation: likePop 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes likePop {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.5);
  }

  100% {
    transform: scale(1);
  }
}

.like-count {
  font-size: 1.6rem;
  font-weight: 700;
  color: #ff3250;
  font-family: var(--font-mono);
  min-width: 2ch;
  text-align: center;
  transition: transform 0.2s ease;
}

.like-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

/* Floating hearts spawned on click */
.floating-heart {
  position: fixed;
  pointer-events: none;
  font-size: 1.6rem;
  animation: floatUp 1s ease-out forwards;
  z-index: 9999;
  user-select: none;
}

@keyframes floatUp {
  0% {
    opacity: 1;
    transform: translateY(0) scale(1) rotate(0deg);
  }

  100% {
    opacity: 0;
    transform: translateY(-120px) scale(1.4) rotate(var(--rot, 10deg));
  }
}



.contact-links {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 28px;
  text-decoration: none;
  color: var(--text-primary);
  font-size: 0.92rem;
  font-weight: 500;
  min-width: 180px;
  justify-content: center;
}

.contact-card-icon {
  width: 36px;
  height: 36px;
  background: rgba(99, 102, 241, 0.12);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-card-icon svg {
  width: 18px;
  height: 18px;
  color: var(--accent-1);
}

.contact-card:hover {
  border-color: var(--accent-1);
  transform: translateY(-3px);
  box-shadow: 0 20px 60px rgba(57, 255, 20, 0.1);
}

/* Universal card hover — same effect for all interactive cards */
.cert-card:hover,
.project-card:hover,
.pub-card-link:hover,
.skill-category:hover,
.timeline-item:hover,
.community-card:hover {
  border-color: var(--border-hover) !important;
  background: var(--bg-card-hover);
  transform: translateY(-3px);
  box-shadow: 0 20px 60px rgba(57, 255, 20, 0.1);
  transition: border-color var(--transition), background var(--transition), transform var(--transition), box-shadow var(--transition);
}

/* =============================================
   FOOTER
   ============================================= */
.footer {
  padding: 40px 24px;
  text-align: center;
  border-top: 1px solid var(--border);
}

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

.footer strong {
  color: var(--text-secondary);
}

.footer-sub {
  font-size: 0.75rem;
  margin-top: 6px;
  font-family: var(--font-mono);
}

/* =============================================
   SCROLL REVEAL ANIMATIONS
   ============================================= */
.reveal-up,
.reveal-left,
.reveal-right {
  opacity: 0;
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-up {
  transform: translateY(40px);
}

.reveal-left {
  transform: translateX(-40px);
}

.reveal-right {
  transform: translateX(40px);
}

.reveal-up.visible,
.reveal-left.visible,
.reveal-right.visible {
  opacity: 1;
  transform: translate(0);
}

/* Stagger children */
.skills-grid .skill-category:nth-child(2) {
  transition-delay: 0.1s;
}

.skills-grid .skill-category:nth-child(3) {
  transition-delay: 0.2s;
}

.skills-grid .skill-category:nth-child(4) {
  transition-delay: 0.3s;
}

.skills-grid .skill-category:nth-child(5) {
  transition-delay: 0.4s;
}

.skills-grid .skill-category:nth-child(6) {
  transition-delay: 0.5s;
}

.certs-grid .cert-card:nth-child(2) {
  transition-delay: 0.08s;
}

.certs-grid .cert-card:nth-child(3) {
  transition-delay: 0.16s;
}

.certs-grid .cert-card:nth-child(4) {
  transition-delay: 0.24s;
}

.certs-grid .cert-card:nth-child(5) {
  transition-delay: 0.32s;
}

.certs-grid .cert-card:nth-child(6) {
  transition-delay: 0.4s;
}

.projects-grid .project-card:nth-child(2) {
  transition-delay: 0.1s;
}

.projects-grid .project-card:nth-child(3) {
  transition-delay: 0.2s;
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr;
  }

  .about-card-wrap {
    order: -1;
  }

  .about-card {
    max-width: 360px;
    margin: 0 auto;
  }

  .timeline::before {
    left: 20px;
  }

  .timeline-item {
    width: 100%;
    margin-left: 0 !important;
    padding-left: 52px;
  }

  .timeline-item .timeline-dot {
    left: 13px !important;
    right: auto !important;
  }
}

@media (max-width: 640px) {
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(8, 12, 20, 0.98);
    padding: 16px;
    border-bottom: 1px solid var(--border);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-toggle {
    display: flex;
  }

  .hero-stats {
    gap: 20px;
  }

  .stat-num {
    font-size: 1.8rem;
  }

  .pub-card {
    flex-direction: column;
    gap: 12px;
  }

  .contact-links {
    flex-direction: column;
    align-items: center;
  }

  .contact-card {
    width: 100%;
    max-width: 320px;
  }
}