@import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@400;500;600;700&display=swap');

@font-face {
  font-family: 'Sergio Trendly';
  src: url("font/Sergio-Trendy.woff2") format("woff2");
  font-weight: normal;
  font-style: normal;
}

:root {
  --forest-dark: #273f30;
  --sage-green: #7ea48c;
  --dark-brown: #26241b;
  --timeline-dot: #456250;
  --timeline-line: #AED8BD;
  --card-overlay: rgba(39, 63, 48, 0.66);
}

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

body {
  font-family: 'Quicksand', sans-serif;
  color: white;
  line-height: 1.6;
}

h1,
h2,
h3 {
  font-family: 'Sergio Trendy';
  font-weight: normal;
}

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

/* Hero Section */
.hero {
  position: relative;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--forest-dark);
  overflow: hidden;
  text-align: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.37;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: 72px;
  line-height: 1;
  margin-bottom: 24px;
}

.hero-subtitle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 32px;
  font-size: 18px;
  position: relative;
  z-index: 1;
}

.hero-subtitle span:nth-child(2) {
  display: block;
  width: 2px;
  height: 30px;
  background: white;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.btn-primary {
  padding: 12px 32px;
  background: var(--dark-brown);
  border-radius: 10px;
  color: white;
  border: 1px solid var(--dark-brown);
  font-family: 'Quicksand', sans-serif;
  font-size: 16px;
  cursor: pointer;
}

.btn-outline {
  padding: 12px 32px;
  background: rgba(37, 53, 34, 0.34);
  border-radius: 10px;
  color: white;
  border: 3px solid var(--dark-brown);
  font-family: 'Quicksand', sans-serif;
  font-size: 16px;
  cursor: pointer;
}

/* Skills Section */
.skills {
  background: var(--sage-green);
  padding: 80px 20px;
  text-align: center;
}

.skills h2 {
  font-size: 48px;
  margin-bottom: 12px;
}

.skills-intro {
  font-size: 18px;
  margin-bottom: 60px;
  opacity: 0.9;
}

.timeline {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.timeline-line {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--timeline-line);
  transform: translateX(-50%);
}

.skill-item {
  display: flex;
  justify-content: flex-end;
  width: 100%;
  position: relative;
}

.skill-item:nth-child(even) {
  justify-content: flex-start;
}

.skill-dot {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--timeline-dot);
  z-index: 1;
}

.skill-card {
  background: var(--card-overlay);
  border-radius: 12px;
  padding: 28px 32px;
  width: 42%;
  text-align: left;
}

.skill-card h3 {
  font-size: 28px;
  margin-bottom: 8px;
}

.skill-card p {
  font-size: 15px;
  opacity: 0.9;
}

/* Projects Section */
.projects {
  background: var(--forest-dark);
  padding: 80px 0;
  text-align: center;
}

.projects h2 {
  font-size: 48px;
  margin-bottom: 8px;
}

.leaf-decoration {
  display: flex;
  justify-content: center;
  margin: 0 0 40px;
}

.leaf-decoration img {
  height: 50px;
  object-fit: contain;
}

.leaf-decoration.flip img {
  transform: scaleY(-1);
  margin-top: 40px;
}

.carousel-wrapper {
  position: relative;
  width: 100%;
}

.carousel {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  padding: 0 80px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.carousel::-webkit-scrollbar {
  display: none;
}

.project-card {
  flex-shrink: 0;
  width: 360px;
  scroll-snap-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.project-card-box {
  width: 100%;
  height: 300px;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--forest-dark);
  font-size: 14px;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.3);
  border: none;
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 20px;
  z-index: 1;
}

.carousel-btn.prev {
  left: 12px;
}

.carousel-btn.next {
  right: 12px;
}

.projects-subtitle {
  font-size: 14px;
  opacity: 0.7;
  color: white;
}

/* Contact Section */
.contact {
  background: var(--sage-green);
  padding: 60px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 40px;
}

.contact-info h3 {
  font-family: 'Sergio Trendy', cursive;
  font-size: 22px;
  margin-bottom: 20px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  color: var(--dark-brown);
  font-size: 15px;
}

.contact-item img {
  width: 32px;
  height: 32px;
}

.contact-name {
  font-family: 'Sergio Trendy';
  font-size: 56px;
  color: var(--forest-dark);
  line-height: 1;
  text-align: right;
  text-shadow: 1px 1px 1px rgba(255, 255, 255, 0.4),
    -1px -1px 1px rgba(0, 0, 0, 0.4);
}

/* Project Detail Page */
.project-detail {
  font-family: 'Quicksand', sans-serif;
  color: white;
  background: var(--forest-dark);
  min-height: 100vh;
  display: flex;
  padding: 60px 40px;
  gap: 40px;
  flex-wrap: wrap;
}

.project-left {
  flex: 1 1 400px;
  max-width: 550px;
}

.back-link {
  color: white;
  font-size: 14px;
  opacity: 0.7;
  margin-bottom: 16px;
  display: inline-block;
}

.project-left h1 {
  font-family: 'Sergio Trendly', cursive;
  font-size: 64px;
  margin: 16px 0 8px;
}

.project-left .leaf-small {
  height: 30px;
  object-fit: contain;
  margin-bottom: 32px;
  display: block;
}

.project-left p {
  font-size: 18px;
  line-height: 1.6;
  margin-bottom: 24px;
}

.project-buttons {
  display: flex;
  gap: 16px;
}

.project-center {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 300px;
  position: relative;
}

.project-center .vine-line {
  display: none;
}

.project-center .vine-rotate {
  width: 300px;
  height: auto;
  object-fit: contain;
  transform: rotate(90deg);
}

.project-right {
  flex: 1 1 400px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.project-image-placeholder {
  background: white;
  width: 100%;
  max-width: 481px;
  height: 309px;
}

/* Responsive */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 48px;
  }

  .hero-subtitle {
    flex-direction: column;
    gap: 8px;
  }

  .hero-subtitle span {
    display: none;
  }

  .skills h2 {
    font-size: 36px;
  }

  .projects h2 {
    font-size: 36px;
  }

  .skill-card {
    width: 100%;
  }

  .skill-item {
    justify-content: center !important;
  }

  .timeline-line,
  .skill-dot {
    display: none;
  }

  .carousel {
    padding: 0 60px;
  }

  .carousel-btn {
    left: 8px;
  }

  .carousel-btn.next {
    right: 8px;
  }

  .project-card {
    width: 280px;
    height: 240px;
  }

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

  .contact-name {
    text-align: center;
  }

  .project-left h1 {
    font-size: 40px;
  }

  .project-detail {
    padding: 40px 20px;
  }

  .project-center {
    width: 100%;
    height: 60px;
  }

  .project-center .vine-line {
    width: 100%;
    height: 2px;
    top: 50%;
    bottom: auto;
    transform: translateY(-50%);
  }

  .project-center .vine-rotate {
    width: 100%;
    height: 60px;
    transform: none;
  }
}