/* portfolio Style */
:root{
  --bg: #0b1220;
  --panel: rgba(255,255,255,0.06);
  --panel2: rgba(255,255,255,0.08);
  --text: #e7eefc;
  --muted: rgba(231, 238, 252, 0.72);
  --accent: #7c3aed;
  --accent2: #22d3ee;
  --shadow: 0 20px 60px rgba(0,0,0,0.45);
  --border: rgba(124,58,237,0.25);
}

/* optional: keep browser background consistent */
body{
  background: radial-gradient(1200px 600px at 20% 0%, rgba(124,58,237,0.22), transparent 60%),
              radial-gradient(900px 500px at 80% 20%, rgba(34,211,238,0.18), transparent 55%),
              var(--bg);
}

*{ box-sizing: border-box; }

body{
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  scroll-behavior: smooth;
}

/* Navigation Menu */

.navbar{
  display: flex;
  justify-content: space-around;
  align-items: center;

  width: 100vw;
  height: 10vh;
  background-color: var(--bg);
  color: var(--text);

  position: fixed;
  left: 0;
  top: 0;
  z-index: 50;
}

.brand{
  font-size: 20px;
  font-weight: 650;
  letter-spacing: 0.2px;
}

.links{
  display: flex;
  gap: 36px;
  list-style-type: none;
  padding-left: 0;
  margin: 0;
}

a{
  text-decoration: none;
  color: var(--text);
  transition: 0.25s;
}

.nav-link{
  position: relative;
  padding: 8px 2px;
  font-weight: 600;
}

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

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

.nav-link.active::after{
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

/* Layout */
main{
  display: flex;
  justify-content: center;
  padding-top: 12vh; /* space for fixed navbar */
}

.container{
  width: min(1100px, 100%);
  padding: 0 24px;
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 40px;
  align-items: start;
}

.image{
  width: 380px;
  height: 380px;
  background-image: url("virat.webp");
  /* extra glow on dark UI */
  box-shadow: var(--shadow), 0 0 0 6px rgba(124,58,237,0.10);

  background-size: cover;
  background-position: center;

  border-radius: 50%;
  border: 5px solid navy;
  box-shadow: var(--shadow);

  /* hero micro-interaction target */
  transform: translate3d(0,0,0);
  transition: transform 120ms ease;

  position: sticky;
  top: 14vh;
}

.content{
  width: 100%;
}

.hero{
  padding-top: 10px;
}

.hero-title{
  margin: 0 0 12px 0;
  color: var(--text);
  font-size: clamp(28px, 3vw, 40px);
}

.hero-subtitle{
  margin: 0 0 22px 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.5;
}

.section{
  margin: 18px 0 38px;
  padding: 18px 18px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255,255,255,0.07), rgba(255,255,255,0.03));


  /* reveal defaults */
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 600ms ease, transform 600ms ease;
}

.section h2{
  margin: 0 0 10px 0;
}

p{
  line-height: 1.65;
  color: var(--muted);
}

ul{
  margin: 12px 0 0 18px;
}

.skill-list{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-left: 0;
  list-style: none;
}

.skill{
  border: 1px solid rgba(124,58,237,0.28);
  background: rgba(255,255,255,0.06);

  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 650;
  color: var(--text);
  transition: transform 160ms ease, border-color 200ms ease;
}

.skill:hover{
  transform: translateY(-2px);
  border-color: rgba(31,111,235,0.6);
  color: var(--accent);
}

.contact-actions{
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn{
  display: inline-block;
  padding: 10px 14px;
  border-radius: 12px;
  background: var(--accent);
  color: white;
  font-weight: 750;
  box-shadow: 0 10px 22px rgba(31,111,235,0.18);
}

.btn:hover{
  transform: translateY(-2px);
}

.btn-ghost{
  background: rgba(255,255,255,0.6);
  color: var(--text);
  border: 1px solid rgba(0,0,128,0.2);
  box-shadow: none;
}

.btn-ghost:hover{
  border-color: rgba(31,111,235,0.6);
  color: var(--accent);
}

/* Reveal on scroll */
.is-visible{
  opacity: 1;
  transform: translateY(0);
}

/* Tablet View */
@media (max-width: 900px){
  .container{
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .image{
    position: relative;
    top: 0;
    margin: 0 auto;
    width: 260px;
    height: 260px;
  }

  .navbar{
    justify-content: space-between;
    padding: 0 18px;
  }

  .links{
    gap: 18px;
  }
}

@media (max-width: 480px){
  .links{ gap: 12px; }
  .section{ padding: 14px; }
}

