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

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

:root {
  /* DARK MODERN LUXURY THEME */
  --bg: #050505;
  --bg-darker: #020202;
  --bg-lighter: #0d0d0d;
  --text: #f8fafc;
  --text-muted: #94a3b8;
  --accent: #d4af37; /* Gold accent */
  --accent-muted: #996515;
  --radius-sm: 0px; /* Brutalist - no radius */
  --radius-md: 0px;
  --radius-lg: 0px;
  --shadow-brutal: 5px 5px 0px 0px #000;
  --glass-bg: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.08);

  /* FONTS */
  --font-headings: 'Inter', sans-serif;
  --font-body: 'Inter', sans-serif;
}

body {
  font-family: var(--font-body);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
  color: var(--text);
  background: var(--bg);
  position: relative;
}

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

/* PAGE LAYOUT SCHEME: Centered Floating Content */
.main-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  background: var(--bg-darker);
  position: relative;
  box-shadow: 0 0 100px rgba(0,0,0,0.5);
  min-height: 100vh;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 5%;
  width: 100%;
}

section {
  padding: 100px 0;
  position: relative;
  transition: background 0.8s ease;
}

section.tight {
  padding: 60px 0;
}

/* GRADIENT TRANSITIONS BETWEEN SECTIONS */
.section-transition {
  height: 100px;
  background: linear-gradient(to bottom, var(--bg-darker), var(--bg-lighter));
}

/* NAVIGATION STYLE: Split Header */
.split-header {
  width: 100%;
  background: var(--bg-darker);
  border-bottom: 1px solid var(--glass-border);
}

.header-top {
  padding: 10px 5%;
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-muted);
  border-bottom: 1px solid var(--glass-border);
}

.header-bottom {
  padding: 20px 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: var(--font-headings);
  font-size: 1.5rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent);
}

/* FLOATING NAV PILL (from Page Layout Scheme) */
.floating-nav {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(13, 13, 13, 0.8);
  backdrop-filter: blur(10px);
  padding: 10px 30px;
  border-radius: 999px;
  border: 1px solid var(--accent);
  z-index: 1000;
  display: flex;
  gap: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.floating-nav a {
  font-family: var(--font-headings);
  font-weight: 500;
  font-size: 0.9rem;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.3s ease;
}

.floating-nav a:hover, .floating-nav a.active {
  color: var(--accent);
}

/* BRUTALIST BUTTONS */
.btn-brutal {
  background: var(--accent);
  color: #000;
  padding: 1rem 2rem;
  border: 2px solid #000;
  box-shadow: 4px 4px 0px 0px #000;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-block;
}

.btn-brutal:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0px 0px #000;
}

.btn-brutal:active {
  transform: translate(2px, 2px);
  box-shadow: 0px 0px 0px 0px #000;
}

/* SPLIT HERO */
.hero {
  display: flex;
  min-height: 80vh;
  align-items: center;
  padding: 0 5%;
}

.hero-content {
  flex: 0 0 55%;
  padding-right: 40px;
}

.hero-image {
  flex: 0 0 45%;
}

.hero-image img {
  border-radius: 40px;
  box-shadow: 20px 20px 60px rgba(0,0,0,0.8);
  width: 100%;
}

h1, h2, h3, h4 {
  font-family: var(--font-headings);
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

h1 { font-size: 4rem; text-transform: uppercase; }
h2 { font-size: 3rem; }
h3 { font-size: 1.5rem; }

/* LAYOUT ARCHETYPE: Split-Screen Structure */
.split-section {
  display: flex;
  align-items: center;
  padding: 100px 5%;
}

.split-section.reverse {
  flex-direction: row-reverse;
}

.split-section .content {
  flex: 1;
  padding: 40px;
}

.split-section .media {
  flex: 1;
  padding: 40px;
}

/* SINGLE COLUMN CENTERED (Internal Layout) */
.editorial-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: left;
}

.editorial-content p {
  margin-bottom: 2rem;
  font-size: 1.2rem;
  color: var(--text-muted);
}

/* CARD GRID FOOTER */
footer {
  background: var(--bg-darker);
  padding: 100px 5% 40px;
}

.footer-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-card {
  background: var(--bg-lighter);
  padding: 40px;
  border-radius: 24px;
  border: 1px solid var(--glass-border);
}

.footer-card h4 {
  color: var(--accent);
  margin-bottom: 20px;
}

.footer-card ul {
  list-style: none;
}

.footer-card ul li {
  margin-bottom: 10px;
}

.footer-card a {
  color: var(--text-muted);
  transition: color 0.3s ease;
}

.footer-card a:hover {
  color: var(--accent);
}

/* INTERACTIVE WIDGET: Filtering/Sorting */
.filter-widget {
  margin: 50px 0;
}

.filter-controls {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.filter-btn {
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--accent);
  padding: 8px 20px;
  cursor: pointer;
  text-transform: uppercase;
  font-weight: 600;
}

.filter-btn.active {
  background: var(--accent);
  color: #000;
}

.item-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.grid-item {
  background: var(--bg-lighter);
  border: 1px solid var(--glass-border);
  padding: 20px;
  transition: all 0.4s ease;
}

.grid-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  margin-bottom: 15px;
}

/* TESTIMONIAL MASONRY */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.testimonial-card {
  background: var(--bg-lighter);
  padding: 2rem;
  border: 1px solid var(--glass-border);
}

.testimonial-card .stars {
  color: var(--accent);
  margin-bottom: 10px;
}

.testimonial-card .author {
  display: flex;
  align-items: center;
  margin-top: 20px;
  gap: 15px;
}

.testimonial-card .author img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
}

/* COMPARISON SECTION */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin: 40px 0;
}

.comparison-table th, .comparison-table td {
  padding: 20px;
  text-align: center;
  border: 1px solid var(--glass-border);
}

.comparison-table .feature {
  text-align: left;
}

.comparison-table .pro {
  color: var(--accent);
  font-weight: 700;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  h1 { font-size: 2.5rem; }
  h2 { font-size: 2rem; }
  .hero, .split-section {
    flex-direction: column;
  }
  .hero-content, .hero-image, .split-section .content, .split-section .media {
    flex: 0 0 100%;
    width: 100%;
    padding-right: 0;
  }
  .floating-nav {
    bottom: 20px;
    top: auto;
    width: 90%;
    justify-content: space-around;
    padding: 10px;
  }
  .split-header {
    display: none;
  }
}

/* SCROLL ANIMATION */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.8s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* GALLERY STRIP (Inner Pages) */
.gallery-strip {
  display: flex;
  overflow-x: auto;
  gap: 20px;
  padding: 40px 0;
  scrollbar-width: none;
}
.gallery-strip::-webkit-scrollbar { display: none; }
.gallery-strip img {
  flex: 0 0 300px;
  height: 200px;
  object-fit: cover;
}

/* Auto-fix: prevent default blue/purple browser links */
a { color: inherit; text-decoration: none; transition: color 0.3s ease; }
a:hover { color: currentColor; }
