.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(10px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 40px;
  box-sizing: border-box;
  z-index: 1000;
}

.logo {
  font-size: 24px;
  font-weight: bold;
  color: #00eaff;
}

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

.nav-links a {
  text-decoration: none;
  color: white;
  transition: 0.3s;
}

.nav-links a:hover {
  color: #00eaff;
}

#about,
#skills,
#contact {
  min-height: 100vh;
  background: #000814;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 40px 20px;
  text-align: center;
}

.about-text,
.contact-text {
  max-width: 700px;
  color: #c8d6ff;
  line-height: 1.7;
  font-size: 18px;
}

.skills-box {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  max-width: 700px;
  margin-top: 20px;
}

.skills-box span {
  font-size: 12px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(0, 234, 255, 0.12);
  border: 1px solid rgba(0, 234, 255, 0.18);
}

.contact-links {
  margin-top: 20px;
  display: flex;
  gap: 20px;
}

.contact-links a {
  color: #00eaff;
  text-decoration: none;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #0a0a0a;
  color: white;
}

.hero {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: radial-gradient(circle at top, #111 0%, #000 70%);
}

.hero h1 {
  font-size: 60px;
  background: linear-gradient(90deg, #00eaff, #0077ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 20px rgba(0, 234, 255, 0.6);
}

.hero p {
  font-size: 20px;
  opacity: 0.8;
}

.btn {
  display: inline-block;
  margin-top: 20px;
  padding: 12px 28px;
  border-radius: 25px;
  background: linear-gradient(90deg, #00eaff, #0077ff);
  color: white;
  font-size: 16px;
  text-decoration: none;
  box-shadow: 0 0 15px rgba(0, 234, 255, 0.5);
  transition: 0.3s;
  border: none;
  cursor: pointer;
}

.btn:hover {
  transform: scale(1.05);
  box-shadow: 0 0 25px rgba(0, 234, 255, 0.9);
}

#projects {
  min-height: 100vh;
  background: #000814;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 40px 20px;
  gap: 18px;
}

.section-title {
  font-size: 44px;
  margin-bottom: 6px;
  text-align: center;
}

.section-subtitle {
  color: #b0c4ff;
  opacity: 0.9;
  margin-bottom: 18px;
}

.cards {
  width: min(980px, 92vw);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(0, 234, 255, 0.15);
  border-radius: 18px;
  padding: 18px;
  backdrop-filter: blur(8px);
  transition: 0.3s;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 0 28px rgba(0, 234, 255, 0.25);
}

.card p {
  color: #c8d6ff;
  opacity: 0.9;
  line-height: 1.4;
}

.tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 12px 0;
}

.tags span {
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(0, 234, 255, 0.12);
  border: 1px solid rgba(0, 234, 255, 0.18);
}

.card-link {
  color: #00eaff;
  text-decoration: none;
}

.card-link:hover {
  text-decoration: underline;
}

.back-home {
  margin-top: 8px;
  color: white;
  text-decoration: none;
  opacity: 0.9;
  transition: 0.3s;
}

.back-home:hover {
  color: #00eaff;
  opacity: 1;
  text-shadow: 0 0 10px rgba(0, 234, 255, 0.45);
}

#palette-generator {
  min-height: 100vh;
  background: #000814;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 40px 20px;
  text-align: center;
}

.palette-controls {
  margin: 20px 0 30px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.secondary-btn {
  background: transparent;
  border: 1px solid rgba(0, 234, 255, 0.35);
  color: #00eaff;
  box-shadow: none;
}

.secondary-btn:hover {
  box-shadow: 0 0 18px rgba(0, 234, 255, 0.2);
}

.palette-container {
  width: min(1100px, 92vw);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.color-box {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(0, 234, 255, 0.15);
  border-radius: 18px;
  padding: 14px;
  backdrop-filter: blur(8px);
  transition: 0.3s;
  cursor: pointer;
}

.color-box:hover {
  transform: translateY(-6px);
  box-shadow: 0 0 24px rgba(0, 234, 255, 0.2);
}

.color-preview {
  width: 100%;
  height: 220px;
  border-radius: 14px;
  margin-bottom: 14px;
}

.color-code {
  margin: 0;
  font-size: 15px;
  color: #c8d6ff;
  letter-spacing: 1px;
}

.copy-message {
  margin-top: 20px;
  min-height: 24px;
  color: #00eaff;
  font-size: 15px;
}

#copyAllBtn {
  color: white;
  font-weight: bold;
  border: none;
  transition: 0.3s;
}

#copyAllBtn:hover {
  transform: scale(1.07);
  box-shadow: var(--glow);
}

.page-section {
  display: none !important;
  min-height: 100vh;
}

.page-section.active-section {
  display: flex !important;
}

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

  .color-preview {
    height: 120px;
  }
}

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

  .nav-links {
    gap: 12px;
    font-size: 14px;
  }

  .hero h1 {
    font-size: 42px;
    text-align: center;
  }

  .hero p {
    text-align: center;
    padding: 0 20px;
  }
}
