:root {
  --bg: #f4f4f4;
  --fg: #333;
  --ink: #222;
  --muted: #666;
  --brand: #007BFF;
  --brand-2: #0059b3;
  --card: #fff;
  --nav: #444;
  --header: #222;
  --ring: rgba(0, 123, 255, .3);

  /* New For gradient */
  
  --grad-1:#4facfe;      /* blue */
  --grad-2:#00f2fe;      /* cyan */
  --grad-3:#7b61ff;      /* indigo */
  --grad-4:#ff7ad9;      /* pink */


}

* {
  box-sizing: border-box
}

html {
  scroll-behavior: smooth
}

body {
  margin: 0;
  font-family: Segoe UI, Tahoma, Geneva, Verdana, sans-serif;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6
}

a {
  color: var(--brand);
  text-decoration: none
}

a:hover {
  text-decoration: none
}

header {
  background: var(--header);
  color: #fff;
  padding: 2.5rem 1rem;
  text-align: center
}

header h1 {
  margin: .2rem 0 0;
  font-size: 2.2rem
}

header p {
  margin: .5rem 0 0;
  color: #cfcfcf
}

nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--nav);
  display: flex;
  justify-content: center;
  gap: 1rem;
  padding: .6rem
}

nav a {
  color: #fff;
  font-weight: 600;
  padding: .4rem .6rem;
  border-radius: .4rem
}

nav a:focus,
nav a:hover {
  background: #555;
  outline: none
}

/*  --- NAV: Base --- */ 
.site-nav { 
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--nav);
  color: #fff;
  width: 100%;
  box-shadow: 0 1px 0 rgba(0, 0, 0, .05);
}

/* layout wrapper (stack on mobile) */
.site-nav .menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

* Links */ .site-nav a {
  display: block;
  color: #fff;
  font-weight: 600;
  padding: .9rem 1rem;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a:focus {
  background: #555;
  outline: none;
}

/* Toggle button (visible on mobile) */
.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: transparent;
  color: #fff;
  border: 1.5px solid #6f86a0;
  padding: .55rem .8rem;
  margin: .4rem .6rem;
  border-radius: .45rem;
  font-weight: 600;
  cursor: pointer;
  touch-action: manipulation;
}

.nav-toggle:focus-visible {
  outline: 3px solid var(--ring);
  outline-offset: 2px;
}

/* --- Mobile (default) --- */
.site-nav {
  /* prevent horizontal jiggle on small screens */
  overflow-x: hidden;
}

.site-nav .menu {
  display: grid;
  grid-template-columns: 1fr;
  /* vertical list */
  max-height: 0;
  /* collapsed by default */
  overflow: hidden;
  transition: max-height .28s ease;
}

.site-nav .menu.is-open {
  /* large enough to show all items (adjust if you add more links) */
  max-height: 70vh;
  border-top: 1px solid rgba(255, 255, 255, .12);
}




main {
  padding: 2rem 1rem;
  max-width: 1000px;
  margin: auto
}

section {
  margin: 0 auto 2rem auto
}

h2 {
  color: var(--ink);
  margin: 0 0 .75rem 0;

  /* New For gradient 
  position: relative; */
}

/* New For gradient 

h2::after{
  content:"";
  display:block;
  width:64px; height:4px; margin-top:8px; border-radius:2px;
  background: linear-gradient(90deg,var(--grad-1),var(--grad-2));
}
  */


.grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 1.5rem;
  align-items: start
}

.card {
  background: var(--card);
  padding: 1rem;
  border-left: 5px solid var(--brand);
  box-shadow: 0 2px 5px rgba(0, 0, 0, .06);
  border-radius: .5rem;

  /* Cards: gradient left stripe + hover lift */
  /* New For gradient */
  position: relative;
  border-left: none;               /* remove old solid border */
  transition: transform .25s ease, box-shadow .25s ease, filter .25s ease;
  will-change: transform, box-shadow;

}

/* New For gradient */
/* gradient stripe */
.card::before{
  content:"";
  position:absolute; inset:0 auto 0 0; width:6px; border-radius:.5rem 0 0 .5rem;
  background: linear-gradient(180deg,var(--grad-1),var(--grad-2));
}

/* New For gradient */
/* gradient glow on hover/focus */
.card::after{
  content:"";
  position:absolute; inset:-2px; z-index:-1; border-radius:.7rem;
  background: linear-gradient(135deg,var(--grad-1),var(--grad-2));
  filter: blur(16px); opacity:0; transition: opacity .35s ease;
}

/* New For gradient */
/* Lift effect */
.card:hover,
.card:focus-within{
  transform: translateY(-6px);
  box-shadow: 0 10px 24px rgba(0,0,0,.12), 0 6px 12px rgba(0,0,0,.06);
}

/* New For gradient */
.card:hover::after,
.card:focus-within::after{ opacity:.05 }





.stack {
  display: grid;
  gap: .6rem
}

.meta {
  color: var(--muted);
  font-size: .95rem
}

.list {
  margin: .2rem 0;
  padding-left: 1.2rem
}

.list li {
  margin: .25rem 0
}

.projects .project {
  margin: 1rem 0
}

.skills .pill {
  display: inline-block;
  background: #eef5ff;
  color: #0b3d91;
  border: 1px solid #cfe2ff;
  padding: .25rem .5rem;
  margin: .25rem .25rem;
  border-radius: 999px;
  font-size: .9rem
}

.media {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center
}

.media img {
  width: 220px;
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .08);

 /* hover for image  
display:block;
  border-radius:12px; */

  /* Gradient border ring 
  border:2px solid transparent;
  background:
    linear-gradient(#fff,#fff) padding-box,
    linear-gradient(135deg,var(--grad-1),var(--grad-2)) border-box; */

  /* Motion & elevation 
  box-shadow: 0 2px 12px rgba(0,0,0,.08); */
  /*
  transform: translateZ(0);  GPU hint, prevents layout shift 
  transition:
    transform .35s cubic-bezier(.2,.6,.2,1),
    box-shadow .35s ease,
    filter .35s ease;
  will-change: transform, box-shadow, filter; */

}


.kvs {
  display: grid;
  gap: .6rem
}

.kvs strong {
  color: var(--ink)
}

.cv-wrap {
  display: grid;
  gap: 1rem
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  align-items: center;
  justify-content: space-between
}

.toolbar .left {
  display: flex;
  gap: .6rem;
  align-items: center
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: var(--brand);
  color: #fff;
  border: none;
  padding: .55rem .8rem;
  border-radius: .45rem;
  font-weight: 600;
  cursor: pointer
}

.btn:hover {
  background: var(--brand-2)
}

.btn.outline {
  background: transparent;
  color: var(--brand);
  border: 1.5px solid var(--brand)
}

.btn:focus {
  outline: 3px solid var(--ring);
  outline-offset: 2px
}

input[type="file"] {
  display: none
}

label.file {
  border: 1.5px dashed #8cb9ff;
  border-radius: .5rem;
  padding: .55rem .8rem;
  color: #0b3d91;
  background: #f7faff;
  cursor: pointer
}

.viewer {
  background: #fff;
  border: 1px solid #e7e7e7;
  border-radius: .5rem;
  overflow: hidden;
  min-height: 500px
}

.viewer iframe,
.viewer embed,
.viewer object {
  width: 100%;
  height: 70vh;
  min-height: 500px;
  border: 0
}



footer {
  background: #222;
  color: #fff;
  text-align: center;
  padding: 1rem 0
}

footer a {
  color: #9dd1ff
}



/* --- Desktop / larger screens --- */
@media (min-width: 800px) {
  .nav-toggle {
    display: none;
  }

  /* hide the button */
  .site-nav {
    display: flex;
    justify-content: center;
  }

  .site-nav .menu {
    display: flex;
    /* horizontal row */
    align-items: center;
    gap: .25rem 0;
    max-height: none;
    /* always visible */
  }

  .site-nav a {
    padding: .6rem .8rem;
    border-radius: .4rem;
  }
}