/* Valinor Commercial Kitchens - Custom Styles */

:root {
  /* Brand Colors */
  --color-primary-orange: #f79220;
  --color-primary-grey: #262626;
  --color-secondary-red: #DA2031;
  --color-white: #ffffff;
  --color-light-grey: #F5F5F5;
  --color-medium-grey: #666666;
  --color-dark-grey: #333333;
  
  /* Typography */
  --font-family: 'Poppins', sans-serif;
  
  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 4rem;
  --spacing-xl: 6rem;
  
  /* Border Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;
  
  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
  --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.2);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-dark-grey);
  background: linear-gradient(135deg, #1a1a1a 0%, #2a1810 50%, #1a1a1a 100%);
  background-attachment: fixed;
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-primary-grey);
  margin-bottom: var(--spacing-sm);
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.75rem; }
h3 { font-size: 2rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
  margin-bottom: var(--spacing-sm);
  line-height: 1.8;
}

a {
  color: var(--color-primary-orange);
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  color: var(--color-secondary-red);
}

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

.container-wide {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

.container-full {
  width: 100%;
  padding: 0 var(--spacing-md);
}

/* Header / Navigation */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: var(--color-white);
  box-shadow: var(--shadow-sm);
  z-index: 1000;
  transition: all 0.3s ease;
}

.header.scrolled {
  box-shadow: var(--shadow-md);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  max-width: 1400px;
  margin: 0 auto;
  padding: 1rem var(--spacing-md);
}

.logo {
  height: 50px;
  width: auto;
}

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

.nav-menu a {
  color: var(--color-primary-grey);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.5rem 0;
  position: relative;
  transition: color 0.3s ease;
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-primary-orange);
  transition: width 0.3s ease;
}

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

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--color-primary-orange);
}

.nav-cta {
  background: var(--color-primary-orange);
  color: var(--color-white) !important;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  transition: all 0.3s ease;
}

.nav-cta::after {
  display: none;
}

.nav-cta:hover {
  background: var(--color-secondary-red);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--color-primary-grey);
  cursor: pointer;
}

/* Dropdown Menu */
.nav-menu .has-dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--color-white);
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius-md);
  padding: 0.5rem 0;
  min-width: 250px;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  margin-top: 0.5rem;
}

.has-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu li {
  margin: 0;
}

.dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1.25rem;
  color: var(--color-primary-grey);
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.dropdown-menu a::after {
  display: none;
}

.dropdown-menu a:hover {
  background: var(--color-light-grey);
  color: var(--color-primary-orange);
}

.dropdown-menu a i {
  width: 20px;
  text-align: center;
  color: var(--color-primary-orange);
}

/* Hero Section */
.hero {
  padding-top: 100px;
  min-height: 90vh;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #1a1a1a 0%, #2a1810 30%, #1a1a1a 100%);
  position: relative;
  overflow: hidden;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-lg);
  align-items: center;
}

.hero-text h1 {
  font-size: 3.5rem;
  line-height: 1.1;
  margin-bottom: var(--spacing-md);
  color: var(--color-white);
}

.hero-text .highlight {
  color: var(--color-primary-orange);
  position: relative;
  display: inline-block;
}

.hero-text p {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: var(--spacing-md);
}

.hero-cta {
  display: flex;
  gap: var(--spacing-sm);
  margin-top: var(--spacing-md);
}

.hero-image {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.hero-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 1rem 2rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 1rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  text-decoration: none;
}

.btn-primary {
  background: var(--color-primary-orange);
  color: var(--color-white);
}

.btn-primary:hover {
  background: var(--color-secondary-red);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  color: var(--color-white);
}

.btn-secondary {
  background: transparent;
  color: var(--color-primary-grey);
  border: 2px solid var(--color-primary-grey);
}

.btn-secondary:hover {
  background: var(--color-primary-grey);
  color: var(--color-white);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--color-primary-orange);
  border: 2px solid var(--color-primary-orange);
}

.btn-outline:hover {
  background: var(--color-primary-orange);
  color: var(--color-white);
}

/* Section Styles */
.section {
  padding: var(--spacing-xl) 0;
}

.section-header {
  text-align: center;
  margin-bottom: var(--spacing-lg);
  position: relative;
}

.section-header h2 {
  font-size: 2.75rem;
  margin-bottom: var(--spacing-sm);
  position: relative;
  display: inline-block;
}

.section-header p {
  font-size: 1.25rem;
  color: var(--color-medium-grey);
  max-width: 700px;
  margin: 0 auto;
}

.section-subtitle {
  color: var(--color-primary-orange);
  font-weight: 600;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: var(--spacing-xs);
  position: relative;
  display: inline-block;
}

/* Grid Layouts */
.grid {
  display: grid;
  gap: var(--spacing-md);
}

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

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

/* Cards */
.card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: var(--spacing-md);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  border: 1px solid var(--color-light-grey);
}

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

.card-icon {
  width: 60px;
  height: 60px;
  background: var(--color-light-grey);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--spacing-sm);
  color: var(--color-primary-orange);
  font-size: 1.75rem;
}

.card h3 {
  margin-bottom: var(--spacing-sm);
  font-size: 1.5rem;
}

.card p {
  color: var(--color-medium-grey);
  line-height: 1.7;
}

/* Project Card */
.project-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
}

.project-card:hover {
  box-shadow: var(--shadow-xl);
  transform: translateY(-8px);
}

.project-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  background: var(--color-light-grey);
}

.project-content {
  padding: var(--spacing-md);
}

.project-meta {
  display: flex;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-sm);
  flex-wrap: wrap;
}

.project-tag {
  background: var(--color-light-grey);
  color: var(--color-primary-grey);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 500;
}

.project-tag.primary {
  background: var(--color-primary-orange);
  color: var(--color-white);
}

/* Stats Section */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--spacing-md);
  margin-top: var(--spacing-lg);
}

.stat-card {
  text-align: center;
  padding: var(--spacing-md);
  background: var(--color-light-grey);
  border-radius: var(--radius-lg);
  transition: all 0.3s ease;
}

.stat-card:hover {
  background: var(--color-primary-orange);
  color: var(--color-white);
  transform: translateY(-5px);
}

.stat-number {
  font-size: 3rem;
  font-weight: 700;
  color: var(--color-primary-orange);
  margin-bottom: var(--spacing-xs);
}

.stat-card:hover .stat-number {
  color: var(--color-white);
}

.stat-label {
  font-size: 1rem;
  color: var(--color-medium-grey);
  font-weight: 500;
}

.stat-card:hover .stat-label {
  color: var(--color-white);
}

/* Process Steps */
.process-steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--spacing-md);
  margin-top: var(--spacing-lg);
}

.step-card {
  text-align: center;
  position: relative;
}

.step-number {
  width: 60px;
  height: 60px;
  background: var(--color-primary-orange);
  color: var(--color-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 auto var(--spacing-sm);
}

.step-card::after {
  content: '→';
  position: absolute;
  top: 30px;
  right: -20px;
  color: var(--color-primary-orange);
  font-size: 1.5rem;
  font-weight: 700;
}

.step-card:last-child::after {
  display: none;
}

@media (max-width: 1200px) {
  .process-steps {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .step-card:nth-child(3n)::after {
    display: none;
  }
}

@media (max-width: 768px) {
  .process-steps {
    grid-template-columns: 1fr;
    gap: var(--spacing-sm);
  }
  
  .step-card::after {
    content: '↓';
    position: relative;
    display: block;
    text-align: center;
    top: auto;
    right: auto;
    margin-top: var(--spacing-xs);
  }
  
  .step-card:last-child::after {
    display: none;
  }
}

.step-title {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-primary-grey);
  margin-bottom: var(--spacing-xs);
}

.step-description {
  font-size: 0.85rem;
  color: var(--color-medium-grey);
}

/* Logo Grid */
.logo-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--spacing-md);
  align-items: center;
  margin-top: var(--spacing-lg);
}

.client-logo {
  padding: var(--spacing-sm);
  background: var(--color-white);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100px;
  border: 1px solid var(--color-light-grey);
  transition: all 0.3s ease;
  filter: grayscale(100%);
  opacity: 0.6;
}

.client-logo:hover {
  filter: grayscale(0%);
  opacity: 1;
  transform: scale(1.05);
  box-shadow: var(--shadow-md);
}

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

/* Timeline */
.timeline {
  position: relative;
  padding: var(--spacing-md) 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--color-primary-orange);
  transform: translateX(-50%);
}

.timeline-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--spacing-lg);
  position: relative;
}

.timeline-item:nth-child(even) {
  flex-direction: row-reverse;
}

.timeline-content {
  width: 45%;
  background: var(--color-white);
  padding: var(--spacing-md);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.timeline-year {
  width: 10%;
  text-align: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-primary-orange);
}

/* Forms */
.form-group {
  margin-bottom: var(--spacing-md);
}

.form-label {
  display: block;
  margin-bottom: var(--spacing-xs);
  font-weight: 600;
  color: var(--color-primary-grey);
}

.form-label.required::after {
  content: '*';
  color: var(--color-secondary-red);
  margin-left: 4px;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 2px solid var(--color-light-grey);
  border-radius: var(--radius-md);
  font-family: var(--font-family);
  font-size: 1rem;
  color: var(--color-dark-grey);
  transition: all 0.3s ease;
  background: var(--color-white);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--color-primary-orange);
  box-shadow: 0 0 0 3px rgba(247, 146, 32, 0.1);
}

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

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--spacing-md);
}

/* Footer */
.footer {
  background: var(--color-primary-grey);
  color: var(--color-white);
  padding: var(--spacing-xl) 0 var(--spacing-md);
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-lg);
}

.footer-section h4 {
  color: var(--color-white);
  margin-bottom: var(--spacing-sm);
  font-size: 1.25rem;
}

.footer-section p {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.8;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: var(--spacing-xs);
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  transition: color 0.3s ease;
}

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--spacing-md);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-xs);
  background: var(--color-primary-orange);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  font-weight: 600;
}

/* Responsive Design */
@media (max-width: 1024px) {
  h1 { font-size: 2.75rem; }
  h2 { font-size: 2.25rem; }
  h3 { font-size: 1.75rem; }
  
  .grid-3, .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .hero-cta {
    justify-content: center;
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .process-steps {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .logo-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .footer-content {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--color-white);
    flex-direction: column;
    padding: var(--spacing-md);
    box-shadow: var(--shadow-lg);
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
  }
  
  .nav-menu.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }
  
  .mobile-menu-toggle {
    display: block;
  }
  
  .hero {
    min-height: auto;
    padding-top: 100px;
    padding-bottom: var(--spacing-lg);
  }
  
  .hero-text h1 {
    font-size: 2rem;
  }
  
  .grid-2, .grid-3, .grid-4 {
    grid-template-columns: 1fr;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
  }
  
  .process-steps {
    grid-template-columns: 1fr;
  }
  
  .step-card::after {
    display: none;
  }
  
  .logo-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .timeline::before {
    left: 30px;
  }
  
  .timeline-item {
    flex-direction: column !important;
    align-items: flex-start;
    padding-left: 60px;
  }
  
  .timeline-content {
    width: 100%;
  }
  
  .timeline-year {
    position: absolute;
    left: 0;
    width: auto;
  }
  
  .form-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: var(--spacing-sm);
    text-align: center;
  }
}

/* Section background variations */
.section-dark {
  background: linear-gradient(135deg, #1a1a1a 0%, #2a1810 50%, #1a1a1a 100%);
  color: var(--color-white);
}

.section-dark h2,
.section-dark h3,
.section-dark h4,
.section-dark .section-header h2 {
  color: var(--color-white);
}

.section-dark p,
.section-dark .section-header p {
  color: rgba(255, 255, 255, 0.85);
}

.section-light {
  background: linear-gradient(135deg, #f8f8f8 0%, #ffffff 50%, #f8f8f8 100%);
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-1 { margin-top: var(--spacing-xs); }
.mt-2 { margin-top: var(--spacing-sm); }
.mt-3 { margin-top: var(--spacing-md); }
.mt-4 { margin-top: var(--spacing-lg); }

.mb-1 { margin-bottom: var(--spacing-xs); }
.mb-2 { margin-bottom: var(--spacing-sm); }
.mb-3 { margin-bottom: var(--spacing-md); }
.mb-4 { margin-bottom: var(--spacing-lg); }

.pt-1 { padding-top: var(--spacing-xs); }
.pt-2 { padding-top: var(--spacing-sm); }
.pt-3 { padding-top: var(--spacing-md); }
.pt-4 { padding-top: var(--spacing-lg); }

.pb-1 { padding-bottom: var(--spacing-xs); }
.pb-2 { padding-bottom: var(--spacing-sm); }
.pb-3 { padding-bottom: var(--spacing-md); }
.pb-4 { padding-bottom: var(--spacing-lg); }

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

.fade-in-up {
  animation: fadeInUp 0.6s ease-out;
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.slide-in-right {
  animation: slideInRight 0.6s ease-out;
}

/* Loading State */
.loading {
  position: relative;
  pointer-events: none;
  opacity: 0.6;
}

.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 30px;
  height: 30px;
  border: 3px solid var(--color-light-grey);
  border-top-color: var(--color-primary-orange);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  transform: translate(-50%, -50%);
}

@keyframes spin {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Success/Error Messages */
.message {
  padding: var(--spacing-sm);
  border-radius: var(--radius-md);
  margin-bottom: var(--spacing-md);
  font-weight: 500;
}

.message-success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.message-error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.message-info {
  background: #d1ecf1;
  color: #0c5460;
  border: 1px solid #bee5eb;
}

/* Scroll to Top Button */
.scroll-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 50px;
  height: 50px;
  background: rgba(247, 146, 32, 0.95);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  box-shadow: 0 4px 20px rgba(247, 146, 32, 0.4);
  z-index: 9998;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.scroll-to-top:hover {
  background: rgba(247, 146, 32, 1);
  transform: translateY(-5px);
  box-shadow: 0 6px 30px rgba(247, 146, 32, 0.5);
}

.scroll-to-top.visible {
  display: flex;
  animation: fadeInUp 0.3s ease-out;
}

/* Mobile-optimized scroll-to-top */
@media (max-width: 768px) {
  .scroll-to-top {
    bottom: 1.5rem;
    right: 1.5rem;
    width: 56px;
    height: 56px;
    font-size: 1.4rem;
    background: rgba(247, 146, 32, 0.92);
    box-shadow: 0 6px 25px rgba(247, 146, 32, 0.45);
  }
  
  .scroll-to-top:active {
    transform: scale(0.95);
  }
}

/* Mobile optimization for scroll-to-top */
@media (max-width: 768px) {
  .scroll-to-top {
    bottom: 1.5rem;
    right: 1.5rem;
    width: 55px;
    height: 55px;
    font-size: 1.5rem;
    opacity: 0.95;
    box-shadow: 0 4px 15px rgba(247, 146, 32, 0.4);
  }
  
  .scroll-to-top:active {
    transform: scale(0.95);
  }
}

/* ============================================
   PREMIUM PARALLAX & ANIMATION STYLES
   ============================================ */

/* Bounce Animation for scroll indicator */
@keyframes bounce {
  0%, 100% {
    transform: translateY(0) translateX(-50%);
  }
  50% {
    transform: translateY(10px) translateX(-50%);
  }
}

/* Premium fade in animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Premium card hover effects */
.card {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 20px 60px rgba(247, 146, 32, 0.15);
}

/* Premium button effects */
.btn {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
  width: 300px;
  height: 300px;
}

/* Link arrow animation */
a:hover .fa-arrow-right {
  transform: translateX(5px);
  transition: transform 0.3s ease;
}

/* Parallax hero specific styles */
.parallax-hero {
  position: relative;
  will-change: transform;
}

.hero-equipment {
  will-change: transform, opacity;
  transition: transform 0.1s ease-out, opacity 0.1s ease-out;
}

.hero-content {
  will-change: transform, opacity;
  transition: transform 0.1s ease-out, opacity 0.1s ease-out;
}

/* Smooth section transitions */
section {
  will-change: opacity;
}

/* Premium gradient text */
.gradient-text {
  background: linear-gradient(135deg, var(--color-primary-orange), #ff6b35);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Glass morphism effect */
.glass {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Responsive typography scaling */
@media (max-width: 768px) {
  .parallax-hero {
    min-height: 100vh !important;
  }
  
  .hero-equipment {
    width: 80% !important;
  }
  
  .workflow-equipment {
    transform: translateX(0) !important;
  }
  
  #equipment-placement > div > div {
    grid-template-columns: 1fr !important;
    gap: 3rem !important;
  }
}

/* Border animation on hover */
@keyframes borderGlow {
  0%, 100% {
    box-shadow: 0 0 20px rgba(247, 146, 32, 0.2);
  }
  50% {
    box-shadow: 0 0 40px rgba(247, 146, 32, 0.4);
  }
}

.card:hover {
  animation: borderGlow 2s infinite;
}

/* Smooth page transitions */
body {
  transition: opacity 0.6s ease;
}

/* Premium loading states */
@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }
  100% {
    background-position: 1000px 0;
  }
}

.loading {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 1000px 100%;
  animation: shimmer 2s infinite;
}

/* Hide scrollbar but keep functionality */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: var(--color-primary-orange);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #ff6b35;
}

/* Premium selection color */
::selection {
  background: var(--color-primary-orange);
  color: white;
}

::-moz-selection {
  background: var(--color-primary-orange);
  color: white;
}

/* ========================================

/* ========================================
   COMPREHENSIVE MOBILE & TABLET RESPONSIVE
   UI/UX Optimized for All Devices
======================================== */

/* Tablet Landscape (1024px - 1280px) */
@media (max-width: 1280px) and (min-width: 1025px) {
  .container {
    max-width: 1024px;
    padding: 0 2rem;
  }
  
  .navbar {
    padding: 1rem 2rem;
  }
  
  .hero h1 {
    font-size: 4.5rem !important;
  }
}

/* Tablet Portrait & Small Desktop (768px - 1024px) */
@media (max-width: 1024px) and (min-width: 769px) {
  .container {
    padding: 0 2rem;
  }
  
  /* Header adjustments */
  .header {
    padding: 0.75rem 0;
  }
  
  .navbar svg {
    width: 180px !important;
    height: 50px !important;
  }
  
  .nav-menu {
    gap: 1.5rem;
  }
  
  .nav-menu a {
    font-size: 0.9rem;
  }
  
  /* Hero adjustments */
  .parallax-hero h1 {
    font-size: 4rem !important;
  }
  
  /* Service cards: 2 columns on tablet */
  div[style*="grid-template-columns: repeat(3, 1fr)"].service-container {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  
  /* Stats: 2x2 grid on tablet */
  div[style*="grid-template-columns: repeat(4, 1fr)"] {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 3rem 2rem !important;
  }
  
  /* Projects: keep 2 columns */
  div[style*="grid-template-columns: repeat(2, 1fr)"] {
    gap: 2rem !important;
  }
  
  .project-card-minimal img {
    height: 350px !important;
  }
}

/* Mobile & Small Tablet (max-width: 768px) */
@media (max-width: 768px) {
  /* Enhanced mobile header */
  .header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    padding: 0;
  }
  
  .navbar {
    padding: 1rem 1.5rem;
    position: relative;
  }
  
  .navbar svg {
    width: 160px !important;
    height: 45px !important;
  }
  
  /* Mobile menu toggle button - styled as hamburger */
  .mobile-menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 32px;
    height: 32px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 10000;
    position: relative;
  }
  
  .mobile-menu-toggle i {
    font-size: 1.75rem;
    color: var(--color-primary-grey);
    transition: all 0.3s ease;
  }
  
  .mobile-menu-toggle.active i::before {
    content: "\f00d"; /* FontAwesome times icon */
    color: var(--color-primary-orange);
  }
  
  /* Mobile navigation menu */
  .nav-menu {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    bottom: 0;
    background: white;
    flex-direction: column;
    padding: 2rem 1.5rem;
    gap: 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    transform: translateX(100%);
    opacity: 0;
    pointer-events: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  
  .nav-menu.active {
    transform: translateX(0);
    opacity: 1;
    pointer-events: all;
  }
  
  .nav-menu li {
    width: 100%;
    border-bottom: 1px solid #f0f0f0;
    padding: 0;
  }
  
  .nav-menu li:last-child {
    border-bottom: none;
  }
  
  .nav-menu > li > a {
    display: block;
    padding: 1.25rem 1rem;
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--color-primary-grey);
    transition: all 0.3s ease;
  }
  
  .nav-menu > li > a:hover {
    color: var(--color-primary-orange);
    background: rgba(247, 146, 32, 0.05);
    padding-left: 1.5rem;
  }
  
  .nav-menu a::after {
    display: none;
  }
  
  /* Mobile dropdown */
  .has-dropdown {
    position: relative;
  }
  
  .has-dropdown > a {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    padding: 0;
    margin: 0;
    background: rgba(247, 146, 32, 0.03);
    border-radius: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
  }
  
  .has-dropdown.active .dropdown-menu {
    max-height: 500px;
  }
  
  .dropdown-menu li {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  }
  
  .dropdown-menu li:last-child {
    border-bottom: none;
  }
  
  .dropdown-menu a {
    padding: 1rem 1.5rem;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
  }
  
  .dropdown-menu a:hover {
    background: rgba(247, 146, 32, 0.08);
    padding-left: 2rem;
  }
  
  /* Mobile CTA button */
  .nav-cta {
    margin-top: 1rem;
    text-align: center;
    display: block;
    background: var(--color-primary-orange) !important;
    color: white !important;
    padding: 1rem 2rem !important;
    border-radius: 0 !important;
    font-weight: 600;
    font-size: 1.05rem;
  }
  
  .nav-cta:hover {
    background: #e08420 !important;
    transform: none !important;
    padding-left: 2rem !important;
  }
  
  /* Main content padding (account for fixed header) */
  main {
    padding-top: 70px;
  }
  
  .parallax-hero {
    margin-top: -70px;
    padding-top: 70px;
    min-height: calc(100vh - 70px) !important;
  }
  
  /* Mobile typography */
  h1 {
    font-size: 2.5rem !important;
    line-height: 1.2 !important;
    letter-spacing: -2px !important;
  }
  
  h2 {
    font-size: 2rem !important;
    line-height: 1.3 !important;
  }
  
  h3 {
    font-size: 1.5rem !important;
  }
  
  p {
    font-size: 1rem;
    line-height: 1.7;
  }
  
  /* Mobile sections */
  section {
    padding: 4rem 0 !important;
  }
  
  section[style*="padding: 10rem 0"],
  section[style*="padding: 8rem 0"] {
    padding: 4rem 0 !important;
  }
  
  .section-header {
    margin-bottom: 3rem !important;
  }
  
  /* Mobile grids */
  div[style*="grid-template-columns: repeat(3, 1fr)"],
  div[style*="grid-template-columns: repeat(2, 1fr)"],
  div[style*="grid-template-columns: repeat(4, 1fr)"] {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }
  
  /* Service cards mobile */
  .service-card {
    padding: 2.5rem 2rem !important;
    border-right: none !important;
    border-bottom: 1px solid #f0f0f0 !important;
  }
  
  .service-card:last-child {
    border-bottom: none !important;
  }
  
  /* Stats mobile */
  div[style*="grid-template-columns: repeat(4, 1fr)"] {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 2.5rem 1.5rem !important;
  }
  
  [style*="border-right: 1px solid rgba(255, 255, 255, 0.1)"] {
    border-right: none !important;
  }
  
  .stat-number {
    font-size: 3.5rem !important;
  }
  
  /* Mobile projects */
  .project-card-minimal {
    margin-bottom: 1.5rem;
  }
  
  .project-card-minimal img {
    height: 300px !important;
  }
  
  .project-card-minimal div[style*="padding: 2.5rem"] {
    padding: 2rem 1.5rem !important;
  }
  
  .project-card-minimal h3 {
    font-size: 1.5rem !important;
  }
  
  /* Mobile buttons */
  .btn-premium,
  .btn-ghost,
  a[style*="padding: 1.2rem 3rem"] {
    padding: 1rem 2rem !important;
    font-size: 0.9rem !important;
    width: 100%;
    text-align: center;
  }
  
  div[style*="display: flex; gap: 1.5rem; justify-content: center"] {
    flex-direction: column !important;
    gap: 1rem !important;
  }
  
  /* Mobile scroll-to-top (already updated above) */
  
  /* Improve touch targets */
  a, button {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
  
  /* Mobile forms */
  input, textarea, select {
    font-size: 16px !important; /* Prevents iOS zoom */
  }
}

/* Small Mobile (max-width: 480px) */
@media (max-width: 480px) {
  .container {
    padding: 0 1.25rem !important;
  }
  
  .navbar {
    padding: 0.875rem 1.25rem;
  }
  
  .navbar svg {
    width: 140px !important;
    height: 40px !important;
  }
  
  h1 {
    font-size: 2rem !important;
  }
  
  h2 {
    font-size: 1.75rem !important;
  }
  
  .stat-number {
    font-size: 3rem !important;
  }
  
  .service-card,
  .project-card-minimal div[style*="padding"] {
    padding: 2rem 1.25rem !important;
  }
  
  /* Single column stats on very small screens */
  div[style*="grid-template-columns: repeat(2, 1fr)"] {
    grid-template-columns: 1fr !important;
  }
  
  .scroll-to-top {
    bottom: 1.25rem;
    right: 1.25rem;
    width: 52px;
    height: 52px;
  }
}

/* Landscape mobile phones */
@media (max-height: 600px) and (orientation: landscape) {
  .parallax-hero {
    min-height: auto !important;
    height: auto !important;
    padding: 8rem 0 4rem !important;
  }
  
  .nav-menu {
    padding: 1rem 1.5rem;
  }
  
  .nav-menu > li > a {
    padding: 0.875rem 1rem;
  }
}

/* iOS specific fixes */
@supports (-webkit-touch-callout: none) {
  .parallax-hero {
    min-height: -webkit-fill-available;
  }
  
  .nav-menu {
    padding-bottom: env(safe-area-inset-bottom, 2rem);
  }
}

   PREMIUM PARALLAX ENHANCEMENTS
   Nesma-Inspired Minimalist Design
======================================== */

/* Smooth scrolling for the entire page */
html {
  scroll-behavior: smooth;
}

/* Premium body styling */
body {
  font-weight: 300;
  letter-spacing: 0.3px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Parallax hero section */
.parallax-hero {
  position: relative;
  will-change: transform;
}

.parallax-bg {
  will-change: transform;
  backface-visibility: hidden;
}

/* Premium button styles */
.btn-premium {
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-premium::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
  z-index: -1;
}

.btn-premium:hover::before {
  left: 100%;
}

.btn-ghost {
  position: relative;
  overflow: hidden;
}

/* Service card enhancements */
.service-card {
  position: relative;
  will-change: transform, background-color;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  background: var(--color-primary-orange);
  transition: width 0.4s ease;
  opacity: 0.03;
}

.service-card:hover::before {
  width: 100%;
}

/* Project card minimal */
.project-card-minimal {
  position: relative;
  border-radius: 0;
  overflow: hidden;
}

.project-card-minimal::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.9), transparent 60%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.project-card-minimal:hover::after {
  opacity: 1;
}

/* Section reveal animations */
.section-reveal {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.section-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
.stagger-child {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Typography enhancements */
h1, h2, h3, h4, h5, h6 {
  letter-spacing: -1px;
}

h1 {
  letter-spacing: -3px;
}

/* Stat numbers */
.stat-number {
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

/* Premium link effects */
a[style*="text-transform: uppercase"] {
  position: relative;
}

a[style*="text-transform: uppercase"]::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: currentColor;
  transition: width 0.3s ease;
}

a[style*="text-transform: uppercase"]:hover::after {
  width: 100%;
}

/* Scroll progress */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-primary-orange), #ff8c42);
  z-index: 9999;
  transition: width 0.1s ease;
}

/* Enhanced shadows */
.shadow-premium {
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

.shadow-premium-hover {
  transition: box-shadow 0.4s ease;
}

.shadow-premium-hover:hover {
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.15);
}

/* Grid pattern overlay */
.grid-pattern {
  background-image: 
    linear-gradient(rgba(247, 146, 32, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(247, 146, 32, 0.02) 1px, transparent 1px);
  background-size: 60px 60px;
}

/* Premium focus states */
*:focus-visible {
  outline: 2px solid var(--color-primary-orange);
  outline-offset: 4px;
}

/* Image loading placeholder */
img {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
}

/* Mobile Responsiveness for Parallax */
@media (max-width: 1024px) {
  .parallax-bg {
    transform: none !important;
    background-attachment: scroll;
  }
  
  [data-speed] {
    transform: none !important;
  }
}

@media (max-width: 768px) {
  /* Reset parallax on mobile for performance */
  .parallax-hero {
    height: auto !important;
    min-height: 100vh;
  }
  
  .parallax-section {
    padding: 4rem 0 !important;
  }
  
  /* Adjust spacing */
  section[style*="padding: 10rem 0"] {
    padding: 5rem 0 !important;
  }
  
  section[style*="padding: 8rem 0"] {
    padding: 4rem 0 !important;
  }
  
  /* Service cards stack vertically */
  div[style*="grid-template-columns: repeat(3, 1fr)"] {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }
  
  .service-card {
    border-right: none !important;
    border-bottom: 1px solid #f0f0f0 !important;
    padding: 3rem 2rem !important;
  }
  
  .service-card:last-child {
    border-bottom: none !important;
  }
  
  /* Stats responsive */
  div[style*="grid-template-columns: repeat(4, 1fr)"] {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 2rem !important;
  }
  
  [style*="border-right: 1px solid rgba(255, 255, 255, 0.1)"] {
    border-right: none !important;
  }
  
  /* Projects stack on mobile */
  div[style*="grid-template-columns: repeat(2, 1fr)"] {
    grid-template-columns: 1fr !important;
  }
  
  .stat-number {
    font-size: 3.5rem !important;
  }
  
  /* Typography adjustments */
  h1 {
    font-size: 3rem !important;
    letter-spacing: -2px !important;
  }
  
  h2 {
    font-size: 2rem !important;
  }
  
  /* Button adjustments */
  .btn-premium,
  .btn-ghost,
  a[style*="padding: 1.2rem 3rem"] {
    padding: 1rem 2rem !important;
    font-size: 0.85rem !important;
  }
}

@media (max-width: 480px) {
  .container {
    padding-left: 1.5rem !important;
    padding-right: 1.5rem !important;
  }
  
  h1 {
    font-size: 2.5rem !important;
  }
  
  .stat-number {
    font-size: 3rem !important;
  }
}

/* Performance optimizations */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .parallax-bg,
  [data-speed] {
    transform: none !important;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .btn-premium,
  .btn-ghost {
    border: 3px solid currentColor;
  }
}

/* Logo Image Responsive Styles */
.logo-img {
    height: 50px;
    width: auto;
    max-width: 100%;
    transition: all 0.3s ease;
}

/* Responsive logo sizing */
@media (max-width: 1024px) {
    .logo-img {
        height: 45px;
    }
}

@media (max-width: 768px) {
    .logo-img {
        height: 40px;
    }
}

@media (max-width: 480px) {
    .logo-img {
        height: 35px;
    }
}

/* Logo on scrolled header */
.header.scrolled .logo-img {
    height: 45px;
}

@media (max-width: 768px) {
    .header.scrolled .logo-img {
        height: 35px;
    }
}

/* Hero Supporting Text - Premium B2B Styling */
.hero-supporting-text p {
    margin-left: auto;
    margin-right: auto;
}

/* Responsive typography for hero supporting text */
@media (max-width: 1024px) {
    .hero-supporting-text p:first-child {
        font-size: 1.2rem !important;
        margin-bottom: 1.25rem !important;
    }
    .hero-supporting-text p:not(:first-child) {
        font-size: 1rem !important;
        line-height: 1.75 !important;
    }
}

@media (max-width: 768px) {
    .hero-supporting-text {
        max-width: 95% !important;
        padding: 0 1rem;
    }
    .hero-supporting-text p:first-child {
        font-size: 1.1rem !important;
        margin-bottom: 1rem !important;
        line-height: 1.5 !important;
    }
    .hero-supporting-text p:not(:first-child) {
        font-size: 0.95rem !important;
        line-height: 1.7 !important;
        margin-bottom: 1rem !important;
    }
}

@media (max-width: 480px) {
    .hero-supporting-text p:first-child {
        font-size: 1.05rem !important;
        letter-spacing: 0.2px !important;
    }
    .hero-supporting-text p:not(:first-child) {
        font-size: 0.9rem !important;
    }
}

/* Hero Headline - Prevent Cutoff on All Devices */
.parallax-hero h1 {
    max-width: 95%;
    margin-left: auto;
    margin-right: auto;
}

/* Ensure hero content container has proper spacing */
.hero-content {
    padding-left: 1.5rem !important;
    padding-right: 1.5rem !important;
}

/* Responsive adjustments for hero headline */
@media (max-width: 1200px) {
    .parallax-hero h1 {
        font-size: clamp(2.5rem, 6vw, 5rem) !important;
        padding: 0 1.5rem !important;
    }
}

@media (max-width: 768px) {
    .parallax-hero h1 {
        font-size: clamp(2rem, 8vw, 3.5rem) !important;
        line-height: 1.2 !important;
        padding: 0 1rem !important;
    }
    .hero-content {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
}

@media (max-width: 480px) {
    .parallax-hero h1 {
        font-size: clamp(1.75rem, 9vw, 2.5rem) !important;
        letter-spacing: -1px !important;
    }
}
