/* Font setup retained from original template */
@font-face {
  font-family: 'Lato';
  font-style: italic;
  font-weight: 400;
  src: local('Lato Italic'), local('Lato-Italic'), url(https://fonts.gstatic.com/s/lato/v15/S6u8w4BMUTPHjxsAUi-qNiXg7eU0.woff2) format('woff2');
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Lato';
  font-style: italic;
  font-weight: 400;
  src: local('Lato Italic'), local('Lato-Italic'), url(https://fonts.gstatic.com/s/lato/v15/S6u8w4BMUTPHjxsAXC-qNiXg7Q.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Lato';
  font-style: italic;
  font-weight: 700;
  src: local('Lato Bold Italic'), local('Lato-BoldItalic'), url(https://fonts.gstatic.com/s/lato/v15/S6u_w4BMUTPHjxsI5wq_FQftx9897sxZ.woff2) format('woff2');
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Lato';
  font-style: italic;
  font-weight: 700;
  src: local('Lato Bold Italic'), local('Lato-BoldItalic'), url(https://fonts.gstatic.com/s/lato/v15/S6u_w4BMUTPHjxsI5wq_Gwftx9897g.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 400;
  src: local('Lato Regular'), local('Lato-Regular'), url(https://fonts.gstatic.com/s/lato/v15/S6uyw4BMUTPHjxAwXiWtFCfQ7A.woff2) format('woff2');
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 400;
  src: local('Lato Regular'), local('Lato-Regular'), url(https://fonts.gstatic.com/s/lato/v15/S6uyw4BMUTPHjx4wXiWtFCc.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 700;
  src: local('Lato Bold'), local('Lato-Bold'), url(https://fonts.gstatic.com/s/lato/v15/S6u9w4BMUTPHh6UVSwaPGQ3q5d0N7w.woff2) format('woff2');
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Lato';
  font-style: normal;
  font-weight: 700;
  src: local('Lato Bold'), local('Lato-Bold'), url(https://fonts.gstatic.com/s/lato/v15/S6u9w4BMUTPHh6UVSwiPGQ3q5d0.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #050d1c;
  --bg-alt: #0c1b30;
  --card: #10233c;
  --card-soft: #0d1a2c;
  --border: #1c3651;
  --accent: #5feaff;
  --accent-strong: #20d6ff;
  --accent-secondary: #8a5cff;
  --text: #e3efff;
  --text-muted: #9ab3d6;
  --chip-bg: rgba(95, 234, 255, 0.12);
  --chip-border: rgba(95, 234, 255, 0.4);
  --shadow: 0 20px 60px rgba(4, 16, 34, 0.55);
}

@keyframes aurora {
  0% {
    background-position: 0% 0%, 100% 0%, 0% 0%, 0% 0%;
  }
  50% {
    background-position: 100% 100%, 0% 100%, 50% 50%, 0% 0%;
  }
  100% {
    background-position: 0% 0%, 100% 0%, 100% 100%, 0% 0%;
  }
}

@keyframes floatPulse {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(0, 8px, 0) scale(1.02);
  }
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  position: relative;
  background: radial-gradient(circle at 20% 20%, rgba(32, 214, 255, 0.12), transparent 45%),
              radial-gradient(circle at 80% 0%, rgba(138, 92, 255, 0.14), transparent 55%),
              linear-gradient(160deg, rgba(12, 34, 58, 0.65), rgba(5, 13, 24, 0.9)),
              var(--bg);
  background-size: 180% 180%, 200% 200%, 260% 260%, 100% 100%;
  animation: aurora 26s ease-in-out infinite;
  color: var(--text);
  font-family: 'Lato', Verdana, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover,
a:focus {
  color: var(--accent-secondary);
}

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

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: linear-gradient(0deg, rgba(32, 214, 255, 0.05) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(32, 214, 255, 0.05) 1px, transparent 1px);
  background-size: 140px 140px;
  opacity: 0.6;
  pointer-events: none;
  z-index: -1;
}

::selection {
  background: rgba(95, 234, 255, 0.25);
  color: var(--text);
}

main {
  max-width: 1080px;
  margin: 0 auto;
  padding: 48px 24px 96px;
  position: relative;
  z-index: 1;
}

main::before {
  content: '';
  position: absolute;
  top: 0;
  right: -120px;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(138, 92, 255, 0.18) 0%, rgba(138, 92, 255, 0) 70%);
  filter: blur(10px);
  opacity: 0.6;
  pointer-events: none;
  z-index: -1;
}

.hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 44px;
  padding: 52px;
  border-radius: 36px;
  background: linear-gradient(135deg, rgba(14, 35, 60, 0.9), rgba(5, 15, 27, 0.92));
  border: 1px solid rgba(95, 234, 255, 0.18);
  box-shadow: 0 26px 60px rgba(2, 10, 22, 0.5);
  backdrop-filter: blur(18px);
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 90% -20%, rgba(95, 234, 255, 0.16), transparent 65%),
              radial-gradient(circle at 0% 120%, rgba(138, 92, 255, 0.12), transparent 65%);
  pointer-events: none;
  z-index: 0;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 18px;
  border-radius: 28px;
  border: 1px solid rgba(95, 234, 255, 0.08);
  pointer-events: none;
  z-index: 0;
}

.hero-content {
  flex: 1 1 340px;
  position: relative;
  z-index: 1;
  max-width: 540px;
}

.hero-media {
  flex: 0 1 280px;
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  border-radius: 28px;
  background: rgba(6, 20, 35, 0.68);
  border: 1px solid rgba(95, 234, 255, 0.2);
  backdrop-filter: blur(14px);
  box-shadow: 0 18px 44px rgba(4, 16, 34, 0.45);
  overflow: hidden;
}

.hero-media::before {
  content: '';
  position: absolute;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(95, 234, 255, 0.35) 0%, rgba(95, 234, 255, 0) 65%);
  transform: scale(0.85);
  opacity: 0.8;
  z-index: 1;
  pointer-events: none;
}

.hero-photo {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(95, 234, 255, 0.45);
  box-shadow: 0 18px 44px rgba(5, 13, 28, 0.55);
  position: relative;
  z-index: 2;
}

.hero-overlay {
  position: absolute;
  width: 240px;
  top: -24px;
  right: -32px;
  opacity: 0.55;
  filter: drop-shadow(0 18px 48px rgba(8, 21, 38, 0.65));
  mix-blend-mode: screen;
  pointer-events: none;
  z-index: 0;
  animation: floatPulse 8s ease-in-out infinite;
}

.hero-kicker {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 12px;
  color: var(--accent);
  margin: 0 0 12px 0;
}

.hero-title {
  font-size: 40px;
  margin: 0 0 12px 0;
  line-height: 1.08;
  background: linear-gradient(120deg, var(--text) 0%, rgba(95, 234, 255, 0.85) 45%, rgba(138, 92, 255, 0.85) 100%);
  -webkit-background-clip: text;
  color: transparent;
}

.hero-subtitle {
  margin: 0 0 28px 0;
  color: var(--text-muted);
  font-size: 18px;
  max-width: 520px;
}

.hero-highlights {
  list-style: none;
  padding: 0;
  margin: 0 0 28px 0;
  display: grid;
  gap: 12px;
}

.hero-highlights li {
  background: rgba(9, 28, 47, 0.55);
  border: 1px solid rgba(95, 234, 255, 0.22);
  border-radius: 18px;
  padding: 14px 18px 14px 44px;
  position: relative;
  font-size: 15px;
  min-height: 48px;
  display: flex;
  align-items: center;
  box-shadow: 0 12px 30px rgba(5, 13, 28, 0.35);
}

.hero-highlights li::before {
  content: '';
  position: absolute;
  left: 18px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-secondary), var(--accent));
  box-shadow: 0 0 12px rgba(95, 234, 255, 0.45);
}

.hero-highlights li::after {
  content: '';
  position: absolute;
  right: 18px;
  top: 50%;
  width: 28px;
  height: 1px;
  background: linear-gradient(90deg, rgba(95, 234, 255, 0.3), rgba(138, 92, 255, 0));
  transform: translateY(-50%);
  opacity: 0.6;
}

.hero-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-links a {
  padding: 10px 22px;
  border-radius: 999px;
  border: 1px solid rgba(95, 234, 255, 0.32);
  background: rgba(5, 14, 26, 0.5);
  font-size: 14px;
  color: var(--text);
  box-shadow: 0 12px 28px rgba(5, 14, 26, 0.35);
  transition: all 0.2s ease;
}

.hero-links a:hover {
  transform: translateY(-2px);
  background: rgba(32, 214, 255, 0.14);
  border-color: rgba(95, 234, 255, 0.55);
  box-shadow: 0 16px 36px rgba(3, 12, 24, 0.45);
}

.card .hero-links {
  justify-content: flex-start;
  gap: 10px;
}

.card .hero-links a {
  padding: 8px 18px;
  border-radius: 14px;
  border: 1px solid rgba(95, 234, 255, 0.24);
  background: rgba(8, 22, 38, 0.6);
  font-size: 13px;
  box-shadow: 0 10px 24px rgba(4, 12, 24, 0.35);
}

.section {
  margin-top: 72px;
  position: relative;
  z-index: 1;
}

.section::before {
  content: '';
  position: absolute;
  top: -36px;
  left: 0;
  width: 160px;
  height: 1px;
  background: linear-gradient(90deg, rgba(95, 234, 255, 0.4), rgba(138, 92, 255, 0));
  border-radius: 999px;
}

.section-heading {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
  position: relative;
}

.section-heading img {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid rgba(95, 234, 255, 0.25);
  background: rgba(15, 35, 59, 0.7);
  padding: 8px;
}

.section-heading::after {
  content: '';
  position: absolute;
  left: 58px;
  bottom: -10px;
  width: 120px;
  height: 2px;
  background: linear-gradient(90deg, rgba(95, 234, 255, 0.35), rgba(138, 92, 255, 0));
  opacity: 0.8;
}

.section-heading h2 {
  margin: 0;
  font-size: 28px;
  font-weight: 700;
  background: linear-gradient(120deg, var(--text) 0%, rgba(95, 234, 255, 0.8) 60%, rgba(138, 92, 255, 0.75) 100%);
  -webkit-background-clip: text;
  color: transparent;
}

.section-intro {
  margin: 0 0 28px 0;
  color: var(--text-muted);
  max-width: 720px;
  line-height: 1.7;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.card {
  background: linear-gradient(140deg, rgba(10, 26, 45, 0.9), rgba(6, 18, 32, 0.9));
  border: 1px solid rgba(95, 234, 255, 0.14);
  border-radius: 24px;
  padding: 26px;
  box-shadow: 0 18px 44px rgba(5, 13, 28, 0.42);
  backdrop-filter: blur(16px);
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, border 0.2s ease, box-shadow 0.2s ease;
}

.card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(95, 234, 255, 0.08), rgba(138, 92, 255, 0.04));
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 0;
}

.card > * {
  position: relative;
  z-index: 1;
}

.card-header {
  display: flex;
  align-items: center;
  gap: 18px;
}

.card-icon {
  width: 60px;
  height: 60px;
  flex-shrink: 0;
  border-radius: 16px;
  border: 1px solid rgba(95, 234, 255, 0.22);
  background: rgba(15, 35, 57, 0.6);
  padding: 6px;
  box-shadow: 0 12px 26px rgba(4, 16, 34, 0.35);
}

.card-title {
  margin: 0;
  font-size: 20px;
  line-height: 1.3;
}

.card-title a {
  color: var(--text);
  transition: color 0.2s ease;
}

.card-title a:hover {
  color: var(--accent-strong);
}

.card-meta {
  margin: 6px 0 0 0;
  color: var(--text-muted);
  font-size: 14px;
}

.card:hover {
  transform: translateY(-6px);
  border-color: rgba(95, 234, 255, 0.35);
  box-shadow: 0 24px 56px rgba(3, 12, 24, 0.6);
}

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

.detail-list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 10px;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.6;
}

.detail-list li::marker {
  color: var(--accent-secondary);
}

.tagline {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent);
  display: block;
  margin-bottom: 6px;
}

.stack-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.stack-card {
  background: rgba(10, 26, 44, 0.78);
  border: 1px solid rgba(95, 234, 255, 0.16);
  border-radius: 22px;
  padding: 24px;
  display: grid;
  gap: 12px;
  backdrop-filter: blur(12px);
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, border 0.2s ease, box-shadow 0.2s ease;
}

.stack-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(95, 234, 255, 0.06), rgba(138, 92, 255, 0.04));
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 0;
}

.stack-card > * {
  position: relative;
  z-index: 1;
}

.stack-card h3 {
  margin: 0;
  font-size: 18px;
  color: var(--text);
  letter-spacing: 0.02em;
}

.stack-card:hover {
  transform: translateY(-4px);
  border-color: rgba(95, 234, 255, 0.3);
  box-shadow: 0 20px 46px rgba(4, 12, 24, 0.45);
}

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

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

.chip {
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(12, 32, 52, 0.74);
  border: 1px solid rgba(95, 234, 255, 0.2);
  font-size: 13px;
  color: var(--text);
  backdrop-filter: blur(10px);
  position: relative;
  overflow: hidden;
}

.chip::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(95, 234, 255, 0.18), rgba(138, 92, 255, 0));
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.chip:hover::after {
  opacity: 1;
}

footer {
  margin-top: 88px;
  color: var(--text-muted);
  font-size: 13px;
  text-align: right;
  border-top: 1px solid rgba(95, 234, 255, 0.12);
  padding-top: 18px;
}

footer a {
  color: var(--accent);
}

@media (max-width: 720px) {
  main {
    padding: 32px 20px 72px;
  }

  .hero {
    padding: 36px 24px;
    gap: 32px;
    border-radius: 30px;
  }

  .hero-title {
    font-size: 32px;
  }

  .hero-media {
    width: 100%;
    padding: 16px;
  }

  .hero-photo {
    width: 200px;
    height: 200px;
  }

  .hero-overlay {
    width: 220px;
    top: -18px;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    opacity: 0.45;
  }

  .card-grid {
    gap: 20px;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 30px 20px;
    border-radius: 26px;
  }

  .hero-links a {
    width: 100%;
    text-align: center;
  }

  .hero-highlights li {
    font-size: 14px;
  }
}
