/* ================= CSS VARIABEL (Tema Default: Gelap) ================= */
:root {
  --bg-dark: #0f1626;
  --bg-card: rgba(26, 37, 55, 0.7);
  --accent: #ff4500;
  --accent-hover: #ff6a33;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --border-glass: rgba(255, 255, 255, 0.05);

  --font-title: "Oswald", sans-serif;
  --font-body: "Poppins", sans-serif;
}

/* Tema Terang (Light Mode) akan menimpa variabel di atas */
.light-mode {
  --bg-dark: #f1f5f9;
  --bg-card: rgba(255, 255, 255, 0.7);
  --text-main: #0f172a;
  --text-muted: #475569;
  --border-glass: rgba(0, 0, 0, 0.1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-dark);
  color: var(--text-main);
  overflow-x: hidden;
  transition:
    background-color 0.4s ease,
    color 0.4s ease; /* Transisi halus saat ganti tema */
}

h1,
h2,
h3,
h4,
.logo h1 {
  font-family: var(--font-title);
  text-transform: uppercase;
}
.section-title {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 3rem;
  letter-spacing: 2px;
}
.section-title span {
  color: var(--accent);
}

/* ================= NAVBAR & TOGGLE ================= */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  padding: 1.5rem 10%;
  transition: 0.4s ease;
  background: transparent;
}
.navbar.scrolled {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-glass);
  padding: 1rem 10%;
}
.navbar nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo h1 {
  font-size: 1.8rem;
  letter-spacing: 1px;
  color: var(--text-main);
}
.logo span {
  color: var(--accent);
}

.nav-links {
  display: flex;
  list-style: none;
}
.nav-links li {
  margin-left: 2rem;
}
.nav-links a {
  text-decoration: none;
  color: var(--text-main);
  font-size: 0.95rem;
  font-weight: 500;
  transition: 0.3s;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--accent);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.theme-toggle {
  font-size: 1.3rem;
  color: var(--text-main);
  cursor: pointer;
  transition: 0.3s;
}
.theme-toggle:hover {
  color: var(--accent);
}
.menu-toggle {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-main);
}

/* ================= BUTTONS ================= */
.btn-primary {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 0.8rem 2rem;
  font-family: var(--font-body);
  font-weight: 600;
  border-radius: 4px;
  cursor: pointer;
  transition: 0.3s;
  box-shadow: 0 4px 15px rgba(255, 69, 0, 0.3);
}
.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(255, 69, 0, 0.5);
}
.btn-secondary {
  color: var(--text-main);
  text-decoration: none;
  font-weight: 500;
  margin-left: 1.5rem;
  position: relative;
}
.btn-secondary::after {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: var(--accent);
  transition: 0.3s;
}
.btn-secondary:hover::after {
  width: 100%;
}

/* ================= GLASS CARD ================= */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  padding: 2rem;
  transition:
    transform 0.3s,
    box-shadow 0.3s,
    border-color 0.3s;
}
.glass-card:hover {
  transform: translateY(-8px);
  border-color: var(--accent);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* ================= HERO ================= */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10%;
  overflow: hidden;
}
.hero-bg-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 15vw;
  font-family: var(--font-title);
  font-weight: 700;
  color: var(--text-main);
  opacity: 0.03;
  z-index: 0;
  pointer-events: none;
}
.hero .content {
  z-index: 1;
  max-width: 50%;
}
.subtitle {
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 3px;
  font-size: 0.9rem;
  display: block;
  margin-bottom: 1rem;
}
.hero h1 {
  font-size: 4.5rem;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}
.hero p {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  line-height: 1.6;
}
.hero-buttons {
  display: flex;
  align-items: center;
}

.hero .image {
  z-index: 1;
  position: relative;
}
.floating-shoe {
  width: 500px;
  filter: drop-shadow(0 20px 25px rgba(0, 0, 0, 0.4));
  animation: float 4s ease-in-out infinite;
  z-index: 2;
  position: relative;
}
.glow-circle {
  position: absolute;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(255, 69, 0, 0.3) 0%, transparent 70%);
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  filter: blur(40px);
  z-index: 1;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
}

/* ================= SECTIONS LAYOUT ================= */
section {
  padding: 6rem 10%;
}
.feature-grid,
.about-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.feature-item {
  text-align: center;
  position: relative;
  overflow: hidden;
}
.card-glow {
  position: absolute;
  width: 150px;
  height: 150px;
  background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
  opacity: 0.2;
  top: -20px;
  right: -20px;
  border-radius: 50%;
}
.feature-item img {
  width: 80%;
  margin: 1rem auto;
  filter: drop-shadow(0 10px 10px rgba(0, 0, 0, 0.2));
}
.feature-item h3 {
  margin-bottom: 0.5rem;
  font-size: 1.3rem;
}
.price {
  color: var(--accent);
  font-weight: 600;
  font-size: 1.1rem;
}

/* CULTURE / ABOUT */
.about-container {
  display: flex;
  align-items: center;
  gap: 4rem;
}
.about-content {
  flex: 1;
  color: var(--text-muted);
  line-height: 1.8;
}
.about-image {
  flex: 1;
  position: relative;
  text-align: center;
}
.small-glow {
  width: 200px;
  height: 200px;
}
.feature-item-box i {
  font-size: 2.5rem;
  color: var(--accent);
  margin-bottom: 1rem;
}
.feature-item-box h4 {
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}
.feature-item-box p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* CONTACT FORM */
.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}
.input-group {
  position: relative;
  margin-bottom: 2rem;
}
.input-group input,
.input-group textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 2px solid var(--border-glass);
  padding: 0.8rem 0;
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 1rem;
  outline: none;
  transition: 0.3s;
}
.input-group label {
  position: absolute;
  top: 0.8rem;
  left: 0;
  color: var(--text-muted);
  transition: 0.3s;
  pointer-events: none;
}
.input-group input:focus ~ label,
.input-group input:not(:placeholder-shown) ~ label,
.input-group textarea:focus ~ label,
.input-group textarea:not(:placeholder-shown) ~ label {
  top: -1rem;
  font-size: 0.8rem;
  color: var(--accent);
}
.input-group input:focus,
.input-group textarea:focus {
  border-bottom-color: var(--accent);
}

.contact-info h3 {
  margin-bottom: 1.5rem;
  color: var(--accent);
}
.contact-info p {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 1rem;
  color: var(--text-muted);
}
.contact-info i {
  color: var(--accent);
  font-size: 1.2rem;
}
.contact-info a {
  color: var(--text-muted);
  text-decoration: none;
}

footer {
  text-align: center;
  padding: 2rem;
  border-top: 1px solid var(--border-glass);
}
footer span {
  color: var(--accent);
  font-weight: 600;
}

/* ================= MODAL ================= */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(5px);
  justify-content: center;
  align-items: center;
}
.modal-content {
  width: 90%;
  max-width: 400px;
  text-align: center;
  position: relative;
  animation: popIn 0.3s;
}
@keyframes popIn {
  from {
    transform: scale(0.8);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}
.close-btn {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-muted);
}
.close-btn:hover {
  color: var(--accent);
}
.modal-content h2 {
  margin-bottom: 0.5rem;
}
.modal-content .price {
  color: var(--accent);
  font-size: 2.2rem;
  margin-bottom: 1.5rem;
}
.size-selector {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 2rem;
}
.size-selector span {
  width: 45px;
  height: 45px;
  display: flex;
  justify-content: center;
  align-items: center;
  border: 1px solid var(--border-glass);
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
}
.size-selector span:hover,
.size-selector span.active {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

/* ================= RESPONSIVE ================= */
@media (max-width: 992px) {
  .hero {
    flex-direction: column;
    text-align: center;
    padding-top: 8rem;
    justify-content: center;
  }
  .hero .content {
    max-width: 100%;
    margin-bottom: 3rem;
  }
  .hero-buttons {
    justify-content: center;
  }
  .hero h1 {
    font-size: 3.5rem;
  }
  .about-container {
    flex-direction: column;
    text-align: center;
  }
  .contact-container {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }
  .nav-links {
    position: absolute;
    top: 100%;
    left: -100%;
    width: 100%;
    background: var(--bg-card);
    backdrop-filter: blur(15px);
    flex-direction: column;
    text-align: center;
    transition: 0.3s;
    padding: 2rem 0;
  }
  .nav-links.active {
    left: 0;
  }
  .nav-links li {
    margin: 1.5rem 0;
  }
  .hero-bg-text {
    font-size: 25vw;
  }
  .floating-shoe {
    width: 90%;
  }
}
