/* ============================================
   Elephant Music (English) - Global Styles
   ============================================ */

:root {
  --primary: #3B1F6E;
  --primary-dark: #2A154F;
  --primary-light: #7C5FAA;
  --bg-cream: #FAF7F5;
  --bg-white: #FFFFFF;
  --text-dark: #1C1B1E;
  --text-mid: #49454F;
  --text-light: #938F99;
  --border: #E6E0E9;
  --gold: #C9A96E;
  --gold-light: #E8D5F5;
  --accent: #8B6FBF;
  --shadow: rgba(59, 31, 110, 0.08);
  --font-heading: 'Georgia', 'Times New Roman', serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --max-width: 1200px;
  --nav-height: 72px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background: var(--bg-cream);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-dark);
  line-height: 1.3;
}

h1 { font-size: 2.5rem; margin-bottom: 1rem; }
h2 { font-size: 2rem; margin-bottom: 0.8rem; }
h3 { font-size: 1.4rem; margin-bottom: 0.6rem; }
h4 { font-size: 1.1rem; margin-bottom: 0.4rem; }

p { margin-bottom: 1rem; color: var(--text-mid); }

a { color: var(--primary); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--primary-dark); }

img { max-width: 100%; height: auto; display: block; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

section { padding: 60px 0; }

.section-title {
  text-align: center;
  margin-bottom: 40px;
}
.section-title h2 {
  position: relative;
  display: inline-block;
  padding-bottom: 15px;
}
.section-title h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--primary);
  border-radius: 2px;
  opacity: 0.6;
}

/* ===== Language Switcher ===== */
.lang-switch {
  position: fixed;
  top: 12px;
  right: 20px;
  z-index: 1001;
}
.lang-switch a {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  transition: background 0.2s;
}
.lang-switch a:hover { background: var(--primary-dark); color: #fff; }

.cat-header h2 { color: var(--primary); }
.cat-header h2 i { color: var(--primary-light); }

/* ===== Navigation ===== */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  transition: box-shadow 0.3s;
}
nav.scrolled { box-shadow: 0 2px 20px var(--shadow); }

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-dark);
}
.nav-logo img { height: 36px; width: auto; }
.nav-logo span { letter-spacing: 0.5px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 5px;
  list-style: none;
  height: 100%;
}

.nav-links > li {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
}

.nav-links > li > a {
  padding: 8px 16px;
  color: var(--text-mid);
  font-size: 14px;
  font-weight: 500;
  border-radius: 6px;
  transition: all 0.2s;
  white-space: nowrap;
}

.nav-links > li > a:hover,
.nav-links > li > a.active {
  color: var(--primary);
  background: rgba(139, 69, 19, 0.08);
}

/* Dropdown */
.nav-links .dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 8px 30px var(--shadow);
  min-width: 220px;
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all 0.25s ease;
  z-index: 100;
}
.nav-links li:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown-menu li { list-style: none; }
.dropdown-menu a {
  display: block;
  padding: 10px 20px;
  color: var(--text-mid);
  font-size: 14px;
  transition: all 0.15s;
}
.dropdown-menu a:hover {
  background: rgba(139, 69, 19, 0.06);
  color: var(--primary);
  padding-left: 24px;
}
.dropdown-menu .dropdown-divider {
  height: 1px;
  background: var(--border);
  margin: 6px 10px;
}

.has-dropdown > a::after {
  content: '\f078';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  font-size: 9px;
  margin-left: 5px;
  display: inline-block;
  transition: transform 0.2s;
}
.has-dropdown:hover > a::after {
  transform: rotate(180deg);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 5px;
  background: none;
  border: none;
}
.hamburger span {
  display: block;
  width: 26px;
  height: 2.5px;
  background: var(--text-dark);
  border-radius: 2px;
  transition: all 0.3s;
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ===== Hero Section ===== */
.hero {
  position: relative;
  height: 88vh;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: #fff;
}
.hero-media {
  position: absolute; inset: 0; z-index: 0;
}
.hero-media img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(42,21,79,0.85) 0%, rgba(59,31,110,0.7) 50%, rgba(42,21,79,0.5) 100%);
  z-index: 1;
}
.hero-content {
  position: relative; z-index: 2;
  text-align: center;
  padding: 0 20px;
  max-width: 800px;
}
.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  color: #fff;
  font-weight: 600;
  letter-spacing: 2px;
  margin-bottom: 15px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}
.hero .subtitle {
  font-size: clamp(1rem, 2vw, 1.4rem);
  color: rgba(255,255,255,0.85);
  margin-bottom: 30px;
  font-weight: 300;
}
.hero .btn {
  display: inline-block;
  padding: 14px 36px;
  background: rgba(255,255,255,0.2);
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  border-radius: 30px;
  transition: all 0.3s;
  border: 2px solid rgba(255,255,255,0.4);
  cursor: pointer;
  backdrop-filter: blur(4px);
}
.hero .btn:hover {
  background: rgba(255,255,255,0.3);
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(124, 58, 237, 0.3);
}
.hero .btn-ghost {
  background: transparent;
  border: 2px solid rgba(255,255,255,0.6);
}
.hero .btn-ghost:hover {
  border-color: #fff;
  background: rgba(255,255,255,0.1);
}
.hero .hero-btns {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}
@media(max-width:768px){
  .hero { height: 70vh; min-height: 400px; }
}

/* ===== Cards ===== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 30px;
}

.card {
  background: var(--bg-white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px var(--shadow);
  transition: transform 0.3s, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px var(--shadow);
}
.card-img { width: 100%; height: 220px; object-fit: cover; }
.card-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.card-body h3 { font-size: 1.15rem; margin-bottom: 8px; }
.card-body p { font-size: 0.9rem; color: var(--text-light); margin-bottom: 12px; flex: 1; }
.card-body .price { font-size: 1.3rem; font-weight: 700; color: var(--primary); }
.card-body .price-sub { font-size: 0.85rem; color: var(--text-light); }
.card-body .btn-sm {
  display: inline-block;
  padding: 8px 20px;
  background: var(--primary);
  color: #fff;
  border-radius: 20px;
  font-size: 0.85rem;
  margin-top: 10px;
  transition: background 0.2s;
}
.card-body .btn-sm:hover { background: var(--primary-dark); color: #fff; }

.product-card .info .price { color: var(--primary); }

/* ===== Rental Table ===== */
.table-wrap { overflow-x: auto; }
.rental-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px var(--shadow);
}
.rental-table th {
  background: var(--primary);
  color: #fff;
  padding: 14px 16px;
  text-align: left;
  font-weight: 600;
  font-size: 0.9rem;
}
.rental-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}
.rental-table tr:last-child td { border-bottom: none; }
.rental-table tr:hover td { background: rgba(139, 69, 19, 0.04); }
.rental-table .model-name { font-weight: 600; }

/* ===== About / Feature Sections ===== */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}
.feature-item {
  background: var(--bg-white);
  padding: 40px 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px var(--shadow);
  text-align: center;
  transition: transform 0.3s;
}
.feature-item:hover { transform: translateY(-3px); }
.feature-item .icon {
  font-size: 2.5rem;
  color: var(--primary-light);
  margin-bottom: 20px;
}
.feature-item h3 { margin-bottom: 12px; }
.feature-item p { font-size: 0.95rem; color: var(--text-mid); }

/* ===== Contact ===== */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
}
.contact-card {
  background: var(--bg-white);
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px var(--shadow);
}
.contact-card h3 { color: var(--primary); margin-bottom: 8px; font-size: 1.1rem; }
.contact-card .addr { color: var(--text-mid); margin-bottom: 4px; }
.contact-card .phone { color: var(--text-dark); font-weight: 500; }

/* ===== Page Banner ===== */
.page-banner {
  padding: 120px 20px 60px;
  text-align: center;
  background: linear-gradient(135deg, #2A154F 0%, #3B1F6E 50%, #4A2982 100%);
  color: #fff;
}
.page-banner h1 { color: #fff; margin-bottom: 8px; }
.page-banner p { color: rgba(255,255,255,0.8); font-size: 1.1rem; }

/* ===== Product Grid ===== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 25px;
}

.product-card {
  background: var(--bg-white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px var(--shadow);
  transition: transform 0.3s;
}
.product-card:hover { transform: translateY(-4px); }
.product-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.product-card .info { padding: 20px; }
.product-card .info h3 { font-size: 1rem; margin-bottom: 6px; }
.product-card .info .price { font-weight: 700; color: var(--primary); font-size: 1.2rem; }
.product-card .info .cat { font-size: 0.8rem; color: var(--text-light); margin-bottom: 8px; }

/* ===== FAQ / Content pages ===== */
.content-page {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 20px;
}
.content-page h2 { margin-top: 40px; }
.content-page p, .content-page ul { margin-bottom: 1rem; }
.content-page ul { padding-left: 20px; }
.content-page ul li { margin-bottom: 0.5rem; color: var(--text-mid); }

/* ===== Footer ===== */
footer {
  background: var(--text-dark);
  color: rgba(255,255,255,0.8);
  text-align: center;
  padding: 50px 20px 30px;
}
footer .footer-links {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
footer .footer-links a { color: rgba(255,255,255,0.7); font-size: 0.9rem; }
footer .footer-links a:hover { color: var(--primary-light); }
footer .copyright { font-size: 0.85rem; color: rgba(255,255,255,0.5); }
footer .contact-info a { color: var(--accent); }

/* ===== Back to Top ===== */
#back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  border: none;
  font-size: 1.1rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
  z-index: 999;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}
#back-to-top.show { opacity: 1; visibility: visible; }
#back-to-top:hover { background: var(--primary-dark); transform: translateY(-3px); }

/* ===== Responsive ===== */
@media (max-width: 992px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }

  .nav-links.mobile-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--bg-white);
    border-bottom: 2px solid var(--border);
    padding: 15px 20px;
    gap: 0;
    height: auto;
    box-shadow: 0 10px 30px var(--shadow);
  }
  .nav-links.mobile-open > li {
    height: auto;
    display: block;
  }
  .nav-links.mobile-open > li > a {
    display: block;
    padding: 12px 16px;
    border-radius: 6px;
  }
  .nav-links.mobile-open .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    padding-left: 16px;
    display: none;
  }
  .nav-links.mobile-open .has-dropdown.open .dropdown-menu {
    display: block;
  }
  .nav-links.mobile-open .has-dropdown > a::after { float: right; }

  .lang-switch { top: 14px; right: 70px; }
  .lang-switch a { padding: 4px 10px; font-size: 12px; }
}

@media (max-width: 576px) {
  section { padding: 40px 0; }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  .hero .hero-content h1 { font-size: 2rem; }
  .card-grid, .product-grid { grid-template-columns: 1fr; }
}

/* ============================================


/* ============================================
   GSAP Animation Helpers
   ============================================ */

.feature-item,
.card,
.product-card,
.contact-card,
.section-title {
  will-change: transform, opacity;
}

.hero-content {
  will-change: transform, opacity;
}

/* ===== ENHANCED: Navbar scroll glassmorphism ===== */
#mainNav {
  transition: background 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease;
}
#mainNav.scrolled {
  background: rgba(255, 255, 255, 0.92) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  box-shadow: 0 2px 20px rgba(59, 31, 110, 0.08) !important;
  border-bottom: 1px solid var(--border) !important;
}

/* ===== ENHANCED: Card hover micro-interactions ===== */
.feature-item, .card {
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.feature-item:hover, .card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px var(--shadow);
  border-color: var(--gold) !important;
}

.contact-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.contact-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px var(--shadow);
}

/* ===== ENHANCED: Button micro hover ===== */
.btn, .btn-sm {
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease !important;
}
.btn:hover, .btn-sm:hover {
  transform: translateY(-2px);
}

/* ===== ENHANCED: Section fade-in on viewport ===== */
section {
  animation: sectionFadeIn 0.6s ease forwards;
  opacity: 0;
}
@keyframes sectionFadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
 
