/* Base styles */
:root {
  --background: #f8f8f8;
  --foreground: #0f0f0f;
  --card: #ffffff;
  --card-foreground: #0f0f0f;
  --popover: #ffffff;
  --popover-foreground: #0f0f0f;
  --primary: #1a1a1a;
  --primary-foreground: #fafafa;
  --secondary: #f4f4f5;
  --secondary-foreground: #1a1a1a;
  --muted: #f4f4f5;
  --muted-foreground: #757575;
  --accent: #f4f4f5;
  --accent-foreground: #1a1a1a;
  --destructive: #ef4444;
  --destructive-foreground: #fafafa;
  --border: #e5e5e5;
  --input: #e5e5e5;
  --ring: #1a1a1a;
  --radius: 0.5rem;

  /* Text colors */
  --text-gray-400: #9ca3af;
  --text-gray-500: #6b7280;
  --text-gray-600: #4b5563;
  --text-gray-700: #374151;
  --text-gray-800: #1f2937;
  --text-gray-900: #111827;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial,
    sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: -0.01em;
  color: var(--foreground);
  background-color: var(--background);
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Layout utilities */
.min-h-screen {
  min-height: 85vh;
}
.min-h-80vh {
  min-height: 70vh; /* Reduced height for the hero section */
}
.bg-f8f8f8 {
  background-color: var(--background);
}

/* Positioning */
.fixed {
  position: fixed;
}
.absolute {
  position: absolute;
}
.relative {
  position: relative;
}
.inset-0 {
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
}
.top-0 {
  top: 0;
}
.left-0 {
  left: 0;
}
.right-0 {
  right: 0;
}

/* Z-index */
.z-0 {
  z-index: 0;
}
.z-10 {
  z-index: 10;
}
.z-50 {
  z-index: 50;
}

/* Display */
.hidden {
  display: none;
}
.flex {
  display: flex;
}
.grid {
  display: grid;
}
.flex-col {
  flex-direction: column;
}
.items-center {
  align-items: center;
}
.justify-center {
  justify-content: center;
}
.justify-between {
  justify-content: space-between;
}
.justify-end {
  justify-content: flex-end;
}

/* Spacing */
.gap-1 {
  gap: 0.25rem;
}
.gap-2 {
  gap: 0.5rem;
}
.gap-4 {
  gap: 1rem;
}
.gap-6 {
  gap: 1.5rem;
}
.gap-8 {
  gap: 2rem;
}

.space-x-8 > * + * {
  margin-left: 2rem;
}
.space-y-8 > * + * {
  margin-top: 2rem;
}
.space-y-16 > * + * {
  margin-top: 4rem;
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}
.mb-1 {
  margin-bottom: 0.25rem;
}
.mb-2 {
  margin-bottom: 0.5rem;
}
.mb-3 {
  margin-bottom: 0.75rem;
}
.mb-4 {
  margin-bottom: 1rem;
}
.mb-6 {
  margin-bottom: 1.5rem;
}
.mb-8 {
  margin-bottom: 2rem;
}
.mb-12 {
  margin-bottom: 3rem;
}
.mt-2 {
  margin-top: 0.5rem;
}
.mt-8 {
  margin-top: 2rem;
}
.mt-20 {
  margin-top: 5rem;
}
.mr-2 {
  margin-right: 0.5rem;
}
.ml-1 {
  margin-left: 0.25rem;
}
.ml-auto {
  margin-left: auto;
}

.p-1 {
  padding: 0.25rem;
}
.py-1 {
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
}
.py-2 {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}
.py-4 {
  padding-top: 1rem;
  padding-bottom: 1rem;
}
.py-12 {
  padding-top: 3rem;
  padding-bottom: 3rem;
}
.py-20 {
  padding-top: 1.5rem; /* Reduced from 3rem to 1.5rem */
  padding-bottom: 3rem;
}
.px-4 {
  padding-left: 1rem;
  padding-right: 1rem;
}
.px-6 {
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}
.pt-24 {
  padding-top: 6rem;
}
.pb-2 {
  padding-bottom: 0.5rem;
}
.pb-8 {
  padding-bottom: 2rem; /* New class for reduced bottom padding */
}
.pb-16 {
  padding-bottom: 4rem;
}

/* Typography */
.text-xs {
  font-size: 0.75rem;
}
.text-sm {
  font-size: 0.875rem;
}
.text-base {
  font-size: 1rem;
}
.text-lg {
  font-size: 1.125rem;
}
.text-xl {
  font-size: 1.25rem;
}
.text-2xl {
  font-size: 1.5rem;
}
.text-3xl {
  font-size: 1.875rem;
}
.text-4xl {
  font-size: 2.25rem;
}

.font-light {
  font-weight: 300;
}
.font-medium {
  font-weight: 500;
}
.leading-relaxed {
  line-height: 1.625;
}
.tracking-wider {
  letter-spacing: 0.05em;
}
.text-left {
  text-align: left;
}
.text-center {
  text-align: center;
}
.text-balance {
  text-wrap: balance;
}

.text-gray-400 {
  color: var(--text-gray-400);
}
.text-gray-500 {
  color: var(--text-gray-500);
}
.text-gray-600 {
  color: var(--text-gray-600);
}
.text-gray-700 {
  color: var(--text-gray-700);
}
.text-gray-800 {
  color: var(--text-gray-800);
}
.text-gray-900 {
  color: var(--text-gray-900);
}
.text-white {
  color: #ffffff;
}

/* Borders */
.border-t {
  border-top-width: 1px;
  border-top-style: solid;
}
.border-b {
  border-bottom-width: 1px;
  border-bottom-style: solid;
}
.border-gray-200 {
  border-color: #e5e7eb;
}
.border-gray-300 {
  border-color: #d1d5db;
}
.border-none {
  border: none;
}
.rounded-md {
  border-radius: 0.375rem;
}

/* Effects */
.shadow-md {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.opacity-50 {
  opacity: 0.5;
}
.grayscale-85 {
  filter: grayscale(85%);
}

.transition-all {
  transition-property: all;
}
.transition-colors {
  transition-property: color, background-color, border-color;
}
.duration-300 {
  transition-duration: 300ms;
}

.hover-text-gray-600:hover {
  color: var(--text-gray-600);
}
.hover-text-gray-900:hover {
  color: var(--text-gray-900);
}
.hover-bg-gray-100:hover {
  background-color: #f3f4f6;
}

/* Background and images */
.bg-white {
  background-color: #ffffff;
}
.bg-gradient-to-l {
  background-image: linear-gradient(to left, transparent 10%, var(--background) 80%);
}

.object-cover {
  object-fit: cover;
}
.object-left {
  object-position: left;
}
.overflow-visible {
  overflow: visible;
}
.pointer-events-none {
  pointer-events: none;
}

.w-full {
  width: 100%;
}
.w-40 {
  width: 10rem;
}
.w-55-percent {
  width: 55%;
}
.h-screen {
  height: 100vh;
}
.h-full {
  height: 100%;
}
.h-3 {
  height: 0.75rem;
}
.h-4 {
  height: 1rem;
}
.h-5 {
  height: 1.25rem;
}
.w-3 {
  width: 0.75rem;
}
.w-4 {
  width: 1rem;
}
.w-5 {
  width: 1.25rem;
}

.max-w-md {
  max-width: 32rem;
}
.max-w-xl {
  max-width: 42rem;
}
.max-w-6xl {
  max-width: 72rem;
}

/* Editorial layout */
.editorial-layout {
  display: grid;
  grid-template-columns: [full-start] minmax(1.5rem, 1fr) [main-start] minmax(0, 75ch) [main-end] minmax(1.5rem, 1fr) [full-end];
}

.editorial-layout > * {
  grid-column: main;
}

.editorial-heading {
  font-weight: 300;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.editorial-subheading {
  font-weight: 400;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 0.85rem;
  color: rgba(0, 0, 0, 0.5);
  margin-bottom: 1rem;
}

/* Expertise items */
.expertise-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem 2rem;
}

.expertise-item {
  position: relative;
  padding: 0;
  transition: all 0.2s ease;
}

.expertise-title {
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--text-gray-800);
  margin-bottom: 0.75rem;
}

.expertise-description {
  color: var(--text-gray-700);
  line-height: 1.5;
  font-size: 1rem;
}

/* Hero grid */
.hero-grid {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 2rem;
}

/* Job items */
.job-title-container {
  display: flex;
  flex-direction: column;
  margin-bottom: 0.5rem;
}

.job-title {
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--text-gray-800);
  margin-bottom: 0.25rem;
}

.company-name {
  font-size: 1rem;
  color: var(--text-gray-600);
  font-weight: normal;
}

.job-period {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-gray-500);
  margin-bottom: 1rem;
}

.job-description {
  color: var(--text-gray-700);
  line-height: 1.625;
}

/* Buttons */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem 1.5rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

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

.button.primary:hover {
  background-color: #333333;
}

.button.outline {
  border: 1px solid #d1d5db;
  color: var(--text-gray-700);
}

.button.outline:hover {
  background-color: #f3f4f6;
}

/* Animation */
.animate-bounce {
  animation: bounce 1s infinite;
}

@keyframes bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-25%);
  }
}

/* Language selector */
.language-dropdown {
  display: none;
}

.language-dropdown.active {
  display: block;
}

/* Header scroll effect */
#main-header {
  background-color: rgba(248, 248, 248, 0.9);
  backdrop-filter: blur(12px);
}

#main-header.scrolled {
  background-color: rgba(248, 248, 248, 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* Responsive styles */
@media (min-width: 768px) {
  .md-flex {
    display: flex;
  }
  .md-flex-row {
    flex-direction: row;
  }
  .md-grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .md-text-lg {
    font-size: 1.125rem;
  }
  .md-text-2xl {
    font-size: 1.5rem;
  }
  .md-text-3xl {
    font-size: 1.875rem;
  }
  .md-text-4xl {
    font-size: 2.25rem;
  }
  .md-text-6xl {
    font-size: 3.75rem;
  }
  .md-py-32 {
    padding-top: 2rem; /* Reduced from 4rem to 2rem */
    padding-bottom: 4rem;
  }
  .md-px-12 {
    padding-left: 4rem; /* Increased from 3rem */
    padding-right: 4rem; /* Increased from 3rem */
  }
  .md-mb-0 {
    margin-bottom: 0;
  }
  .md-inline {
    display: inline;
  }
  .md-hidden {
    display: none;
  }

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

  .editorial-layout {
    grid-template-columns: [full-start] minmax(2.5rem, 1fr) [main-start] minmax(0, 75ch) [main-end] minmax(2.5rem, 1fr) [full-end];
  }
}

@media (min-width: 1024px) {
  .lg-text-7xl {
    font-size: 4.5rem;
  }
}

@media (max-width: 767px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .job-period-divider {
    display: none;
  }
}

.uppercase {
  text-transform: uppercase;
}

.object-cover.object-left {
  object-fit: cover;
  object-position: left;
  width: 100%;
  height: 100%;
}

/* Add this CSS rule at the end of the file to adjust the background image position on mobile */

/* Background image container */
.fixed .absolute.right-0.top-0.w-55-percent {
  width: 55%;
  height: 100vh;
  overflow: hidden;
  position: absolute;
  right: 0;
  top: 0;
}

/* Background image */
.fixed .absolute.right-0.top-0.w-55-percent img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left;
}

.fixed .absolute.right-0.top-0.w-55-percent {
  width: 55%;
  height: 100vh;
  overflow: hidden;
}

@media (max-width: 767px) {
  .fixed .absolute .object-cover.object-left {
    object-position: 80% center !important; /* Force right side positioning */
  }

  /* Ensure the container takes full width on mobile */
  .fixed .absolute.right-0.top-0.w-55-percent {
    width: 100% !important;
  }

  /* Adjust the gradient to ensure text remains readable */
  .fixed .absolute .bg-gradient-to-l {
    background-image: linear-gradient(to left, transparent 0%, var(--background) 60%) !important;
  }
}

/* Add this new CSS rule at the end of the file */
@media (max-width: 767px) {
  .mobile-image {
    object-position: 80% center !important; /* Show the right 20% of the image where you are visible */
  }
}

/* Add these styles to ensure the background image is properly displayed */
.fixed .absolute.right-0.top-0.w-55-percent {
  width: 55%;
  height: 100vh;
  overflow: hidden;
  position: absolute;
  right: 0;
  top: 0;
}

.fixed .absolute.right-0.top-0.w-55-percent img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left;
  display: block; /* Ensure the image is displayed as a block element */
}

/* Ensure the image is visible on mobile devices */
@media (max-width: 767px) {
  .fixed .absolute.right-0.top-0.w-55-percent {
    width: 100% !important;
  }

  .mobile-image {
    object-position: 80% center !important;
    display: block !important; /* Force display */
  }
}

/* Direct background image styling */
.background-image-container {
  position: fixed;
  top: 0;
  right: 0;
  width: 55%;
  height: 100vh;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.background-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left;
  opacity: 0.5;
  filter: grayscale(85%);
}

.background-image-container:after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to left, transparent 10%, var(--background) 80%);
}

@media (max-width: 767px) {
  .background-image-container {
    width: 100%;
  }

  .background-image {
    object-position: 80% center;
  }

  .background-image-container:after {
    background: linear-gradient(to left, transparent 0%, var(--background) 60%);
  }
}

/* Additional spacing for footer items */
footer .gap-6 {
  gap: 1.5rem;
}

footer .mx-3 {
  margin-left: 0.75rem;
  margin-right: 0.75rem;
}

/* Add this to ensure the footer layout works correctly */
@media (min-width: 768px) {
  .md\:flex-row {
    flex-direction: row;
  }

  .md\:mb-0 {
    margin-bottom: 0;
  }
}

.mx-2 {
  margin-left: 0.5rem;
  margin-right: 0.5rem;
}
