:root {
  --bg: #07111f;
  --card: rgba(15, 23, 42, 0.82);
  --text: #eef2ff;
  --muted: #a8b3cf;
  --accent: #38bdf8;
  --accent-2: #a78bfa;
  --border: rgba(148, 163, 184, 0.22);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(56, 189, 248, 0.22), transparent 32%),
    radial-gradient(circle at top right, rgba(167, 139, 250, 0.18), transparent 34%),
    linear-gradient(135deg, var(--bg), #020617);
  color: var(--text);
  line-height: 1.6;
}

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

a:hover {
  text-decoration: underline;
}

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

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 0;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: rgba(7, 17, 31, 0.86);
  backdrop-filter: blur(14px);
  z-index: 10;
}

.logo {
  font-weight: 800;
  letter-spacing: 0.04em;
}

.nav-links a {
  margin-left: 22px;
  color: var(--text);
  font-size: 0.95rem;
}

header {
  padding: 90px 0 70px;
  border-bottom: 1px solid var(--border);
}

.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 56px;
}

.hero-text {
  flex: 1;
}

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

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

.hero p {
  max-width: 760px;
  color: var(--muted);
  font-size: 1.17rem;
  margin-bottom: 26px;
}

.profile-pic {
  flex: 0 0 320px;
  width: 320px;
  height: 400px;

  object-fit: cover;

  border-radius: 16px;      /* Rounded corners */
  border: 2px solid rgba(255,255,255,0.08);
  box-shadow: 0 20px 45px rgba(0,0,0,0.35);
}

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

.btn {
  display: inline-block;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid var(--accent);
  color: var(--text);
  font-weight: 700;
}

.btn.primary {
  background: var(--accent);
  color: #020617;
}

.btn:hover {
  transform: translateY(-2px);
  text-decoration: none;
}

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

section h2 {
  font-size: 2rem;
  margin-bottom: 22px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

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

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 24px;
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.22);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.card:hover {
  transform: translateY(-5px);
  border-color: var(--accent);
}

.card h3 {
  margin-bottom: 8px;
  color: #f9fafb;
}

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

.tag-list,
.skills {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 14px;
}

.tag,
.skill {
  font-size: 0.86rem;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(30, 41, 59, 0.95);
  color: #dbeafe;
  border: 1px solid var(--border);
}

.experience-item {
  margin-bottom: 30px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.experience-top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.experience-top h3 {
  color: #f9fafb;
}

.date {
  color: var(--accent-2);
  font-size: 0.95rem;
}

ul {
  padding-left: 20px;
}

footer {
  padding: 34px 0;
  color: var(--muted);
  text-align: center;
}

@media (max-width: 650px) {
  nav {
    align-items: flex-start;
    gap: 12px;
    flex-direction: column;
  }

  .nav-links a {
    margin-left: 0;
    margin-right: 14px;
  }

  .hero {
    flex-direction: column-reverse;
    text-align: center;
  }

  .profile-pic {
    width: 240px;
    height: 300px;
    flex: 0 0 240px;

    object-fit: cover;
    border-radius: 16px;
  }

  .buttons {
    justify-content: center;
  }

  .shorts-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 320px));
    justify-content: center;
    gap: 16px;
    margin: 16px 0 20px;
  }

  .shorts-grid .video-wrapper {
    width: 100%;
    margin: 0;
  }

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

  .project-links {
      display: flex;
      gap: 12px;
      flex-wrap: wrap;
      margin: 18px 0;
  }
}