/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Dark Mode (Default) - Premium Brand Colors */
  --background: #040303;
  --surface: #111111;
  --surface-light: #1A1A1A;

  --gold-dark: #A86A15;
  --gold: #EDA016;
  --gold-light: #F3C245;
  --gold-highlight: #F5DD88;

  --silver: #BEBCBC;
  --silver-light: #ECEBEA;
  --gray: #77746B;

  --blue: #179CE3;

  --text: #ECEBEA;
  --text-secondary: #BEBCBC;
}

[data-theme="light"] {
  /* Light Mode - Refined Theme */
  --background: #F8F8F8;
  --surface: #FFFFFF;
  --surface-light: #F2F2F2;

  --gold-dark: #A86A15;
  --gold: #EDA016;
  --gold-light: #F3C245;

  --silver: #77746B;
  --silver-light: #444444;

  --blue: #179CE3;

  --text: #1B1B1B;
  --text-secondary: #555555;
}

body {
  font-family: 'Archivo Narrow', sans-serif;
  line-height: 1.6;
  background-color: var(--background);
  color: var(--text);
  transition: background-color 250ms ease, color 250ms ease;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 640px) {
  .container {
    padding: 0 1.5rem;
  }
}

@media (min-width: 1024px) {
  .container {
    padding: 0 2rem;
  }
}

/* Button Styles */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background-color: var(--gold);
  color: #000000;
  border: none;
  border-radius: 0.5rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 250ms ease;
}

.btn-primary:hover {
  background-color: var(--gold-light);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background-color: transparent;
  color: var(--text);
  border: 2px solid var(--gold);
  border-radius: 0.5rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 250ms ease, color 250ms ease;
}

.btn-secondary:hover {
  background-color: var(--gold);
  color: var(--background);
}

/* Navigation */
.navbar {
  background-color: var(--surface);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 50;
  transition: background-color 250ms ease;
}

[data-theme="dark"] .navbar {
  background-color: var(--surface);
}

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

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

.logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--gold);
  transition: color 250ms ease;
  max-height: 3rem;
  width: auto;
}

.logo-text {
  font-size: 1.25rem;
  font-weight: bold;
  color: var(--text);
  transition: color 250ms ease;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-links a {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  transition: color 250ms ease;
}

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

.dark-mode-btn {
  padding: 0.5rem;
  border-radius: 0.5rem;
  background-color: var(--surface-light);
  border: none;
  color: var(--text);
  cursor: pointer;
  transition: background-color 250ms ease, color 250ms ease;
}

.dark-mode-btn:hover {
  background-color: var(--gray);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.75rem;
  color: var(--text);
  cursor: pointer;
  transition: color 250ms ease;
}

.mobile-menu {
  display: none;
  background-color: var(--surface);
  border-top: 1px solid var(--surface-light);
  padding: 1rem;
  transition: background-color 250ms ease;
}

.mobile-menu a {
  display: block;
  padding: 0.75rem 1rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  border-radius: 0.5rem;
  transition: background-color 250ms ease, color 250ms ease;
}

.mobile-menu a:hover {
  background-color: var(--surface-light);
  color: var(--gold);
}

.mobile-phone {
  color: var(--gold);
  font-weight: 600;
  transition: color 250ms ease;
}

@media (max-width: 768px) {
  .desktop-nav {
    display: none;
  }
  
  .mobile-menu-btn {
    display: block;
  }
  
  .mobile-menu.active {
    display: block;
  }
}

/* Hero Section */
.hero {
  padding-top: 5rem;
  background: linear-gradient(135deg, var(--gold-dark) 0%, var(--background) 100%);
  color: var(--text);
  padding-bottom: 5rem;
  transition: background 250ms ease;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
  padding: 3rem 0;
}

@media (min-width: 768px) {
  .hero-content {
    grid-template-columns: 1fr 1fr;
  }
}

.hero-text h1 {
  font-size: 2.5rem;
  font-weight: bold;
  color: var(--text);
  margin-bottom: 1.5rem;
  line-height: 1.2;
  transition: color 250ms ease;
}

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

@media (min-width: 1024px) {
  .hero-text h1 {
    font-size: 4rem;
  }
}

.hero-text p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  color: var(--text-secondary);
  transition: color 250ms ease;
}

.hero-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 640px) {
  .hero-buttons {
    flex-direction: row;
  }
}

.hero-icon {
  display: none;
  justify-content: center;
}

@media (min-width: 768px) {
  .hero-icon {
    display: flex;
  }
}

.hero-logo-img {
  max-width: 100%;
  height: 100%;
  width: auto;
  object-fit: contain;
}

.icon-box {
  background-color: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 1rem;
  padding: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.icon-box i {
  font-size: 12.5rem;
  color: rgba(255, 255, 255, 0.9);
}

.stats-bar {
  background-color: var(--surface-light);
  padding: 2rem 0;
  transition: background-color 250ms ease;
}

.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  text-align: center;
}

@media (min-width: 768px) {
  .stats {
    grid-template-columns: repeat(4, 1fr);
  }
}

.stat-number {
  font-size: 2.5rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

@media (min-width: 768px) {
  .stat-number {
    font-size: 3rem;
  }
}

.stat-label {
  color: var(--primary-200);
}

/* Services Section */
.services {
  padding: 5rem 0;
  background-color: var(--background);
  transition: background-color 250ms ease;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-header h2 {
  font-size: 2.5rem;
  font-weight: bold;
  color: var(--text);
  margin-bottom: 1rem;
  transition: color 250ms ease;
}

.section-header p {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 42rem;
  margin: 0 auto;
  transition: color 250ms ease;
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

.service-card {
  background-color: var(--surface);
  border-radius: 0.75rem;
  padding: 2rem;
  border: 1px solid var(--surface-light);
  transition: background-color 250ms ease, border-color 250ms ease, box-shadow 250ms ease;
}

.service-card:hover {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.service-icon {
  background-color: var(--gold-light);
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  transition: background-color 250ms ease;
}

.service-icon i {
  color: var(--gold-dark);
  font-size: 1.75rem;
  transition: color 250ms ease;
}

.service-card h3 {
  font-size: 1.25rem;
  font-weight: bold;
  color: var(--text);
  margin-bottom: 0.75rem;
  transition: color 250ms ease;
}

.service-card p {
  color: var(--text-secondary);
  transition: color 250ms ease;
}

/* Service Areas Section */
.service-areas {
  padding: 5rem 0;
  background-color: var(--background);
  transition: background-color 250ms ease;
}

.areas-card {
  background-color: var(--surface);
  border-radius: 1rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  padding: 2rem;
  transition: background-color 250ms ease;
}

.areas-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.areas-header i {
  color: var(--gold);
  font-size: 2rem;
  transition: color 250ms ease;
}

.areas-header h3 {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--text);
  transition: color 250ms ease;
}

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

@media (min-width: 768px) {
  .cities-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

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

.city-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text);
  background-color: var(--surface-light);
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  transition: color 250ms ease, background-color 250ms ease;
}

.city-badge span {
  width: 0.5rem;
  height: 0.5rem;
  background-color: var(--gold);
  border-radius: 50%;
  transition: background-color 250ms ease;
}

.areas-cta {
  background-color: var(--gold);
  color: var(--background);
  border-radius: 0.75rem;
  padding: 1.5rem;
  text-align: center;
  transition: background-color 250ms ease;
}

.areas-cta p:first-child {
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.areas-cta p:last-child {
  color: var(--background);
}

/* About Section */
.about {
  padding: 5rem 0;
  background-color: var(--background);
  transition: background-color 250ms ease;
}

.about-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: start;
}

@media (min-width: 768px) {
  .about-content {
    grid-template-columns: 1fr 1fr;
  }
}

.about-text h2 {
  font-size: 2.5rem;
  font-weight: bold;
  color: var(--text);
  margin-bottom: 1.5rem;
  transition: color 250ms ease;
}

.about-text p {
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  transition: color 250ms ease;
}

.about-values {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.value-card {
  display: flex;
  gap: 1rem;
  padding: 1.5rem;
  background-color: var(--surface);
  border-radius: 0.75rem;
  border: 1px solid var(--surface-light);
  transition: background-color 250ms ease, border-color 250ms ease;
}

.value-icon {
  flex-shrink: 0;
  background-color: var(--gold-light);
  width: 3rem;
  height: 3rem;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 250ms ease;
}

.value-icon i {
  color: var(--gold-dark);
  font-size: 1.5rem;
  transition: color 250ms ease;
}

.value-content h3 {
  font-size: 1.25rem;
  font-weight: bold;
  color: var(--text);
  margin-bottom: 0.5rem;
  transition: color 250ms ease;
}

.value-content p {
  color: var(--text-secondary);
  transition: color 250ms ease;
}

/* Testimonials Section */
.testimonials {
  padding: 5rem 0;
  background-color: var(--background);
  transition: background-color 250ms ease;
}

.review-window {
  background-color: var(--surface);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  transition: background-color 250ms ease;
}

.review-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 1rem;
  background-color: var(--surface-light);
  border-bottom: 1px solid var(--surface-light);
  transition: background-color 250ms ease, border-color 250ms ease;
}

.review-tabs .tab-btn {
  padding: 0.5rem 1rem;
  background-color: var(--surface);
  border: 1px solid var(--surface-light);
  border-radius: 0.5rem;
  color: var(--text);
  font-weight: 500;
  cursor: pointer;
}

.review-tabs .tab-btn:not(.active) {
  transition: background-color 250ms ease, border-color 250ms ease, color 250ms ease;
}

.review-tabs .tab-btn:not(.active):hover {
  background-color: var(--surface-light);
  color: var(--gold);
}

.review-tabs .tab-btn.active {
  background-color: var(--gold) !important;
  border-color: var(--gold) !important;
  color: var(--background) !important;
  box-shadow: 0 2px 4px rgba(234, 160, 22, 0.3);
  transform: scale(1.05);
}

.tab-content-container {
  position: relative;
  min-height: 400px;
}

.tab-content {
  display: none;
  padding: 2rem;
}

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

.review-embed-container {
  position: relative;
  width: 100%;
  height: 400px;
  border-radius: 0.5rem;
  overflow: hidden;
}

.google-preview iframe {
  width: 100%;
  height: 100%;
}

.facebook-screenshot,
.yelp-screenshot,
.trustpilot-screenshot,
.verifiedmovers-screenshot,
.greatguys-screenshot,
.chamber-screenshot {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.google-overlay,
.facebook-overlay,
.yelp-overlay,
.trustpilot-overlay,
.verifiedmovers-overlay,
.greatguys-overlay,
.chamber-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.review-embed-container:hover .google-overlay,
.review-embed-container:hover .facebook-overlay,
.review-embed-container:hover .yelp-overlay,
.review-embed-container:hover .trustpilot-overlay,
.review-embed-container:hover .verifiedmovers-overlay,
.review-embed-container:hover .greatguys-overlay,
.review-embed-container:hover .chamber-overlay {
  opacity: 1;
}

.google-logo,
.facebook-logo,
.yelp-logo,
.trustpilot-logo,
.verifiedmovers-logo,
.greatguys-logo,
.chamber-logo {
  color: white;
  margin-bottom: 1rem;
}

.google-text,
.facebook-text,
.yelp-text,
.trustpilot-text,
.verifiedmovers-text,
.greatguys-text,
.chamber-text {
  color: white;
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
  text-align: center;
}

.google-btn,
.facebook-btn,
.yelp-btn,
.trustpilot-btn,
.verifiedmovers-btn,
.greatguys-btn,
.chamber-btn {
  padding: 0.75rem 1.5rem;
  background-color: var(--primary-600);
  color: white;
  border: none;
  border-radius: 0.5rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.google-btn:hover,
.facebook-btn:hover,
.yelp-btn:hover,
.trustpilot-btn:hover,
.verifiedmovers-btn:hover,
.greatguys-btn:hover,
.chamber-btn:hover {
  background-color: var(--primary-700);
}

.review-cta {
  margin-top: 1.5rem;
  text-align: center;
}

.review-cta .btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  justify-content: center;
}

/* Gallery Section */
.gallery {
  padding: 5rem 0;
  background-color: var(--background);
  transition: background-color 250ms ease;
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

.gallery-item {
  position: relative;
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  aspect-ratio: 3 / 2;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

.gallery-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
  padding: 1.5rem;
  color: white;
  opacity: 0;
  transition: opacity 0.3s ease;
}

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

.gallery-overlay p {
  font-weight: 600;
  font-size: 1.125rem;
}

/* Blog Section */
.blog {
  padding: 5rem 0;
  background-color: var(--background);
  transition: background-color 250ms ease;
}

.blog-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

.blog-card {
  background-color: var(--surface);
  border-radius: 0.75rem;
  overflow: hidden;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  transition: box-shadow 250ms ease, transform 250ms ease;
}

.blog-card:hover {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  transform: translateY(-0.25rem);
}

.blog-card img {
  width: 100%;
  height: 12rem;
  object-fit: cover;
}

.blog-content {
  padding: 1.5rem;
}

.blog-date {
  display: block;
  font-size: 0.875rem;
  color: var(--gold);
  font-weight: 500;
  margin-bottom: 0.5rem;
  transition: color 250ms ease;
}

.blog-content h3 {
  font-size: 1.25rem;
  font-weight: bold;
  color: var(--text);
  margin-bottom: 0.75rem;
  transition: color 250ms ease;
}

.blog-content p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
  line-height: 1.6;
  transition: color 250ms ease;
}

.blog-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--gold);
  text-decoration: none;
  font-weight: 600;
  transition: color 250ms ease;
}

.blog-link:hover {
  color: var(--gold-light);
}

/* Contact Section */
.contact {
  padding: 3rem 0;
  background-color: var(--background);
  transition: background-color 250ms ease;
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: 48rem;
  margin: 0 auto;
}

.contact-form-card {
  background-color: var(--surface);
  border-radius: 1rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  padding: 2rem;
  transition: background-color 250ms ease;
}

.contact-form-card h3 {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--text);
  margin-bottom: 1.5rem;
  transition: color 250ms ease;
}

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

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

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--surface-light);
  border-radius: 0.5rem;
  background-color: var(--surface);
  color: var(--text);
  font-size: 1rem;
  transition: border-color 250ms ease, background-color 250ms ease, color 250ms ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(234, 160, 22, 0.1);
}

.form-group textarea {
  resize: none;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-info-card {
  background-color: var(--surface);
  border-radius: 1rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  padding: 1.5rem;
  transition: background-color 250ms ease;
}

.contact-info-card h3 {
  font-size: 1.25rem;
  font-weight: bold;
  color: var(--text);
  margin-bottom: 1rem;
  transition: color 250ms ease;
}

.contact-item {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.contact-items-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .contact-items-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.contact-icon {
  background-color: var(--gold-light);
  width: 3rem;
  height: 3rem;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background-color 250ms ease;
}

.contact-icon i {
  color: var(--gold-dark);
  font-size: 1.5rem;
  transition: color 250ms ease;
}

.contact-details h4 {
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.25rem;
  transition: color 250ms ease;
}

.contact-details a,
.contact-details p {
  color: var(--gold);
  text-decoration: none;
  transition: color 250ms ease;
}

.contact-details a:hover {
  color: var(--gold-light);
}

.contact-cta {
  background-color: var(--gold);
  color: var(--background);
  border-radius: 1rem;
  padding: 1.5rem;
  text-align: center;
  transition: background-color 250ms ease;
}

.contact-cta h3 {
  font-size: 1.25rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.contact-cta p {
  color: var(--background);
  margin-bottom: 1rem;
  font-size: 0.875rem;
}

.contact-cta .btn-primary {
  background-color: var(--surface);
  color: var(--gold);
  border: 2px solid var(--gold);
}

.contact-cta .btn-primary:hover {
  background-color: var(--gold);
  color: var(--background);
}

.cta-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  justify-content: center;
}

@media (min-width: 640px) {
  .cta-buttons {
    flex-direction: row;
  }
}

/* Footer */
.footer {
  background-color: var(--surface);
  color: var(--text);
  padding: 3rem 0;
  transition: background-color 250ms ease;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .footer-content {
    grid-template-columns: repeat(3, 1fr);
    align-items: start;
  }
  
  .footer-section:nth-child(1) {
    grid-column: 1;
    grid-row: 1 / 3;
  }
  
  .footer-section:nth-child(2) {
    grid-column: 2;
    grid-row: 1;
  }
  
  .footer-section:nth-child(3) {
    grid-column: 2;
    grid-row: 2;
  }
  
  .footer-section:nth-child(4) {
    grid-column: 3;
    grid-row: 1 / 3;
  }
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.footer-logo-img {
  max-height: 3rem;
  width: auto;
}

.footer-logo h3 {
  font-size: 1.25rem;
  font-weight: bold;
}

.footer-section p {
  color: #9ca3af;
  margin-bottom: 1rem;
}

.footer-section h4 {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

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

.footer-section li {
  color: #9ca3af;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-section li i {
  color: var(--primary-400);
}

.footer-bottom {
  border-top: 1px solid #374151;
  padding-top: 2rem;
  text-align: center;
  color: #9ca3af;
}

/* Smooth Scrolling */
html {
  scroll-behavior: smooth;
}

/* Console Modal */
.console-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.console-modal.active {
  display: flex;
}

.console-content {
  background-color: #1a1a1a;
  border-radius: 0.5rem;
  width: 90%;
  max-width: 800px;
  max-height: 80vh;
  overflow: hidden;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5);
  border: 1px solid #333;
}

.console-header {
  background-color: #2d2d2d;
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #333;
}

.console-title {
  color: #e0e0e0;
  font-weight: 600;
  font-size: 1rem;
}

.console-close {
  background: none;
  border: none;
  color: #e0e0e0;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.25rem;
  transition: background-color 0.2s ease;
}

.console-close:hover {
  background-color: #444;
}

.console-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-height: 300px;
}

.console-bottom-row {
  display: flex;
  gap: 1rem;
}

.console-ollama {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 1rem;
  background-color: #252525;
  border-radius: 0.5rem;
  border: 1px solid #333;
  flex: 1;
  max-width: 50%;
}

.ollama-label {
  color: var(--gold);
  font-weight: 600;
  font-size: 1rem;
}

.code-display {
  background-color: #0d0d0d;
  border-radius: 0.25rem;
  padding: 0.5rem;
  font-family: 'Courier New', monospace;
  color: #00ff00;
  font-size: 0.75rem;
  height: 60px;
  line-height: 20px;
  overflow: hidden;
  border: 1px solid #333;
  white-space: pre-wrap;
  word-break: break-all;
  width: 100%;
  position: relative;
}

.code-display.reading {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: center;
  text-align: left;
  white-space: nowrap;
  gap: 1rem;
  padding-left: 1rem;
}

.reading-text {
  color: var(--gold);
  font-size: 0.875rem;
}

.loading-bar {
  width: 80%;
  height: 4px;
  background-color: #333;
  border-radius: 2px;
  overflow: hidden;
}

.loading-bar-fill {
  height: 100%;
  background-color: var(--gold);
  width: 0%;
  animation: loading 2s ease-in-out;
}

@keyframes loading {
  0% {
    width: 0%;
  }
  100% {
    width: 100%;
  }
}

/* Stopwatch Animation */
.stopwatch {
  font-size: 2rem;
  color: var(--gold);
  font-family: 'Courier New', monospace;
  animation: pulse 1s infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

/* Loading Circle Animation */
.loading-circle {
  width: 40px;
  height: 40px;
  border: 4px solid #333;
  border-top: 4px solid var(--gold);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Laughing Emoji Pop-up */
.laughing-emoji {
  position: fixed;
  font-size: 2rem;
  pointer-events: none;
  z-index: 3000;
  animation: popUp 1s ease-out forwards;
}

@keyframes popUp {
  0% {
    opacity: 0;
    transform: scale(0) rotate(0deg);
  }
  50% {
    opacity: 1;
    transform: scale(1.2) rotate(180deg);
  }
  100% {
    opacity: 0;
    transform: scale(0.5) rotate(360deg);
  }
}

.console-output {
  flex: 1;
  background-color: #0d0d0d;
  border-radius: 0.5rem;
  padding: 1rem;
  font-family: 'Courier New', monospace;
  color: #00ff00;
  overflow-y: auto;
  border: 1px solid #333;
  pointer-events: none;
  user-select: none;
}

.console-line {
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.console-line.cursor {
  animation: cursorBlink 1s infinite;
}

@keyframes cursorBlink {
  0%, 50% {
    opacity: 1;
  }
  51%, 100% {
    opacity: 0;
  }
}

.console-input-container {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem;
  background-color: #0d0d0d;
  border-radius: 0.5rem;
  border: 1px solid #333;
  flex: 1;
}

.console-prompt {
  color: #00ff00;
  font-family: 'Courier New', monospace;
  font-weight: bold;
  font-size: 1rem;
}

.console-input {
  flex: 1;
  background: transparent;
  border: none;
  color: #00ff00;
  font-family: 'Courier New', monospace;
  font-size: 0.9rem;
  outline: none;
}

.console-input::placeholder {
  color: #006600;
}

/* Footer link styling */
.footer-section a {
  color: #9ca3af;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: color 0.2s ease;
}

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

/* Toast Notification */
.toast {
  display: none;
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background-color: var(--surface);
  border: 1px solid var(--gold);
  border-radius: 0.5rem;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5);
  max-width: 400px;
  z-index: 2000;
  animation: slideIn 0.3s ease;
}

.toast.active {
  display: block;
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.toast-content {
  padding: 1.5rem;
}

.toast-content h3 {
  color: var(--gold);
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.toast-content p {
  color: var(--text);
  font-size: 0.875rem;
  line-height: 1.5;
  margin-bottom: 0.5rem;
}

.toast-content a {
  color: var(--gold);
  text-decoration: none;
  transition: color 0.2s ease;
}

.toast-content a:hover {
  color: var(--gold-light);
  text-decoration: underline;
}

.toast-close {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 1.25rem;
  cursor: pointer;
  padding: 0.25rem;
  width: 1.5rem;
  height: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.25rem;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.toast-close:hover {
  background-color: var(--surface-light);
  color: var(--text);
}

/* Gallery Loading Message */
.loading-message {
  text-align: center;
  padding: 2rem;
  color: var(--text-color);
  font-size: 1.1rem;
  grid-column: 1 / -1;
}

/* Blog Error Message */
.error-message {
  text-align: center;
  padding: 2rem;
  color: #e65100;
  font-size: 1.1rem;
  background: #fff3e0;
  border-radius: 0.5rem;
  margin: 2rem 0;
}

.error-message i {
  margin-right: 0.5rem;
}

/* No Posts Message */
.no-posts {
  text-align: center;
  padding: 3rem;
  color: var(--text-secondary);
  font-size: 1.2rem;
  grid-column: 1 / -1;
}

/* Lightbox Modal */
.lightbox-modal {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.9);
  justify-content: center;
  align-items: center;
}

.lightbox-modal.active {
  display: flex;
}

.lightbox-content {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  border-radius: 0.5rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 35px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.3s ease;
  z-index: 10001;
}

.lightbox-close:hover {
  color: #bbb;
}

/* Admin Dashboard Styles */
.dashboard-body {
  background-color: var(--background);
  color: var(--text);
  font-family: var(--font-main);
  margin: 0;
  padding: 0;
  min-height: 100vh;
}

.dashboard-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem;
}

.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.dashboard-header h1 {
  color: var(--gold);
  font-size: 2rem;
  margin: 0;
}

.logout-btn {
  background-color: var(--gold);
  color: var(--background);
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.logout-btn:hover {
  background-color: var(--gold-light);
}

.dashboard-content {
  margin-top: 2rem;
}

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

.dashboard-card {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  padding: 1.5rem;
}

.dashboard-card h2 {
  color: var(--gold);
  font-size: 1.25rem;
  margin-top: 0;
  margin-bottom: 1rem;
}

.stat {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
}

.stat:last-child {
  border-bottom: none;
}

.stat-number {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--gold);
}

.stat-label {
  color: var(--text-secondary);
}

.status-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
}

.status-item:last-child {
  border-bottom: none;
}

.status-label {
  color: var(--text);
}

.status {
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  font-size: 0.875rem;
  font-weight: 500;
}

.status-online {
  background-color: rgba(0, 255, 0, 0.1);
  color: #00ff00;
}

.status-offline {
  background-color: rgba(255, 0, 0, 0.1);
  color: #ff0000;
}

.activity-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.activity-list li {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
}

.activity-list li:last-child {
  border-bottom: none;
}

.action-btn {
  display: block;
  width: 100%;
  background-color: var(--surface-light);
  color: var(--text);
  border: 1px solid var(--border);
  padding: 0.75rem;
  border-radius: 0.5rem;
  margin-bottom: 0.75rem;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.action-btn:hover {
  background-color: var(--gold);
  color: var(--background);
  border-color: var(--gold);
}

.action-btn:last-child {
  margin-bottom: 0;
}

.dashboard-access {
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: var(--surface-light);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
}

.dashboard-access label {
  display: block;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 0.75rem;
  font-size: 1rem;
}

.dashboard-select {
  width: 100%;
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  padding: 0.75rem;
  color: var(--text);
  font-size: 1rem;
  cursor: pointer;
}

.dashboard-select:focus {
  outline: none;
  border-color: var(--gold);
}

/* Modal Styles */
.info-modal {
  display: none;
  position: fixed;
  z-index: 5000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
  align-items: center;
  justify-content: center;
}

.info-modal.active {
  display: flex;
}

.info-modal-content {
  background: var(--surface-light);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  padding: 2rem;
  max-width: 400px;
  width: 90%;
  text-align: center;
}

.info-modal-content h3 {
  color: var(--gold);
  margin-top: 0;
  margin-bottom: 1rem;
}

.info-modal-content p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

.info-modal-btn {
  background: var(--surface-light);
  color: var(--text);
  border: 1px solid var(--border);
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.info-modal-btn:hover {
  background: var(--gold);
  color: var(--background);
  border-color: var(--gold);
}

/* Responsive Utilities */
@media (max-width: 640px) {
  .section-header h2 {
    font-size: 2rem;
  }
  
  .hero-text h1 {
    font-size: 2rem;
  }
  
  .console-body {
    flex-direction: column;
  }
  
  .console-ollama {
    flex-direction: row;
    min-width: auto;
    width: 100%;
    justify-content: center;
  }
}
