/* RESET */
* {
 margin: 0;
 padding: 0;
 box-sizing: border-box;
 font-family: Poppins, sans-serif;
}

body {
 color: #334155;
 background: #ffffff;
 line-height: 1.6;
 font-size: 17px;
 padding-top: 60px;
}

/* NAVBAR */
/* NAVBAR MODERN */
.navbar {
 position: fixed;
 top: 0;
 width: 100%;
 padding: 14px 40px;
 display: flex;
 justify-content: space-between;
 align-items: center;
 z-index: 999;

 background: rgba(255, 255, 255, 0.7);
 backdrop-filter: blur(10px);
 box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
 transition: 0.3s;
}

/* saat scroll */
.navbar.scrolled {
 padding: 10px 40px;
 background: rgba(255, 255, 255, 0.9);
}

/* MENU */
.nav-menu {
 display: flex;
 gap: 30px;
 list-style: none;
}

.nav-menu li a {
 position: relative;
 text-decoration: none;
 color: #334155;
 font-weight: 500;
 transition: 0.3s;
}

/* underline animation */
.nav-menu li a::after {
 content: "";
 position: absolute;
 left: 0;
 bottom: -5px;
 width: 0%;
 height: 2px;
 background: #f97316;
 transition: 0.3s;
}

.nav-menu li a:hover::after {
 width: 100%;
}

/* ACTIVE LINK */
.nav-menu li a.active {
 color: #f97316;
}

.nav-menu li a.active::after {
 width: 100%;
}

/* RIGHT SIDE */
.nav-right {
 display: flex;
 align-items: center;
 gap: 10px;
}

/* MOBILE */
@media (max-width:768px) {
 .nav-menu {
  position: absolute;
  top: 70px;
  left: 0;
  width: 100%;
  background: white;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 20px 0;
  display: none;
 }

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

.logo img {
 height: 40px;
}

.menu-toggle {
 display: none;
 font-size: 26px;
 cursor: pointer;
}

.lang-btn {
 margin-left: 15px;
 background: #f97316;
 color: #fff;
 padding: 6px 12px;
 border-radius: 20px;
 font-size: 13px;
 cursor: pointer;
}

/* MOBILE NAV */
@media (max-width:768px) {
 nav {
  padding: 16px 20px;
 }

 nav ul {
  position: absolute;
  top: 70px;
  left: 0;
  width: 100%;
  background: white;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 20px 0;
  display: none;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
 }

 nav ul.active {
  display: flex;
 }

 .menu-toggle {
  display: block;
 }
}

/* CONTAINER */
.container {
 max-width: 1100px;
 margin: auto;
}

/* HERO */
.hero {
 padding: 80px 20px;
}

.hero-content {
 display: flex;
 align-items: center;
 gap: 40px;
 flex-wrap: wrap;
}

.hero img {
 border: 5px solid #f97316;
 width: 220px;
 height: 220px;
 border-radius: 50%;
 object-fit: cover;
 box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.hero h1 {
 font-size: 36px;
 margin-bottom: 10px;
}

.hero p {
 max-width: 500px;
}

.btn {
 display: inline-block;
 margin-top: 20px;
 padding: 10px 22px;
 background: #f97316;
 color: white;
 border-radius: 25px;
 text-decoration: none;
 font-size: 14px;
}

/* SECTION */
section {
 padding: 80px 20px;
}

.bg {
 background: #f1f5f9;
}

h2 {
 text-align: center;
 margin-bottom: 40px;
 color: #f97316;
}

/* STACK */
.stack-grid {
 display: grid;
 grid-template-columns: repeat(auto-fit, 80px);
 gap: 24px;
 justify-content: center;
 margin-top: 40px;
}

.stack-item {
 width: 80px;
 height: 80px;
 display: flex;
 flex-direction: column;
 align-items: center;
 justify-content: center;
 background: #fff;
 border-radius: 14px;
 box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
 transition: 0.2s;
}

.stack-item img {
 width: 36px;
 height: 36px;
 object-fit: contain;
}

.stack-item span {
 font-size: 13px;
 margin-top: 5px;
}

.stack-item:hover {
 transform: translateY(-4px);
}

/* TIMELINE */
.timeline {
 position: relative;
 max-width: 1000px;
 margin: auto;
}

.timeline::after {
 content: '';
 position: absolute;
 width: 2px;
 background: #d1d5db;
 top: 0;
 bottom: 0;
 left: 50%;
}

.timeline-item {
 padding: 20px 40px;
 position: relative;
 width: 50%;
}

.timeline-item.left {
 left: 0;
}

.timeline-item.right {
 left: 50%;
}

.timeline-item .content {
 background: white;
 padding: 20px;
 border-radius: 10px;
 box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.timeline-item::after {
 content: '';
 position: absolute;
 width: 12px;
 height: 12px;
 background: #f97316;
 top: 30px;
 border-radius: 50%;
}

.timeline-item.left::after {
 right: -6px;
}

.timeline-item.right::after {
 left: -6px;
}

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

.timeline-item p {
 font-size: 15px;
 color: #475569;
}

/* MOBILE TIMELINE */
@media (max-width:768px) {
 .timeline::after {
  left: 20px;
 }

 .timeline-item {
  width: 100%;
  padding-left: 60px;
 }

 .timeline-item.right {
  left: 0;
 }
}

/* PROJECT */
.project-card {
 display: flex;
 flex-direction: column;
 height: 100%;
 background: #fff;
 border-radius: 16px;
 overflow: hidden;
 text-decoration: none;
 color: #333;
 box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
 transition: 0.3s;
}

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

.project-image {
 width: 100%;
 height: 180px;
 object-fit: cover;
}

.project-content {
 display: flex;
 flex-direction: column;
 flex: 1;
 padding: 16px;
}

.project-content p {
 font-size: 14px;
 color: #666;
 margin-bottom: 12px;
 text-align: justify;
}

.tech-tags {
 margin-top: auto;
}

.tech-tags span {
 display: inline-block;
 background: #fff7ed;
 color: #ea580c;
 padding: 4px 10px;
 border-radius: 12px;
 font-size: 12px;
 margin: 3px;
}

/* CAROUSEL */
.carousel {
 overflow: visible;
}

.carousel-track {
 display: flex;
 gap: 24px;
 scroll-behavior: smooth;
 padding: 10px;
}

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

.carousel-item {
 min-width: 300px;
 max-width: 320px;
 flex: 0 0 auto;
}

/* BUTTON */
.carousel-btn {
 position: absolute;
 top: 50%;
 transform: translateY(-50%);
 width: 38px;
 height: 38px;
 border-radius: 50%;
 background: #f97316;
 color: white;
 border: none;
 cursor: pointer;
 z-index: 10;
}

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

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

/* FOOTER */
footer {
 background: #f1f5f9;
 padding: 40px 20px;
 text-align: center;
}

footer p {
 font-size: 14px;
 color: #64748b;
}

.socials {
 display: flex;
 justify-content: center;
 gap: 20px;
 margin-bottom: 15px;
}

.socials img {
 width: 22px;
}

/* RESPONSIVE */
@media(max-width:768px) {
 .hero-content {
  flex-direction: column;
  text-align: center;
 }

 .carousel-item {
  min-width: 85%;
 }
}

@media (max-width:480px) {
 .carousel-item {
  min-width: 90%;
 }
}

.date {
 display: inline-block;
 background: #f97316;
 color: white;
 font-size: 13px;
 padding: 4px 12px;
 border-radius: 20px;
 margin-bottom: 10px;
}

/* CARD */
.project-card {
 min-height: 420px;
 display: flex;
 flex-direction: column;
 background: #fff;
 border-radius: 16px;
 overflow: hidden;
 box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
 transition: 0.3s;
}

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

/* IMAGE */
.project-image {
 width: 100%;
 height: 180px;
 object-fit: cover;
}

/* CONTENT */
.project-content {
 flex: 1;
 display: flex;
 flex-direction: column;
 text-align: center;
 padding: 16px;
}

.project-content p {
 font-size: 14px;
 color: #64748b;
}

/* PLAYSTORE */
.project-links {
 margin: 10px 0;
}

.btn-store {
 display: inline-flex;
 justify-content: center;
 align-items: center;
 background: #ffffff00;
 padding: 6px;
 border-radius: 8px;
 transition: 0.2s;
}

.btn-store:hover {
 transform: scale(1.1);
}

/* TECH STACK */
.tech-tags {
 margin-top: auto;
}

.tech-tags span {
 display: inline-block;
 background: #fff7ed;
 color: #ea580c;
 padding: 4px 10px;
 border-radius: 12px;
 font-size: 11px;
 margin: 2px;
}

/* ===================== */
/* CAROUSEL RESPONSIVE */
/* ===================== */

.carousel {
  position: relative;
  overflow: hidden;
  padding: 20px 40px;
}

.carousel-track {
  display: flex;
  gap: 20px;
  transition: transform 0.5s ease;
}

/* DEFAULT (DESKTOP) → 3 ITEM */
.carousel-item {
  flex: 0 0 calc(100% / 3 - 20px);
  max-width: calc(100% / 3 - 20px);
}

/* TABLET → 2 ITEM */
@media (max-width: 1024px) {
  .carousel-item {
    flex: 0 0 calc(100% / 2 - 20px);
    max-width: calc(100% / 2 - 20px);
  }
}

/* MOBILE → 1 ITEM */
@media (max-width: 600px) {
  .carousel {
    padding: 20px 10px;
  }

  .carousel-item {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

/* BUTTON */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #f97316;
  color: white;
  border: none;
  cursor: pointer;
  z-index: 10;
}

.carousel-btn.prev { left: 10px; }
.carousel-btn.next { right: 10px; }

.carousel-btn:hover {
  background: #ea580c;
}

/* CARD */
.project-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
  transition: 0.3s;
}

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

.project-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.project-content {
  display: flex;
  flex-direction: column;
  padding: 16px;
  flex: 1;
}

.tech-tags {
  margin-top: auto;
}