/* Profile Image Container */
.profile-img-container {
  position: relative;
  width: 260px;
  height: 260px;
  margin: auto;
}

/* Actual Image */
.profile-img {
  width: 100%;
  height: 100%;
  object-fit: cover;     /* ✅ fits perfectly */
  border-radius: 50%;    /* circle image */
  position: relative;
  z-index: 2;
  border: 3px solid rgba(255,255,255,0.15);
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

/* Animated Rings */
.profile-ring {
  position: absolute;
  border-radius: 50%;
  border: 2px solid rgba(0,255,255,0.3);
  animation: pulseRing 6s linear infinite;
}

.ring-1 {
  width: 300px;
  height: 300px;
  top: -20px;
  left: -20px;
}

.ring-2 {
  width: 340px;
  height: 340px;
  top: -40px;
  left: -40px;
  animation-delay: 2s;
}

.ring-3 {
  width: 380px;
  height: 380px;
  top: -60px;
  left: -60px;
  animation-delay: 4s;
}

/* Ring animation */
@keyframes pulseRing {
  0% {
    transform: scale(0.95);
    opacity: 0.7;
  }
  50% {
    transform: scale(1);
    opacity: 0.3;
  }
  100% {
    transform: scale(0.95);
    opacity: 0.7;
  }
}
/* ═══════════════════════════════════════════════════════════════
  Jayesh Patel PORTFOLIO — style.css
   Futuristic glassmorphism portfolio with dark/light theme
   ═══════════════════════════════════════════════════════════════ */

/* ──────────────────────── CUSTOM SCROLLBAR ──────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 3px; }

/* ──────────────────────── CSS VARIABLES ─────────────────────── */
:root {
  /* Dark theme (default) */
  --bg:          #060810;
  --bg-2:        #0c1020;
  --bg-3:        #111827;
  --text:        #e8eaf2;
  --text-muted:  #8892a4;
  --accent:      #00d4ff;
  --accent-2:    #7b5cff;
  --accent-3:    #ff6b6b;
  --glass-bg:    rgba(255,255,255,0.04);
  --glass-border:rgba(255,255,255,0.08);
  --nav-bg:      rgba(6,8,16,0.8);
  --shadow:      0 8px 32px rgba(0,0,0,0.4);
  --glow:        0 0 40px rgba(0,212,255,0.15);
  --radius:      16px;
  --transition:  cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="light"] {
  --bg:          #f0f4ff;
  --bg-2:        #e4ebff;
  --bg-3:        #d8e3ff;
  --text:        #0f172a;
  --text-muted:  #4a5568;
  --glass-bg:    rgba(255,255,255,0.6);
  --glass-border:rgba(0,0,0,0.1);
  --nav-bg:      rgba(240,244,255,0.85);
  --shadow:      0 8px 32px rgba(0,0,50,0.1);
  --glow:        0 0 40px rgba(0,212,255,0.2);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'JetBrains Mono', 'Fira Code', monospace;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  cursor: none; /* custom cursor */
  transition: background 0.4s var(--transition), color 0.4s var(--transition);
}

@media (max-width: 768px) {
  body { cursor: auto; }
  #cursor-dot, #cursor-ring { display: none; }
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; font-family: inherit; }
textarea { resize: vertical; }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 60px);
}

/* ──────────────────────── LOADER ─────────────────────────────── */
#loader {
  position: fixed;
  inset: 0;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

#loader.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader-inner {
  text-align: center;
  width: 280px;
}

.loader-bar {
  height: 2px;
  background: var(--glass-border);
  border-radius: 1px;
  overflow: hidden;
  margin-bottom: 16px;
}

.loader-bar::after {
  content: '';
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  animation: loadBar 1.5s ease forwards;
}

@keyframes loadBar {
  to { width: 100%; }
}

.loader-text {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: var(--text-muted);
  animation: blink 1s ease infinite;
}

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

/* ──────────────────────── CUSTOM CURSOR ─────────────────────── */
#cursor-dot {
  position: fixed;
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: width 0.2s, height 0.2s, background 0.2s;
}

#cursor-ring {
  position: fixed;
  width: 36px;
  height: 36px;
  border: 1.5px solid var(--accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9997;
  transform: translate(-50%, -50%);
  transition: all 0.12s ease;
  opacity: 0.6;
}

body:has(a:hover) #cursor-dot,
body:has(button:hover) #cursor-dot {
  width: 14px;
  height: 14px;
  background: var(--accent-2);
}

body:has(a:hover) #cursor-ring,
body:has(button:hover) #cursor-ring {
  width: 52px;
  height: 52px;
  border-color: var(--accent-2);
}

/* ──────────────────────── NAVBAR ─────────────────────────────── */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 20px 0;
  transition: padding 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}

#navbar.scrolled {
  padding: 12px 0;
  background: var(--nav-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 var(--glass-border);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 60px);
}

.nav-logo {
  font-family: 'Syne', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
}

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

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

.nav-link {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  position: relative;
  padding-bottom: 2px;
  transition: color 0.2s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.3s ease;
}

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

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.theme-btn {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--text);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.theme-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #000;
  transform: rotate(180deg);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 6px;
  z-index: 1001;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.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); }

@media (max-width: 900px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: min(300px, 80vw);
    height: 100vh;
    background: var(--bg-2);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2.5rem;
    transition: right 0.4s var(--transition);
    border-left: 1px solid var(--glass-border);
  }
  .nav-links.open { right: 0; }
  .hamburger { display: flex; }
  .nav-link { font-size: 1rem; }
}

/* ──────────────────────── HERO ──────────────────────────────── */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

#heroCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 60px);
  padding-top: 100px;
}

.hero-greeting {
  font-size: 0.85rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.hero-name {
  font-family: 'Syne', sans-serif;
  font-size: clamp(3.5rem, 9vw, 8rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.03em;
  margin-bottom: 28px;
}

.name-accent {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-roles {
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  color: var(--text-muted);
  margin-bottom: 24px;
  min-height: 2em;
}

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

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

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

.hero-desc {
  max-width: 500px;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 40px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 64px;
}

.hero-scroll-hint {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.scroll-line {
  width: 60px;
  height: 1px;
  background: linear-gradient(to right, var(--accent), transparent);
  animation: scrollPulse 2s ease infinite;
}

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

/* ──────────────────────── BUTTONS ───────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 28px;
  border-radius: 6px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  border: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.1);
  transform: translateX(-100%);
  transition: transform 0.3s ease;
}

.btn:hover::before { transform: translateX(100%); }

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #000;
  box-shadow: 0 4px 20px rgba(0,212,255,0.25);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0,212,255,0.4);
}

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

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

.full-width { width: 100%; }

/* ──────────────────────── SECTIONS ──────────────────────────── */
section {
  padding: clamp(80px, 12vw, 140px) 0;
  position: relative;
}

section:nth-child(even) {
  background: var(--bg-2);
}

.section-header {
  margin-bottom: 60px;
}

.section-tag {
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  color: var(--accent);
  display: block;
  margin-bottom: 10px;
}

.section-title {
  font-family: 'Syne', sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
}

/* ──────────────────────── GLASS CARD ───────────────────────── */
.glass {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: var(--radius);
}

/* ──────────────────────── ABOUT ─────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}

@media (max-width: 768px) {
  .about-grid { grid-template-columns: 1fr; }
}

.about-image-wrap {
  display: flex;
  justify-content: center;
}

.profile-float {
  position: relative;
  animation: float 6s ease-in-out infinite;
}

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

.profile-img-placeholder {
  position: relative;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Syne', sans-serif;
  font-size: 2.5rem;
  font-weight: 800;
  color: #fff;
}

.profile-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid;
  animation: ringPulse 3s ease-in-out infinite;
}

.ring-1 { width: 230px; height: 230px; top: -15px; left: -15px; border-color: rgba(0,212,255,0.3); }
.ring-2 { width: 265px; height: 265px; top: -32.5px; left: -32.5px; border-color: rgba(0,212,255,0.15); animation-delay: 0.5s; }
.ring-3 { width: 300px; height: 300px; top: -50px; left: -50px; border-color: rgba(0,212,255,0.06); animation-delay: 1s; }

@keyframes ringPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.04); opacity: 0.6; }
}

.profile-badge {
  position: absolute;
  bottom: -16px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-2);
  border: 1px solid var(--glass-border);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.72rem;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 8px;
}

.badge-dot {
  width: 8px;
  height: 8px;
  background: #22c55e;
  border-radius: 50%;
  animation: pulse 2s ease infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(34,197,94,0.4); }
  50% { box-shadow: 0 0 0 6px rgba(34,197,94,0); }
}

.about-text p {
  color: var(--text-muted);
  margin-bottom: 20px;
  line-height: 1.9;
  font-size: 0.9rem;
}

.about-lead {
  font-size: 1.05rem !important;
  color: var(--text) !important;
  line-height: 1.7 !important;
}

.about-lead strong { color: var(--accent); }

.about-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin: 28px 0;
}

.info-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.info-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
}

.info-card-icon { font-size: 1.4rem; }
.info-card strong { display: block; font-size: 0.8rem; }
.info-card span { font-size: 0.72rem; color: var(--text-muted); }

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

.skill-category {
  padding: 28px;
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.skill-category:hover {
  border-color: rgba(0,212,255,0.3);
  transform: translateY(-4px);
  box-shadow: var(--glow);
}

.skill-cat-title {
  font-family: 'Syne', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
}

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

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

.skill-item {}

.skill-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  margin-bottom: 6px;
}

.skill-pct { color: var(--accent); }

.skill-bar {
  height: 4px;
  background: var(--glass-border);
  border-radius: 2px;
  overflow: hidden;
}

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

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

@media (max-width: 480px) {
  .projects-grid { grid-template-columns: 1fr; }
}

.project-card {
  padding: 28px;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

.project-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.project-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0,212,255,0.25);
  box-shadow: 0 20px 60px rgba(0,0,0,0.3), var(--glow);
}

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

.project-card.featured {
  border-color: rgba(123,92,255,0.3);
  background: linear-gradient(135deg, rgba(123,92,255,0.08), rgba(0,212,255,0.04));
}

.project-card.featured::before {
  background: linear-gradient(90deg, var(--accent-2), var(--accent));
}

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

.project-num {
  font-family: 'Syne', sans-serif;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--glass-border);
  line-height: 1;
}

.project-featured-badge {
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  color: #fff;
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 20px;
  font-weight: 600;
}

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

.proj-link {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.proj-link:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: rgba(0,212,255,0.08);
}

.project-title {
  font-family: 'Syne', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.project-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 20px;
}

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

.project-tags span {
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: var(--accent);
  background: rgba(0,212,255,0.08);
  border: 1px solid rgba(0,212,255,0.2);
  padding: 4px 10px;
  border-radius: 4px;
}

/* ──────────────────────── EDUCATION ─────────────────────────── */
.timeline {
  position: relative;
  max-width: 820px;
}

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

.timeline-item {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 24px;
  margin-bottom: 36px;
  position: relative;
}

.timeline-dot {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--accent);
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  align-self: start;
  margin-top: 10px;
}

.timeline-dot::after {
  content: '';
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: var(--accent);
}

.timeline-content {
  padding: 24px 28px;
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.timeline-content:hover {
  border-color: rgba(0,212,255,0.3);
  transform: translateX(6px);
}

.timeline-date {
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  display: block;
  margin-bottom: 8px;
}

.timeline-content h3 {
  font-family: 'Syne', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.timeline-org {
  font-size: 0.78rem;
  color: var(--accent-2);
  margin-bottom: 10px !important;
}

.timeline-content p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ──────────────────────── EXPERTISE ─────────────────────────── */
.expertise-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.expertise-card {
  padding: 32px 28px;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

.expertise-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--accent), transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.expertise-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0,212,255,0.25);
  box-shadow: var(--glow);
}

.expertise-card:hover::after { transform: scaleX(1); }

.expertise-icon {
  font-size: 2rem;
  margin-bottom: 16px;
}

.expertise-card h3 {
  font-family: 'Syne', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.expertise-card p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.8;
}

/* ──────────────────────── ACHIEVEMENTS ──────────────────────── */
.achievements-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 24px;
}

.achievement-card {
  padding: 36px 24px 28px;
  text-align: center;
  position: relative;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.achievement-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0,212,255,0.4);
  box-shadow: var(--glow);
}

.counter-value {
  font-family: 'Syne', sans-serif;
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
  line-height: 1;
}

.counter-suffix {
  font-family: 'Syne', sans-serif;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--accent);
  display: inline-block;
  vertical-align: super;
  line-height: 1;
  margin-left: 2px;
}

.achievement-card p {
  font-size: 0.78rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  margin-top: 12px;
  line-height: 1.5;
}

/* ──────────────────────── CONTACT ───────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}

@media (max-width: 768px) {
  .contact-grid { grid-template-columns: 1fr; }
}

.contact-lead {
  font-size: 1rem;
  color: var(--text);
  line-height: 1.8;
  margin-bottom: 32px;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 32px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.contact-item:hover { color: var(--accent); }

.contact-item-icon {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.contact-item:hover .contact-item-icon {
  border-color: var(--accent);
  background: rgba(0,212,255,0.08);
}

.social-row {
  display: flex;
  gap: 12px;
}

.social-btn {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.social-btn:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: rgba(0,212,255,0.08);
  transform: translateY(-3px);
}

/* ── Contact Form ── */
.contact-form {
  padding: 36px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 500px) {
  .form-row { grid-template-columns: 1fr; }
}

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

.form-group label {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.form-group input,
.form-group textarea {
  background: var(--bg);
  border: 1px solid var(--glass-border);
  border-radius: 8px;
  color: var(--text);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  padding: 12px 16px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0,212,255,0.1);
}

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

.form-status {
  margin-top: 12px;
  font-size: 0.78rem;
  color: var(--accent);
  text-align: center;
  min-height: 1.2em;
}

/* ──────────────────────── FOOTER ────────────────────────────── */
#footer {
  padding: 40px 0;
  border-top: 1px solid var(--glass-border);
  background: var(--bg);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-logo {
  font-family: 'Syne', sans-serif;
  font-size: 1.3rem;
  font-weight: 800;
}

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

.footer-top-link {
  font-size: 0.78rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  transition: color 0.2s ease;
}

.footer-top-link:hover { color: var(--accent); }

/* ──────────────────────── BACK TO TOP ───────────────────────── */
.back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #000;
  font-size: 1.1rem;
  font-weight: 700;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
  z-index: 900;
  box-shadow: 0 4px 16px rgba(0,212,255,0.3);
}

.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

.back-to-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,212,255,0.5);
}

/* ──────────────────────── REVEAL ANIMATIONS ─────────────────── */
.reveal-up,
.reveal-left,
.reveal-right {
  opacity: 0;
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.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);
}

/* Delay utilities */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }

/* ──────────────────────── ANIMATED GRADIENT BG ─────────────── */
#hero {
  background: var(--bg);
}

/* Particle canvas handles the background animation */

/* ──────────────────────── RESPONSIVE TWEAKS ────────────────── */
@media (max-width: 600px) {
  .hero-cta { flex-direction: column; }
  .hero-cta .btn { width: 100%; }
  .achievements-grid { grid-template-columns: repeat(2, 1fr); }
  .expertise-grid { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: 1fr; }
}

/* ──────────────────────── SELECTION COLOR ──────────────────── */
::selection {
  background: rgba(0,212,255,0.3);
  color: var(--text);
}
