/* styles.css */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&family=Playfair+Display:ital,wght@0,700;1,400;1,700&display=swap');

:root {
  --iron-dark: #121212;
  --iron-panel: #1A1A1A;
  --iron-red: #A31B1B;
  --iron-red-hover: #D82424;
  --iron-gold: #D4AF37;
  --arc-blue: #00E5FF;
  --text-light: #F8F9FA;
  --text-dark: #121212;
  --border-glow: rgba(0, 229, 255, 0.3);
  --border-gold: rgba(212, 175, 55, 0.2);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Montserrat', sans-serif;
}

body {
  background-color: var(--iron-dark);
  color: var(--text-light);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(18, 18, 18, 0.98);
  backdrop-filter: blur(8px);
  border-bottom: 2px solid var(--iron-red);
  color: var(--text-light);
  box-shadow: 0 4px 20px rgba(163, 27, 27, 0.2);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 2rem;
  height: 4rem; /* h-16 */
  max-width: 1280px;
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.logo-img {
  height: 56px; /* Increased from 40px to better fit the square-ish logo */
  width: 56px;
  object-fit: cover;
  border-radius: 50%;
  transition: transform 0.3s ease;
}

.logo-img:hover {
  transform: scale(1.05);
}

.logo-text {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.25rem;
  color: var(--text-light);
  font-weight: 700;
  letter-spacing: -0.05em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-shadow: 0 0 10px rgba(0, 229, 255, 0.5);
}

.logo-text::before {
  content: 'RM';
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border: 2px solid var(--arc-blue);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--arc-blue);
  letter-spacing: 0;
  box-shadow: 0 0 8px rgba(0, 229, 255, 0.4), inset 0 0 8px rgba(0, 229, 255, 0.4);
}

.nav-links {
  display: flex;
  gap: 2rem; /* space-x-8 */
  align-items: center;
}

.nav-links a {
  color: var(--text-light);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.875rem; /* text-sm */
  text-transform: uppercase;
  letter-spacing: 0.05em; /* tracking-wide */
  transition: all 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--arc-blue);
  text-shadow: 0 0 8px var(--border-glow);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-light);
  cursor: pointer;
  transition: color 0.3s ease;
}

.mobile-menu-btn:hover {
  color: var(--arc-blue);
}

@media (max-width: 768px) {
  .nav-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(18, 18, 18, 0.98);
    backdrop-filter: blur(8px);
    border-bottom: 2px solid var(--iron-red);
    padding: 2rem;
    gap: 1.5rem;
    box-shadow: 0 25px 50px -12px rgba(163, 27, 27, 0.25);
    transform: translateY(-15px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s ease, opacity 0.3s ease;
  }
  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .mobile-menu-btn {
    display: block;
  }
}

main {
  min-height: calc(100vh - 120px);
}

/* Comic Transitions */
.page-section {
  display: none;
  padding: 3rem 2rem;
  max-width: 1280px;
  margin: 0 auto;
  /* Comic Style Transition (Slide and scale from side like turning a page) */
  animation: comicSlideIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.1) forwards;
  position: relative;
  overflow: hidden;
}

@keyframes comicSlideIn {
  0% { 
    opacity: 0; 
    transform: translateX(50px) scale(0.95);
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  }
  100% { 
    opacity: 1; 
    transform: translateX(0) scale(1);
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  }
}

/* Base structural adjustments for full backgrounds */
#home {
  max-width: none;
  padding: 0;
  background-color: var(--iron-panel);
  background-image: url('/ironman-bg.jpg');
  background-size: cover;
  background-position: center top;
  background-attachment: fixed;
  background-repeat: no-repeat;
  position: relative;
}

#home::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(18, 18, 18, 0.4); /* Dark overlay for overall home page */
  z-index: 0;
  pointer-events: none;
}

/* Inner wrappers for constrained content inside full-width home */
#home > .hero, 
#home > .marquee-wrapper, 
#home > .section-title, 
#home > .grid {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
}

#home > .section-title {
  padding-left: 2rem;
}

#home > .grid {
  padding: 0 2rem 4rem 2rem;
}

/* Home Section */
.hero {
  color: var(--text-light);
  text-align: center;
  padding: 5rem 2rem;
  /* Removed borders and background */
  background: transparent;
  border: none;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}

.hero::after {
  display: none; /* remove radial glow */
}

.hero h1, .hero p {
  position: relative;
  z-index: 1;
}

.hero p {
  order: -1;
  font-size: 0.75rem; /* text-xs */
  letter-spacing: 0.4em;
  color: var(--iron-gold);
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem; /* text-4xl equivalent on smaller screens, can use media query for larger */
  font-style: italic;
  font-weight: 700;
  color: var(--text-light);
  text-shadow: 0 4px 8px rgba(0,0,0,0.6);
}

@media (min-width: 768px) {
  .hero h1 {
    font-size: 3.5rem;
  }
}

/* Marquee Scroll */
.marquee-wrapper {
  overflow: hidden;
  border-top: 1px solid var(--iron-red);
  border-bottom: 1px solid var(--iron-red);
  padding: 1rem 0;
  margin-bottom: 4rem;
  background-color: rgba(255, 255, 255, 0.15);
  display: flex;
  box-shadow: inset 0 0 10px rgba(0,0,0,0.2);
}

.marquee {
  display: flex;
  white-space: nowrap;
  animation: scroll 35s linear infinite;
  align-items: center;
  gap: 4rem;
}

.partner-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 48px;
}

.partner-logo img {
  height: 100%;
  width: auto;
  object-fit: contain;
  /* Grayscale filter with some brightness adjustments to fit the navy/cream aesthetic */
  
  transition: filter 0.3s ease, transform 0.3s ease;
}

.partner-logo img:hover {
 
  transform: scale(1.05);
}

.logo-fallback {
  font-size: 10px;
  letter-spacing: 0.2em;
  font-weight: 600;
  color: var(--navy);
  opacity: 0.5;
  text-transform: uppercase;
}

@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.section-title {
  text-align: left;
  font-size: 2rem; /* text-3xl roughly */
  margin-bottom: 2rem;
  color: var(--iron-gold);
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-left: 4px solid var(--iron-red);
  padding-left: 1rem;
}

/* Grid & Cards */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem; /* gap-8 */
}

.product-card {
  position: relative;
  background: var(--iron-panel);
  border-radius: 4px; /* rounded-sm */
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5); /* shadow-2xl */
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  display: flex;
  flex-direction: column;
  border-top: 4px solid var(--iron-red); /* border-t-4 */
  border-bottom: 2px solid var(--iron-gold);
  padding: 1.25rem; /* p-5 */
  min-height: 420px;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 229, 255, 0.15);
  border-top-color: var(--arc-blue);
}

/* stage gradient */
.stage {
  background: radial-gradient(circle, rgba(0, 229, 255, 0.1) 0%, transparent 70%);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 4px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  min-height: 220px;
  margin-bottom: 1rem;
  flex: 1;
}

.stage img {
  max-width: 100%;
  max-height: 200px;
  object-fit: contain;
  filter: drop-shadow(0 15px 15px rgba(0,0,0,0.25));
  transition: transform 0.4s ease;
}

.product-card:hover .stage img {
  transform: scale(1.05);
}

.card-content {
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}

.badge {
  font-size: 10px;
  padding: 4px 10px;
  border-radius: 2px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

.bg-green { background-color: var(--iron-gold); color: var(--iron-dark); } /* emerald-500 */
.bg-orange { background-color: var(--arc-blue); color: var(--iron-dark); }
.bg-red { background-color: var(--iron-red); color: var(--text-light); } /* rose-500 */

.partner {
  font-size: 10px;
  color: var(--iron-gold);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

.product-card h3 {
  font-size: 1.125rem; /* text-lg */
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-light);
  margin-bottom: 0.25rem;
}

.specs {
  font-size: 10px;
  opacity: 0.6;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.05em; /* tracking-tighter */
  margin-bottom: 1rem;
}

.price-action {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1rem;
}

.price {
  font-size: 1.25rem; /* text-xl */
  font-weight: 700;
  color: var(--arc-blue);
  text-shadow: 0 0 10px rgba(0, 229, 255, 0.3);
}

.btn {
  background-color: rgba(163, 27, 27, 0.1);
  border: 1px solid var(--iron-red);
  color: var(--text-light);
  padding: 0.5rem 1rem;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.btn:hover {
  background-color: var(--iron-red-hover);
  color: var(--text-light);
  box-shadow: 0 0 15px rgba(163, 27, 27, 0.6);
  border-color: var(--iron-red-hover);
}

/* Showroom Controls */
.controls {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  background: var(--iron-panel);
  padding: 1rem;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.controls input, .controls select {
  padding: 0.75rem 1rem;
  border: 1px solid var(--iron-red);
  border-radius: 2px;
  font-size: 0.875rem;
  flex: 1;
  min-width: 250px;
  background-color: var(--iron-dark);
  color: var(--text-light);
  transition: border-color 0.3s, box-shadow 0.3s;
  font-family: inherit;
  letter-spacing: 0.05em;
}

.controls input:focus, .controls select:focus {
  outline: none;
  border-color: var(--arc-blue);
  box-shadow: 0 0 10px rgba(0, 229, 255, 0.2);
}

.controls input::placeholder {
  color: rgba(255, 255, 255, 0.3);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* Contact Section */
#contact {
  position: relative;
}

#contact::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 70%;
  transform: translate(-50%, -50%);
  width: 80vh;
  height: 80vh;
  background-image: url('/captain-america-bg.gif');
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 1;
  z-index: 0;
  pointer-events: none;
}

.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  background: var(--iron-panel);
  padding: 3rem;
  border-radius: 4px;
  border: 1px solid var(--iron-red);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
  color: var(--text-light);
  position: relative;
  z-index: 1;
}

@media (max-width: 900px) {
  .contact-container {
    grid-template-columns: 1fr;
    padding: 2rem;
  }
}

.contact-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Admin UI */
.admin-auth-container {
  max-width: 400px;
  margin: 4rem auto;
  background: var(--iron-panel);
  padding: 2.5rem;
  border-radius: 4px;
  border: 1px solid var(--arc-blue);
  box-shadow: 0 0 30px rgba(0, 229, 255, 0.1);
}

.admin-form .form-group {
  margin-bottom: 1.5rem;
}

.admin-form label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--iron-gold);
  margin-bottom: 0.5rem;
}

.admin-form input, .admin-form select {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--iron-dark);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-light);
  border-radius: 2px;
  font-family: inherit;
}

.admin-form input:focus, .admin-form select:focus {
  outline: none;
  border-color: var(--arc-blue);
  box-shadow: 0 0 10px rgba(0, 229, 255, 0.2);
}

.w-full { width: 100%; }

.error-msg {
  color: var(--iron-red);
  font-size: 0.85rem;
  margin-bottom: 1rem;
  min-height: 20px;
}

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.admin-panel {
  display: grid;
  grid-template-columns: 350px 1fr;
  gap: 2rem;
}

.admin-sidebar {
  background: var(--iron-panel);
  padding: 2rem;
  border-radius: 4px;
  border: 1px solid var(--iron-gold);
}

.admin-sidebar h3 {
  color: var(--arc-blue);
  margin-bottom: 1.5rem;
  font-family: 'Playfair Display', serif;
}

.form-actions {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

.admin-table-container {
  background: var(--iron-panel);
  border-radius: 4px;
  border: 1px solid rgba(255,255,255,0.1);
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.admin-table th, .admin-table td {
  padding: 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}

.admin-table th {
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--iron-gold);
}

.admin-table img {
  width: 50px;
  height: 50px;
  object-fit: contain;
  border-radius: 4px;
}

.action-btns {
  display: flex;
  gap: 0.5rem;
}

.btn-small {
  padding: 0.25rem 0.5rem;
  font-size: 0.65rem;
  border: 1px solid rgba(255,255,255,0.2);
  background: transparent;
  color: var(--text-light);
  cursor: pointer;
}
.btn-small:hover { border-color: var(--gold); }
.btn-del:hover { background: var(--iron-red); color: white; border-color: var(--iron-red); }

.contact-info h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: 2.2rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--iron-gold);
  margin-bottom: 1.5rem;
  text-shadow: 0 0 10px rgba(212, 175, 55, 0.2);
}

.contact-info p {
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
  line-height: 1.8;
  color: #CCC;
}

.contact-info strong {
  display: block;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--iron-gold);
  margin-bottom: 0.25rem;
}

.contact-info a {
  color: var(--arc-blue);
  text-decoration: none;
  font-weight: 700;
  transition: all 0.2s;
}

.contact-info a:hover {
  text-shadow: 0 0 8px var(--border-glow);
}

.map-container {
  height: 450px;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--border-gold);
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

footer {
  text-align: left;
  padding: 1.5rem 2rem;
  background: var(--iron-panel);
  border-top: 2px solid var(--iron-red);
  color: rgba(255, 255, 255, 0.5);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: flex;
  justify-content: space-between;
  max-width: 1280px;
  margin: 0 auto;
  
}
.powered-by a {
  color: #D4AF37;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.powered-by a:hover {
  text-decoration: underline;
  color: #004680;
}
@media (max-width: 600px) {
  footer {
    flex-direction: column;
    gap: 1rem;
  }
}
