/* ============================================
   Genora IT — Premium Laptop Repair & Parts
   Custom Styles & Animations
   ============================================ */

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

html {
  scroll-behavior: smooth;
}

body {
  background: #050505;
  color: #ffffff;
  font-family: 'Inter', sans-serif;
  overflow-x: hidden;
}

::selection {
  background: rgba(255, 193, 7, 0.3);
  color: #ffffff;
}

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #050505;
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 193, 7, 0.3);
  border-radius: 100px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 193, 7, 0.5);
}

/* ============ LENIS ============ */
html.lenis, html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

/* ============ HEADER ============ */
.site-header-inner {
  border: none;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
}

/* Search Bar */
.header-search {
  transition: all 0.3s ease;
}

.header-search:focus-within {
  border-color: #FFC107;
  box-shadow: 0 0 0 3px rgba(255, 193, 7, 0.08);
}

/* Nav Links */
.header-nav-link {
  position: relative;
  padding: 4px 0;
}

.header-nav-link + .header-nav-link {
  margin-left: 42px;
}

.header-nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: #FFC107;
  border-radius: 100px;
  transition: width 0.3s ease;
}

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

/* Account + Cart Panel */
.header-account-cart {
  border-color: rgba(255, 193, 7, 0.25);
  background: transparent;
}

.header-account-cart:hover {
  background: rgba(255, 193, 7, 0.05);
  border-color: rgba(255, 193, 7, 0.45);
}

.header-divider {
  background: rgba(255, 255, 255, 0.15);
}

/* ============ HERO ============ */
.hero-reveal {
  opacity: 0;
  transform: translateY(40px);
}

.hero-visual {
  opacity: 0;
  transform: translateX(60px);
}

/* Hero Typography */
.hero-content {
  gap: 12px;
}

.hero-title {
  font-size: 36px;
  line-height: 44px;
  color: #FFFFFF;
  margin: 0;
}

.hero-subtitle {
  font-size: 16px;
  line-height: 28px;
  font-weight: 400;
  color: #BDBDBD;
  margin: 0;
  margin-top: 0;
}

@media (min-width: 640px) {
  .hero-content {
    gap: 16px;
  }

  .hero-title {
    font-size: 44px;
    line-height: 52px;
  }

  .hero-subtitle {
    font-size: 18px;
    line-height: 30px;
    margin-bottom: 8px;
  }
}

@media (min-width: 768px) {
  .hero-content {
    gap: 16px;
  }

  .hero-title {
    font-size: 50px;
    line-height: 58px;
  }

  .hero-subtitle {
    font-size: 20px;
    line-height: 32px;
    margin-bottom: 8px;
  }
}

@media (min-width: 1024px) {
  .hero-content {
    gap: 20px;
  }

  .hero-title {
    font-size: 56px;
    line-height: 64px;
  }

  .hero-subtitle {
    font-size: 20px;
    line-height: 32px;
    margin-bottom: 8px;
  }
}

.laptop-main {
  transform: perspective(1000px) rotateY(-5deg) rotateX(2deg);
  transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.laptop-main:hover {
  transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

.floating-card {
  animation: float 6s ease-in-out infinite;
}

.floating-card:nth-child(2) {
  animation-delay: -2s;
}

.floating-card:nth-child(3) {
  animation-delay: -4s;
}

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

/* Particles */
#particles .particle {
  position: absolute;
  width: 3px;
  height: 3px;
  background: rgba(255, 193, 7, 0.3);
  border-radius: 50%;
  animation: particleFloat linear infinite;
}

@keyframes particleFloat {
  0% {
    transform: translateY(100vh) rotate(0deg);
    opacity: 0;
  }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% {
    transform: translateY(-100px) rotate(720deg);
    opacity: 0;
  }
}

/* ============ SEARCH ============ */
.search-container {
  opacity: 0;
  transform: translateY(30px);
}

#search-input:focus ~ #search-suggestions {
  display: block !important;
}

.filter-chip {
  transition: all 0.3s ease;
}

.filter-chip:active {
  transform: scale(0.95);
}

/* ============ BRAND CARDS ============ */
.brand-card {
  transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.brand-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 16px;
  padding: 1px;
  background: linear-gradient(135deg, transparent, transparent);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  transition: background 0.5s ease;
  pointer-events: none;
}

.brand-card:hover::before {
  background: linear-gradient(135deg, rgba(255, 193, 7, 0.3), rgba(255, 184, 0, 0.1));
}

/* ============ SERVICE CARDS ============ */
.service-card {
  position: relative;
}

.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 16px;
  padding: 1px;
  background: linear-gradient(135deg, transparent, transparent);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  transition: background 0.5s ease;
  pointer-events: none;
}

.service-card:hover::before {
  background: linear-gradient(135deg, rgba(255, 193, 7, 0.3), rgba(255, 184, 0, 0.05));
}

/* ============ PART CARDS ============ */
.part-card {
  transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ============ WHY CHOOSE US CARDS ============ */
.why-card {
  position: relative;
}

.why-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 24px;
  padding: 1px;
  background: linear-gradient(135deg, transparent, transparent);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  transition: background 0.5s ease;
  pointer-events: none;
}

.why-card:hover::before {
  background: linear-gradient(135deg, rgba(255, 193, 7, 0.2), transparent);
}

/* ============ STEP CARDS ============ */
.step-card {
  opacity: 0;
  transform: translateY(30px);
}

/* ============ STAT CARDS ============ */
.stat-card {
  position: relative;
  opacity: 0;
  transform: translateY(30px);
}

.stat-card .counter {
  position: relative;
  z-index: 1;
}

/* ============ FAQ ============ */
.faq-item {
  transition: all 0.3s ease;
}

.faq-item.active {
  border-color: rgba(255, 193, 7, 0.2);
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

.faq-content {
  transition: max-height 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ============ VIDEO SECTION ============ */
.video-section::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 24px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(255, 193, 7, 0.2), transparent);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  transition: all 0.5s ease;
}

.video-section:hover::after {
  background: linear-gradient(135deg, rgba(255, 193, 7, 0.4), transparent);
}

/* ============ SECTION REVEAL ============ */
.section-reveal {
  opacity: 0;
  transform: translateY(40px);
}

/* ============ MARQUEE ============ */
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

.animate-marquee {
  animation: marquee 30s linear infinite;
}

.marquee-track {
  display: flex;
  width: max-content;
}

/* ============ BUTTON RIPPLE ============ */
.btn-primary {
  position: relative;
  overflow: hidden;
}

.btn-primary .ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: scale(0);
  animation: rippleEffect 0.6s linear;
  pointer-events: none;
}

@keyframes rippleEffect {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* ============ TESTIMONIAL SWIPER ============ */
.testimonial-swiper .swiper-slide {
  height: auto;
}

.testimonial-swiper .swiper-pagination-bullet {
  background: rgba(255, 255, 255, 0.2);
  width: 12px;
  height: 12px;
  transition: all 0.3s ease;
}

.testimonial-swiper .swiper-pagination-bullet-active {
  background: #FFC107;
  width: 32px;
  border-radius: 100px;
}

/* ============ BACK TO TOP ============ */
#back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 768px) {
  .laptop-main {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
  }

  .floating-card {
    display: none;
  }

  .floating-card:first-of-type {
    display: block;
    position: relative;
    inset: auto;
    margin-top: 1rem;
  }
}

/* ============ ANIMATED GRADIENT BORDER ============ */
@keyframes gradientRotate {
  0% { --angle: 0deg; }
  100% { --angle: 360deg; }
}

/* ============ CURSOR GLOW FOLLOW ============ */
#cursor-glow.active {
  opacity: 1;
}

/* ============ IMAGE ZOOM ON HOVER ============ */
.img-zoom {
  overflow: hidden;
}

.img-zoom img {
  transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.img-zoom:hover img {
  transform: scale(1.1);
}

/* ============ PARALLAX PLACEHOLDER ============ */
.parallax-element {
  will-change: transform;
}

/* ============ ANIMATED UNDERLINE ============ */
.animated-underline {
  position: relative;
  display: inline-block;
}

.animated-underline::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: #FFC107;
  transition: width 0.3s ease;
  border-radius: 100px;
}

.animated-underline:hover::after {
  width: 100%;
}

/* ============ LOADING SKELETON ============ */
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.skeleton {
  background: linear-gradient(90deg, rgba(255,255,255,0.03) 25%, rgba(255,255,255,0.08) 50%, rgba(255,255,255,0.03) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 12px;
}

/* ============ PULSE GLOW ============ */
@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 20px rgba(255, 193, 7, 0.1); }
  50% { box-shadow: 0 0 40px rgba(255, 193, 7, 0.2); }
}

.pulse-glow {
  animation: pulseGlow 3s ease-in-out infinite;
}

/* ============ SMOOTH TRANSITIONS ============ */
a, button {
  -webkit-tap-highlight-color: transparent;
}

/* ============ HEADER SEARCH ============ */
#header-search {
  font-size: 0.875rem;
}

#header-search:focus {
  outline: none;
}

/* ============ MOBILE SEARCH OVERLAY ============ */
#mobile-search-overlay {
  opacity: 0;
  transition: opacity 0.3s ease;
}

#mobile-search-overlay.visible {
  opacity: 1;
}

#mobile-search-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

#mobile-search-input {
  font-size: 1rem;
}

/* ============ NOISE OVERLAY ============ */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.015;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}
