* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  background: #f5f7fb;
  color: #0f172a;
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
}

.headerStyle {
  min-height: 100vh;
  padding: 20px 6%;
  background: linear-gradient(180deg, #ffffff, #f5f7fb);
}

.navigationbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0 30px;
}

.logo {
  font-size: 1.4rem;
  font-weight: 800;
  color: #00008f;
}

.nav-links {
  display: flex;
  gap: 24px;
  list-style: none;
}

.nav-links a:hover {
  color: #ff1721;
}

.menu-btn {
  display: none;
  background: transparent;
  color: #00008f;
  font-size: 1.8rem;
  border: none;
  cursor: pointer;
}

.AnfangContent {
  max-width: 800px;
  margin-top: 90px;
}

.tag {
  color: #ff1721;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.85rem;
  margin-bottom: 16px;
  font-weight: 700;
}

h1 {
  font-size: clamp(2.5rem, 7vw, 5rem);
  line-height: 1.05;
  margin-bottom: 20px;
  color: #00008f;
}

h1 span {
  color: #ff1721;
}

.AnfangText {
  max-width: 680px;
  font-size: 1.1rem;
  color: #475569;
}

.AnfangButtons {
  display: flex;
  gap: 14px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  transition: 0.3s;
  border: 2px solid transparent;
}

.primary {
  background: #ff1721;
  color: white;
}

.primary:hover {
  transform: translateY(-2px);
  background: #d8141d;
}

.secondary {
  border-color: rgba(0, 0, 143, 0.2);
  background: white;
  color: #00008f;
}

.secondary:hover {
  border-color: #ff1721;
  color: #ff1721;
}

.section {
  padding: 80px 6%;
  max-width: 1200px;
  margin: 0 auto;
}

.section h2 {
  font-size: 2rem;
  margin-bottom: 24px;
  color: #00008f;
}

.card,
.skill-card,
.project-card,
.contact-card {
  background: white;
  border: 1px solid rgba(0, 0, 143, 0.12);
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.skill-card h3,
.project-card h3 {
  margin-bottom: 14px;
  color: #00008f;
}

.bar {
  height: 12px;
  background: #e5e7eb;
  border-radius: 999px;
  overflow: hidden;
}

.bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #00008f, #ff1721);
  border-radius: 999px;
}

.checklist {
  padding-left: 20px;
}

.checklist li {
  margin-bottom: 12px;
}

.contact-card p {
  margin-bottom: 10px;
}

#copyMsg {
  margin-top: 12px;
  color: #16a34a;
  font-weight: 600;
}

footer {
  text-align: center;
  padding: 30px 20px;
  color: #475569;
  border-top: 1px solid rgba(0, 0, 143, 0.12);
  background: white;
}

@media (max-width: 768px) {
  .menu-btn {
    display: block;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 80px;
    right: 6%;
    flex-direction: column;
    background: white;
    padding: 20px;
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 143, 0.15);
  }

  .nav-links.active {
    display: flex;
  }
}

.card {
  max-width: 900px;
  margin: 0 auto;
  padding: 28px;
  background: white;
  border: 1px solid rgba(0, 0, 143, 0.12);
  border-radius: 20px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.card p {
  font-size: 1rem;
  line-height: 1.9;
  color: #334155;
}

.project-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.project-link:hover .project-card {
  transform: translateY(-4px);
  border-color: #ff1721;
}

.project-card {
  transition: 0.3s;
  cursor: pointer;
}