/* ----------------------------
   RESET + BASE
----------------------------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body {
  font-family: 'Helvetica Neue', sans-serif;
  background: #fff;
  color: #000;
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

ul {
  list-style: none;
}

/* ----------------------------
   NAVIGATION
----------------------------- */
header.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 999;
  background: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 80px;
  transition: box-shadow 0.3s ease;
}

header.navbar.scrolled {
  box-shadow: 0 4px 16px rgba(0,0,0,0.05);
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  text-transform: lowercase;
  opacity: 0;
  transform: translateY(-10px);
  animation: fadeInUp 0.6s forwards 0.2s;
}

.logo img {
  height: 30px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 48px;
}

.nav-links a {
  font-size: 0.95rem;
  position: relative;
  opacity: 0;
  transform: translateY(-10px);
  animation: fadeInUp 0.6s forwards;
}

.nav-links a:nth-child(1) { animation-delay: 0.3s; }
.nav-links a:nth-child(2) { animation-delay: 0.4s; }
.nav-links a:nth-child(3) { animation-delay: 0.5s; }

.nav-links a:not(.btn-outline)::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: #000;
  transition: width 0.3s ease;
}

.nav-links a:not(.btn-outline):hover::after {
  width: 100%;
}

.btn-outline {
  border: 1px solid #000;
  padding: 8px 16px;
  border-radius: 20px;
  transition: all 0.3s ease;
}

.btn-outline:hover {
  background: #000;
  color: #fff;
}

/* ----------------------------
   HERO
----------------------------- */
.hero {
  position: relative;
  min-height: 100vh;
  padding: 0 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  overflow: hidden;
  background: #fff;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  filter: brightness(0.9) saturate(1.1);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  opacity: 0;
  transform: translateY(25px);
  animation: fadeHero 1.2s ease forwards 0.2s;
  color: #000;
}

.hero-content h1 {
  font-size: 3.6rem;
  font-weight: 500;
  line-height: 1.1;
  margin-bottom: 20px;
  letter-spacing: -0.03em;
}

.hero-content p {
  font-size: 1.15rem;
  max-width: 600px;
  margin: 0 auto 22px;
}

.cta-button {
  padding: 14px 30px;
  background: #000;
  color: #fff;
  border: none;
  border-radius: 30px;
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cta-button:hover {
  transform: scale(1.06);
  box-shadow: 0 6px 22px rgba(0,0,0,0.2);
}

@keyframes fadeHero {
  0% { opacity: 0; transform: translateY(25px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* ----------------------------
   PROJECTS
----------------------------- */
.works {
  padding: 120px 40px;
  background: #fff;
  color: #000;
}

.works-header {
  max-width: 1100px;
  margin: 0 auto 40px;
  text-align: center;
}

.works-header h2 {
  font-size: 2.5rem;
  font-weight: 800;
}

.works-header p {
  max-width: 600px;
  font-size: 1rem;
  color: #666;
  margin: 1px auto 0;
  line-height: 1.6;
}

/* Filter Buttons */
.project-filters {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 40px;
}

.filter-btn {
  background: none;
  border: none;
  font-size: 1rem;
  padding: 8px 12px;
  cursor: pointer;
  position: relative;
  transition: color 0.3s ease;
  color: #111;
}

.filter-btn::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 50%;
  width: 0;
  height: 1.5px;
  background: #000;
  transition: width 0.3s ease, left 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
  color: #000;
}

.filter-btn:hover::after,
.filter-btn.active::after {
  width: 100%;
  left: 0;
}

/* ----------------------------
   CAROUSEL — FIXED WORKING VERSION
----------------------------- */

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

.carousel-container {
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  display: flex;
  white-space: nowrap;
  align-items: flex-start;
  overscroll-behavior-x: contain;
  padding: 0;
  scrollbar-width: none;
  cursor: grab;
}

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

.carousel-container:active {
  cursor: grabbing;
}

.carousel-track {
  display: flex;
  flex-wrap: nowrap;
  width: max-content;
  gap: 48px;
  padding: 0 20px;
}

.project-card {
  flex: 0 0 auto;
  width: 320px;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  gap: 14px;
  cursor: pointer;
  opacity: 0.96;
  transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
}

.project-card:hover {
  transform: translateY(-6px);
  opacity: 1;
  box-shadow: 0 12px 30px rgba(0,0,0,0.08);
}

.project-image img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  object-position: center;
  border-bottom: 1px solid #eee;
  border-radius: 6px 6px 0 0;
}

/* ----------------------------
   SLIDER — FIXED & MATCHES JS
----------------------------- */

.carousel-slider {
  width: 100%;
  max-width: 900px;
  margin: 40px auto 0;
  height: 28px;
  position: relative;
  display: flex;
  align-items: center;
}

.slider-track {
  width: 100%;
  height: 4px;
  background: #f2f2f2;
  border-radius: 100px;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}

.slider-thumb {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 12px;
  background: #d8d8d8;
  border-radius: 20px;
  cursor: grab;
  transition: background 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.slider-thumb:hover {
  background: #cfcfcf;
}

/* ----------------------------
   ABOUT
----------------------------- */
.about-columns {
  margin: 60px auto 15rem;
  max-width: 1000px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 60px;
  justify-items: center;
}

.about-col {
  width: 100%;
  max-width: 260px;
}

.about-col h3 {
  font-size: 1.1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
  color: #000;
  text-align: left;
}

.about-col p,
.about-col .item-sub {
  font-size: 0.95rem;
  line-height: 1.6;
  color: #333;
  text-align: left;
}

.about-col .item {
  margin-bottom: 20px;
}

.about-col .item-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.about-title h2 {
  font-size: 2.6rem;
  font-weight: 600;
  text-align: center;
  margin-bottom: 40px;
  padding-top: 15rem;
}

/* ----------------------------
   CONTACT
----------------------------- */
.contact {
  padding: 80px 40px;
  background: #fafafa;
  text-align: center;
  color: #111;
}

.contact-content {
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-links {
  display: flex;
  justify-content: center;
  gap: 32px;
}

.contact-links a {
  position: relative;
}

.contact-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: #111;
  transition: width 0.3s ease;
}

.contact-links a:hover::after {
  width: 100%;
}

/* ----------------------------
   ANIMATIONS
----------------------------- */

@keyframes fadeInUp {
  to { opacity: 1; transform: translateY(0); }
}

/* fade-up */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: 0.8s ease-out;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}
