/* ============================================================
   VIJAY KUMAR — PORTFOLIO  |  styles.css
   ============================================================ */

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

:root {
  /* Brand */
  --sky:      #5BAAFF;
  --aqua:     #00E5CB;
  --sky-dark: #3A8FE8;

  /* Text */
  --ink:    #0D1B2A;
  --slate:  #3A5068;
  --muted:  #7A9BB5;

  /* Surfaces */
  --bg:     #F4F9FF;
  --card:   #FFFFFF;
  --mist:   #EBF4FF;
  --border: #D4E8F5;

  /* Shape */
  --radius:    20px;
  --radius-sm: 12px;

  /* Shadow */
  --shadow-sm: 0 2px 14px rgba(79,172,254,0.07);
  --shadow-md: 0 8px 32px rgba(79,172,254,0.13);
  --shadow-lg: 0 14px 44px rgba(79,172,254,0.20);

  /* Transition */
  --ease: 0.25s ease;
}

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

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  overflow-x: hidden;
}

a { text-decoration: none; }
ul { list-style: none; }
img { display: block; max-width: 100%; }

/* ── SCROLL-REVEAL ── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.visible { opacity: 1; transform: none; }

/* ── KEYFRAMES ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: none; }
}
@keyframes drift {
  from { transform: translate(0,0) scale(1); }
  to   { transform: translate(20px,-20px) scale(1.08); }
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── SHARED CONTAINER ── */
.container { max-width: 900px; margin: 0 auto; padding: 0 24px; }
section { padding: 80px 0; }

/* ── SECTION HEADER ── */
.sec-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 36px;
}
.sec-head-bar {
  width: 4px;
  height: 32px;
  border-radius: 4px;
  background: linear-gradient(to bottom, var(--sky), var(--aqua));
  flex-shrink: 0;
}
.sec-head h2 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 800;
  color: var(--ink);
}

/* ── SHARED CARD ── */
.card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: box-shadow var(--ease);
}
.card:hover { box-shadow: var(--shadow-md); }

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(244,249,255,0);
  backdrop-filter: blur(0px);
  transition: background var(--ease), backdrop-filter var(--ease), box-shadow var(--ease);
}
.navbar.scrolled {
  background: rgba(244,249,255,0.92);
  backdrop-filter: blur(16px);
  box-shadow: 0 2px 20px rgba(79,172,254,0.12);
}

.nav-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: 'Syne', sans-serif;
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
  transition: color var(--ease);
}
.navbar.scrolled .nav-logo {
  background: linear-gradient(135deg, var(--sky), var(--aqua));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a {
  font-size: 0.875rem; font-weight: 500;
  color: rgba(255,255,255,0.88);
  padding: 6px 12px; border-radius: 50px;
  border: 2px solid transparent;
  transition: color var(--ease), background var(--ease), border-color var(--ease);
}
.nav-links a:hover { color: #fff; background: rgba(255,255,255,0.18); border-color: rgba(255,255,255,0.6); }
.nav-links a.active { color: #fff; background: rgba(255,255,255,0.15); border-color: rgba(255,255,255,0.8); }

.navbar.scrolled .nav-links a { color: var(--slate); background: transparent; border-color: transparent; }
.navbar.scrolled .nav-links a:hover {
  color: var(--sky-dark);
  background-image: linear-gradient(var(--card), var(--card)), linear-gradient(135deg, var(--sky), var(--aqua));
  background-origin: border-box;
  background-clip: padding-box, border-box;
  border: 2px solid transparent;
}
.navbar.scrolled .nav-links a.active {
  color: var(--sky-dark); font-weight: 600;
  background-image: linear-gradient(var(--card), var(--card)), linear-gradient(135deg, var(--sky), var(--aqua));
  background-origin: border-box;
  background-clip: padding-box, border-box;
  border: 2px solid transparent;
}

.nav-links .nav-cta,
.nav-links .nav-cta:hover,
.nav-links .nav-cta.active,
.navbar.scrolled .nav-links .nav-cta,
.navbar.scrolled .nav-links .nav-cta:hover,
.navbar.scrolled .nav-links .nav-cta.active {
  background-image: linear-gradient(135deg, var(--sky), var(--aqua)) !important;
  background-origin: padding-box !important;
  background-clip: padding-box !important;
  -webkit-background-clip: padding-box !important;
  color: #fff !important;
  border: 2px solid transparent !important;
  padding: 7px 18px !important;
  font-weight: 600 !important;
}
.nav-links .nav-cta:hover,
.navbar.scrolled .nav-links .nav-cta:hover { opacity: 0.88 !important; }

/* Hamburger */
.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.hamburger span { display: block; width: 22px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .3s, opacity .3s; }
.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); }

.mobile-menu { display: none; background: rgba(244,249,255,0.97); border-top: 1px solid var(--border); padding: 16px 24px 20px; }
.mobile-menu.open { display: block; }
.mobile-menu ul { display: flex; flex-direction: column; gap: 4px; }
.mobile-menu a { display: block; padding: 10px 14px; font-size: .95rem; font-weight: 500; color: var(--slate); border-radius: var(--radius-sm); transition: background var(--ease), color var(--ease); }
.mobile-menu a:hover { background: var(--mist); color: var(--sky-dark); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  overflow: hidden;
  padding: 120px 24px 0;
  text-align: center;
  background: linear-gradient(145deg, #6EC6FF 0%, #4F9EFF 35%, #89D8FF 65%, #A8E8FF 100%);
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(255,255,255,.18) 0%, transparent 55%),
    radial-gradient(circle at 80% 70%, rgba(0,229,203,.15) 0%, transparent 50%);
  pointer-events: none;
}

.blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .22; animation: drift 8s ease-in-out infinite alternate; pointer-events: none; }
.blob-1 { width:340px; height:340px; background:#4FACFE; top:-60px; left:-80px; animation-delay:0s; }
.blob-2 { width:260px; height:260px; background:#00F2FE; bottom:40px; right:-60px; animation-delay:-3s; }

.hero-inner { position: relative; z-index: 1; max-width: 720px; margin: 0 auto; }

.avatar-wrap {
  width: 112px; height: 112px; border-radius: 50%;
  margin: 0 auto 24px; position: relative;
  animation: fadeUp 0.6s 0.1s ease both;
}
.avatar-wrap::before {
  content: ''; position: absolute; inset: -4px; border-radius: 50%;
  background: linear-gradient(135deg, rgba(255,255,255,.6), rgba(255,255,255,.15));
}
.avatar-wrap img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; position: relative; z-index: 1; }

.hero h1 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(1rem, 5.2vw, 2.5rem);
  font-weight: 800; color: #fff;
  line-height: 1.15; white-space: nowrap;
  animation: fadeUp 0.6s 0.2s ease both;
}
.hero-role {
  font-size: clamp(.9rem, 2vw, 1.05rem);
  color: rgba(255,255,255,.9); font-weight: 400;
  margin: 10px 0 12px;
  animation: fadeUp 0.6s 0.3s ease both;
}
.hero-location {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: .78rem; color: rgba(255,255,255,.78);
  margin-bottom: 24px;
  animation: fadeUp 0.6s 0.35s ease both;
}

.socials {
  display: flex; justify-content: center; gap: 12px;
  margin-bottom: 28px;
  animation: fadeUp 0.6s 0.4s ease both;
}
.socials a {
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,.22);
  backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  color: #fff; border: 1px solid rgba(255,255,255,.35);
  transition: background var(--ease), transform var(--ease), border-color var(--ease);
}
.socials a:hover { background: rgba(255,255,255,.38); transform: translateY(-3px); border-color: rgba(255,255,255,.7); }
.socials a svg { width: 18px; height: 18px; }

.hero-cta {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 32px; border-radius: 50px;
  background: #fff; color: var(--sky-dark);
  font-family: 'Syne', sans-serif; font-weight: 700; font-size: .9rem;
  box-shadow: 0 8px 28px rgba(0,0,0,.12);
  transition: transform var(--ease), box-shadow var(--ease);
  animation: fadeUp 0.6s 0.5s ease both;
  margin-bottom: 48px;
}
.hero-cta:hover { transform: translateY(-3px); box-shadow: 0 14px 36px rgba(0,0,0,.18); }
.hero-cta svg { fill: var(--sky-dark); }

.hero-wave { display: block; width: 100%; margin-top: 0; }

/* ============================================================
   ABOUT
   ============================================================ */
.about-text { font-size: .97rem; color: var(--slate); line-height: 1.85; }

/* ============================================================
   EXPERIENCE / TIMELINE
   ============================================================ */
.timeline { position: relative; padding-left: 44px; }
.timeline::before {
  content: ''; position: absolute; left: 14px; top: 8px; bottom: 8px;
  width: 2px; border-radius: 2px;
  background: linear-gradient(var(--sky), var(--aqua)); opacity: .3;
}

.timeline-item { position: relative; margin-bottom: 24px; }
.timeline-item:last-child { margin-bottom: 0; }

.timeline-dot {
  position: absolute; left: -44px; top: 14px;
  width: 30px; height: 30px; border-radius: 50%;
  background: linear-gradient(135deg, var(--sky), var(--aqua));
  box-shadow: 0 0 0 4px var(--bg), 0 0 0 5px var(--border);
  display: flex; align-items: center; justify-content: center;
}
.timeline-dot svg { width: 13px; height: 13px; }

.exp-header { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.exp-title { font-family: 'Syne', sans-serif; font-size: 1rem; font-weight: 700; color: var(--ink); }
.exp-company { font-size: .875rem; color: var(--slate); margin-top: 3px; }
.exp-date { font-size: .75rem; font-weight: 600; padding: 4px 12px; border-radius: 50px; background: var(--mist); color: #2563A0; white-space: nowrap; align-self: flex-start; }

.exp-bullets { display: flex; flex-direction: column; gap: 8px; }
.exp-bullets li { display: flex; align-items: flex-start; gap: 10px; font-size: .875rem; color: var(--slate); line-height: 1.65; }
.exp-bullets li::before { content: ''; flex-shrink: 0; margin-top: 8px; width: 6px; height: 6px; border-radius: 50%; background: var(--sky); }

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

.project-card {
  display: flex; flex-direction: column;
  position: relative; overflow: hidden;
  padding-top: 22px;
}
.project-accent {
  position: absolute; top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--sky), var(--aqua));
}
.project-title { font-family: 'Syne', sans-serif; font-size: .98rem; font-weight: 700; color: var(--ink); margin-bottom: 10px; line-height: 1.35; }
.project-desc { font-size: .865rem; color: var(--slate); line-height: 1.72; flex: 1; }
.project-tech { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.tech-badge { font-size: .72rem; font-weight: 600; padding: 3px 11px; border-radius: 50px; background: var(--mist); color: #2563A0; border: 1px solid var(--border); }

/* Project action buttons */
.project-actions { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }

.proj-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 16px; border-radius: 50px;
  font-size: .78rem; font-weight: 600;
  font-family: 'DM Sans', sans-serif;
  transition: transform var(--ease), box-shadow var(--ease), background var(--ease), color var(--ease), border-color var(--ease);
  cursor: pointer; border: none;
}

.proj-btn-ghost {
  background: var(--mist); color: var(--slate);
  border: 1px solid var(--border);
}
.proj-btn-ghost:hover { background: var(--border); color: var(--ink); transform: translateY(-1px); }

.proj-btn-primary {
  background: linear-gradient(135deg, var(--sky), var(--aqua));
  color: #fff;
  box-shadow: 0 4px 14px rgba(79,172,254,.3);
}
.proj-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(79,172,254,.4); }

.proj-disabled { opacity: .5; cursor: default; pointer-events: none; }

/* ============================================================
   SKILLS
   ============================================================ */
.skills-wrap { display: flex; flex-wrap: wrap; gap: 10px; }
.skill-pill {
  font-size: .82rem; font-weight: 500;
  padding: 7px 16px; border-radius: 50px;
  background: var(--mist); color: #2563A0;
  border: 1px solid var(--border);
  cursor: default;
  transition: background var(--ease), color var(--ease), transform var(--ease), box-shadow var(--ease), border-color var(--ease);
  user-select: none;
}
.skill-pill:hover {
  background: linear-gradient(135deg, var(--sky), var(--aqua));
  color: #fff; border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(79,172,254,.3);
}

/* ============================================================
   EDUCATION
   ============================================================ */
.edu-cards { display: flex; flex-direction: column; gap: 18px; }
.edu-card { display: flex; align-items: flex-start; gap: 20px; }
.edu-icon {
  width: 46px; height: 46px; border-radius: 14px;
  background: linear-gradient(135deg, var(--sky), var(--aqua));
  flex-shrink: 0; display: flex; align-items: center; justify-content: center;
}
.edu-icon svg { width: 22px; height: 22px; }
.edu-degree { font-family: 'Syne', sans-serif; font-size: .96rem; font-weight: 700; color: var(--ink); line-height: 1.35; }
.edu-school { font-size: .87rem; color: var(--slate); margin-top: 5px; }
.edu-year { display: inline-block; margin-top: 9px; font-size: .73rem; font-weight: 600; padding: 3px 12px; border-radius: 50px; background: var(--mist); color: #2563A0; }

/* ============================================================
   CONTACT
   ============================================================ */
.connect-section { text-align: center; padding: 24px 0 40px; }
.connect-section h2 { font-family: 'Syne', sans-serif; font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; color: var(--ink); margin-bottom: 10px; }
.connect-section p { color: var(--slate); font-size: .97rem; margin-bottom: 32px; }

.connect-btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 15px 38px; border-radius: 50px;
  background: linear-gradient(135deg, var(--sky), var(--aqua));
  color: #fff; font-family: 'Syne', sans-serif; font-weight: 700; font-size: .92rem;
  box-shadow: 0 8px 28px rgba(79,172,254,.35);
  transition: transform var(--ease), box-shadow var(--ease);
}
.connect-btn:hover { transform: translateY(-3px); box-shadow: 0 14px 36px rgba(79,172,254,.45); }
.connect-btn svg { width: 16px; height: 16px; fill: currentColor; }

/* ============================================================
   FOOTER
   ============================================================ */
footer { text-align: center; padding: 24px; font-size: .78rem; color: var(--muted); border-top: 1px solid var(--border); }

/* ============================================================
   BACK-TO-TOP
   ============================================================ */
#back-to-top {
  position: fixed; bottom: 28px; right: 28px;
  width: 44px; height: 44px; border-radius: 50%;
  background: linear-gradient(135deg, var(--sky), var(--aqua));
  color: #fff; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 22px rgba(79,172,254,.35);
  opacity: 0; pointer-events: none; transform: translateY(12px);
  transition: opacity .3s, transform .3s;
  z-index: 90;
}
#back-to-top.visible { opacity: 1; pointer-events: all; transform: none; }
#back-to-top:hover { transform: translateY(-3px); }
#back-to-top svg { width: 18px; height: 18px; fill: currentColor; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .projects-grid { grid-template-columns: 1fr; }
  section { padding: 48px 0; }
}
@media (max-width: 480px) {
  .edu-card { flex-direction: column; }
  .exp-header { flex-direction: column; gap: 6px; }
  .hero { padding-top: 100px; }
  .hero h1 { white-space: normal; }
}