/* ============================================================
   PRABHAKAR S GAUR — PORTFOLIO STYLESHEET
   Theme: Dark-first with glassmorphism accents
   Fonts: Syne (display) + DM Sans (body)
   ============================================================ */

/* ── CSS VARIABLES ──────────────────────────────────────────── */
:root {
  --bg:         #0a0a0f;
  --bg2:        #0f0f18;
  --surface:    rgba(255,255,255,0.04);
  --surface-hov:rgba(255,255,255,0.08);
  --border:     rgba(255,255,255,0.08);
  --border-hov: rgba(255,255,255,0.18);
  --text:       #e8e8f0;
  --text-muted: #888899;
  --accent:     #7c6aff;
  --accent2:    #48cfad;
  --accent-glow:rgba(124,106,255,0.35);
  --nav-h:      68px;
  --radius:     16px;
  --radius-sm:  10px;
  --font-display:'Syne', sans-serif;
  --font-body:   'DM Sans', sans-serif;
  --ease:       cubic-bezier(0.4, 0, 0.2, 1);
  --trans:      0.3s var(--ease);
}

/* Light mode */
[data-theme="light"] {
  --bg:         #f2f2f8;
  --bg2:        #ffffff;
  --surface:    rgba(0,0,0,0.04);
  --surface-hov:rgba(0,0,0,0.07);
  --border:     rgba(0,0,0,0.08);
  --border-hov: rgba(0,0,0,0.2);
  --text:       #1a1a2e;
  --text-muted: #666677;
  --accent-glow:rgba(124,106,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: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
  transition: background var(--trans), color var(--trans);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
ul { list-style: none; }

/* ── CANVAS BACKGROUND ───────────────────────────────────────── */
#bg-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.5;
}

/* ── CUSTOM CURSOR ───────────────────────────────────────────── */
.cursor-dot,
.cursor-ring {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s;
}

.cursor-dot {
  width: 8px; height: 8px;
  background: var(--accent);
  transition: transform 0.1s var(--ease);
}

.cursor-ring {
  width: 36px; height: 36px;
  border: 1.5px solid var(--accent);
  opacity: 0.5;
  transition: transform 0.18s var(--ease), width 0.2s, height 0.2s;
}

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

@media (hover: none) {
  .cursor-dot, .cursor-ring { display: none; }
}

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

/* ── TYPOGRAPHY ──────────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

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

/* ── LAYOUT HELPERS ──────────────────────────────────────────── */
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

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

/* ── SECTION HEADERS ─────────────────────────────────────────── */
.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(124,106,255,0.12);
  border: 1px solid rgba(124,106,255,0.25);
  padding: 4px 14px;
  border-radius: 100px;
  margin-bottom: 14px;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--text);
}

/* ── BUTTONS ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-size: 0.93rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: var(--trans);
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.07);
  opacity: 0;
  transition: opacity var(--trans);
}

.btn:hover::before { opacity: 1; }

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 0 24px var(--accent-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px var(--accent-glow);
}

.btn-ghost {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  backdrop-filter: blur(12px);
}

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

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

/* ── NAVBAR ──────────────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  transition: background var(--trans), backdrop-filter var(--trans), box-shadow var(--trans);
}

.navbar.scrolled {
  background: rgba(10,10,15,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 var(--border);
}

[data-theme="light"] .navbar.scrolled {
  background: rgba(242,242,248,0.85);
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
}

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

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

.nav-link {
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 8px;
  color: var(--text-muted);
  transition: var(--trans);
  letter-spacing: 0.01em;
}

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

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

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

/* Theme toggle */
.theme-toggle {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--trans);
}

.theme-toggle:hover {
  background: var(--surface-hov);
  border-color: var(--border-hov);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 38px; height: 38px;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  transition: var(--trans);
}

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

.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

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

.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 40px;
  max-width: 700px;
}

.hero-greeting {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.hero-name {
  font-size: clamp(3.2rem, 8vw, 6.5rem);
  font-weight: 800;
  color: var(--text);
  line-height: 1.0;
  margin-bottom: 18px;
}

.name-accent {
  -webkit-text-stroke: 2px var(--accent);
  color: transparent;
}

.hero-typing-wrapper {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  font-weight: 600;
  color: var(--accent2);
  margin-bottom: 18px;
  min-height: 2em;
}

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

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

.hero-tagline {
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 40px;
  max-width: 480px;
}

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

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

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

@keyframes scrollLineAnim {
  0%,100% { transform: scaleX(1); opacity:1; }
  50% { transform: scaleX(0.4); opacity:0.4; }
}

/* Floating hero shapes */
.hero-shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.12;
  pointer-events: none;
  animation: floatShape 8s ease-in-out infinite alternate;
}

.shape-1 {
  width: 500px; height: 500px;
  background: var(--accent);
  top: -100px; right: -100px;
  animation-delay: 0s;
}

.shape-2 {
  width: 300px; height: 300px;
  background: var(--accent2);
  bottom: 100px; right: 300px;
  animation-delay: 3s;
}

.shape-3 {
  width: 200px; height: 200px;
  background: #f64f59;
  bottom: 0; left: 20%;
  animation-delay: 1.5s;
}

@keyframes floatShape {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(20px, -30px) scale(1.05); }
}

/* ── ABOUT ────────────────────────────────────────────────────── */
.about { background: var(--bg2); }

.about-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 64px;
  align-items: start;
}

.about-avatar-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.about-avatar {
  position: relative;
  width: 200px; height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.avatar-img {
  width: 160px; height: 160px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  position: relative;
  z-index: 2;
}

.avatar-initials {
  width: 160px; height: 160px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  color: #fff;
  position: relative;
  z-index: 1;
}

.avatar-ring {
  position: absolute;
  border-radius: 50%;
  border: 1.5px solid var(--accent);
  opacity: 0.3;
}

.ring-1 { width: 180px; height: 180px; animation: ringPulse 3s ease-in-out infinite; }
.ring-2 { width: 200px; height: 200px; animation: ringPulse 3s ease-in-out 1.5s infinite; }

@keyframes ringPulse {
  0%,100% { opacity:0.3; transform:scale(1); }
  50%  { opacity:0.08; transform:scale(1.05); }
}

.about-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 100px;
  background: rgba(72,207,173,0.12);
  border: 1px solid rgba(72,207,173,0.3);
  color: var(--accent2);
  font-size: 0.85rem;
  font-weight: 600;
}

.about-intro {
  font-size: 1.08rem;
  color: var(--text);
  margin-bottom: 16px;
}

.about-text p {
  color: var(--text-muted);
  margin-bottom: 28px;
}

.about-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.info-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: var(--trans);
}

.info-card:hover {
  background: var(--surface-hov);
  border-color: var(--border-hov);
  transform: translateY(-2px);
}

.info-card i {
  font-size: 1.4rem;
  color: var(--accent);
}

.info-card strong {
  display: block;
  font-size: 0.8rem;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1px;
}

.info-card span {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ── SKILLS ──────────────────────────────────────────────────── */
.skills {
  background: var(--bg);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 18px;
}

.skill-card {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(10px);
  transition: var(--trans);
  animation-delay: var(--delay);
}

.skill-card:hover {
  background: var(--surface-hov);
  border-color: rgba(124,106,255,0.3);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.15);
}

.skill-icon-wrap {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--clr) 15%, transparent);
  border: 1px solid color-mix(in srgb, var(--clr) 30%, transparent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  color: var(--clr);
  flex-shrink: 0;
  transition: var(--trans);
}

.skill-card:hover .skill-icon-wrap {
  background: color-mix(in srgb, var(--clr) 25%, transparent);
  transform: rotate(-8deg) scale(1.08);
}

.skill-info { flex: 1; }

.skill-name-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
}

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

.skill-bar {
  height: 6px;
  background: var(--border);
  border-radius: 100px;
  overflow: hidden;
}

.skill-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--clr), color-mix(in srgb, var(--clr) 60%, white));
  border-radius: 100px;
  transition: width 1.2s var(--ease);
  box-shadow: 0 0 10px color-mix(in srgb, var(--clr) 50%, transparent);
}

/* ── PROJECTS ─────────────────────────────────────────────────── */
.projects { background: var(--bg2); }

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.project-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--trans);
  animation-delay: var(--delay);
}

.project-card:hover {
  border-color: rgba(124,106,255,0.35);
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}

.project-image {
  position: relative;
  height: 180px;
  overflow: hidden;
}

.project-img-placeholder {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, var(--clr1), var(--clr2));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: rgba(255,255,255,0.6);
  transition: var(--trans);
}

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

.project-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10,10,15,0.75);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  opacity: 0;
  transition: var(--trans);
}

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

.overlay-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 8px;
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  backdrop-filter: blur(4px);
  transition: var(--trans);
}

.overlay-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
}

.project-body { padding: 20px; }

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

.project-tags span {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 3px 10px;
  border-radius: 100px;
  background: rgba(124,106,255,0.12);
  border: 1px solid rgba(124,106,255,0.2);
  color: var(--accent);
}

.project-title {
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.project-desc {
  font-size: 0.87rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ── RESUME ──────────────────────────────────────────────────── */
.resume-sec { background: var(--bg); }

.resume-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}

.resume-preview-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 48px 36px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
  backdrop-filter: blur(10px);
  transition: var(--trans);
}

.resume-preview-card:hover {
  border-color: rgba(124,106,255,0.3);
  transform: translateY(-4px);
}

.resume-icon {
  font-size: 3.5rem;
  color: #e34234;
  line-height: 1;
}

.resume-meta h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}

.resume-meta p {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.certifications-card {
  margin-top: 18px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.certifications-card h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
  color: var(--text);
  margin-bottom: 14px;
}

.certifications-card h3 i {
  color: var(--accent);
  font-size: 1.2rem;
}

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

.certifications-list li {
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
}

.certifications-list strong {
  display: block;
  font-size: 0.9rem;
  color: var(--text);
  margin-bottom: 2px;
}

.certifications-list span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Timeline */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
}

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

.timeline-item {
  display: flex;
  gap: 24px;
  padding-bottom: 36px;
  position: relative;
}

.tl-dot {
  width: 20px; height: 20px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  background: var(--bg);
  flex-shrink: 0;
  margin-top: 4px;
  position: relative;
  z-index: 1;
  box-shadow: 0 0 12px var(--accent-glow);
}

.tl-year {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 6px;
}

.tl-content h4 {
  font-size: 1rem;
  color: var(--text);
  margin-bottom: 6px;
}

.tl-content p {
  font-size: 0.87rem;
  color: var(--text-muted);
}

/* ===== CONTACT SECTION ===== */

.contact{
  padding: 120px 0;
  position: relative;
}

.contact-grid{
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: start;
  max-width: 820px;
  margin: 0 auto;
}

.contact-wrapper{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
  margin-top: 70px;
}

/* LEFT SIDE */

.contact-info{
  width: 100%;
}

.contact-text{
  font-size: 1.1rem;
  line-height: 1.9;
  color: #bcbcbc;
  margin-bottom: 40px;
}

.contact-card{
  display: flex;
  align-items: center;
  gap: 20px;

  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);

  padding: 24px;
  border-radius: 20px;

  margin-bottom: 22px;

  transition: 0.3s ease;
}

.contact-card:hover{
  transform: translateY(-5px);
  border-color: #7c5cff;
}

.contact-card h4{
  font-size: 1.2rem;
  margin-bottom: 5px;
}

.contact-card p{
  color: #9d9d9d;
  font-size: 0.95rem;
  word-break: break-word;
}

/* ICONS */

.contact-icon{
  width: 60px;
  min-width: 60px;
  height: 60px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 16px;
  font-size: 1.5rem;
}

.contact-icon.red{
  background: rgba(255,70,70,0.12);
  color: #ff4d4d;
}

.contact-icon.blue{
  background: rgba(0,119,181,0.12);
  color: #0a66c2;
}

.contact-icon.purple{
  background: rgba(124,92,255,0.12);
  color: #8b5cf6;
}

.contact-icon.youtube{
  background: rgba(255,0,0,0.12);
  color: #ff0000;
}

/* RIGHT SIDE */

.contact-form-wrap{
  width: 100%;
  max-width: 100%;
}

.contact-form{
  width: 100%;

  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);

  padding: 40px;
  border-radius: 28px;

  box-sizing: border-box;
}

.form-group{
  margin-bottom: 28px;
  width: 100%;
}

.form-group label{
  display: block;
  margin-bottom: 12px;

  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 1px;

  color: #cfcfcf;
  text-transform: uppercase;
}

.form-group input,
.form-group textarea{
  width: 100%;
  min-width: 100%;

  display: block;

  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);

  padding: 18px 20px;
  border-radius: 16px;

  color: #fff;
  font-size: 1rem;

  outline: none;

  box-sizing: border-box;
}

/* FIXED TEXTAREA SIZE */

.form-group textarea{
  min-height: 180px;
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus{
  border-color: #7c5cff;
}

/* BUTTON */

.contact-btn{
  width: 100%;

  border: none;
  cursor: pointer;

  padding: 18px;

  border-radius: 16px;

  background: linear-gradient(
    90deg,
    #7c5cff,
    #8b5cf6
  );

  color: #fff;
  font-size: 1rem;
  font-weight: 600;

  transition: 0.3s ease;
}

.contact-btn:hover{
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(124,92,255,0.35);
}

/* ===== FOOTER ===== */

.footer{
  padding: 35px 0;
  border-top: 1px solid rgba(255,255,255,0.06);
}

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

.footer-copy{
  color: #bcbcbc;
}

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

.footer-socials a{
  width: 46px;
  height: 46px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 14px;

  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);

  color: #fff;
  font-size: 1.2rem;

  transition: 0.3s ease;
}

.footer-socials a:hover{
  background: #7c5cff;
  transform: translateY(-4px);
}

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

@media(max-width: 992px){

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

  .footer-inner{
    flex-direction: column;
    text-align: center;
  }

}

/* ── BACK TO TOP ─────────────────────────────────────────────── */

.back-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 500;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--accent);
  color: #fff;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px var(--accent-glow);
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: var(--trans);
}

.back-top.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.back-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px var(--accent-glow);
}

/* ── SCROLL REVEAL ───────────────────────────────────────────── */

.reveal-up,
.reveal-left,
.reveal-right {
  opacity: 0;
  transition: opacity 0.7s var(--ease),
              transform 0.7s var(--ease);

  transition-delay: var(--delay, 0s);
}

.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);
}
/* ── YOUTUBE SECTION ──────────────────────────────────────── */
.youtube-section { background: var(--bg2); }

.youtube-section .project-card {
  max-width: 500px;
  margin: 0 auto;
}

/* ── RESPONSIVE ──────────────────────────────────────────────── */
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-avatar-wrap { flex-direction: row; align-items: center; justify-content: center; }
  .resume-wrap { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .navbar { padding: 0 20px; }
  .hero-content { padding: 0 20px; }

  .nav-links {
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 24px 20px;
    gap: 4px;
    transform: translateY(-110%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.4s var(--ease), opacity 0.4s var(--ease);
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-link { width: 100%; padding: 12px 16px; }

  .hamburger { display: flex; }

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

  .footer-inner { flex-direction: column; gap: 16px; text-align: center; }

  .section { padding: 70px 0; }
}

@media (max-width: 480px) {
  .hero-cta { flex-direction: column; }
  .btn { width: 100%; justify-content: center; }
  .resume-preview-card { padding: 32px 20px; }
  .contact-form-wrap { padding: 24px 20px; }
}

@media (max-width: 1200px) {
  .navbar { padding: 0 24px; }
  .hero-content { max-width: 640px; padding: 0 24px; }
}

@media (max-width: 992px) {
  .section { padding: 84px 0; }
  .container { padding: 0 20px; }
  .about-grid { grid-template-columns: 1fr; gap: 36px; }
  .resume-wrap { grid-template-columns: 1fr; gap: 30px; }
  .contact-grid { max-width: 100%; }
  .contact-form { padding: 30px 22px; border-radius: 22px; }
}

@media (max-width: 768px) {
  .navbar { padding: 0 16px; }
  .hero-content { padding: 0 16px; }
  .hero-name { font-size: clamp(2.3rem, 11vw, 3.5rem); }
  .hero-tagline { font-size: 0.96rem; margin-bottom: 28px; }
  .hero-cta { gap: 10px; margin-bottom: 34px; }
  .section-header { margin-bottom: 42px; }

  .skills-grid,
  .projects-grid,
  .about-cards {
    grid-template-columns: 1fr;
  }

  .project-image { height: 170px; }
  .timeline-item { gap: 14px; padding-bottom: 26px; }
  .tl-content h4 { font-size: 0.92rem; }
  .tl-content p { font-size: 0.82rem; }

  .contact { padding: 86px 0; }
  .contact-form { padding: 24px 16px; border-radius: 18px; }
  .form-group { margin-bottom: 18px; }
  .form-group input,
  .form-group textarea { padding: 14px 14px; font-size: 0.95rem; }
  .form-group textarea { min-height: 130px; }

  .footer { padding: 26px 0; }
  .footer-inner { flex-direction: column; text-align: center; gap: 12px; }
}

@media (max-width: 480px) {
  .container { padding: 0 14px; }
  .section { padding: 72px 0; }
  .section-title { font-size: clamp(1.65rem, 9vw, 2.1rem); }
  .hero-scroll { display: none; }
  .btn { width: 100%; justify-content: center; padding: 12px 16px; }
  .skill-card { padding: 16px 14px; gap: 12px; }
  .project-body { padding: 14px; }
  .project-title { font-size: 0.98rem; }
  .project-desc { font-size: 0.82rem; }

  .contact-form-wrap { padding: 0; }
  .contact-form { padding: 18px 12px; border-radius: 14px; }
  .footer-copy { font-size: 0.86rem; }
  .footer-socials a { width: 40px; height: 40px; font-size: 1rem; }
  .back-top { right: 14px; bottom: 14px; }
}
