* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: #222;
  background-color: #fff;
}

.container {
  max-width: 1200px;
  margin: auto;
  padding: 0 1rem;
}

/* === Headings & Paragraphs === */
h1 { font-size: 3.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; margin-bottom: 1rem; }
p { font-size: 1.2rem; color: #67778e; }

/* === Header === */
.header {
  background-color: #fff;
  border-bottom: 1px solid #eee;
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo { color: #1e40af; font-weight: bold; }

.nav-list {
  list-style: none;
  display: flex;
  gap: 2rem;
}

.nav-list a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
}

.nav-list a:hover { color: #1e40af; }

/* === Hero Section === */
.hero-section {
  background: linear-gradient(to right, #f8fafc, #e2e8f0);
  padding: 2.5rem 0;
}

.hero-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 1rem;
  min-height: 300px;
}

.hero-text { flex: 1; }
.hero-image {
  flex-shrink: 0;
  max-width: 350px;
  width: 100%;
  aspect-ratio: 1 / 1;
  min-height: 200px;
  background-color: #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: #888;
  border-radius: 50%;
  overflow: hidden;
}

.hero-image img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.hero-image img:hover {
  transform: scale(1.05);
}

/* === Buttons === */
.btn {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.75rem 1.5rem;
  background-color: #1e40af;
  color: #fff;
  border: none;
  border-radius: 6px;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn:hover { background-color: #2563eb; transform: translateY(-2px); }
.btn.yellow { background-color: #f59e0b; }
.btn.green { background-color: #28a745; }

.btn-container {
  display: flex;
  gap: 1rem;
  justify-content: flex-start;
}

.btn.yellow:hover {
  background-color: #d97706;
  transform: translateY(-2px);
  box-shadow: 0 4px 6px rgba(0,0,0,0.2);
}

.btn.green:hover {
  background-color: #218838;
  transform: translateY(-2px);
  box-shadow: 0 4px 6px rgba(0,0,0,0.2);
}

/* === About Section === */
.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title::after {
  content: "";
  display: block;
  width: 50px;
  height: 3px;
  background-color: #1e40af;
  margin: 8px auto 0;
  border-radius: 2px;
}

.about-section { padding: 4rem 0; }

.about-container {
  display: flex;
  gap: 3rem;
  flex-wrap: wrap;
}

.about-text, .skills { flex: 1; min-width: 300px; }

/* === Skills Bars === */
.skills-list {
  list-style: none;
}

.skills-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.8rem;
}

.skill-label { font-weight: 500; min-width: 90px; }

.bar {
  display: block;
  width: 100%;
  max-width: 120px;
  height: 6px;
  background: #e5e7eb;
  border-radius: 4px;
  overflow: hidden;
}

.fill.js { width: 90%; background-color: #f7df1e; }
.fill.react { width: 80%; background-color: #61dafb; }
.fill.node { width: 75%; background-color: #3c873a; }
.fill.mongo { width: 70%; background-color: #4DB33D; }

.fill {
  display: block;
  height: 100%;
  border-radius: 4px;
  transition: width 0.6s ease, background-color 0.3s ease;
}

/* === Carousel Projects === */
.projects-section {
  padding: 4rem 0;
  background-color: #f8fafc;
}

.carousel-wrapper {
  position: relative;
  overflow: hidden;
  width: 100%;
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease;
  gap: 2rem;
}

.project-card {
  flex: 0 0 calc(33.33% - 16px);
  max-width: calc(33.33% - 16px);
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.project-card img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  display: block;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
  transition: transform 0.3s ease;
}

.project-card img:hover {
  transform: scale(1.05);
}

.project-content {
  padding: 1rem;
}

.project-content h4 { margin-bottom: 0.5rem; color: #1e293b; }

/* Carousel Buttons */
.carousel-btn {
  position: absolute;
  top: 44%;
  transform: translateY(-50%);
  background-color: #1e40af;
  color: #fff;
  border: none;
  padding: 10px 15px;
  font-size: 20px;
  cursor: pointer;
  border-radius: 6px;
  z-index: 10;
}

.carousel-btn.left { left: 0; }
.carousel-btn.right { right: 0; }

.carousel-btn:hover {
  background-color: #2563eb;
  transform: translateY(-50%) translateY(-2px);
}

/* === Contact Section === */
.contact-section { padding: 4rem 0; }

.contact-container {
  display: flex;
  gap: 3rem;
  flex-wrap: wrap;
}

.contact-form {
  flex: 2;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
}

.contact-form .btn { max-width: 200px; }

.contact-info {
  flex: 1;
  min-width: 250px;
}

.social-icons {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.social-icons a.icon {
  display: inline-block;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  transition: transform 0.3s ease;
}

.social-icons a.icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.social-icons a.icon:hover { transform: scale(1.2); }

/* === Footer === */
.footer {
  background-color: #1e293b;
  color: white;
  text-align: center;
  padding: 1rem;
  font-size: 0.9rem;
}

/* === Header Responsive === */
.menu-toggle { display: none; }
.hamburger { display: none; font-size: 2rem; cursor: pointer; user-select: none; }

@media (max-width: 1024px) {
  .project-card { flex: 0 0 calc(50% - 16px); max-width: calc(50% - 16px); }
}

@media (max-width: 768px) {
  .hero-image { max-width: 220px; margin: 0 auto; }
  .hero-container,
  .about-container,
  .carousel-wrapper,
  .contact-container { flex-direction: column; }

  .project-card { flex: 0 0 calc(80% - 16px); max-width: calc(80% - 16px); }
  .carousel-btn { padding: 8px 12px; font-size: 18px; }

  .nav-list { gap: 1rem; }
  .hero-text { text-align: center; margin-bottom: 1.5rem; }
.hero-text h1 { font-size: 2.2rem; }
.about-text h2, .skills h3 { text-align: center; }
.hero-text p { font-size: 1rem; }
.contact-info .social-icons { justify-content: center; display: flex; }
.contact-info h3, .contact-info p { text-align: center; }
.contact-form button.btn { width: 100%; max-width: none; display: block; }

.hamburger { display: block; }

.mobile-nav { width: 100%; }

.nav-list {
  display: none;
  flex-direction: column;
  background-color: white;
  padding: 1rem 2rem;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  margin-top: 1rem;
  border-radius: 8px;
  position: absolute;
  left: 0;
  right: 0;
  z-index: 999;
}

.menu-toggle:checked + .hamburger + .mobile-nav .nav-list {
  display: flex;
}
}
