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

:root {
  --bg: #020617;
  --card: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.11);
  --text: #e5e7eb;
  --muted: #94a3b8;
  --primary: #38bdf8;
  --secondary: #2563eb;
  --green: #22c55e;
}

body {
  font-family: "Inter", sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

.bg-glow {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 15% 20%, rgba(56, 189, 248, 0.26), transparent 28%),
    radial-gradient(circle at 82% 8%, rgba(37, 99, 235, 0.22), transparent 32%),
    radial-gradient(circle at 50% 90%, rgba(34, 197, 94, 0.14), transparent 35%),
    #020617;
}

.navbar {
  width: min(1150px, calc(100% - 40px));
  margin: 18px auto 0;
  padding: 16px 18px;
  position: sticky;
  top: 18px;
  z-index: 99;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(2, 6, 23, 0.72);
  border: 1px solid var(--border);
  backdrop-filter: blur(18px);
  border-radius: 22px;
}

.brand {
  font-size: 22px;
  font-weight: 900;
}

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

.nav-menu {
  display: flex;
  gap: 24px;
}

.nav-menu a {
  color: #cbd5e1;
  font-weight: 700;
  font-size: 14px;
  transition: 0.25s;
}

.nav-menu a:hover {
  color: var(--primary);
}

.menu-toggle {
  display: none;
  background: var(--card);
  color: white;
  border: 1px solid var(--border);
  padding: 10px 13px;
  border-radius: 12px;
  font-size: 18px;
}

.section {
  width: min(1150px, calc(100% - 40px));
  margin: auto;
  padding: 95px 0;
}

.hero {
  min-height: calc(100vh - 90px);
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 45px;
  align-items: center;
}

.eyebrow,
.section-label {
  display: inline-block;
  color: #7dd3fc;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.22);
  padding: 9px 14px;
  border-radius: 999px;
  font-weight: 800;
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(42px, 7vw, 76px);
  line-height: 1.04;
  letter-spacing: -2.4px;
  margin-bottom: 22px;
}

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

.hero-desc {
  font-size: 18px;
  color: #cbd5e1;
  line-height: 1.8;
  max-width: 650px;
  margin-bottom: 32px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 22px;
  border-radius: 16px;
  font-weight: 900;
  transition: 0.25s;
  border: 1px solid var(--border);
}

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

.primary {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  box-shadow: 0 18px 40px rgba(37, 99, 235, 0.28);
}

.secondary {
  background: var(--card);
  color: white;
}

.profile-card,
.about-box,
.project-card,
.contact-box {
  background: var(--card);
  border: 1px solid var(--border);
  backdrop-filter: blur(16px);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.25);
}

.profile-card {
  border-radius: 34px;
  padding: 30px;
  position: relative;
  overflow: hidden;
}

.profile-card::before {
  content: "";
  position: absolute;
  width: 190px;
  height: 190px;
  background: var(--primary);
  opacity: 0.3;
  filter: blur(90px);
  right: -45px;
  top: -45px;
}

.avatar {
  width: 150px;
  height: 150px;
  border-radius: 34px;
  overflow: hidden;
  margin-bottom: 26px;
  position: relative;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-card h2,
.profile-card p,
.stats {
  position: relative;
}

.profile-card h2 {
  font-size: 28px;
  margin-bottom: 12px;
}

.profile-card p {
  color: #cbd5e1;
  line-height: 1.75;
}

.stats {
  margin-top: 26px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.stats div {
  text-align: center;
  padding: 16px;
  border-radius: 20px;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.stats h3 {
  color: var(--primary);
  font-size: 26px;
}

.stats span {
  color: var(--muted);
  font-size: 13px;
}

.split-section {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.section-header {
  margin-bottom: 34px;
}

.section-header h2 {
  font-size: clamp(32px, 5vw, 48px);
  letter-spacing: -1.5px;
  max-width: 780px;
}

.about-box {
  padding: 32px;
  border-radius: 28px;
}

.about-box p {
  color: #cbd5e1;
  line-height: 1.9;
  font-size: 17px;
}

.skills-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
}

.skills-grid span {
  padding: 13px 17px;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--border);
  color: #e2e8f0;
  font-weight: 800;
}

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

.project-card {
  border-radius: 30px;
  overflow: hidden;
  transition: 0.25s;
}

.project-card:hover {
  transform: translateY(-8px);
  border-color: rgba(56, 189, 248, 0.45);
}

.project-icon {
  height: 155px;
  display: grid;
  place-items: center;
  font-size: 46px;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.28), rgba(34, 197, 94, 0.14));
}

.project-content {
  padding: 23px;
}

.project-content h3 {
  font-size: 21px;
  margin-bottom: 10px;
}

.project-content p {
  color: #cbd5e1;
  line-height: 1.75;
  font-size: 14px;
  margin-bottom: 17px;
}

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

.tags span {
  font-size: 12px;
  color: #7dd3fc;
  background: rgba(56, 189, 248, 0.11);
  border: 1px solid rgba(56, 189, 248, 0.2);
  padding: 6px 9px;
  border-radius: 999px;
  font-weight: 800;
}

.project-link {
  color: var(--primary);
  font-weight: 900;
  font-size: 14px;
}

.contact-box {
  border-radius: 34px;
  padding: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.15), rgba(37, 99, 235, 0.11));
}

.contact-box h2 {
  font-size: clamp(30px, 5vw, 44px);
  margin-bottom: 12px;
}

.contact-box p {
  color: #cbd5e1;
  line-height: 1.7;
}

footer {
  padding: 34px 20px;
  text-align: center;
  color: #64748b;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

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

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

@media (max-width: 920px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 60px;
  }

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

  .contact-box {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 680px) {
  .navbar {
    width: calc(100% - 24px);
    top: 12px;
  }

  .menu-toggle {
    display: block;
  }

  .nav-menu {
    position: absolute;
    left: 0;
    right: 0;
    top: 68px;
    display: none;
    flex-direction: column;
    background: rgba(2, 6, 23, 0.95);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 18px;
  }

  .nav-menu.active {
    display: flex;
  }

  .section {
    width: calc(100% - 28px);
    padding: 70px 0;
  }

  .hero h1 {
    letter-spacing: -1.4px;
  }

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

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

  .contact-box,
  .about-box,
  .profile-card {
    padding: 24px;
  }
}
.photo-slider {
  width: 100%;
  height: 280px;
  overflow: hidden;
  border-radius: 28px;
  margin-bottom: 30px;
  position: relative;
}

.slides {
  display: flex;
  width: 500%;
  height: 100%;
  animation: slideShow 20s infinite ease-in-out;
}

.slides img {
  width: 20%;
  height: 100%;
  object-fit: cover;
  flex-shrink: 0;
}

@keyframes slideShow {
  0%, 16% {
    transform: translateX(0);
  }

  20%, 36% {
    transform: translateX(-20%);
  }

  40%, 56% {
    transform: translateX(-40%);
  }

  60%, 76% {
    transform: translateX(-60%);
  }

  80%, 96% {
    transform: translateX(-80%);
  }

  100% {
    transform: translateX(0);
  }
}
.project-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.4s;
}

.project-card:hover .project-image img {
  transform: scale(1.05);
}

.project-card:hover .project-image img {
  transform: scale(1.05);
}
/* ===== MOBILE FIX PHONE FRAME ===== */
@media (max-width: 680px) {
  .navbar {
    width: calc(100% - 20px);
    margin: 10px auto 0;
    padding: 14px 14px;
    top: 10px;
    border-radius: 18px;
  }

  .brand {
    font-size: 18px;
    max-width: 220px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .menu-toggle {
    display: block;
    flex-shrink: 0;
  }

  .nav-menu {
    top: 62px;
    left: 0;
    right: 0;
    z-index: 999;
  }

  .section {
    width: calc(100% - 24px);
    padding: 60px 0;
  }

  .hero {
    min-height: auto;
    display: flex;
    flex-direction: column;
    gap: 30px;
    padding-top: 45px;
  }

  .eyebrow {
    font-size: 13px;
    padding: 8px 12px;
    margin-bottom: 16px;
  }

  .hero h1 {
    font-size: 38px;
    line-height: 1.08;
    letter-spacing: -1px;
    margin-bottom: 18px;
  }

  .hero-desc {
    font-size: 15.5px;
    line-height: 1.7;
    margin-bottom: 26px;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .btn {
    width: 100%;
    padding: 14px 18px;
  }

  .profile-card {
    width: 100%;
    padding: 18px;
    border-radius: 28px;
  }

  .photo-slider {
    height: 220px;
    border-radius: 24px;
    margin-bottom: 22px;
  }

  .slides img {
    object-fit: cover;
  }

  .profile-card h2 {
    font-size: 25px;
    line-height: 1.2;
  }

  .profile-card p {
    font-size: 14.5px;
    line-height: 1.7;
  }

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

  .about-box,
  .contact-box,
  .project-card {
    border-radius: 24px;
  }

  .about-box,
  .contact-box {
    padding: 22px;
  }

  .section-header h2 {
    font-size: 32px;
  }

  .skills-grid span {
    font-size: 13px;
    padding: 11px 14px;
  }

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

  .project-image {
    height: 180px;
  }

  .contact-box {
    align-items: stretch;
  }

  .contact-box .btn {
    width: 100%;
  }
}

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

@media (max-width: 680px) {
  .contact-actions {
    width: 100%;
    flex-direction: column;
  }

  .contact-actions .btn {
    width: 100%;
  }
}