:root {
  --accent: #6366f1;
  --accent-2: #8b5cf6;
  --dark-bg: #0b1121;
  --light-bg: #f7f9ff;
  --txt-main: #e2e8f0;
  --txt-dark: #1e293b;
  --radius: 0.65rem;
  --shadow: 0 4px 18px rgba(0, 0, 0, 0.25);
  --fast: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --med: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========== Base ========== */
*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
body{
  font-family:'Poppins',sans-serif;line-height:1.6;
  background:var(--dark-bg);color:var(--txt-main);
  overflow-x:hidden;
}
img{max-width:100%;display:block;border-radius:var(--radius)}
a{color:var(--accent);text-decoration:none;transition:color var(--fast)}
a:hover{color:var(--accent-2)}
.section{padding:5rem 1rem}
.container{max-width:960px;margin:0 auto}

/* ========== Navbar (tiny tweak) ========== */
.site-header{/* existing styles keep */}
.nav-links a:hover::after{width:100%;}

/* ========================================================
   HERO – GRID  📐 + BLOB 🌐 + TILT 🌀 + CTA ✨
   ======================================================== */
.hero{
  display:grid;grid-template-columns:repeat(auto-fit,minmax(320px,1fr));
  height:calc(100vh - 70px);margin-top:70px;
}

/* ---------- left side ---------- */
.hero-left{
  display:flex;flex-direction:column;justify-content:center;
  background:#e2e2e2;padding:4rem 3rem;
  clip-path:polygon(0 0,100% 0,85% 100%,0 100%);
}
.hero-left h2{font-weight:500;margin-bottom:1rem;font-size:1.2rem;color:var(--txt-dark)}

.hero-left h1 {
  font-size: 2.4rem; /* ↓ reduced from 3rem */
  line-height: 1.2;
  margin-bottom: 0.5rem;
  color: var(--txt-dark);
}

.tagline{color:#555;margin-bottom:2.2rem;font-weight:500}

/* Call‑to‑action */
.btn-primary {
  display: inline-block;
  margin-top: 1.8rem;
  background: var(--accent);
  color: #fff;
  padding: 0.55rem 1.4rem;      /* same as .btn-contact */
  border-radius: 2rem;          /* match .btn-contact */
  font-weight: 600;
  font-size: 0.95rem;           /* match .btn-contact for visual harmony */
  transition: background var(--fast), transform var(--fast);
  box-shadow: 0 2px 8px rgba(99,102,241,0.13);
}

.btn-primary:hover {
  background: #4f53e6;
  transform: translateY(-2px);
}

/* ---------- right side ---------- */
.hero-right{position:relative;display:flex;align-items:center;justify-content:center;
  background:#000;overflow:hidden;/* ✱✱✱ */
  clip-path:polygon(15% 0,100% 0,100% 100%,0 100%);
}

/* Gradient blob */
.blob{
  position:absolute;width:480px;height:480px;z-index:0;
  background:radial-gradient(circle at 30% 30%,var(--accent-2),var(--accent));
  border-radius:50% 40% 60% 50% / 60% 50% 40% 50%;
  filter:blur(65px);opacity:0.55;pointer-events:none;
  animation:blobPulse 12s ease-in-out infinite alternate;
}
@keyframes blobPulse{0%{transform:translate(-45%,-45%) scale(1)}100%{transform:translate(-45%,-45%) scale(1.25)}}

/* Profile wrapper gives perspective for tilt */
.profile-wrapper{perspective:1000px;z-index:1;}
.profile-img{
  width:340px;max-width:80%;height:auto;
  filter:drop-shadow(0 12px 24px rgba(0,0,0,.6));transition:transform var(--med);
  border-radius:50%;
}
.profile-wrapper:hover .profile-img{
  transform:rotateY(8deg) rotateX(4deg) scale(1.05);
}

/* ========== About Card ========== */
.about-card{
  background:#fff;color:var(--txt-dark);
  display:flex;gap:2rem;align-items:center;justify-content:center;
  padding:2.5rem 2rem;border-radius:var(--radius);box-shadow:var(--shadow);
}
.about-img{
  width:210px;
  height:210px;
  object-fit:cover;
  border-radius:50%;
  box-shadow:0 6px 18px rgba(0,0,0,.35);
}
.about-text p{font-size:1rem;line-height:1.6;}

@media(max-width:768px){
  .hero {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    height: auto;
    margin-top: 60px;
  }
  .hero-left,
  .hero-right {
    width: 50%;
    clip-path: none;
    padding: 2rem;
  }
  .profile-img {
    width: 100%;
    max-width: 240px;
  }
}

/* ========== Skills ========== */
.skills-wrap{
  list-style:none;display:grid;grid-template-columns:repeat(auto-fill,minmax(160px,1fr));gap:1.2rem;
}
.skills-wrap li{
  background:linear-gradient(135deg,var(--accent) 0%,var(--accent-2) 100%);
  color:#fff;padding:0.7rem 1rem;border-radius:0.45rem;text-align:center;font-weight:500;
  box-shadow:var(--shadow);transition:transform var(--fast),box-shadow var(--fast);
}
.skills-wrap li:hover{transform:translateY(-6px) scale(1.03);box-shadow:0 8px 24px rgba(0,0,0,0.35);}

/* ========== Services ========== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
  align-items: stretch; /* ensures all grid items fill row height */
}

.service-card {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: #e0e4f1;
  padding: 1.8rem 1.6rem;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  min-height: 265px;   /* 👈 265–290px is a nice “tall card” look, adjust as needed */
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  height: 100%;        /* 👈 Ensures card always fills available grid height */
}

.service-card h3 {
  margin-bottom: 0.8rem;
  font-size: 1.2rem;
  font-weight: 700;
  color: #a5b4fc; /* soft blue-violet accent */
}

.service-card ul {
  list-style: disc;
  padding-left: 1.1rem;
}

.service-card li {
  font-size: 0.95rem;
  line-height: 1.55;
  color: #e2e8f0;
  margin-bottom: 0.5rem;
}

.service-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 12px 32px rgba(99, 102, 241, 0.4);
  border-color: rgba(255, 255, 255, 0.18);
}


/* ========== Timeline (Experience & Education) ========== */
.timeline{list-style:none;display:grid;gap:2rem;}
.timeline li{
  background:#fff;color:var(--txt-dark);
  padding:1.5rem 1.8rem;border-radius:var(--radius);
  box-shadow:var(--shadow);
  transition:transform var(--fast),box-shadow var(--fast);
}
.job-headline {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 1.13rem;
  font-weight: 700;
  color: #e0e7ff;
  letter-spacing: 0.01em;
  margin-bottom: 0.28rem;
}
.company {
  font-size: 1.07rem;
  font-weight: 600;
  color: #a5b4fc;
  letter-spacing: 0.01em;
}
.job-meta {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  font-size: 0.98rem;
  margin-bottom: 0.3rem;
  font-weight: 500;
  color: #94a3b8;
  letter-spacing: 0.01em;
}

.job-meta .location {
  color: #6366f1;
  display: flex;
  align-items: center;
  gap: 0.33em;
}

.job-meta .dates {
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 0.33em;
}

.job-desc {
  font-size: 1.01rem;
  margin-bottom: 0.2rem;
  line-height: 1.68;
  color: #dbeafe;
}
.timeline li:hover { transform: translateY(-4px) scale(1.02); box-shadow: 0 6px 18px rgba(0,0,0,0.35); }
.dark-bg .timeline li { background: #14213d; color: var(--txt-main); }
.job-role   { font-weight: 600; font-size: 1.05rem; margin-bottom: 0.4rem; display: block; }
.job-period { font-size: 0.85rem; font-weight: 500; margin-bottom: 0.8rem; color: var(--accent); }

/* ========== Portfolio ========== */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
}

.project-card-modern {
  position: relative;
  overflow: hidden;
  border-radius: 1.2rem;
  background: #1e293b;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.3);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.project-card-modern:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 16px 40px rgba(99, 102, 241, 0.4);
}

/* Image wrapper with overlay effect */
.project-card {
  background: #1e293b;
  border-radius: 1.2rem;
  box-shadow: 0 8px 28px rgba(0,0,0,0.17);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.3s, transform 0.3s;
}
.project-card figure {
  margin: 0;
  padding: 0;
  background: #111827;
  display: flex;
  align-items: center;
  justify-content: center;
  border-top-left-radius: 1.2rem;
  border-top-right-radius: 1.2rem;
  min-height: 190px;
  position: relative;
}
.project-card img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  border-top-left-radius: 1.2rem;
  border-top-right-radius: 1.2rem;
  display: block;
}

/* Hide figcaption visually, or use for hover effect if you wish */
.project-card figcaption {
  display: none;
}

.project-content {
  display: flex;
  flex-direction: column;
  padding: 1.6rem 1.5rem 1.3rem 1.5rem;
  gap: 0.9rem;  /* Controls space between title, desc, button */
}

.project-content h3 {
  font-size: 1.14rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 0.12rem 0;
  line-height: 1.28;
  letter-spacing: 0.01em;
}

.project-desc {
  font-size: 1rem;
  color: #dbeafe;
  line-height: 1.55;
  margin: 0;
}

.project-links {
  margin-top: 0.3rem;
  display: flex;
  gap: 0.7rem;
}

.project-links a {
  background: linear-gradient(to right, #6366f1, #8b5cf6);
  color: #fff;
  padding: 0.45rem 1.05rem;
  border-radius: 0.52rem;
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(99,102,241,0.06);
  transition: transform 0.25s, background 0.25s;
}

.project-links a:hover {
  background: #4f46e5;
  transform: translateY(-2px) scale(1.04);
}
.project-card-modern img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.project-card-modern:hover img {
  transform: scale(1.08);
}

/* Image overlay on hover */
.project-card-modern figure::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background: linear-gradient(to bottom, rgba(15, 23, 42, 0) 30%, rgba(15, 23, 42, 0.7) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.project-card-modern:hover figure::after {
  opacity: 1;
}

.project-content {
  display: flex;
  flex-direction: column;
  padding: 2rem 1.7rem 1.7rem 1.7rem;  /* generous, but tweak as needed */
  gap: 1.1rem;    /* spacing between each element (title, desc, button) */
}

.project-content h3 {
  font-size: 1.22rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.2rem;
  margin-top: 1.3rem;   /* 👈 Space between image and title */
  line-height: 1.28;
}

.project-card-modern:hover h3 {
  color: #a78bfa;
}

.project-desc {
  font-size: 1rem;
  color: #dbeafe;
  line-height: 1.6;
  margin-bottom: 0.4rem;
}

.project-tech {
  font-size: 0.85rem;
  color: #94a3b8;
}

/* Button styling */
.project-links {
  margin-top: 0.5rem;
  display: flex;
  gap: 0.8rem;
}

.project-links a {
  background: linear-gradient(to right, #6366f1, #8b5cf6);
  color: #fff;
  padding: 0.45rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.3s ease, background 0.3s ease;
}

.project-links a:hover {
  background: #4f46e5;
  transform: translateY(-2px) scale(1.03);
}

/* ========== Contact ========== */
.say-hi-wrapper {
  padding: 3rem 1rem;
  background-color: #0f172a;
}

.say-hi-box {
  max-width: 720px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 1.25rem;
  padding: 2.5rem 2rem;
  text-align: center;
  color: white;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.4);
}

.say-hi-box h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.say-hi-icons {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.say-hi-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  background: rgba(255,255,255,0.11);
  border-radius: 50%;
  margin: 0 0.1rem;
  font-size: 2rem;
  color: #fff;
  transition: background 0.3s, box-shadow 0.2s, transform 0.18s;
  box-shadow: 0 2px 12px rgba(99,102,241,0.09);
  border: none;
}
.say-hi-icons a i {
  font-size: 1.4rem;
  /* Vertically and horizontally centered by parent */
}

.say-hi-icons a:hover {
  background: linear-gradient(135deg, #6366f1 60%, #8b5cf6 100%);
  color: #fff;
  box-shadow: 0 4px 24px rgba(99,102,241,0.18);
  transform: translateY(-2px) scale(1.10);
}

.say-hi-email,
.say-hi-phone {
  font-size: 1rem;
  margin-top: 0.4rem;
  color: #e2e8f0;
  font-weight: 500;
}

/* ==========  footer ========== */
.footer-bar {
  text-align: center;
  font-size: 0.9rem;
  padding: 2rem 1rem;
  color: #94a3b8; /* Slate-400 */
  background-color: #0b1121; /* dark background to match site */
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  margin-top: 2rem;
}

.footer-bar p {
  margin: 0;
  font-weight: 400;
  letter-spacing: 0.3px;
}

.footer-bar strong {
  color: #e0e7ff; /* light bluish text for name */
  font-weight: 600;
}

/* ========== Reveal on Scroll ========== */
[data-reveal] { opacity: 0; transform: translateY(40px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal-visible { opacity: 1; transform: translateY(0); }

/* ==== Fixed top navbar =================================================== */
.site-header{
  position:fixed;           /* sit on top even when you scroll        */
  top:0; left:0; right:0;
  height:70px;              /* matches hero margin-top                */
  background:var(--dark-bg);
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:0 2rem;
  z-index:1000;
  box-shadow:0 2px 8px rgba(0,0,0,.35);
}

.logo{
  font-weight:700;
  font-size:1.4rem;
  color:#fff;
  letter-spacing:.5px;
}

/* horizontal link list */
.nav-links{
  list-style:none;
  display:flex;
  gap:2rem;
}

.nav-links a{
  color:var(--txt-main);
  font-weight:500;
  position:relative;
}

/* small underline on hover */
.nav-links a::after{
  content:"";
  position:absolute; left:0; bottom:-4px;
  width:0; height:2px;
  background:var(--accent);
  transition:width .25s ease;
}
.nav-links a:hover::after{width:100%;}

.btn-contact{
  background:var(--accent);
  color:#fff;
  padding:.55rem 1.4rem;
  border-radius:2rem;
  font-size:.9rem;
  font-weight:600;
  transition:background .25s ease, transform .25s ease;
}
.btn-contact:hover{background:#4f53e6; transform:translateY(-2px);}

/* ----------------------------------------------------------
   1. HERO social-icon row
   ---------------------------------------------------------- */
.social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  background: #ede9fe; /* soft purple */
  border: 1.5px solid var(--accent-2);
  border-radius: 50%;
  margin-right: 0.8rem;
  box-shadow: 0 2px 10px rgba(99,102,241,0.07);
  transition: border 0.24s, box-shadow 0.3s, transform 0.18s;
}
.social-icons a:last-child { margin-right: 0; }
.social-icons a img {
  width: 24px; height: 24px;
  filter: brightness(0.1) saturate(1.2);
}
.social-icons a:hover {
  border-color: #6366f1;
  box-shadow: 0 8px 26px rgba(99,102,241,0.13);
  transform: scale(1.08);
}




/* ----------------------------------------------------------
   2. Narrow the diagonal “split” between grey & dark sides
      (reduces the big empty band you mentioned)
   ---------------------------------------------------------- */
.hero-left {               /* was 85 %, now 92 % ⇒ thinner strip */
  clip-path:polygon(0 0,100% 0,92% 100%,0 100%);
}

.hero-right{               /* start a bit earlier to overlap  */
  clip-path:polygon(8% 0,100% 0,100% 100%,0 100%);
}
/* ----------------------------------------------------------
   A. Mobile-first nav ( ≤ 768 px )
   ---------------------------------------------------------- */
.nav-toggle{
  display:none;            /* hidden on desktop */
  flex-direction:column;
  gap:4px;
  background:transparent;
  border:0;
  cursor:pointer;
}
.nav-toggle span{
  width:22px; height:2px;
  background:#fff;
  transition:transform .35s ease, opacity .35s ease;
}
/* morph into ✕ when open */
.nav-toggle.open span:nth-child(1){ transform:translateY(6px) rotate(45deg);}
.nav-toggle.open span:nth-child(2){ opacity:0;}
.nav-toggle.open span:nth-child(3){ transform:translateY(-6px) rotate(-45deg);}

/* compact menu */
@media(max-width:768px){
  .nav-toggle{display:flex;}
  .nav-links{
    position:fixed; top:70px; right:-100%;
    flex-direction:column; gap:1.4rem;
    background:var(--dark-bg); width:60%; max-width:260px; height:calc(100% - 70px);
    padding:2rem 1.8rem; transition:right .35s ease;
    box-shadow:-2px 0 12px rgba(0,0,0,.4);
  }
  .nav-links.open{ right:0; }
}

/* ----------------------------------------------------------
   B. Hero & sections – single-column stack on small screens
   ---------------------------------------------------------- */
@media(max-width:768px){
  .hero{
    grid-template-columns:1fr;         /* stack */
    height: 85vh;                   /* natural height */
    margin-top:70px;
  }
  .hero-left{
    clip-path: polygon(0 0, 100% 0, 92% 100%, 0 100%);           /* remove diagonal */
    padding:3.5rem 2rem 3rem;
  }
  .hero-right{
    clip-path: polygon(8% 0, 100% 0, 100% 100%, 0 100%);
    background:#000;
    padding:2.5rem 0 3rem;
  }
  .profile-img{ width:280px; }
  .about-card{ flex-direction:column; text-align:center; }
  .skills-wrap{ grid-template-columns:repeat(auto-fill,minmax(140px,1fr)); }
  .services-grid{ grid-template-columns:1fr; }
  .timeline{ gap:1.5rem; }
  .projects-grid{ grid-template-columns:1fr; }
}

/* ----------------------------------------------------------
   C. Extra micro-animations
   ---------------------------------------------------------- */
/* smooth fade/slide already in place via [data-reveal] */
.service-card,
.project-card,
.timeline li{
  transition:transform .35s ease, box-shadow .35s ease, filter .35s ease;
}
.service-card:hover,
.project-card:hover {
  box-shadow: 0 16px 44px rgba(99,102,241,0.16);
  transform: translateY(-4px) scale(1.015);
}
.timeline li:hover{
  filter:brightness(1.04);
}

/* subtle floating blob (already animating) — make hero image float too */
@keyframes floatPic{ 0%{transform:translateY(0)} 50%{transform:translateY(-10px)} 100%{transform:translateY(0)} }
.profile-img{ animation:floatPic 6s ease-in-out infinite; }



/* Education tab */
.education-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.edu-card {
  background: rgba(255, 255, 255, 0.05);
  padding: 1.8rem;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  display: flex;
  gap: 1.2rem;
  align-items: flex-start;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.edu-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 10px 28px rgba(99, 102, 241, 0.4);
}

.edu-icon {
  font-size: 2rem;
  color: var(--accent-2);
  flex-shrink: 0;
}

.edu-content h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: #cbd5e1;
}

.edu-school {
  font-size: 0.95rem;
  font-weight: 500;
  color: #e2e8f0;
  margin-bottom: 0.3rem;
}

.edu-period {
  font-size: 0.85rem;
  color: #94a3b8;
}


/* social button for mobile view */
@media (max-width: 600px) {
  .social-icons {
    display: flex !important;
    flex-direction: row !important;
    justify-content: flex-start;  /* Or center if you want: center */
    gap: 0.5rem !important;
    margin-bottom: 1.3rem;
  }
  .social-icons a {
    width: 38px !important;
    height: 38px !important;
    margin-right: 0.4rem !important;
    font-size: 1.18rem !important;
    box-shadow: 0 1px 5px rgba(99,102,241,0.06);
  }
  .social-icons a img {
    width: 19px !important;
    height: 19px !important;
  }
}

.logo {
  display: flex;
  align-items: center;
  font-weight: bold;
  color: var(--accent, #6366f1);
  text-decoration: none;
  font-size: 1.25rem;
  transition: color 0.2s;
}
.logo:hover {
  color: var(--accent-2, #8b5cf6);
}
.logo img {
  box-shadow: 0 2px 8px rgba(0,0,0,0.10);
}

