:root {
  --bg: #0b1220;
  --bg-deep: #060a14;
  --surface: rgba(18, 28, 46, 0.74);
  --surface-strong: rgba(17, 23, 38, 0.95);
  --text: #e8f1ff;
  --muted: #9db0cf;
  --accent: #79c9ff;
  --accent-2: #9f8bff;
  --ring: rgba(145, 172, 221, 0.28);
  --shadow: 0 24px 45px rgba(2, 6, 15, 0.5);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Plus Jakarta Sans", sans-serif;
  line-height: 1.65;
  color: var(--text);
  background:
    radial-gradient(circle at 80% 8%, rgba(121, 201, 255, 0.2), transparent 28%),
    radial-gradient(circle at 20% 0%, rgba(159, 139, 255, 0.18), transparent 25%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-deep) 100%);
  overflow-x: hidden;
}

.preloader {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at center, rgba(25, 41, 71, 0.95), rgba(4, 8, 16, 0.98));
  transition: opacity 0.45s ease, visibility 0.45s ease;
}

.preloader.hidden {
  opacity: 0;
  visibility: hidden;
}

.preloader-core {
  text-align: center;
}

.loader-ring {
  width: 56px;
  height: 56px;
  display: inline-block;
  border-radius: 50%;
  border: 3px solid rgba(153, 194, 255, 0.28);
  border-top-color: #7fd7ff;
  border-right-color: #b497ff;
  animation: spin 0.9s linear infinite;
}

.preloader-core p {
  margin-top: 0.9rem;
  color: #bcd5ff;
  font-weight: 600;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.page-enter {
  animation: pageFade 0.65s ease both;
}

@keyframes pageFade {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.bg-orb {
  position: fixed;
  z-index: -1;
  filter: blur(14px);
  border-radius: 50%;
  pointer-events: none;
  animation: orbFloat 9s ease-in-out infinite;
}

.orb-one {
  width: 360px;
  height: 360px;
  top: -120px;
  right: -80px;
  background: rgba(121, 201, 255, 0.14);
}

.orb-two {
  width: 320px;
  height: 320px;
  bottom: -130px;
  left: -80px;
  background: rgba(159, 139, 255, 0.13);
  animation-delay: 1.6s;
}

.orb-three {
  width: 190px;
  height: 190px;
  top: 40%;
  right: 18%;
  background: rgba(128, 255, 215, 0.1);
  animation-delay: 0.8s;
}

@keyframes orbFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-24px); }
}

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

.container {
  width: min(1120px, 92%);
  margin: 0 auto;
}

.section {
  padding: 5.2rem 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
  background: rgba(8, 13, 24, 0.72);
  border-bottom: 1px solid var(--ring);
}

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

.brand {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  text-decoration: none;
  font-family: "Outfit", sans-serif;
  font-weight: 700;
  color: #f7fbff;
  background: linear-gradient(130deg, var(--accent), var(--accent-2));
  box-shadow: 0 12px 24px rgba(97, 157, 255, 0.35);
}

.nav-links {
  display: flex;
  gap: 1.35rem;
}

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

.nav-links a.active,
.nav-links a:hover {
  opacity: 1;
  color: #cce8ff;
}

.menu-btn {
  display: none;
  border: 1px solid var(--ring);
  background: transparent;
  color: var(--text);
  padding: 0.42rem 0.78rem;
  border-radius: 0.55rem;
  cursor: pointer;
}

h1,
h2,
h3,
.page-title {
  font-family: "Outfit", sans-serif;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(2.05rem, 4.3vw, 3.35rem);
  margin: 0 0 1rem;
}

h2 {
  margin-top: 0;
}

.page-title {
  margin: 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.34fr 1fr;
  align-items: center;
  gap: 2rem;
}

.hero-text {
  color: var(--muted);
  max-width: 62ch;
  font-size: 1.03rem;
}

.eyebrow {
  display: inline-flex;
  gap: 0.55rem;
  align-items: center;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #c8e6ff;
  border: 1px solid rgba(170, 208, 255, 0.34);
  border-radius: 999px;
  padding: 0.2rem 0.7rem 0.2rem 0.3rem;
  background: rgba(116, 176, 255, 0.11);
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #9ee4ff;
  box-shadow: 0 0 0 6px rgba(158, 228, 255, 0.2);
}

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

.btn {
  display: inline-block;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.92rem;
  border-radius: 0.8rem;
  padding: 0.72rem 1.08rem;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

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

.btn-primary {
  color: #0a1320;
  background: linear-gradient(130deg, var(--accent), var(--accent-2));
  box-shadow: 0 14px 26px rgba(98, 151, 255, 0.35);
}

.btn-secondary {
  color: var(--text);
  border: 1px solid var(--ring);
  background: rgba(255, 255, 255, 0.03);
}

.btn-resume {
  background: linear-gradient(130deg, #8cd9ff, #8ea2ff);
}

.hero-card,
.card,
.skill-group {
  background: var(--surface);
  border: 1px solid var(--ring);
  border-radius: 1.1rem;
  padding: 1.2rem 1.25rem;
  box-shadow: var(--shadow);
}

.profile-card {
  text-align: center;
  background: var(--surface-strong);
}

.profile-photo {
  width: 162px;
  height: 162px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid rgba(166, 203, 255, 0.85);
  box-shadow: 0 12px 26px rgba(57, 112, 214, 0.42);
}

.profile-card ul {
  text-align: left;
}

.floating {
  animation: floatCard 5.5s ease-in-out infinite;
}

@keyframes floatCard {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(260px, 1fr));
  gap: 1.1rem;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(180px, 1fr));
  gap: 0.95rem;
}

.skill-group {
  font-weight: 600;
}

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

.tilt-card {
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.tilt-card:hover {
  transform: translateY(-8px) scale(1.01);
  border-color: rgba(170, 207, 255, 0.55);
  box-shadow: 0 30px 48px rgba(0, 7, 19, 0.56);
}

.project-thumb {
  width: 100%;
  height: 165px;
  border-radius: 0.85rem;
  margin-bottom: 0.95rem;
  border: 1px solid rgba(170, 208, 255, 0.2);
  background-size: cover;
  background-position: center;
}

.thumb-one {
  background-image:
    linear-gradient(to top right, rgba(10, 20, 35, 0.35), rgba(20, 20, 20, 0.15)),
    url("https://images.unsplash.com/photo-1551281044-8b5bd6f0f0d6?auto=format&fit=crop&w=1000&q=80");
}

.thumb-two {
  background-image:
    linear-gradient(to top right, rgba(10, 20, 35, 0.35), rgba(20, 20, 20, 0.15)),
    url("https://images.unsplash.com/photo-1461749280684-dccba630e2f6?auto=format&fit=crop&w=1000&q=80");
}

.contact-form {
  margin-top: 1rem;
  display: grid;
  gap: 0.95rem;
}

.form-row {
  display: grid;
  gap: 0.4rem;
}

.form-row label {
  font-weight: 600;
  font-size: 0.92rem;
  color: #c6dbff;
}

.form-row input,
.form-row textarea {
  width: 100%;
  border-radius: 0.7rem;
  border: 1px solid rgba(166, 196, 243, 0.32);
  background: rgba(8, 15, 27, 0.75);
  color: var(--text);
  padding: 0.72rem 0.85rem;
  font-family: inherit;
  outline: none;
}

.form-row input:focus,
.form-row textarea:focus {
  border-color: rgba(127, 213, 255, 0.82);
  box-shadow: 0 0 0 2px rgba(127, 213, 255, 0.15);
}

.form-status {
  min-height: 1.2rem;
  margin: 0;
  color: #a9c7ff;
}

.page-hero {
  padding-bottom: 2rem;
}

.site-footer {
  border-top: 1px solid var(--ring);
  background: rgba(5, 10, 18, 0.92);
  padding: 2.6rem 0 1.2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.copyright {
  margin: 1.4rem 0 0;
  text-align: center;
  color: var(--muted);
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

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

@media (max-width: 700px) {
  .menu-btn {
    display: inline-block;
  }

  .nav-links {
    position: absolute;
    top: 71px;
    right: 4%;
    width: min(230px, 90vw);
    border-radius: 0.8rem;
    border: 1px solid var(--ring);
    background: rgba(9, 15, 28, 0.97);
    padding: 0.6rem;
    display: none;
    flex-direction: column;
    gap: 0.35rem;
  }

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

  .skills-grid {
    grid-template-columns: 1fr;
  }
}
