/* DP World Inspired Design Language for Escrow Logistics */

:root {
  --dp-blue: #1a3a52;
  --dp-accent: #0d7377;
  --dp-white: #ffffff;
  --dp-light-gray: #f8f9fa;
  --dp-dark: #0a1428;
  --dp-text: #333333;
  --dp-text-light: #666666;
  --dp-border: #e0e0e0;
  --dp-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--dp-white);
  color: var(--dp-text);
  line-height: 1.6;
  overflow-x: hidden;
}

/* Container */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
}

@media (max-width: 768px) {
  .container {
    padding: 0 20px;
  }
}

/* Navigation */
.navbar {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  border-bottom: 1px solid var(--dp-border);
  transition: var(--dp-transition);
}

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

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 15px;
}

.navbar-brand .logo {
  height: 140px;
  width: auto;
  max-width: 280px;
  margin-top: -30px;
}

.navbar-brand h1 {
  display: none;
}

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

.nav-menu a {
  color: var(--dp-blue);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: var(--dp-transition);
  position: relative;
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--dp-accent);
  transition: var(--dp-transition);
}

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

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  gap: 6px;
  z-index: 1001;
}

.menu-toggle span {
  width: 28px;
  height: 3px;
  background: var(--dp-blue);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(10px, 10px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

.nav-menu a:hover {
  color: var(--dp-accent);
}

/* Hero Section with Background Video */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: var(--dp-white);
}

.hero-video-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.hero-video-container::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.2));
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-content {
  max-width: 800px;
  padding-top: 80px;
}

.hero-subtitle {
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 20px;
  font-weight: 700;
  color: var(--dp-accent);
}

.hero-title {
  font-size: clamp(40px, 8vw, 72px);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 30px;
  text-transform: uppercase;
}

.hero-description {
  font-size: 20px;
  margin-bottom: 40px;
  max-width: 600px;
  opacity: 1;
  color: #ffffff;
  font-weight: 500;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 32px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 14px;
  border-radius: 4px;
  transition: var(--dp-transition);
  cursor: pointer;
  text-decoration: none;
}

.btn-primary {
  background: var(--dp-accent);
  color: var(--dp-white);
  border: none;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(13, 115, 119, 0.2);
}

.btn-primary:hover {
  background: var(--dp-blue);
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(13, 115, 119, 0.3);
  color: var(--dp-white);
}

.btn-primary:active {
  transform: translateY(-1px);
}

/* Sections */
section {
  padding: 100px 0;
}

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

.section-header h2 {
  font-size: 14px;
  color: var(--dp-accent);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 15px;
  font-weight: 700;
}

.section-header h3 {
  font-size: 42px;
  font-weight: 800;
  color: #1a3a52;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Services Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 40px;
}

.service-card {
  background: #ffffff;
  border-radius: 8px;
  overflow: hidden;
  transition: var(--dp-transition);
  border: 2px solid #e0e0e0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.05);
  border-color: var(--dp-accent);
}

.service-image {
  width: 100%;
  height: 240px;
  object-fit: cover;
}

.service-content {
  padding: 30px;
}

.service-card h4 {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 15px;
  color: #1a3a52;
}

.service-card p {
  color: #333333;
  margin-bottom: 25px;
  font-weight: 500;
}

.service-link {
  color: var(--dp-accent);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: 1px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--dp-transition);
}

.service-link::after {
  content: '→';
  transition: var(--dp-transition);
}

.service-link:hover {
  color: var(--dp-blue);
}

.service-link:hover::after {
  transform: translateX(8px);
}

/* Portfolio / Stats */
.portfolio {
  background: var(--dp-blue);
  color: var(--dp-white);
}

.portfolio .section-header h3 {
  color: var(--dp-white);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.portfolio-item {
  text-align: center;
  padding: 40px;
  background: rgba(255,255,255,0.05);
  border-radius: 8px;
  transition: var(--dp-transition);
}

.portfolio-item:hover {
  background: rgba(255,255,255,0.1);
}

.portfolio-item h4 {
  font-size: 48px;
  font-weight: 800;
  color: var(--dp-accent);
  margin-bottom: 10px;
}

.portfolio-item p {
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
  color: #ffffff;
  opacity: 0.95;
}

/* Features */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.feature-item {
  position: relative;
  height: 200px;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: 20px;
}

.feature-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  transition: var(--dp-transition);
}

.feature-item::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(transparent, rgba(0,0,0,0.8));
}

.feature-item h5 {
  position: relative;
  z-index: 1;
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.feature-item:hover .feature-image {
  transform: scale(1.1);
}

/* Trust Section */
.trust-section {
  background: var(--dp-light-gray);
  text-align: center;
}

.trust-section h2 {
  font-size: 36px;
  font-weight: 800;
  color: var(--dp-blue);
  margin-bottom: 20px;
}

.trust-section h3 {
  font-size: 18px;
  color: #555555;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  font-weight: 500;
}

/* Footer */
.footer {
  background: var(--dp-dark);
  color: var(--dp-white);
  padding: 60px 0;
  border-top: 4px solid var(--dp-accent);
}

.footer p {
  opacity: 0.6;
  font-size: 14px;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .navbar .container {
    height: 70px;
  }
  
  .navbar-brand .logo {
    height: 110px;
    max-width: 220px;
    margin-top: -25px;
  }
  
  .menu-toggle {
    display: flex;
  }
  
  .nav-menu {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: #ffffff;
    flex-direction: column;
    gap: 0;
    padding: 20px 0;
    border-bottom: 1px solid var(--dp-border);
    max-height: calc(100vh - 70px);
    overflow-y: auto;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 999;
  }
  
  .nav-menu.active {
    transform: translateX(0);
  }
  
  .nav-menu li {
    border-bottom: 1px solid var(--dp-border);
  }
  
  .nav-menu a {
    display: block;
    padding: 16px 20px;
    font-size: 14px;
    color: var(--dp-blue);
  }
  
  .nav-menu a::after {
    display: none;
  }
  
  .nav-menu a.active {
    background: var(--dp-light-gray);
    color: var(--dp-accent);
    font-weight: 700;
  }
  
  .hero-title {
    font-size: 32px;
    margin-bottom: 20px;
  }
  
  .hero-description {
    font-size: 16px;
    margin-bottom: 30px;
  }
  
  .hero-actions {
    flex-direction: column;
  }
  
  .btn {
    width: 100%;
    justify-content: center;
  }
  
  section {
    padding: 40px 0;
  }
  
  .section-header h3 {
    font-size: 28px;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .service-image {
    height: 200px;
  }
  
  .why-us-list {
    grid-template-columns: 1fr;
  }
  
  .subsidiary-grid {
    grid-template-columns: 1fr;
  }
  
  .portfolio-grid {
    grid-template-columns: 1fr;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .about-grid {
    grid-template-columns: 1fr;
  }
  
  .footer {
    padding: 40px 0;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }
  
  .navbar-brand .logo {
    height: 90px;
    max-width: 180px;
    margin-top: -20px;
  }
  
  .hero-title {
    font-size: 24px;
  }
  
  .hero-description {
    font-size: 14px;
  }
  
  .section-header h3 {
    font-size: 22px;
  }
  
  .service-card h4 {
    font-size: 16px;
  }
  
  .service-card p {
    font-size: 13px;
  }
  
  .btn {
    padding: 12px 20px;
    font-size: 13px;
  }
  
  .portfolio-item h4 {
    font-size: 18px;
  }
  
  .portfolio-item p {
    font-size: 13px;
  }
}
