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

html {
  color-scheme: dark;
  scroll-behavior: smooth;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, Helvetica, Arial, sans-serif;
  background: #0b0d12;
  color: #e6e7eb;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* ------------------
   VARIABLES
------------------- */
:root {
  --bg-primary: #0b0d12;
  --bg-secondary: #121520;
  --bg-card: #161a27;
  --border-subtle: rgba(255, 255, 255, 0.08);

  --text-primary: #e6e7eb;
  --text-secondary: #b5b8c6;
  --text-muted: #8b90a3;

  --accent: #5b8cff;
  --accent-soft: rgba(91, 140, 255, 0.15);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;

  --max-width: 1100px;
}

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

section {
  padding: 5rem 0;
}

h1,
h2,
h3 {
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.3rem, 5vw, 3.3rem);
}

h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
}

h3 {
  font-size: 1.15rem;
}

p {
  color: var(--text-secondary);
}

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

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

a:hover {
  text-decoration: underline;
}

/* ------------------
   BUTTONS
------------------- */
.btn-primary,
.btn-secondary,
.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.15rem;
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-size: 0.9rem;
  border: 1px solid transparent;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(91, 140, 255, 0.3);
}

.btn-secondary {
  background: var(--bg-card);
  border-color: var(--border-subtle);
}

.btn-secondary:hover {
  background: #1c2133;
}

.btn-outline {
  border-color: var(--border-subtle);
  color: var(--text-secondary);
}

.btn-outline:hover {
  border-color: var(--accent);
  color: #fff;
}

/* ------------------
   HEADER
------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 13, 18, 0.8);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-subtle);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

/* Logo */
.logo {
  font-weight: 600;
  letter-spacing: -0.02em;
}

/* Desktop nav */
.site-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.site-nav a {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.site-nav a:hover {
  color: #fff;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  -webkit-appearance: none;
  appearance: none;
}

.hamburger span {
  display: block;
  height: 3px;
  width: 100%;
  background: #5b8cff;
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

/* ------------------
   MOBILE NAV
------------------- */
@media (max-width: 768px) {
  .site-nav {
    position: absolute;
    top: 64px;
    right: 0;
    background: rgba(11, 13, 18, 0.98);
    width: min(90vw, 260px);
    padding: 1rem;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    display: none;
    flex-direction: column;
    gap: 0.75rem;
  }

  .site-nav.active {
    display: flex;
  }

  .hamburger {
    display: flex;
  }
}

/* Hamburger animation */
.hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

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

.hamburger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ------------------
   HERO
------------------- */
.hero {
  padding-top: 6rem;
  padding-bottom: 3rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  align-items: center;
}

.hero-text p {
  margin-top: 1.25rem;
  max-width: 560px;
}

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

.hero-visual {
  display: flex;
  justify-content: center;
}

.avatar-placeholder {
  width: 260px;
  height: 260px;
  object-fit: cover;
  border-radius: 26%;
  border: 3px solid var(--accent);
  box-shadow: 
    0 10px 30px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.04) inset;
  transition: 
    filter 0.35s ease,
    transform 0.25s ease,
    box-shadow 0.25s ease;
    box-shadow: 
    0 16px 40px rgba(91, 140, 255, 0.25),
    0 0 0 1px rgba(255, 255, 255, 0.06) inset;

}


/* ------------------
   EXPERIENCE
------------------- */
.work {
  background: var(--bg-secondary);
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.75rem;
}

.work-card {
  background: var(--bg-card);
  padding: 1.75rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out, box-shadow 0.3s ease;
}

.work-card.visible {
  opacity: 1;
  transform: translateY(0);
}

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

.role-header {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.role-header span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.work-card p {
  font-size: 0.95rem;
}

.work-bullets {
  margin-top: 0.5rem;
  padding-left: 1.1rem;
  display: grid;
  gap: 0.45rem;
}

.work-bullets li {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* ------------------
   LOGO BADGES
------------------- */
.role-title,
.education-header {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.logo-badge {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: rgba(91, 140, 255, 0.12);
  border: 1px solid rgba(91, 140, 255, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
}

.logo-badge img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  opacity: 0.9;
  display: block;
}

.role-title h3 {
  margin: 0;
}

.role-title span {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.education-header h3 {
  margin-bottom: 0.2rem;
}

/* ------------------
   ABOUT
------------------- */
.about {
  padding-top: 3rem;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 3rem;
}

.skills h3 {
  margin-bottom: 1rem;
}

.skills ul {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 0.6rem;
}

.skills li {
  padding: 0.55rem 0.8rem;
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  font-size: 0.85rem;
}

/* ------------------
   EDUCATION
------------------- */
.education {
  background: var(--bg-secondary);
}

.education-card {
  max-width: 520px;
  background: var(--bg-card);
  padding: 1.75rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}

/* ------------------
   CONTACT
------------------- */
.contact {
  background: linear-gradient(
    180deg,
    rgba(91, 140, 255, 0.08),
    rgba(0, 0, 0, 0)
  );
  text-align: center;
}

.contact p {
  max-width: 520px;
  margin: 0.75rem auto 1.75rem;
}

.contact-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ------------------
   FOOTER
------------------- */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  padding: 2rem 0;
  font-size: 1rem;
}

.site-footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  gap: 1rem;
}

.footer-links a {
  color: var(--text-muted);
}

.footer-links a:hover {
  color: #fff;
}

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

  .hero-visual {
    order: -1;
  }

  section {
    padding: 4rem 0;
  }
}

/* ------------------
   SCROLL ANIMATIONS
------------------- */
.scroll-animate {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.scroll-animate.visible {
  opacity: 1;
  transform: translateY(0);
}
