/* Base Styles */
:root {
  --font-sans: "Inter", sans-serif;
  --font-serif: "Playfair Display", serif;
  --color-black: #000;
  --color-white: #fff;
  --color-gray-200: #e5e7eb;
  --color-gray-400: #9ca3af;
  --color-gray-500: #6b7280;
  --color-gray-700: #374151;
  --color-gray-800: #1f2937;
  --color-zinc-800: #27272a;
  --color-zinc-900: #18181b;
  --color-zinc-950: #09090b;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px; /* Adjust based on header height */
  -webkit-text-size-adjust: 100%; /* Prevent font scaling in landscape */
}

body {
  font-family: var(--font-sans);
  background-color: var(--color-black);
  color: var(--color-white);
  line-height: 1.5;
  min-height: 100vh;
  overflow-x: hidden; /* Prevent horizontal scroll */
  width: 100%;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-serif);
  text-align: center;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Header & Navigation */
.fixed-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  transition: all 0.3s;
  padding: 1.5rem 0;
}

.fixed-header.scrolled {
  background-color: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(4px);
  padding: 1rem 0;
}

.desktop-nav {
  display: none;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.nav-items {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4rem;
  text-transform: uppercase;
  font-size: 0.875rem;
  letter-spacing: 0.1em;
}

.nav-link {
  color: var(--color-white);
  text-decoration: none;
  transition: all 0.3s;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.nav-link:hover {
  color: var(--color-gray-400);
}

.nav-link.active {
  color: var(--color-white);
  font-weight: 500;
  border-bottom: 1px solid var(--color-white);
  padding-bottom: 0.25rem;
}

.logo {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 1rem;
  margin: 0 4rem;
  color: var(--color-white);
  text-decoration: none;
  transition: all 0.3s;
}

.logo:hover {
  opacity: 0.9;
}

.mobile-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 0.5rem 0;
}

.logo-mobile {
  font-family: var(--font-serif);
  font-weight: 500;
  color: var(--color-white);
  text-decoration: none;
  transition: all 0.3s;
  font-size: 1.25rem;
  letter-spacing: 0.15em;
}

.logo-mobile:hover {
  opacity: 0.9;
}

.menu-button {
  background: none;
  border: none;
  color: var(--color-white);
  cursor: pointer;
  padding: 0.5rem;
  min-width: 44px; /* Minimum touch target size */
  min-height: 44px; /* Minimum touch target size */
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-menu {
  position: absolute;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(4px);
  transition: all 0.3s;
  overflow: hidden;
  max-height: 0;
}

.mobile-menu.open {
  max-height: 16rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--color-gray-800);
}

.mobile-menu-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.mobile-nav-link {
  text-align: left;
  color: var(--color-white);
  text-decoration: none;
  transition: all 0.3s;
  padding: 0.75rem 0; /* Increased touch target size */
  font-family: var(--font-sans);
  display: block;
}

.mobile-nav-link:hover {
  color: var(--color-gray-400);
}

.mobile-nav-link.active {
  color: var(--color-white);
  font-weight: 500;
  border-left: 2px solid var(--color-white);
  padding-left: 0.5rem;
}

/* Hero Section */
.hero-section {
  position: relative;
  height: 100vh;
  width: 100%;
  background-color: var(--color-black);
}

.hero-image-container {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-image {
  position: relative;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center 20%;
}

.desktop-image {
  background-image: url("hero-image-new.jpeg");
  display: none;
}

.mobile-image {
  background-image: url("hero-image.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  object-fit: contain;
}

.hero-text {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-text h1 {
  font-size: 3.75rem;
  font-family: var(--font-serif);
  letter-spacing: 0.2em;
  font-weight: 500;
  width: 100%;
}

.desktop-title {
  display: none;
}

.mobile-title {
  display: block;
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  animation: bounce 2s infinite;
}

.scroll-indicator svg {
  width: 2rem;
  height: 2rem;
  color: var(--color-white);
  opacity: 0.7;
}

/* Logo Bar */
.logo-bar {
  padding: 2.5rem 0;
  border-top: 1px solid var(--color-gray-800);
  border-bottom: 1px solid var(--color-gray-800);
}

.section-title {
  text-align: center;
  font-size: 1.5rem;
  margin-bottom: 2rem;
  width: 100%;
}

.section-title.light {
  text-transform: uppercase;
  font-size: 1.125rem;
  font-weight: 300;
}

.logo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  align-items: center;
  justify-items: center;
}

.logo-item {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.logo-container {
  position: relative;
  height: 5rem;
  width: 100%;
  max-width: 15rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.logo-container img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  margin: 0 auto;
}

/* Content Sections */
.content-section {
  padding: 4rem 1rem;
  scroll-margin-top: 6rem;
  text-align: center;
}

.dark-bg {
  background-color: var(--color-zinc-950);
}

.content-container {
  max-width: 48rem;
  margin: 0 auto;
  text-align: center;
}

.text-content {
  color: var(--color-gray-400);
  font-size: 0.875rem;
  text-align: center;
}

.text-content p {
  margin-bottom: 1rem;
  text-align: center;
}

.text-content p:last-child {
  margin-bottom: 0;
}

/* Company Cards */
.company-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
  background-color: var(--color-zinc-900);
  padding: 1.5rem;
  transition: background-color 0.3s;
  text-align: center;
}

.company-card:hover {
  background-color: rgba(39, 39, 42, 0.8);
}

.company-title {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  text-align: center;
}

.company-content p {
  color: var(--color-gray-400);
  font-size: 0.875rem;
  margin-bottom: 1rem;
  text-align: center;
}

.company-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.company-logo img {
  max-width: 100%;
  max-height: 8rem;
  object-fit: contain;
  margin: 0 auto;
}

/* Contact Section */
.contact-section {
  padding: 4rem 1rem;
  border-top: 1px solid var(--color-gray-800);
  scroll-margin-top: 6rem;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 4rem;
}

.social-link {
  color: var(--color-gray-400);
  transition: all 0.3s;
  padding: 0.5rem; /* Increased touch target size */
}

.social-link:hover {
  color: var(--color-white);
  transform: scale(1.1);
}

.contact-form {
  max-width: 32rem;
  margin: 0 auto;
  padding: 3rem 1rem;
  background-color: var(--color-zinc-900);
}

.form-header {
  text-align: center;
  margin-bottom: 2rem;
}

.form-title {
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 1.125rem;
}

.form-subtitle {
  color: var(--color-gray-400);
  font-size: 0.875rem;
}

.form-inputs {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.email-input {
  flex: 1;
  background-color: transparent;
  border: 1px solid var(--color-gray-700);
  color: var(--color-white);
  padding: 0.75rem 1rem; /* Increased for better touch */
  transition: all 0.3s;
  font-size: 16px; /* Prevent zoom on iOS */
}

.email-input:focus {
  border-color: var(--color-gray-500);
  outline: none;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.2);
}

.send-button {
  background-color: var(--color-white);
  color: var(--color-black);
  border: none;
  padding: 0.75rem 1.5rem; /* Increased for better touch */
  cursor: pointer;
  transition: all 0.3s;
  min-width: 80px;
}

.send-button:hover {
  background-color: var(--color-gray-200);
  transform: scale(1.05);
}

/* Footer */
.site-footer {
  padding: 1.5rem 0;
  border-top: 1px solid var(--color-gray-800);
  font-size: 0.75rem;
  color: var(--color-gray-500);
  text-align: center;
}

.footer-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
  justify-content: center;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

.animate-fade-in {
  opacity: 0;
  animation: fadeIn 0.8s ease-out forwards;
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Mobile-specific styles */
@media (max-width: 767px) {
  /* Mobile header styling */
  .fixed-header {
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
  }

  .logo-mobile {
    font-size: 1.25rem;
    letter-spacing: 0.15em;
    font-weight: 400;
  }

  /* Mobile hero section - UPDATED to align text in middle-right and increase size */
  .hero-text {
    align-items: center;
    justify-content: flex-end;
    padding-bottom: 0;
    padding-right: 10%;
  }

  .hero-text h1 {
    text-align: right; /* Changed from right to center */
    font-size: 3.5rem; /* Increased from 3rem to 3.5rem */
  }

  .mobile-title1 {
    display: block;
    text-align: right; /* Ensure text is centered */
  }
  .mobile-title2 {
    display: block;
    text-align: right;
    margin-left: 45%; /* Ensure text is centered */
  }

  /* Adjust logo positioning and size on mobile */
  .logo-shift-left-1,
  .logo-shift-left-2 {
    margin-left: 0;
  }

  .logo-container {
    margin-left: 10px;
    height: 6rem; /* Increased from 5rem to 6rem */
    max-width: 18rem; /* Increased from 15rem to 18rem */
  }

  /* Fix for email input on mobile */
  .form-inputs {
    flex-direction: column;
  }

  .email-input {
    margin-bottom: 1rem;
  }
}

/* Small mobile devices (less than 375px) */
@media (max-width: 374px) {
  .hero-text h1 {
    font-size: 3rem; /* Slightly smaller for very small screens */
  }

  .logo-mobile {
    font-size: 1.1rem; /* Smaller logo text for very small screens */
  }

  .container {
    padding: 0 0.75rem; /* Smaller padding on very small screens */
  }

  .logo-container {
    height: 5rem; /* Adjust logo size for very small screens */
  }

  .section-title {
    font-size: 1.25rem; /* Smaller section titles */
  }
}

/* Medium mobile devices (375px to 480px) */
@media (min-width: 375px) and (max-width: 480px) {
  .hero-text h1 {
    font-size: 3.25rem; /* Adjusted size for medium small screens */
  }
}

/* Larger mobile devices (481px to 767px) */
@media (min-width: 481px) and (max-width: 767px) {
  .hero-text h1 {
    font-size: 3.75rem; /* Larger text for larger mobile screens */
  }

  .logo-container {
    height: 6.5rem; /* Larger logos for larger mobile screens */
  }
}

/* Landscape orientation on mobile */
@media (max-width: 767px) and (orientation: landscape) {
  .hero-section {
    height: 100vh; /* Ensure full height even in landscape */
  }

  .hero-text h1 {
    font-size: 3rem; /* Adjusted size for landscape */
  }

  .mobile-image {
    background-position: center 30%; /* Adjust image position in landscape */
  }

  /* Ensure content is visible in landscape without scrolling too much */
  .content-section {
    padding: 3rem 1rem;
  }
}

/* Desktop styles */
@media (min-width: 768px) {
  .desktop-nav {
    display: block;
  }

  .mobile-nav {
    display: none;
  }

 .mobile-title1,
.mobile-title2 {
  display: inline;
  text-align: center;
  margin-left: 0;           /* Remove individual shifting */
  margin-right: 2px;        /* Reduce space between words */
  font-size: 150%;  /* Keep consistent size */
}

  .mobile-title {
    display: none;
  }

 .hero-text h1 {
  text-align: center;
  margin-left: 5%;          /* Shift the whole title slightly to the right */
  white-space: nowrap;      /* Prevent line break between the two spans */
}

  .hero-text {
    align-items: center;
    justify-content: center;
    padding-right: 0;
    padding-bottom: 0;
  }

  .desktop-image {
    display: block;
  }

  .mobile-image {
    display: none;
  }

  .logo-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .company-card {
    grid-template-columns: 2fr 1fr;
    text-align: left;
  }

  .company-content p,
  .company-title {
    text-align: left;
  }

  .footer-content {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }

  /* Restore the left margin adjustments for desktop */
  .logo-shift-left-1 {
    margin-left: -1.5rem;
  }

  .logo-shift-left-2 {
    margin-left: -2.25rem;
  }

  .logo-container {
    margin-left: 0;
  }
}
