@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --bg-main: #020617;
  --bg-panel: rgba(15, 23, 42, 0.78);
  --text-main: #f8fafc;
  --text-soft: #cbd5e1;
  --text-muted: #94a3b8;
  --accent: #38bdf8;
  --line: rgba(148, 163, 184, 0.18);
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.42);
  --radius-xl: 28px;
  --radius-md: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  min-height: 100vh;
  margin: 0;
  font-family: 'Inter', Arial, sans-serif;
  color: var(--text-main);
  background: var(--bg-main);
  overflow-x: hidden;
}

body.lightbox-open { overflow: hidden; }

.site-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at 78% 18%, rgba(56, 189, 248, 0.22), transparent 28%),
    radial-gradient(circle at 28% 78%, rgba(14, 165, 233, 0.16), transparent 30%),
    linear-gradient(135deg, #020617 0%, #07111f 46%, #0f172a 100%);
}

.site-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), transparent);
}

a { text-decoration: none; }

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 1000;
  width: 292px;
  min-height: 100vh;
  padding: 30px 22px;
  background: rgba(2, 6, 23, 0.78);
  backdrop-filter: blur(22px);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.profile-link {
  position: relative;
  display: block;
  text-align: center;
  color: var(--text-main);
  padding: 12px;
  border-radius: var(--radius-md);
}

.profile-img {
  width: 132px;
  height: 132px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid rgba(56, 189, 248, 0.85);
  box-shadow: 0 0 40px rgba(56, 189, 248, 0.28);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.profile-link:hover .profile-img {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 0 55px rgba(56, 189, 248, 0.42);
}

.status-dot {
  position: absolute;
  top: 118px;
  left: 158px;
  width: 16px;
  height: 16px;
  background: #22c55e;
  border: 3px solid #020617;
  border-radius: 50%;
}

.profile-name {
  margin-top: 16px;
  font-size: 1.35rem;
  font-weight: 800;
}

.profile-role {
  margin-top: 4px;
  color: var(--text-muted);
  font-size: 0.94rem;
}

.nav-links { margin-top: 32px; }

.nav-links a {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-soft);
  padding: 13px 14px;
  margin-bottom: 8px;
  border: 1px solid transparent;
  border-radius: 15px;
  transition: all 0.25s ease;
}

.nav-links a i { color: var(--accent); }

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-main);
  background: rgba(56, 189, 248, 0.11);
  border-color: rgba(56, 189, 248, 0.22);
  transform: translateX(4px);
}

.sidebar-bottom {
  border-top: 1px solid var(--line);
  padding-top: 22px;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.social-links a {
  width: 43px;
  height: 43px;
  display: grid;
  place-items: center;
  color: var(--text-main);
  background: rgba(148, 163, 184, 0.08);
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 1.2rem;
  transition: all 0.25s ease;
  position: relative;
  z-index: 1200;
  pointer-events: auto;
}

.social-links a:hover {
  color: #020617;
  background: var(--accent);
  transform: translateY(-4px);
}

.sidebar-note {
  margin: 16px 0 0;
  color: var(--text-muted);
  text-align: center;
  font-size: 0.82rem;
}

.mobile-toggle {
  display: none;
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 1100;
  width: 50px;
  height: 50px;
  border: 0;
  border-radius: 16px;
  color: #020617;
  background: var(--accent);
  box-shadow: 0 14px 35px rgba(56, 189, 248, 0.25);
  font-size: 1.45rem;
}

.main-content {
  margin-left: 292px;
  min-height: 100vh;
  padding: 58px 7.5%;
}

.page-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 54px 0;
}

.eyebrow {
  color: var(--accent);
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.82rem;
}

.section-card,
.premium-card {
  position: relative;
  overflow: hidden;
  background: var(--bg-panel);
  backdrop-filter: blur(22px);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}

.section-card::before,
.premium-card::before,
.project-block::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(255,255,255,0.13), transparent 32%);
}

.section-card {
  width: 100%;
  padding: clamp(26px, 5vw, 52px);
}

.section-title {
  margin-bottom: 24px;
  font-size: clamp(2.3rem, 4.7vw, 4.8rem);
  font-weight: 800;
  letter-spacing: -0.06em;
}

.section-description,
.hero-subtitle {
  max-width: 780px;
  color: var(--text-soft);
  font-size: 1.08rem;
  line-height: 1.85;
  margin: 26px 0 32px;
}

.hero-grid {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 34px;
  align-items: center;
}

.hero-copy { max-width: 920px; }

.hero-title {
  max-width: 890px;
  margin: 0;
  font-size: clamp(2.8rem, 6vw, 6.4rem);
  font-weight: 800;
  letter-spacing: -0.07em;
  line-height: 0.98;
}

.hero-title span { color: var(--accent); }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.btn-custom,
.btn-outline-custom {
  border-radius: 999px;
  padding: 13px 24px;
  font-weight: 800;
  transition: all 0.25s ease;
}

.btn-custom {
  color: #020617;
  background: linear-gradient(135deg, var(--accent), #7dd3fc);
  border: none;
}

.btn-custom:hover {
  color: #020617;
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(56, 189, 248, 0.24);
}

.btn-outline-custom {
  color: var(--text-main);
  border: 1px solid rgba(56, 189, 248, 0.38);
  background: rgba(56, 189, 248, 0.06);
}

.btn-outline-custom:hover {
  color: #020617;
  background: var(--accent);
  transform: translateY(-4px);
}

.hero-panel,
.premium-card { min-height: 420px; }

.premium-card {
  height: 100%;
  padding: 36px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.premium-card i {
  position: absolute;
  top: 34px;
  right: 34px;
  color: var(--accent);
  font-size: 3rem;
}

.premium-card h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.05em;
  margin-bottom: 14px;
}

.premium-card p {
  color: var(--text-muted);
  line-height: 1.7;
  margin: 0;
}

.typing-paragraph {
  min-height: 300px;
  color: var(--text-soft);
  font-size: 1.1rem;
  line-height: 1.9;
  white-space: pre-line;
}

.cursor {
  display: inline-block;
  width: 2px;
  height: 1.1em;
  margin-left: 4px;
  background: var(--accent);
  animation: blink 0.8s infinite;
}

@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

.stack-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(215px, 1fr));
  gap: 18px;
}

.skill-card,
.project-block {
  position: relative;
  overflow: hidden;
  background: rgba(15, 23, 42, 0.62);
  border: 1px solid var(--line);
  border-radius: 22px;
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.skill-card {
  padding: 26px;
}

.skill-card:hover,
.project-block:hover {
  transform: translateY(-7px);
  border-color: rgba(56, 189, 248, 0.38);
  background: rgba(15, 23, 42, 0.86);
}

.skill-card i {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--accent);
  font-size: 2.1rem;
}

.skill-card h2 {
  margin-bottom: 10px;
  font-size: 1.15rem;
  font-weight: 800;
}

.skill-card p {
  color: var(--text-muted);
  line-height: 1.7;
  margin: 0;
}

.portfolio-section { align-items: flex-start; }

.project-block {
  padding: clamp(20px, 3vw, 30px);
  margin-top: 30px;
}

.project-header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}

.project-number {
  color: var(--accent);
  font-weight: 800;
  margin-bottom: 4px;
}

.project-header h2 {
  margin: 0;
  font-size: clamp(1.45rem, 3vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -0.04em;
}

.project-description {
  color: var(--text-soft);
  line-height: 1.8;
  margin: 20px 0 0;
  max-width: 980px;
}

.gallery-link {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 18px;
  overflow: hidden;
  background: transparent;
  cursor: pointer;
}

.gallery-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  transition: transform 0.35s ease, filter 0.35s ease;
}

.gallery-link:hover .gallery-img {
  transform: scale(1.045);
  filter: brightness(1.13);
}

.project-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.github-project-link,
.live-project-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 800;
  transition: all 0.25s ease;
}

.live-project-link {
  color: #020617;
  background: linear-gradient(135deg, var(--accent), #7dd3fc);
}

.github-project-link {
  color: var(--text-main);
  border: 1px solid rgba(56, 189, 248, 0.36);
  background: rgba(56, 189, 248, 0.08);
}

.github-project-link:hover,
.live-project-link:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 35px rgba(56, 189, 248, 0.22);
}

.live-project-link:hover { color: #020617; }
.github-project-link:hover { color: var(--text-main); }

.disabled-link {
  opacity: 0.45;
  pointer-events: none;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 80px 96px;
  background: rgba(2, 6, 23, 0.92);
  backdrop-filter: blur(18px);
}

.lightbox.active { display: flex; }

.lightbox-content {
  position: relative;
  max-width: min(1100px, 100%);
  width: 100%;
  text-align: center;
}

.lightbox-img {
  max-width: 100%;
  max-height: 78vh;
  object-fit: contain;
  border-radius: 22px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.55);
  background: #020617;
}

.lightbox-caption {
  margin: 18px 0 0;
  color: var(--text-soft);
  font-weight: 700;
}

.lightbox-close,
.lightbox-arrow {
  position: fixed;
  display: grid;
  place-items: center;
  border: 1px solid rgba(148, 163, 184, 0.22);
  color: var(--text-main);
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(16px);
  transition: all 0.25s ease;
}

.lightbox-close:hover,
.lightbox-arrow:hover {
  color: #020617;
  background: var(--accent);
  transform: scale(1.06);
}

.lightbox-close {
  top: 24px;
  right: 24px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  font-size: 1.25rem;
}

.lightbox-arrow {
  top: 50%;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  font-size: 1.8rem;
  transform: translateY(-50%);
}

.lightbox-arrow:hover { transform: translateY(-50%) scale(1.06); }

.lightbox-prev { left: 28px; }
.lightbox-next { right: 28px; }

.reveal {
  opacity: 0;
  transform: translateY(18px);
  animation: revealUp 0.75s ease forwards;
}

.delay-1 { animation-delay: 0.16s; }

@keyframes revealUp {
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1100px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-panel,
  .premium-card { min-height: 320px; }
}

@media (max-width: 991px) {
  .mobile-toggle {
    display: grid;
    place-items: center;
  }

  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.32s ease;
  }

  .sidebar.show { transform: translateX(0); }

  .main-content {
    margin-left: 0;
    padding: 86px 6% 38px;
  }

  .page-section {
    min-height: auto;
    padding: 54px 0;
  }

  .lightbox { padding: 78px 22px; }

  .lightbox-arrow {
    width: 48px;
    height: 48px;
    font-size: 1.45rem;
  }

  .lightbox-prev { left: 12px; }
  .lightbox-next { right: 12px; }

  .lightbox-close {
    top: 18px;
    right: 18px;
  }
}

@media (max-width: 576px) {
  .sidebar {
    width: 260px;
    padding: 24px 18px;
  }

  .profile-img {
    width: 108px;
    height: 108px;
  }

  .status-dot {
    top: 100px;
    left: 145px;
  }

  .hero-title { letter-spacing: -0.055em; }

  .section-card { border-radius: 22px; }

  .typing-paragraph {
    min-height: 460px;
    font-size: 1rem;
  }

  .github-project-link,
  .live-project-link {
    width: 100%;
    justify-content: center;
  }

  .lightbox { padding: 74px 14px; }

  .lightbox-img {
    max-height: 72vh;
    border-radius: 16px;
  }

  .lightbox-arrow {
    bottom: 18px;
    top: auto;
    transform: none;
  }

  .lightbox-arrow:hover { transform: scale(1.06); }

  .lightbox-prev { left: 18px; }
  .lightbox-next { right: 18px; }
}


.social-links,
.social-links a,
.social-links i{
    position:relative;
    z-index:99999 !important;
    pointer-events:auto !important;
}
