* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Inter", sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background: #ffffff;
  color: #111827;
}

/* Navbar */

header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(15px);
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.06);
}

nav {
  width: 85%;
  margin: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 0;
}

.logo {
  text-decoration: none;
  color: #111827;
  font-size: 28px;
  font-weight: 800;
}

.logo span {
  color: #2563eb;
}

nav ul {
  display: flex;
  gap: 35px;
  list-style: none;
}

nav ul a {
  color: #374151;
  text-decoration: none;
  font-weight: 500;
  transition: 0.3s;
}

nav ul a:hover {
  color: #2563eb;
}

/* Hero */

.hero {
  width: 85%;
  min-height: 100vh;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 50px;
}

.hero-content {
  max-width: 650px;
}

.role {
  color: #2563eb;
  letter-spacing: 4px;
  font-weight: 600;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: 65px;
  line-height: 1.1;
  font-weight: 800;
}

.hero h1 span {
  color: #2563eb;
}

.description {
  margin-top: 25px;
  color: #6b7280;
  font-size: 18px;
  line-height: 1.8;
}

/* Buttons */

.buttons {
  margin-top: 35px;
}

.primary,
.secondary {
  display: inline-block;
  padding: 14px 32px;
  border-radius: 10px;
  text-decoration: none;
  margin-right: 15px;
  transition: 0.3s;
}

.primary {
  background: #2563eb;
  color: white;
}

.primary:hover {
  transform: translateY(-5px);
}

.secondary {
  border: 1px solid #2563eb;
  color: #2563eb;
}

.secondary:hover {
  background: #2563eb;
  color: white;
}

/* Social */

.social {
  margin-top: 30px;
}

.social a {
  color: #6b7280;
  margin-right: 25px;
  text-decoration: none;
}

.social a:hover {
  color: #2563eb;
}

/* Profile */

.profile-box {
  position: relative;
}

.circle {
  width: 360px;
  height: 360px;

  border-radius: 50%;

  padding: 8px;

  background: linear-gradient(135deg, #2563eb, #93c5fd);
}

.circle img {
  width: 100%;
  height: 100%;

  border-radius: 50%;

  object-fit: cover;

  background: white;
}

.floating-card {
  position: absolute;

  bottom: 20px;
  left: -60px;

  background: white;

  padding: 25px;

  border-radius: 15px;

  border: 1px solid #e5e7eb;

  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.floating-card h3 {
  color: #2563eb;
}

/* Sections */

section:not(.hero) {
  width: 85%;
  margin: auto;
  padding: 100px 0;
}

h2 {
  font-size: 42px;
  text-align: center;
  margin-bottom: 50px;
}

/* About */

.about p {
  max-width: 850px;

  margin: auto;

  text-align: center;

  color: #6b7280;

  font-size: 18px;

  line-height: 1.8;
}

/* Skills */

.skill-grid {
  display: grid;

  grid-template-columns: repeat(4, 1fr);

  gap: 20px;
}

.skill-grid div {
  padding: 25px;

  text-align: center;

  background: #f8fafc;

  border: 1px solid #e5e7eb;

  border-radius: 15px;

  transition: 0.3s;
}

.skill-grid div:hover {
  border-color: #2563eb;

  transform: translateY(-8px);
}

/* Projects */

.project-container {
  display: grid;

  grid-template-columns: repeat(2, 1fr);

  gap: 30px;
}

.project-card {
  background: white;

  padding: 35px;

  border-radius: 20px;

  border: 1px solid #e5e7eb;

  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

.project-card h3 {
  color: #2563eb;

  margin-bottom: 20px;
}

.project-card p {
  color: #6b7280;

  line-height: 1.7;
}

.project-card a {
  display: inline-block;

  margin-top: 20px;

  color: #2563eb;

  text-decoration: none;

  font-weight: 600;
}

/* Contact */

.contact-text {
  text-align: center;

  color: #6b7280;

  margin-bottom: 40px;
}

.contact-form {
  max-width: 600px;

  margin: auto;

  display: flex;

  flex-direction: column;

  gap: 20px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;

  padding: 15px 18px;

  background: white;

  border: 1px solid #d1d5db;

  border-radius: 12px;

  color: #111827;

  font-size: 16px;

  outline: none;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #2563eb;
}

.contact-form button {
  padding: 15px;

  background: #2563eb;

  color: white;

  border: none;

  border-radius: 12px;

  font-size: 17px;

  font-weight: 600;

  cursor: pointer;
}

.contact-form button:hover {
  background: #1d4ed8;
}

footer {
  text-align: center;

  padding: 25px;

  background: #111827;

  color: #9ca3af;
}

/* Responsive */

@media (max-width: 300px) {
  .hero h1 {
    font-size: 34px;
  }

  .buttons a {
    display: block;
    margin: 10px auto;
    width: 180px;
  }
}
@media (max-width: 900px) {
  nav {
    width: 90%;
    padding: 20px 0;
  }

  nav ul {
    display: flex;
    gap: 15px;
  }

  nav ul a {
    font-size: 13px;
  }

  .logo {
    font-size: 22px;
  }

  .hero {
    width: 90%;
    min-height: auto;
    padding-top: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 40px;
    text-align: center;
  }

  .hero-content {
    width: 100%;
    max-width: 100%;
  }

  .hero h1 {
    font-size: 38px;
    line-height: 1.2;
  }

  .description {
    max-width: 100%;
    font-size: 16px;
  }

  .buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
  }

  .circle {
    width: 280px;
    height: 280px;
  }

  .skill-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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