body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
  margin: 0;
  padding-top: 100px;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  color: #2c3e50;
  overflow-x: hidden;
  min-height: 100vh;
}

.logo {
  height: 28px;
  width: auto;
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0.9;
}

.logo:hover {
  transform: scale(1.08);
  opacity: 1;
}

/* ===== NAVBAR ===== */
.navbar {
  background-color: rgba(255, 255, 255, 0.92);
  position: fixed;
  top: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 18px 20px;
  backdrop-filter: blur(12px);
  z-index: 1000;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.06);
  border-bottom: 1px solid rgba(102, 126, 234, 0.1);
}

.nav-menu {
  display: flex;
  gap: 50px;
  align-items: center;
  margin-left: 50px;
}

.nav-menu a {
  display: block;
  color: #2c3e50;
  padding: 10px 20px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  text-transform: uppercase;
  letter-spacing: 1.2px;
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #667eea, #764ba2);
  transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 2px;
}

.nav-menu a:hover {
  color: #667eea;
}

.nav-menu a:hover::after {
  width: 70%;
}

/* ===== HAMBURGER ===== */
.hamburger {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
  gap: 5px;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: #2c3e50;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(10px, 10px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

.main {
  max-width: 1400px;
  margin: 0 auto;
  padding: 120px 40px;
}

h1 {
  font-size: 68px;
  color: #1a252f;
  text-align: center;
  margin: 0 0 15px 0;
  font-weight: 900;
  letter-spacing: -1.5px;
  line-height: 1.1;
}

.subtitle {
  text-align: center;
  color: #667eea;
  font-size: 18px;
  margin-bottom: 100px;
  font-weight: 500;
  letter-spacing: 0.5px;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 36px;
  margin-top: 60px;
}

.project {
  background: white;
  border-radius: 24px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 320px;
  border: 2px solid transparent;
}

.project::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 1;
}

.project::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 30% 30%, rgba(102, 126, 234, 0.08) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.project-content {
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex-grow: 1;
  position: relative;
  z-index: 2;
}

.project h2 {
  margin: 0 0 12px 0;
  font-size: 22px;
  color: #1a252f;
  font-weight: 800;
  letter-spacing: -0.5px;
  transition: color 0.4s ease;
}

.project p {
  margin: 0;
  color: #5a6c7d;
  font-size: 14px;
  line-height: 1.7;
  font-weight: 400;
}

.project-badge {
  display: inline-block;
  padding: 6px 12px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  border-radius: 24px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 14px;
  width: fit-content;
  opacity: 0;
  transform: translateY(12px);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) 0.1s;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.project:hover {
  transform: translateY(-16px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
  border-color: #667eea;
}

.project:hover::before {
  transform: scaleX(1);
}

.project:hover::after {
  opacity: 1;
}

.project:hover h2 {
  color: #667eea;
}

.project:hover .project-badge {
  opacity: 1;
  transform: translateY(0);
}

.rasp {
  height: 150px;
  width: auto;
}

/* ===== MOBILE MENU ===== */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
    position: absolute;
    right: 15px;
  }

  .navbar {
    flex-wrap: wrap;
    padding: 15px 15px;
    justify-content: center;
    position: relative;
  }

  .logo {
    position: absolute;
    left: 15px;
    height: 24px;
  }

  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    flex-direction: column;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    margin-left: 0;
  }

  .nav-menu.active {
    max-height: 300px;
  }

  .nav-menu a {
    padding: 16px 20px;
    border-bottom: 1px solid rgba(102, 126, 234, 0.1);
    font-size: 12px;
  }

  .main {
    padding: 80px 20px;
  }

  h1 {
    font-size: 40px;
    margin: 0 0 10px 0;
  }

  .subtitle {
    font-size: 14px;
    margin-bottom: 60px;
  }

  .projects-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 40px;
  }

  .project {
    min-height: 280px;
  }

  .project-content {
    padding: 24px 16px;
  }

  .project h2 {
    font-size: 18px;
  }

  .project p {
    font-size: 12px;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 28px;
  }

  .subtitle {
    font-size: 13px;
    margin-bottom: 40px;
  }

  .projects-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .main {
    padding: 40px 12px;
  }

  .nav-menu a {
    padding: 14px 16px;
    font-size: 11px;
  }
}

