/* ==========================================================================
   FANCY GEMS STONE ENTERPRISES - Luxury Master Stylesheet
   ========================================================================== */

/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400;1,600&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

:root {
  /* Color Palette */
  --bg-dark: #07090e;
  --bg-surface: #0f141f;
  --bg-card: #161d2a;
  --bg-card-hover: #1e2738;
  
  --gold-primary: #d4af37;
  --gold-light: #f3e5ab;
  --gold-dark: #a3821a;
  --gold-glow: rgba(212, 175, 55, 0.25);

  --emerald-primary: #10b981;
  --emerald-glow: rgba(16, 185, 129, 0.2);
  
  --ruby-primary: #e11d48;
  --ruby-glow: rgba(225, 29, 72, 0.2);

  --sapphire-primary: #2563eb;
  --sapphire-glow: rgba(37, 99, 235, 0.2);

  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  --border-light: rgba(255, 255, 255, 0.08);
  --border-gold: rgba(212, 175, 55, 0.25);
  --border-gold-hover: rgba(212, 175, 55, 0.6);

  /* Typography */
  --font-heading: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Spacing & Radius */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-pill: 9999px;

  --transition-fast: 0.2s ease;
  --transition-normal: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 0.6s cubic-bezier(0.16, 1, 0.3, 1);

  --container-max: 1280px;
}

/* Reset & Base Settings */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  overflow-x: hidden;
  background-color: var(--bg-dark);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

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

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  background: none;
  border: none;
  outline: none;
}

button {
  cursor: pointer;
}

/* Typography Utilities */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.15;
  color: var(--text-main);
  letter-spacing: -0.01em;
}

.text-gold {
  color: var(--gold-primary);
}

.gradient-gold-text {
  background: linear-gradient(135deg, #f3e5ab 0%, #d4af37 50%, #aa820a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.subtitle-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 600;
  color: var(--gold-primary);
  margin-bottom: 0.75rem;
}

.subtitle-tag::before {
  content: '';
  width: 24px;
  height: 1px;
  background-color: var(--gold-primary);
}

.section-title {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  margin-bottom: 1.25rem;
}

.section-description {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 680px;
  line-height: 1.7;
}

/* Layout Containers */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.section-padding {
  padding-top: 6rem;
  padding-bottom: 6rem;
}

@media (max-width: 768px) {
  .section-padding {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }
}

/* Header & Sticky Navigation */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: background-color var(--transition-normal), backdrop-filter var(--transition-normal), border-color var(--transition-normal), padding var(--transition-normal);
  padding: 1.25rem 0;
  border-bottom: 1px solid transparent;
}

.header.scrolled {
  background-color: rgba(7, 9, 14, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 0.85rem 0;
  border-bottom-color: var(--border-gold);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-logo svg {
  width: 38px;
  height: 38px;
  color: var(--gold-primary);
}

.brand-name {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--text-main);
  line-height: 1.1;
  text-transform: uppercase;
}

.brand-subtext {
  font-family: var(--font-body);
  font-size: 0.65rem;
  color: var(--gold-primary);
  letter-spacing: 0.22em;
  display: block;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2.25rem;
  list-style: none;
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.03em;
  position: relative;
  padding: 0.4rem 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: linear-gradient(90deg, var(--gold-primary), var(--gold-light));
  transition: width var(--transition-fast);
}

.nav-link:hover, .nav-link.active {
  color: var(--text-main);
}

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

.nav-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.4rem;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--bg-dark);
  background: linear-gradient(135deg, #f3e5ab 0%, #d4af37 100%);
  border-radius: var(--radius-pill);
  box-shadow: 0 4px 20px var(--gold-glow);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.nav-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(212, 175, 55, 0.4);
}

/* Mobile Nav Toggle */
.mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 1010;
}

.mobile-toggle span {
  width: 100%;
  height: 2px;
  background-color: var(--gold-primary);
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}

.mobile-toggle.active span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.mobile-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-toggle.active span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

@media (max-width: 992px) {
  .mobile-toggle {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 360px;
    height: 100vh;
    background-color: var(--bg-surface);
    border-left: 1px solid var(--border-gold);
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 3rem 2.5rem;
    gap: 2rem;
    transition: right var(--transition-normal);
    box-shadow: -10px 0 30px rgba(0,0,0,0.8);
    z-index: 1005;
  }

  .nav-menu.open {
    right: 0;
  }

  .nav-link {
    font-size: 1.15rem;
  }
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.9rem 2.2rem;
  font-size: 0.925rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--bg-dark);
  background: linear-gradient(135deg, #f3e5ab 0%, #d4af37 100%);
  border-radius: var(--radius-pill);
  box-shadow: 0 6px 25px var(--gold-glow);
  transition: all var(--transition-fast);
  border: 1px solid transparent;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 35px rgba(212, 175, 55, 0.45);
  background: linear-gradient(135deg, #ffffff 0%, #e0bd42 100%);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.9rem 2.2rem;
  font-size: 0.925rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--text-main);
  background: rgba(22, 29, 42, 0.6);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-pill);
  backdrop-filter: blur(8px);
  transition: all var(--transition-fast);
}

.btn-secondary:hover {
  transform: translateY(-3px);
  border-color: var(--gold-primary);
  background: rgba(212, 175, 55, 0.12);
  color: var(--gold-light);
}

/* Hero Section */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 8rem;
  padding-bottom: 5rem;
  overflow: hidden;
  background: radial-gradient(circle at 50% 30%, rgba(22, 29, 42, 0.8) 0%, var(--bg-dark) 80%);
}

.hero-bg-media {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  opacity: 0.35;
  object-fit: cover;
  pointer-events: none;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(ellipse at center, transparent 0%, var(--bg-dark) 90%),
              linear-gradient(to bottom, rgba(7,9,14,0.4) 0%, var(--bg-dark) 100%);
  z-index: 2;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 820px;
}

.hero-title {
  font-size: clamp(2.8rem, 5.5vw, 4.8rem);
  font-weight: 700;
  line-height: 1.08;
  margin-bottom: 1.5rem;
}

.hero-subtitle {
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  line-height: 1.7;
  max-width: 680px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

/* Cards & Feature Containers */
.glass-card {
  background: rgba(22, 29, 42, 0.55);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 2.25rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-gold), transparent);
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.glass-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-gold-hover);
  box-shadow: 0 15px 35px rgba(0,0,0,0.4);
}

.glass-card:hover::before {
  opacity: 1;
}

/* Grid System */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

@media (max-width: 1024px) {
  .grid-3, .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr;
  }
}

/* Feature Icon Boxes */
.icon-box {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid var(--border-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-primary);
  margin-bottom: 1.25rem;
}

.icon-box svg {
  width: 28px;
  height: 28px;
}

/* Product Cards */
.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-gold);
  box-shadow: 0 20px 40px rgba(0,0,0,0.6), 0 0 20px var(--gold-glow);
}

.product-image-container {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: radial-gradient(circle, rgba(30,39,56,1) 0%, rgba(15,20,31,1) 100%);
}

.product-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.product-card:hover .product-image {
  transform: scale(1.08);
}

.product-tag {
  position: absolute;
  top: 1rem;
  left: 1rem;
  padding: 0.35rem 0.85rem;
  font-size: 0.725rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  background: rgba(7, 9, 14, 0.82);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-pill);
  color: var(--gold-light);
  backdrop-filter: blur(8px);
}

.product-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-title {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}

.product-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border-light);
  padding-top: 1rem;
  margin-top: auto;
}

/* Gallery Items & Lightbox */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 1 / 1;
  cursor: pointer;
  border: 1px solid var(--border-light);
  background-color: var(--bg-surface);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(7,9,14,0.95) 0%, rgba(7,9,14,0.2) 60%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  opacity: 0;
  transition: opacity var(--transition-normal);
}

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

.gallery-item:hover .gallery-overlay {
  opacity: 1;
}

.gallery-title {
  font-size: 1.25rem;
  color: var(--text-main);
  margin-bottom: 0.25rem;
}

.gallery-category {
  font-size: 0.8rem;
  color: var(--gold-primary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* Filter Tabs */
.filter-tabs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.filter-btn {
  padding: 0.6rem 1.4rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-pill);
  transition: all var(--transition-fast);
}

.filter-btn:hover, .filter-btn.active {
  color: var(--bg-dark);
  background: var(--gold-primary);
  border-color: var(--gold-primary);
  box-shadow: 0 4px 15px var(--gold-glow);
}

/* Forms */
.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 0.85rem 1.2rem;
  background: rgba(15, 20, 31, 0.8);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--gold-primary);
  box-shadow: 0 0 0 3px var(--gold-glow);
}

.form-textarea {
  resize: vertical;
  min-height: 140px;
}

/* Modals */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(7, 9, 14, 0.9);
  backdrop-filter: blur(12px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
}

.modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-container {
  background: var(--bg-surface);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  max-width: 720px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 2.5rem;
  position: relative;
  box-shadow: 0 25px 50px rgba(0,0,0,0.8);
  transform: translateY(20px);
  transition: transform var(--transition-normal);
}

.modal-backdrop.active .modal-container {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: color var(--transition-fast), background var(--transition-fast);
}

.modal-close:hover {
  color: var(--gold-light);
  background: rgba(212, 175, 55, 0.2);
}

/* Page Banner (For secondary pages) */
.page-banner {
  padding-top: 10rem;
  padding-bottom: 4rem;
  background: radial-gradient(circle at 50% 0%, rgba(22, 29, 42, 0.9) 0%, var(--bg-dark) 80%);
  border-bottom: 1px solid var(--border-light);
  text-align: center;
}

.page-title {
  font-size: clamp(2.5rem, 4vw, 3.8rem);
  margin-bottom: 1rem;
}

/* Footer */
.footer {
  background-color: #040609;
  border-top: 1px solid var(--border-light);
  padding-top: 5rem;
  padding-bottom: 2.5rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 3rem;
  margin-bottom: 4rem;
}

@media (max-width: 992px) {
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 576px) {
  .footer-top {
    grid-template-columns: 1fr;
  }
}

.footer-brand-desc {
  color: var(--text-muted);
  margin-top: 1rem;
  margin-bottom: 1.5rem;
  max-width: 320px;
  line-height: 1.6;
}

.footer-heading {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: var(--text-main);
  margin-bottom: 1.25rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a:hover {
  color: var(--gold-primary);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Scroll Animations */
.reveal-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity var(--transition-slow), transform var(--transition-slow);
}

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

/* Accordions */
.accordion-item {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
  overflow: hidden;
  background: var(--bg-surface);
}

.accordion-header {
  width: 100%;
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  text-align: left;
  transition: color var(--transition-fast);
}

.accordion-header:hover {
  color: var(--gold-primary);
}

.accordion-body {
  padding: 0 1.5rem 1.25rem 1.5rem;
  color: var(--text-muted);
  display: none;
  line-height: 1.7;
}

.accordion-item.active .accordion-body {
  display: block;
}

.accordion-item.active .accordion-icon {
  transform: rotate(180deg);
}

.accordion-icon {
  transition: transform var(--transition-fast);
}
