/* Google Font */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
  font-family: 'Poppins', sans-serif;
}

body {
  background: #0f172a;
  color: #fff;
}

/* Navbar */

header {
  width: 100%;
  padding: 20px 8%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  background: rgba(15, 23, 42, .9);
  backdrop-filter: blur(12px);
}

.logo {
  color: #38bdf8;
  font-size: 28px;
  font-weight: 700;
  text-decoration: none;
}

nav a {
  color: white;
  text-decoration: none;
  margin-left: 30px;
  transition: .3s;
  font-weight: 500;
}

nav a:hover {
  color: #38bdf8;
}

/* Hero */

.hero {
  min-height: 100vh;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 120px 8%;
  gap: 60px;
}

.hero-text {
  flex: 1;
}

.hero-text h3 {
  color: #38bdf8;
  font-size: 25px;
}

.hero-text h1 {
  font-size: 60px;
  margin: 10px 0;
}

.hero-text h2 {
  color: #38bdf8;
  margin-bottom: 20px;
}

.hero-text p {
  color: #cbd5e1;
  line-height: 1.8;
  margin-bottom: 30px;
}

/* Buttons */

.btn,
.btn2 {
  display: inline-block;
  padding: 13px 28px;
  border-radius: 30px;
  text-decoration: none;
  transition: .4s;
  margin-right: 15px;
  font-weight: 600;
}

.btn {
  background: #38bdf8;
  color: #000;
}

.btn:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 20px #38bdf8;
}

.btn2 {
  border: 2px solid #38bdf8;
  color: #38bdf8;
}

.btn2:hover {
  background: #38bdf8;
  color: #000;
}

/* Social */

.social {
  margin-top: 35px;
}

.social a {
  width: 45px;
  height: 45px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  background: #1e293b;
  color: #38bdf8;
  border-radius: 50%;
  margin-right: 12px;
  font-size: 20px;
  transition: .3s;
}

.social a:hover {
  background: #38bdf8;
  color: #000;
  transform: translateY(-6px);
}

/* Image */

.hero-image {
  flex: 1;
  display: flex;
  justify-content: center;
}

.hero-image img {
  width: 360px;
  height: 360px;
  border-radius: 50%;
  object-fit: cover;
  border: 5px solid #38bdf8;
  box-shadow: 0 0 40px #38bdf8;
  transition: .5s;
}

.hero-image img:hover {
  transform: scale(1.05);
}

/* Sections */

section {
  padding: 90px 8%;
}

section h2 {
  text-align: center;
  color: #38bdf8;
  margin-bottom: 40px;
  font-size: 38px;
}

/* About */

#about p {
  max-width: 900px;
  margin: auto;
  color: #cbd5e1;
  line-height: 1.9;
  text-align: center;
}

/* Skills */

.skill {
  margin-bottom: 25px;
  font-weight: 600;
}

.bar {
  background: #1e293b;
  height: 10px;
  border-radius: 20px;
  margin-top: 8px;
}

.bar span {
  display: block;
  height: 100%;
  background: #38bdf8;
  border-radius: 20px;
}

/* Projects */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 25px;
}

.card {
  background: #1e293b;
  padding: 30px;
  border-radius: 15px;
  transition: .4s;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 0 20px #38bdf8;
}

.card h3 {
  margin-bottom: 15px;
  color: #38bdf8;
}

.card p {
  color: #cbd5e1;
}

/* Contact */

#contact {
  text-align: center;
}

#contact p {
  margin: 10px 0;
  color: #cbd5e1;
}

/* Footer */

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

/* Mobile */

@media(max-width:900px) {

  header {
    flex-direction: column;
    padding: 15px;
  }

  nav {
    margin-top: 15px;
  }

  nav a {
    margin: 0 10px;
    font-size: 15px;
  }

  .hero {
    flex-direction: column-reverse;
    text-align: center;
    padding-top: 160px;
  }

  .hero-text h1 {
    font-size: 42px;
  }

  .hero-image img {
    width: 260px;
    height: 260px;
  }

  .btn,
  .btn2 {
    margin-top: 12px;
  }
  
}