/* globals.css */
@import url('https://fonts.googleapis.com/css2?family=Nunito+Sans:ital,opsz,wght@0,6..12,200..1000;1,6..12,200..1000&family=Open+Sans:ital,wght@0,300..800;1,300..800&display=swap');

@font-face {
  font-family: 'Ethnocentric-Regular';
  src: url("../fonts/Ethnocentric-Regular.woff") format("woff");
  font-display: swap;
}

@font-face {
  font-family: 'Ethnocentric-Italic';
  src: url("../fonts/Ethnocentric-Italic.woff") format("woff");
  font-display: swap;
}

:root {
  --font-size: 14px;
  --background: #ffffff;
  --nav-bg-rgb: 255, 255, 255;
  --foreground: #0a0a0a;
  --card: #ffffff;
  --card-foreground: #0a0a0a;
  --popover: #ffffff;
  --popover-foreground: #0a0a0a;
  --primary: #030213;
  --primary-foreground: #ffffff;
  --secondary: #f1f5f9;
  --secondary-foreground: #0f172a;
  --muted: #f1f5f9;
  --muted-foreground: #64748b;
  --accent: #f1f5f9;
  --accent-foreground: #0f172a;
  --destructive: #dc2626;
  --destructive-foreground: #ffffff;
  --border: #e2e8f0;
  --input: #e2e8f0;
  --ring: #94a3b8;
  --font-weight-medium: 500;
  --font-weight-normal: 400;
  --radius: 0.5rem;
}

.dark {
  --background: #0a0a0a;
  --nav-bg-rgb: 0, 0, 0;
  --foreground: #f5f5f5;
  --card: #111111;
  --card-foreground: #f5f5f5;
  --popover: #111111;
  --popover-foreground: #f5f5f5;
  --primary: #f5f5f5;
  --primary-foreground: #0a0a0a;
  --secondary: #262626;
  --secondary-foreground: #f5f5f5;
  --muted: #262626;
  --muted-foreground: #a1a1a1;
  --accent: #262626;
  --accent-foreground: #f5f5f5;
  --destructive: #dc2626;
  --destructive-foreground: #fef2f2;
  --border: #404040;
  --input: #404040;
  --ring: #737373;
}

* {
  border-color: var(--border);
  box-sizing: border-box;
}

body {
  background-color: var(--background);
  color: var(--foreground);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  margin: 0;
  padding: 0;
}

/* Typography */

.logo-font {
  font-family: 'Ethnocentric-Regular';
}

.logo-font-italic {
  font-family: 'Ethnocentric-Italic';
}

h1 {
  font-family: 'Ethnocentric-Regular';
  font-size: 2.25rem;
  font-weight: var(--font-weight-medium);
  line-height: 1.2;
  margin: 0;
}

h2 {
  font-family: 'Ethnocentric-Regular';
  font-size: 1.875rem;
  font-weight: var(--font-weight-medium);
  line-height: 1.3;
  margin: 0;
}

h3 {
  font-size: 1.5rem;
  font-weight: var(--font-weight-medium);
  line-height: 1.4;
  margin: 0;
}

h4 {
  font-size: 1.25rem;
  font-weight: var(--font-weight-medium);
  line-height: 1.5;
  margin: 0;
}

p {
  font-size: 1rem;
  font-weight: var(--font-weight-normal);
  line-height: 1.6;
  margin: 0;
}

label {
  font-size: 0.875rem;
  font-weight: var(--font-weight-medium);
  line-height: 1.5;
}

button {
  font-size: 0.875rem;
  font-weight: var(--font-weight-medium);
  line-height: 1.5;
  border: none;
  cursor: pointer;
}

button.border-2 {
  border-style: solid;
}

input, select, textarea {
  font-size: 0.875rem;
  font-weight: var(--font-weight-normal);
  line-height: 1.5;
  border: none;
  outline: none;
}

html {
  font-size: var(--font-size);
  scroll-behavior: smooth;
}

/* View Management */
.view {
  display: none;
}

.view.active {
  display: block;
}

/* Hero Animation Styles */
.hero-bg {
  transform: scale(1.1);
  transition: transform 1.5s ease-out;
}

.hero-overlay {
  opacity: 0;
  transition: opacity 1s ease-out;
}

.hero-title {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1.2s ease-out, transform 1.2s ease-out;
}

.hero-line {
  width: 0;
  transition: width 0.8s ease-out;
}

.hero-subtitle {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s ease-out, transform 1s ease-out;
}

.hero-buttons {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s ease-out, transform 1s ease-out;
}

.scroll-indicator {
  opacity: 0;
  transform: translateX(-50%) translateY(20px);
  transition: opacity 1s ease-out, transform 1s ease-out;
}

/* Scroll Animation Classes */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: opacity, transform;
}

.animate-on-scroll.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* Animation Delays */
.delay-100 { transition-delay: 0.1s; }
.delay-200 { transition-delay: 0.2s; }
.delay-300 { transition-delay: 0.3s; }
.delay-400 { transition-delay: 0.4s; }
.delay-500 { transition-delay: 0.5s; }
.delay-600 { transition-delay: 0.6s; }
.delay-700 { transition-delay: 0.7s; }
.delay-800 { transition-delay: 0.8s; }
.delay-900 { transition-delay: 0.9s; }
.delay-1000 { transition-delay: 1.0s; }
.delay-1100 { transition-delay: 1.1s; }
.delay-1200 { transition-delay: 1.2s; }
.delay-1300 { transition-delay: 1.3s; }
.delay-1400 { transition-delay: 1.4s; }
.delay-1500 { transition-delay: 1.5s; }

/* What to Expect Section - Sequential Animation */
.process-step-card {
  transition: all 0.5s ease;
}

.process-step-card .step-number {
  transition: all 0.5s ease;
}

.process-step-card .step-title {
  transition: all 0.5s ease;
}

.process-step-card .step-duration {
  transition: all 0.5s ease;
}

/* Process Step Sequential Animation Classes */
.process-step-card.active {
  transform: scale(1.05);
}

.process-step-card.active > div {
  border-color: rgb(249, 115, 22) !important; /* orange-500 */
  box-shadow: 0 10px 15px -3px rgba(249, 115, 22, 0.2), 0 4px 6px -2px rgba(249, 115, 22, 0.1);
}

.process-step-card.active .step-number {
  color: rgb(249, 115, 22) !important; /* orange-500 */
  transform: scale(1.1);
}

.process-step-card.active .step-title {
  color: rgb(249, 115, 22) !important; /* orange-500 */
}

.process-step-card.active .step-duration {
  color: rgb(234, 88, 12) !important; /* orange-600 */
  font-weight: 600;
}

/* Credentials Modal Styles */
#credentials-modal {
  backdrop-filter: blur(8px);
}

#credentials-modal .bg-background {
  background-color: var(--background);
  border: 1px solid var(--border);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  border-radius: 8px;
}

/* Project Video Player Styles */
#featured-video-player {
  transition: all 0.3s ease;
}

#featured-video-player:hover {
  transform: scale(1.02);
}

/* Footer Styles */
#site-footer {
  transition: all 0.3s ease;
}

/* Sub-navigation Styles */
#project-sub-navigation {
  transition: all 0.3s ease;
}

/* Service Card Hover Effects */
.service-card {
  transition: all 0.3s ease;
}

.service-card:hover {
  transform: translateY(-4px);
}

/* Project Card Hover Effects */
.project-card {
  transition: all 0.3s ease;
}

.project-card:hover {
  transform: translateY(-4px);
}

/* Navigation Styles */
.nav-link {
  position: relative;
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: rgb(249, 115, 22) !important; /* orange-500 */
}

/* Form Styles */
input:focus,
select:focus,
textarea:focus {
  border-color: rgb(249, 115, 22) !important; /* orange-500 */
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1);
}

/* Button Styles */
button {
  transition: all 0.2s ease;
}

button:hover {
  transform: translateY(-1px);
}

/* Video Modal Styles */
#videoModal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(8px);
  align-items: center;
  justify-content: center;
  z-index: 9999;
}
#videoModal.flex {
  display: flex !important;
}

#closeModal {
  top: 1rem !important;
  right: 1rem !important;
  padding: 0.5rem 1.0rem !important;
}

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

/* Utility Classes */
.shadow-orange-500\/20 {
  box-shadow: 0 10px 15px -3px rgba(249, 115, 22, 0.2), 0 4px 6px -2px rgba(249, 115, 22, 0.1);
}

.hover\:shadow-orange-500\/20:hover {
  box-shadow: 0 10px 15px -3px rgba(249, 115, 22, 0.2), 0 4px 6px -2px rgba(249, 115, 22, 0.1);
}

/* Custom scrollbar for webkit browsers */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--muted);
}

::-webkit-scrollbar-thumb {
  background: var(--muted-foreground);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgb(249, 115, 22); /* orange-500 */
}

/* Responsive Design Helpers */
@media (max-width: 768px) {
  h1 {
    font-size: 1.875rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  .animate-on-scroll {
    transform: translateY(20px);
  }

  #video-player {
    border-radius: 8px;
  }
}

/* Loading States */
.loading {
  opacity: 0.6;
  pointer-events: none;
}

/* Focus Styles for Accessibility */
button:focus,
a:focus,
input:focus,
select:focus,
textarea:focus {
  outline: 0px solid rgb(249, 115, 22);
  outline-offset: 2px;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
  .animate-on-scroll {
    transition: none;
    opacity: 1;
    transform: none;
  }
  
  .process-step-card {
    transition: none;
  }
  
  .hero-bg {
    transform: scale(1);
    transition: none;
  }
  
  .hero-overlay {
    opacity: 1;
    transition: none;
  }
  
  .hero-title,
  .hero-subtitle,
  .hero-buttons,
  .scroll-indicator {
    opacity: 1;
    transform: none;
    transition: none;
  }
  
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Print Styles */
@media print {
  nav {
    display: none;
  }
  
  .animate-on-scroll {
    opacity: 1;
    transform: none;
  }
  
  .view:not(.active) {
    display: none;
  }
  
  #site-footer {
    display: none;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  :root {
    --border: #333333;
    --muted-foreground: #333333;
  }
  
  .dark {
    --border: #cccccc;
    --muted-foreground: #cccccc;
  }
}

/* IMAGE MODAL OVERLAY */
#image-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.8);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10000;
}

/* show */
#image-modal.open {
  display: flex;
}

/* Center image */
#image-modal img {
  max-height: 100vh;
  max-width: 100vw;
  object-fit: contain;
  cursor: zoom-out;
}

/* Arrow buttons */
#image-modal button {
  background: rgba(0,0,0,0.8);
  border: none;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  padding: 0.5rem;
  cursor: pointer;
}
#modal-prev {
  left: 1rem;
}
#modal-next {
  right: 1rem;
}
#image-modal button i {
  stroke: #ffffff;
  opacity: 0.8;
}
#image-modal button:hover i {
  opacity: 1;
}

@media (max-width: 640px) {
  #image-modal img {
    /* make sure the full image is always visible */
    width: auto !important;
    height: auto !important;
    max-width: 100vw;
    max-height: 100vh;
    object-fit: contain;
  }
}
