@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&display=swap');

:root {
  --bg: #0f1629;
  --panel: rgba(22, 31, 55, 0.82);
  --panel-strong: #1c2746;
  --text: #dfe3ea;
  --muted: #96a3b8;
  --accent: #63b3ff;
  --accent-2: #8f7bff;
  --shadow: 0 10px 35px rgba(0,0,0,0.35);
  --glass-border: 1px solid rgba(255,255,255,0.07);
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --max: 1050px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  background: radial-gradient(120% 120% at 10% 10%, rgba(99,179,255,0.18), transparent 45%),
              radial-gradient(90% 90% at 85% 15%, rgba(143,123,255,0.16), transparent 45%),
              linear-gradient(135deg, #0d1424 0%, #121c31 40%, #0f1422 100%);
  color: var(--text);
  font-family: "DM Sans", system-ui, -apple-system, sans-serif;
  font-weight: 400;
  scroll-behavior: smooth;
}

a { color: var(--accent); text-decoration: none; }
a:hover, a:focus { color: #b4cbff; }

.site-header {
  width: 100%;
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(10, 14, 25, 0.82);
  backdrop-filter: blur(12px);
  border-bottom: var(--glass-border);
}

.nav-container {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 26px;
  gap: 14px;
}

.logo {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.04em;
}

.main-nav {
  display: flex;
  gap: 18px;
}

.main-nav a {
  color: var(--text);
  font-size: 1rem;
  font-weight: 600;
  padding: 6px 4px;
  position: relative;
  transition: color 0.15s ease;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -4px;
  width: 0%;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transition: width 0.18s ease;
  border-radius: 999px;
}

.main-nav a:hover,
.main-nav a:focus {
  color: #b4cbff;
}

.main-nav a:hover::after,
.main-nav a:focus::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  font-size: 1.6rem;
  background: none;
  border: none;
  color: var(--text);
  cursor: pointer;
}

.hero-section {
  position: relative;
  padding: 70px 0 40px 0;
  overflow: hidden;
}

.hero-bg-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(65% 65% at 30% 30%, rgba(99,179,255,0.24), transparent 55%),
              radial-gradient(55% 55% at 80% 25%, rgba(143,123,255,0.22), transparent 60%);
  filter: blur(50px);
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  margin: auto;
  display: flex;
  align-items: center;
  gap: 60px;
  padding: 0 26px;
}
/* Hero avatar — best default: crisp circle + controlled crop */
.hero-avatar{
  flex-shrink: 0;
  width: 190px;
  height: 190px;
  border-radius: 50%;
  overflow: hidden;
  background: #111726;
  border: 3px solid rgba(255,255,255,0.12);
  box-shadow:
    0 16px 50px rgba(0,0,0,0.45),
    0 0 0 8px rgba(99,179,255,0.08);
  position: relative;
}

/* subtle glow ring */
.hero-avatar::after{
  content: "";
  position: absolute;
  inset: -12px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(99,179,255,0.22), transparent 60%);
  filter: blur(10px);
  z-index: 0;
  pointer-events: none;
}

.hero-avatar img{
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;          /* looks most premium */
  object-position: 50% 20%;   /* lifts crop to focus face */
  transform: scale(1.08);     /* slight zoom = less “empty circle” */
  display: block;
}

/* Hover effect */
.hero-avatar:hover{
  transform: translateY(-3px);
  transition: transform 0.25s ease;
}
.hero-text { flex: 1; }
.hero-text h1 { font-size: 2.6rem; color: #fff; margin: 0 0 12px; font-weight: 800; letter-spacing: 0.01em; }
.subtitle { font-size: 1.08rem; color: var(--muted); margin: 0 0 22px; line-height: 1.6; max-width: 700px; }

.hero-actions {
  display: flex;
  gap: 14px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.btn {
  padding: 11px 26px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.18s ease;
  box-shadow: 0 5px 16px rgba(0,0,0,0.25);
}

.btn.primary {
  background: linear-gradient(115deg, var(--accent) 0%, var(--accent-2) 100%);
  color: #0b1224;
  box-shadow: 0 10px 24px rgba(99,179,255,0.35);
}
.btn.primary:hover { transform: translateY(-1px); box-shadow: 0 14px 32px rgba(143,123,255,0.38); }

.btn.ghost {
  background: transparent;
  color: var(--text);
  border-color: rgba(255,255,255,0.18);
  backdrop-filter: blur(6px);
}
.btn.ghost:hover { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.25); }

.btn.sm { padding: 8px 16px; font-size: 0.9rem; }

.hero-social {
  margin-top: 6px;
  display: flex;
  gap: 16px;
}
/* Restore glow + hover animation for social icons */
.hero-social img {
  width: 30px;
  height: 30px;
  object-fit: contain;
  filter: grayscale(1) brightness(1.8);
  transition: filter 0.18s ease, transform 0.18s ease;
}

.hero-social a:hover img {
  filter: grayscale(0) brightness(2.2) drop-shadow(0 0 10px rgba(99,179,255,0.75));
  transform: translateY(-2px) scale(1.06);
}
.section {
  max-width: var(--max);
  margin: 0 auto 48px auto;
  padding: 28px 26px;
  background: var(--panel);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border: var(--glass-border);
  backdrop-filter: blur(10px);
}

.section h2 {
  color: var(--accent);
  font-size: 1.6rem;
  margin: 0 0 16px;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.section h3 {
  color: #b4cbff;
  font-size: 1.2rem;
  margin: 6px 0 14px;
  font-weight: 700;
}

.about-section ul {
  padding-left: 18px;
  margin: 10px 0 14px;
  color: var(--text);
  line-height: 1.55;
}
.about-copy p { color: var(--text); line-height: 1.6; }

.about-actions,
.skills-cards,
.cert-cards,
.work-cards,
.contact-cards,
.offscreen-grid {
  display: flex;
  gap: 26px 20px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.about-actions { margin-top: 10px; }

.skill-card {
  flex: 1 1 260px;
  background: rgba(28, 39, 70, 0.85);
  border-radius: var(--radius-md);
  padding: 18px 16px;
  border: var(--glass-border);
  box-shadow: 0 10px 26px rgba(0,0,0,0.25);
}

.skill-card h4 {
  color: var(--accent);
  font-size: 1.05rem;
  margin: 4px 0 10px;
}

.skill-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip-list li,
.skill-card li {
  font-size: 0.95rem;
  color: #0c1220;
  background: linear-gradient(120deg, rgba(99,179,255,0.92), rgba(143,123,255,0.9));
  padding: 7px 12px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  box-shadow: 0 6px 16px rgba(99,179,255,0.25);
  transition: all 0.2s ease;
}
.chip-list li:hover {
  box-shadow: 0 10px 24px rgba(99,179,255,0.35), 0 0 0 1px rgba(143,123,255,0.25);
  transform: translateY(-1px);
}

.skill-note {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.cert-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.cert-card{
  flex: 0 0 360px;     /* increase card width */
  min-width: 360px;
  padding: 16px 14px;
  border-radius: 18px;
}
.cert-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(99,179,255,0.22);
}
.cert-card img{
  width: 100%;
  height: 210px;       /* bigger preview */
  object-fit: cover;   /* change to 'contain' if you don't want cropping */
  border-radius: 14px;
  margin-bottom: 10px;
}
.cert-card h4{
  font-size: 1.08rem;
  line-height: 1.25;
}

.cert-card p{
  font-size: 0.98rem;
}
.cert-card a {
  color: var(--accent);
  font-weight: 700;
  text-decoration: underline;
}

.cert-marquee {
  overflow: hidden;
  position: relative;
  padding: 8px 4px 2px;
}

.cert-track {
  display: flex;
  gap: 18px;
  width: max-content;
  animation: cert-scroll 35s linear infinite;
}

.cert-marquee:hover .cert-track {
  animation-play-state: paused;
}

@keyframes cert-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.offscreen-section .offscreen-card {
  flex: 1 1 320px;
  background: rgba(28, 39, 70, 0.88);
  border-radius: var(--radius-md);
  padding: 18px 18px;
  border: var(--glass-border);
  box-shadow: 0 12px 28px rgba(0,0,0,0.26);
}

.offscreen-section .offscreen-card h3 {
  color: var(--accent);
  margin-top: 0;
}

.work-cards { flex-direction: column; gap: 20px; }

.work-card {
  background: rgba(28, 39, 70, 0.88);
  border-radius: var(--radius-md);
  padding: 18px 18px;
  color: var(--text);
  position: relative;
  border: var(--glass-border);
  box-shadow: 0 12px 28px rgba(0,0,0,0.26);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.work-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 36px rgba(99,179,255,0.22);
}
.work-card h4 {
  color: var(--accent);
  margin: 0 0 8px;
  font-size: 1.1rem;
}
.work-card ul { margin: 8px 0 0 16px; color: var(--text); line-height: 1.45; }

.contact-cards { gap: 26px 22px; }

.contact-info {
  flex: 1 1 260px;
  background: rgba(28, 39, 70, 0.9);
  border-radius: var(--radius-md);
  padding: 20px 18px;
  border: var(--glass-border);
  box-shadow: 0 12px 26px rgba(0,0,0,0.25);
}
.contact-info h3 { margin-top: 0; color: #c6d6ff; }
.contact-info p { margin: 8px 0; color: var(--text); }

.site-footer {
  margin-top: 60px;
  padding: 28px 24px 22px;
  background: #0e1528;
  border-top: var(--glass-border);
}
.footer-content {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
}
.logo-footer {
  color: var(--accent);
  font-size: 1.15rem;
  font-weight: 800;
}
.logo-footer a { color: inherit; }
.copy { color: #7e8aa4; font-size: 0.98rem; }

.footer-social {
  display: flex;
  gap: 14px;
}
.footer-social img {
  width: 26px;
  height: 26px;
  filter: grayscale(1) brightness(1.7);
  transition: filter 0.18s ease, transform 0.18s ease;
}
.footer-social a:hover img {
  filter: grayscale(0) brightness(2.2) drop-shadow(0 0 7px rgba(99,179,255,0.55));
  transform: translateY(-2px);
}

/* Animations */
.fade-item,
.fade-another,
.fade-third,
.zoom-scroll-fade,
.fade-zoom-in-once,
.scroll-card {
  opacity: 0;
  transform: translateY(12px);
}
.fade-item.visible,
.fade-another.visible,
.fade-third.visible,
.zoom-scroll-fade.visible,
.fade-zoom-in-once.visible,
.scroll-card.visible {
  opacity: 1;
  transform: translateY(0);
  transition: all 0.5s ease;
}
.zoom-scroll-fade.visible,
.fade-zoom-in-once.visible {
  transform: scale(1);
}
.letter-fade span {
  opacity: 0;
  display: inline-block;
  transform: translateX(-14px);
  transition: all 0.28s ease;
  white-space: pre;
}
.letter-fade span.visible { opacity: 1; transform: translateX(0); }
.dud { color: rgba(255,255,255,0.4); }

/* Responsive */
@media (max-width: 1024px) {
  .hero-content { flex-direction: column; gap: 32px; text-align: center; }
  .hero-text { width: 100%; }
  .hero-actions { justify-content: center; }
  .hero-social { justify-content: center; }
  .nav-container { padding: 12px 18px; }
}

@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .main-nav {
    display: none;
    flex-direction: column;
    width: 100%;
    background: rgba(10,14,25,0.9);
    border: var(--glass-border);
    border-radius: var(--radius-md);
    padding: 10px 14px;
    margin-top: 10px;
  }
  .main-nav.show { display: flex; }
  .main-nav a { margin: 6px 0; }
}

@media (max-width: 560px) {
  .hero-avatar { width: 150px; height: 150px; }
  .hero-text h1 { font-size: 2rem; }
  .subtitle { font-size: 0.98rem; }
  .section { padding: 22px 18px; }
  .about-actions, .skills-cards, .cert-cards, .work-cards, .contact-cards, .offscreen-grid { gap: 18px; }
  .cert-card { flex: 0 0 210px; }
}
