* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #0b1020;
  --bg-light: #111936;
  --primary: #7c5cff;
  --secondary: #39d0ff;
  --text: #f5f7fb;
  --muted: #aeb7d3;
  --card: rgba(255, 255, 255, 0.08);
  --border: rgba(255, 255, 255, 0.14);
  --success: #73ffba;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(124, 92, 255, 0.25), transparent 30%),
    radial-gradient(circle at bottom right, rgba(57, 208, 255, 0.18), transparent 30%),
    var(--bg);
  color: var(--text);
  line-height: 1.6;
}

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(11, 16, 32, 0.8);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.navbar {
  width: min(1100px, 92%);
  margin: auto;
  padding: 18px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  color: var(--text);
  text-decoration: none;
  font-size: 1.4rem;
  font-weight: 800;
}

.logo span {
  color: var(--primary);
}

.nav-links {
  display: flex;
  gap: 24px;
  list-style: none;
}

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

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

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.7rem;
  cursor: pointer;
}

.section {
  width: min(1100px, 92%);
  margin: auto;
  padding: 90px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 40px;
}

.section-title p {
  color: var(--secondary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.85rem;
}

.section-title h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-top: 8px;
}

.hero {
  min-height: 90vh;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 40px;
}

.badge {
  display: inline-block;
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--secondary);
  background: rgba(255, 255, 255, 0.06);
  margin-bottom: 20px;
  font-weight: 700;
}

.hero h1 {
  font-size: clamp(2.6rem, 6vw, 5rem);
  line-height: 1.05;
  margin-bottom: 20px;
}

.hero h1 span {
  color: var(--primary);
}

.hero-text {
  max-width: 620px;
  color: var(--muted);
  font-size: 1.1rem;
  margin-bottom: 30px;
}

.hero-buttons,
.contact-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 20px;
  border-radius: 14px;
  text-decoration: none;
  font-weight: 800;
  transition: transform 0.3s, box-shadow 0.3s, background 0.3s;
  border: none;
  cursor: pointer;
}

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

.btn.primary {
  color: white;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  box-shadow: 0 10px 24px rgba(124, 92, 255, 0.22);
}

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

.btn.small {
  width: fit-content;
  margin-top: 20px;
  padding: 10px 15px;
  color: white;
  background: var(--primary);
}

.hero-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 20px;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.3);
}

.terminal {
  background: #050816;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.terminal-bar {
  padding: 14px;
  display: flex;
  gap: 8px;
  border-bottom: 1px solid var(--border);
}

.terminal-bar span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--primary);
}

.terminal-bar span:nth-child(2) {
  background: var(--secondary);
}

.terminal-bar span:nth-child(3) {
  background: var(--success);
}

.terminal pre {
  padding: 22px;
  color: #dce3ff;
  font-size: 0.95rem;
  overflow-x: auto;
}

.about-content,
.project-info {
  max-width: 850px;
  margin: auto;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 30px;
  color: var(--muted);
}

.about-content p + p {
  margin-top: 15px;
}

.project-info {
  text-align: center;
  margin-bottom: 30px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.card,
.project-card,
.contact-box {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 26px;
  transition: 0.3s;
}

.card:hover,
.project-card:hover {
  transform: translateY(-5px);
  border-color: rgba(57, 208, 255, 0.55);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.25);
}

.card h3,
.project-card h3 {
  margin-bottom: 12px;
  color: var(--text);
}

.card p,
.project-card p,
.contact-box p {
  color: var(--muted);
}

.project-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 290px;
}

.project-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 10px;
}

.project-name {
  word-break: break-word;
}

.project-public {
  flex-shrink: 0;
  font-size: 0.75rem;
  color: var(--success);
  background: rgba(115, 255, 186, 0.1);
  border: 1px solid rgba(115, 255, 186, 0.3);
  padding: 5px 9px;
  border-radius: 999px;
  font-weight: 800;
}

.project-meta {
  margin-top: 16px;
  color: var(--muted);
  font-size: 0.9rem;
}

.projects-status {
  text-align: center;
  color: var(--muted);
  margin-bottom: 25px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
}

.projects-status.hidden {
  display: none;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.tags span {
  font-size: 0.85rem;
  color: var(--secondary);
  background: rgba(57, 208, 255, 0.1);
  border: 1px solid rgba(57, 208, 255, 0.2);
  padding: 6px 10px;
  border-radius: 999px;
}

.contact-box {
  max-width: 760px;
  margin: auto;
  text-align: center;
}

.contact-buttons {
  justify-content: center;
  margin-top: 24px;
}

.note {
  font-size: 0.9rem;
  margin-top: 18px;
}

.footer {
  text-align: center;
  padding: 28px;
  color: var(--muted);
  border-top: 1px solid var(--border);
}

.reveal {
  opacity: 0;
  transform: translateY(25px);
  transition: 0.8s ease;
}

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

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-buttons {
    justify-content: center;
  }

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

@media (max-width: 680px) {
  .menu-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 70px;
    right: 4%;
    left: 4%;
    display: none;
    flex-direction: column;
    padding: 22px;
    border-radius: 18px;
    background: rgba(17, 25, 54, 0.98);
    border: 1px solid var(--border);
  }

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

  .section {
    padding: 70px 0;
  }

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

  .btn {
    width: 100%;
  }

  .project-header {
    flex-direction: column;
  }
}

.footer a {
  color: var(--secondary);
  text-decoration: none;
  font-weight: 800;
}

.footer a:hover {
  color: var(--primary);
  text-decoration: underline;
}

.profile-card {
  position: relative;
  background:
    linear-gradient(145deg, rgba(124, 92, 255, 0.18), rgba(57, 208, 255, 0.10)),
    var(--card);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 26px;
  text-align: center;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.3);
  overflow: hidden;
}

.profile-card::before {
  content: "";
  position: absolute;
  inset: -80px;
  background:
    radial-gradient(circle, rgba(124, 92, 255, 0.25), transparent 35%),
    radial-gradient(circle at bottom right, rgba(57, 208, 255, 0.20), transparent 30%);
  z-index: 0;
}

.profile-card > * {
  position: relative;
  z-index: 1;
}

.profile-photo-wrap {
  width: 210px;
  height: 210px;
  margin: 0 auto 22px;
  padding: 6px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
}

.profile-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  border-radius: 50%;
  border: 5px solid #0b1020;
}

.profile-info h2 {
  font-size: 1.7rem;
  margin-bottom: 6px;
}

.profile-info p {
  color: var(--muted);
  margin-bottom: 10px;
}

.profile-info span {
  display: inline-block;
  color: var(--success);
  background: rgba(115, 255, 186, 0.10);
  border: 1px solid rgba(115, 255, 186, 0.25);
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 0.9rem;
  font-weight: 800;
}

.mini-terminal {
  margin-top: 24px;
  text-align: left;
  background: rgba(5, 8, 22, 0.78);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
  color: #dce3ff;
  font-size: 0.9rem;
}

.mini-terminal strong {
  color: var(--secondary);
}

@media (max-width: 680px) {
  .profile-photo-wrap {
    width: 180px;
    height: 180px;
  }
}


.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.logo-photo {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--secondary);
}

.logo-text {
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 800;
}

@media (max-width: 680px) {
  .logo-text {
    font-size: 0.9rem;
  }

  .logo-photo {
    width: 32px;
    height: 32px;
  }
}


.passions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.passion-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 26px;
  transition: 0.3s;
}

.passion-card:hover {
  transform: translateY(-5px);
  border-color: rgba(57, 208, 255, 0.55);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.25);
}

.passion-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  margin-bottom: 16px;
  border-radius: 14px;
  background: rgba(57, 208, 255, 0.10);
  border: 1px solid rgba(57, 208, 255, 0.20);
  font-size: 1.4rem;
}

.passion-card h3 {
  margin-bottom: 12px;
  color: var(--text);
}

.passion-card p {
  color: var(--muted);
}

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

@media (max-width: 680px) {
  .passions-grid {
    grid-template-columns: 1fr;
  }
}
