/* General Style */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

:root {
  --dark: #120c0a;
  --dark-soft: #1f1410;
  --brown: #3a2118;
  --orange: #c65f28;
  --orange-light: #e88b4a;
  --cream: #fff3e6;
  --text: #f8f1ea;
  --muted: #d8c4b4;
  --white: #ffffff;
  --card: #fffaf5;
}

body {
  font-family: Arial, sans-serif;
  color: #2b1b14;
  background-color: #ffffff;
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

/* Header */
.header {
  width: 100%;
  background-color: var(--dark);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar {
  width: 90%;
  max-width: 1200px;
  margin: auto;
  height: 70px;

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

.logo {
  color: var(--cream);
  font-size: 24px;
  font-weight: bold;
}

.nav-links {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 25px;
}

.nav-links a {
  color: var(--cream);
  font-size: 15px;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: var(--orange-light);
}

.menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--cream);
  font-size: 28px;
  cursor: pointer;
}

/* Hero */
.hero {
  min-height: 90vh;
  background:
    radial-gradient(circle at 78% 45%, rgba(198, 95, 40, 0.35), transparent 28%),
    linear-gradient(135deg, #120c0a 0%, #2a1710 45%, #5c2a16 100%);
  color: var(--text);

  display: flex;
  align-items: center;
}

.hero-content {
  width: 90%;
  max-width: 1200px;
  margin: auto;

  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 50px;
}

.hello {
  color: var(--orange-light);
  font-size: 20px;
  margin-bottom: 10px;
}

.hero h1 {
  font-size: 56px;
  margin-bottom: 15px;
  color: var(--white);
}

.hero h3 {
  font-size: 24px;
  margin-bottom: 20px;
  color: var(--cream);
}

.hero-description {
  font-size: 18px;
  max-width: 650px;
  margin-bottom: 30px;
  color: var(--muted);
}

.hero-buttons {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 13px 24px;
  border-radius: 8px;
  font-weight: bold;
  transition: 0.3s ease;
}

.primary-btn {
  background-color: var(--orange);
  color: var(--white);
}

.primary-btn:hover {
  background-color: var(--orange-light);
  transform: translateY(-2px);
}

.secondary-btn {
  background-color: transparent;
  color: var(--cream);
  border: 2px solid var(--cream);
}

.secondary-btn:hover {
  background-color: var(--cream);
  color: var(--dark);
  transform: translateY(-2px);
}

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

.hero-image img {
  width: 330px;
  height: 330px;
  object-fit: cover;
  border-radius: 50%;
  border: 6px solid var(--orange-light);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.45);
}

/* Sections */
.section {
  padding: 80px 10%;
}

.light-section {
  background-color: #fff7ef;
}

.section-title {
  text-align: center;
  font-size: 36px;
  color: var(--dark);
  margin-bottom: 45px;
  position: relative;
}

.section-title::after {
  content: "";
  width: 70px;
  height: 4px;
  background-color: var(--orange);
  display: block;
  margin: 12px auto 0;
  border-radius: 2px;
}

/* About */
.about-content {
  max-width: 900px;
  margin: auto;
  text-align: center;
}

.about-content p {
  font-size: 18px;
  margin-bottom: 18px;
  color: #4a3328;
}

/* Skills */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

.skill-card {
  background-color: var(--card);
  padding: 25px;
  border-radius: 12px;
  border: 1px solid #f0d5c1;
  box-shadow: 0 8px 20px rgba(58, 33, 24, 0.08);
  transition: 0.3s ease;
}

.skill-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 28px rgba(58, 33, 24, 0.15);
}

.skill-card h3 {
  color: var(--orange);
  margin-bottom: 12px;
  font-size: 20px;
}

.skill-card p {
  color: #5a4035;
}

/* Experience */
.timeline {
  max-width: 1000px;
  margin: auto;
}

.timeline-item {
  background-color: var(--card);
  padding: 30px;
  margin-bottom: 25px;
  border-left: 5px solid var(--orange);
  border-radius: 10px;
  box-shadow: 0 8px 22px rgba(58, 33, 24, 0.09);
}

.date {
  display: inline-block;
  color: var(--orange);
  font-weight: bold;
  margin-bottom: 10px;
}

.timeline-item h3 {
  font-size: 24px;
  color: var(--dark);
  margin-bottom: 5px;
}

.timeline-item h4 {
  font-size: 17px;
  color: #6b4a3d;
  margin-bottom: 15px;
}

.timeline-item ul {
  padding-left: 20px;
  margin-bottom: 15px;
}

.timeline-item li {
  margin-bottom: 8px;
}

.tech {
  margin-top: 12px;
  color: var(--orange);
  font-weight: bold;
  font-size: 14px;
}

/* Projects */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
}

.project-card {
  background-color: var(--card);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(58, 33, 24, 0.1);
  transition: 0.3s ease;
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 32px rgba(58, 33, 24, 0.16);
}

.project-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  background-color: #ead3c0;
}

.project-content {
  padding: 25px;
}

.project-content h3 {
  font-size: 23px;
  color: var(--dark);
  margin-bottom: 12px;
}

.project-content p {
  color: #5a4035;
  margin-bottom: 12px;
}

.project-links {
  margin-top: 18px;
}

.project-links a {
  display: inline-block;
  color: var(--white);
  background-color: var(--orange);
  padding: 10px 18px;
  border-radius: 6px;
  font-weight: bold;
  transition: 0.3s ease;
}

.project-links a:hover {
  background-color: var(--orange-light);
}

/* Education */
.education-list {
  max-width: 900px;
  margin: auto;
}

.education-item {
  background-color: var(--card);
  margin-bottom: 20px;
  padding: 25px;
  border-radius: 10px;
  border-left: 5px solid var(--orange);
  box-shadow: 0 8px 20px rgba(58, 33, 24, 0.08);
}

.education-item h3 {
  color: var(--dark);
  font-size: 22px;
  margin-bottom: 8px;
}

.education-item p {
  color: #5a4035;
}

/* Languages */
.languages-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  max-width: 800px;
  margin: auto;
}

.language-card {
  background-color: var(--card);
  padding: 25px;
  text-align: center;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(58, 33, 24, 0.08);
}

.language-card h3 {
  color: var(--orange);
  font-size: 22px;
  margin-bottom: 8px;
}

.language-card p {
  color: #5a4035;
}

/* Contact */
.contact-section {
  text-align: center;
  background:
    linear-gradient(135deg, #120c0a 0%, #3a2118 55%, #5c2a16 100%);
  color: var(--cream);
}

.contact-section .section-title {
  color: var(--cream);
}

.contact-text {
  max-width: 700px;
  margin: 0 auto 30px;
  font-size: 18px;
  color: var(--muted);
}

.contact-info {
  margin-bottom: 30px;
}

.contact-info p {
  margin-bottom: 10px;
  font-size: 17px;
}

.contact-info a {
  color: var(--orange-light);
  font-weight: bold;
}

.contact-info a:hover {
  text-decoration: underline;
}

/* Footer */
.footer {
  background-color: var(--dark);
  color: var(--cream);
  text-align: center;
  padding: 22px;
}

/* Responsive Design */
@media screen and (max-width: 992px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-buttons {
    justify-content: center;
  }

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

  .projects-grid {
    grid-template-columns: 1fr;
  }
}

@media screen and (max-width: 768px) {
  .menu-btn {
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 70px;
    right: 0;
    width: 100%;
    background-color: var(--dark);

    flex-direction: column;
    gap: 0;
    display: none;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links li {
    width: 100%;
    text-align: center;
    border-top: 1px solid var(--brown);
  }

  .nav-links a {
    display: block;
    padding: 15px;
  }

  .hero h1 {
    font-size: 40px;
  }

  .hero h3 {
    font-size: 20px;
  }

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

  .section {
    padding: 60px 6%;
  }

  .skills-grid {
    grid-template-columns: 1fr;
  }

  .languages-grid {
    grid-template-columns: 1fr;
  }
}

.project-links {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.project-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
}

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

.demo-btn {
    background: #6c63ff;
    color: white;
}

.demo-btn:hover {
    background: #574fd6;
}