/* ===== Color Scheme (Luxury Dark + Metallic Gold) ===== */
:root {
  --gold:          #D4AF37;
  --gold-light:    #E8C84A;
  --gold-dark:     #B8942E;
  --gold-deep:     #8B6914;
  --gold-highlight:#FFF2B2;
  --gold-shine:    linear-gradient(135deg, #8B6914 0%, #B8942E 15%, #D4AF37 30%, #FFF2B2 45%, #FFDF00 50%, #D4AF37 65%, #B8942E 80%, #8B6914 100%);
  --steel: #4A708B;
  --steel-light: #6B8FA3;
  --steel-dark: #3B5998;
  --bg: #000000;
  --bg-alt: #111111;
  --bg-card: #1A1A1A;
  --bg-elevated: #222222;
  --text: #E8E8E8;
  --text-light: #9CA3AF;
  --text-muted: #6B7280;
  --border: #2A2A2A;
  --border-light: #3A3A3A;
  --white: #FFFFFF;
  --shadow: 0 8px 32px rgba(212, 175, 55, 0.08);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.5);
  --radius: 8px;
  --transition: all 0.5s cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  background: var(--bg);
}

::selection { background: var(--gold); color: var(--bg); }

a { color: var(--gold); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--gold-light); }

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', 'Times New Roman', serif;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.01em;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border-radius: 6px;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  gap: 8px;
}

.btn-primary {
  background: var(--gold-shine);
  background-size: 200% 200%;
  background-position: 0% 50%;
  color: var(--bg);
  position: relative;
  overflow: hidden;
}
.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.25) 50%, transparent 100%);
  transform: translateX(-100%);
  transition: transform 0.8s cubic-bezier(0.22, 0.61, 0.36, 1);
  pointer-events: none;
}
.btn-primary:hover {
  transform: translateY(-2px);
  background-position: 100% 50%;
  box-shadow: 0 8px 32px rgba(212, 175, 55, 0.3);
  color: var(--bg);
}
.btn-primary:hover::after {
  transform: translateX(100%);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--gold);
  color: var(--gold);
}
.btn-outline:hover {
  background: var(--gold);
  color: var(--bg);
}

.btn-sm { padding: 10px 20px; font-size: 0.8rem; }
.btn-block { width: 100%; }

.btn-danger {
  background: #dc2626;
  color: #fff;
  border: none;
}
.btn-danger:hover {
  background: #b91c1c;
  color: #fff;
}

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(0,0,0,0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}
.nav-logo img { height: 48px; width: auto; }
.nav-logo i { font-size: 1.5rem; color: var(--white); }

.nav-menu {
  display: flex;
  list-style: none;
  gap: 8px;
}

.nav-link {
  color: var(--text-light);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 8px 20px;
  border-radius: 6px;
  transition: var(--transition);
  position: relative;
}
.nav-link::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 60%;
  height: 2px;
  background: var(--gold);
  transition: transform 0.3s ease;
}
.nav-link:hover { color: var(--gold); background: rgba(212,175,55,0.08); }
.nav-link:hover::before { transform: translateX(-50%) scaleX(1); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
}

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  background: var(--bg);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(212, 175, 55, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 50%, rgba(74, 112, 139, 0.06) 0%, transparent 50%);
  pointer-events: none;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23D4AF37' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.5;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 800px;
  padding: 140px 24px 80px;
}

.hero-logo {
  display: block;
  margin: 0 auto 32px;
  max-width: 320px;
  height: auto;
  filter: drop-shadow(0 4px 20px rgba(212, 175, 55, 0.15));
  transition: var(--transition);
}
.hero-logo:hover {
  transform: scale(1.03);
  filter: drop-shadow(0 8px 32px rgba(212, 175, 55, 0.25));
}

.hero-title {
  font-family: 'Playfair Display', 'Times New Roman', serif;
  font-size: 4rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.hero-subtitle {
  font-family: 'Playfair Display', 'Times New Roman', serif;
  font-size: 1.5rem;
  font-weight: 400;
  font-style: italic;
  color: var(--steel-light);
  margin-bottom: 16px;
}

.hero-tagline {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 40px;
  line-height: 1.7;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.section {
  padding: 100px 0;
}

.section-alt {
  background: var(--bg-alt);
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-title {
  font-size: 2.8rem;
  color: var(--white);
  margin-bottom: 16px;
}

.divider {
  width: 60px;
  height: 2px;
  background: var(--gold-shine);
  margin: 0 auto;
}

.about-content {
  max-width: 800px;
  margin: 0 auto;
}

.about-text {
  font-size: 1.05rem;
  line-height: 1.9;
  color: var(--text-light);
  white-space: pre-line;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 32px;
  text-align: center;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gold-shine);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s ease;
}
.service-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold-dark);
  box-shadow: var(--shadow-lg);
}
.service-card:hover::before { transform: scaleX(1); }

.service-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  transition: var(--transition);
}
.service-icon-green {
  background: rgba(74, 222, 128, 0.1);
  color: #4ade80;
}
.service-icon:hover { transform: scale(1.1); }

.service-card-img { padding: 40px 32px 40px !important; }
.service-img-wrap {
  width: 120px;
  height: 120px;
  margin: 0 auto 24px;
  border-radius: 16px;
  overflow: hidden;
}
.service-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}
.service-card-img:hover .service-img-wrap img { transform: scale(1.1); }

.service-card-link {
  display: block;
  color: inherit;
  text-decoration: none;
}
.service-card-link:hover {
  color: inherit;
}
.service-card-link:hover ~ .service-btn,
.service-card:hover .service-card-link:hover + .service-btn,
.service-card-link:hover + .service-btn {
  background: var(--gold-dark);
  border-color: var(--gold-dark);
}

.service-title {
  font-size: 1.4rem;
  margin-bottom: 12px;
  color: var(--white);
}

.service-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 24px;
}

.service-btn {
  display: inline-flex;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
}

.contact-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: var(--text-light);
}
.contact-item i {
  width: 20px;
  font-size: 1.1rem;
  background: var(--gold-shine);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: goldShimmer 6s ease-in-out infinite;
}
.contact-item a { color: var(--text-light); }
.contact-item a:hover { color: var(--gold); }

.footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: 48px 0;
  text-align: center;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.footer-logo {
  max-width: 180px;
  height: auto;
  opacity: 0.8;
}

.footer-text {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ===== Order/Form Pages ===== */
.order-hero {
  padding: 140px 24px 60px;
  text-align: center;
  background: var(--bg-alt);
}

.order-hero-title {
  font-size: 2.5rem;
  color: var(--white);
  margin-bottom: 12px;
}

.order-hero-subtitle {
  color: var(--text-muted);
  font-size: 1.1rem;
}

.order-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 40px;
  align-items: start;
}

.order-form-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
}

.order-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form-control {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 12px 16px;
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  transition: var(--transition);
  width: 100%;
}
.form-control:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(212,175,55,0.15);
}
.form-control::placeholder { color: var(--text-muted); }

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

select.form-control {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%239CA3AF' d='M1.41 0L6 4.58 10.59 0 12 1.41l-6 6-6-6z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 44px;
}

.order-info {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
}

.order-info-title {
  font-size: 1.2rem;
  color: var(--gold);
  margin-bottom: 24px;
  text-align: center;
}

.order-info-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 20px;
}
.order-info-item:last-child { margin-bottom: 0; }
.order-info-item i {
  font-size: 1.2rem;
  color: var(--gold);
  margin-top: 2px;
  width: 24px;
  text-align: center;
}
.order-info-item strong {
  display: block;
  font-size: 0.9rem;
  color: var(--text);
  margin-bottom: 2px;
}
.order-info-item p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.order-success {
  text-align: center;
  padding: 40px 20px;
}

.order-success-icon {
  font-size: 3rem;
  color: #4ade80;
  margin-bottom: 16px;
}

.order-success-title {
  font-size: 1.8rem;
  margin-bottom: 12px;
}

.order-success-text {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 24px;
}

/* ===== Page Hero ===== */
.page-hero {
  padding: 140px 24px 60px;
  text-align: center;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
}

.page-hero-title {
  font-size: 2.8rem;
  color: var(--white);
  margin-bottom: 12px;
}

.page-hero-subtitle {
  color: var(--text-muted);
  font-size: 1.15rem;
}

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

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
}
.project-card:hover {
  transform: translateY(-4px);
  border-color: var(--gold-dark);
  box-shadow: var(--shadow-lg);
}

.project-image img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  display: block;
}

.project-info {
  padding: 24px;
}

.project-title {
  font-size: 1.3rem;
  color: var(--white);
  margin-bottom: 8px;
}

.project-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ===== Alerts ===== */
.alert {
  padding: 16px 20px;
  border-radius: 6px;
  margin-bottom: 20px;
  font-size: 0.9rem;
  transition: opacity 1s ease;
}
.alert-error {
  background: rgba(220,38,38,0.1);
  border: 1px solid rgba(220,38,38,0.3);
  color: #fca5a5;
}
.alert-success {
  background: rgba(74,222,128,0.1);
  border: 1px solid rgba(74,222,128,0.3);
  color: #4ade80;
}

.text-muted { color: var(--text-muted); }

/* ===== Admin Styles ===== */
.admin-nav {
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
}

.admin-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
  height: 60px;
}

.admin-nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.admin-nav-logo {
  height: 32px;
  width: auto;
}

.admin-nav-brand span {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  color: var(--gold);
  font-weight: 700;
}

.admin-nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.admin-user {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.admin-layout {
  display: flex;
  margin-top: 60px;
  min-height: calc(100vh - 60px);
}

.admin-sidebar {
  width: 220px;
  background: var(--bg-alt);
  border-right: 1px solid var(--border);
  position: fixed;
  top: 60px;
  left: 0;
  bottom: 0;
  overflow-y: auto;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  padding: 16px 0;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 24px;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 500;
  transition: var(--transition);
  border-left: 2px solid transparent;
}
.sidebar-link:hover {
  color: var(--text);
  background: rgba(255,255,255,0.03);
}
.sidebar-link.active {
  color: var(--gold);
  border-left-color: var(--gold);
  background: rgba(212,175,55,0.06);
}
.sidebar-link i { width: 18px; text-align: center; font-size: 1rem; }

.admin-main {
  flex: 1;
  margin-left: 220px;
  padding: 32px;
}

.admin-header {
  margin-bottom: 32px;
}
.admin-header h2 { font-size: 1.6rem; color: var(--white); margin-bottom: 8px; }
.admin-header p { color: var(--text-muted); font-size: 0.9rem; }

.tab-content { display: none; }
.tab-content.active { display: block; }

.upload-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  margin-bottom: 32px;
}
.upload-section h3 {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.upload-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.image-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
}

.image-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.image-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
}
.image-card-info {
  padding: 12px;
}
.image-name {
  display: block;
  font-size: 0.8rem;
  color: var(--text);
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.image-card-info code {
  display: block;
  font-size: 0.7rem;
  color: var(--text-muted);
}

.settings-section {
  max-width: 500px;
}

.settings-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

@keyframes goldShimmer {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* Worker dashboard grids */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}

.worker-dash-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

/* Admin sidebar toggle */
.sidebar-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.1rem;
  cursor: pointer;
  padding: 8px 0;
  width: 100%;
  text-align: center;
}
.sidebar-toggle:hover { color: var(--gold); }

@media (max-width: 768px) {
  .sidebar-toggle { display: block; }
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .order-layout { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav-menu {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.95);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 20px;
    border-bottom: 1px solid var(--border);
  }
  .nav-menu.active { display: flex; }
  .nav-toggle { display: block; }

  .hero-title { font-size: 2.8rem; }
  .hero-subtitle { font-size: 1.2rem; }
  .hero-logo { max-width: 240px; margin-bottom: 28px; }

  .section { padding: 60px 0; }
  .section-title { font-size: 2rem; }

  .services-grid { grid-template-columns: 1fr; }

  .form-row { grid-template-columns: 1fr; }

  .admin-nav-brand span { display: none; }
  .admin-user span { display: none; }
  .admin-user i { margin-right: 0; }

  .admin-sidebar { width: 60px; }
  .sidebar-link { padding: 14px 0; justify-content: center; gap: 0; }
  .sidebar-link span { display: none; }
  .sidebar-link i { width: auto; font-size: 1.2rem; }
  .admin-main { margin-left: 60px; padding: 20px; }

  .admin-sidebar.expanded { width: 220px; }
  .admin-sidebar.expanded .sidebar-link { justify-content: flex-start; padding: 12px 24px; gap: 12px; }
  .admin-sidebar.expanded .sidebar-link span { display: inline; }
  .admin-sidebar.expanded .sidebar-link i { width: 18px; font-size: 1rem; }

  .stats-grid { grid-template-columns: 1fr; }
  .worker-dash-grid { grid-template-columns: 1fr; }

  .page-hero-title { font-size: 2rem; }
  .projects-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .admin-main { padding: 16px; }
  .admin-main table { font-size: 0.8rem; }
  .admin-main th,
  .admin-main td { padding: 8px 10px !important; }
  .admin-nav-inner { padding: 0 12px; }
  .admin-nav-right .admin-user { display: none; }
  .order-form-card { padding: 24px; }
}

/* Google Sign-In Button */
.btn-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #fff;
  color: #333;
  border: 1px solid #ddd;
  padding: 12px 32px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  font-family: 'Inter', sans-serif;
  width: 100%;
  text-align: center;
}
.btn-google:hover {
  background: #f5f5f5;
  border-color: #ccc;
}
.btn-google i {
  font-size: 1.1rem;
  color: #4285f4;
}

/* Social login divider */
.social-divider {
  display: flex;
  align-items: center;
  margin: 20px 0;
  color: var(--text-muted);
  font-size: 0.85rem;
}
.social-divider::before,
.social-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid var(--border);
}
.social-divider span {
  padding: 0 16px;
}

@media (max-width: 480px) {
  .hero-title { font-size: 2rem; }
  .hero-logo { max-width: 180px; margin-bottom: 20px; }
  .hero-content { padding: 120px 16px 60px; }
}
