/* ============================================
   GMC - Gamma Maya Cyberindo Stylesheet
   ============================================ */

/* --------------------------------------------
   Global Reset & Base Styles
   -------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
  width: 100%;
}

body {
  font-family: "Inter", sans-serif;
  overflow-x: hidden;
  margin: 0;
  padding: 0;
}

/* --------------------------------------------
   Navigation Styles
   -------------------------------------------- */
.nav-blur {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  animation: headerFadeIn 0.8s ease-out;
}

@keyframes headerFadeIn {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Prevent header layout shift on load */
header.fixed {
  will-change: auto;
}

header nav.container {
  max-width: 100%;
}

/* Logo container - prevent overflow */
header .flex.items-center {
  flex-shrink: 1;
  min-width: 0;
}

header .flex.items-center img {
  max-width: 100%;
  height: auto;
}

.nav-link {
  position: relative;
  transition: color 0.3s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #ff0080, #7928ca);
  transition: width 0.3s ease;
}

.nav-link:hover, .nav-link.active {
  color: #ff0080;
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

/* --------------------------------------------
   Dropdown Menu Styles
   -------------------------------------------- */
.dropdown {
  position: relative;
}

.dropdown-menu {
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  min-width: 280px;
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item {
  transition: background-color 0.2s ease;
}

.dropdown-item:hover {
  background-color: #faf5ff;
}

/* --------------------------------------------
   Mobile Menu Button (Burger) Styles
   -------------------------------------------- */
.mobile-menu-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  outline: none;
}

.mobile-menu-line {
  position: absolute;
  width: 24px;
  height: 2px;
  background: linear-gradient(135deg, #ff0080 0%, #7928ca 100%);
  border-radius: 2px;
  transition: all 0.3s cubic-bezier(0.68, -0.6, 0.32, 1.6);
  left: 50%;
  transform: translateX(-50%);
}

.mobile-menu-line.top-line {
  top: 8px;
}

.mobile-menu-line.middle-line {
  top: 14px;
}

.mobile-menu-line.bottom-line {
  top: 20px;
}

/* Burger to X Animation */
.mobile-menu-btn.active .top-line {
  transform: translateX(-50%) rotate(45deg);
  top: 14px;
}

.mobile-menu-btn.active .middle-line {
  opacity: 0;
  transform: translateX(-50%) translateX(-10px);
}

.mobile-menu-line.bottom-line {
  width: 24px;
}

.mobile-menu-btn.active .bottom-line {
  transform: translateX(-50%) rotate(-45deg);
  top: 14px;
}

/* --------------------------------------------
   Mobile Menu Overlay & Content
   -------------------------------------------- */
.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 40;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.mobile-menu-overlay.active {
  opacity: 1;
  visibility: visible;
}

.mobile-menu-content {
  position: absolute;
  top: 0;
  right: 0;
  width: 85%;
  max-width: 320px;
  height: 100vh;
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  padding: 100px 32px 40px;
  transform: translateX(100%);
  transition: transform 0.4s cubic-bezier(0.68, -0.6, 0.32, 1.6);
  overflow-y: auto;
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.2);
}

.mobile-menu-overlay.active .mobile-menu-content {
  transform: translateX(0);
}

/* Mobile Menu Links */
.mobile-menu-link {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.125rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #1e293b;
  padding: 16px 0;
  border-bottom: 1px solid #e2e8f0;
  transition: all 0.3s ease;
  letter-spacing: 0.5px;
}

.mobile-menu-link:hover {
  color: #ff0080;
  padding-left: 12px;
}

.mobile-menu-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  color: #64748b;
  transition: all 0.3s ease;
}

.mobile-menu-link:hover .mobile-menu-icon {
  color: #ff0080;
  transform: scale(1.1);
}

/* Mobile logo - ideal size for mobile only */
@media (max-width: 768px) {
  header .flex.items-center img[alt="GMC Title"] {
    height: 1.75rem !important;
    max-width: 180px !important;
    object-fit: contain !important;
  }

  header .flex.items-center img[alt="GMC Logo"] {
    width: 2.5rem !important;
    height: 2.5rem !important;
  }

  header .flex.items-center {
    gap: 0.75rem !important;
  }
}

/* Desktop logo - restore original size for desktop only */
@media (min-width: 769px) {
  header .flex.items-center img[alt="GMC Title"] {
    height: 1.75rem !important;
    max-width: none !important;
  }

  header .flex.items-center img[alt="GMC Logo"] {
    width: 2.5rem !important;
    height: 2.5rem !important;
  }
}

/* Mobile Dropdown */
.mobile-dropdown {
  border-bottom: 1px solid #e2e8f0;
}

.mobile-dropdown-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  background: transparent;
  border: none;
  font-size: 1.125rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #1e293b;
  cursor: pointer;
  transition: all 0.3s ease;
  letter-spacing: 0.5px;
}

.mobile-dropdown-toggle:hover {
  color: #ff0080;
}

.mobile-dropdown-toggle:hover .mobile-menu-icon {
  color: #ff0080;
  transform: scale(1.1);
}

.mobile-dropdown.active .dropdown-arrow {
  transform: rotate(180deg);
}

.mobile-dropdown-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.68, -0.6, 0.32, 1.6);
  background: #f1f5f9;
  border-radius: 12px;
  margin-bottom: 0;
}

.mobile-dropdown.active .mobile-dropdown-menu {
  max-height: 400px;
  padding: 16px;
  margin-bottom: 16px;
}

.mobile-dropdown-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 12px;
  transition: all 0.3s ease;
  margin-bottom: 8px;
}

.mobile-dropdown-item:last-child {
  margin-bottom: 0;
}

.mobile-dropdown-item:hover {
  background: white;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transform: translateX(4px);
}

/* Mobile CTA Button */
.mobile-cta-btn {
  display: block;
  background: linear-gradient(135deg, #ff0080 0%, #7928ca 100%);
  color: white;
  text-align: center;
  padding: 16px 24px;
  border-radius: 12px;
  font-size: 0.875rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 24px;
  transition: all 0.3s ease;
  box-shadow: 0 8px 20px rgba(255, 0, 128, 0.3);
}

.mobile-cta-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(255, 0, 128, 0.4);
}

/* --------------------------------------------
   Hero Section Styles
   -------------------------------------------- */
.hero-section {
  position: relative;
  height: 100vh;
  overflow: hidden;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
}

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

/* Scroll Indicator Animation - New Floating Mouse Design */
.scroll-indicator-new {
  position: absolute;
  bottom: 30px;
  left: 50%;
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  animation: floatIndicator 3s ease-in-out infinite;
}

.mouse-icon {
  width: 26px;
  height: 42px;
  border: 2px solid rgba(255, 255, 255, 0.8);
  border-radius: 13px;
  position: relative;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.mouse-wheel {
  width: 4px;
  height: 8px;
  background: white;
  border-radius: 2px;
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  animation: mouseWheelScroll 1.5s infinite;
}

.scroll-hint {
  color: white;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  opacity: 0.8;
}

@keyframes floatIndicator {
  0%, 100% {
    transform: translate(-50%, 0);
  }
  50% {
    transform: translate(-50%, -15px);
  }
}

@keyframes mouseWheelScroll {
  0% {
    top: 8px;
    opacity: 1;
  }
  100% {
    top: 22px;
    opacity: 0;
  }
}

/* Old Scroll Indicator - Deprecated */
.scroll-indicator,
.scroll-text,
.scroll-arrow {
  display: none;
}

/* --------------------------------------------
   Button Styles
   -------------------------------------------- */
.btn-primary {
  background: linear-gradient(135deg, #ff0080 0%, #7928ca 100%);
  transition: all 0.3s ease;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(255, 0, 128, 0.4);
}

.btn-outline-white {
  background: transparent;
  border: 2px solid white;
  color: white;
  transition: all 0.3s ease;
}

.btn-outline-white:hover {
  background: white;
  color: #ff0080;
}

/* --------------------------------------------
   Card Styles
   -------------------------------------------- */
.card-hover {
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.card-hover:hover {
  transform: translateY(-16px) scale(1.03);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
  border-color: #e2e8f0;
}

/* --------------------------------------------
   Text Gradient Animation
   -------------------------------------------- */
.text-gradient {
  background: linear-gradient(90deg, #ff0080, #7928ca, #ff0080);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% center; }
  50% { background-position: 100% center; }
}

/* --------------------------------------------
   Animation Styles
   -------------------------------------------- */
.hero-float {
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  33% { transform: translateY(-20px) rotate(5deg); }
  66% { transform: translateY(10px) rotate(-5deg); }
}

/* --------------------------------------------
   Product Slider Styles
   -------------------------------------------- */
.product-slider-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 2rem;
}

.slider-images-wrapper {
  position: relative;
  width: 100%;
  max-width: 400px;
  height: 300px;
  overflow: hidden;
  border-radius: 16px;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slider-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transform: translateX(50px);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.slider-image.active {
  opacity: 1;
  transform: translateX(0);
}

.slider-image img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.15));
  background: transparent;
}

.slider-nav-btn {
  position: relative;
  z-index: 10;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: white;
  border: 2px solid #e2e8f0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.slider-nav-btn:hover {
  background: linear-gradient(135deg, #ff0080 0%, #7928ca 100%);
  border-color: transparent;
  box-shadow: 0 8px 20px rgba(255, 0, 128, 0.3);
}

.slider-nav-btn:hover svg {
  color: white;
}

.slider-nav-btn svg {
  width: 24px;
  height: 24px;
  color: #1e293b;
  transition: color 0.3s ease;
}

.slider-dots {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #cbd5e1;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.slider-dot:hover {
  background: #94a3b8;
}

.slider-dot.active {
  background: linear-gradient(135deg, #ff0080 0%, #7928ca 100%);
  width: 28px;
  border-radius: 5px;
}

/* --------------------------------------------
   Product Hero Geometric Design Styles
   -------------------------------------------- */
.product-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
  height: 80%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  z-index: 1;
}

.floating-img {
  animation: productFloat 5s ease-in-out infinite;
}

@keyframes productFloat {
  0%, 100% { 
    transform: translateY(0px) rotate(0deg);
  }
  50% { 
    transform: translateY(-15px) rotate(1deg);
  }
}

/* --------------------------------------------
   Feature Card Styles (Zig-Zag Section)
   -------------------------------------------- */
.feature-card {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
}

.feature-card-orange {
  background: linear-gradient(135deg, #fb923c 0%, #ea580c 100%);
  color: white;
}

.feature-card-white {
  background: white;
  color: #1e293b;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.feature-card-image {
  position: relative;
  height: 300px;
  overflow: hidden;
}

.feature-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.feature-card:hover .feature-card-image img {
  transform: scale(1.1);
}

.feature-card-content {
  padding: 2rem;
}

.feature-card-tag {
  display: inline-block;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}

.feature-card-orange .feature-card-tag {
  background: rgba(255, 255, 255, 0.2);
  color: white;
}

.feature-card-white .feature-card-tag {
  background: linear-gradient(135deg, #fb923c 0%, #ea580c 100%);
  color: white;
}

.feature-card-title {
  font-size: 1.875rem;
  font-weight: 900;
  text-transform: uppercase;
  margin-bottom: 1rem;
  line-height: 1.2;
}

.feature-card-description {
  font-size: 1rem;
  line-height: 1.75;
  margin-bottom: 1.5rem;
  opacity: 0.9;
}

.feature-card-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.feature-card-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  font-size: 0.9375rem;
}

.feature-card-orange .feature-card-list li {
  color: white;
}

.feature-card-white .feature-card-list li {
  color: #64748b;
}

.feature-bullet {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.feature-card-orange .feature-bullet {
  background: white;
}

.feature-card-white .feature-bullet {
  background: #fb923c;
}

/* --------------------------------------------
   Scroll to Top Button
   -------------------------------------------- */
.scroll-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #fb923c 0%, #ea580c 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s ease;
  box-shadow: 0 10px 30px rgba(251, 146, 60, 0.4);
}

.scroll-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-to-top:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(251, 146, 60, 0.6);
}

.scroll-to-top svg {
  width: 24px;
  height: 24px;
  color: white;
}

/* --------------------------------------------
   Mobile Responsive Fixes
   -------------------------------------------- */
@media (max-width: 768px) {
  /* 0. Prevent initial glitch - lock header size on page load */
  html, body {
    overflow-x: hidden;
    width: 100%;
  }

  header.fixed {
    position: fixed !important;
    width: 100% !important;
    max-width: 100vw !important;
  }

  header nav {
    max-width: 100% !important;
  }

  /* Prevent logo from overflowing */
  header .flex.items-center {
    flex-shrink: 1;
    min-width: 0;
  }

  header .flex.items-center img {
    max-width: 100%;
    height: auto;
  }

  /* 1. Fix scroll indicator for mobile */
  .scroll-indicator-new {
    bottom: 20px !important;
  }

  .mouse-icon {
    width: 22px;
    height: 36px;
  }

  .mouse-wheel {
    width: 3px;
    height: 6px;
    top: 6px;
  }

  .scroll-hint {
    font-size: 0.55rem;
    letter-spacing: 0.1em;
  }

  /* Add more space at bottom of hero content */
  .hero-content {
    justify-content: flex-start;
    padding-top: 100px !important;
  }

  .hero-content > div {
    margin-bottom: 80px;
  }

  /* Reduce hero title size on mobile */
  .hero-content h1 {
    font-size: 2rem !important;
    line-height: 1.2 !important;
  }

  /* 2. Reduce spacing between sections */
  #about {
    padding-bottom: 2rem !important;
  }

  /* Adjust py-32 to be smaller on mobile for all sections */
  .py-32 {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
  }

  /* 3. Fix featured section - image and text appear together */
  .bg-gradient-to-br.from-orange-500.to-orange-600 [data-aos="fade-right"],
  .bg-gradient-to-br.from-orange-500.to-orange-600 [data-aos="fade-left"] {
    animation-duration: 0.6s !important;
  }

  /* 4. Fix products section - reduce fade-in delay and spacing */
  #products {
    padding-top: 2rem !important;
    padding-bottom: 3rem !important;
  }

  #products [data-aos="fade-up"] {
    animation-duration: 0.5s !important;
  }

  /* Adjust button sizes on mobile */
  .hero-content .btn-primary,
  .hero-content .btn-outline-white {
    padding: 0.875rem 1.5rem !important;
    font-size: 0.7rem !important;
  }

  /* 5. Fix Keunggulan GMC section - 1 column layout on mobile */
  #about + section .grid.grid-cols-2.gap-6,
  section .grid.grid-cols-2.gap-6 {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }

  #about + section .grid.grid-cols-2.gap-6 > div,
  section .grid.grid-cols-2.gap-6 > div {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem !important;
  }

  #about + section .grid.grid-cols-2.gap-6 .w-12.h-12,
  section .grid.grid-cols-2.gap-6 .w-12.h-12 {
    width: 2.75rem !important;
    height: 2.75rem !important;
    min-width: 2.75rem !important;
  }

  #about + section .grid.grid-cols-2.gap-6 .w-6.h-6,
  section .grid.grid-cols-2.gap-6 .w-6.h-6 {
    width: 1.5rem !important;
    height: 1.5rem !important;
  }

  #about + section .grid.grid-cols-2.gap-6 h5,
  section .grid.grid-cols-2.gap-6 h5 {
    font-size: 0.95rem !important;
    line-height: 1.3 !important;
    margin-bottom: 0.25rem !important;
  }

  #about + section .grid.grid-cols-2.gap-6 p,
  section .grid.grid-cols-2.gap-6 p {
    font-size: 0.8rem !important;
    line-height: 1.4 !important;
  }

  /* 6. Fix header glitch on initial load - prevent scaling issues */
  header {
    transform: none !important;
  }

  header nav {
    transform: none !important;
  }

  .nav-blur {
    transform: none !important;
  }

  /* Ensure fixed header maintains proper size on mobile */
  @supports (backdrop-filter: blur(20px)) {
    .nav-blur {
      background: rgba(255, 255, 255, 0.98) !important;
    }
  }
  
  /* 7. Product Slider Responsive Styles */
  .product-slider-container {
    padding: 1rem;
    gap: 0.5rem;
  }
  
  .slider-images-wrapper {
    max-width: 280px;
    height: 220px;
  }
  
  .slider-nav-btn {
    width: 40px;
    height: 40px;
  }
  
  .slider-nav-btn svg {
    width: 20px;
    height: 20px;
  }
  
  /* Hide geometric elements on mobile for cleaner look */
  .product-slider-container + div .text-slate-600 {
    font-size: 0.9rem;
  }
  
  /* 8. Hero Section Mobile Spacing */
  .grid.lg\:grid-cols-2 > .order-first {
    margin-bottom: 0.5rem;
  }
  
  /* Reduce section padding on mobile */
  .pt-24.pb-12 {
    padding-top: 2rem;
    padding-bottom: 1rem;
  }
}
