/* Base styles and shared layout */
:root { --bg:#0b1120; --panel:#111827; --cyan:#38bdf8; --purple:#7c3aed; --text:#fff; --muted:#cbd5e1; --subtle:#94a3b8; }
* { margin:0; padding:0; box-sizing:border-box; font-family:"Poppins",sans-serif; }
html { scroll-behavior:smooth; scroll-padding-top:90px; }
body { background:var(--bg); color:var(--text); overflow-x:hidden; position:relative; }
body::before { content:""; position:fixed; inset:0; background:radial-gradient(circle at 20% 20%,rgba(56,189,248,.12),transparent 25%),radial-gradient(circle at 80% 30%,rgba(124,58,237,.10),transparent 25%),radial-gradient(circle at 50% 80%,rgba(56,189,248,.08),transparent 30%); z-index:-2; pointer-events:none; }
body::after { content:""; position:fixed; inset:0; background-image:radial-gradient(#38bdf8 1px,transparent 1px); background-size:45px 45px; opacity:.06; animation:moveBackground 20s linear infinite; z-index:-1; pointer-events:none; }
@keyframes moveBackground { to { transform:translateY(-45px); } }
a { text-decoration:none; color:inherit; }
ul { list-style:none; }
img { max-width:100%; display:block; }
button { font:inherit; }
.container { width:90%; max-width:1200px; margin:auto; }
.header { position:fixed; top:0; left:0; width:100%; z-index:1000; background:rgba(11,17,32,.86); backdrop-filter:blur(12px); border-bottom:1px solid rgba(255,255,255,.08); }
.header-container { min-height:80px; display:flex; justify-content:space-between; align-items:center; gap:24px; }
.logo,.footer-logo { font-size:clamp(19px,2.5vw,28px); font-weight:700; white-space:nowrap; }
.logo span,.footer-logo span { color:var(--cyan); }
.nav-links { display:flex; gap:34px; }
.nav-links a { transition:.3s; color:#e2e8f0; }
.nav-links a:hover,.nav-links a.active { color:var(--cyan); }
.menu-btn { display:none; border:0; background:transparent; color:var(--cyan); font-size:27px; cursor:pointer; }
.progress-bar { position:fixed; top:0; left:0; width:0; height:4px; background:linear-gradient(90deg,var(--cyan),#0ea5e9,var(--purple)); z-index:2000; box-shadow:0 0 15px var(--cyan); }
.section-title { text-align:center; font-size:clamp(32px,4vw,42px); margin-bottom:18px; color:var(--cyan); }
.section-subtitle { text-align:center; color:var(--subtle); max-width:760px; margin:0 auto 55px; line-height:1.8; }
.btn,.btn-outline { display:inline-flex; align-items:center; justify-content:center; padding:14px 28px; border-radius:12px; font-weight:600; transition:.3s; cursor:pointer; }
.btn { background:var(--cyan); color:#08101d; border:2px solid var(--cyan); }
.btn:hover { transform:translateY(-5px); box-shadow:0 0 25px rgba(56,189,248,.45); }
.btn-outline { border:2px solid var(--cyan); color:var(--text); }
.btn-outline:hover { background:var(--cyan); color:#08101d; transform:translateY(-5px); }
.scroll-down { display:flex; justify-content:center; margin:0 0 35px; }
.scroll-down span { width:28px; height:46px; border:2px solid var(--cyan); border-radius:20px; position:relative; }
.scroll-down span::before { content:""; position:absolute; left:50%; top:8px; transform:translateX(-50%); width:5px; height:5px; background:var(--cyan); border-radius:50%; animation:scrollDot 1.5s infinite; }
@keyframes scrollDot { to { opacity:0; top:28px; } }
#scrollTop { position:fixed; right:24px; bottom:24px; width:50px; height:50px; border:0; border-radius:50%; background:var(--cyan); color:#08101d; font-size:19px; cursor:pointer; box-shadow:0 0 20px rgba(56,189,248,.4); opacity:0; visibility:hidden; transform:translateY(15px); transition:.3s; z-index:900; }
#scrollTop.show { opacity:1; visibility:visible; transform:translateY(0); }
#scrollTop:hover { transform:translateY(-5px); box-shadow:0 0 30px var(--cyan); }

/* =========================
   Hero section layout
   ========================= */
.hero {
  min-height: 100vh;
  padding: 145px 0 70px;
  display: flex;
  align-items: center;
}

.hero-container {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(390px, .92fr);
  align-items: center;
  gap: 45px;
}

.hero-content {
  min-width: 0;
  position: relative;
  z-index: 2;
}

.hello {
  display: inline-block;
  color: var(--cyan);
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 18px;
}

.hero-content h1 {
  color: var(--text);
  font-size: clamp(42px, 4.5vw, 68px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -1.5px;
  margin-bottom: 22px;
  overflow-wrap: anywhere;
}

.hero-content h2 {
  color: var(--cyan);
  font-size: clamp(24px, 2.6vw, 34px);
  line-height: 1.35;
  font-weight: 700;
  min-height: 1.4em;
  margin-bottom: 20px;
}

.hero-content h2 .typing {
  color: var(--cyan);
}

.hero-content p {
  max-width: 650px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.95;
  margin-bottom: 28px;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

.social-icons {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 34px;
}

.social-icons a {
  width: 56px;
  height: 56px;
  border: 2px solid var(--cyan);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--cyan);
  font-size: 22px;
  transition: .3s ease;
}

.social-icons a:hover {
  color: #08101d;
  background: var(--cyan);
  transform: translateY(-5px);
  box-shadow: 0 0 22px rgba(56, 189, 248, .35);
}

.hero-image {
  min-width: 0;
}

/* Keep the main content clear of the fixed navigation */
main {
  display: block;
}

@media (max-width: 1050px) {
  .hero-container {
    grid-template-columns: minmax(0, 1fr) minmax(300px, .85fr);
    gap: 22px;
  }

  .hero-content h1 {
    font-size: clamp(40px, 4.2vw, 56px);
  }
}

@media (max-width: 850px) {
  .hero {
    min-height: auto;
    padding: 125px 0 55px;
  }

  .hero-container {
    grid-template-columns: 1fr;
    gap: 35px;
  }

  .hero-content {
    text-align: center;
  }

  .hero-content p {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-buttons,
  .social-icons {
    justify-content: center;
  }

  .hero-image {
    grid-row: 2;
  }
}

@media (max-width: 480px) {
  .hero {
    padding-top: 110px;
  }

  .hello {
    font-size: 17px;
  }

  .hero-content h1 {
    font-size: clamp(36px, 10vw, 46px);
    letter-spacing: -.7px;
  }

  .hero-content h2 {
    font-size: 23px;
  }

  .hero-content p {
    font-size: 14px;
  }

  .hero-buttons {
    gap: 12px;
  }

  .btn,
  .btn-outline {
    padding: 12px 18px;
    font-size: 14px;
  }

  .social-icons a {
    width: 48px;
    height: 48px;
    font-size: 19px;
  }
}

@media(max-width:768px) {
  .header-container { min-height:72px; }
  .menu-btn { display:block; position:relative; z-index:1002; }
  .navbar { position:fixed; top:0; right:-100%; width:min(300px,82vw); height:100dvh; background:var(--panel); display:flex; align-items:center; justify-content:center; transition:right .35s ease; z-index:1001; border-left:1px solid rgba(255,255,255,.08); }
  .navbar.active { right:0; }
  .nav-links { flex-direction:column; align-items:center; gap:30px; }
  .nav-links a { font-size:19px; }
  .overlay { position:fixed; inset:0; background:rgba(0,0,0,.62); backdrop-filter:blur(4px); opacity:0; visibility:hidden; transition:.3s; z-index:1000; }
  .overlay.active { opacity:1; visibility:visible; }
  .section-subtitle { margin-bottom:38px; }
}
@media(prefers-reduced-motion:reduce) { *,*::before,*::after { animation-duration:.01ms!important; animation-iteration-count:1!important; scroll-behavior:auto!important; transition-duration:.01ms!important; } }

/* =========================================================
   Modern Dark refresh — navy surfaces, cyan accents
   ========================================================= */
:root {
  color-scheme: dark;
  --bg: #070b14;
  --panel: #0e1626;
  --panel-raised: #111d31;
  --cyan: #42d7ff;
  --purple: #5b8cff;
  --text: #f4f8ff;
  --muted: #c2cddd;
  --subtle: #8fa2ba;
  --line: rgba(151, 181, 218, .16);
  --cyan-soft: rgba(66, 215, 255, .10);
}
body {
  background: var(--bg);
  background-image: linear-gradient(180deg, #070b14 0%, #0a1220 48%, #070b14 100%);
}
body::before {
  background: radial-gradient(ellipse at 12% 8%, rgba(66,215,255,.12), transparent 32%),
              radial-gradient(ellipse at 88% 24%, rgba(91,140,255,.10), transparent 30%),
              radial-gradient(ellipse at 52% 85%, rgba(66,215,255,.055), transparent 34%);
}
body::after { opacity: .025; background-size: 58px 58px; }
::selection { background: rgba(66,215,255,.28); color: #fff; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 4px; }
.header { background: rgba(7,11,20,.82); border-bottom-color: var(--line); }
.header-container { min-height: 76px; }
.logo, .footer-logo { letter-spacing: -.6px; }
.nav-links { gap: clamp(18px, 2.5vw, 34px); }
.nav-links a { font-size: 14px; font-weight: 500; }
.nav-links a::after { content: ""; display: block; height: 2px; width: 0; margin-top: 5px; background: var(--cyan); transition: width .25s ease; }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.hero { position: relative; padding-top: 150px; }
.hero::before { content: ""; position: absolute; width: 330px; height: 330px; right: 5%; top: 20%; border: 1px solid rgba(66,215,255,.08); border-radius: 50%; pointer-events: none; }
.hero-content { max-width: 680px; }
.hello { display: inline-flex; align-items: center; gap: 10px; padding: 9px 13px; border: 1px solid rgba(66,215,255,.2); border-radius: 999px; background: rgba(66,215,255,.06); font-size: 12px; letter-spacing: 1.7px; }
.status-dot { width: 7px; height: 7px; display: inline-block; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 12px rgba(66,215,255,.8); }
.hero-greeting { margin: 20px 0 8px !important; color: var(--muted) !important; font-size: 15px !important; }
.hero-content h1 { letter-spacing: -2.6px; line-height: 1.08; background: linear-gradient(105deg,#fff 20%,#b8eefe 72%,#8baaff); color: transparent; background-clip: text; -webkit-background-clip: text; }
.hero-content h2 { font-weight: 600; }
.hero-content p { max-width: 590px; }
.hero-highlights { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 25px; }
.hero-highlights span { display: inline-flex; align-items: center; gap: 8px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255,255,255,.025); color: #dbe8f7; font-size: 12px; }
.hero-highlights i { color: var(--cyan); }
.hero-image .profile-photo { border: 1px solid rgba(66,215,255,.35); box-shadow: 0 0 0 10px rgba(66,215,255,.025), 0 25px 90px rgba(0,0,0,.45), 0 0 48px rgba(66,215,255,.10); }
.btn, .btn-outline { min-height: 48px; border-radius: 10px; font-size: 14px; gap: 9px; }
.btn { background: linear-gradient(110deg, var(--cyan), #85e9ff); border-color: transparent; box-shadow: 0 8px 25px rgba(66,215,255,.12); }
.btn:hover { box-shadow: 0 12px 32px rgba(66,215,255,.22); }
.btn-outline { border-color: var(--line); background: rgba(255,255,255,.025); }
.btn-outline:hover { border-color: var(--cyan); }
.section-title { color: var(--text); letter-spacing: -1px; }
.section-title::after { content: ""; display: block; width: 52px; height: 3px; margin: 15px auto 0; border-radius: 3px; background: linear-gradient(90deg,var(--cyan),var(--purple)); }
.section-subtitle { color: var(--subtle); }
.about, .skills, .projects, .contact { position: relative; }
.about, .skills, .projects { padding-top: 110px; padding-bottom: 110px; }
.about-card, .skill-card { background: linear-gradient(145deg,rgba(17,29,49,.82),rgba(12,19,33,.78)); border: 1px solid var(--line); border-radius: 18px; }
.about-card { transition: transform .25s ease, border-color .25s ease; }
.about-card:hover, .skill-card:hover { transform: translateY(-5px); border-color: rgba(66,215,255,.42); }
.skill-card { box-shadow: 0 12px 35px rgba(0,0,0,.12); transition: transform .25s ease, border-color .25s ease, background .25s ease; }
.skill-card i { color: var(--cyan); }
.projects-list { gap: 24px; margin-top: 25px; }
.projects-list .project-card { max-width: 1060px; padding: clamp(18px, 3vw, 32px); gap: clamp(22px, 3.5vw, 40px); background: linear-gradient(135deg,rgba(16,27,46,.92),rgba(10,17,30,.95)); border-color: var(--line); border-radius: 22px; box-shadow: 0 18px 50px rgba(0,0,0,.13); }
.projects-list .project-card:hover { border-color: rgba(66,215,255,.4); box-shadow: 0 22px 60px rgba(0,0,0,.24), 0 0 28px rgba(66,215,255,.055); }
.project-visual { background: #0a101c; border: 1px solid rgba(255,255,255,.055); }
.project-visual img { max-height: 390px; object-fit: contain; }
.project-content h3 { font-size: clamp(21px,2vw,27px); line-height: 1.35; letter-spacing: -.5px; }
.project-content p { font-size: 14px; line-height: 1.9; }
.item-type { padding: 6px 10px; border: 1px solid rgba(66,215,255,.18); border-radius: 7px; background: rgba(66,215,255,.055); font-size: 10px; letter-spacing: 1.3px; }
.project-tech { gap: 7px; }
.project-tech span { background: rgba(66,215,255,.07); border: 1px solid rgba(66,215,255,.12); color: #aeeeff; padding: 6px 10px; font-size: 11px; }
.certificate-link { margin-top: 17px; padding: 10px 13px; border-color: rgba(66,215,255,.32); border-radius: 9px; font-size: 12px; }
.achievement-visual { background: radial-gradient(circle at 50% 20%,rgba(66,215,255,.14),transparent 60%),linear-gradient(145deg,#101d32,#0b1220); border-color: var(--line); }
.project-filters { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 10px; margin: -20px auto 14px; }
.filter-btn { display: inline-flex; align-items: center; gap: 9px; border: 1px solid var(--line); background: rgba(255,255,255,.025); color: var(--muted); padding: 10px 14px; border-radius: 999px; font-size: 12px; font-weight: 600; cursor: pointer; transition: .22s ease; }
.filter-btn i { color: var(--subtle); font-size: 11px; }
.filter-btn span { color: var(--cyan); font-size: 10px; }
.filter-btn:hover, .filter-btn.active { color: #04111a; background: var(--cyan); border-color: var(--cyan); }
.filter-btn:hover i, .filter-btn.active i, .filter-btn.active span { color: #04111a; }
.filter-status { min-height: 20px; margin: 0 auto 20px; text-align: center; color: var(--subtle); font-size: 11px; }
.project-card[hidden] { display: none !important; }
.contact { padding: 100px 0; }
.contact-item { background: linear-gradient(135deg,rgba(16,27,46,.9),rgba(10,17,30,.95)); border: 1px solid var(--line); border-radius: 16px; transition: .25s ease; }
.contact-item:hover { border-color: rgba(66,215,255,.45); transform: translateY(-4px); }
.contact-item > i:first-child { color: var(--cyan); }
.footer { background: rgba(4,7,13,.72); border-top: 1px solid var(--line); }
#scrollTop { background: var(--cyan); }
@media (max-width: 850px) {
  .hero::before { width: 220px; height: 220px; right: 2%; top: 34%; }
  .hero-highlights { justify-content: center; }
  .hero-content h1 { letter-spacing: -1.5px; }
}
@media (max-width: 760px) {
  .about, .skills, .projects { padding-top: 78px; padding-bottom: 78px; }
  .projects-list .project-card { padding: 18px; }
  .project-visual img { max-height: 320px; }
  .project-filters { margin-top: -10px; }
}
@media (max-width: 480px) {
  .logo, .footer-logo { font-size: 18px; }
  .hero { padding-top: 115px; }
  .hero-highlights { gap: 7px; }
  .hero-highlights span { padding: 8px 9px; font-size: 11px; }
  .filter-btn { padding: 9px 11px; font-size: 11px; }
  .projects-list .project-card { border-radius: 16px; }
}

/* Recruiter-focused portfolio improvements */
.hero-proof-points { display:flex; flex-wrap:wrap; gap:10px 18px; margin-top:18px; color:var(--subtle); font-size:12px; }
.hero-proof-points span { display:inline-flex; align-items:center; gap:7px; }
.hero-proof-points i { color:var(--cyan); }
.project-tools { max-width:760px; margin:0 auto 20px; }
.project-search { display:flex; align-items:center; gap:12px; width:100%; padding:0 16px; border:1px solid var(--line); border-radius:13px; background:rgba(255,255,255,.03); color:var(--cyan); transition:border-color .2s ease,box-shadow .2s ease; }
.project-search:focus-within { border-color:rgba(66,215,255,.6); box-shadow:0 0 0 4px rgba(66,215,255,.07); }
.project-search input { width:100%; min-width:0; padding:15px 0; border:0; outline:0; background:transparent; color:var(--text); font:inherit; font-size:13px; }
.project-search input::placeholder { color:var(--subtle); }
.project-tools .filter-status { margin:12px auto 0; }
.case-study { margin-top:18px; border:1px solid rgba(66,215,255,.19); border-radius:12px; background:rgba(66,215,255,.035); overflow:hidden; }
.case-study summary { display:flex; align-items:center; gap:9px; padding:13px 15px; color:#b9f1ff; font-size:12px; font-weight:600; cursor:pointer; list-style:none; }
.case-study summary::-webkit-details-marker { display:none; }
.case-study summary::after { content:'+'; margin-left:auto; color:var(--cyan); font-size:20px; font-weight:400; }
.case-study[open] summary::after { content:'−'; }
.case-study summary i { color:var(--cyan); }
.case-study-body { padding:0 16px 16px; border-top:1px solid rgba(66,215,255,.11); }
.case-study-body h4 { margin:16px 0 5px; color:var(--text); font-size:12px; letter-spacing:.2px; }
.case-study-body p,.case-study-body li { color:var(--muted); font-size:12px; line-height:1.8; }
.case-study-body p { margin:0; }
.case-study-body ol { margin:7px 0 0; padding-left:19px; }
.case-study-body li { padding-left:3px; margin:3px 0; }
.evidence-note { display:flex; align-items:flex-start; gap:8px; color:var(--subtle)!important; font-size:11px!important; }
.evidence-note i { color:var(--cyan); margin-top:4px; }
@media(max-width:600px) {
  .hero-proof-points { justify-content:center; font-size:11px; }
  .project-search input { font-size:12px; }
  .case-study-body { padding:0 13px 14px; }
}
