:root {
  --bg: #0b0f14;
  --card: #121823;
  --muted: #8aa0b2;
  --text: #e6edf3;
  --accent: #4f9ef8;
  --accent-2: #62d2a2;
  --border: #1f2a38;
}

* {
  box-sizing: border-box;

}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto,
    "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji",
    "Segoe UI Symbol", sans-serif;
  line-height: 1.6;
  scroll-behavior: smooth;

}


a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.2rem;
}

/* ================= NAVBAR ================= */

.nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(11, 15, 20, 0.8);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  position: relative;
}

.brand {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
}

nav a {
  margin-left: 1rem;
  color: var(--muted);
}

/* ================= HAMBURGER ================= */

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1100;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: transform 0.3s ease, opacity 0.2s ease;
}

/* Hamburger → X animation */
.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ================= MOBILE MENU ================= */

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav-menu {
    position: absolute;
    top: 64px;
    left: 0;
    width: 100%;
    background: rgba(11, 15, 20, 0.95);
    backdrop-filter: blur(8px);
    display: flex;
    flex-direction: column;
    overflow: hidden;

    /* Slide-down animation */
    max-height: 0;
    opacity: 0;
    transform: translateY(-10px);
    transition:
      max-height 0.35s ease,
      opacity 0.25s ease,
      transform 0.25s ease;
  }

  .nav-menu a {
    padding: 0.9rem 1.5rem;
    margin: 0;
    color: var(--text);
  }

  .nav-menu.active {
    max-height: 300px;
    opacity: 1;
    transform: translateY(0);
  }

  /* remove desktop spacing */
  nav a {
    margin-left: 0;
  }
}

.hero {
  padding: 3rem 0 2rem;
  border-bottom: 1px solid var(--border);
  background: radial-gradient(1200px 600px at 10% 0%,
      rgba(79, 158, 248, 0.15),
      transparent 60%);
}

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

.hero h1 {
  font-size: 2.2rem;
  margin: 0 0 0.6rem;
}

.lead {
  color: var(--muted);
  margin-bottom: 1rem;
}

.cta-row {
  display: flex;
  gap: 0.8rem;
  margin-bottom: 0.6rem;
}

.quick-info {
  list-style: none;
  padding: 0;
  margin: 0.6rem 0 0;
}

.quick-info li {
  margin: 0.2rem 0;
  color: var(--muted);
}


.hero-media {
  position: relative;
  width: 50%;
  max-width: 300px;
  display: flex;
  justify-content: center;
  justify-items: center;
  margin-left: 30px;
  border-radius: 50%;
  border: 5px solid rgb(0, 0, 0);
  animation: mymove 5s infinite;
}

@keyframes mymove {
  25% {
    box-shadow: 5px 5px 30px;
  }
}

.hero-media img {
  width: 100%;
  border-radius: 50%;
  border-end-end-radius: px solid red;
  aspect-ratio: 1 / 1;
  background-image: linear-gradient(to radial-gradient, black blue red white);
  object-fit: cover;
  height: 100%;
  display: block;
}


.hero-media .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  justify-items: center;
  font-size: 1.2rem;
  opacity: 0;
  transition: opacity 0.3s ease;

}

.hero-media:hover .overlay {
  backdrop-filter: blur(4px);
  opacity: 1;
}


.section {
  padding: 2.2rem 0;
  border-bottom: 1px solid var(--border);
}

.section h2 {
  margin-top: 0;
  font-size: 1.6rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.6rem;
}

.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  padding: 0;
  list-style: none;
}

.pill-list li {
  padding: 0.4rem 0.7rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text);
  font-size: 0.95rem;
}

.kv-list {
  list-style: none;
  padding: 0;
  margin: 0.6rem 0 0;
}

.kv-list li {
  margin: 0.4rem 0;
  color: var(--muted);
}

.kv-list li strong {
  color: var(--text);
}

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

.card-link {
  text-decoration: none;
  color: inherit;
}

.overlay-card {
  position: relative;
  height: 280px;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
}

/* Background image */
.overlay-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

/* Dark gradient overlay */
.overlay-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top,
      rgba(0, 0, 0, 0.75),
      rgba(0, 0, 0, 0.2));
  z-index: 1;
}

/* Text overlay */
.overlay {
  position: absolute;
  bottom: 0;
  padding: 1.2rem;
  z-index: 2;
}

.overlay h3 {
  margin: 0;
  font-size: 1.25rem;
  color: #fff;
}

.overlay p {
  margin-top: 0.4rem;
  font-size: 0.95rem;
  color: #e5e5e5;
}

/* Hover effects */
.overlay-card:hover img {
  transform: scale(1.08);
}

.overlay-card:hover {
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.25);
}


.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.4rem;
}

.contact-form label {
  display: block;
  margin-bottom: 0.8rem;
}

.contact-form span {
  display: block;
  margin-bottom: 0.3rem;
  color: var(--muted);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  background: #0e131b;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.6rem 0.7rem;
}

.form-note {
  color: var(--muted);
  font-size: 0.85rem;
}

.btn {
  display: inline-block;
  color: var(--text);
  background: transparent;
  border: 1px solid var(--border);
  padding: 0.5rem 0.9rem;
  border-radius: 10px;
}

.btn.primary {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  border: none;
  color: #061018;
}

.btn:hover {
  opacity: 0.92;
  background-color: #00070e;
}

.footer {
  padding: 1.2rem 0;
}

.footer-inner {
  text-align: center;
  color: var(--muted);
}

@media (max-width: 860px) {

  .hero-inner,
  .grid-2,
  .cards,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero-media {
    position: relative;
    width: 50%;
    max-width: 300px;
    display: flex;
    justify-content: center;
    justify-items: center;
    margin-left: 50px;
  }
}




/* ===== 3D + SMOOTH MOTION ENHANCEMENTS ===== */


/* Smooth reveal base */
.section,
.card,
.hero-media {
  transform-style: preserve-3d;
  will-change: transform, opacity;

}

/* Card 3D hover */
.card {
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

/* Skill pills depth */
.pill-list li {
  transition: transform 0.3s ease, background 0.3s ease;
}

.pill-list li:hover {
  transform: translateY(-3px) scale(1.05);
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  color: #061018;
}

/* Hero image depth */
.hero-media {
  perspective: 1000px;
}

.hero-media img {
  transition: transform 0.15s ease-out;
}

/* Ambient glow */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(600px 600px at var(--x, 50%) var(--y, 50%),
      rgba(79, 158, 248, 0.08),
      transparent 60%);
  z-index: 0;
}

/* Make sure content stays above glow */
body>* {
  position: relative;
  z-index: 1;
}

#prview {
  display: none;
}

iframe {
  display: none;
}

iframe:hover {
  display: flex;
}