/* Reset & base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: #0f0f17;
  color: #e0e0ff;
  line-height: 1.6;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(15, 15, 23, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid #1e1e38;
  transition: background 0.4s;
}

.navbar.scrolled {
  background: rgba(15, 15, 23, 0.98);
}

.navbar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.logo {
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: #66d9ef;
}

.nav-links {
  display: flex;
  gap: 36px;
}

.nav-links a {
  color: #c3c3ff;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a:focus {
  color: #66d9ef;
}

/* Hero */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(rgba(15,15,23,0.92), rgba(15,15,23,0.96)),
              url('https://images.unsplash.com/photo-1555066931-4365d14bab8c?auto=format&fit=crop&q=80&w=2000') center/cover no-repeat fixed;
}

.hero-content {
  text-align: center;
}

.hero-title {
  font-size: clamp(4.5rem, 12vw, 9rem);
  font-weight: 800;
  letter-spacing: -3px;
  color: white;
  line-height: 0.92;
  margin-bottom: 16px;
}

.hero-subtitle {
  font-size: clamp(2.2rem, 6vw, 3.8rem);
  color: #66d9ef;
  margin-bottom: 32px;
}

.hero-text {
  font-size: 1.35rem;
  max-width: 640px;
  margin: 0 auto 48px;
  color: #b0b0e0;
}

.btn-primary {
  display: inline-block;
  padding: 18px 48px;
  background: #66d9ef;
  color: #0f0f17;
  font-size: 1.25rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 12px;
  transition: all 0.25s ease;
}

.btn-primary:hover,
.btn-primary:focus {
  background: #89e0f0;
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(102, 217, 239, 0.28);
}

/* Sections */
.section {
  padding: 140px 0 100px;
}

.section-title {
  font-size: 3.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 80px;
  color: #66d9ef;
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 60px;
  align-items: center;
}

.about-photo-wrapper {
  text-align: center;
}

.about-photo {
  width: 260px;
  height: 260px;
  object-fit: cover;
  border-radius: 16px;
  border: 4px solid #2a2a4a;
  box-shadow: 0 12px 40px rgba(0,0,0,0.5);
}

.about-text {
  font-size: 1.18rem;
  color: #d0d0e8;
}

.about-text p {
  margin-bottom: 1.5em;
}

.link-external {
  color: #66d9ef;
  text-decoration: none;
  font-weight: 500;
}

.link-external:hover {
  text-decoration: underline;
}

/* Projects */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
}

.project-card {
  display: block;
  background: #161622;
  border: 1px solid #2a2a4a;
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  transition: all 0.32s ease;
}

.project-card:hover {
  transform: translateY(-12px);
  border-color: #66d9ef;
  box-shadow: 0 20px 50px rgba(0,0,0,0.4);
}

.project-image-wrapper {
  height: 180px;
  overflow: hidden;
}

.project-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.project-card:hover .project-image {
  transform: scale(1.08);
}

.project-info {
  padding: 24px;
}

.project-title {
  font-size: 1.65rem;
  margin-bottom: 12px;
  color: #e0e0ff;
}

.project-description {
  font-size: 0.97rem;
  color: #b0b0d0;
  line-height: 1.5;
}

/* Footer */
.footer {
  background: #0a0a14;
  padding: 60px 0 40px;
  text-align: center;
  color: #707090;
  font-size: 0.9rem;
}

.footer-content p {
  margin-bottom: 12px;
}

/* Responsive */
@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .about-photo {
    margin: 0 auto 40px;
  }
}

@media (max-width: 640px) {
  .hero-title   { font-size: 5.5rem; }
  .hero-subtitle { font-size: 2.6rem; }
  .section-title { font-size: 2.8rem; }
  .navbar-container {
    flex-direction: column;
    gap: 16px;
    padding: 16px 24px;
    height: auto;
  }
  .nav-links {
    gap: 24px;
  }
}