/* ==========================================================
   Ekta Sahu — Portfolio Styles
   Pure CSS3, no frameworks.
   ========================================================== */

/* ---------------------------------------------------------- */
/*  CSS Custom Properties (Light Theme)                       */
/* ---------------------------------------------------------- */

:root {
  /* Colors */
  --bg:             #f5f7fa;
  --bg-alt:         #edf0f7;
  --surface:        #ffffff;
  --text:           #1a1a2e;
  --text-secondary: #4a5568;
  --muted:          #6b7a90;
  --primary:        #6366f1;
  --primary-hover:  #4f46e5;
  --primary-light:  rgba(99, 102, 241, 0.08);
  --primary-glow:   rgba(99, 102, 241, 0.25);
  --accent:         #8b5cf6;
  --accent2:        #06b6d4;
  --border:         #e2e8f0;
  --shadow:         rgba(0, 0, 0, 0.05);
  --shadow-md:      rgba(0, 0, 0, 0.08);
  --shadow-lg:      rgba(0, 0, 0, 0.12);
  --code-bg:        #1e293b;
  --code-text:      #e2e8f0;
  --navbar-bg:      rgba(245, 247, 250, 0.8);
  --gradient-start: #6366f1;
  --gradient-end:   #8b5cf6;
  --orb-1:          rgba(99, 102, 241, 0.12);
  --orb-2:          rgba(139, 92, 246, 0.10);
  --orb-3:          rgba(6, 182, 212, 0.08);

  /* Typography */
  --font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont,
    'Segoe UI', Roboto, sans-serif;
  --font-mono: 'Fira Code', 'Cascadia Code', 'JetBrains Mono', monospace;

  /* Sizing */
  --nav-height: 64px;
  --container-max: 1120px;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 20px;

  /* Transitions */
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------------------------------------------------------- */
/*  Dark Theme                                                */
/* ---------------------------------------------------------- */

.dark {
  --bg:             #0a0e1a;
  --bg-alt:         #0f1629;
  --surface:        #151c32;
  --text:           #e8ecf4;
  --text-secondary: #94a3b8;
  --muted:          #64748b;
  --primary:        #818cf8;
  --primary-hover:  #a5b4fc;
  --primary-light:  rgba(129, 140, 248, 0.1);
  --primary-glow:   rgba(129, 140, 248, 0.2);
  --accent:         #a78bfa;
  --accent2:        #22d3ee;
  --border:         rgba(148, 163, 184, 0.1);
  --shadow:         rgba(0, 0, 0, 0.2);
  --shadow-md:      rgba(0, 0, 0, 0.3);
  --shadow-lg:      rgba(0, 0, 0, 0.4);
  --code-bg:        #0c1222;
  --code-text:      #e2e8f0;
  --navbar-bg:      rgba(10, 14, 26, 0.75);
  --gradient-start: #818cf8;
  --gradient-end:   #a78bfa;
  --orb-1:          rgba(129, 140, 248, 0.08);
  --orb-2:          rgba(167, 139, 250, 0.06);
  --orb-3:          rgba(34, 211, 238, 0.05);
}

/* ---------------------------------------------------------- */
/*  Reset & Base                                              */
/* ---------------------------------------------------------- */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--nav-height);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.nav-open { overflow: hidden; }

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

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover { color: var(--primary-hover); }

ul { list-style: none; }

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: 3px;
}

::selection {
  background-color: var(--primary);
  color: #fff;
}

/* ---------------------------------------------------------- */
/*  Container                                                 */
/* ---------------------------------------------------------- */

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ---------------------------------------------------------- */
/*  Buttons                                                   */
/* ---------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.8rem;
  border-radius: 50px;
  font-family: var(--font-sans);
  font-size: 0.938rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  border: none;
  text-decoration: none;
  position: relative;
}

.btn--primary {
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  color: #ffffff;
  box-shadow: 0 4px 15px var(--primary-glow);
}

.btn--primary:hover {
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px var(--primary-glow);
}

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

.btn--outline:hover {
  border-color: var(--primary);
  background-color: var(--primary-light);
  transform: translateY(-2px);
}

/* ---------------------------------------------------------- */
/*  NAVBAR                                                    */
/* ---------------------------------------------------------- */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  z-index: 1000;
  transition: background var(--transition), box-shadow var(--transition);
}

.navbar.scrolled {
  background-color: var(--navbar-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.navbar__logo {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.02em;
  transition: color var(--transition);
}

.navbar__logo:hover { color: var(--primary); }

.navbar__list {
  display: flex;
  gap: 0.5rem;
}

.navbar__link {
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  padding: 0.4rem 0.9rem;
  border-radius: 50px;
  transition: all var(--transition);
}

.navbar__link:hover {
  color: var(--primary);
  background-color: var(--primary-light);
}

.navbar__link.active {
  color: var(--primary);
  background-color: var(--primary-light);
}

.navbar__actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Theme Toggle */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--surface);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition);
}

.theme-toggle:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-light);
}

.dark .icon-sun  { display: block; }
.dark .icon-moon { display: none; }
.icon-sun  { display: none; }
.icon-moon { display: block; }

/* Hamburger */
.navbar__hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 38px;
  height: 38px;
  gap: 5px;
  background: none;
  border: 1px solid var(--border);
  border-radius: 50%;
  cursor: pointer;
  padding: 0;
  transition: all var(--transition);
}

.navbar__hamburger:hover {
  border-color: var(--primary);
}

.hamburger-line {
  display: block;
  width: 16px;
  height: 2px;
  background-color: var(--text);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.navbar__hamburger[aria-expanded="true"] .hamburger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.navbar__hamburger[aria-expanded="true"] .hamburger-line:nth-child(2) {
  opacity: 0;
}
.navbar__hamburger[aria-expanded="true"] .hamburger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---------------------------------------------------------- */
/*  HERO                                                      */
/* ---------------------------------------------------------- */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-height);
  position: relative;
  overflow: hidden;
}

/* Decorative background orbs */
.hero__bg-decor {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
}

.hero__orb--1 {
  width: 500px;
  height: 500px;
  background: var(--orb-1);
  top: -10%;
  right: -5%;
  animation: orb-float 12s ease-in-out infinite;
}

.hero__orb--2 {
  width: 400px;
  height: 400px;
  background: var(--orb-2);
  bottom: -15%;
  left: -10%;
  animation: orb-float 15s ease-in-out infinite reverse;
}

.hero__orb--3 {
  width: 300px;
  height: 300px;
  background: var(--orb-3);
  top: 40%;
  left: 50%;
  animation: orb-float 18s ease-in-out infinite 3s;
}

@keyframes orb-float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%      { transform: translate(30px, -20px) scale(1.05); }
  66%      { transform: translate(-20px, 15px) scale(0.95); }
}

@media (prefers-reduced-motion: reduce) {
  .hero__orb { animation: none; }
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 4rem;
  padding: 4rem 1.5rem;
  position: relative;
  z-index: 1;
}

.hero__eyebrow {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero__name {
  font-size: clamp(2.5rem, 6vw, 4.2rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.04em;
  margin-bottom: 0.75rem;
  background: linear-gradient(135deg, var(--text) 0%, var(--gradient-start) 50%, var(--gradient-end) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradient-shift 6s ease infinite;
}

@keyframes gradient-shift {
  0%, 100% { background-position: 0% center; }
  50%      { background-position: 100% center; }
}

@media (prefers-reduced-motion: reduce) {
  .hero__name { animation: none; }
}

.hero__headline {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
}

.hero__intro {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.8;
  max-width: 540px;
  margin-bottom: 1rem;
}

.hero__location {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.875rem;
  color: var(--muted);
  margin-bottom: 2rem;
}
.hero__location svg { flex-shrink: 0; }

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
}

.hero__socials {
  display: flex;
  gap: 0.75rem;
}

.hero__socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: var(--muted);
  border: 1px solid var(--border);
  background: var(--surface);
  transition: all var(--transition);
}

.hero__socials a:hover {
  color: var(--primary);
  border-color: var(--primary);
  background: var(--primary-light);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px var(--primary-glow);
}

/* Code Window Visual */
.code-window {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background-color: var(--code-bg);
  box-shadow:
    0 25px 60px -12px var(--shadow-lg),
    0 0 0 1px rgba(255, 255, 255, 0.05),
    0 0 80px -20px var(--primary-glow);
  position: relative;
}

.code-window::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: var(--radius-lg);
  padding: 1px;
  background: linear-gradient(135deg, var(--gradient-start), transparent 40%, transparent 60%, var(--gradient-end));
  -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;
  pointer-events: none;
}

.code-window__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0.85rem 1.25rem;
  background-color: rgba(0, 0, 0, 0.25);
}

.code-window__dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.code-window__dot--red    { background-color: #ef4444; }
.code-window__dot--yellow { background-color: #eab308; }
.code-window__dot--green  { background-color: #22c55e; }

.code-window__title {
  margin-left: 0.5rem;
  font-size: 0.8rem;
  color: #64748b;
  font-family: var(--font-mono);
}

.code-window__body {
  padding: 1.5rem 1.75rem;
  overflow-x: auto;
}

.code-window__body pre { margin: 0; }

.code-window__body code {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  line-height: 1.9;
  color: var(--code-text);
}

/* Blinking cursor */
.code-cursor {
  display: inline-block;
  width: 2px;
  height: 1.1em;
  background-color: var(--primary);
  margin-left: 2px;
  vertical-align: text-bottom;
  animation: cursor-blink 1s step-end infinite;
}

@keyframes cursor-blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .code-cursor { animation: none; opacity: 1; }
}

/* Code syntax colors */
.code-keyword { color: #c084fc; }
.code-class   { color: #67e8f9; }
.code-func    { color: #fbbf24; }
.code-param   { color: #fb923c; }
.code-string  { color: #86efac; }

/* ---------------------------------------------------------- */
/*  SECTIONS — shared                                         */
/* ---------------------------------------------------------- */

.section {
  padding: 6rem 0;
  position: relative;
}

.section__heading {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  text-align: center;
  margin-bottom: 0.75rem;
  color: var(--text);
}

.section__heading::after {
  content: '';
  display: block;
  width: 48px;
  height: 3px;
  background: linear-gradient(90deg, var(--gradient-start), var(--gradient-end));
  border-radius: 2px;
  margin: 0.75rem auto 0;
}

.section__subtitle {
  text-align: center;
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto 3.5rem;
  font-size: 1rem;
}

/* Alternate section background */
.skills,
.projects {
  background-color: var(--bg-alt);
}

/* ---------------------------------------------------------- */
/*  ABOUT                                                     */
/* ---------------------------------------------------------- */

.about__content {
  max-width: 680px;
  margin: 2rem auto 0;
}

.about__content p {
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
  font-size: 1.05rem;
  line-height: 1.85;
}

.about__content p:last-child { margin-bottom: 0; }

/* ---------------------------------------------------------- */
/*  SKILLS                                                    */
/* ---------------------------------------------------------- */

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

.skill-category {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

/* Gradient top border accent */
.skill-category::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gradient-start), var(--gradient-end));
  opacity: 0;
  transition: opacity var(--transition);
}

.skill-category:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px var(--shadow-md);
  border-color: var(--primary-glow);
}

.skill-category:hover::before { opacity: 1; }

.skill-category__title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
  color: var(--text);
}

.skill-category__title svg {
  color: var(--primary);
  flex-shrink: 0;
}

.skill-category__items {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.skill-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  background-color: var(--primary-light);
  border: 1px solid transparent;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all var(--transition);
}

.skill-chip:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-glow);
}

.skill-chip__icon {
  font-size: 1rem;
  line-height: 1;
}

/* ---------------------------------------------------------- */
/*  EDUCATION                                                 */
/* ---------------------------------------------------------- */

.timeline {
  max-width: 640px;
  margin: 2rem auto 0;
  position: relative;
  padding-left: 2.5rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--gradient-start), var(--gradient-end), transparent);
  border-radius: 2px;
}

.timeline__item {
  position: relative;
  padding-bottom: 2.5rem;
}

.timeline__item:last-child { padding-bottom: 0; }

.timeline__marker {
  position: absolute;
  left: -2.5rem;
  top: 0.35rem;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  border: 3px solid var(--bg);
  box-shadow: 0 0 0 2px var(--primary), 0 0 12px var(--primary-glow);
  margin-left: 1px;
}

.timeline__content {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: all var(--transition);
}

.timeline__content:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--shadow-md);
  border-color: var(--primary-glow);
}

.timeline__date {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--primary);
  background-color: var(--primary-light);
  padding: 0.2rem 0.75rem;
  border-radius: 50px;
  margin-bottom: 0.75rem;
}

.timeline__title {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.35rem;
}

.timeline__degree {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.timeline__field {
  font-size: 0.9rem;
  color: var(--muted);
}

.timeline__separator {
  width: 40px;
  height: 1px;
  background: linear-gradient(90deg, var(--gradient-start), transparent);
  margin: 0.9rem 0;
}

/* ---------------------------------------------------------- */
/*  PROJECTS                                                  */
/* ---------------------------------------------------------- */

.projects__empty {
  text-align: center;
  padding: 4rem 2rem;
  background-color: var(--surface);
  border: 2px dashed var(--border);
  border-radius: var(--radius-lg);
  max-width: 560px;
  margin: 0 auto;
  position: relative;
}

.projects__empty-icon {
  color: var(--muted);
  margin-bottom: 1.5rem;
  opacity: 0.5;
}

.projects__empty h3 {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.projects__empty p {
  color: var(--muted);
  font-size: 0.95rem;
}

/* Project Cards (for future use) */
.projects__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

.project-card {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all var(--transition);
  position: relative;
}

.project-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: var(--radius);
  padding: 1px;
  background: linear-gradient(135deg, var(--gradient-start), transparent, var(--gradient-end));
  -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 var(--transition);
  pointer-events: none;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 48px var(--shadow-md);
}

.project-card:hover::before { opacity: 1; }

.project-card__image {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background-color: var(--bg-alt);
}

.project-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.project-card:hover .project-card__image img {
  transform: scale(1.05);
}

.project-card__body { padding: 1.5rem; }

.project-card__title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.project-card__desc {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.project-card__tech {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1.25rem;
}

.tech-tag {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.7rem;
  border-radius: 50px;
  background-color: var(--primary-light);
  color: var(--primary);
}

.project-card__links {
  display: flex;
  gap: 1rem;
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition);
}

.project-link:hover { color: var(--primary); }

/* ---------------------------------------------------------- */
/*  CONTACT                                                   */
/* ---------------------------------------------------------- */

.contact__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  max-width: 800px;
  margin: 0 auto;
}

.contact-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2.25rem 1.5rem;
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.contact-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: var(--radius);
  padding: 1px;
  background: linear-gradient(135deg, var(--gradient-start), transparent, var(--gradient-end));
  -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 var(--transition);
  pointer-events: none;
}

.contact-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px var(--shadow-md);
}

.contact-card:hover::before { opacity: 1; }

.contact-card__icon {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary-light), var(--primary-glow));
  border-radius: 50%;
  color: var(--primary);
  margin-bottom: 1.25rem;
  transition: all var(--transition);
}

.contact-card:hover .contact-card__icon {
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  color: #fff;
  box-shadow: 0 6px 20px var(--primary-glow);
}

.contact-card__title {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.35rem;
}

.contact-card__value {
  font-size: 0.85rem;
  color: var(--muted);
  word-break: break-all;
}

/* ---------------------------------------------------------- */
/*  FOOTER                                                    */
/* ---------------------------------------------------------- */

.footer {
  padding: 3rem 0;
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gradient-start), var(--gradient-end), transparent);
}

.footer__inner { text-align: center; }

.footer__name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.25rem;
}

.footer__tagline {
  font-size: 0.875rem;
  color: var(--muted);
  margin-bottom: 1.25rem;
}

.footer__socials {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.footer__socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: var(--muted);
  border: 1px solid var(--border);
  transition: all var(--transition);
}

.footer__socials a:hover {
  color: var(--primary);
  border-color: var(--primary);
  background: var(--primary-light);
}

.footer__copy {
  font-size: 0.8rem;
  color: var(--muted);
}

/* ---------------------------------------------------------- */
/*  Scroll Reveal Animations                                  */
/* ---------------------------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger animations for skill cards */
.skill-category.reveal:nth-child(1) { transition-delay: 0s; }
.skill-category.reveal:nth-child(2) { transition-delay: 0.08s; }
.skill-category.reveal:nth-child(3) { transition-delay: 0.16s; }
.skill-category.reveal:nth-child(4) { transition-delay: 0.24s; }
.skill-category.reveal:nth-child(5) { transition-delay: 0.32s; }

/* Stagger for contact cards */
.contact-card:nth-child(1) { transition-delay: 0s; }
.contact-card:nth-child(2) { transition-delay: 0.1s; }
.contact-card:nth-child(3) { transition-delay: 0.2s; }

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .skill-category.reveal,
  .contact-card { transition-delay: 0s !important; }
}

/* ---------------------------------------------------------- */
/*  RESPONSIVE — Tablet & below                               */
/* ---------------------------------------------------------- */

@media (max-width: 1024px) {
  .hero__inner { gap: 3rem; }
}

@media (max-width: 768px) {
  /* Navbar mobile */
  .navbar__hamburger { display: flex; }

  .navbar__nav {
    position: fixed;
    inset: 0;
    background-color: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 999;
  }

  .navbar__nav.open {
    opacity: 1;
    visibility: visible;
  }

  .navbar__list {
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
  }

  .navbar__link {
    font-size: 1.2rem;
    padding: 0.6rem 1.5rem;
  }

  /* Hero */
  .hero__inner {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 3rem 1.5rem;
    gap: 3rem;
  }

  .hero__intro {
    margin-left: auto;
    margin-right: auto;
  }

  .hero__location   { justify-content: center; }
  .hero__cta        { justify-content: center; }
  .hero__socials    { justify-content: center; }

  .hero__visual {
    order: -1;
    max-width: 400px;
    margin: 0 auto;
  }

  .hero__orb--1 { width: 300px; height: 300px; }
  .hero__orb--2 { width: 250px; height: 250px; }
  .hero__orb--3 { width: 200px; height: 200px; }

  /* Skills */
  .skills__grid { grid-template-columns: 1fr; }

  /* Projects */
  .projects__grid { grid-template-columns: 1fr; }

  /* Contact */
  .contact__grid { grid-template-columns: 1fr; }

  /* Timeline */
  .timeline { padding-left: 2rem; }
  .timeline__marker { left: -2rem; }

  /* Section padding */
  .section { padding: 4rem 0; }
}

@media (max-width: 480px) {
  .hero__name { font-size: 2.2rem; }

  .btn {
    padding: 0.65rem 1.4rem;
    font-size: 0.875rem;
  }

  .section__heading { font-size: 1.5rem; }

  .code-window__body code { font-size: 0.75rem; }
  .code-window__body { padding: 1.25rem; }
  .code-window { border-radius: var(--radius); }

  .skill-category  { padding: 1.25rem; }
  .timeline__content { padding: 1.25rem; }
  .contact-card    { padding: 1.5rem 1rem; }
}

@media (max-width: 360px) {
  .hero__name { font-size: 1.9rem; }
  .container  { padding: 0 1rem; }

  .hero__cta {
    flex-direction: column;
    align-items: center;
  }
  .btn {
    width: 100%;
    justify-content: center;
  }
}
