:root {
  --bg: #090f1a;
  --card: #0d1524;
  --muted: #9db0c4;
  --accent: #00d2ff;
  --glass: rgba(255,255,255,0.05);
  --radius: 14px;
  --max: 1100px;
  --fw-regular: 400;
  --fw-strong: 700;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  overflow-x: hidden;
}

body {
  font-family: "Inter", sans-serif;
  position: relative;
  width: 100%;
  min-height: 100vh;
  color: #e6eef6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.45;
  padding: 32px 18px;
  background: transparent;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(circle at 20% 25%, rgba(33,72,125,0.20), transparent 58%),
    radial-gradient(circle at 70% 20%, rgba(36,94,156,0.16), transparent 62%),
    radial-gradient(circle at 40% 80%, rgba(20,55,110,0.14), transparent 68%),
    radial-gradient(circle at 85% 70%, rgba(42,104,168,0.10), transparent 64%),
    linear-gradient(180deg, #06101c 0%, var(--bg) 100%);
  filter: blur(82px) saturate(108%);
  transform: scale(1.3);
  /*animation: auroraMove 18s ease-in-out infinite alternate;*/
  pointer-events: none;
}

.wrap {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
}

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

.link {
  color: var(--accent);
  font-weight: bold;
}
.link:hover { text-decoration: underline; }

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.logo {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), #60a5fa);
  display: grid;
  place-items: center;
  color: #04263a;
  font-weight: 800;
}

nav {
  display: flex;
  gap: 18px;
  align-items: center;
}
nav a {
  color: var(--muted);
  font-weight: 600;
  text-decoration: none;
  transition:
    color 180ms ease,
    text-shadow 180ms ease,
    transform 120ms ease,
    text-decoration-color 180ms ease;
  text-underline-offset: 0.22em;
}
nav a:hover {
  color: #e9f8ff;
  text-decoration: underline;
  text-decoration-color: currentColor;
  text-shadow: 0 0 10px rgba(0, 210, 255, 0.55);
}
nav a:active {
  transform: translateY(1px) scale(0.97);
  text-shadow: 0 0 14px rgba(0, 210, 255, 0.8);
}

.cta {
  background: linear-gradient(90deg, var(--accent), #60a5fa);
  padding: 10px 14px;
  border-radius: 10px;
  color: #04263a;
  font-weight: 700;
}
.cta:hover {
  color: #04263a;
}

.hero {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 28px;
  align-items: center;
  margin-bottom: 36px;
}
.hero-left h1 {
  font-size: clamp(30px,5vw,44px);
  margin: 0 0 10px;
  line-height: 1.05;
}
.hero-left p {
  color: var(--muted);
  margin: 0 0 18px;
}

.actions {
  display: flex;
  gap: 12px;
}
.button {
  display: inline-flex;
  align-items: center;
  padding: 11px 14px;
  border-radius: 10px;
  font-weight: 700;
  text-decoration: none;
  transition:
    color 180ms ease,
    box-shadow 180ms ease,
    transform 120ms ease,
    text-decoration-color 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease;
  text-underline-offset: 0.22em;
}
.button:hover {
  text-decoration: underline;
  text-decoration-color: currentColor;
  box-shadow: 0 0 14px rgba(255, 255, 255, 0.5);
}
.button:active {
  transform: translateY(1px) scale(0.97);
  box-shadow: 0 0 18px rgba(255, 255, 255, 0.75);
}
.button.primary {
  background: var(--accent);
  color: #052025;
}
.button.ghost {
  border: 1px solid rgba(255,255,255,0.06);
  color: var(--muted);
}
.button.primary:hover {
  color: #052025;
}
.button.ghost:hover {
  color: #e9f8ff;
  border-color: rgba(255, 255, 255, 0.45);
}

.me-card {
  background: var(--card);
  border-radius: 16px;
  padding: 18px;
  backdrop-filter: blur(6px);
  box-shadow: 0 6px 20px rgba(2,6,23,0.6);
  border: 1px solid #222;
}
.avatar {
  width: 100%;
  height: 240px;
  border-radius: 10px;
  background-image: linear-gradient(180deg,#062436,#08334b);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 20px;
}
.avatar img {
  width: 100%;
  max-width: 200px;
  height: auto;
  display: block;
  border-radius: 12px;
}
.meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px;
}
.meta div {
  font-size: 13px;
  color: var(--muted);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.chip {
  background: var(--glass);
  padding: 8px 10px;
  border-radius: 999px;
  font-weight: 600;
  color: var(--muted);
  font-size: 13px;
}

section.projects { margin-bottom: 36px; }
.projects-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 16px;
  transition: transform .3s, box-shadow .3s, border .3s;
}
.project {
  background: var(--card);
  border-radius: 12px;
  padding: 14px;
  min-height: 130px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 6px 18px rgba(2,6,23,0.6);
  border: 0.1px solid #222;
}
.project h3 { margin: 0 0 6px; }
.project p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}
.project .tech {
  margin-top: 10px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.tag {
  display: inline-flex;
  align-items: center;
  font-size: 13px;
  background: var(--glass);
  padding: 8px 10px;
  border-radius: 999px;
  font-weight: 600;
  color: var(--muted);
}
.project-link-hint {
  margin-top: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(0,210,255,.08);
  border: 1px solid rgba(0,210,255,.18);
  color: #b8f3ff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.project-link-hint::after {
  content: "↗";
  font-size: 12px;
}
.project-link-hint:hover {
  background: rgba(0,210,255,.14);
  border-color: rgba(0,210,255,.3);
}
.project:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 12px #00d2ff60;
  border: 1px solid #00d2ff;
}

.about {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 20px;
  margin-bottom: 36px;
}
.card {
  background: var(--card);
  padding: 18px;
  border-radius: 12px;
  border: 0.1px solid #222;
}
.timeline {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.tl-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.tl-item .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  margin-top: 6px;
}
.tl-item p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 12px;
}
.skill-bar {
  background: rgba(255,255,255,0.03);
  height: 10px;
  border-radius: 999px;
  overflow: hidden;
}
.skill-bar > i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), #60a5fa);
}

.contact-form {
  display: grid;
  gap: 10px;
}

input, textarea {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.06);
  padding: 10px;
  border-radius: 8px;
  color: inherit;
}
textarea { min-height: 120px; }

.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 22px;
  color: var(--muted);
  font-size: 13px;
  padding: 20px;
}

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr 1fr; }
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
  .about { grid-template-columns: 1fr; }
  .skills-grid { grid-template-columns: repeat(2, 1fr);}
}
@media (max-width: 640px) {
  body { padding: 18px; }
  .hero { grid-template-columns: 1fr; }
  .hero-left h1 span { display: block; }
  .hero-left h1 { font-size: clamp(22px, 6vw, 32px); }
  .projects-grid { grid-template-columns: 1fr;}
  header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  nav { flex-wrap: wrap; }
  .skills-grid { grid-template-columns: 1fr;}
}

.fade-up {
  opacity: 0;
  transform: translateY(8px);
  animation: fadeInUp 0.6s forwards;
}
@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: none;
  }
}

/*@keyframes auroraMove {
  0% { transform: scale(1.3) translate(0px,0px);}
  100% { transform: scale(1.35) translate(-20px,10px);}
}*/
