@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;700&display=swap');

/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
  --bg-primary: #0a0505;
  --bg-secondary: #11080a;
  --bg-card: rgba(255, 255, 255, 0.025);
  --bg-card-hover: rgba(255, 255, 255, 0.05);
  --bg-glass: rgba(255, 255, 255, 0.04);

  --text-primary: #fcf5f7;
  --text-secondary: #a89498;
  --text-muted: #5e4f52;

  --cyan: #e11d48;
  --purple: #881337;
  --blue: #be123c;

  --border: rgba(255, 255, 255, 0.07);
  --border-glow: rgba(225, 29, 72, 0.18);

  --grad-text: linear-gradient(135deg, var(--cyan) 0%, var(--purple) 100%);
  --grad-glow-bg: radial-gradient(ellipse at 50% 0%, rgba(225, 29, 72, 0.09) 0%, rgba(136, 19, 55, 0.06) 40%, transparent 70%);

  --font-sans: 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --nav-h: 72px;
  --max-w: 1200px;
  --radius: 12px;
  --radius-lg: 20px;

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --fast: 0.18s var(--ease);
  --normal: 0.3s var(--ease);
  --slow: 0.5s var(--ease);
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button {
  cursor: pointer;
  background: none;
  border: none;
  font-family: inherit;
}

/* ============================================================
   UTILITIES
   ============================================================ */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
}

.text-grad {
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.mono {
  font-family: var(--font-mono);
}

.section {
  padding: 100px 0;
}

.section-sm {
  padding: 60px 0;
}

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(7, 7, 10, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: background var(--normal), box-shadow var(--normal);
}

.navbar.scrolled {
  background: rgba(7, 7, 10, 0.92);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: var(--nav-h);
}

.logo {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.logo-dot {
  width: 9px;
  height: 9px;
  background: var(--cyan);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--cyan);
  animation: pulse-dot 2.5s ease-in-out infinite;
}

@keyframes pulse-dot {

  0%,
  100% {
    box-shadow: 0 0 8px var(--cyan);
  }

  50% {
    box-shadow: 0 0 20px var(--cyan), 0 0 40px rgba(34, 211, 238, 0.3);
  }
}

.nav-links {
  display: flex;
  gap: 0.25rem;
}

.nav-link {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 0.5rem 0.85rem;
  border-radius: 6px;
  transition: color var(--fast), background var(--fast);
  position: relative;
}

.nav-link:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.nav-link.active {
  color: var(--cyan);
  background: rgba(34, 211, 238, 0.07);
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 0.5rem;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--normal);
}

.nav-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Nav */
.mobile-nav {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  background: rgba(7, 7, 10, 0.98);
  border-bottom: 1px solid var(--border);
  padding: 1rem;
  z-index: 999;
  flex-direction: column;
  gap: 0.25rem;
  backdrop-filter: blur(20px);
}

.mobile-nav.open {
  display: flex;
}

.mobile-nav .nav-link {
  padding: 0.85rem 1rem;
  border-radius: 8px;
}

/* ============================================================
   PAGE HEADER (subpages)
   ============================================================ */
.page-header {
  padding: calc(var(--nav-h) + 80px) 0 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 500px;
  background: var(--grad-glow-bg);
  pointer-events: none;
}

.page-header .page-label {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--cyan);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.page-header h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}

.page-header p {
  color: var(--text-secondary);
  font-size: 1.15rem;
  max-width: 580px;
  margin: 0 auto;
}

/* Section headers */
.section-label {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--cyan);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, var(--border-glow), transparent);
  max-width: 200px;
}

.section-title {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 0.75rem;
}

.section-desc {
  color: var(--text-secondary);
  font-size: 1.1rem;
  max-width: 560px;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 600;
  transition: transform var(--fast), box-shadow var(--fast), background var(--fast), border-color var(--fast);
  white-space: nowrap;
}

.btn-primary {
  background: var(--text-primary);
  color: var(--bg-primary);
  border: 1px solid transparent;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(240, 244, 255, 0.2);
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border);
}

.btn-outline:hover {
  background: var(--bg-glass);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.btn-cyan {
  background: rgba(34, 211, 238, 0.1);
  color: var(--cyan);
  border: 1px solid rgba(34, 211, 238, 0.25);
}

.btn-cyan:hover {
  background: rgba(34, 211, 238, 0.18);
  transform: translateY(-2px);
}

.btn svg,
.btn i {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
}

/* ============================================================
   HERO (Home only)
   ============================================================ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-h);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--grad-glow-bg);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4rem;
  align-items: center;
}

.hero-label {
  font-family: var(--font-mono);
  font-size: 1rem;
  color: var(--cyan);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.hero-label::before {
  content: '';
  width: 40px;
  height: 1px;
  background: var(--cyan);
}

.hero h1 {
  font-size: clamp(3.5rem, 6vw, 6rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.95;
  margin-bottom: 0.5rem;
}

.hero-role {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 1.75rem;
  line-height: 1.3;
}

.hero-desc {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 500px;
  margin-bottom: 2.5rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-visual {
  position: relative;
}

.profile-ring {
  width: 340px;
  height: 340px;
  border-radius: var(--radius-lg);
  padding: 2px;
  background: var(--grad-text);
  position: relative;
}

.profile-ring::after {
  content: '';
  position: absolute;
  inset: -12px;
  border-radius: calc(var(--radius-lg) + 10px);
  border: 1px solid rgba(34, 211, 238, 0.12);
  animation: rotate-ring 8s linear infinite;
}

@keyframes rotate-ring {
  to {
    transform: rotate(360deg);
  }
}

.profile-inner {
  width: 100%;
  height: 100%;
  border-radius: calc(var(--radius-lg) - 2px);
  overflow: hidden;
  background: var(--bg-secondary);
}

.profile-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.float-badge {
  position: absolute;
  background: rgba(7, 7, 10, 0.9);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.6rem 1rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--cyan);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  animation: float 3s ease-in-out infinite;
}

.float-badge:nth-child(2) {
  animation-delay: -1s;
}

.float-badge:nth-child(3) {
  animation-delay: -2s;
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

.badge-tl {
  top: 10%;
  left: -18%;
}

.badge-br {
  bottom: 18%;
  right: -20%;
  color: var(--purple);
}

.badge-bl {
  bottom: -6%;
  left: 5%;
}

/* ============================================================
   CARDS (shared)
   ============================================================ */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: transform var(--normal), border-color var(--normal), box-shadow var(--normal), background var(--normal);
}

.card:hover {
  transform: translateY(-6px);
  border-color: var(--border-glow);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45);
  background: var(--bg-card-hover);
}

/* ============================================================
   ABOUT PAGE
   ============================================================ */
.about-body {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 5rem;
  align-items: start;
}

.about-text p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}

.about-text strong {
  color: var(--text-primary);
  font-weight: 600;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin-top: 3rem;
}

.service-card {
  padding: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: var(--normal);
}

.service-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-glow);
}

.service-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.service-card h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.service-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.about-sidebar .sidebar-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  margin-bottom: 1.25rem;
}

.about-sidebar h3 {
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}

.info-row:last-child {
  border-bottom: none;
}

.info-row .label {
  color: var(--text-muted);
}

.info-row .val {
  color: var(--text-primary);
  font-weight: 500;
}

.info-row a {
  color: var(--cyan);
}

.info-row a:hover {
  text-decoration: underline;
}

/* ============================================================
   RESUME PAGE
   ============================================================ */
.resume-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.resume-section-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 1.75rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.resume-section-title i {
  color: var(--cyan);
  width: 22px;
  height: 22px;
}

.timeline {
  position: relative;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 10px;
  top: 8px;
  bottom: 0;
  width: 1px;
  background: var(--border);
}

.t-item {
  position: relative;
  padding-left: 3rem;
  margin-bottom: 2.5rem;
}

.t-dot {
  position: absolute;
  left: 3px;
  top: 6px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--bg-primary);
  border: 2px solid var(--cyan);
  box-shadow: 0 0 12px rgba(34, 211, 238, 0.35);
}

.t-date {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--purple);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
}

.t-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.t-sub {
  font-size: 0.95rem;
  color: var(--cyan);
  font-weight: 500;
  margin-bottom: 0.75rem;
}

.t-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

.t-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.78rem;
  font-weight: 600;
  background: rgba(34, 211, 238, 0.08);
  color: var(--cyan);
  border: 1px solid rgba(34, 211, 238, 0.2);
  border-radius: 100px;
  padding: 0.25rem 0.75rem;
  margin-top: 0.75rem;
}

.cgpa-badge {
  display: inline-block;
  background: rgba(168, 85, 247, 0.1);
  color: var(--purple);
  border: 1px solid rgba(168, 85, 247, 0.2);
  border-radius: 100px;
  padding: 0.25rem 0.85rem;
  font-size: 0.82rem;
  font-weight: 700;
  margin-top: 0.5rem;
}

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

.cert-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.cert-thumb {
  position: relative;
  overflow: hidden;
  height: 230px;
  background: var(--bg-secondary);
}

.cert-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}

.cert-card:hover .cert-thumb img {
  transform: scale(1.04);
}

.cert-overlay {
  position: absolute;
  inset: 0;
  background: rgba(7, 7, 10, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  opacity: 0;
  transition: opacity var(--normal);
}

.cert-card:hover .cert-overlay {
  opacity: 1;
}

.cert-overlay a {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  border: 1px solid var(--border);
  transition: background var(--fast), transform var(--fast);
  transform: translateY(10px);
}

.cert-card:hover .cert-overlay a {
  transform: translateY(0);
}

.cert-overlay a:hover {
  background: var(--cyan);
  color: var(--bg-primary);
}

.cert-body {
  padding: 1.5rem;
}

.cert-org {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--cyan);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
}

.cert-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.cert-date {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ============================================================
   SKILLS
   ============================================================ */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.5rem;
}

.skill-group {
  padding: 1.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: var(--normal);
}

.skill-group:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-glow);
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
}

.skill-group-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.skill-group-header i {
  color: var(--cyan);
  width: 24px;
  height: 24px;
}

.skill-group-header h3 {
  font-size: 1.05rem;
  font-weight: 700;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.skill-tag {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  padding: 0.4rem 0.9rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-secondary);
  transition: border-color var(--fast), color var(--fast);
}

.skill-group:hover .skill-tag {
  border-color: rgba(34, 211, 238, 0.2);
  color: var(--text-primary);
}

/* ============================================================
   EXPERIENCE
   ============================================================ */
.exp-wrapper {
  max-width: 820px;
}

.exp-card {
  padding: 2.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
}

.exp-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--grad-text);
}

.exp-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 700;
  background: rgba(34, 211, 238, 0.08);
  color: var(--cyan);
  border: 1px solid rgba(34, 211, 238, 0.2);
  border-radius: 100px;
  padding: 0.3rem 0.85rem;
  margin-bottom: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.exp-badge .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  animation: blink 1.5s ease-in-out infinite;
}

@keyframes blink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.2;
  }
}

.exp-role {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 0.35rem;
}

.exp-company {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.exp-desc {
  color: var(--text-secondary);
  font-size: 1.05rem;
  line-height: 1.75;
  margin-bottom: 1.5rem;
}

.exp-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.exp-skill {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  padding: 0.35rem 0.85rem;
  background: rgba(168, 85, 247, 0.07);
  color: var(--purple);
  border: 1px solid rgba(168, 85, 247, 0.2);
  border-radius: 6px;
}

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

.proj-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--normal), border-color var(--normal), box-shadow var(--normal);
}

.proj-card:hover {
  transform: translateY(-8px);
  border-color: var(--border-glow);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.5);
}

.proj-img {
  width: 100%;
  height: 220px;
  position: relative;
  overflow: hidden;
  background: var(--bg-secondary);
}

.proj-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}

.proj-img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: var(--text-muted);
}

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

.proj-overlay {
  position: absolute;
  inset: 0;
  background: rgba(7, 7, 10, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  opacity: 0;
  transition: opacity var(--normal);
}

.proj-card:hover .proj-overlay {
  opacity: 1;
}

.proj-link-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  transform: translateY(12px);
  transition: transform var(--normal), background var(--fast);
}

.proj-card:hover .proj-link-btn {
  transform: translateY(0);
}

.proj-link-btn:hover {
  background: var(--cyan);
  color: var(--bg-primary);
  border-color: var(--cyan);
}

.proj-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.proj-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.proj-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  padding: 0.28rem 0.7rem;
  background: rgba(34, 211, 238, 0.05);
  color: var(--cyan);
  border: 1px solid rgba(34, 211, 238, 0.12);
  border-radius: 5px;
}

.proj-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
}

.proj-desc {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 4rem;
  align-items: start;
}

.contact-info h2 {
  font-size: 1.75rem;
  font-weight: 800;
  margin-bottom: 1rem;
}

.contact-info p {
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.contact-items {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
}

.contact-ico {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cyan);
  flex-shrink: 0;
}

.contact-ico i {
  width: 20px;
  height: 20px;
}

.contact-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.contact-val {
  color: var(--text-primary);
  font-size: 1rem;
  font-weight: 500;
}

.contact-val a {
  transition: color var(--fast);
}

.contact-val a:hover {
  color: var(--cyan);
}

.social-row {
  display: flex;
  gap: 0.75rem;
  margin-top: 2rem;
}

.soc-btn {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: background var(--fast), color var(--fast), border-color var(--fast), transform var(--fast);
}

.soc-btn:hover {
  background: var(--bg-card-hover);
  color: var(--cyan);
  border-color: var(--border-glow);
  transform: translateY(-3px);
}

.soc-btn i {
  width: 18px;
  height: 18px;
}

.kaggle-k {
  font-size: 1rem;
  font-weight: 800;
}

.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.6rem;
}

.form-input {
  width: 100%;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem 1.1rem;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  transition: border-color var(--fast), box-shadow var(--fast);
}

.form-input:focus {
  outline: none;
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.08);
}

.form-input::placeholder {
  color: var(--text-muted);
}

textarea.form-input {
  min-height: 160px;
  resize: vertical;
}

.btn-submit {
  width: 100%;
  padding: 1.1rem;
  border-radius: 8px;
  background: var(--text-primary);
  color: var(--bg-primary);
  font-weight: 700;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  transition: background var(--fast), transform var(--fast), box-shadow var(--fast);
  border: none;
  cursor: pointer;
}

.btn-submit:hover {
  background: var(--cyan);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(34, 211, 238, 0.2);
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  background: #050508;
  border-top: 1px solid var(--border);
  padding: 2.5rem 0 1.75rem;
  margin-top: auto;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.footer-logo {
  font-size: 1.2rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-socials {
  display: flex;
  gap: 0.6rem;
}

.footer-copy {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}

/* ============================================================
   ANIMATIONS (GSAP-driven classes)
   ============================================================ */
.gsap-reveal {
  opacity: 1;
}

/* GSAP sets this visible */

/* RESPONSIVE RULES MOVED TO BOTTOM OF FILE FOR UNIFICATION */

/* ── DEMO MODAL ── */
.demo-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(4, 9, 20, 0.85);
  backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.demo-modal {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  width: 90%;
  max-width: 1000px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}

.demo-modal-header {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(15, 23, 42, 0.5);
}

.demo-modal-header h3 {
  font-size: 1.1rem;
  margin: 0;
  font-weight: 500;
}

.demo-close {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--trans);
}

.demo-close:hover {
  color: var(--text-primary);
}

.demo-modal-body {
  flex: 1;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0f172a;
}

.demo-iframe {
  width: 100%;
  height: 100%;
  border: none;
  min-height: 600px;
}

.demo-placeholder {
  text-align: center;
  padding: 3rem;
  color: var(--text-muted);
}

.demo-icon {
  margin-bottom: 1rem;
  color: var(--cyan);
}

/* ── PREMIUM GLASS CARD ── */
.glass-card {
  background: rgba(15, 23, 42, 0.6) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.05) !important;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease !important;
}

.glass-card:hover {
  transform: translateY(-5px) !important;
  border-color: rgba(56, 189, 248, 0.4) !important;
  box-shadow: 0 12px 40px 0 rgba(56, 189, 248, 0.15) !important;
}

/* ── MODERN SKILLS DASHBOARD ── */
.skills-dashboard {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.skill-category {
  background: rgba(15, 23, 42, 0.4);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 2rem;
}

.skill-category h2 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-primary);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 1rem;
}

.skill-badges-container {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.skill-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.8), rgba(15, 23, 42, 0.9));
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 50px;
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.3s ease;
  cursor: default;
}

.skill-badge:hover {
  color: #fff;
  border-color: var(--cyan);
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.1), rgba(15, 23, 42, 0.9));
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(56, 189, 248, 0.2);
}

.skill-badge i {
  color: var(--cyan);
  width: 18px;
  height: 18px;
}

/* ============================================================
   SKILL BADGE COLOR VARIANTS
   ============================================================ */
.sk-ai {
  --sk-color: var(--cyan);
  --sk-bg: rgba(34, 211, 238, 0.07);
  --sk-border: rgba(34, 211, 238, 0.18);
}

.sk-prog {
  --sk-color: var(--purple);
  --sk-bg: rgba(168, 85, 247, 0.07);
  --sk-border: rgba(168, 85, 247, 0.18);
}

.sk-fw {
  --sk-color: var(--blue);
  --sk-bg: rgba(59, 130, 246, 0.07);
  --sk-border: rgba(59, 130, 246, 0.18);
}

.sk-cloud {
  --sk-color: #f59e0b;
  --sk-bg: rgba(245, 158, 11, 0.07);
  --sk-border: rgba(245, 158, 11, 0.18);
}

.sk-db {
  --sk-color: #10b981;
  --sk-bg: rgba(16, 185, 129, 0.07);
  --sk-border: rgba(16, 185, 129, 0.18);
}

.sk-tool {
  --sk-color: var(--purple);
  --sk-bg: rgba(168, 85, 247, 0.07);
  --sk-border: rgba(168, 85, 247, 0.18);
}

.sk-soft {
  --sk-color: #f43f5e;
  --sk-bg: rgba(244, 63, 94, 0.07);
  --sk-border: rgba(244, 63, 94, 0.18);
}

.skill-badge.sk-ai,
.skill-badge.sk-prog,
.skill-badge.sk-fw,
.skill-badge.sk-cloud,
.skill-badge.sk-db,
.skill-badge.sk-tool,
.skill-badge.sk-soft {
  color: var(--sk-color);
  background: var(--sk-bg);
  border-color: var(--sk-border);
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 0.83rem;
  font-weight: 500;
  padding: 0.55rem 1rem;
  cursor: default;
}

.skill-badge.sk-ai:hover,
.skill-badge.sk-prog:hover,
.skill-badge.sk-fw:hover,
.skill-badge.sk-cloud:hover,
.skill-badge.sk-db:hover,
.skill-badge.sk-tool:hover,
.skill-badge.sk-soft:hover {
  filter: brightness(1.25);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
}

/* ============================================================
   SKILL CATEGORY — override for heading color
   ============================================================ */
.skill-category {
  border-radius: var(--radius-lg);
  padding: 1.75rem 2rem;
}

.skill-category h2 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border);
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
}

/* ============================================================
   PROJECT FOOTER BUTTONS (Dual: Live Demo + GitHub)
   ============================================================ */
.proj-desc {
  flex: 1;
}

.proj-footer {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.25rem;
  flex-wrap: wrap;
}

.btn-demo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.2rem;
  background: var(--cyan);
  color: var(--bg-primary);
  border: none;
  border-radius: 8px;
  font-size: 0.83rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform var(--fast), box-shadow var(--fast), opacity var(--fast);
  text-decoration: none;
  font-family: var(--font-sans);
}

.btn-demo:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(34, 211, 238, 0.3);
  opacity: 0.92;
}

.btn-demo svg {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
}

.btn-github {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.2rem;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.83rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--fast), border-color var(--fast), transform var(--fast);
  text-decoration: none;
  font-family: var(--font-sans);
}

.btn-github:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

.btn-github svg {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
}

/* ============================================================
   BACK TO TOP BUTTON
   ============================================================ */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--normal), transform var(--fast), background var(--fast), color var(--fast);
  z-index: 999;
}

.back-to-top.visible {
  opacity: 1;
  pointer-events: all;
}

.back-to-top:hover {
  background: var(--cyan);
  color: var(--bg-primary);
  border-color: var(--cyan);
  transform: translateY(-3px);
}

/* ============================================================
   HERO TYPEWRITER / ANIMATED SKILLS
   ============================================================ */
.animated-skills-wrapper {
  font-family: var(--font-mono);
  font-size: 1.15rem;
  color: var(--cyan);
  margin-bottom: 1.75rem;
  min-height: 1.8em;
  display: flex;
  align-items: center;
  gap: 0;
}

.typewriter-prefix {
  color: var(--text-muted);
  margin-right: 0.25rem;
}

#typewriter {
  color: var(--cyan);
  font-weight: 600;
}

.cursor {
  display: inline-block;
  color: var(--cyan);
  animation: blink-cursor 0.75s step-end infinite;
  font-weight: 300;
  margin-left: 2px;
}

@keyframes blink-cursor {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}

/* ============================================================
   HERO LABEL (home)
   ============================================================ */
.hero-label {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  color: var(--cyan);
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* ============================================================
   SERVICES GRID (index.html)
   ============================================================ */
.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-header p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  max-width: 560px;
  margin: 0 auto;
}

.section-header h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 0.75rem;
}

.section-header .page-label {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--cyan);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

.service-card {
  padding: 1.75rem;
  border-radius: var(--radius-lg);
  transition: transform var(--normal), border-color var(--normal), box-shadow var(--normal);
}

.service-card:hover {
  transform: translateY(-6px);
}

.service-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: rgba(34, 211, 238, 0.07);
  border: 1px solid rgba(34, 211, 238, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cyan);
  margin-bottom: 1.1rem;
}

.service-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
}

.service-card p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ============================================================
   ABOUT PAGE — service cards small
   ============================================================ */
.service-grid-lg {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.service-card-sm {
  padding: 1.25rem;
  border-radius: var(--radius);
  transition: var(--normal);
}

.service-card-sm:hover {
  transform: translateY(-4px);
}

.svc-icon {
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
}

.service-card-sm h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.service-card-sm p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ============================================================
   CERTIFICATIONS — enhanced
   ============================================================ */
.cert-card .cert-body {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.cert-card {
  border: 1px solid var(--border);
  transition: transform var(--normal), border-color var(--normal), box-shadow var(--normal);
}

.cert-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-glow);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

/* ============================================================
   UNIFIED RESPONSIVE RULES
   ============================================================ */

/* ── 1280px+ (large desktop): no changes, everything looks great ── */

/* ── 1200px (slightly constrained desktop) ─────────────────── */
@media (max-width: 1200px) {
  .container { padding: 0 1.5rem; }
}

/* ── 1024px (tablet landscape / small laptop) ──────────────── */
@media (max-width: 1024px) {
  /* Hero: go single-column, center everything */
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3rem;
  }
  /* On tablet show the profile image as a centered card above the text */
  .hero-visual {
    display: flex;
    justify-content: center;
    order: -1;           /* image above text */
  }
  .profile-ring {
    width: 220px;
    height: 220px;
  }
  /* Hide the floating badges on tablet — too cramped */
  .float-badge { display: none; }
  .hero-label { justify-content: center; }
  .hero-desc { margin: 0 auto 2.5rem; max-width: 560px; }
  .hero-actions { justify-content: center; flex-wrap: wrap; }
  /* Section label line */
  .section-label::after { max-width: 100px; }
  /* About sidebar hidden on tablet (no horizontal space) */
  .about-body { grid-template-columns: 1fr; gap: 3rem; }
  .about-sidebar { display: none; }
  /* Resume side-by-side -> stacked */
  .resume-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  /* Contact side-by-side -> stacked */
  .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  /* Services: 3-col on tablet */
  .services-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ── 768px (tablet portrait / large phone) ─────────────────── */
@media (max-width: 768px) {
  .container { padding: 0 1rem; }

  /* Nav: hide desktop links, show hamburger */
  .nav-links { display: none; }
  .nav-toggle { display: flex; }

  /* Reduce section padding */
  .section { padding: 60px 0; }
  .page-header {
    padding-top: calc(var(--nav-h) + 40px);
    padding-bottom: 30px;
  }

  /* Hero typography scales down via clamp — nothing needed */
  /* Hero profile: visible, centered */
  .hero-visual { display: flex; justify-content: center; order: -1; }
  .profile-ring { width: 180px; height: 180px; }
  .float-badge { display: none; }
  .hero-actions { gap: 0.65rem; justify-content: center; }

  /* Grids go single column */
  .projects-grid,
  .skills-grid,
  .cert-grid,
  .services-grid,
  .service-grid {
    grid-template-columns: 1fr;
  }
  /* About expertise: 2 columns on tablet-portrait */
  .service-grid-lg { grid-template-columns: repeat(2, 1fr); }

  /* Forms */
  .form-row { grid-template-columns: 1fr; }

  /* Footer */
  .footer-inner {
    flex-direction: column;
    gap: 1.25rem;
    text-align: center;
  }
  .footer-socials { justify-content: center; flex-wrap: wrap; }

  /* Cards: reduce inner padding */
  .exp-card { padding: 1.5rem 1.25rem; }
  .contact-form { padding: 1.5rem; }
  .skill-category { padding: 1.25rem; }
  .skills-dashboard { gap: 1.5rem; }

  /* Project footer buttons */
  .proj-footer { flex-wrap: wrap; gap: 0.5rem; }

  /* Typewriter: center-aligned */
  .animated-skills-wrapper {
    font-size: 0.95rem;
    justify-content: center;
  }

  /* Back-to-top: slightly smaller */
  .back-to-top {
    bottom: 1.25rem;
    right: 1.25rem;
    width: 40px;
    height: 40px;
  }

  /* Reduce exp-role font */
  .exp-role { font-size: 1.3rem; }
}

/* ── 480px (most phones — 375px to 480px) ─────────────────── */
@media (max-width: 480px) {
  /* About expertise: single column on phones */
  .service-grid-lg { grid-template-columns: 1fr; }

  /* Hero buttons: full-width stack */
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 0.65rem;
  }
  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }

  /* Project buttons: full-width */
  .btn-demo, .btn-github {
    flex: 1 1 calc(50% - 0.25rem);
    justify-content: center;
    text-align: center;
  }

  /* Timeline: less left-indent */
  .t-item { padding-left: 2.25rem; margin-bottom: 1.75rem; }
  .timeline::before { left: 8px; }
  .t-dot { left: 1px; }

  /* Images: shorter on phones */
  .cert-thumb { height: 180px; }
  .proj-img { height: 185px; }

  /* Page-level typography: fine-tune */
  .page-header h1 { font-size: 2rem; }
  .hero h1 { font-size: clamp(2.4rem, 10vw, 3.5rem); }
  .hero-role { font-size: clamp(1.1rem, 5vw, 1.5rem); }

  /* Profile image: slightly smaller */
  .profile-ring { width: 150px; height: 150px; }

  /* Skill badges: smaller */
  .skill-badge { font-size: 0.82rem; padding: 0.55rem 0.9rem; }
}

/* ── 360px / 320px (very small phones) ─────────────────────── */
@media (max-width: 360px) {
  .container { padding: 0 0.75rem; }
  .hero h1 { font-size: 2.1rem; letter-spacing: -0.03em; }
  .hero-role { font-size: 1rem; }
  .animated-skills-wrapper { font-size: 0.85rem; }
  .hero-actions .btn { font-size: 0.85rem; padding: 0.75rem 1rem; }
  .nav-link { font-size: 0.9rem; }
  .logo { font-size: 1.1rem; }
  .btn-demo, .btn-github { font-size: 0.8rem; padding: 0.55rem 0.85rem; }
  .profile-ring { width: 130px; height: 130px; }
}