/* Import Fonts */
@import url("https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;600&family=Raleway:wght@400;600&display=swap");

/* CSS Variables */
:root {
  /* Color Palette */
  --color-primary: #0077b6;
  --color-primary-light: #1a237e;
  --color-secondary: #fefae0;
  --color-tertiary: #e0f7fa;
  --color-hover: #0077b6;
  --color-accent: #a9d6e5;
  --color-accent-lighter: #e6f4fa;
  --color-text: #000;
  --color-text-2: #03045e;
  --color-text-light: #6b7280;
  --color-text-dark: #1f2937;
  --color-background: #03045e;
  --color-white: #fff;
  --color-light-bg: #f4f4f4;
  --color-bg-light: #f9fafb;
  --color-border-soft: #e5e7eb;
  --color-operator: #f5e6d3;    /* Deep navy blue */
  --color-service: #03045e;     /* Warm cream */
  --color-duration: #d4a5a5;    /* Dusty rose */

  /* Spacing */ 
  --spacing-unit: 1rem;
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 3rem;
  --spacing-compact: 1rem;
  --container-padding: 2rem;
  --grid-gap: 2rem;

  /* Layout */
  --header-height: 4rem;
  --border-radius: 16px;
  --card-width-desktop: 350px;
  --card-width-tablet: 300px;
  --card-shadow: 5px 5px 0 0 #888888;

  /* Typography */
  --font-primary: "Open Sans", sans-serif;
  --font-size-base: 0.938rem;
  --font-size-small: 0.813rem;
  --weight-regular: 400;
  --weight-semi-bold: 800;

  /* Animation */
  --transition-speed: 300ms;

  /* Z-Index */
  --z-tooltip: 10;
  --z-fixed: 100;
  --z-modal: 1000;
}

/* Responsive Typography */
@media screen and (min-width: 1024px) {
  :root {
    --font-size-base: 1rem;
  }
}

/* Modern CSS Reset */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Base Styles */
html {
  scroll-behavior: smooth;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-primary);
  font-size: var(--font-size-base);
  background-color: var(--color-white);
  color: var(--color-text);
  line-height: 1.6;
  padding-top: var(--header-height);
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition-speed) ease;
}

img {
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

/* Layout Utilities */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-unit);
}

/* Hero Section */
.service-hero {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  padding: var(--spacing-lg) 0;
  min-height: 50vh;
  display: flex;
  align-items: center;
}

.service-hero__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
  width: 100%;
}

.service-hero__content {
  max-width: 800px;
}

.service-hero__breadcrumb {
  margin-bottom: var(--spacing-md);
  color: var(--color-white);
  font-size: 0.875rem;
  opacity: 0.9;
}

.service-hero__breadcrumb a {
  color: var(--color-white);
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.service-hero__breadcrumb a:hover {
  text-decoration: underline;
  opacity: 1;
}

.service-hero__breadcrumb span {
  opacity: 0.8;
}

.service-hero__heading {
  color: var(--color-white);
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--spacing-sm);
  letter-spacing: -0.02em;
}

.service-hero__subheading {
  color: var(--color-white);
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1.4;
  margin-bottom: var(--spacing-md);
  opacity: 0.9;
}

.service-hero__description {
  color: var(--color-white);
  font-size: 1.125rem;
  line-height: 1.6;
  margin-bottom: var(--spacing-md);
  opacity: 0.85;
  max-width: 720px;
}

/* Projects Section */
.projects-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: calc(var(--spacing-unit) * 2);
}

/* Service Section */
.service-section {
  padding: 2rem 0;
  margin-bottom: calc(var(--spacing-unit) * 4);
  opacity: 0;
  transform: translateY(20px);
  animation: sectionFadeIn 0.5s ease forwards;
}

.service-title {
  font-size: 1.5rem;
  color: var(--color-text-dark);
  margin-bottom: calc(var(--spacing-unit) * 2);
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--color-primary);
}

/* Container styles */
.nav-container {
  position: sticky;
  top: var(--header-height);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(229, 229, 229, 0.5);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
  z-index: 99;
  width: 100%;
  transition: all 0.3s ease;
}

/* Progress bar styles */
.progress-bar {
  height: 3px;
  background: linear-gradient(90deg, #3b82f6 0%, #60a5fa 100%);
  width: 0;
  transition: width 0.3s ease;
}

/* Navigation styles */
nav {
  width: 100%;
  max-width: 1300px;
  margin: 0 auto;
  padding: 0.5rem 1rem;
}

/* Navigation tabs container */
.nav-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Individual tab styles */
.nav-tab {
  position: relative;
  padding: 0.625rem 1rem;
  color: #4b5563;
  font-weight: 500;
  font-size: 0.875rem;
  cursor: pointer;
  border: none;
  background: none;
  transition: all 0.3s ease;
  border-radius: 0.25rem;
  letter-spacing: 0.01em;
  white-space: nowrap;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: fit-content;
}

/* Hover effects */
.nav-tab:hover {
  color: #1f2937;
  background-color: rgba(243, 244, 246, 0.8);
}

/* Active indicator line */
.nav-tab::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, #3b82f6 0%, #60a5fa 100%);
  transform: scaleX(0);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 2px;
}

/* Active state styles */
.nav-tab.active {
  color: var(--color-background);
  font-weight: 600;
}

.nav-tab.active::after {
  transform: scaleX(1);
}

/* Dropdown button styles - hidden by default */
.mobile-dropdown-btn {
  display: none;
  width: 100%;
  padding: 0.75rem 1rem;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 0.375rem;
  color: var(--color-background);
  font-weight: 600;
  font-size: 0.9rem;
  text-align: left;
  cursor: pointer;
  position: relative;
  border: 1px solid grey;
}

.mobile-dropdown-btn::after {
  content: "▼";
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.8rem;
  transition: transform 0.3s ease;
}

.mobile-dropdown-btn.active::after {
  transform: translateY(-50%) rotate(180deg);
}

/* Small mobile devices */
@media screen and (max-width: 480px) {
  nav {
    padding: 0.5rem 2rem;
    position: relative;
  }

  .mobile-dropdown-btn {
    display: block;
  }

  .nav-tabs {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.375rem;
    margin-top: 0.25rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    flex-direction: column;
    z-index: 100;
  }

  .nav-tabs.show {
    display: block;
  }

  .nav-tab {
    width: 100%;
    padding: 0.75rem 1rem;
    justify-content: flex-start;
    font-size: 0.9rem;
  }

  .nav-tab::after {
    display: none;
  }
}

/* Tablet devices */
@media screen and (min-width: 481px) and (max-width: 1023px) {
  nav {
    padding: 0.5rem 1rem;
    position: relative;
  }

  .mobile-dropdown-btn {
    display: block;
  }

  .nav-tabs {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.375rem;
    margin-top: 0.25rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    padding: 0.5rem;
    z-index: 100;
  }

  .nav-tabs.show {
    display: block;
  }

  .nav-tab {
    width: 100%;
    padding: 0.75rem 1rem;
    justify-content: flex-start;
    font-size: 0.9rem;
  }

  .nav-tab::after {
    display: none;
  }
}

/* Large desktop styles - original desktop version */
@media screen and (min-width: 1024px) {
  nav {
    padding: 0.5rem 2rem;
  }

  .nav-tabs {
    gap: 1.5rem;
    display: flex;
  }

  .mobile-dropdown-btn {
    display: none;
  }

  .nav-tab {
    padding: 0.875rem 1.5rem;
    font-size: 0.8rem;
  }

  .nav-tab::after {
    display: block;
  }
}
/* Card Styles */
.card-container {
  display: grid;
  grid-template-columns: repeat(3, minmax(250px, 1fr));
  gap: var(--spacing-md);
}

.card {
  display: flex;
  flex-direction: column;
  background-color: var(--color-bg-light);
  border-radius: 0 25px 0px 0px;
  transition: transform var(--transition-speed) ease,
              box-shadow var(--transition-speed) ease;
  overflow: hidden;
  border: 1px solid black;
}

.card:hover {
  box-shadow: var(--card-shadow);
  transform: translate(-2px, -2px);
}

.card-image {
  position: relative;
  height: 180px;
  overflow: hidden;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-speed) ease;
}

.card:hover .card-image img {
  transform: scale(1.1);
}

.card-content {
  padding: 2rem 1rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  position: relative;
  z-index: 5;
  transition: opacity 0.3s ease-in-out 0.1s, /* Added delay for fade out */
              transform 0.3s ease-in-out 0.1s;
}

.card:hover .card-content {
  opacity: 0;
  transform: translateY(-20px);
  transition: opacity 0.3s ease-in-out,
              transform 0.3s ease-in-out;
}

.card-hover-content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to top, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.9) 100%);
  padding: 1.25rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(100%);
  transition: opacity 0s ease-in-out 0.1s, /* Added delay for fade in */
              visibility 0.3s ease-in-out 0.2s,
              transform 1s ease-in-out 0.2s;
  z-index: 10;
}

.card:hover .card-hover-content {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}


.card-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text-dark);
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.card-description {
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--color-text-light);
  margin-bottom: 0.5rem;
}

/* Card Tags */
.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.card-tag {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  border-radius: 10px;
  font-size: 0.75rem;
  font-weight: 500;
  transition: all var(--transition-speed) ease;
}

.card-tag.operator {
  background-color: var(--color-operator);
  color: var(--color-background);
}

.card-tag.service {
  background-color: var(--color-service);
  color: var(--color-white);
}

.card-tag.duration {
  background-color: var(--color-duration);
  color: var(--color-text);
}

.card-tag-static {
  font-family: var(--font-primary);
  font-size: 0.75rem;
  padding: 0.35rem 1rem;
  margin-bottom: 1rem;
  letter-spacing: 0.05em;
  border-radius: 4px;
  display: inline-block;
  position: relative;
  background-color: var(--color-service);
  color: var(--color-white);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.card-tag-static:hover {
  transform: translateY(-1px);
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15);
}

/* Card CTA */
.card-cta {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin-top: auto;
  color: var(--color-primary);
  font-weight: 500;
  font-size: 0.8rem;
  text-decoration: none;
  transition: all var(--transition-speed) ease;
}

.card-cta:hover {
  gap: 0.5rem;
}

/* Animations */
@keyframes sectionFadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes tabFadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.tab-content {
  animation: tabFadeIn 0.3s ease-out;
}

.hidden {
  display: none;
}

/* Responsive Styles */
@media screen and (min-width: 75em) {
  .service-hero {
    padding: var(--spacing-md) 0;
  }

  .service-hero__heading {
    font-size: 3.5rem;
    width: 1200px;
  }
}

@media screen and (max-width: 74.9375em) {
  .service-hero {
    padding: var(--spacing-lg) 0;
  }

  .service-hero__heading {
    font-size: 2.75rem;
  }

  .service-hero__subheading {
    font-size: 1.25rem;
  }

  .service-hero__description {
    font-size: 1rem;
  }
}

@media screen and (max-width: 768px) {
  .service-title {
    font-size: 1.25rem;
  }

  .card-container {
    grid-template-columns: 1fr;
  }

  .card-hover-content {
    position: static;
    transform: none;
    background: transparent;
    padding: 1rem;
    opacity: 1;
    visibility: visible;
  }

  .card-content {
    display: none;
  }
}

@media screen and (max-width: 47.9375em) {
  .service-hero {
    padding: var(--spacing-md) 1rem;
    min-height: auto;
  }

  .service-hero__container {
    padding: 0 var(--spacing-sm);
  }

  .service-hero__breadcrumb {
    font-size: 0.75rem;
    margin-bottom: var(--spacing-sm);
  }

  .service-hero__heading {
    font-size: 2rem;
    letter-spacing: -0.01em;
  }

  .service-hero__subheading {
    font-size: 1.125rem;
    margin-bottom: var(--spacing-sm);
  }

  .service-hero__description {
    font-size: 1rem;
    line-height: 1.5;
  }
}

@media screen and (max-width: 23.4375em) {
  .service-hero__heading {
    font-size: 1.75rem;
  }

  .service-hero__subheading {
    font-size: 1rem;
  }

  .service-hero__description {
    font-size: 0.875rem;
  }

  .service-title {
    font-size: 1rem;
  }

  .card-title {
    font-size: 1rem;
  }
}