:root {
  --bg: #0a0f1f;
  --surface: rgba(16, 23, 43, 0.72);
  --text: #eef3ff;
  --muted: #b6c1de;
  --insight-blue: #12809b;
  --brand-rgb: 49, 199, 48;
  --brand: #31c730;
  --brand-soft: rgba(var(--brand-rgb), 0.2);
  --border: rgba(186, 208, 255, 0.2);
  --radius: 20px;
  --shadow: 0 18px 46px rgba(3, 7, 24, 0.5);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: #050814;
}

body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background: #050814;
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

h1,
h2,
h3,
.logo {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  letter-spacing: -0.03em;
}

p {
  margin: 0;
}

.container {
  width: min(1120px, calc(100% - 2.5rem));
  margin: 0 auto;
}

.bg-glow {
  position: fixed;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.45;
  z-index: 1;
}

.bg-motion {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  opacity: 0.9;
  transform: translateZ(0);
}

.bg-motion::before {
  content: "";
  position: absolute;
  inset: -30% -20%;
  background:
    radial-gradient(circle at 16% 18%, rgba(65, 226, 255, 0.68) 0%, rgba(65, 226, 255, 0.14) 36%, transparent 62%),
    radial-gradient(circle at 84% 14%, rgba(255, 95, 192, 0.64) 0%, rgba(255, 95, 192, 0.14) 38%, transparent 62%),
    radial-gradient(circle at 68% 84%, rgba(121, 255, 160, 0.62) 0%, rgba(121, 255, 160, 0.14) 36%, transparent 62%),
    radial-gradient(circle at 42% 48%, rgba(138, 130, 255, 0.52) 0%, rgba(138, 130, 255, 0.12) 30%, transparent 58%);
  background-size: 120% 120%;
  opacity: 0.7;
  animation: auroraFlow 18s ease-in-out infinite alternate;
}

.bg-motion::after {
  content: "";
  position: absolute;
  inset: -15% -10%;
  background:
    conic-gradient(
      from 180deg at 50% 50%,
      rgba(86, 222, 255, 0.26),
      rgba(255, 116, 206, 0.24),
      rgba(121, 255, 160, 0.24),
      rgba(86, 222, 255, 0.26)
    ),
    repeating-linear-gradient(
      -26deg,
      rgba(255, 255, 255, 0.14) 0,
      rgba(255, 255, 255, 0.14) 1px,
      transparent 1px,
      transparent 20px
    );
  mix-blend-mode: normal;
  opacity: 0.26;
  animation: spectrumSpin 28s linear infinite;
}

.bg-particle {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  opacity: 0.5;
  filter: blur(0.1px);
  box-shadow: 0 0 10px currentColor;
}

.bg-particle.p1 {
  top: 12%;
  left: 8%;
  color: #67e8ff;
  animation: particleFloatA 14s ease-in-out infinite;
}

.bg-particle.p2 {
  top: 22%;
  right: 14%;
  color: #ff7dd6;
  animation: particleFloatB 16s ease-in-out infinite;
}

.bg-particle.p3 {
  top: 58%;
  left: 18%;
  color: #99ffa8;
  animation: particleFloatC 15s ease-in-out infinite;
}

.bg-particle.p4 {
  top: 72%;
  right: 22%;
  color: #8f95ff;
  animation: particleFloatA 17s ease-in-out infinite;
}

.bg-particle.p5 {
  top: 36%;
  left: 52%;
  color: #59f0ff;
  animation: particleFloatB 13s ease-in-out infinite;
}

.bg-particle.p6 {
  bottom: 10%;
  left: 40%;
  color: #ff94e2;
  animation: particleFloatC 18s ease-in-out infinite;
}

.bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(6px);
  opacity: 0.58;
}

.bg-orb-a {
  width: 360px;
  height: 360px;
  top: -14%;
  left: -140px;
  background: radial-gradient(circle at 35% 35%, rgba(79, 225, 255, 0.86) 0%, rgba(47, 146, 233, 0.62) 52%, transparent 74%);
  animation: floatA 18s ease-in-out infinite;
}

.bg-orb-b {
  width: 320px;
  height: 320px;
  top: 48%;
  right: -120px;
  background: radial-gradient(circle at 40% 40%, rgba(255, 124, 210, 0.82) 0%, rgba(199, 76, 152, 0.56) 54%, transparent 74%);
  animation: floatB 20s ease-in-out infinite;
}

.bg-orb-c {
  width: 280px;
  height: 280px;
  top: 66%;
  left: 36%;
  background: radial-gradient(circle at 45% 45%, rgba(144, 255, 170, 0.78) 0%, rgba(58, 192, 138, 0.52) 54%, transparent 74%);
  animation: floatC 22s ease-in-out infinite;
}

.bg-line {
  position: absolute;
  height: 2px;
  width: 56vw;
  background: linear-gradient(90deg, rgba(120, 233, 255, 0), rgba(120, 233, 255, 0.96), rgba(120, 233, 255, 0));
  opacity: 0.38;
  filter: blur(0.2px);
}

.bg-line-a {
  top: 30%;
  left: -20%;
  transform: rotate(-11deg);
  animation: lineDriftA 16s linear infinite;
}

.bg-line-b {
  top: 68%;
  right: -20%;
  transform: rotate(-11deg);
  animation: lineDriftB 18s linear infinite;
}

main,
.site-header,
.site-footer {
  position: relative;
  z-index: 2;
}

.bg-glow-1 {
  top: -160px;
  left: -120px;
  background: #46d8ff;
}

.bg-glow-2 {
  right: -120px;
  bottom: -120px;
  background: #ff61c6;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
  background: rgba(8, 14, 30, 0.65);
  border-bottom: 1px solid rgba(153, 193, 255, 0.2);
}

.nav {
  min-height: 112px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.52rem;
  line-height: 1;
}

.logo-mark {
  width: 92px;
  height: 92px;
  object-fit: contain;
  display: block;
}

.logo-text {
  display: inline-flex;
  align-items: baseline;
  gap: 0.38rem;
}

.logo-text-a {
  color: var(--insight-blue);
  text-shadow: 0 0 12px rgba(121, 228, 255, 0.24);
}

.logo-text-b {
  color: var(--brand);
  text-shadow: 0 0 12px rgba(var(--brand-rgb), 0.24);
}

.nav-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--brand);
}

.nav-toggle {
  display: none;
  border: 0;
  background: transparent;
  padding: 0.25rem;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  border-radius: 2px;
  margin: 5px 0;
  background: var(--text);
}

.hero {
  padding: 7.5rem 0 4rem;
  display: grid;
  gap: 1.15rem;
}

.eyebrow {
  color: var(--brand);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
}

.hero h1 {
  font-size: clamp(2.2rem, 5.6vw, 4.2rem);
  max-width: 16ch;
}

.hero-description {
  max-width: 62ch;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.8rem 1.3rem;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.btn-primary {
  background: var(--brand);
  color: #06131d;
}

.btn-secondary {
  background: var(--brand-soft);
  color: var(--brand);
  border-color: rgba(31, 92, 63, 0.12);
}

.section {
  padding: 4rem 0;
}

.section-header {
  display: grid;
  gap: 0.6rem;
  margin-bottom: 1.8rem;
}

.section h2 {
  font-size: clamp(1.75rem, 3vw, 2.6rem);
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.card,
.project-card,
.timeline li,
.contact-form {
  background: linear-gradient(160deg, rgba(23, 33, 58, 0.76) 0%, rgba(16, 24, 44, 0.66) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.card,
.project-card,
.timeline li {
  padding: 1.2rem;
}

.card h3,
.project-card h3,
.timeline h3 {
  margin-bottom: 0.45rem;
}

.card p,
.project-card p,
.timeline p,
.section-header p {
  color: var(--muted);
}

.wide-card {
  display: grid;
  gap: 1rem;
}

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

.bullet-list {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--muted);
  display: grid;
  gap: 0.45rem;
}

.bullet-list-wide {
  margin-top: 0.5rem;
}

.section-subtitle {
  margin-top: 1.8rem;
}

.section-subtitle h3 {
  font-size: 1.1rem;
}

.phase-list {
  margin: 0.75rem 0 0;
  padding-left: 1.2rem;
  display: grid;
  gap: 0.5rem;
  color: var(--muted);
}

.long-timeline {
  margin-bottom: 1.1rem;
}

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

.card a:not(.contact-email),
.project-card a {
    color: var(--brand);
}

.contact-email{
    display:block;
    width:100%;
    color:#ffffff !important;
    text-decoration:none !important;
    font-weight:500;
    overflow-wrap:anywhere;
    word-break:break-word;
    white-space:normal;
}

.contact-email:hover{
    color:#ffffff !important;
}

.card a:visited,
.project-card a:visited {
  color: var(--brand);
}

.card p a,
.project-card p a {
  display: inline-block;
  max-width: 100%;
  line-height: 1.5;
  text-decoration-thickness: 1px;
}

.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.95rem;
}

.timeline li {
  display: grid;
  gap: 0.45rem;
}

.timeline span {
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand);
  font-weight: 800;
  font-size: 0.85rem;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.contact {
  padding-bottom: 6rem;
}

.contact-form {
  padding: 1.3rem;
  display: grid;
  gap: 0.8rem;
  max-width: 720px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(8, 16, 33, 0.74);
  color: var(--text);
  font: inherit;
  padding: 0.8rem 0.85rem;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid rgba(var(--brand-rgb), 0.9);
  outline-offset: 1px;
}

.site-footer {
  border-top: 1px solid var(--border);
  background: rgba(6, 12, 26, 0.72);
}

@media (max-width: 600px) {
  .logo {
    font-size: 1.18rem;
    gap: 0.7rem;
  }

  .logo-mark {
    width: 64px;
    height: 64px;
  }

  .logo-text {
    gap: 0.26rem;
  }
}

.footer-content {
  min-height: 78px;
  display: flex;
  align-items: center;
}

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

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

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

@keyframes floatA {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(100px, -44px) scale(1.18);
  }
}

@keyframes floatB {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(-102px, 42px) scale(1.2);
  }
}

@keyframes floatC {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(58px, -58px) scale(1.18);
  }
}

@keyframes lineDriftA {
  0% {
    transform: translateX(0) rotate(-11deg);
  }
  100% {
    transform: translateX(36vw) rotate(-11deg);
  }
}

@keyframes lineDriftB {
  0% {
    transform: translateX(0) rotate(-11deg);
  }
  100% {
    transform: translateX(-36vw) rotate(-11deg);
  }
}

@keyframes auroraFlow {
  0% {
    transform: translate3d(0, 0, 0) scale(1.04);
  }
  50% {
    transform: translate3d(-5.2%, 3.6%, 0) scale(1.14);
  }
  100% {
    transform: translate3d(4.2%, -3.4%, 0) scale(1.12);
  }
}

@keyframes spectrumSpin {
  0% {
    transform: rotate(0deg) scale(1.02);
  }
  100% {
    transform: rotate(360deg) scale(1.08);
  }
}

@keyframes particleFloatA {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 0.65;
  }
  50% {
    transform: translate3d(30px, -36px, 0) scale(1.4);
    opacity: 1;
  }
}

@keyframes particleFloatB {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 0.6;
  }
  50% {
    transform: translate3d(-34px, 24px, 0) scale(1.35);
    opacity: 0.98;
  }
}

@keyframes particleFloatC {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 0.65;
  }
  50% {
    transform: translate3d(24px, -30px, 0) scale(1.3);
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bg-motion::before,
  .bg-motion::after,
  .bg-orb,
  .bg-line,
  .bg-particle,
  .reveal {
    animation: none !important;
    transition: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

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

  .cards-2,
  .projects-grid-1-2 {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 6.2rem;
  }

  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 77px;
    right: 1rem;
    left: 1rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 0.95rem;
    display: none;
    flex-direction: column;
    flex-wrap: nowrap;
  }

  .nav-links.is-open {
    display: flex;
  }

  .bg-line {
    width: 70vw;
    opacity: 0.32;
  }

  .bg-orb-a,
  .bg-orb-b,
  .bg-orb-c {
    filter: blur(8px);
    opacity: 0.42;
  }

  .bg-particle {
    width: 6px;
    height: 6px;
    opacity: 0.35;
  }
}

.contact-email{
    display:block;
    width:100%;
    color:#fff !important;
    text-decoration:none;
    overflow-wrap:anywhere;
    word-break:break-word;
    white-space:normal;
}

.contact-email:hover{
    color:#fff;
}
