* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #04070d;
  --bg-soft: #09111f;
  --card: rgba(24, 8, 10, 0.72);
  --card-2: rgba(14, 25, 43, 0.88);
  --border: rgba(148, 163, 184, 0.18);
  --border-strong: rgba(125, 211, 252, 0.25);
  --text: #eff6ff;
  --muted: #d6deef;
  --gold: #ffd36a;
  --blue: #7dd3fc;
  --violet: #a78bfa;
  --cyan: #22d3ee;
  --glow1: rgba(125, 211, 252, 0.16);
  --glow2: rgba(168, 85, 247, 0.18);
  --glow3: rgba(34, 211, 238, 0.12);
  --shadow: 0 18px 45px rgba(4, 7, 13, 0.45);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  color: var(--text);
  /* FIXED: Uses variables so it switches automatically in light mode */
  background:
    radial-gradient(circle at top left, var(--glow1), transparent 20%),
    radial-gradient(circle at top right, var(--glow2), transparent 22%),
    radial-gradient(circle at center, var(--glow3), transparent 18%),
    linear-gradient(135deg, var(--bg) 0%, var(--bg-soft) 45%, var(--bg) 100%);
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before,
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -2;
}

body::before {
  background:
    radial-gradient(circle at 12% 18%, rgba(125,211,252,0.10), transparent 18%),
    radial-gradient(circle at 88% 10%, rgba(192,132,252,0.12), transparent 18%),
    radial-gradient(circle at 50% 10%, rgba(245,185,66,0.08), transparent 15%),
    radial-gradient(circle at 50% 100%, rgba(34,211,238,0.10), transparent 18%);
}

body::after {
  z-index: -1;
  background-image:
    linear-gradient(rgba(148,163,184,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148,163,184,0.04) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.25), rgba(0,0,0,0.85));
}

body.light-mode {
  --bg: #edf4ff;
  --bg-soft: #f7faff;
  --card: rgba(255,255,255,0.82);
  --card-2: rgba(248,250,252,0.96);
  --border: rgba(15,23,42,0.12);
  --border-strong: rgba(37,99,235,0.18);
  --text: #0f172a;
  --muted: #334155;
  --gold: #b77d16;
  --blue: #2563eb;
  --violet: #7c3aed;
  --cyan: #0891b2;
  --glow1: rgba(125,211,252,0.18);
  --glow2: rgba(192,132,252,0.16);
  --glow3: rgba(125,211,252,0.10);
  --shadow: 0 18px 45px rgba(15,23,42,0.10);
}

body.light-mode::before {
  background:
    radial-gradient(circle at 12% 18%, rgba(125,211,252,0.18), transparent 18%),
    radial-gradient(circle at 88% 10%, rgba(192,132,252,0.16), transparent 18%),
    radial-gradient(circle at 50% 10%, rgba(245,185,66,0.10), transparent 15%);
}

body.light-mode::after {
  background-image:
    linear-gradient(rgba(148,163,184,0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148,163,184,0.07) 1px, transparent 1px);
}

::selection {
  background: rgba(125,211,252,0.18);
  color: var(--text);
}

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: rgba(4,7,13,0.85); }
::-webkit-scrollbar-thumb { background: linear-gradient(180deg, rgba(125,211,252,0.4), rgba(168,85,247,0.55)); border-radius: 999px; border: 2px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background: linear-gradient(180deg, rgba(125,211,252,0.6), rgba(168,85,247,0.72)); }

.cursor-glow {
  position: fixed;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(125,211,252,0.10), rgba(168,85,247,0.06) 35%, transparent 54%);
  filter: blur(8px);
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 0;
}

.header {
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: min(92%, 1200px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: linear-gradient(135deg, rgba(8,13,24,0.80), rgba(10,18,30,0.65));
  box-shadow: 0 18px 40px rgba(10,14,24,0.35), inset 0 1px 0 rgba(255,255,255,0.04);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
}

body.light-mode .header {
  background: linear-gradient(135deg, rgba(255,255,255,0.92), rgba(248,250,252,0.92));
  box-shadow: 0 18px 40px rgba(15,23,42,0.12), inset 0 1px 0 rgba(255,255,255,0.8);
}

.logo {
  font-size: 1.9rem;
  font-weight: 800;
  font-family: 'Cormorant Garamond', serif;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: transparent;
  background: linear-gradient(135deg, var(--gold), #fff6d3 45%, var(--blue) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  text-shadow: 0 0 18px rgba(245,185,66,0.12);
}

.navbar {
  display: flex;
  gap: 8px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(10,15,24,0.35);
  border: 1px solid rgba(148,163,184,0.08);
}

body.light-mode .navbar {
  background: rgba(255,255,255,0.75);
}

.navbar a {
  position: relative;
  text-decoration: none;
  color: var(--text);
  padding: 10px 14px;
  border-radius: 999px;
  font-size: .92rem;
  font-weight: 600;
  letter-spacing: .02em;
  transition: all .25s ease;
}

.navbar a::after {
  content: '';
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 6px;
  height: 2px;
  border-radius: 999px;
  transform: scaleX(0);
  transform-origin: left;
  background: linear-gradient(90deg, var(--gold), var(--cyan));
  transition: transform .25s ease;
}

.navbar a:hover,
.navbar a.active {
  color: var(--gold);
  background: linear-gradient(135deg, rgba(125,211,252,0.08), rgba(168,85,247,0.10));
  box-shadow: inset 0 0 0 1px rgba(125,211,252,0.12);
}

.navbar a:hover::after,
.navbar a.active::after { transform: scaleX(1); }

.theme-btn {
  width: 46px;
  height: 46px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(14,23,42,0.95), rgba(8,13,24,0.92));
  cursor: pointer;
  border: 1px solid var(--border);
  color: var(--text);
  box-shadow: var(--shadow);
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}

/* FIXED: Theme Button for Light Mode */
body.light-mode .theme-btn {
  background: linear-gradient(135deg, #ffffff, #f8fafc);
  color: var(--gold);
  border-color: var(--border-strong);
}

.theme-btn:hover {
  transform: translateY(-2px) scale(1.03);
  border-color: var(--gold);
  box-shadow: 0 18px 32px rgba(245,185,66,0.12), 0 0 0 1px rgba(245,185,66,0.10) inset;
}

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 140px 10% 100px;
  gap: 80px;
}

.hero-content { max-width: 640px; }

.tag {
  display: inline-block;
  font-size: .80rem;
  letter-spacing: 2px;
  color: var(--gold);
  margin-bottom: 18px;
  text-transform: uppercase;
}

.hero-content .tag,
.section-heading span,
.section-tag { position: relative; }

.hero-content .tag::after,
.section-heading span::after,
.section-tag::after {
  content: '';
  display: block;
  width: 72px;
  height: 2px;
  margin-top: 8px;
  background: linear-gradient(90deg, transparent, var(--gold), var(--cyan), transparent);
  box-shadow: 0 0 10px rgba(125,211,252,0.25);
}

.hero h1 {
  font-size: clamp(3rem, 8vw, 5.2rem);
  font-family: 'Cormorant Garamond', serif;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 14px;
  letter-spacing: -.04em;
  color: transparent;
  background: linear-gradient(135deg, #ffffff 0%, #eff6ff 25%, var(--blue) 55%, var(--violet) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  text-shadow: 0 18px 30px rgba(125,211,252,0.08);
}

/* FIXED: Headings in Light Mode */
body.light-mode .hero h1,
body.light-mode .section-heading h2,
body.light-mode .about h2,
body.light-mode footer h3 {
  background: linear-gradient(135deg, #0f172a 0%, var(--blue) 45%, var(--violet) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: none;
}

.role-marquee {
  overflow: hidden;
  position: relative;
  margin-bottom: 24px;
  max-width: 100%;
}

.role-marquee::before,
.role-marquee::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 46px;
  z-index: 1;
  pointer-events: none;
}

.role-marquee::before { left: 0; background: linear-gradient(90deg, var(--bg), transparent); }
.role-marquee::after { right: 0; background: linear-gradient(270deg, var(--bg), transparent); }

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

.role-track span {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  padding: 9px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255,255,255,0.05), rgba(125,211,252,0.03));
  color: var(--blue);
  font-size: .98rem;
  font-weight: 700;
  letter-spacing: .02em;
  box-shadow: 0 8px 20px rgba(0,0,0,0.18), inset 0 1px 0 rgba(255,255,255,0.04);
}

/* FIXED: Role Track in Light Mode */
body.light-mode .role-track span {
  background: linear-gradient(135deg, rgba(0,0,0,0.02), rgba(37,99,235,0.05));
  box-shadow: 0 8px 20px rgba(15,23,42,0.05), inset 0 1px 0 rgba(255,255,255,0.8);
}

.role-marquee:hover .role-track { animation-play-state: paused; }
@keyframes scroll-role-list { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.hero p {
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 24px;
  font-size: 1rem;
}

.location {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 30px;
  color: var(--muted);
}

.hero-buttons { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 30px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 24px;
  border-radius: 14px;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: .02em;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease, background .25s ease;
  box-shadow: 0 14px 30px rgba(0,0,0,0.18);
}

.primary {
  background: linear-gradient(135deg, rgba(255,255,255,0.95), rgba(221,234,255,0.95));
  color: #06111d;
}

/* FIXED: Primary Buttons in Light Mode */
body.light-mode .primary {
  background: linear-gradient(135deg, var(--blue), var(--violet));
  color: #ffffff;
}

.secondary {
  border: 1px solid var(--border);
  color: var(--text);
  background: linear-gradient(135deg, rgba(255,255,255,0.04), rgba(125,211,252,0.03));
}

/* FIXED: Secondary Buttons in Light Mode */
body.light-mode .secondary {
  background: linear-gradient(135deg, rgba(0,0,0,0.04), rgba(37,99,235,0.05));
  color: var(--text);
}

.gold {
  background: linear-gradient(135deg, var(--gold), #fff0b2 55%, #ffde7b 100%);
  color: #0b1220;
  box-shadow: 0 18px 36px rgba(245,185,66,0.18);
}

.btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 36px rgba(125,211,252,0.14), 0 0 0 1px rgba(125,211,252,0.14) inset;
}

.social-links { display: flex; gap: 12px; flex-wrap: wrap; }

.social-links a,
.footer-social a {
  width: 48px;
  height: 48px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: linear-gradient(145deg, rgba(255,255,255,0.06), rgba(255,255,255,0.03));
  color: var(--text);
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: transform .25s ease, color .25s ease, border-color .25s ease, box-shadow .25s ease;
}

/* FIXED: Social Links in Light Mode */
body.light-mode .social-links a,
body.light-mode .footer-social a {
  background: linear-gradient(145deg, rgba(0,0,0,0.04), rgba(0,0,0,0.01));
}

.social-links a:hover,
.footer-social a:hover {
  color: var(--gold);
  border-color: var(--gold);
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 18px 32px rgba(125,211,252,0.10), 0 0 0 1px rgba(125,211,252,0.08) inset;
}

.hero-image img {
  width: 420px;
  border-radius: 30px;
  border: 1px solid var(--border);
  box-shadow: 0 18px 45px rgba(0,0,0,0.38), 0 0 0 1px rgba(255,255,255,0.04) inset;
  transition: transform .35s ease, box-shadow .35s ease;
}

.hero-image img:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 30px 55px rgba(125,211,252,0.08), 0 0 0 1px rgba(125,211,252,0.08) inset;
}

section {
  padding: 110px 10%;
  position: relative;
}

section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(245,185,66,0.03), transparent 25%, rgba(125,211,252,0.03) 75%, transparent);
  opacity: .9;
  pointer-events: none;
}

.section-heading { margin-bottom: 38px; max-width: 940px; }
.section-heading span { color: var(--gold); letter-spacing: 2px; font-size: .82rem; text-transform: uppercase; }

.section-heading h2 {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-top: 16px;
  font-weight: 800;
  line-height: 1.08;
  color: transparent;
  background: linear-gradient(135deg, #ffffff 0%, var(--blue) 45%, var(--violet) 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

.section-heading p { color: var(--muted); line-height: 1.75; margin-top: 14px; font-size: 1rem; }

.glass-card,
.timeline-card,
.project-card,
.cert-card,
.contact-card,
.overview-card,
.skill-card,
.stat-card,
.solution-card,
.contact-copy,
.education-card {
  background: linear-gradient(145deg, rgba(255,255,255,0.06), rgba(255,255,255,0.03));
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
}

/* FIXED: Glass Cards in Light Mode */
body.light-mode .glass-card,
body.light-mode .timeline-card,
body.light-mode .project-card,
body.light-mode .cert-card,
body.light-mode .contact-card,
body.light-mode .overview-card,
body.light-mode .skill-card,
body.light-mode .stat-card,
body.light-mode .solution-card,
body.light-mode .contact-copy,
body.light-mode .education-card,
body.light-mode .why-card {
  background: linear-gradient(145deg, rgba(255,255,255,0.96), rgba(248,250,252,0.96));
  box-shadow: 0 18px 40px rgba(15,23,42,0.10);
}

.overview { padding-top: 40px; }
.overview-grid, .solutions-grid, .projects-grid, .cert-grid { display: grid; gap: 22px; }
.overview-grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.solutions-grid { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.projects-grid { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.cert-grid { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }

.overview-card, .solution-card, .skill-card, .stat-card, .project-card, .cert-card, .timeline-card, .contact-card, .contact-copy, .education-card, .why-card {
  position: relative;
  overflow: hidden;
}

.overview-card::before,
.solution-card::before,
.skill-card::before,
.project-card::before,
.cert-card::before,
.contact-card::before,
.timeline-card::before,
.education-card::before,
.why-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(125,211,252,0.18), rgba(168,85,247,0.16), rgba(245,185,66,0.12));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity .25s ease;
}

.overview-card:hover::before,
.solution-card:hover::before,
.skill-card:hover::before,
.project-card:hover::before,
.cert-card:hover::before,
.contact-card:hover::before,
.timeline-card:hover::before,
.education-card:hover::before,
.why-card:hover::before { opacity: 1; }

.overview-card { padding: 24px; transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease; }
.overview-card:hover, .solution-card:hover, .skill-card:hover, .project-card:hover, .cert-card:hover, .timeline-card:hover, .contact-card:hover, .education-card:hover, .why-card:hover { transform: translateY(-8px); border-color: var(--gold); box-shadow: 0 26px 50px rgba(125,211,252,0.08), 0 18px 35px rgba(17,24,39,0.35); }
 
.overview-card h3, .solution-card h3, .project-content h3, .contact-card h3, .education-card h3, .timeline-card h3 { font-size: 1.05rem; margin-bottom: 10px; color: var(--text); }
.overview-card p, .solution-card p, .project-content p, .timeline-card li, .education-card p, .education-card li, .contact-card p, .contact-copy p { color: var(--muted); line-height: 1.75; }

.solution-card { padding: 24px; transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease; }
.solution-card h3 { font-size: 1.08rem; }

.about { display: flex; align-items: center; justify-content: space-between; gap: 80px; }
.about h2 { font-size: clamp(2.2rem, 6vw, 4rem); font-family: 'Cormorant Garamond', serif; margin-bottom: 22px; letter-spacing: -.02em; color: transparent; background: linear-gradient(135deg, #fff 0%, var(--blue) 50%, var(--violet) 100%); -webkit-background-clip: text; background-clip: text; }
.about h2 span { color: var(--blue); }
.about p { line-height: 1.8; color: var(--muted); margin-bottom: 18px; }
.about-image img { width: 380px; border-radius: 28px; border: 1px solid var(--border); box-shadow: var(--shadow); }

.timeline { display: flex; flex-direction: column; gap: 22px; }
.timeline-card { padding: 28px; border-radius: 22px; transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease; }
.timeline-card h4 { color: var(--gold); margin-bottom: 8px; font-weight: 600; }
.timeline-card ul { padding-left: 18px; margin-top: 14px; }
.timeline-card li { margin-bottom: 8px; }

.education-timeline { position: relative; display: flex; flex-direction: column; gap: 18px; margin-top: 10px; }
.education-timeline::before { content: ''; position: absolute; left: 18px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(180deg, rgba(245,185,66,0.95), rgba(125,211,252,0.2), rgba(192,132,252,0.25)); border-radius: 999px; }
.education-item { position: relative; display: grid; grid-template-columns: 44px 1fr; gap: 18px; align-items: flex-start; }
.education-dot { position: relative; width: 18px; height: 18px; margin-top: 18px; border-radius: 50%; background: linear-gradient(135deg, var(--gold), #fff6d3); border: 3px solid rgba(255,255,255,0.18); box-shadow: 0 0 0 6px rgba(245,185,66,0.08), 0 0 18px rgba(245,185,66,0.12); z-index: 1; }
.education-card { padding: 24px; border-radius: 22px; transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease; }
.education-card:hover { transform: translateY(-6px); }
.edu-year { display: inline-block; font-size: .82rem; letter-spacing: 2px; text-transform: uppercase; color: var(--gold); margin-bottom: 8px; }
.education-card h4 { color: var(--blue); margin-bottom: 8px; font-weight: 600; }
.education-card ul { padding-left: 18px; margin-top: 10px; }

.skill-card.hidden, .overview-card.hidden, .reveal-card.hidden { opacity: 0; transform: translateY(24px); }
.skill-card.show, .overview-card.show, .reveal-card.show { opacity: 1; transform: translateY(0); transition: opacity .6s ease, transform .6s ease; }
.skill-card.is-hidden { display: none; }

.section-heading .skills-intro { max-width: 780px; color: var(--muted); line-height: 1.7; font-size: 1rem; margin-top: 14px; }
.skills-filter { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 26px; }
.filter-btn {
  background: linear-gradient(135deg, rgba(255,255,255,0.04), rgba(125,211,252,0.03));
  border: 1px solid var(--border);
  color: var(--text);
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 700;
  font-size: .92rem;
  cursor: pointer;
  transition: all .25s ease;
  box-shadow: 0 10px 20px rgba(0,0,0,0.14);
}
.filter-btn:hover, .filter-btn.active { background: linear-gradient(135deg, rgba(245,185,66,0.18), rgba(79,124,255,0.12)); border-color: var(--gold); color: var(--gold); transform: translateY(-1px); box-shadow: 0 14px 28px rgba(125,211,252,0.12); }
.skills-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 18px; }
.skill-card { padding: 18px; border-radius: 18px; text-align: left; transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease; }
.skill-icon { width: 56px; height: 56px; display: flex; align-items: center; justify-content: center; margin-bottom: 10px; border-radius: 14px; background: linear-gradient(135deg, rgba(245,185,66,0.14), rgba(125,211,252,0.08)); border: 1px solid rgba(245,185,66,0.20); font-size: 1.15rem; color: var(--gold); box-shadow: inset 0 1px 0 rgba(255,255,255,0.04); }
.skill-icon i { font-size: 1.08rem; line-height: 1; }
.skill-card h3 { font-size: 1rem; margin-bottom: 6px; color: var(--text); }
.skill-card p { font-size: .92rem; line-height: 1.5; color: var(--muted); }

.project-card { border-radius: 22px; transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease; }
.project-card::after { content: ''; position: absolute; inset: auto 0 0 0; height: 4px; background: linear-gradient(90deg, var(--gold), var(--cyan), var(--violet)); transform: scaleX(0); transform-origin: left; transition: transform .35s ease; }
.project-card:hover::after { transform: scaleX(1); }
.project-card img { width: 100%; display: block; aspect-ratio: 16/10; object-fit: cover; }
.project-content { padding: 24px; }
.project-content p { margin-bottom: 10px; }
.project-highlights { padding-left: 18px; margin: 0; color: var(--muted); }
.project-highlights li { margin-bottom: 8px; line-height: 1.55; }

.cert-link { display: block; text-decoration: none; color: inherit; }
.cert-card { display: flex; flex-direction: column; min-height: 100%; border-radius: 24px; overflow: hidden; background: linear-gradient(145deg, rgba(255,255,255,0.07), rgba(255,255,255,0.03)); border: 1px solid var(--border); box-shadow: var(--shadow); transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease; }
.cert-link:hover .cert-card { transform: translateY(-8px) scale(1.02); border-color: var(--gold); box-shadow: 0 24px 50px rgba(125,211,252,0.12), 0 18px 35px rgba(0,0,0,0.35); }
.cert-card img { width: 100%; height: 250px; object-fit: cover; display: block; }
.cert-body { display: flex; flex-direction: column; gap: 6px; padding: 18px; }
.cert-badge { display: inline-flex; align-items: center; width: fit-content; padding: 6px 10px; border-radius: 999px; border: 1px solid rgba(245,185,66,0.18); background: linear-gradient(135deg, rgba(245,185,66,0.14), rgba(125,211,252,0.08)); color: var(--gold); font-size: .72rem; text-transform: uppercase; letter-spacing: 2px; }
.cert-card h3 { padding: 0; color: var(--text); line-height: 1.35; }
.cert-caption { margin: 0; color: var(--muted); font-size: .92rem; line-height: 1.5; }

.contact-layout { display: grid; grid-template-columns: 1.1fr 1fr; gap: 30px; align-items: stretch; }
.contact-copy { padding: 28px; }
.contact-tag { text-transform: uppercase; letter-spacing: 2px; font-size: .82rem; color: var(--gold); margin-bottom: 10px; }
.contact-copy h3 { font-size: 1.45rem; line-height: 1.35; margin-bottom: 12px; color: var(--text); }
.contact-btn { display: inline-flex; align-items: center; justify-content: center; }
.contact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.contact-card { padding: 24px; transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease; }
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; }
.why-card { padding: 24px; border-radius: 24px; transition: transform .35s ease, border-color .35s ease, box-shadow .3s ease; }
.contact-icon { font-size: 1.15rem; color: var(--gold); margin-bottom: 10px; display: inline-block; }
.contact-card a { color: var(--muted); text-decoration: none; line-height: 1.6; transition: color .25s ease; }
.contact-card a:hover { color: var(--gold); }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; padding: 16px 10% 0; }
.stat-card { background: linear-gradient(145deg, rgba(255,255,255,0.06), rgba(255,255,255,0.03)); border: 1px solid var(--border); padding: 24px; border-radius: 22px; text-align: center; box-shadow: var(--shadow); transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease; }
.stat-card:hover { transform: translateY(-6px); border-color: var(--gold); box-shadow: 0 18px 35px rgba(125,211,252,0.10); }
.stat-card h3 { font-size: 2rem; color: var(--gold); margin-bottom: 6px; font-weight: 800; }
.stat-card p { color: var(--muted); } 
.typing-text { color: var(--blue); }

footer { padding: 70px 10% 80px; text-align: center; border-top: 1px solid var(--border); background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.015) 45%, transparent), radial-gradient(circle at top, rgba(125,211,252,0.06), transparent 30%); }
footer h3 { font-size: 1.85rem; margin-bottom: 10px; color: transparent; background: linear-gradient(135deg, #fff 0%, var(--blue) 50%, var(--violet) 100%); -webkit-background-clip: text; background-clip: text; }
footer p { color: var(--muted); }
.footer-social { display: flex; justify-content: center; gap: 14px; margin-top: 24px; }
.footer-social a { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--border); background: linear-gradient(145deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02)); color: var(--text); box-shadow: var(--shadow); transition: transform .25s ease, border-color .25s ease, color .25s ease; }
.footer-social a:hover { transform: translateY(-4px) scale(1.03); border-color: var(--gold); color: var(--gold); }

/* =========================================================
   MOBILE RESPONSIVE CSS
========================================================= */
@media (max-width: 1080px) {
  .hero { gap: 56px; }
  .hero-image img { width: 360px; }
}

@media (max-width: 980px) {
  .hero, .about {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }
  .hero-content { order: 2; max-width: 100%; display: flex; flex-direction: column; align-items: center; }
  .hero-image { order: 1; }
  
  .hero-buttons, .social-links, .location { justify-content: center; width: 100%; }
  .hero-image img, .about-image img { width: 280px; max-width: 85vw; }
  
  .contact-layout, .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  html, body { overflow-x: hidden; }
  
  .header {
    position: fixed;
    top: 12px;
    width: 96%;
    padding: 10px 16px;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    border-radius: 24px;
  }
  
  .logo { font-size: 1.4rem; }
  
  .navbar {
    display: flex;
    flex-wrap: wrap; 
    justify-content: center;
    gap: 8px 14px;
    overflow-x: visible; 
    background: transparent;
    border: none;
    padding: 0;
    max-width: 65%; 
  }
  
  .navbar a {
    font-size: 0.75rem;
    padding: 4px 6px;
    white-space: nowrap;
  }
  .navbar a::after { display: none; }
  
  .theme-btn {
    width: 38px; height: 38px; min-width: 38px;
  }
  
  .hero {
    padding: 150px 20px 50px;
    gap: 28px;
  }
  
  .hero-image img {
    width: 210px; 
    border-radius: 24px;
  }
  
  .tag {
    font-size: 0.65rem;
    letter-spacing: 1px;
    line-height: 1.5;
    margin-bottom: 12px;
  }
  .hero-content .tag::after { display: none; } 
  
  .hero h1 {
    font-size: 2.2rem;
    line-height: 1.1;
    margin-bottom: 16px;
  }
  
  .hero p {
    font-size: 0.9rem;
    line-height: 1.6;
    padding: 0 10px;
  }
  
  .location { margin-bottom: 24px; }
  
  .hero-buttons {
    flex-direction: column;
    gap: 14px;
    width: 100%;
    padding: 0 10px;
  }
  
  .btn {
    width: 100%;
    padding: 16px;
    font-size: 0.95rem;
    border-radius: 12px;
  }
  
  section { padding: 60px 15px; }
  .section-heading h2 { font-size: 1.9rem; }
  .about-image img { width: 220px; }
  
  .stats, .skills-grid, .projects-grid, .cert-grid, .solutions-grid, .overview-grid {
    grid-template-columns: 1fr;
  }
  
  .stats { gap: 15px; padding: 20px 10px; }
  .stat-card { width: 100%; }
  .project-card img { height: 200px; }
}

@media (max-width: 480px) {
  .header { width: 98%; padding: 10px 12px; }
  .navbar { max-width: 58%; gap: 6px 10px; }
  .navbar a { font-size: 0.7rem; padding: 2px 4px; }
  
  .hero-image img { width: 190px; }
  .hero h1 { font-size: 1.9rem; }
  .hero { padding-top: 140px; }
}