* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: linear-gradient(180deg, #0b1220 0%, #0f172a 60%);
  color: #f1f5f9;
  font-family:
    Inter,
    system-ui,
    -apple-system,
    'Segoe UI',
    Roboto,
    'Helvetica Neue',
    Arial;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

header {
  padding: 1rem 0;
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: #111827 rgba(17, 24, 39, 0.8);
  border-bottom: 1px solid #1e293b;
  padding: 0.8rem 0;
  backdrop-filter: blur(10px);
}

section {
  scroll-margin-top: 80px;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 1000px #1e293b inset;
  -webkit-text-fill-color: #f1f5f9;
}

.container {
  margin: 0 auto;
  width: 100%;
  max-width: 1200px;
  padding-inline: 1rem;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
}

.nav-links a {
  transition: color 0.3s ease-out;
}

.nav-links a:hover {
  color: #38bdf8;
}

.nav-links a.active {
  color: #38bdf8;
}

.menu-toggle {
  display: none;
  transition: transform 0.3s ease;
}

.menu-toggle:active {
  transform: scale(0.8);
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 80px;
    right: 20px;

    background: rgba(30, 41, 59, 0.9);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);

    flex-direction: column;
    width: 220px;
    padding: 1.5rem;
    gap: 0.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);

    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px) scale(0.95);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: none;
  }

  .nav-links.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: auto;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links li a {
    padding: 12px 15px;
    border-radius: 12px;
    display: block;
    width: 100%;
    transition: all 0.3s ease;
  }

  .nav-links li a:hover {
    background: rgba(56, 189, 248, 0.15);
    color: #38bdf8;
    padding-right: 25px;
  }
}

.hero {
  padding: 5rem 0;
}

.hero h2 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.hero p {
  max-width: 600px;
  margin: 0 auto 2rem;
  color: #cbd5f5;
  line-height: 1.6;
}

.hero-content {
  text-align: center;
}

.btnHero {
  display: inline-block;
  padding: 0.8rem 1.6rem;
  background: #38bdf8;
  color: #0f172a;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.2s ease-in-out;
  position: relative;
  overflow: hidden;
}

.btnHero:hover {
  background: #0ea5e9;
  transform: scale(1.03);
}

.btnHero::after {
  content: '';
  position: absolute;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.4);
  border-radius: 20%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition:
    width 0.3s ease,
    height 0.3s ease;
}

.btnHero:active::after {
  width: 300px;
  height: 300px;
}

.section-title {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 3rem;
}

.about {
  padding: 5rem 0;
}

.about-content {
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  gap: 3rem;
}

@media (max-width: 768px) {
  .about-content {
    flex-direction: column;
    text-align: center;
  }

  .about-image img {
    max-width: 250px;
  }
}

.about-text {
  flex: 1;
}

.about-text p {
  color: #cbd5f5;
  line-height: 1.7;
  margin-bottom: 1.7rem;
  font-size: 1.2rem;
  transition: transform 0.3s ease-out;
}

.about-text p:hover {
  transform: scale(1.03);
}

.about-image {
  flex: 1;
}

.about-image img {
  width: 100%;
  max-width: 350px;
  border-radius: 999px;
  object-fit: cover;
  transition:
    transform 0.3s ease-out,
    box-shadow 0.3s ease-out;
  box-shadow:
    0 10px 30px rgba(2, 6, 23, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

.about-image img:hover {
  transform: scale(1.03);
}

.skills {
  padding: 5rem 0;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.skill-card {
  background: #1e293b;
  padding: 2rem;
  border-radius: 16px;
  transition:
    transform 0.3s ease,
    background 0.3s ease;
}

.skill-card:hover {
  transform: translate(-8px);
  background: #334155;
}

.skill-card h3 {
  margin-bottom: 1rem;
  color: #38bdf8;
}

.skill-card p {
  color: #cbd5e1;
  line-height: 1.6;
}

.projects {
  padding: 5rem 0;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
}

.project-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: linear-gradient(180deg, #0b1220 0%, #111827 100%);
  border-radius: 16px;
  overflow: hidden;
  transition:
    transform 0.32s cubic-bezier(0.2, 0.9, 0.3, 1),
    box-shadow 0.32s ease;
  box-shadow: 0 6px 20px rgba(2, 6, 23, 0.6);
}

.project-card:hover {
  transform: translateY(-10px);
  background: #334155;
}

.project-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.project-card img:hover {
  transform: scale(1.06);
}

.project-content {
  padding: 1.2rem;
}

.project-content h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.project-content p {
  color: #cbd5f5;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.project-link {
  padding: 1.3rem;
  display: flex;
  gap: 1rem;
}

.project-link a {
  font-size: 0.9rem;
  padding: 0.45rem 1rem;
  border-radius: 10px;
  background: #06b6d4;
  color: #022028;
  transition:
    transform 0.18s ease,
    background 0.18s ease;
  box-shadow: 0 6px 18px rgba(2, 6, 23, 0.45);
}

.project-link a:hover {
  background: #0ea5e9;
  transform: scale(1.04);
}

.contact {
  padding: 5rem 0;
}

.contact-form {
  max-width: 600px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
}

.form-group label {
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  color: #cbd5f5;
}

.form-group input,
.form-group textarea {
  padding: 0.8rem 1rem;
  border-radius: 10px;
  border: 1px solid #334155;
  background: #1e293b;
  color: #f1f5f9;
  font-size: 1rem;
  outline: none;
  transition:
    border 0.2s ease,
    box-shadow 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: #38bdf8;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.2);
}

.form-group input:hover:not(:focus),
.form-group textarea:hover:not(:focus) {
  border-color: #475569;
  box-shadow: 0 0 6px rgba(56, 189, 248, 0.3);
}

.btnForm {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  background: #38bdf8;
  color: #0f172a;
  border-radius: 10px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition:
    transform 0.2s ease,
    background 0.2s ease;
  border: none;
  cursor: pointer;
  width: 100%;
  margin-top: 1rem;
}

.btnForm:hover {
  background: #0ea5e9;
  transform: scale(1.02);
}

.hero {
  padding: 6rem 0;
  background-image:
    radial-gradient(
      ellipse at 10% 10%,
      rgba(56, 189, 248, 0.06),
      transparent 20%
    ),
    radial-gradient(
      ellipse at 90% 80%,
      rgba(99, 102, 241, 0.04),
      transparent 20%
    );
}

.footer {
  padding: 2rem 0;
  border-top: 1px solid #1e293b;
  margin-top: 4rem;
}

.footer .container {
  text-align: center;
}

.copyright {
  color: #94a3b8;
  font-size: 0.9rem;
}

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.6s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}
