* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Arial, sans-serif;
  background-color: #05070b;
  color: white;
  line-height: 1.6;
}

.header {
  width: 100%;
  padding: 18px 8%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: rgba(5, 7, 11, 0.88);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.brand {
  font-size: 22px;
  font-weight: bold;
  color: white;
  letter-spacing: 1px;
}

nav a {
  color: white;
  text-decoration: none;
  margin-left: 25px;
  font-weight: bold;
  font-size: 15px;
}

nav a:hover,
nav a.active {
  color: #00e5ff;
}

.menu-btn {
  display: none;
  padding: 9px 14px;
  border: none;
  border-radius: 6px;
  background-color: #00e5ff;
  color: #001014;
  font-weight: bold;
  cursor: pointer;
}

.hero {
  min-height: 100vh;
  padding: 150px 8% 80px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background-color: #05070b;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(90deg, rgba(5, 7, 11, 0.97), rgba(5, 7, 11, 0.72)),
    url("logo.png");
  background-repeat: no-repeat;
  background-position: right center;
  background-size: 650px;
  opacity: 1;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 680px;
}

.label {
  color: #00e5ff;
  font-weight: bold;
  margin-bottom: 12px;
}

.hero h1 {
  font-size: 58px;
  line-height: 1.1;
  margin-bottom: 20px;
}

.hero p {
  font-size: 18px;
  color: #cbd5e1;
}

.hero-button {
  margin-top: 30px;
  display: flex;
  gap: 14px;
}

.btn {
  display: inline-block;
  padding: 13px 22px;
  border-radius: 6px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-weight: bold;
}

.primary {
  background-color: #00e5ff;
  color: #001014;
}

.secondary {
  background-color: transparent;
  color: white;
  border: 1px solid white;
}

.section {
  padding: 90px 8%;
}

.light {
  background-color: white;
  color: #111827;
}

.dark {
  background-color: #05070b;
  color: white;
}

.section h2 {
  font-size: 38px;
  margin-bottom: 15px;
}

.section > p,
.section-desc {
  max-width: 760px;
  margin-bottom: 30px;
  color: #64748b;
}

.dark .section-desc {
  color: #cbd5e1;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.card,
.project-card {
  padding: 25px;
  border-radius: 8px;
  transition: 0.3s;
}

.card {
  background-color: #10141c;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.project-card {
  background-color: #f1f5f9;
  border: 1px solid #e2e8f0;
}

.card:hover,
.project-card:hover {
  transform: translateY(-6px);
}

.card h3,
.project-card h3 {
  color: #00a9c0;
  margin-bottom: 10px;
}

.card p {
  color: #cbd5e1;
}

.project-card p {
  color: #475569;
}

.project-card span {
  display: inline-block;
  margin-bottom: 20px;
  font-size: 28px;
  font-weight: bold;
  color: #00a9c0;
}

form {
  max-width: 620px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

input,
textarea {
  width: 100%;
  padding: 14px;
  border-radius: 6px;
  border: 1px solid #334155;
  background-color: #10141c;
  color: white;
  font-size: 15px;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: #00e5ff;
}

#formMessage {
  font-weight: bold;
  color: #22c55e;
}

#formMessage.error {
  color: #ef4444;
}

footer {
  text-align: center;
  padding: 25px;
  background-color: #020617;
  color: white;
}

@media (max-width: 768px) {
  nav {
    display: none;
    position: absolute;
    top: 75px;
    left: 0;
    width: 100%;
    padding: 20px 8%;
    background-color: #05070b;
  }

  nav.active {
    display: block;
  }

  nav a {
    display: block;
    margin: 15px 0;
  }

  .menu-btn {
    display: block;
  }

  .hero::before {
    background-size: 430px;
    background-position: center bottom;
  }

  .hero h1 {
    font-size: 36px;
  }

  .hero-button {
    flex-direction: column;
  }

  .grid {
    grid-template-columns: 1fr;
  }
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.skill-card {
  padding: 25px;
  border-radius: 12px;
  background: linear-gradient(145deg, #10141c, #070a10);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: 0.3s;
}

.skill-card:hover {
  transform: translateY(-6px);
  border-color: #00e5ff;
}

.skill-icon {
  width: 70px;
  height: 70px;
  margin-bottom: 18px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 18px;
  color: white;
  box-shadow: 0 15px 35px rgba(0, 229, 255, 0.18);
}

.html-icon {
  background: linear-gradient(135deg, #ff6a00, #ff2d00);
}

.css-icon {
  background: linear-gradient(135deg, #007bff, #00e5ff);
}

.js-icon {
  background: linear-gradient(135deg, #f7df1e, #ffb703);
  color: #111827;
}

.php-icon {
  background: linear-gradient(135deg, #777bb4, #4f5b93);
}

.python-icon {
  background: linear-gradient(135deg, #3776ab, #ffd43b);
  color: #111827;
}

.db-icon {
  background: linear-gradient(135deg, #00e5ff, #00b894);
  color: #001014;
}

.skill-card h3 {
  margin-bottom: 8px;
  color: #00e5ff;
}

.skill-card p {
  color: #cbd5e1;
  margin-bottom: 20px;
}

.skill-info {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 14px;
}

.skill-info span {
  color: #94a3b8;
}

.skill-info strong {
  color: white;
}

.skill-progress {
  width: 100%;
  height: 9px;
  border-radius: 50px;
  background-color: #1e293b;
  overflow: hidden;
}

.skill-bar {
  height: 100%;
  border-radius: 50px;
  background: linear-gradient(90deg, #00e5ff, #ff00a8);
}

@media (max-width: 768px) {
  .skills-grid {
    grid-template-columns: 1fr;
  }
}
.photo-icon {
  background: linear-gradient(135deg, #111827, #00e5ff);
}

.editing-icon {
  background: linear-gradient(135deg, #ff00a8, #7c3aed);
}

.project-grid-new {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.project-item {
  padding: 25px;
  border-radius: 12px;
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  transition: 0.3s;
}

.project-item:hover {
  transform: translateY(-6px);
  border-color: #00a9c0;
  box-shadow: 0 15px 35px rgba(15, 23, 42, 0.12);
}

.project-category {
  display: inline-block;
  margin-bottom: 14px;
  padding: 6px 12px;
  border-radius: 50px;
  background-color: #e0faff;
  color: #008ca3;
  font-size: 13px;
  font-weight: bold;
}

.project-item h3 {
  margin-bottom: 10px;
  color: #111827;
}

.project-item p {
  color: #475569;
  margin-bottom: 18px;
}

.project-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.project-tools span {
  padding: 6px 10px;
  border-radius: 6px;
  background-color: #e2e8f0;
  color: #334155;
  font-size: 13px;
  font-weight: bold;
}

@media (max-width: 768px) {
  .project-grid-new {
    grid-template-columns: 1fr;
  }
}
