/* ═══════════════════════════════════════════════
   DEVINDA ABEWARDANA – PORTFOLIO STYLESHEET
   ═══════════════════════════════════════════════ */

/* ─── Google Font Import ─── */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500&display=swap');

/* ─── CSS Custom Properties ─── */
:root {
  --bg-primary:    #050816;
  --bg-secondary:  #0a0f2e;
  --bg-card:       rgba(255,255,255,0.04);
  --bg-card-hover: rgba(255,255,255,0.07);

  --accent-1:      #6C63FF;
  --accent-2:      #3ECFCF;
  --accent-3:      #FF6B6B;
  --accent-glow:   rgba(108,99,255,0.35);

  --text-primary:  #F0F0FF;
  --text-secondary:#A0A8C8;
  --text-muted:    #606880;

  --border:        rgba(255,255,255,0.08);
  --border-accent: rgba(108,99,255,0.4);

  --gradient-hero: linear-gradient(135deg, #6C63FF 0%, #3ECFCF 100%);
  --gradient-card: linear-gradient(135deg, rgba(108,99,255,0.15), rgba(62,207,207,0.05));

  --font-main:     'Outfit', sans-serif;
  --font-mono:     'JetBrains Mono', monospace;

  --radius-sm:   8px;
  --radius-md:   16px;
  --radius-lg:   24px;
  --radius-xl:   32px;

  --shadow-card:    0 8px 32px rgba(0,0,0,0.4);
  --shadow-glow:    0 0 40px rgba(108,99,255,0.25);
  --shadow-glow-sm: 0 0 20px rgba(108,99,255,0.2);

  --transition:    all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);

  --nav-height: 72px;
}

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

html {
  /* smooth-scroll handled via JS for easing control */
  scroll-padding-top: var(--nav-height);
}

body {
  font-family: var(--font-main);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  cursor: none;
}

/* ─── Custom Scrollbar ─── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--accent-1); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent-2); }

/* ─── Selection ─── */
::selection { background: rgba(108,99,255,0.3); color: var(--text-primary); }

/* ─── Particles Canvas ─── */
#particles-canvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0;
  pointer-events: none;
}
/* ─── Custom Cursor ─── */
.cursor {
  position: fixed;
  width: 10px; height: 10px;
  background: var(--accent-1);
  border-radius: 50%;
  pointer-events: none;
  z-index: 10000;
  transform: translate(-50%, -50%);
  transition: transform 0.1s, width 0.3s, height 0.3s, background 0.3s;
  mix-blend-mode: screen;
}

.cursor-follower {
  position: fixed;
  width: 36px; height: 36px;
  border: 2px solid rgba(108,99,255,0.5);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 0.15s ease-out, width 0.3s, height 0.3s, border-color 0.3s;
}

.cursor.hover { width: 20px; height: 20px; background: var(--accent-2); }
.cursor-follower.hover { width: 54px; height: 54px; border-color: var(--accent-2); }
/* ─── Navbar ─── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-height);
  z-index: 1000;
  transition: var(--transition);
}

.navbar.scrolled {
  background: rgba(5,8,22,0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 4px 30px rgba(0,0,0,0.3);
}

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

.nav-logo {
  font-family: var(--font-mono);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--text-primary);
  text-decoration: none;
  letter-spacing: 0.05em;
  transition: var(--transition);
}

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

.logo-bracket {
  color: var(--accent-1);
  font-weight: 700;
}

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

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  position: relative;
}

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

.nav-link:hover, .nav-link.active {
  color: var(--text-primary);
}

.nav-link:hover::after, .nav-link.active::after {
  width: 70%;
}

.nav-cta {
  background: var(--gradient-hero);
  color: white;
  text-decoration: none;
  padding: 0.6rem 1.4rem;
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 600;
  transition: var(--transition);
  white-space: nowrap;
  box-shadow: var(--shadow-glow-sm);
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

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

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

/* ─── Hero Section ─── */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 4rem;
  padding: var(--nav-height) 2rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(108,99,255,0.12);
  border: 1px solid rgba(108,99,255,0.3);
  border-radius: 50px;
  padding: 0.4rem 1rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--accent-1);
  width: fit-content;
  animation: fadeInDown 0.8s ease forwards;
}

.badge-dot {
  width: 8px; height: 8px;
  background: #3ECFCF;
  border-radius: 50%;
  animation: pulse-dot 1.5s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.7; }
}

.hero-title {
  animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-greeting {
  display: block;
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
  font-family: var(--font-mono);
}

.hero-name {
  display: block;
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  background: var(--gradient-hero);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-roles {
  display: flex;
  align-items: center;
  font-size: 1.15rem;
  font-weight: 500;
  animation: fadeInUp 0.8s ease 0.3s both;
  height: 2rem;
  gap: 0;
}

.role-prefix { color: var(--text-secondary); white-space: nowrap; }

.role-slider {
  position: relative;
  height: 2rem;
  min-width: 220px;
  overflow: hidden;
}

.role {
  display: block;
  color: var(--accent-2);
  position: absolute;
  top: 0;
  left: 0;
  white-space: nowrap;
  font-weight: 600;
  opacity: 0;
  transform: translateY(110%);
  transition: opacity 0.45s ease, transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.role.active {
  opacity: 1;
  transform: translateY(0);
}

.hero-summary {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.8;
  max-width: 520px;
  animation: fadeInUp 0.8s ease 0.4s both;
}

.hero-summary strong { color: var(--accent-1); font-weight: 600; }

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease 0.5s both;
}

.hero-socials {
  display: flex;
  gap: 0.75rem;
  animation: fadeInUp 0.8s ease 0.6s both;
}

.social-link {
  width: 42px; height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 1rem;
  transition: var(--transition);
}

.social-link:hover {
  background: var(--accent-1);
  border-color: var(--accent-1);
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(108,99,255,0.4);
}

#social-whatsapp:hover, #footer-whatsapp:hover {
  background: #25D366;
  border-color: #25D366;
  box-shadow: 0 8px 20px rgba(37,211,102,0.4);
}

#social-facebook:hover, #footer-facebook:hover {
  background: #1877F2;
  border-color: #1877F2;
  box-shadow: 0 8px 20px rgba(24,119,242,0.4);
}

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.8rem;
  border-radius: 50px;
  font-family: var(--font-main);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--gradient-hero);
  color: white;
  box-shadow: 0 4px 20px rgba(108,99,255,0.35);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(108,99,255,0.5);
}

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

.btn-outline:hover {
  background: rgba(108,99,255,0.1);
  border-color: var(--accent-1);
  transform: translateY(-3px);
}

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

/* ─── Profile Ring ─── */
.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 1s ease 0.3s both;
}

.profile-ring {
  position: relative;
  width: 380px; height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ring {
  position: absolute;
  border-radius: 50%;
  border-style: solid;
  animation: spin-ring linear infinite;
}

.ring-1 {
  width: 100%; height: 100%;
  border-width: 2px;
  border-color: rgba(108,99,255,0.3) transparent rgba(62,207,207,0.3) transparent;
  animation-duration: 8s;
}

.ring-2 {
  width: 88%; height: 88%;
  border-width: 1px;
  border-color: transparent rgba(62,207,207,0.25) transparent rgba(108,99,255,0.25);
  animation-duration: 12s;
  animation-direction: reverse;
}

.ring-3 {
  width: 76%; height: 76%;
  border-width: 2px;
  border-color: rgba(108,99,255,0.15) transparent rgba(62,207,207,0.15) transparent;
  animation-duration: 16s;
}

@keyframes spin-ring {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.profile-img-wrap {
  width: 65%;
  height: 65%;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid transparent;
  background: linear-gradient(var(--bg-primary), var(--bg-primary)) padding-box,
              var(--gradient-hero) border-box;
  box-shadow: var(--shadow-glow), 0 0 0 4px rgba(108,99,255,0.1);
  position: relative;
  z-index: 1;
}

.profile-img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: brightness(1.05) contrast(1.02);
}

/* Tech chips */
.tech-chip {
  position: absolute;
  background: rgba(10,15,46,0.9);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-accent);
  border-radius: 50px;
  padding: 0.4rem 0.9rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
  box-shadow: var(--shadow-card);
  z-index: 2;
}

.tech-chip i { font-size: 0.9rem; }

.chip-1 { top: 5%;  left: -5%;  animation: float 3s ease-in-out infinite; color: #F7DF1E; border-color: rgba(247,223,30,0.4); }
.chip-2 { top: 20%; right: -8%; animation: float 3.5s ease-in-out infinite 0.5s; color: #E76F00; border-color: rgba(231,111,0,0.4); }
.chip-3 { bottom: 25%; left: -8%; animation: float 4s ease-in-out infinite 1s; color: #3776AB; border-color: rgba(55,118,171,0.4); }
.chip-4 { bottom: 8%; right: -5%; animation: float 3.2s ease-in-out infinite 0.3s; color: #00758F; border-color: rgba(0,117,143,0.4); }
.chip-5 { top: 60%; left: -12%; animation: float 3.8s ease-in-out infinite 0.7s; color: #3DDC84; border-color: rgba(61,220,132,0.4); }

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

/* Scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.75rem;
  font-family: var(--font-mono);
  letter-spacing: 0.1em;
  animation: fadeIn 1s ease 1s both;
}

.scroll-line {
  width: 1px;
  height: 50px;
  background: linear-gradient(to bottom, var(--accent-1), transparent);
  animation: scroll-bounce 1.5s ease-in-out infinite;
}

@keyframes scroll-bounce {
  0% { transform: scaleY(0); transform-origin: top; opacity: 0; }
  50% { transform: scaleY(1); transform-origin: top; opacity: 1; }
  100% { transform: scaleY(0); transform-origin: bottom; opacity: 0; }
}

/* ─── Stats Bar ─── */
.stats-bar {
  position: relative;
  z-index: 1;
  background: rgba(255,255,255,0.03);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 2rem 0;
  overflow: hidden;
}

.stats-bar::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: var(--gradient-hero);
  opacity: 0.3;
}

.stats-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  background: var(--gradient-hero);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-family: var(--font-mono);
  line-height: 1;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

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

/* ─── Section Common ─── */
.section {
  position: relative;
  z-index: 1;
  padding: 6rem 0;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

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

.section-tag {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent-1);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

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

/* ─── About Section ─── */
.about {
  background: linear-gradient(to bottom, transparent, rgba(108,99,255,0.03), transparent);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 4rem;
  align-items: start;
}

.about-image-col {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.about-img-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 3/4;
  max-width: 360px;
}

.about-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: brightness(1.05);
  transition: var(--transition-slow);
}

.about-img-wrap:hover .about-img { transform: scale(1.05); }

.about-img-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(5,8,22,0.9), transparent);
  padding: 2rem 1.5rem 1.5rem;
  display: flex;
  justify-content: flex-end;
}

.overlay-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(108,99,255,0.9);
  backdrop-filter: blur(8px);
  border-radius: 50px;
  padding: 0.4rem 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: white;
}

.about-info-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.info-row {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.info-row > i {
  width: 36px; height: 36px;
  background: rgba(108,99,255,0.15);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-1);
  font-size: 0.9rem;
  flex-shrink: 0;
}

.info-label {
  display: block;
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.1rem;
}

.info-value {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-primary);
}

.about-text-col { display: flex; flex-direction: column; gap: 1.5rem; }

.about-heading {
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-primary);
}

.about-para {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.85;
}

.about-para strong { color: var(--accent-1); font-weight: 600; }

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

.highlight-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.highlight-item i { color: var(--accent-2); font-size: 0.85rem; }

/* ─── Skills Section ─── */
.skills {
  background: linear-gradient(to bottom, transparent, rgba(62,207,207,0.02), transparent);
}

.skills-tabs {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.skills-tab {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 50px;
  color: var(--text-secondary);
  font-family: var(--font-main);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.6rem 1.4rem;
  cursor: pointer;
  transition: var(--transition);
}

.skills-tab:hover {
  border-color: var(--accent-1);
  color: var(--text-primary);
}

.skills-tab.active {
  background: var(--gradient-hero);
  border-color: transparent;
  color: white;
  box-shadow: var(--shadow-glow-sm);
}

.skills-panels { position: relative; }

.skills-panel {
  display: none;
  animation: fadeInUp 0.4s ease;
}

.skills-panel.active { display: block; }

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

.skill-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: var(--transition);
}

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

.skill-icon {
  width: 48px; height: 48px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: white;
  flex-shrink: 0;
}

.skill-info {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.skill-name {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-primary);
}

.skill-level {
  font-size: 0.78rem;
  color: var(--text-muted);
}

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

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

/* ─── Projects Section ─── */
.projects {
  background: linear-gradient(to bottom, transparent, rgba(108,99,255,0.03), transparent);
}

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

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-6px);
  box-shadow: var(--shadow-card), var(--shadow-glow-sm);
}

.project-image {
  position: relative;
  height: 200px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(108,99,255,0.15), rgba(62,207,207,0.1));
}

.project-img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
}

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

.project-placeholder {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-size: 3rem;
  color: rgba(108,99,255,0.25);
  pointer-events: none;
}

.project-image.no-img .project-placeholder { color: rgba(108,99,255,0.5); }

.project-overlay {
  position: absolute;
  inset: 0;
  background: rgba(5,8,22,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
  backdrop-filter: blur(4px);
}

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

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

.project-link {
  width: 46px; height: 46px;
  background: rgba(108,99,255,0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1rem;
  text-decoration: none;
  transition: var(--transition);
}

.project-link:hover { background: var(--accent-1); transform: scale(1.1); }

.project-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex: 1;
}

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

.project-tag {
  background: rgba(108,99,255,0.12);
  border: 1px solid rgba(108,99,255,0.25);
  color: var(--accent-1);
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  font-family: var(--font-mono);
}

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

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

.project-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
  font-size: 0.78rem;
  color: var(--text-muted);
}

.project-footer span { display: flex; align-items: center; gap: 0.4rem; }

/* Add project card */
.project-add {
  background: transparent;
  border: 2px dashed rgba(108,99,255,0.2);
  cursor: pointer;
  min-height: 340px;
}

.project-add:hover {
  border-color: var(--accent-1);
  background: rgba(108,99,255,0.04);
  transform: translateY(-4px);
}

.project-add-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 2rem;
  text-align: center;
}

.add-icon {
  width: 60px; height: 60px;
  background: rgba(108,99,255,0.12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--accent-1);
}

.project-add-content h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.project-add-content p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.add-hint {
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: var(--accent-1);
  background: rgba(108,99,255,0.1);
  padding: 0.3rem 0.8rem;
  border-radius: 4px;
}

/* ─── Education / Timeline ─── */
.education {
  background: linear-gradient(to bottom, transparent, rgba(62,207,207,0.02), transparent);
}

.timeline {
  position: relative;
  max-width: 750px;
  margin: 0 auto;
}

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

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

.timeline-dot {
  position: absolute;
  left: 10px;
  top: 0;
  width: 40px; height: 40px;
  background: var(--gradient-hero);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1rem;
  box-shadow: 0 0 20px rgba(108,99,255,0.5);
  z-index: 1;
}

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

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

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

.timeline-header h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.timeline-year {
  font-size: 0.75rem;
  font-weight: 600;
  font-family: var(--font-mono);
  color: var(--text-muted);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.2rem 0.6rem;
  white-space: nowrap;
}

.active-badge {
  background: rgba(62,207,207,0.15);
  border-color: rgba(62,207,207,0.3);
  color: var(--accent-2) !important;
}

.timeline-institution {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--accent-1);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.timeline-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 1rem;
}

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

.timeline-tags span {
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.2rem 0.6rem;
}

/* ─── Education Details Grid ─── */
.edu-details-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem;
  margin: 1.25rem 0;
  padding: 1.25rem;
  background: rgba(108,99,255,0.05);
  border: 1px solid rgba(108,99,255,0.12);
  border-radius: var(--radius-md);
}

.edu-detail-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.edu-detail-item > i {
  width: 34px; height: 34px;
  background: rgba(108,99,255,0.15);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-1);
  font-size: 0.85rem;
  flex-shrink: 0;
}

.edu-detail-label {
  display: block;
  font-size: 0.68rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.1rem;
}

.edu-detail-value {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
}

.edu-courses {
  margin-top: 1.25rem;
  border-top: 1px solid var(--border);
  padding-top: 1.25rem;
}

.edu-courses-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.edu-courses-title i { color: var(--accent-1); }

@media (max-width: 640px) {
  .edu-details-grid { grid-template-columns: 1fr; }
}

/* ─── Contact Section ─── */
.contact {
  background: linear-gradient(to bottom, transparent, rgba(108,99,255,0.04), transparent);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  align-items: start;
}

.contact-heading {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.contact-para {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 2rem;
}

.contact-methods {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-method {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

.contact-method:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-accent);
  transform: translateX(4px);
}

.method-icon {
  width: 44px; height: 44px;
  background: rgba(108,99,255,0.15);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-1);
  font-size: 1.1rem;
  flex-shrink: 0;
}

.method-info { flex: 1; }

.method-label {
  display: block;
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.15rem;
}

.method-value {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-primary);
}

.method-arrow {
  color: var(--text-muted);
  font-size: 0.85rem;
  transition: var(--transition);
}

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

/* Contact form */
.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-group { display: flex; flex-direction: column; gap: 0.4rem; }

.form-label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.form-input, .form-textarea {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font-main);
  font-size: 0.95rem;
  padding: 0.75rem 1rem;
  transition: var(--transition);
  resize: vertical;
  outline: none;
  width: 100%;
}

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

.form-input:focus, .form-textarea:focus {
  border-color: var(--accent-1);
  background: rgba(108,99,255,0.06);
  box-shadow: 0 0 0 3px rgba(108,99,255,0.1);
}

.form-success {
  display: none;
  align-items: center;
  gap: 0.6rem;
  color: var(--accent-2);
  font-size: 0.9rem;
  font-weight: 500;
  background: rgba(62,207,207,0.1);
  border: 1px solid rgba(62,207,207,0.25);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
}

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

/* ─── Footer ─── */
.footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  padding: 3rem 0;
  background: rgba(0,0,0,0.2);
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}

.footer-logo {
  font-family: var(--font-mono);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text-primary);
  text-decoration: none;
  transition: var(--transition);
}

.footer-logo:hover { color: var(--accent-1); }

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

.footer-socials {
  display: flex;
  gap: 0.75rem;
}

.footer-social {
  width: 38px; height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 50%;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: var(--transition);
}

.footer-social:hover {
  background: var(--accent-1);
  border-color: var(--accent-1);
  color: white;
  transform: translateY(-2px);
}

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

/* ─── Animations ─── */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInDown { from { opacity: 0; transform: translateY(-20px); } to { opacity: 1; transform: translateY(0); } }

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal-right.visible { opacity: 1; transform: translateX(0); }

/* ─── Mobile Navigation ─── */
@media (max-width: 768px) {
  .hamburger { display: flex; }
  .nav-cta { display: none; }
  .nav-links {
    position: fixed;
    inset: var(--nav-height) 0 0 0;
    background: rgba(5,8,22,0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    transform: translateX(100%);
    transition: var(--transition-slow);
  }
  .nav-links.open { transform: translateX(0); }
  .nav-link { font-size: 1.1rem; padding: 0.75rem 2rem; }
  .hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .hamburger.open span:nth-child(2) { opacity: 0; }
  .hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ─── Responsive Breakpoints ─── */
@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    min-height: auto;
    padding-top: calc(var(--nav-height) + 3rem);
    padding-bottom: 4rem;
  }
  .hero-visual { order: -1; margin: 0 auto; }
  .profile-ring { width: 280px; height: 280px; }
  .hero-actions { justify-content: center; }
  .hero-socials { justify-content: center; }
  .hero-scroll { display: none; }
  .chip-1, .chip-3, .chip-5 { display: none; }
  .chip-2 { top: 0; right: 0; }
  .chip-4 { bottom: 0; right: 0; }
  .about-grid { grid-template-columns: 1fr; }
  .about-image-col { align-items: center; }
  .about-img-wrap { max-width: 300px; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .section { padding: 4rem 0; }
  .section-title { font-size: 1.75rem; }
  .stats-container { gap: 1.5rem; }
  .stat-number { font-size: 2rem; }
  .projects-grid { grid-template-columns: 1fr; }
  .skills-grid { grid-template-columns: 1fr; }
  .about-highlights { grid-template-columns: 1fr; }
  .hero-roles { font-size: 1rem; }
  .profile-ring { width: 240px; height: 240px; }
  .contact-form { padding: 1.25rem; }
  .timeline::before { left: 18px; }
  .timeline-item { padding-left: 60px; }
  .timeline-dot { left: 0; width: 36px; height: 36px; }
}
