:root {
  --bg: #09111f;
  --surface: rgba(15, 23, 42, 0.72);
  --surface-border: rgba(148, 163, 184, 0.14);
  --text: #e5eefb;
  --muted: #9fb0c9;
  --primary: #4fd1c5;
  --primary-2: #60a5fa;
  --shadow: 0 20px 60px rgba(2, 6, 23, 0.45);
  --radius: 22px;
  --container: 1120px;
  --header-bg: rgba(7, 16, 29, 0.65);
  --tag-bg: rgba(15, 23, 42, 0.72);
  --button-secondary-bg: rgba(15, 23, 42, 0.45);
  --contact-bg: rgba(15, 23, 42, 0.48);
}

body.light-mode {
  --bg: #eef4fb;
  --surface: rgba(255, 255, 255, 0.96);
  --surface-border: rgba(15, 23, 42, 0.08);
  --text: #0f172a;
  --muted: #334155;
  --primary: #0284c7;
  --primary-2: #2563eb;
  --shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
  --header-bg: rgba(255, 255, 255, 0.92);
  --tag-bg: rgba(241, 245, 249, 0.95);
  --button-secondary-bg: rgba(255, 255, 255, 0.98);
  --contact-bg: rgba(255, 255, 255, 0.98);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  font-family: "Inter", sans-serif;
  line-height: 1.7;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(79, 209, 197, 0.08), transparent 30%),
    radial-gradient(circle at top right, rgba(96, 165, 250, 0.12), transparent 25%),
    linear-gradient(180deg, #07101d 0%, var(--bg) 100%);
  transition: background 0.3s ease, color 0.3s ease;
}

body.light-mode {
  background:
    radial-gradient(circle at top left, rgba(14, 165, 233, 0.14), transparent 30%),
    radial-gradient(circle at top right, rgba(37, 99, 235, 0.14), transparent 25%),
    linear-gradient(180deg, #ffffff 0%, var(--bg) 100%);
}

body.light-mode .profile-orb {
  background: radial-gradient(
    circle at 50% 35%,
    rgba(14, 165, 233, 0.14),
    rgba(37, 99, 235, 0.05) 55%,
    rgba(241, 245, 249, 1) 100%
  );
}

body.light-mode .profile-orb::after {
  background: linear-gradient(
    180deg,
    rgba(241, 245, 249, 0) 0%,
    rgba(241, 245, 249, 0.44) 38%,
    rgba(241, 245, 249, 0.74) 68%,
    rgba(241, 245, 249, 0.92) 100%
  );
}

body.light-mode .profile-image {
  filter: drop-shadow(0 16px 28px rgba(15, 23, 42, 0.18));
}

body.light-mode .name-highlight {
  background: linear-gradient(135deg, #0f172a 0%, #0f172a 45%, #2563eb 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

body.light-mode .hero-subtitle {
  color: #475569;
}

body.light-mode .btn-primary {
  color: #ffffff;
}

body.light-mode .bg-glow-1 {
  background: #38bdf8;
  opacity: 0.16;
}

body.light-mode .bg-glow-2 {
  background: #2563eb;
  opacity: 0.14;
}

body.light-mode .theme-toggle {
  border-color: rgba(37, 99, 235, 0.18);
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.08);
}

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

.container {
  width: min(100% - 32px, var(--container));
  margin: 0 auto;
}

.section {
  padding: 96px 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(148, 163, 184, 0.08);
  backdrop-filter: blur(16px);
  background: var(--header-bg);
  box-shadow: 0 10px 30px rgba(2, 6, 23, 0.08);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
}

.nav-no-brand {
  justify-content: flex-end;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.desktop-nav a,
.mobile-menu a {
  color: var(--muted);
  font-weight: 500;
  transition: color 0.2s ease, opacity 0.2s ease;
}

.desktop-nav a:hover,
.mobile-menu a:hover {
  color: var(--text);
}

.mobile-actions,
.mobile-menu {
  display: none;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 999px;
  background: var(--button-secondary-bg);
  color: var(--text);
  font: inherit;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.theme-toggle:hover,
.menu-toggle:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(2, 6, 23, 0.12);
}

.menu-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 12px;
  background: var(--button-secondary-bg);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 0 auto;
  background: var(--text);
  border-radius: 999px;
}

.mobile-menu {
  width: min(100% - 32px, var(--container));
  margin: 0 auto;
  padding: 0 0 12px;
  display: none;
  flex-direction: column;
  gap: 10px;
}

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

.mobile-menu a {
  padding: 12px 14px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 14px;
  background: var(--tag-bg);
}

.mobile-menu a + a {
  margin-top: 2px;
}

.hero {
  padding-top: 120px;
  padding-bottom: 72px;
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 420px);
  gap: 36px;
  align-items: center;
}

.hero-copy {
  max-width: 860px;
}

.hero-visual {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  margin-top: -232px;
}

.hero-visual-mobile {
  display: none;
}

.profile-orb {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(100%, 380px);
  aspect-ratio: 1 / 1;
  padding: 30px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 50%;
  background: radial-gradient(
    circle at 50% 35%,
    rgba(79, 209, 197, 0.22),
    rgba(96, 165, 250, 0.1) 55%,
    rgba(9, 17, 31, 0.92) 100%
  );
  box-shadow: 0 28px 60px rgba(2, 6, 23, 0.48);
}

.profile-orb::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 42%;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(9, 17, 31, 0) 0%,
    rgba(9, 17, 31, 0.78) 38%,
    rgba(9, 17, 31, 0.96) 68%,
    rgba(9, 17, 31, 1) 100%
  );
}

.profile-image-wrap {
  position: relative;
  z-index: 3;
  display: flex;
  justify-content: center;
}

.profile-image {
  position: relative;
  z-index: 3;
  display: block;
  width: 90%;
  max-width: none;
  height: auto;
  margin-top: 24%;
  object-fit: contain;
  object-position: center top;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--primary);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  font-size: clamp(2.8rem, 6vw, 5rem);
  line-height: 0.98;
  letter-spacing: -0.05em;
}

h2 {
  margin-bottom: 12px;
  font-size: clamp(1.95rem, 4vw, 3.1rem);
  line-height: 1.12;
  letter-spacing: -0.035em;
}

h3 {
  margin-bottom: 14px;
  font-size: 1.18rem;
  line-height: 1.3;
}

.card h3 {
  display: flex;
  align-items: center;
  gap: 10px;
}

.name-highlight {
  background: linear-gradient(135deg, #ffffff 0%, #d9f7ff 35%, #7dd3fc 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  max-width: 720px;
  margin-bottom: 18px;
  color: #c5d4ea;
  font-size: clamp(1.12rem, 2vw, 1.38rem);
  font-weight: 500;
  line-height: 1.55;
}

.lead {
  max-width: 680px;
  color: var(--muted);
  font-size: 1.06rem;
  line-height: 1.9;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 168px;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 700;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  color: #04111e;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  box-shadow: 0 16px 40px rgba(96, 165, 250, 0.22);
}

.btn-secondary {
  color: var(--text);
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: var(--button-secondary-bg);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.hero-meta span,
.tags span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 999px;
  background: var(--tag-bg);
  color: var(--muted);
  font-size: 0.94rem;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 30px;
}

.section-intro {
  max-width: 700px;
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.8;
}

.card {
  padding: 28px;
  border: 1px solid var(--surface-border);
  border-radius: var(--radius);
  background: var(--surface);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-2px);
  border-color: rgba(96, 165, 250, 0.18);
  box-shadow: 0 24px 60px rgba(2, 6, 23, 0.18);
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.timeline,
.skills-grid,
.highlight-grid {
  display: grid;
  gap: 22px;
}

.skills-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.highlight-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.timeline-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 12px;
}

.company,
.period,
.card p,
.card li {
  color: var(--muted);
}

.period {
  white-space: nowrap;
  font-size: 0.94rem;
  font-weight: 600;
}

.timeline-item ul {
  margin: 0;
  padding-left: 18px;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tags span img,
.contact-links a img {
  display: inline-block;
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.tags span {
  min-height: 40px;
}

.icon-sqlserver {
  filter: brightness(0) invert(1);
}

.icon-wide {
  width: 22px !important;
  height: 22px !important;
  border-radius: 4px;
}

.tags span img[alt="Wazuh"] {
  width: 20px;
  height: 20px;
}

.stat-card strong {
  display: block;
  margin-bottom: 10px;
  font-size: 1.15rem;
}

.contact {
  padding: 40px 28px;
  text-align: center;
}

.contact-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 24px;
}

.contact-links a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 999px;
  background: var(--contact-bg);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-links a:hover {
  transform: translateY(-1px);
  border-color: rgba(96, 165, 250, 0.18);
  box-shadow: 0 14px 30px rgba(2, 6, 23, 0.1);
}

.site-footer {
  padding: 28px 0 44px;
}

.footer-inner {
  color: var(--muted);
  font-size: 0.94rem;
}

.bg-glow {
  position: fixed;
  z-index: -1;
  width: 360px;
  height: 360px;
  opacity: 0.18;
  border-radius: 999px;
  filter: blur(90px);
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.bg-glow-1 {
  top: 5%;
  left: -120px;
  background: #4fd1c5;
}

.bg-glow-2 {
  top: 20%;
  right: -120px;
  background: #60a5fa;
}

@media (max-width: 900px) {
  .hero-layout,
  .skills-grid,
  .highlight-grid {
    grid-template-columns: 1fr;
  }

  .timeline-top {
    flex-direction: column;
  }

  .hero-visual-desktop {
    display: none;
  }

  .hero-visual-mobile {
    display: flex;
    margin-top: -56px;
    margin-bottom: 16px;
  }

  .profile-orb {
    width: min(100%, 210px);
  }

  .profile-image {
    width: 98%;
    margin-top: 36%;
  }
}

@media (max-width: 700px) {
  .reveal {
    opacity: 1;
    transform: none;
  }

  .section {
    padding: 72px 0;
  }

  .nav {
    min-height: 68px;
  }

  .desktop-nav {
    display: none;
  }

  .mobile-actions {
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .hero {
    padding-top: 92px;
  }

  .card {
    padding: 22px;
  }

  .hero-meta span,
  .tags span,
  .contact-links a {
    width: 100%;
    justify-content: center;
  }
}
