:root {
  --dark-bg: #0b1224;          
  --dark-card: #16203a;  
  --dark-text: #e5e7eb;
  --dark-accent: #60a5fa;

  --light-bg: #f8fafc;
  --light-card: #ffffff;
  --light-text: #1e293b;
  --light-accent: #0284c7;
}

/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html{
  scroll-behavior:smooth;
}

/* BODY */
body {
  background: radial-gradient(
    circle at top left,
    #6b8cff,
    #1b2140 35%,
    #0b1020 70%
  );
  color: #fff;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.6;
  transition: background 0.4s ease, color 0.4s ease;
}

body.dark {
  background:
    radial-gradient(circle at 20% 10%, rgba(96,165,250,0.12), transparent 40%),
    radial-gradient(circle at 80% 80%, rgba(56,189,248,0.10), transparent 45%),
    linear-gradient(180deg, #0b1224, #020617);
  color: var(--dark-text);
}


body.light {
  background:
    radial-gradient(circle at 15% 10%, #dbeafe, transparent 40%),
    radial-gradient(circle at 85% 85%, #e0f2fe, transparent 45%),
    linear-gradient(180deg, #f8fafc, #eef2ff);
  color: var(--light-text);
}

body.light::before {
  background:
    radial-gradient(circle at 20% 10%, rgba(2,132,199,0.10), transparent 45%),
    radial-gradient(circle at 80% 80%, rgba(56,189,248,0.12), transparent 50%);
}

body.light .glass {
  background: linear-gradient(
    135deg,
    rgba(255,255,255,0.85),
    rgba(255,255,255,0.55)
  );
  border: 1px solid rgba(0,0,0,0.06);

  box-shadow:
    0 18px 40px rgba(2,132,199,0.15),
    inset 0 0 0.5px rgba(255,255,255,0.9);
}


/* SIDEBAR */
.sidebar {
  position: fixed;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  padding: 1rem;
  border-radius: 18px;
  backdrop-filter: blur(14px);
  z-index: 100;
 
}

.sidebar a:hover {
  color: #9bb4ff;
}

body.dark .sidebar {
  background: rgba(15, 23, 42, 0.9);
}

body.light .sidebar {
  box-shadow:
    0 12px 30px rgba(2,132,199,0.15);
}

body.light .sidebar a,
body.light .sidebar button {
  color: #334155;
}


.sidebar a,
.sidebar button {
  background: none;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  color: inherit;
  transition: transform 0.25s ease, color 0.25s ease;
}

.sidebar a:hover,
.sidebar button:hover {
  transform: scale(1.15);
  color: var(--dark-accent);
}

body.light .sidebar a:hover,
body.light .sidebar button:hover {
  color: var(--light-accent);
}

/* HERO */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding: 4rem 10%;
  gap: 3rem;
}

.hero {
  background: transparent;
}

body.light .hero {
  background: linear-gradient(
    180deg,
    rgba(255,255,255,0.65),
    rgba(255,255,255,0)
  );
}



.hero-text h1 {
  letter-spacing: -0.5px;
  font-size: 3.8rem;
  font-weight: 700;
  line-height: 1.2;
}

body.dark .hero-text h1 {
  color: var(--dark-accent);
}

body.light .hero-text p {
  color: #334155;
  opacity: 0.95;
}


.hero-text h2 {
  opacity: 0.9;
  font-size: 2.4rem;
  font-weight: 600;
  margin-top: 0.4rem;
}

.hero-text p {
  font-size: 1.1rem;
  margin-top: 1.2rem;
  max-width: 520px;
  font-size: 1.05rem;
  opacity: 0.9;
}

/* AVATAR */
.avatar {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  object-fit: cover;
  animation: float 5s ease-in-out infinite;
}

body.dark .avatar {
  box-shadow: 0 0 45px rgba(56, 189, 248, 0.6);
}

body.light .avatar {
  box-shadow: 0 0 45px rgba(2, 132, 199, 0.35);
}

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

/* SECTIONS */
.section {
  padding: 6rem 10%;
}

.section {
  position: relative;
}

.section::after {
  content: "";
  display: block;
  width: 120px;
  height: 4px;
  margin-top: 4rem;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--light-accent),
    transparent
  );
  opacity: 0.25;
}




.section-title {
  font-size: 2.6rem;
  font-weight: 700;
  margin-bottom: 3rem;
}

body.dark .section-title {
  color: var(--dark-accent);
}

body.dark .section::after {
  background: linear-gradient(
    90deg,
    transparent,
    var(--dark-accent),
    transparent
  );
}

body.light .section-title {
  color: var(--light-accent);
}

/* IMAGE SPACING HELPERS */
.espaze-img {
  height: 60px;
  
}

.yuva-img {
  height: 70px;
  background-color: rgba(2, 2, 2, 0.65);
}

/* TIMELINE / EDUCATION / EXPERIENCE FIX */
.timeline,
.education-container {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;   /*  fix for caeds sticking */
}

/* CARDS */
.card,
.timeline-card, .project-card {
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  position: relative;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.6s ease, transform 0.6s ease, box-shadow 0.3s ease;
  border-radius: 18px;
  padding: 2rem;
  min-height: 120px;
}

.project-card::before {
  content: attr(data-index);
  position: absolute;
  top: -20px;
  right: 20px;
  font-size: 3.6rem;
  font-weight: 900;
  opacity: 0.12;
  text-shadow: 0 10px 30px rgba(0,0,0,0.6);
}


body.dark .project-card::before {
  color: var(--dark-accent);
}

body.light .project-card {
  background: linear-gradient(145deg, #ffffff, #f8fafc);
}

body.light .project-card::before {
  opacity: 0.12;
}

body.light .section::after {
  opacity: 0.35;
}

body.light .skill {
  box-shadow:
    0 8px 18px rgba(2,132,199,0.15);
}

body.light a {
  color: var(--light-accent);
}

body.light a:hover {
  opacity: 0.85;
}


body.dark .card,
body.dark .timeline-card,
body.dark .project-card {
  background: linear-gradient(145deg, #1b2645, #0f172a);
  color: var(--dark-text);

  box-shadow:
    0 18px 40px rgba(2,6,23,0.65),
    inset 0 1px 0 rgba(255,255,255,0.05);
}


body.light .card,
body.light .timeline-card,
body.light .project-card {
  box-shadow:
    0 14px 28px rgba(15,23,42,0.08),
    0 6px 12px rgba(15,23,42,0.05);
}


/*  transform hover remove (scroll clash fix) */
.card:hover,
.timeline-card:hover {
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.25);
}

/* GRID */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}

.card span {
  display: block;
  margin-top: 0.8rem;
  font-weight: 600;
}

/*Cards, projects, sections*/
.card,
.project,
.project-card {
  box-shadow:
    0 15px 30px rgba(0,0,0,0.35),
    0 0 0 rgba(0,0,0,0);
}

body.dark .card,
body.dark .project-card,
body.dark .timeline-card {
  background: linear-gradient(145deg, #1b2645, #0f172a);
  transform-style: preserve-3d;
}

body.dark .card:hover,
body.dark .project-card:hover,
body.dark .timeline-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow:
    0 40px 80px rgba(2,6,23,0.9),
    0 0 0 1px rgba(96,165,250,0.18);
}



body.dark .card span {
  color: var(--dark-accent);
}

body.light .card span {
  color: var(--light-accent);
}

.card a {
  text-decoration: none;
  font-weight: 600;
}

body.dark .card a {
  color: var(--dark-accent);
}

body.light .card a {
  color: var(--light-accent);
}

body.light .card,
body.light .timeline-card,
body.light .project-card {
  border: 1px solid rgba(0, 0, 0, 0.04);
}

/* SKILLS */
.skill {
  padding: 1.2rem 1.8rem;
  text-align: center;
  border-radius: 999px;
  font-weight: 600;
  transition: transform 0.25s ease;
}

body.dark .skill {
  background: var(--dark-card);
}

body.light .skill {
  background: linear-gradient(90deg, #e0f2fe, #dbeafe);
}

.skill:hover {
  transform: scale(1.08);
}

/* SCROLL REVEAL */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.5s ease-out, transform 0.5s ease-out;
  will-change: transform, opacity;
}

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

/* RESPONSIVE */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-text h1 {
    font-size: 3rem;
  }

  .hero-text h2 {
    font-size: 2rem;
  }

  .avatar {
    width: 600px;
    height: 600px;
  }

  .section {
    padding: 4rem 6%;
  }

  .section::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
      radial-gradient(circle at 30% 10%, rgba(56,189,248,0.06), transparent 45%),
      radial-gradient(circle at 80% 80%, rgba(139,92,246,0.05), transparent 50%);
    z-index: -1;
}


  .sidebar {
    left: 12px;
  }
}

  .footer {
  text-align: center;
  padding: 2rem 1rem;
  font-size: 0.9rem;
  opacity: 0.65;
}

body.dark .footer {
  color: #9ca3af;
}

body.light .footer {
  color: #64748b;
}

/* ==============================
   PROJECTS SECTION – UPGRADE
   ============================== */

/* PROJECT CARD LAYOUT */
.project-card {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

/* PROJECT IMAGE */
.project-image img {
  width: 100%;
  border-radius: 14px;
  object-fit: cover;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

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

/* PROJECT TITLE – bigger & recruiter friendly */
.project-title {
  font-size: 1.8rem;       /* ⬅ heading bigger */
  font-weight: 700;
  letter-spacing: -0.3px;
}

/* Dark / Light title color */
body.dark .project-title {
  color: var(--dark-accent);
}

body.light .project-title {
  color: var(--light-accent);
}

/* PROJECT DESCRIPTION */
.project-content p {
  font-size: 1rem;
  line-height: 1.65;
  opacity: 0.9;
}

/* TECH STACK */
.tech-stack {
  font-size: 0.85rem;
  font-weight: 600;
  margin-top: 0.3rem;
}

body.dark .tech-stack {
  color: #7dd3fc;
}

body.light .tech-stack {
  color: #0284c7;
}

/* PROJECT LINKS */
.project-links {
  display: flex;
  gap: 14px;
  margin-top: 1rem;
}

/* BUTTON BASE */
.project-links .btn {
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

/* GITHUB BUTTON */
.project-links .github {
  background: #0f172a;
  color: white;
}

.project-links .github:hover {
  background: #020617;
}

/* LIVE DEMO BUTTON */
.project-links .live {
  background: linear-gradient(135deg, #38bdf8, #0284c7);
  color: #fff;
}

.project-links .live:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

/* DARK MODE CARD POLISH */
body.dark .project-card {
  background: linear-gradient(160deg, #1f2a44, #0a1020);
}


/* MOBILE POLISH */
@media (max-width: 768px) {
  .project-title {
    font-size: 1.5rem;
  }

  .project-links {
    justify-content: center;
    flex-wrap: wrap;
  }
}

/* GLOBAL DEPTH LAYERS */

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 20% 10%, rgba(122,162,255,0.15), transparent 40%),
    radial-gradient(circle at 80% 80%, rgba(159,124,255,0.12), transparent 45%);
  z-index: -1;
}

.glass {
  background: linear-gradient(
    135deg,
    rgba(255,255,255,0.04),
    rgba(255,255,255,0.01)
  );

  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);

  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 22px;

  box-shadow:
    0 30px 70px rgba(0,0,0,0.7),
    inset 0 1px 0 rgba(255,255,255,0.12),
    inset 0 -1px 0 rgba(0,0,0,0.7);
}

/* ==============================
   CERTIFICATES SECTION
   ============================== */

.certificate-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  text-align: left;
}

.certificate-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 14px;
  box-shadow:
    0 12px 30px rgba(0,0,0,0.45);
}

.certificate-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
}

body.dark .certificate-card h3 {
  color: var(--dark-accent);
}

body.light .certificate-card h3 {
  color: var(--light-accent);
}

.certificate-card p {
  font-size: 0.95rem;
  opacity: 0.9;
  line-height: 1.6;
}

.certificate-card span {
  font-size: 0.8rem;
  font-weight: 600;
  opacity: 0.75;
}

.top-nav {
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 120px);
  max-width: 1100px;
  padding: 14px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
}

.nav-brand {
  font-weight: 600;
  letter-spacing: 1px;
}

.nav-links a {
  margin-left: 22px;
  text-decoration: none;
  color: var(--text, #fff);
  opacity: 0.75;
  transition: opacity 0.3s ease;
}

.nav-links a:hover {
  opacity: 1;
}

.skill {
  transition: opacity 0.25s ease, transform 0.25s ease !important;
  transition-delay: 0s !important;
}





