/*
Copyright (c) 2025 Paarth Doshi
All rights reserved. No part of this code may be copied or redistributed without permission.
*/



/* ========== GLOBAL THEME ========== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700;800&display=swap');

:root {
  --bg:#071025;
  --card:#0f1724;
  --accent:#ff6b61;
  --muted:#9aa6bf;
  --glass: rgba(255,255,255,0.03);
  --text:#e6eef8;
  --accent-glow: rgba(255,107,97,0.28);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: 'Inter', sans-serif;
  background: radial-gradient(circle at 20% 20%, #0b1530, #04060b);
  color: var(--text);
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  position: relative;
  z-index: 1;
}

/* ========== BACKGROUND VIDEO ========== */
#bg-video {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;           /* stays behind everything */
  opacity: 0.25;
  filter: blur(1.5px);
  will-change: transform;
  transform: translateZ(0);
  backface-visibility: hidden;
}

/* ========== CONTAINER FIX ========== */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 30px;
}

/* ========== NAVBAR ========== */
.nav {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 999;
  background: rgba(0,0,0,0.25);
  backdrop-filter: blur(10px);
  padding: 14px 0;
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
}
.logo {
  font-weight: 800;
  font-size: 1.3rem;
  color: #fff;
  text-decoration: none;
}
.nav-links {
  list-style: none;
  display: flex;
  gap: 18px;
}
.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  transition: color .2s;
}
.nav-links a:hover { color: var(--accent); }
.download-resume {
  background: linear-gradient(90deg, var(--accent), #ff8a7a);
  border: none;
  border-radius: 10px;
  color: #fff;
  font-weight: 700;
  padding: 8px 12px;
  cursor: pointer;
}
.download-resume:hover { box-shadow: 0 0 12px var(--accent-glow); }

/* ========== HERO ========== */
.section { padding: 80px 0; position: relative; z-index: 1; }
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 40px;
  align-items: center;
  padding-top: 60px;
}
.eyebrow { color: var(--accent); font-weight: 700; margin-bottom: 8px; }
.hero-title { font-size: clamp(2rem, 5vw, 3rem); color: #fff; line-height: 1.05; }
.cursor { color: var(--accent); animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0 } }
.hero-sub { color: var(--muted); margin: 12px 0 20px; font-size: 1rem; }
.badges { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.badge {
  background: var(--glass);
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.06);
  color: var(--text);
  font-weight: 600;
}
.btn-primary, .btn-ghost {
  padding: 10px 14px;
  border-radius: 10px;
  font-weight: 700;
  text-decoration: none;
  display: inline-block;
}
.btn-primary { background: linear-gradient(90deg, var(--accent), #ff8a7a); color: #fff; }
.btn-ghost { border: 1px solid rgba(255,255,255,0.06); color: var(--muted); }
.btn-primary:hover { box-shadow: 0 0 14px var(--accent-glow); }
.btn-ghost:hover { color: #fff; border-color: var(--accent); }

.hero-card {
  background: var(--glass);
  padding: 18px;
  border-radius: 14px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.6);
  text-align: center;
}
.profile-img { width: 130px; height: 130px; border-radius: 12px; object-fit: cover; margin: auto; }
.stats { display: flex; justify-content: space-around; margin-top: 12px; gap: 10px; }
.stat strong { color: #fff; display: block; font-size: 1.05rem; }
.stat span { color: var(--muted); font-size: 0.9rem; }

/* ========== SECTION TITLES ========== */
.section-title { color: #fff; margin-bottom: 12px; font-size: 1.4rem; position: relative; }
.section-title::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 56px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
}
.section-sub { color: var(--muted); margin-bottom: 18px; }

/* ========== EDUCATION ========== */
.education-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}
.edu-card { background: var(--glass); padding: 16px; border-radius: 12px; }
.edu-title { font-weight: 700; color: #fff; }

/* ========== CERTIFICATIONS SECTION ========== */
.certs-lift {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 18px;
}
.cert-lane {
  overflow: hidden;
  position: relative;
  height: 380px;
  border-radius: 12px;
  background: var(--glass);
}
.cert-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  will-change: transform;
}
.cert-card {
  display: flex;
  gap: 12px;
  align-items: center;
  background: linear-gradient(180deg, rgba(255,255,255,0.02), transparent);
  border: 1px solid rgba(255,255,255,0.05);
  padding: 10px;
  border-radius: 10px;
  animation: certGlow 8s ease-in-out infinite alternate;
}
.cert-card img { width: 84px; height: 56px; object-fit: cover; border-radius: 6px; }
.cert-meta { display: flex; flex-direction: column; gap: 3px; }
.cert-title { color: #fff; font-weight: 700; font-size: 0.95rem; }
.cert-desc, .cert-author { color: var(--muted); font-size: 0.85rem; }

@keyframes certGlow {
  0% { box-shadow: 0 0 0 rgba(255,107,97,0); }
  100% { box-shadow: 0 0 14px rgba(255,107,97,0.22); }
}

/* ===== FILTER BAR ===== */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 25px;
  justify-content: center;
}
.filter-btn {
  background: var(--glass);
  border: 1px solid rgba(255,255,255,0.05);
  color: var(--muted);
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.25s ease;
}
.filter-btn:hover {
  color: #fff;
  box-shadow: 0 0 10px var(--accent-glow);
}
.filter-btn.active {
  background: linear-gradient(90deg, var(--accent), #ff8a7a);
  color: #fff;
  box-shadow: 0 0 12px var(--accent-glow);
}

/* ========== PROJECTS GRID ========== */
.projects-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.project-card {
  background: var(--glass);
  padding: 18px 16px 16px;
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  align-items: flex-start; /* prevents text-image sticking */
  justify-content: space-between;
  transition: transform .25s, box-shadow .25s;
}
.project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 0 14px var(--accent-glow);
}
.project-thumb {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 10px;
  margin-top: 12px;
}

/* ========== EXPERIENCE SECTION ========== */
.experience-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.exp-card {
  background: var(--glass);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 14px;
  padding: 18px 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.exp-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 0 16px var(--accent-glow);
}

.exp-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.exp-logo {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  object-fit: cover;
  background: #fff;
}

.exp-role {
  color: #fff;
  font-weight: 700;
  font-size: 1.05rem;
}

.exp-company {
  color: var(--muted);
  font-size: 0.9rem;
}

.exp-duration {
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 8px;
}

.exp-desc {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.exp-skills {
  color: var(--text);
  font-size: 0.9rem;
  margin-top: 6px;
}


/* ==== FLOATING LINKEDIN BADGE ==== */
.linkedin-float {
  position: fixed;
  right: 20px;
  bottom: 40px;
  z-index: 1000;
  width: 280px;
  height: 360px;
  background: #0e1a2b;
  border-radius: 16px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.linkedin-float .badge-base {
  width: 100%;
  height: 100%;
  border-radius: 12px;
  overflow: hidden;
}

.linkedin-float:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 18px rgba(255, 107, 97, 0.35);
}

/* ✅ Responsive behavior */
@media (max-width: 1024px) {
  .linkedin-float {
    width: 220px;
    height: 300px;
    right: 15px;
    bottom: 30px;
  }
}

@media (max-width: 768px) {
  .linkedin-float {
    width: 200px;
    height: 270px;
    right: 10px;
    bottom: 25px;
  }
}

@media (max-width: 600px) {
  .linkedin-float {
    position: fixed;
    right: 8px;
    bottom: 20px;
    width: 160px;
    height: 220px;
    z-index: 1001;
    display: flex; /* ✅ force visible */
  }
}

/* ========== FOOTER ========== */
.footer {
  margin-top: auto;
  padding: 22px 20px;
  text-align: center;
  color: var(--muted);
  font-size: 0.95rem;
  border-top: 1px solid rgba(255,255,255,0.04);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .certs-lift { flex-direction: column; }
  .cert-lane { width: 100%; height: 320px; }
}

/* ==== VIDEOS GALLERY ==== */
.videos-gallery {
  text-align: left; /* ✅ Aligns with other sections */
  padding: 80px 0; /* match section padding */
  background: transparent; /* ✅ remove semi-glass background */
  border-top: 1px solid rgba(255,255,255,0.05);
}

/* Fix misaligned red line under section title in video section */
.videos-gallery .section-title {
  position: relative;
  display: inline-block; /* keeps underline only under text */
  margin-left: 30px;     /* aligns it with other section titles */
}

.videos-gallery .section-title::after {
  left: 0;               /* ensures underline starts at text start */
}

.videos-gallery .section-sub {
  text-align: left;
  max-width: 1100px;
  margin: 0 auto 18px;
  padding: 0 30px;
}

.videos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  margin-top: 40px;
}

.video-link {
  display: block;
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 5px 20px rgba(0,0,0,0.3);
}

.video-thumb img {
  width: 100%;
  display: block;
  border-radius: 12px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.video-link:hover img {
  transform: scale(1.05);
}

.overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.55);
  color: #fff;
  font-size: 1.1rem;
  gap: 6px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.video-link:hover .overlay {
  opacity: 1;
}

.overlay i {
  font-size: 2.2rem;
  color: #ff6b61;
}

@media (max-width: 768px) {
  .videos-gallery {
    padding: 60px 0;
  }
  .videos-gallery .section-title,
  .videos-gallery .section-sub {
    padding: 0 16px;
  }
  .overlay span {
    font-size: 0.95rem;
  }
  .overlay i {
    font-size: 1.8rem;
  }
}



