/* ==========================================================================
   TireTrading.eu - Premium Modern Stylesheet (WOW Effect)
   ========================================================================== */

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

/* --- CSS Variables & Design Tokens --- */
:root {
  /* Colors */
  --primary: #fdbe00;
  --primary-hover: #e5ab00;
  --primary-light: #fff8e1;
  --primary-glow: rgba(253, 190, 0, 0.25);
  
  --dark-900: #0a0f16;
  --dark-800: #0f1722;
  --dark-700: #141e2c;
  --dark-600: #1a2738;
  --dark-border: rgba(255, 255, 255, 0.08);
  
  --text-dark: #0f172a;
  --text-body: #334155;
  --text-muted: #64748b;
  --text-light: #f8fafc;
  
  --bg-page: #f8fafc;
  --bg-card: #ffffff;
  --border-color: #e2e8f0;
  
  /* Gradients */
  --gradient-gold: linear-gradient(135deg, #ffd700 0%, #fdbe00 50%, #d49b00 100%);
  --gradient-dark: linear-gradient(180deg, rgba(10, 15, 22, 0.82) 0%, rgba(15, 23, 34, 0.94) 100%);
  --gradient-card-dark: linear-gradient(145deg, rgba(26, 39, 56, 0.7) 0%, rgba(15, 23, 34, 0.9) 100%);
  
  /* Typography */
  --font-heading: 'Oswald', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-serif: 'Merriweather', Georgia, serif;
  
  /* Layout & Effects */
  --max-width: 1240px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 16px 40px rgba(15, 23, 42, 0.12);
  --shadow-glow: 0 0 35px var(--primary-glow);
  
  --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);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-body);
  background-color: var(--bg-page);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

ul {
  list-style: none;
}

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

/* --- Typography Helpers --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-dark);
  letter-spacing: 0.5px;
}

.text-gold {
  color: var(--primary) !important;
  font-weight: 600;
}

.section-header {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 3.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.section-title {
  font-size: 2.5rem;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  position: relative;
  text-align: center;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: var(--gradient-gold);
  margin: 0.75rem auto 0;
  border-radius: var(--radius-full);
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.7;
  text-align: center;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 1.8rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: var(--transition-normal);
}

.btn-primary {
  background: var(--gradient-gold);
  color: var(--dark-900);
  box-shadow: 0 4px 15px rgba(253, 190, 0, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(253, 190, 0, 0.45);
  color: var(--dark-900);
}

.btn-outline-white {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-light);
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(8px);
}

.btn-outline-white:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
  color: var(--text-light);
}

.btn-sm {
  padding: 0.5rem 1.1rem;
  font-size: 0.85rem;
}

/* --- Site Header & Navbar (Glassmorphic) --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  transition: var(--transition-normal);
}

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow-md);
  border-bottom-color: var(--border-color);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
}

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

.brand-logo img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(253, 190, 0, 0.3));
  transition: var(--transition-normal);
}

.brand-logo:hover img {
  transform: rotate(-5deg) scale(1.05);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--dark-900);
  line-height: 1.1;
  letter-spacing: 0.5px;
}

.brand-tagline {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.nav-wrapper {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-dark);
  padding: 0.5rem 0;
  position: relative;
  transition: var(--transition-normal);
}

.nav-link:hover {
  color: var(--primary-hover);
}

.nav-link.active {
  font-weight: 700;
  color: var(--dark-900);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-gold);
  border-radius: 2px;
  transition: var(--transition-normal);
}

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

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--dark-900);
}

.nav-toggle svg {
  width: 28px;
  height: 28px;
  display: block;
}

/* --- Hero Section (WOW Effect) --- */
.hero-section {
  position: relative;
  background: var(--dark-900);
  background-image: var(--gradient-dark), url('../images/hero-bg.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: var(--text-light);
  padding: 7.5rem 1.5rem 9rem;
  text-align: center;
  overflow: hidden;
}

/* Glowing background ambient lights */
.hero-section::before {
  content: '';
  position: absolute;
  top: -10%;
  left: 50%;
  transform: translateX(-50%);
  width: 650px;
  height: 400px;
  background: radial-gradient(circle, rgba(253, 190, 0, 0.18) 0%, rgba(253, 190, 0, 0) 70%);
  pointer-events: none;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 860px;
  margin: 0 auto;
}

.hero-title {
  font-size: 3.8rem;
  color: var(--text-light);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  line-height: 1.05;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  animation: fadeInUp 0.8s ease 0.1s backwards;
}

.hero-title span {
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.6rem;
  font-weight: 500;
  color: #e2e8f0;
  margin-bottom: 1.25rem;
  line-height: 1.35;
  animation: fadeInUp 0.8s ease 0.2s backwards;
}

.hero-tagline {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--primary);
  margin-bottom: 2.5rem;
  animation: fadeInUp 0.8s ease 0.3s backwards;
}

.hero-actions {
  display: flex;
  gap: 1.25rem;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease 0.4s backwards;
}

/* --- Floating Stats Bar (WOW Effect) --- */
.stats-bar-wrapper {
  position: relative;
  margin-top: -4.5rem;
  z-index: 10;
  padding: 0 1.5rem;
}

.stats-bar {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(226, 232, 240, 0.8);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 2rem 1.5rem;
  gap: 1.5rem;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 0 1rem;
  border-right: 1px solid var(--border-color);
}

.stat-item:last-child {
  border-right: none;
}

.stat-icon {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-sm);
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.5rem;
}

.stat-icon svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--dark-900);
  line-height: 1.1;
}

.stat-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* --- Section Padding --- */
.section-padding {
  padding: 6rem 0;
}

.section-padding-sm {
  padding: 4rem 0;
}

/* --- Chi Siamo Overview Section --- */
.overview-intro-box {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  max-width: 900px;
  margin: 0 auto 3rem;
  text-align: center;
  position: relative;
}

.overview-intro-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 3px;
  background: var(--gradient-gold);
  border-radius: 2px;
}

.overview-intro-text {
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--text-dark);
  line-height: 1.8;
}

.overview-intro-sub {
  margin-top: 1rem;
  color: var(--text-body);
  font-size: 1rem;
}

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

.mission-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 2.5rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  position: relative;
  overflow: hidden;
  transition: var(--transition-normal);
}

.mission-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--gradient-gold);
  transition: var(--transition-normal);
}

.mission-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(253, 190, 0, 0.4);
}

.mission-card:hover::before {
  width: 8px;
}

.mission-card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.mission-card-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.mission-card-icon svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.mission-card h3 {
  font-size: 1.45rem;
  text-transform: uppercase;
  color: var(--dark-900);
}

.mission-card p {
  color: var(--text-body);
  line-height: 1.75;
}

.mission-card p + p {
  margin-top: 0.85rem;
}

/* --- La Nostra Visione (Cards WOW Effect) --- */
.vision-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.vision-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  transition: var(--transition-normal);
  position: relative;
}

.vision-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(253, 190, 0, 0.4);
}

.vision-card-header {
  padding: 1.5rem 1.5rem 0.5rem;
}

.vision-card-header h3 {
  font-size: 1.3rem;
  text-transform: uppercase;
  color: var(--dark-900);
}

.vision-card-img {
  padding: 0.5rem 1.5rem;
  height: 155px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.vision-card-img img {
  border-radius: var(--radius-sm);
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
}

.vision-card:hover .vision-card-img img {
  transform: scale(1.06);
}

.vision-card-img.brands-img img {
  object-fit: contain;
  background: #f8fafc;
  padding: 0.5rem;
  border: 1px solid var(--border-color);
}

.vision-card-body {
  padding: 1.25rem 1.5rem 1.75rem;
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--text-body);
  flex-grow: 1;
}

.vision-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.vision-list li {
  position: relative;
  padding-left: 1.4rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-dark);
}

.vision-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 800;
  font-size: 0.9rem;
}

/* --- I Nostri Servizi (Dark Glass WOW Effect) --- */
.services-section {
  position: relative;
  background: var(--dark-900);
  background-image: var(--gradient-dark), url('../images/services-bg.jpg');
  background-size: cover;
  background-position: center;
  color: var(--text-light);
  padding: 6.5rem 0;
}

.services-section .section-title {
  color: var(--text-light);
}

.services-section .section-subtitle {
  color: #94a3b8;
}

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

.service-card {
  background: var(--gradient-card-dark);
  border: 1px solid var(--dark-border);
  border-radius: var(--radius-md);
  padding: 2.5rem 2rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: var(--transition-normal);
}

.service-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 3px;
  background: var(--gradient-gold);
  transition: var(--transition-normal);
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: rgba(253, 190, 0, 0.4);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4), 0 0 20px rgba(253, 190, 0, 0.15);
}

.service-card:hover::after {
  width: 80%;
}

.service-icon-box {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: rgba(253, 190, 0, 0.1);
  border: 1px solid rgba(253, 190, 0, 0.3);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  transition: var(--transition-normal);
}

.service-card:hover .service-icon-box {
  background: var(--gradient-gold);
  color: var(--dark-900);
  transform: scale(1.1);
  box-shadow: 0 0 25px rgba(253, 190, 0, 0.4);
}

.service-icon-box svg {
  width: 32px;
  height: 32px;
  fill: currentColor;
}

.service-title {
  font-size: 1.35rem;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 0.75rem;
}

.service-desc {
  font-size: 0.92rem;
  color: #94a3b8;
  line-height: 1.6;
}

/* --- Page Header Banner (Chi siamo & Contatti) --- */
.page-banner {
  background: var(--dark-900);
  background-image: var(--gradient-dark), url('../images/hero-bg.jpg');
  background-size: cover;
  background-position: center;
  color: var(--text-light);
  padding: 4.5rem 1.5rem;
  text-align: center;
  position: relative;
}

.page-banner .section-title {
  color: var(--text-light);
  margin-bottom: 0.5rem;
}

/* --- Team Cards (Chi Siamo Page) --- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
  max-width: 1000px;
  margin: 0 auto;
}

.team-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  padding: 2.75rem 2.25rem;
  display: flex;
  flex-direction: column;
  transition: var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.team-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--gradient-gold);
}

.team-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.team-card-header {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.team-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--dark-800);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  border: 2px solid var(--primary);
}

.team-name {
  font-size: 1.5rem;
  text-transform: uppercase;
  color: var(--dark-900);
}

.team-role {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.team-details {
  color: var(--text-body);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.team-actions {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-color);
}

.team-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--dark-900);
  font-size: 0.9rem;
  font-weight: 600;
  word-break: break-all;
}

.team-link svg {
  width: 18px;
  height: 18px;
  fill: var(--primary);
  flex-shrink: 0;
}

.team-link:hover {
  color: var(--primary-hover);
}

/* --- Contatti Page --- */
.contacts-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 2.5rem;
  align-items: stretch;
}

.contact-info-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  padding: 3rem 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.contact-info-card h3 {
  font-size: 1.6rem;
  text-transform: uppercase;
  margin-bottom: 2rem;
  color: var(--dark-900);
}

.contact-detail-list {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.contact-detail-item {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
}

.contact-detail-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-detail-icon svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.contact-detail-text h4 {
  font-size: 0.82rem;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  margin-bottom: 0.25rem;
}

.contact-detail-text p, 
.contact-detail-text a {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--dark-900);
}

.contact-detail-text a:hover {
  color: var(--primary-hover);
}

.map-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  height: 100%;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.map-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: var(--transition-slow);
}

/* --- Credits Page --- */
.credits-intro-box {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 3rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  max-width: 900px;
  margin: 0 auto 3.5rem;
  position: relative;
}

.credits-intro-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 140px;
  height: 3px;
  background: var(--gradient-gold);
  border-radius: 2px;
}

.credits-intro-box h2 {
  font-size: 1.6rem;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
  color: var(--dark-900);
}

.credits-intro-box p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-body);
}

.credits-intro-box p + p {
  margin-top: 1rem;
}

.credits-intro-box a {
  color: var(--dark-900);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: var(--primary);
  text-underline-offset: 4px;
  transition: var(--transition-fast);
}

.credits-intro-box a:hover {
  color: var(--primary-hover);
}

.credits-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

.credits-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 2.5rem 2.25rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  position: relative;
  overflow: hidden;
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.credits-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--gradient-gold);
  transition: var(--transition-normal);
}

.credits-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(253, 190, 0, 0.4);
}

.credits-card:hover::before {
  width: 8px;
}

.credits-card h3 {
  font-size: 1.4rem;
  text-transform: uppercase;
  color: var(--dark-900);
  margin-bottom: 1rem;
}

.credits-card p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-body);
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.credits-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-color);
}

.credits-list li {
  position: relative;
  padding-left: 1.4rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-dark);
}

.credits-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 800;
}

.credits-list a {
  color: var(--dark-900);
  font-weight: 600;
  transition: var(--transition-fast);
}

/* --- 404 Error Page --- */
.error-404-section {
  min-height: 72vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  background: var(--dark-900);
  background-image: var(--gradient-dark), url('../images/hero-bg.jpg');
  background-size: cover;
  background-position: center;
  color: var(--text-light);
  padding: 6rem 1.5rem;
  overflow: hidden;
}

.error-404-section::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 550px;
  height: 380px;
  background: radial-gradient(circle, rgba(253, 190, 0, 0.2) 0%, rgba(253, 190, 0, 0) 70%);
  pointer-events: none;
  z-index: 1;
}

.error-404-content {
  position: relative;
  z-index: 2;
  max-width: 650px;
  margin: 0 auto;
}

.error-404-number {
  font-family: var(--font-heading);
  font-size: 8.5rem;
  font-weight: 800;
  line-height: 1;
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  margin-bottom: 0.5rem;
  letter-spacing: 4px;
}

.error-404-title {
  font-size: 2.2rem;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 1rem;
}

.error-404-desc {
  font-size: 1.1rem;
  color: #cbd5e1;
  line-height: 1.7;
  margin-bottom: 2.5rem;
}

.error-404-actions {
  display: flex;
  gap: 1.25rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* --- Elegant Horizontal Multi-Column Footer --- */
.site-footer {
  background: var(--dark-900);
  border-top: 3px solid var(--primary);
  color: #94a3b8;
  padding: 4.5rem 0 0;
  position: relative;
}

.footer-top-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 4rem;
  padding-bottom: 3.5rem;
  border-bottom: 1px solid var(--dark-border);
}

.footer-col-brand .brand-logo {
  margin-bottom: 1.25rem;
}

.footer-col-brand .brand-name {
  color: var(--text-light);
}

.footer-col-brand .brand-tagline {
  color: var(--primary);
}

.footer-desc {
  font-size: 0.95rem;
  line-height: 1.75;
  color: #94a3b8;
  max-width: 520px;
}

.footer-title {
  font-size: 1.15rem;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 1.5rem;
  letter-spacing: 1px;
  position: relative;
  padding-bottom: 0.6rem;
}

.footer-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--gradient-gold);
}

.footer-contact-list {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  font-size: 0.95rem;
  color: #cbd5e1;
}

.footer-contact-item svg {
  width: 18px;
  height: 18px;
  fill: var(--primary);
  flex-shrink: 0;
  margin-top: 3px;
}

.footer-contact-item a {
  color: #cbd5e1;
}

.footer-contact-item a:hover {
  color: var(--primary);
}

/* Footer Bottom Bar */
.footer-bottom {
  padding: 1.75rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: #64748b;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom a {
  color: #94a3b8;
  transition: var(--transition-normal);
}

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

/* --- Scroll To Top Button --- */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gradient-gold);
  color: var(--dark-900);
  border: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 99;
  opacity: 0;
  visibility: hidden;
  transform: translateY(15px);
  transition: var(--transition-normal);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(253, 190, 0, 0.5);
}

.back-to-top svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* --- Animations & Keyframes --- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(25px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Scroll reveal classes */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* --- Responsive Styles --- */
@media (max-width: 1024px) {
  .hero-title {
    font-size: 3rem;
  }
  
  .stats-bar {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
  
  .stat-item:nth-child(2) {
    border-right: none;
  }
  
  .vision-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .footer-top-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

@media (max-width: 768px) {
  html {
    font-size: 15px;
  }
  
  .nav-toggle {
    display: block;
  }
  
  .nav-wrapper {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: var(--bg-card);
    flex-direction: column;
    padding: 1.5rem;
    box-shadow: var(--shadow-lg);
    border-top: 1px solid var(--border-color);
    gap: 1.5rem;
    align-items: flex-start;
  }
  
  .nav-wrapper.open {
    display: flex;
  }
  
  .nav-menu {
    flex-direction: column;
    width: 100%;
    align-items: flex-start;
    gap: 1rem;
  }
  
  .nav-link {
    width: 100%;
    padding: 0.5rem 0;
  }
  
  .hero-section {
    padding: 5rem 1rem 7rem;
  }
  
  .hero-title {
    font-size: 2.4rem;
  }
  
  .hero-subtitle {
    font-size: 1.25rem;
  }
  
  .stats-bar-wrapper {
    margin-top: -3.5rem;
  }
  
  .stats-bar {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    padding: 1.5rem;
  }
  
  .stat-item {
    border-right: none;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
  }
  
  .stat-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }
  
  .mission-grid,
  .vision-grid,
  .services-grid,
  .team-grid,
  .contacts-grid,
  .credits-grid,
  .footer-top-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .contact-info-card {
    padding: 1.5rem 1rem;
  }
  
  .section-padding {
    padding: 4rem 0;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}
