:root {
  --bg: #0b0b0d;
  --card: #0f1113;
  --muted: #9aa3b2;
  --accent: #ffd166;
  --glass: rgba(255, 255, 255, 0.03);
  --glass-2: rgba(255, 255, 255, 0.02);
  --radius: 14px;
  --max: 1100px;
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html,
body {
  height: 100%;
}
body {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial;
  background: linear-gradient(180deg, #060607 0%, #0b0b0d 100%);
  color: #e6eef8;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
}
/* header {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01));
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
} */

header {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center; /* center the .container itself */
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01));
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  padding: 0; /* remove side padding */
}

header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 28px; /* move padding here */
  width: 100%;
}

header .brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 50%; /* half the header-flex width */
  max-width: 50%;
}

header .brand .logo-img {
  height: 150px; /* match nav height */
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

.large-logo {
  height: 150px; /* keep consistent with nav height */
  width: auto;
}

@media (max-width: 768px) {
  header .brand {
    flex: 0 0 auto; /* let it shrink naturally */
    max-width: 60%; /* a bit more room for logo on small screens */
  }
}

/* Header Flex for container */
.header-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

/* Brand link for logo */
.brand-link {
  display: flex;
  align-items: center;
  text-decoration: none;
}

nav ul {
  display: flex;
  gap: 18px;
  list-style: none;
}
nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  padding: 8px 10px;
  border-radius: 8px;
}
nav a:hover {
  color: var(--accent);
  background: var(--glass);
}
.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 22px;
}
.hero {
  min-height: 100vh;
  display: grid;
  align-items: center;
  padding: 120px 0 80px;
  position: relative;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 40px;
  align-items: center;
}
.eyebrow {
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 1px;
}
h1 {
  font-size: 44px;
  line-height: 1.02;
  margin: 12px 0;
}
p.lead {
  color: var(--muted);
  max-width: 640px;
}
.cta-row {
  display: flex;
  gap: 12px;
  margin-top: 18px;
}
.btn {
  background: var(--accent);
  color: #050505;
  padding: 12px 18px;
  border-radius: 12px;
  border: none;
  font-weight: 700;
  cursor: pointer;
}
.btn.ghost {
  background: transparent;
  color: var(--muted);
  border: 1px solid rgba(255, 255, 255, 0.04);
}
.hero-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01));
  padding: 18px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(6px);
}
.profile {
  display: flex;
  gap: 14px;
  align-items: center;
}
.avatar {
  width: 86px;
  height: 86px;
  border-radius: 14px;
  overflow: hidden;
  border: 3px solid var(--accent);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
}
.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.meta small {
  color: var(--muted);
}
.divider {
  height: 72px;
  overflow: hidden;
}
.divider svg {
  display: block;
  width: 100%;
  height: 100%;
}
.projects {
  padding: 28px 0;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}
.card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.01));
  border-radius: 12px;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.03);
  min-height: 200px;
  position: relative;
}
.card .thumb {
  height: 160px;
  background-size: cover;
  background-position: center;
}
.card .body {
  padding: 14px;
}
.card h3 {
  margin-bottom: 6px;
}
.tag {
  display: inline-block;
  background: rgba(255, 255, 255, 0.03);
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--muted);
  font-weight: 600;
  font-size: 13px;
}
.overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5, 5, 10, 0) 40%, rgba(5, 5, 10, 0.7));
  opacity: 0;
  transition: opacity 0.25s;
}
.card:hover .overlay {
  opacity: 1;
}
.card .actions {
  position: absolute;
  right: 14px;
  bottom: 14px;
  display: flex;
  gap: 8px;
}
.icon-btn {
  background: rgba(0, 0, 0, 0.5);
  border-radius: 10px;
  padding: 8px;
  color: var(--accent);
  border: none;
}
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}
.feature {
  background: var(--card);
  padding: 18px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.02);
}
.feature h4 {
  margin-bottom: 8px;
}
.skill-pill {
  display: inline-block;
  background: rgba(255, 255, 255, 0.03);
  padding: 8px 12px;
  border-radius: 999px;
  margin: 6px;
  color: var(--muted);
}
.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 28px;
  align-items: start;
}
form {
  background: var(--card);
  padding: 18px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.03);
}
.field {
  margin-bottom: 12px;
}
label {
  display: block;
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 6px;
}
input,
textarea {
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  border: none;
  background: rgba(255, 255, 255, 0.02);
  color: inherit;
}
textarea {
  min-height: 140px;
}
.note {
  color: var(--muted);
  font-size: 13px;
}
footer {
  padding: 40px 0 80px;
  color: var(--muted);
}
.socials {
  display: flex;
  gap: 14px;
  align-items: center;
}
.socials a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 10px;
  color: var(--muted);
  text-decoration: none;
}
.socials a:hover {
  color: var(--accent);
  background: linear-gradient(90deg, rgba(255, 209, 102, 0.06), rgba(255, 209, 102, 0.02));
}
.muted {
  color: var(--muted);
}
.center {
  text-align: center;
}
@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .contact-wrap {
    grid-template-columns: 1fr;
  }
  header {
    padding: 12px 16px;
  }
  h1 {
    font-size: 32px;
  }
}
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}
.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  background: linear-gradient(90deg, var(--accent), #ffb84d);
  color: #071018;
  padding: 12px 16px;
  border-radius: 12px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.45);
  display: none;
}
.toast.show {
  display: block;
}

.about-hero {
  padding: 80px 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.about-text h2 {
  font-size: 36px;
  margin-bottom: 18px;
}

.about-text .lead {
  color: var(--muted);
  margin-bottom: 20px;
}

.about-highlights {
  list-style: none;
  padding: 0;
  margin-bottom: 24px;
}

.about-highlights li {
  margin-bottom: 10px;
  font-size: 16px;
}

.about-photo img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
  transform: translateY(20px);
  opacity: 0;
  transition: opacity 0.8s ease, transform 0.8s ease;
}

[data-reveal].is-visible .about-photo img {
  transform: translateY(0);
  opacity: 1;
}

/* Responsive */
@media (max-width: 960px) {
  .about-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .about-photo {
    order: -1;
  }
}
