/* ---------- VARIABLES & THEME ---------- */
:root{
  --bg: #0b1220;
  --card: #0f1724;
  --muted: #9aa6b2;
  --accent-1: linear-gradient(135deg,#7c3aed 0%,#06b6d4 100%);
  --glass: rgba(255,255,255,0.03);
  --text: #e6eef6;
  --radius: 14px;
}
:root.light{
  --bg:#f7fafc;
  --card:#ffffff;
  --muted:#4a5f67;
  --glass: rgba(10,10,10,0.03);
  --text:#162022;
}

/* ---------- BASE ---------- */
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family:Inter,system-ui,-apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  background: radial-gradient(900px 400px at 10% 20%, rgba(124,58,237,0.06), transparent), var(--bg);
  color:var(--text);
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}
.container{
  max-width:1100px;
  margin:0 auto;
  padding:28px
}

/* ---------- NAV ---------- */
.nav{
  position:sticky;top:0;z-index:60;
  backdrop-filter: blur(6px);
  background: linear-gradient(180deg, rgba(0,0,0,0.25), rgba(0,0,0,0.06));
  border-bottom: 1px solid rgba(255,255,255,0.03);
}
.nav .nav-inner{
  display:flex;
  align-items:center;
  gap:18px;
  justify-content:space-between
}

.logo{display:flex;
  align-items:center;
  gap:12px;
  text-decoration:none;
  color:var(--text)
}

.logo-img{
  width:44px;
  height:44px;
  border-radius:10px;
  object-fit:cover;border:2px solid rgba(255,255,255,0.06)
}

.logo-text{font-weight:700}

/* nav links */
.nav-links{
  display:flex;
  gap:12px
}

.nav-link{color:var(--text);
  text-decoration:none;
  padding:8px 10px;
  border-radius:8px;
  font-weight:600;
  opacity:0.9
}

.nav-link:hover{
  background:var(--glass);
  transform:translateY(-2px)
}

.nav-actions{
  display:flex;
  align-items:center;
  gap:10px
}

.icon-btn{
  background:transparent;
  border:none;
  font-size:18px;
  cursor:pointer
}

.cta{
  padding:10px 14px;
  background:var(--accent-1);
  color:white;
  border-radius:10px;
  text-decoration:none;
  font-weight:700
}

.hamburger{
  display:none;
  background:none;
  border:none;
  cursor:pointer
}

.hamburger span{
  display:block;
  width:22px;
  height:2px;
  background:var(--text);
  margin:4px 0;
  border-radius:2px
}

/* ---------- HERO ---------- */
.hero{padding:64px 0}
.hero-inner{
  display:grid;
  grid-template-columns:1fr 360px;
  gap:40px;
  align-items:center
}

.eyebrow{
  opacity:0.9;
  color:var(--muted);
  font-weight:600
}

.name{
  font-size:36px;
  margin:6px 0 6px
}

.role{
  font-size:18px;
  color:var(--muted);
  display:flex;
  gap:8px;
  align-items:center
}

.cursor{animation:blink 1s steps(2) infinite}
@keyframes blink{50%{opacity:0}}
.hero-desc{
  margin-top:18px;
  color:var(--muted);
  max-width:54ch
}

.hero-cta{
  margin-top:20px;
  display:flex;
  gap:12px
}

.btn{
  padding:10px 14px;
  border-radius:10px;
  border:none;
  cursor:pointer;
  text-decoration:none;
  display:inline-flex;
  align-items:center;
  gap:8px
}

.btn-primary{
  background:var(--accent-1);
  color:#fff;
  font-weight:700;
  box-shadow:0 10px 30px rgba(124,58,237,0.12)
}

.btn-outline{
  background:transparent;
  border:1px solid rgba(255,255,255,0.06);
  color:var(--text);
  font-weight:700
}

.hero-social
{margin-top:22px;
  display:flex;
  gap:12px
}

.social a{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:40px;
  height:40px;
  border-radius:10px;
  background:var(--glass);
  color:var(--text);
  text-decoration:none;
  font-size:16px
}

.social a:hover{
  transform:translateY(-4px);
  background:var(--accent-1);
  color:#fff
}

/* HERO RIGHT */
.profile-wrap {
  position: relative;
  width: 240px;
  height: 240px;
  margin: 0 auto;
  transform: translateX(-80px);
}

/* Animated gradient ring - slightly smaller so the image overlaps */
.profile-ring {
  position: absolute;
  top: 10px;
  left: 10px;
  width: calc(100% - 20px);
  height: calc(100% - 20px);
  border-radius: 50%;
  background: var(--accent-1);
  animation: rotateRing 8s linear infinite;
  
  /* Make it a gradient border */
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 6px), black calc(100% - 5px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 6px), black calc(100% - 5px));

  z-index: 1;
}

/* Profile image - moved slightly upward to "pop out" */
.profile-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  clip-path: circle(50% at 50% 50%);
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
  position: relative;
  z-index: 2;
  transform: translateY(-17px); /* Lift image above ring */
  transition: transform 0.4s ease;
}

.profile-wrap:hover .profile-img {
  transform: translateY(-12px) scale(1.05);
}

@keyframes rotateRing {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}


/* Navbar avatar with circle mask */
.avatar-img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent1);
  transition: transform 0.3s ease;
}

.avatar-img:hover {
  transform: scale(1.05);
}


/* quick meta */
.quick-meta{
  margin-top:20px;
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
  color:var(--muted);
  font-size:14px
}

.quick-meta strong{
  display:block;
  color:var(--text)
}

/* ---------- SECTIONS ---------- */
.section{padding:52px 0}

.reveal-card, .contact-card {
  background: var(--card);
  padding: 22px;
  border-radius: var(--radius);
  box-shadow: 0 8px 30px rgba(2, 6, 23, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.02);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.contact-card:hover {
  box-shadow: 0 12px 40px rgba(2, 6, 23, 0.12);
}

.about-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:18px;
  margin-top:16px;
  color:var(--muted)
}

/* ---------- SKILLS ---------- */
.skills-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(200px,1fr));
  gap:16px;
  margin-top:18px
}

.skill-card{
  background:var(--card);
  padding:18px;
  border-radius:12px;
/*  box-shadow:0 8px 30px rgba(2,6,23,0.45);*/
  box-shadow: 0 8px 30px rgba(2, 6, 23, 0.08);
  text-align:left;
  transition:transform .28s cubic-bezier(.2,.9,.3,1), box-shadow .28s
}

.skill-card:hover{
  transform:translateY(-8px);
  box-shadow:0 26px 60px rgba(2,6,23,0.45)
}

.skill-icon{
  width:46px;
  height:46px;
  border-radius:10px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:var(--glass);
  font-size:18px;
  margin-bottom:10px;
  color:var(--text)
}

/* social row after skills */
.social-row{
  margin-top:18px;
  display:flex;
  align-items:center;
  gap:18px
}

.social-row h4{
  margin:0;
  color:var(--text)
}

.social-row .social a{
  width:44px;
  height:44px;
  border-radius:12px
}

/* ---------- PROJECTS ---------- */
.project-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(240px,1fr));
  gap:18px;
  margin-top:18px
}

.project-card{
  position:relative;
  border-radius:12px;
  overflow:hidden;
  cursor:zoom-in
}

.project-card img{
  width:100%;
  height:220px;
  object-fit:cover;
  display:block;
  transition:transform .4s ease
}

.project-info{
  padding:14px;
  background:linear-gradient(180deg, rgba(0,0,0,0.0), rgba(0,0,0,0.02));
}

.project-card:hover img{transform:scale(1.06)}

.project-tags{
  margin-top:10px;
  display:flex;
  gap:8px
}
.project-tags span{
  background:var(--glass);
  padding:6px 8px;
  border-radius:8px;
  font-size:12px;
  color:var(--text)
}

/* View Project button small version */
.btn-sm {
  font-size: 14px;
  padding: 6px 12px;
  margin-top: 10px;
  display: inline-block;
}


/* ---------- CONTACT ---------- */
.contact-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:24px;
  margin-top:14px
}


.contact-form input, 
.contact-form textarea {
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,0.15); /* visible in light mode */
  background: transparent;
  color: var(--text);
  transition: border-color 0.3s ease, background 0.3s ease;
}

/* Dark mode border adjustment */
:root:not(.light) .contact-form input,
:root:not(.light) .contact-form textarea {
  border: 1px solid rgba(255,255,255,0.06);
}

/* Focus effect */
.contact-form input:focus, 
.contact-form textarea:focus {
  outline: none;
  border-color: #7c3aed;
  background: rgba(124,58,237,0.05);
}

.contact-form button{margin-top:8px}

/* ---------- FOOTER ---------- */
.site-footer{
  padding:28px 0; 
  text-align:center; 
  color:var(--muted);
  border-top:1px solid rgba(255,255,255,0.03)
}

/* ---------- MODAL ---------- */
.modal{
  position:fixed;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  background:rgba(2,6,23,0.75);
  z-index:120;
  opacity:0;
  pointer-events:none;
  transition:opacity .18s
}

.modal-inner{
  max-width:900px;
  width:94%;
  background:transparent;
  border-radius:10px;
  position:relative
}

.modal img{
  width:100%;
  height:auto;
  border-radius:10px
}

.modal.show{
  opacity:1;
  pointer-events:auto
}

.modal-close{
  position:absolute;
  right:-8px;top:-8px;
  background:#fff;
  border-radius:50%;
  border:none;
  width:36px;
  height:36px;
  font-size:22px;
  cursor:pointer
}

/* ---------- REVEAL ANIMATIONS ---------- */
.reveal, .reveal-card{
  opacity:0;
  transform:translateY(18px);
  transition:opacity .66s ease, transform .66s cubic-bezier(.2,.9,.3,1)
}

.reveal.visible, .reveal-card.visible{
  opacity:1;
  transform:none
}

/* ---------- RESPONSIVE ---------- */
@media (max-width:980px){
  .nav-links{display:none}
  .hamburger{display:block}
  .hero-inner{grid-template-columns:1fr}
  .profile-wrap{width:160px}
  .quick-meta{grid-template-columns:1fr}
  .contact-grid{grid-template-columns:1fr}
}

/* small */
@media (max-width:520px){
  .name{font-size:28px}
  .hero-desc{max-width:100%}
}
