* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Arial, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background: #050816;
  color: white;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(59,130,246,.28), transparent 25%),
    radial-gradient(circle at 80% 10%, rgba(147,51,234,.28), transparent 25%),
    radial-gradient(circle at 50% 80%, rgba(6,182,212,.18), transparent 25%);
  z-index: -1;
}

header {
  width: 100%;
  height: 72px;
  padding: 0 4%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(3, 7, 18, .78);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,.08);
  position: fixed;
  top: 0;
  z-index: 999;
}

.logo {
  font-size: 20px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo i {
  color: #60a5fa;
}

nav a {
  color: white;
  text-decoration: none;
  margin: 0 13px;
  font-weight: 700;
  opacity: .9;
}

nav a:hover,
nav a.active {
  color: #38bdf8;
  text-shadow: 0 0 15px #38bdf8;
}

.top-icons {
  display: flex;
  align-items: center;
  gap: 10px;
}

.top-icons a {
  width: 35px;
  height: 35px;
  display: grid;
  place-items: center;
  color: white;
  text-decoration: none;
  background: rgba(15, 23, 42, .8);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 50%;
  font-size: 18px;
  transition: .3s;
}

.top-icons a:hover {
  color: #38bdf8;
  border-color: #38bdf8;
  box-shadow: 0 0 18px rgba(56,189,248,.55);
  transform: translateY(-3px);
}

.hero {
  min-height: 430px;
  padding: 110px 5% 35px;
  display: grid;
  grid-template-columns: 1fr 1.8fr;
  align-items: center;
  gap: 30px;
}

.hero-text h3 {
  font-size: 30px;
}

.hero-text h1 {
  font-size: 62px;
  line-height: 1.05;
  margin: 8px 0;
  color: #38bdf8;
  text-shadow: 0 0 25px rgba(56,189,248,.6);
}

.hero-text h1 span {
  color: white;
}

.hero-text p {
  max-width: 500px;
  color: #cbd5e1;
  font-size: 18px;
  line-height: 1.6;
}

.hero-buttons {
  margin-top: 28px;
}

.hero-buttons a {
  display: inline-block;
  padding: 14px 26px;
  border-radius: 30px;
  background: linear-gradient(90deg, #38bdf8, #8b5cf6);
  color: white;
  text-decoration: none;
  margin-right: 12px;
  font-weight: 800;
  box-shadow: 0 0 25px rgba(139,92,246,.45);
}

.hero-buttons .outline {
  background: rgba(15,23,42,.75);
  border: 1px solid rgba(255,255,255,.16);
}

.hero-image {
  display: flex;
  justify-content: center;
}

.hero-image img {
  width: 100%;
  max-height: 330px;
  object-fit: cover;
  border-radius: 25px;
  filter: drop-shadow(0 0 40px rgba(56,189,248,.35));
}

.dashboard {
  padding: 10px 4% 40px;
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-areas:
    "projects about"
    "skills tools"
    "connect connect";
  gap: 18px;
}

.panel {
  background: rgba(15, 23, 42, .72);
  border: 1px solid rgba(96,165,250,.18);
  border-radius: 24px;
  padding: 22px;
  box-shadow: inset 0 0 30px rgba(56,189,248,.03), 0 0 25px rgba(0,0,0,.35);
}

.panel-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.panel-title h2,
.panel h2 {
  font-size: 23px;
}

.panel-title h2 i,
.panel h2 i {
  color: #8b5cf6;
}

.panel-title a {
  color: #93c5fd;
  text-decoration: none;
  font-size: 14px;
}

.projects-panel {
  grid-area: projects;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}

.project-card {
  background: rgba(2, 6, 23, .75);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 18px;
  padding: 12px;
  transition: .3s;
}

.project-card:hover {
  transform: translateY(-6px);
  border-color: #38bdf8;
  box-shadow: 0 0 20px rgba(56,189,248,.25);
}

.project-card img {
  width: 100%;
  height: 105px;
  object-fit: cover;
  border-radius: 14px;
  margin-bottom: 10px;
}

.project-card h3 {
  font-size: 15px;
}

.project-card p {
  color: #94a3b8;
  font-size: 13px;
  margin: 4px 0;
}

.project-card span {
  font-size: 13px;
  color: #e2e8f0;
}

.project-card button {
  width: 100%;
  margin-top: 10px;
  padding: 9px;
  border: 1px solid #7c3aed;
  border-radius: 18px;
  background: rgba(88,28,135,.6);
  color: white;
  cursor: pointer;
}

.about-panel {
  grid-area: about;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.about-panel p {
  color: #cbd5e1;
  line-height: 1.6;
  margin: 15px 0;
}

.about-panel a {
  display: inline-block;
  padding: 12px 24px;
  background: rgba(88,28,135,.6);
  border: 1px solid #7c3aed;
  border-radius: 25px;
  color: white;
  text-decoration: none;
}

.about-panel img {
  width: 145px;
  height: 190px;
  object-fit: cover;
  border-radius: 22px;
}

.skills-panel {
  grid-area: skills;
}

.skill {
  margin-top: 15px;
  position: relative;
}

.skill span {
  font-size: 14px;
}

.skill b {
  position: absolute;
  right: 0;
  font-size: 13px;
  color: #cbd5e1;
}

.skill div {
  height: 9px;
  background: #1e293b;
  border-radius: 20px;
  margin-top: 8px;
  overflow: hidden;
}

.skill em {
  height: 100%;
  display: block;
  border-radius: 20px;
  background: linear-gradient(90deg, #8b5cf6, #38bdf8);
}

.tools-panel {
  grid-area: tools;
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  margin-top: 20px;
}

.tools-grid div {
  text-align: center;
  background: rgba(2,6,23,.6);
  padding: 13px;
  border-radius: 15px;
  border: 1px solid rgba(255,255,255,.06);
}

.tools-grid i {
  font-size: 30px;
  color: #38bdf8;
  margin-bottom: 8px;
}

.connect-panel {
  grid-area: connect;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.connect-panel p {
  color: #cbd5e1;
  margin: 15px 0 25px;
}

.social-icons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.social-icons a {
  width: 46px;
  height: 46px;
  background: rgba(2,6,23,.8);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: white;
  font-size: 23px;
  text-decoration: none;
  transition: .3s;
}

.social-icons a:hover {
  background: #38bdf8;
  transform: translateY(-5px);
  box-shadow: 0 0 18px rgba(56,189,248,.6);
}

footer {
  text-align: center;
  padding: 25px;
  color: #94a3b8;
}

@media (max-width: 1100px) {
  .projects-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .dashboard {
    grid-template-columns: 1fr;
    grid-template-areas:
      "projects"
      "about"
      "skills"
      "tools";
  }
}

@media (max-width: 768px) {
  header {
    height: auto;
    padding: 15px;
    flex-direction: column;
    gap: 12px;
  }

  nav {
    text-align: center;
  }

  nav a {
    display: inline-block;
    margin: 6px;
  }

  .top-icons {
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 210px;
  }

  .hero-text h1 {
    font-size: 42px;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .about-panel,
  .connect-panel {
    flex-direction: column;
    text-align: center;
  }
}