/* ============================================
   HRM Freight | HRM Logistics Inc
   Professional Stylesheet
   ============================================ */

/* --- Custom Properties --- */
:root {
  --primary-dark: #060f1f;
  --primary: #0a1628;
  --primary-medium: #132240;
  --primary-light: #1e3a5f;
  --accent: #c9a84c;
  --accent-light: #d4b85a;
  --accent-dark: #b8962e;
  --accent-subtle: rgba(201, 168, 76, 0.08);
  --accent-glow: rgba(201, 168, 76, 0.15);
  --white: #ffffff;
  --light: #f0f4f8;
  --light-alt: #e4ecf5;
  --gray-100: #f7fafc;
  --gray-200: #edf2f7;
  --gray-300: #e2e8f0;
  --gray-400: #cbd5e0;
  --gray-500: #a0aec0;
  --gray-600: #718096;
  --gray-700: #4a5568;
  --gray-800: #2d3748;
  --text: #2d3748;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --container: 1200px;
  --container-narrow: 900px;
  --shadow-sm: 0 1px 3px rgba(10, 22, 40, 0.06);
  --shadow: 0 4px 20px rgba(10, 22, 40, 0.08);
  --shadow-lg: 0 12px 40px rgba(10, 22, 40, 0.1);
  --shadow-xl: 0 24px 60px rgba(10, 22, 40, 0.14);
  --radius: 12px;
  --radius-lg: 20px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-dark); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--accent); }
ul { list-style: none; }

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.25;
  color: var(--primary);
}
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); }
h4 { font-size: 1.15rem; }
p { margin-bottom: 1rem; color: var(--gray-700); }

/* --- Container --- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.container-narrow {
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Section --- */
.section {
  padding: 100px 0;
}
.section-alt {
  background: var(--light);
}
.section-dark {
  background: var(--primary);
}
.section-dark h2,
.section-dark h3,
.section-dark .section-subtitle {
  color: var(--white);
}
.section-dark p {
  color: var(--gray-400);
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}
.section-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--accent);
  margin-bottom: 16px;
}
.section-label::before,
.section-label::after {
  content: '';
  display: inline-block;
  width: 32px;
  height: 1.5px;
  background: var(--accent);
  vertical-align: middle;
  margin: 0 14px;
}
.section-title {
  margin-bottom: 16px;
}
.section-subtitle {
  font-size: 1.1rem;
  color: var(--gray-600);
  max-width: 640px;
  margin: 0 auto;
  font-weight: 400;
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 14px 36px;
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 50px;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid transparent;
  text-align: center;
  letter-spacing: 0.3px;
  line-height: 1.4;
}
.btn-primary {
  background: var(--accent);
  color: var(--primary-dark);
  border-color: var(--accent);
}
.btn-primary:hover {
  background: var(--accent-light);
  border-color: var(--accent-light);
  color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--accent-glow);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.35);
}
.btn-outline:hover {
  background: var(--white);
  color: var(--primary);
  border-color: var(--white);
  transform: translateY(-2px);
}
.btn-outline-dark {
  background: transparent;
  color: var(--primary);
  border-color: var(--gray-400);
}
.btn-outline-dark:hover {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
  transform: translateY(-2px);
}
.btn-group {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 18px 0;
  transition: var(--transition);
}
.nav.scrolled {
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 10px 0;
  box-shadow: 0 1px 20px rgba(10,22,40,0.08);
}
.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.5px;
}
.nav.scrolled .nav-logo {
  color: var(--primary);
}
.nav-logo span {
  color: var(--accent);
}
.nav-logo-img {
  width: 36px;
  height: 36px;
  background: var(--accent);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 1rem;
  color: var(--primary-dark);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255,255,255,0.8);
  position: relative;
  padding: 4px 0;
}
.nav.scrolled .nav-links a {
  color: var(--gray-700);
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: var(--transition);
}
.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}
.nav-links a:hover {
  color: var(--accent);
}
.nav.scrolled .nav-links a:hover {
  color: var(--accent-dark);
}
.nav-links .btn {
  padding: 10px 24px;
  font-size: 0.85rem;
  margin-left: 8px;
}

/* Mobile Nav Toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  width: 32px;
  height: 24px;
  position: relative;
  cursor: pointer;
  z-index: 1001;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: '';
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}
.nav.scrolled .nav-toggle span,
.nav.scrolled .nav-toggle span::before,
.nav.scrolled .nav-toggle span::after {
  background: var(--primary);
}
.nav-toggle span {
  top: 50%;
  transform: translateY(-50%);
}
.nav-toggle span::before { top: -8px; }
.nav-toggle span::after { top: 8px; }
.nav-toggle.active span {
  background: transparent;
}
.nav-toggle.active span::before {
  top: 0;
  transform: rotate(45deg);
}
.nav-toggle.active span::after {
  top: 0;
  transform: rotate(-45deg);
}

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 15% 50%, rgba(30, 58, 95, 0.5) 0%, transparent 60%),
    radial-gradient(ellipse at 85% 30%, rgba(201, 168, 76, 0.06) 0%, transparent 50%),
    linear-gradient(160deg, var(--primary-dark) 0%, var(--primary) 40%, var(--primary-medium) 100%);
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.015) 1px, transparent 1px);
  background-size: 60px 60px;
}
.hero-particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.hero-particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--accent);
  border-radius: 50%;
  opacity: 0.3;
  animation: float-particle 12s infinite ease-in-out;
}
@keyframes float-particle {
  0%, 100% { transform: translateY(0) scale(1); opacity: 0.2; }
  25% { opacity: 0.5; }
  50% { transform: translateY(-120px) scale(1.5); opacity: 0.1; }
  75% { opacity: 0.3; }
}
.hero-particle:nth-child(1) { top: 20%; left: 10%; animation-delay: 0s; animation-duration: 14s; }
.hero-particle:nth-child(2) { top: 60%; left: 25%; animation-delay: 2s; animation-duration: 11s; width: 6px; height: 6px; }
.hero-particle:nth-child(3) { top: 30%; left: 50%; animation-delay: 4s; animation-duration: 16s; }
.hero-particle:nth-child(4) { top: 70%; left: 70%; animation-delay: 1s; animation-duration: 13s; width: 3px; height: 3px; }
.hero-particle:nth-child(5) { top: 40%; left: 85%; animation-delay: 3s; animation-duration: 15s; width: 5px; height: 5px; }
.hero-particle:nth-child(6) { top: 80%; left: 40%; animation-delay: 5s; animation-duration: 12s; }

.hero .container {
  position: relative;
  z-index: 2;
  width: 100%;
}
.hero-content {
  max-width: 720px;
}
.hero-badge {
  display: inline-block;
  padding: 8px 20px;
  background: rgba(201, 168, 76, 0.12);
  border: 1px solid rgba(201, 168, 76, 0.25);
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--accent-light);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 28px;
}
.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4rem);
  color: var(--white);
  margin-bottom: 24px;
  line-height: 1.1;
  letter-spacing: -1px;
}
.hero h1 .highlight {
  color: var(--accent);
}
.hero p {
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  color: var(--gray-400);
  margin-bottom: 36px;
  max-width: 600px;
  line-height: 1.8;
}
.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 50px;
}
.hero-stats {
  display: flex;
  gap: 50px;
  flex-wrap: wrap;
  padding-top: 40px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.hero-stat h3 {
  font-size: 1.8rem;
  color: var(--accent);
  margin-bottom: 4px;
}
.hero-stat p {
  font-size: 0.85rem;
  color: var(--gray-500);
  margin-bottom: 0;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* --- About --- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.about-visual {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  background:
    radial-gradient(circle at 30% 40%, rgba(201, 168, 76, 0.08) 0%, transparent 50%),
    var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
}
.about-visual-content {
  text-align: center;
  padding: 40px;
}
.about-visual-icon {
  font-size: 3.5rem;
  color: var(--accent);
  margin-bottom: 20px;
}
.about-visual h3 {
  color: var(--white);
  margin-bottom: 8px;
}
.about-visual p {
  color: var(--gray-500);
  font-size: 0.9rem;
  margin-bottom: 0;
}
.about-text h2 {
  margin-bottom: 20px;
}
.about-text p {
  margin-bottom: 16px;
}
.about-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 28px;
}
.about-detail-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.about-detail-icon {
  width: 28px;
  height: 28px;
  background: var(--accent-subtle);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-dark);
  font-size: 0.75rem;
  flex-shrink: 0;
  margin-top: 2px;
}
.about-detail-item h4 {
  font-size: 0.95rem;
  margin-bottom: 2px;
}
.about-detail-item p {
  font-size: 0.85rem;
  color: var(--gray-600);
  margin-bottom: 0;
}

/* --- Services --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.service-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius);
  padding: 40px 32px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--transition);
}
.service-card:hover {
  background: rgba(255,255,255,0.07);
  border-color: rgba(201, 168, 76, 0.2);
  transform: translateY(-4px);
}
.service-card:hover::before {
  transform: scaleX(1);
}
.service-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: rgba(201, 168, 76, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--accent);
  margin-bottom: 24px;
  transition: var(--transition);
}
.service-card:hover .service-icon {
  background: rgba(201, 168, 76, 0.18);
  transform: scale(1.05);
}
.service-card h3 {
  color: var(--white);
  margin-bottom: 12px;
  font-size: 1.2rem;
}
.service-card p {
  color: var(--gray-500);
  font-size: 0.92rem;
  margin-bottom: 0;
  line-height: 1.7;
}
.service-card .service-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  opacity: 0;
  transform: translateY(8px);
  transition: var(--transition);
}
.service-card:hover .service-link {
  opacity: 1;
  transform: translateY(0);
}

/* --- Industries --- */
.industries-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.industry-item {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 28px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: var(--transition);
}
.industry-item:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.industry-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--accent-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-dark);
  font-size: 1.1rem;
  flex-shrink: 0;
}
.industry-item h4 {
  font-size: 0.95rem;
  margin-bottom: 2px;
}
.industry-item p {
  font-size: 0.8rem;
  color: var(--gray-600);
  margin-bottom: 0;
}

/* --- Stats --- */
.stats {
  background: var(--primary);
  padding: 80px 0;
  position: relative;
}
.stats::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(201, 168, 76, 0.05) 0%, transparent 60%);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  text-align: center;
  position: relative;
  z-index: 1;
}
.stat-item {
  padding: 20px;
}
.stat-number {
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 8px;
}
.stat-label {
  font-size: 0.9rem;
  color: var(--gray-400);
  font-weight: 500;
  letter-spacing: 0.5px;
}

/* --- Why Us --- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}
.why-card {
  display: flex;
  gap: 20px;
  padding: 32px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  transition: var(--transition);
}
.why-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}
.why-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  min-width: 52px;
  background: var(--accent-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-dark);
  font-size: 1.2rem;
}
.why-card h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}
.why-card p {
  font-size: 0.9rem;
  color: var(--gray-600);
  margin-bottom: 0;
}

/* --- Contact --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
}
.contact-info h2 {
  margin-bottom: 20px;
}
.contact-info > p {
  margin-bottom: 36px;
}
.contact-details {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.contact-item {
  display: flex;
  gap: 16px;
}
.contact-icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: 12px;
  background: var(--accent-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-dark);
  font-size: 1.1rem;
}
.contact-item h4 {
  font-size: 0.95rem;
  margin-bottom: 2px;
}
.contact-item p {
  font-size: 0.9rem;
  color: var(--gray-600);
  margin-bottom: 0;
  line-height: 1.5;
}
.contact-form {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow);
}
.contact-form h3 {
  margin-bottom: 24px;
}
.form-group {
  margin-bottom: 20px;
}
.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 6px;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  font-family: var(--font);
  font-size: 0.95rem;
  border: 1.5px solid var(--gray-300);
  border-radius: 8px;
  transition: var(--transition);
  background: var(--white);
  color: var(--text);
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-subtle);
}
.form-group textarea {
  min-height: 120px;
  resize: vertical;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* --- Footer --- */
.footer {
  background: var(--primary-dark);
  padding-top: 80px;
  color: var(--gray-400);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.footer-brand .nav-logo {
  margin-bottom: 16px;
}
.footer-brand p {
  font-size: 0.9rem;
  color: var(--gray-500);
  margin-bottom: 20px;
  max-width: 320px;
  line-height: 1.7;
}
.footer-social {
  display: flex;
  gap: 12px;
}
.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-500);
  font-size: 0.95rem;
  transition: var(--transition);
}
.footer-social a:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(201, 168, 76, 0.1);
}
.footer h4 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 20px;
  letter-spacing: 0.5px;
}
.footer-links li {
  margin-bottom: 12px;
}
.footer-links a {
  color: var(--gray-500);
  font-size: 0.9rem;
  transition: var(--transition);
}
.footer-links a:hover {
  color: var(--accent);
  padding-left: 4px;
}
.footer-contact li {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 0.9rem;
  color: var(--gray-500);
}
.footer-contact i {
  color: var(--accent);
  margin-top: 4px;
  min-width: 16px;
}
.footer-bottom {
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.85rem;
  color: var(--gray-600);
}
.footer-bottom a {
  color: var(--gray-500);
}
.footer-bottom a:hover {
  color: var(--accent);
}

/* --- Page Header (Subpages) --- */
.page-header {
  padding: 160px 0 80px;
  background:
    radial-gradient(ellipse at 30% 50%, rgba(30, 58, 95, 0.4) 0%, transparent 60%),
    linear-gradient(160deg, var(--primary-dark), var(--primary), var(--primary-medium));
  text-align: center;
  position: relative;
}
.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.015) 1px, transparent 1px);
  background-size: 60px 60px;
}
.page-header .container {
  position: relative;
  z-index: 1;
}
.page-header h1 {
  color: var(--white);
  margin-bottom: 12px;
}
.page-breadcrumb {
  font-size: 0.9rem;
  color: var(--gray-500);
}
.page-breadcrumb a {
  color: var(--gray-400);
}
.page-breadcrumb a:hover {
  color: var(--accent);
}
.page-breadcrumb span {
  color: var(--accent);
}

/* --- Legal Content (Privacy, Terms) --- */
.legal-content {
  padding: 80px 0 100px;
}
.legal-section {
  margin-bottom: 40px;
}
.legal-section:last-child {
  margin-bottom: 0;
}
.legal-section h2 {
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--accent-subtle);
}
.legal-section h3 {
  margin-bottom: 12px;
  margin-top: 28px;
  font-size: 1.15rem;
}
.legal-section p {
  margin-bottom: 14px;
  line-height: 1.8;
}
.legal-section ul,
.legal-section ol {
  margin: 14px 0 18px;
  padding-left: 24px;
}
.legal-section li {
  margin-bottom: 10px;
  line-height: 1.7;
  color: var(--gray-700);
}
.legal-section ul li {
  list-style: disc;
}
.legal-section ol li {
  list-style: decimal;
}
.legal-section strong {
  color: var(--primary);
}
.last-updated {
  font-style: italic;
  color: var(--gray-500);
  margin-bottom: 36px;
  font-size: 0.9rem;
}

/* --- Animations --- */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
.fade-in-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}
.fade-in-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* --- Back to Top --- */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--primary-dark);
  border: none;
  font-size: 1.1rem;
  cursor: pointer;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: var(--transition);
  box-shadow: 0 4px 16px var(--accent-glow);
}
.back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-to-top:hover {
  background: var(--accent-light);
  transform: translateY(-3px);
}

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .industries-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 40px; }
}

@media (max-width: 768px) {
  .section { padding: 70px 0; }
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--white);
    flex-direction: column;
    padding: 80px 32px 32px;
    gap: 24px;
    box-shadow: -8px 0 30px rgba(0,0,0,0.1);
    transition: right 0.3s ease;
    align-items: flex-start;
  }
  .nav-links.open { right: 0; }
  .nav-links a { color: var(--gray-700) !important; font-size: 1rem; }
  .nav-toggle { display: block; }
  .nav-links .btn { margin-left: 0; }

  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-grid .about-visual { order: -1; }
  .services-grid { grid-template-columns: 1fr; }
  .industries-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .why-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .contact-form { padding: 28px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }

  .hero { min-height: 90vh; }
  .hero-stats { gap: 30px; }
  .hero-stat h3 { font-size: 1.5rem; }

  .page-header { padding: 130px 0 60px; }

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

  .about-details { grid-template-columns: 1fr; }

  .footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 1.8rem; }
  .hero-cta { flex-direction: column; }
  .hero-cta .btn { width: 100%; }
  .hero-stats { flex-direction: column; gap: 20px; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .stat-number { font-size: 2rem; }
  .btn-group { flex-direction: column; }
  .btn-group .btn { width: 100%; }
  .section-label::before,
  .section-label::after { width: 20px; margin: 0 8px; }
}
