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

body {
  font-family: 'Poppins', sans-serif;
  background: #f7f2e8;
  color: #1d1d1d;
  overflow-x: hidden;
}

/* Navbar */

header {
  width: 100%;
  padding: 28px 7%;

  display: flex;
  justify-content: space-between;
  align-items: center;

  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;

  background: rgba(247, 242, 232, 0.85);

  backdrop-filter: blur(10px);
}

.logo {
  font-size: 2.4rem;
  font-weight: 700;

  font-family: 'Playfair Display', serif;
}

nav {
  display: flex;
  gap: 35px;
}

nav a {
  text-decoration: none;
  color: #111;

  font-weight: 500;
  position: relative;
}

nav a::after {
  content: '';

  position: absolute;

  left: 0;
  bottom: -5px;

  width: 0%;
  height: 2px;

  background: #c96f3c;

  transition: 0.3s;
}

nav a:hover::after {
  width: 100%;
}

/* Hero */

.hero {
  min-height: 100vh;

  display: flex;
  justify-content: space-between;
  align-items: center;

  padding: 120px 7% 60px;
  gap: 50px;
}

.hero-text {
  flex: 1;
}

.hero-text h1 {
  font-family: 'Playfair Display', serif;

  font-size: 5rem;
  line-height: 1.1;

  margin-bottom: 25px;
}

.hero-text p {
  font-size: 1.1rem;

  line-height: 1.8;

  max-width: 550px;

  color: #555;

  margin-bottom: 40px;
}

.btn {
  display: inline-block;

  padding: 18px 40px;

  border-radius: 16px;

  background: linear-gradient(
    135deg,
    #c96f3c,
    #d88752
  );

  color: white;
  text-decoration: none;

  font-weight: 600;

  transition: 0.3s ease;
}

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

.hero-image {
  flex: 1;

  display: flex;
  justify-content: center;
}

.hero-image img {
  width: 100%;
  max-width: 500px;

  object-fit: contain;
}

/* Section */

.section-title {
  font-size: 3rem;

  text-align: center;

  font-family: 'Playfair Display', serif;

  margin-bottom: 20px;
}

.section-desc {
  max-width: 700px;

  margin: auto;

  text-align: center;

  line-height: 1.8;

  color: #666;

  margin-bottom: 60px;
}

/* About */

.about {
  padding: 100px 7%;
  background: white;
}

.about-grid {
  display: grid;

  grid-template-columns:
    repeat(auto-fit, minmax(250px, 1fr));

  gap: 25px;
}

.card {
  background: #f7f2e8;

  padding: 30px;

  border-radius: 24px;

  transition: 0.3s ease;
}

.card:hover {
  transform: translateY(-8px);
}

/* Skills */

.skills {
  padding: 100px 7%;
}

.skill-box {
  margin-bottom: 30px;
}

.skill-top {
  display: flex;
  justify-content: space-between;

  margin-bottom: 10px;

  font-weight: 600;
}

.skill-bar {
  width: 100%;
  height: 14px;

  background: #ddd;

  border-radius: 20px;

  overflow: hidden;
}

.skill-fill {
  width: 0;
  height: 100%;

  border-radius: 20px;

  background: linear-gradient(
    90deg,
    #c96f3c,
    #e49b6c
  );

  transition: 2s ease;
}

/* Certificates */

.certificates {
  padding: 100px 7%;
  background: white;
}

.certificate-grid {
  display: grid;

  grid-template-columns:
    repeat(auto-fit, minmax(320px, 1fr));

  gap: 30px;
}

.certificate-card {
  background: #f7f2e8;

  border-radius: 24px;

  overflow: hidden;

  transition: 0.3s ease;
}

.certificate-card:hover {
  transform: translateY(-10px);
}

.certificate-card img {
  width: 100%;
}

.certificate-content {
  padding: 25px;
}

/* Projects */

.projects {
  padding: 100px 7%;
}

.project-grid {
  display: grid;

  grid-template-columns:
    repeat(auto-fit, minmax(320px, 1fr));

  gap: 30px;
}

.project-card {
  background: white;

  border-radius: 24px;

  overflow: hidden;

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

  transition: 0.3s ease;
}

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

.project-card img {
  width: 100%;
  height: 220px;

  object-fit: cover;
}

.project-content {
  padding: 25px;
}

.project-content h3 {
  margin-bottom: 15px;
}

.project-content p {
  color: #666;

  line-height: 1.7;

  margin-bottom: 25px;
}

.project-btn {
  display: inline-block;

  padding: 14px 28px;

  border-radius: 14px;

  background: linear-gradient(
    135deg,
    #c96f3c,
    #d88752
  );

  color: white;
  text-decoration: none;

  font-weight: 600;
}

/* Contact */

.contact {
  padding: 100px 7%;

  background: #1d1d1d;

  color: white;

  text-align: center;
}

.contact h2 {
  font-size: 3rem;

  margin-bottom: 20px;

  font-family: 'Playfair Display', serif;
}

.contact p {
  color: #ccc;

  margin-bottom: 35px;
}

.contact-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;

  flex-wrap: wrap;
}

/* Footer */

footer {
  text-align: center;

  padding: 25px;

  background: #111;

  color: #999;
}

/* Responsive */

@media (max-width: 900px) {

  .hero {
    flex-direction: column-reverse;
    text-align: center;
  }

  .hero-text h1 {
    font-size: 3.5rem;
  }

  .hero-text p {
    margin: auto auto 40px;
  }
}

@media (max-width: 600px) {

  .hero-text h1 {
    font-size: 2.8rem;
  }

  nav {
    gap: 15px;
    flex-wrap: wrap;
  }

  nav a {
    font-size: 0.9rem;
  }
}