.navbar {
  z-index: 1000;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 20px 40px;
  position: sticky;
  top: 0;
  background: rgba(40, 44, 53, 0.8);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.logo {
  font-weight: 600;
  color: white;
  justify-self: start;
}

.links {
  justify-self: center;
}

.links a {
  margin: 0 15px;
  color: #cfcfcf;
  text-decoration: none;
  transition: color 0.2s ease;
}

.links a:hover {
  color: white;
}

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background: #0f1115;
  color: #e6e6e6;
  line-height: 1.6;
}

section {
  max-width: 900px;
  margin: auto;
  padding: 50px 24px;
}

.hero {
  text-align: left;
  padding-top: 140px;
}

h1 {
  font-size: 64px;
  font-weight: 600;
  margin: 0;
  letter-spacing: -1px;
}

.hero p {
  font-size: 18px;
  color: #ececec;
  margin-top: 10px;
}

h2 {
  font-size: 28px;
  margin-bottom: 30px;
  color: #ffffff;
  letter-spacing: -0.5px;
}

.about p {
  color: #cfcfcf;
  font-size: 16px;
  max-width: 750px;
}

.project {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 24px;
  transition: transform 0.2s ease, border 0.2s ease;
}

.project:hover {
  transform: translateY(-6px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  position: relative;
  z-index: 1;
}

.project h3 {
  margin: 0 0 10px 0;
  font-size: 20px;
}

.project-desc {
  color: #e9e9e9;
  margin-bottom: 20px;
}

.project-section h4 {
  margin: 20px 0 10px;
  font-size: 14px;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.project-section ul {
  padding-left: 18px;
  color: #e9e9e9;
}

.project-section li {
  margin-bottom: 6px;
}

.project-links a {
  margin-right: 16px;
  color: #7aa2ff;
  text-decoration: none;
}

.project-links a:hover {
  text-decoration: underline;
}

.contact p {
  color: #ffffff;
}

a {
  color: #7aa2ff;
}

.video-wrapper {
  position: relative;
  width: 100%;
  max-width: 900px;
  margin: 20px auto;

  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
}

.video-wrapper iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.resume-btn {
  display: inline-block;
  padding: 10px 16px;
  background: #7aa2ff;
  color: black;
  border-radius: 8px;
  text-decoration: none;
  margin-top: 10px;
}

.resume-container {
  max-width: 1000px;
  margin: 30px auto;
  margin-top: 20px;
  border-radius: 12px;
  overflow: visible;
  border: 1px solid rgba(255,255,255,0.1);
}

.resume-container iframe {
  width: 100%;
  height: 800px;
  border: none;
}

.resume-wrapper {
  width: 100%;
  height: 800px;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.1);
}

.resume-wrapper iframe {
  width: 100%;
  height: 100%;
  transform-origin: top center;
}

.code-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  align-items: start;
}

.code-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  padding: 20px;
  cursor: pointer;
  transition: all 0.25s ease;
  overflow: hidden;
  width: 100%;
  box-sizing: border-box;
}

.code-card:hover {
  transform: translateY(-4px);
  border: 1px solid rgba(255,255,255,0.2);
}

.code-subtitle {
  font-size: 14px;
  color: #7aa2ff;
  margin-bottom: 10px;
}

.code-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
  margin-top: 0;
}

.code-card.active {
  grid-column: 1 / -1;
  padding: 30px;
}

.code-card.active .code-content {
  max-height: 500px;
  margin-top: 20px;
}

.code-card.active pre {
  max-height: 400px;
}

.expand-indicator {
  display: block;
  margin-top: 10px;
  font-size: 12px;
  color: #888;
}

.code-card.active .expand-indicator {
  display: none;
}

pre {
  background: #1a1a1a;
  padding: 20px;
  border-radius: 10px;
  overflow-x: auto;
  white-space: pre;
  max-height: 400px;
  font-size: 14px;
  line-height: 1.5;
}

code {
  color: #dcdcdc;
  font-size: 14px;
}

* {
  box-sizing: border-box;
}

.mini-projects {
  margin-top: 60px;
}

.carousel {
  position: relative;
  max-width: 800px;
  margin: auto;
  overflow: hidden;
  border-radius: 12px;
}

.carousel-track {
  position: relative;
  aspect-ratio: 16 / 9;
}

.slide {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;

  opacity: 0;
  transition: opacity 0.4s ease;
}

.slide.active {
  opacity: 1;
}

.arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);

  width: 44px;
  height: 44px;

  display: flex;
  align-items: center;
  justify-content: center;

  background: rgba(0,0,0,0.5);
  border: none;
  color: white;
  font-size: 20px;
  cursor: pointer;

  border-radius: 50%;
  z-index: 10;
}


.arrow:hover {
  background: rgba(0,0,0,0.8);
  transform: translateY(-50%) scale(1.1);
}

.arrow.left {
  left: 10px;
}

.arrow.right {
  right: 10px;
}