/* ======================================================
   DESIGN TOKENS
====================================================== */

:root {
  /* Colors */
  --bg-base: #0F172A;
  --bg-surface: #1E293B;
  --border-subtle: #334155;

  --text-primary: #E2E8F0;
  --text-secondary: #94A3B8;
  --text-muted: #64748B;

  --accent: #38BDF8;
  --accent-hover: #60A5FA;

  /* Typography */
  --font-main: 'Inter', system-ui, sans-serif;

  /* Radius */
  --radius-card: 14px;
  --radius-btn: 10px;

  /* Motion */
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --duration-fast: 180ms;
  --duration-normal: 280ms;
}

/* ======================================================
   BASE STYLES
====================================================== */

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: var(--bg-base);
  color: var(--text-primary);
  font-family: var(--font-main);
  line-height: 1.6;
}

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

/* Global smoothness */
* {
  transition:
    color var(--duration-fast) var(--ease-smooth),
    background-color var(--duration-fast) var(--ease-smooth),
    border-color var(--duration-fast) var(--ease-smooth),
    transform var(--duration-fast) var(--ease-smooth);
}

/* ======================================================
   NAVBAR
====================================================== */

.navbar {
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(8px);
}

.navbar-brand {
  letter-spacing: 0.5px;
}

.nav-link {
  color: var(--text-secondary);
}

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

/* ======================================================
   HERO SECTION
====================================================== */

.hero-section {
  min-height: 100vh;
  padding-top: 80px; /* offset for fixed navbar */
  display: flex;
  align-items: center;
  background: radial-gradient(
    circle at top,
    rgba(56, 189, 248, 0.08),
    transparent 60%
  );
}

.hero-content {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}

.hero-title {
  font-size: 3.25rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  align-items: center;
  flex-wrap: nowrap; /* 🔒 keeps it horizontal */
}

/* =========================
   HERO ACTION BUTTONS (HOVER UPDATE)
========================= */

:root {
  --icon-resume: #38BDF8;   /* soft cyan */
  --icon-github: #E5E7EB;   /* neutral light gray */
  --icon-linkedin: #0A66C2; /* LinkedIn blue */
  --icon-email: #FACC15;   /* warm amber */
}

.hero-btn {
  position: relative;
  width: 56px;
  height: 56px;

  display: flex;
  align-items: center;
  justify-content: center;

  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-btn);
  background: transparent;

  color: var(--text-primary);
  cursor: pointer;

  transition:
    border-color var(--duration-fast) var(--ease-smooth),
    transform var(--duration-fast) var(--ease-smooth),
    background-color var(--duration-fast) var(--ease-smooth),
    color var(--duration-fast) var(--ease-smooth);
}

/* Hover state (CONSISTENT BLUE BACKGROUND) */
.hero-btn:hover {
  background-color: var(--accent);
  border-color: var(--accent);
  
  transform: translateY(-3px);
}
/* Icon follows text color */
.hero-btn svg {
  stroke: currentColor;
  
}

.hero-btn:hover svg {
  stroke: #0F172A /* 🔒 forces dark icon on blue */
}

/* Label */
.hero-btn span {
  position: absolute;
  top: calc(100% + 8px);   /* 👈 BELOW the button */
  left: 50%;
  transform: translateX(-50%) translateY(-4px);

  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2px;

  color: var(--accent);

  opacity: 0;
  white-space: nowrap;
  pointer-events: none;

  transition:
    opacity var(--duration-fast) var(--ease-smooth),
    transform var(--duration-fast) var(--ease-smooth);
}

.hero-btn:hover span {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* =========================
   RESUME ICON SWAP (HOVER)
========================= */

.hero-btn--resume {
  position: relative;
  color: var(--icon-resume);
}

.hero-btn--resume .icon-default,
.hero-btn--resume .icon-hover {
  position: absolute;
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  transition: opacity var(--duration-fast) var(--ease-smooth),
              transform var(--duration-fast) var(--ease-smooth);
}

/* Default state */
.hero-btn--resume .icon-default {
  opacity: 1;
  transform: scale(1);
}

.hero-btn--resume .icon-hover {
  opacity: 0;
  transform: scale(0.9);
}

/* Hover state */
.hero-btn--resume:hover .icon-default {
  opacity: 0;
  transform: scale(0.9);
}

.hero-btn--resume:hover .icon-hover {
  opacity: 1;
  transform: scale(1.05);
}

.hero-btn--resume:hover {
  transform: translateY(-4px);
}

.hero-btn:active {
  transform: translateY(-1px) scale(0.98);
}

.hero-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.35);
}

.hero-btn span {
  transition-delay: 40ms;
}

/* GitHub */
.hero-btn[href*="github"] {
  color: var(--icon-github);
}

/* LinkedIn */
.hero-btn[href*="linkedin"] {
  color: var(--icon-linkedin);
}

/* Email */
.hero-btn[href^="mailto"] {
  color: var(--icon-email);
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
  }
}

/* ======================================================
   ABOUT + SKILLS
====================================================== */

.about-section {
  padding: 96px 0;
}

.about-block {
  max-width: 760px;
  margin: 0 auto 64px;
  text-align: center;
}

.about-text {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-top: 1.25rem;
  line-height: 1.7;
}

/* Skills Grid */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.skill-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card);
  padding: 20px;
  transition:
    transform var(--duration-normal) var(--ease-smooth),
    box-shadow var(--duration-normal) var(--ease-smooth),
    border-color var(--duration-normal) var(--ease-smooth);
}

.skill-card h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.skill-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* Subtle hover polish */
.skill-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.35);
}

/* Responsive */
@media (max-width: 768px) {
  .skills-grid {
    grid-template-columns: 1fr;
  }

  .about-section {
    padding: 72px 0;
  }
}

/* ======================================================
   ABOUT — IMMERSIVE UPGRADE
====================================================== */

.about-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 16px;
}

.about-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(56, 189, 248, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}

.about-icon svg {
  width: 18px;
  height: 18px;
}

.about-intro {
  text-align: center;
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 680px;
  margin: 0 auto 32px;
  line-height: 1.7;
}

/* Bullet-style points */
.about-points {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.about-point {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.about-point p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

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

/* Accent dot */
.about-point .dot {
  width: 8px;
  height: 8px;
  margin-top: 9px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}




/* ======================================================
   ABOUT IMAGE LAYOUT
====================================================== */

.about-layout {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 64px;
  align-items: center;
  margin-bottom: 120px; /* 👈 space before Skills */

}

/* Image frame */
.about-image-wrapper {
  display: flex;
  justify-content: center;
}

.about-image-frame {
  position: relative;
  padding: 18px;
  border-radius: 20px;
  background: linear-gradient(
    135deg,
    rgba(56, 189, 248, 0.25),
    rgba(56, 189, 248, 0.05)
  );
  transition:
    transform var(--duration-normal) var(--ease-smooth),
    box-shadow var(--duration-normal) var(--ease-smooth);
}

/* Glow layer */
.about-image-frame::before {
  content: "";
  position: absolute;
  inset: -12px;
  background: radial-gradient(
    circle,
    rgba(56, 189, 248, 0.25),
    transparent 70%
  );
  opacity: 0;
  transition: opacity var(--duration-normal) var(--ease-smooth);
  z-index: -1;
  border-radius: 24px;
}

.about-image {
  width: 100%;
  max-width: 360px;
  display: block;
  border-radius: 16px;
}

/* Hover effect */
.about-image-frame:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45);
}

.about-image-frame:hover::before {
  opacity: 1;
}

/* Responsive */
@media (max-width: 992px) {
  .about-layout {
    grid-template-columns: 1fr;
    gap: 48px;
    text-align: center;
  }
}

/* ======================================================
   SKILLS — COLOURFUL, PREMIUM
====================================================== */

.skills-groups {
  display: flex;
  flex-direction: column;
  gap: 64px;
  margin-top: 48px;
  align-items: center; /* 🔑 centers each skill group */
}

.skill-group {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center; /* centers title + icons */
}

.skill-title {
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  color: var(--text-primary);
}

.skill-items {
  display: grid;
  grid-template-columns: repeat(5, minmax(80px, 1fr));
  gap: 36px 44px;
  justify-items: center;
  max-width: 760px;
}

.skill-item {
  display: flex;
  flex-direction: column;
  text-align: center;
  align-items: center;  
  gap: 15px;

  font-size: 0.85rem;
  color: var(--text-secondary);

  transition:
    transform var(--duration-fast) var(--ease-smooth),
    filter var(--duration-fast) var(--ease-smooth);
}

.skill-item span {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* ICON SIZE — THIS IS CRITICAL */
.skill-item i {
  font-size: 45px;   /* 👈 premium size */
}

/* Hover polish */
.skill-item:hover {
  transform: translateY(-6px);
  filter: drop-shadow(0 8px 18px rgba(0,0,0,0.35));
}

@media (max-width: 768px) {
  .skill-items {
    grid-template-columns: repeat(3, minmax(72px, 1fr));
    gap: 24px 28px;
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .skill-items {
    grid-template-columns: repeat(2, minmax(72px, 1fr));
  }
}

/* ======================================================
   PROJECTS — IMMERSIVE, MINIMAL, CONFIDENT
====================================================== */

.projects-section {
  padding-top: 120px;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  margin-top: 64px;
}

/* CARD BASE */
.project-card {
  position: relative;
  padding: 32px;
  border-radius: 18px;
  background: linear-gradient(
    180deg,
    rgba(15, 23, 42, 0.65),
    rgba(15, 23, 42, 0.45)
  );
  border: 1px solid rgba(148, 163, 184, 0.14);
  overflow: hidden;

  transition:
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.35s ease;
}

/* Hover elevation */
.project-card:hover {
  transform: translateY(-6px);
  border-color: rgba(56, 189, 248, 0.6);
}

/* Inner glow */
.project-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at top,
    rgba(56, 189, 248, 0.18),
    transparent 65%
  );
  opacity: 0;
  transition: opacity 0.4s ease;
}

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

/* Content layers */
.project-layer {
  position: relative;
  z-index: 2;
}

/* SUMMARY MOTION */
.project-summary {
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.project-card:hover .project-summary {
  transform: translateY(-4px);
}

/* TITLES */
.project-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 6px;
  cursor: default;
}

.project-meta {
  display: block;
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-top: 4px;
}

/* IMPACT */
.project-impact {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 18px;
  max-width: 92%;
  cursor: default;
}

/* TECH TAGS */
.project-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  cursor: default;
}

.project-tech span {
  font-size: 0.7rem;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.12);
  color: var(--text-secondary);
}

/* ACTIONS */
.project-actions {
  display: flex;
  gap: 16px;
  align-items: center;
  cursor: pointer;
}

.project-link {
  font-size: 0.85rem;
  color: var(--accent);
}

.project-expand {
  background: none;
  border: none;
  font-size: 0.8rem;
  color: var(--text-secondary);
  cursor: pointer;
}

/* DETAILS LAYER (CLICK) */
.project-details {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition:
    max-height 0.5s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.3s ease;
    cursor: default;
}

.project-details ul {
  margin-top: 16px;
  padding-left: 18px;
  cursor: default;
}

.project-details li {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

/* Expanded */
.project-card.is-expanded .project-details {
  max-height: 300px;
  opacity: 1;
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .projects-grid {
    grid-template-columns: 1fr;
  }
}

/* ======================================================
   EXPERIENCE & TRAINING — IMMERSIVE BUT CALM
====================================================== */

.experience-section {
  padding-top: 120px;
}

/* Wrapper */
.experience-list {
  margin-top: 64px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

/* Card */
.experience-card {
  position: relative;
  padding: 32px;
  border-radius: 18px;

  background: linear-gradient(
    180deg,
    rgba(15, 23, 42, 0.6),
    rgba(15, 23, 42, 0.45)
  );

  border: 1px solid rgba(148, 163, 184, 0.14);

  transition:
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.35s ease;
}

/* Hover lift */
.experience-card:hover {
  transform: translateY(-5px);
  border-color: rgba(56, 189, 248, 0.6);
}

/* Inner glow (very subtle) */
.experience-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    circle at top,
    rgba(56, 189, 248, 0.15),
    transparent 65%
  );
  opacity: 0;
  transition: opacity 0.4s ease;
}

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

/* Header */
.experience-role {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.experience-org {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-top: 2px;
}

/* Duration */
.experience-duration {
  display: inline-block;
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-bottom: 18px;
}

/* Points */
.experience-points {
  padding-left: 18px;
  margin-bottom: 20px;
}

.experience-points li {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 10px;
  line-height: 1.6;
}

/* Tech tags */
.experience-tech {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.experience-tech span {
  font-size: 0.7rem;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.12);
  color: var(--text-secondary);
}

/* Responsive */
@media (max-width: 768px) {
  .experience-card {
    padding: 26px;
  }
}

/* ======================================================
   EDUCATION — CLEAN & GROUNDED
====================================================== */

.education-section {
  padding-top: 120px;
}

.education-list {
  margin-top: 48px;
}

.education-card {
  padding: 32px;
  border-radius: 18px;

  background: linear-gradient(
    180deg,
    rgba(15, 23, 42, 0.6),
    rgba(15, 23, 42, 0.45)
  );

  border: 1px solid rgba(148, 163, 184, 0.14);

  transition:
    transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.3s ease;
}

.education-card:hover {
  transform: translateY(-4px);
  border-color: rgba(56, 189, 248, 0.6);
}

.education-degree {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.education-institution {
  display: block;
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.education-duration {
  display: block;
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-bottom: 14px;
}

.education-focus {
  font-size: 0.95rem;
  color: var(--text-secondary);
  max-width: 85%;
}

/* ======================================================
   CONTACT / CTA SECTION
====================================================== */

.contact-section {
  padding-top: 120px;
  padding-bottom: 120px;
}

.contact-content {
  max-width: 720px;
}

.contact-subtitle {
  margin-top: 12px;
  margin-bottom: 40px;
  font-size: 1rem;
  color: var(--text-secondary);
}

.contact-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: nowrap;
  margin-bottom: 32px;
}

/* Visible email fallback */
.contact-email {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.contact-email a {
  color: var(--accent);
  text-decoration: none;
}

.contact-email a:hover {
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
  .contact-actions {
    flex-wrap: wrap;
    gap: 20px;
  }
}





/* ======================================================
   SECTIONS (BASE)
====================================================== */

section {
  padding: 96px 0;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  text-align: center;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
  text-align: center;
  max-width: 680px;
  margin: 0 auto 3rem;
}

/* ======================================================
   CARDS (PROJECTS / SKILLS)
====================================================== */

.card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card);
  padding: 1.75rem;
  height: 100%;
  transition:
    box-shadow var(--duration-normal) var(--ease-smooth),
    transform var(--duration-normal) var(--ease-smooth);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}

.card-title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

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

/* ======================================================
   FOOTER — POLISHED & CONSISTENT
====================================================== */

.footer {
  padding: 32px 0 28px;

  /* Same visual language as navbar */
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(8px);

  /* Soft separator instead of hard line */
  box-shadow: inset 0 1px 0 rgba(148, 163, 184, 0.08);
}

.footer-text {
  margin: 0;
  text-align: center;

  font-size: 0.8rem;
  color: var(--text-secondary);
  letter-spacing: 0.2px;
}


/* ======================================================
   RESPONSIVE
====================================================== */

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.4rem;
  }

  section {
    padding: 72px 0;
  }
}
