/* =====================
   RESET & BASE
===================== */
:root{
  --bg0:#07090f;
  --bg1:#0b1220;

  --card:#0d111a;
  --card2:#0b0f17;
  --stroke:rgba(255,255,255,.08);

  --text:rgba(255,255,255,.88);
  --muted:rgba(255,255,255,.62);

  --accent:#4ea8ff;
  --accent2:#7c5cff;

  --radius:16px;
  --shadow: 0 10px 30px rgba(0,0,0,.45);
  --shadow2: 0 18px 45px rgba(0,0,0,.55);

  --maxw:1100px;
}

*{
  margin:0;
  padding:0;
  box-sizing:border-box;
}

html{
  scroll-behavior:smooth;
  scroll-padding-top:80px;
}

body{
  font-family:"VT323", monospace;
  color:var(--text);
  line-height:1.65;
  font-size:16px;
  background:
    radial-gradient(1200px 700px at 20% -10%, rgba(78,168,255,.18), transparent 55%),
    radial-gradient(900px 500px at 90% 10%, rgba(124,92,255,.14), transparent 50%),
    linear-gradient(180deg, var(--bg0), var(--bg1));
}

body::before{
  content:"";
  position:fixed;
  inset:0;
  pointer-events:none;
  opacity:.06;
  background-image:
    repeating-linear-gradient(0deg, rgba(255,255,255,.06), rgba(255,255,255,.06) 1px, transparent 1px, transparent 3px);
  mix-blend-mode:overlay;
}

/* Better focus ring for keyboard users */
:focus-visible{
  outline:2px solid rgba(78,168,255,.65);
  outline-offset:3px;
  border-radius:10px;
}

/* =====================
   LAYOUT
===================== */
header, main, footer{
  max-width:var(--maxw);
  margin:auto;
  padding:1.4rem;
}

section{
  margin-bottom:3.2rem;
}

@media (max-width: 600px){
  header, main, footer{ padding:1.1rem; }
  section{ margin-bottom:2.6rem; }
}

/* =====================
   TOP NAV (STICKY)
===================== */
.top-nav{
  position:sticky;
  top:0;
  z-index:999;
  display:flex;
  gap:14px;
  justify-content:center;
  padding:12px 18px;

  background:
    linear-gradient(180deg, rgba(10,14,22,.92), rgba(6,8,14,.82));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  border-bottom:1px solid rgba(255,255,255,.08);
  box-shadow: 0 10px 30px rgba(0,0,0,.45);
}

.top-nav a{
  color:rgba(255,255,255,.72);
  text-decoration:none;
  font-weight:600;
  letter-spacing:.4px;
  padding:8px 12px;
  border-radius:12px;
  transition: transform .18s ease, background .18s ease, color .18s ease, border-color .18s ease;
  border:1px solid transparent;
}

.top-nav a:hover{
  color:#fff;
  background: rgba(78,168,255,.12);
  border-color: rgba(78,168,255,.22);
  transform: translateY(-2px);
}

/* Optional: if you add class="active" in HTML */
.top-nav a.active{
  color:#fff;
  background: rgba(78,168,255,.16);
  border-color: rgba(78,168,255,.28);
}

/* =====================
   HEADER
===================== */
header{
  padding-top:2.2rem;
}

header h1{
  font-family:"Press Start 2P", cursive;
  font-size: clamp(1.4rem, 2.4vw, 2.1rem);
  margin-bottom:.9rem;
  letter-spacing:-0.02em;
  line-height:1.15;
  text-shadow: 0 10px 30px rgba(0,0,0,.6);
}

header p{
  color:var(--muted);
  font-size:1.05rem;
}

/* =====================
   HEADINGS
===================== */
h2{
  font-size: clamp(1.35rem, 2vw, 1.8rem);
  margin-bottom:1rem;
  padding-bottom:.65rem;
  border-bottom: 1px solid rgba(255,255,255,.10);
  position:relative;
}

h2::after{
  content:"";
  position:absolute;
  left:0;
  bottom:-1px;
  width: 70%;
  height:2px;
  border-radius:2px;
  background: linear-gradient(90deg, var(--accent), transparent);
}

h3{
  margin-bottom:.6rem;
  color: var(--accent);
  font-size:1.15rem;
  letter-spacing:.2px;
}

/* =====================
   TEXT
===================== */
p{
  margin-bottom:1rem;
  color: rgba(255,255,255,.74);
}

/* =====================
   SURFACE / CARD (shared)
===================== */
.skill,
.education .edu-item,
.project-box,
.project,
.project-card{
  background:
    linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.02));
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  box-shadow:
    var(--shadow),
    inset 0 1px 0 rgba(255,255,255,.05);
  padding: 1.5rem;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.skill:hover,
.education .edu-item:hover,
.project-box:hover,
.project:hover,
.project-card:hover{
  transform: translateY(-6px);
  border-color: rgba(78,168,255,.35);
  box-shadow:
    var(--shadow2),
    0 0 0 1px rgba(78,168,255,.10) inset;
}

/* =====================
   SKILLS
===================== */
.skills{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
}

.skill ul{
  list-style:none;
  margin:0;
  padding:0;
}

.skill li{
  position:relative;
  padding-left:16px;
  margin: 10px 0;
  color: rgba(255,255,255,.72);
}

.skill li::before{
  content:"";
  position:absolute;
  left:0;
  top:.6em;
  width:7px;
  height:7px;
  border-radius:50%;
  background: radial-gradient(circle at 30% 30%, #fff, var(--accent));
  box-shadow: 0 0 14px rgba(78,168,255,.35);
}

/* =====================
   EDUCATION
===================== */
.edu-details{
  color: var(--muted);
  font-size: 0.98rem;
}

/* =====================
   PROJECTS
===================== */
.project-meta,
.project-subtitle{
  font-size: 0.98rem;
  color: var(--muted);
  margin-bottom: 1rem;
}

/* =====================
   PROJECT GRID / COLLAGE
===================== */
.project-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

@media (max-width: 800px){
  .project-grid{ grid-template-columns: 1fr; }
}

.collage{
  display:grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .6rem;
}

.collage-img{
  width:100%;
  border-radius: 12px;
}

/* =====================
   IMAGES
===================== */
img{
  max-width:100%;
  display:block;
  border-radius: 14px;
}

.project-image{
  margin: 1.2rem 0;
}

/* Add a little “frame” to images inside cards */
.skill img,
.edu-item img,
.project img,
.project-card img{
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 10px 24px rgba(0,0,0,.45);
}

/* FORCE CONTENT TO RESPECT PAGE WIDTH */
main img,
header img,
section img{
  max-width:100%;
  height:auto;
}

/* =====================
   LINKS & BUTTONS
===================== */
a{
  color: var(--accent);
  text-decoration:none;
  transition: color .18s ease, text-decoration-color .18s ease;
}

a:hover{
  color:#ffffff;
  text-decoration: underline;
  text-decoration-color: rgba(78,168,255,.65);
  text-underline-offset: 3px;
}

.project-actions{
  margin-top: 1rem;
}

.project-link{
  display:inline-flex;
  align-items:center;
  gap:.5rem;
  padding: .65rem 1.1rem;
  background: linear-gradient(135deg, rgba(78,168,255,1), rgba(124,92,255,.95));
  color:#071019;
  border-radius: 12px;
  font-weight: 700;
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 12px 28px rgba(0,0,0,.45);
  transition: transform .18s ease, filter .18s ease, box-shadow .18s ease;
}

.project-link:hover{
  text-decoration:none;
  transform: translateY(-2px);
  filter: brightness(1.05);
  box-shadow: 0 16px 34px rgba(0,0,0,.55);
}

/* =====================
   INTERNSHIP SECTION
===================== */
.internship-section h1{
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  margin-bottom: .6rem;
}

.section-subtitle{
  color: var(--muted);
  margin-bottom: 2rem;
}

/* =====================
   FOOTER
===================== */
footer{
  text-align:center;
  border-top: 1px solid rgba(255,255,255,.10);
  padding-top: 1.8rem;
  color: rgba(255,255,255,.50);
}

/* =====================
   SUBTLE ENTRANCE (optional)
===================== */
@media (prefers-reduced-motion: no-preference){
  .skill,
  .project,
  .project-card,
  .project-box,
  .education .edu-item{
    animation: floatIn .5s ease both;
  }
  .skill:nth-child(2){ animation-delay:.06s; }
  .skill:nth-child(3){ animation-delay:.12s; }
}

@keyframes floatIn{
  from{ opacity:0; transform: translateY(10px); }
  to{ opacity:1; transform: translateY(0); }
}
