/* Design System */
:root {
  /* Blue Palette */
  --color-primary: #2563eb;
  /* Royal Blue */
  --color-primary-dark: #1e3a8a;
  /* Deep Navy */
  --color-primary-light: #60a5fa;
  /* Sky Blue */
  --color-accent: #eff6ff;
  /* Ice Blue */
  --color-text-main: #0f172a;
  /* Slate 900 */
  --color-text-light: #64748b;
  /* Slate 500 */
  --color-bg: #ffffff;
  --color-white: #ffffff;

  /* Spacing */
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 2rem;
  --spacing-xl: 4rem;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
  --shadow-hover: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

/* Reset & Base */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--color-text-main);
  background-color: var(--color-bg);
  line-height: 1.6;
  overflow-x: hidden;
}

h1,
h2,
h3 {
  line-height: 1.2;
  font-weight: 700;
  color: var(--color-primary-dark);
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

/* Header & Sticky Logo */
.header {
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.85);
  /* Translucent white */
  backdrop-filter: blur(12px);
  /* Glassmorphism */
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  padding: var(--spacing-md) var(--spacing-lg);
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s ease;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  text-decoration: none;
}

.logo-text-wrapper {
  display: flex;
  flex-direction:
    column;
}

.logo-img {
  height: 50px;
  /* Adjust based on logo needs */
  width: auto;
  object-fit: contain;
}

.logo-text {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-primary);
  letter-spacing: -0.5px;
}

.logo-subtext {
  display: block;
  font-size: 12px;
  color: #555;
}


.nav-links {
  display: flex;
  gap: var(--spacing-lg);
}

.nav-link {
  font-weight: 500;
  color: var(--color-text-main);
}

.nav-link:hover {
  color: var(--color-primary);
}

/* Hero Section */
.hero {
  position: relative;
  height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--spacing-xl);
  background-color: #0d1b2a;
  /* Dark background */
  color: var(--color-white);
  overflow: hidden;
  z-index: 1;
}

/* Decorative background elements */
.hero::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60%;
  height: 60%;
  background-image: url('logo.png');
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  opacity: 0.2;
  filter: blur(10px);
  z-index: -1;
}

.hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.2) 0%, rgba(15, 23, 42, 0.8) 100%);
  z-index: -1;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.hero-title {
  font-size: 4rem;
  margin-bottom: var(--spacing-md);
  color: var(--color-white);
  animation: fadeInDown 1s ease-out;
}

.hero-subtitle {
  font-size: 1.25rem;
  margin-bottom: var(--spacing-lg);
  opacity: 0.9;
  font-weight: 300;
  animation: fadeInUp 1s ease-out 0.2s backwards;
}

.cta-button {
  display: inline-block;
  padding: 1rem 2rem;
  background-color: var(--color-white);
  color: var(--color-primary);
  font-weight: 600;
  border-radius: 50px;
  box-shadow: var(--shadow-lg);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  animation: fadeInUp 1s ease-out 0.4s backwards;
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

/* Introduction Section */
.section {
  padding: 100px var(--spacing-lg);
}

.intro {
  background-color: var(--color-white);
  text-align: center;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: var(--spacing-md);
  display: inline-block;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: var(--color-primary);
  margin: 10px auto 0;
  border-radius: 2px;
}

.intro-text {
  max-width: 700px;
  margin: 0 auto;
  font-size: 1.1rem;
  color: var(--color-text-light);
}

/* Portfolio / Works Section */
.works {
  background-color: var(--color-accent);
}

.works-grid {
  display: flex;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  gap: var(--spacing-lg);
  padding: var(--spacing-lg);
  max-width: 100%;
  -ms-overflow-style: none;
  /* IE and Edge */
  scrollbar-width: none;
  /* Firefox */
}

.works-grid::-webkit-scrollbar {
  display: none;
}

.work-card {
  flex: 0 0 auto;
  width: 350px;
  /* Fixed width */
  scroll-snap-align: center;
  background: var(--color-white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.work-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
}

.work-image {
  height: 200px;
  background-color: var(--color-primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  font-size: 3rem;
  /* Placeholder gradient */
  background: linear-gradient(45deg, var(--color-primary), var(--color-primary-light));
}

.work-content {
  padding: var(--spacing-lg);
}

.work-title {
  font-size: 1.25rem;
  margin-bottom: var(--spacing-sm);
  color: var(--color-primary-dark);
}

.work-desc {
  color: var(--color-text-light);
  font-size: 0.95rem;
}

/* Footer */
.footer {
  background-color: var(--color-text-main);
  color: var(--color-white);
  padding: var(--spacing-xl) var(--spacing-lg);
}

.contact-container {
  display: flex;
  flex-direction: row;
  /* Side by side */
  justify-content: space-between;
  align-items: center;
  gap: var(--spacing-xl);
  max-width: 1200px;
  margin: 0 auto var(--spacing-lg);
  text-align: left;
}

.contact-left {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

.contact-right {
  flex: 1;
  height: 300px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.contact-right iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.contact-info h3 {
  color: var(--color-primary-light);
  font-size: 1.2rem;
  margin-bottom: var(--spacing-sm);
}

.contact-info p {
  color: #cbd5e1;
  /* Light slate */
  font-size: 1rem;
}

.footer-text {
  opacity: 0.5;
  font-size: 0.9rem;
}

/* Responsive Footer adjustment */
@media (max-width: 768px) {
  .contact-container {
    flex-direction: column;
  }

  .contact-right {
    width: 100%;
    height: 250px;
  }

  .work-card,
  .gallery-item {
    width: 85vw;
    /* Wider cards on mobile */
  }
}

/* Animations */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }

  .nav-links {
    display: none;
    /* Simplify for mobile for now or change to a simple menu icon if requested */
  }
}

/* Gallery / Vehicles Section */
.gallery-grid {
  display: flex;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  gap: var(--spacing-md);
  padding: var(--spacing-lg);
  max-width: 100%;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.gallery-grid::-webkit-scrollbar {
  display: none;
}

.gallery-item {
  flex: 0 0 auto;
  width: 300px;
  /* Fixed width */
  scroll-snap-align: center;
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  aspect-ratio: 16/9;
}

.gallery-item:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-lg);
}

.gallery-img,
.gallery-video-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.3s;
}

.gallery-item::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 2rem;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
  z-index: 2;
}

.gallery-item:hover::after {
  opacity: 1;
}

.gallery-item.video-item::after {
  content: '▶';
  color: white;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  opacity: 0.8;
}

.gallery-item.video-item:hover::after {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.2);
}

/* Modal / Lightbox */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(5px);
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal.show {
  display: flex;
  opacity: 1;
}

.modal-content {
  max-width: 90%;
  max-height: 90vh;
  margin: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
  animation: zoomIn 0.3s;
}

.close-modal {
  position: absolute;
  top: 20px;
  right: 30px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  z-index: 2001;
  transition: color 0.3s;
}

.close-modal:hover {
  color: var(--color-primary-light);
}

@keyframes zoomIn {
  from {
    transform: scale(0.9);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}