@tailwind base;
@tailwind components;
@tailwind utilities;



@layer components {

  h1,h2,h3,h4 {
    @apply font-semibold mb-2 mt-6
  }

  h3 {
    @apply text-lg
  }

  ul {
    @apply list-disc pl-6 space-y-1 text-slate-600
  }

  ul li {
    @apply pl-1 text-base leading-6 pb-1
  }

  p {
  @apply text-slate-600 leading-normal font-normal mb-3 text-lg
  }

  strong {
    @apply font-semibold text-black
  }

  .button {
    @apply rounded-3xl bg-slate-800 py-3 px-4 border border-transparent text-center text-sm text-white transition-all shadow-md hover:shadow-lg focus:bg-slate-700 focus:shadow-none active:bg-slate-700 hover:bg-slate-700 active:shadow-none disabled:pointer-events-none disabled:opacity-50 disabled:shadow-none;
  }

  .button-outline {
    @apply rounded-3xl bg-transparent py-3 px-4 border border-gray-800 hover:bg-white text-center text-sm text-black transition-all shadow-md hover:shadow-lg focus:bg-white focus:shadow-none active:bg-white hover:bg-white active:shadow-none disabled:pointer-events-none disabled:opacity-50 disabled:shadow-none;
  }

  .button-light {
    @apply rounded-3xl bg-white py-3 px-4 border border-transparent text-center text-sm text-slate-800 transition-all shadow-md hover:shadow-lg focus:bg-gray-100 focus:shadow-none active:bg-gray-100 hover:bg-gray-100 active:shadow-none disabled:pointer-events-none disabled:opacity-50 disabled:shadow-none;
  }

  .button-outline-light {
    @apply rounded-3xl bg-transparent py-3 px-4 border border-white hover:bg-white text-center text-sm text-white transition-all shadow-md hover:shadow-lg focus:bg-white focus:text-slate-800 focus:shadow-none active:bg-white active:text-slate-800 hover:text-slate-800 active:shadow-none disabled:pointer-events-none disabled:opacity-50 disabled:shadow-none;
  }

  .button-secondary {
    @apply rounded-3xl bg-gray-200 py-3 px-4 border border-transparent text-center text-sm text-gray-700 transition-all shadow-md hover:shadow-lg focus:bg-gray-300 focus:shadow-none active:bg-gray-300 hover:bg-gray-300 active:shadow-none disabled:pointer-events-none disabled:opacity-50 disabled:shadow-none;
  }

  .button-small {
    @apply rounded-2xl py-1.5 px-3 border border-transparent text-center text-xs font-medium transition-all shadow-sm hover:shadow-md focus:shadow-none active:shadow-none disabled:pointer-events-none disabled:opacity-50 disabled:shadow-none;
  }

  .button-small-edit {
    @apply button-small bg-gray-200 text-gray-700 hover:bg-gray-300 focus:bg-gray-300 active:bg-gray-300;
  }

  .button-small-delete {
    @apply button-small bg-gray-200 text-red-600 hover:bg-gray-300 focus:bg-gray-300 active:bg-gray-300;
  }

  /* New sliding button styles */
  .button-sliding {
    @apply rounded-3xl bg-slate-800 py-3 px-4 border border-transparent text-center text-sm text-white transition-all shadow-md hover:shadow-lg focus:bg-slate-700 focus:shadow-none active:bg-slate-700 hover:bg-slate-700 active:shadow-none disabled:pointer-events-none disabled:opacity-50 disabled:shadow-none;
    position: relative;
    overflow: hidden;
  }

  .button-outline-sliding {
    @apply rounded-3xl bg-transparent py-3 px-4 border border-gray-800 hover:bg-white text-center text-sm text-black transition-all shadow-md hover:shadow-lg focus:bg-white focus:shadow-none active:bg-white hover:bg-white active:shadow-none disabled:pointer-events-none disabled:opacity-50 disabled:shadow-none;
    position: relative;
    overflow: hidden;
  }

  .button-light-sliding {
    @apply rounded-3xl bg-white py-3 px-4 border border-transparent text-center text-sm text-slate-800 transition-all shadow-md hover:shadow-lg focus:bg-gray-100 focus:shadow-none active:bg-gray-100 hover:bg-gray-100 active:shadow-none disabled:pointer-events-none disabled:opacity-50 disabled:shadow-none;
    position: relative;
    overflow: hidden;
  }

  .button-outline-light-sliding {
    @apply rounded-3xl bg-transparent py-3 px-4 border border-white hover:bg-white text-center text-sm text-white transition-all shadow-md hover:shadow-lg focus:bg-white focus:text-slate-800 focus:shadow-none active:bg-white active:text-slate-800 hover:text-slate-800 active:shadow-none disabled:pointer-events-none disabled:opacity-50 disabled:shadow-none;
    position: relative;
    overflow: hidden;
  }

  .button-secondary-sliding {
    @apply rounded-3xl bg-gray-200 py-3 px-4 border border-transparent text-center text-sm text-gray-700 transition-all shadow-md hover:shadow-lg focus:bg-gray-300 focus:shadow-none active:bg-gray-300 hover:bg-gray-300 active:shadow-none disabled:pointer-events-none disabled:opacity-50 disabled:shadow-none;
    position: relative;
    overflow: hidden;
  }

  /* Sliding text effect */
  .button-sliding .text-placeholder,
  .button-outline-sliding .text-placeholder,
  .button-light-sliding .text-placeholder,
  .button-outline-light-sliding .text-placeholder,
  .button-secondary-sliding .text-placeholder {
    visibility: hidden;
    white-space: nowrap;
  }

  .button-sliding .text-slide,
  .button-outline-sliding .text-slide,
  .button-light-sliding .text-slide,
  .button-outline-light-sliding .text-slide,
  .button-secondary-sliding .text-slide {
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    transition: opacity 0.3s ease, transform 0.3s ease;
    white-space: nowrap;
    pointer-events: none;
  }

  .button-sliding .text-slide:first-of-type,
  .button-outline-sliding .text-slide:first-of-type,
  .button-light-sliding .text-slide:first-of-type,
  .button-outline-light-sliding .text-slide:first-of-type,
  .button-secondary-sliding .text-slide:first-of-type {
    opacity: 1;
    transform: translateY(-50%);
  }

  .button-sliding .text-slide:last-of-type,
  .button-outline-sliding .text-slide:last-of-type,
  .button-light-sliding .text-slide:last-of-type,
  .button-outline-light-sliding .text-slide:last-of-type,
  .button-secondary-sliding .text-slide:last-of-type {
    opacity: 0;
    transform: translateY(50%);
  }

  /* More specific selectors for hover states */
  a.button-sliding:hover .text-slide:first-of-type,
  a.button-outline-sliding:hover .text-slide:first-of-type,
  a.button-light-sliding:hover .text-slide:first-of-type,
  a.button-outline-light-sliding:hover .text-slide:first-of-type,
  a.button-secondary-sliding:hover .text-slide:first-of-type {
    opacity: 0 !important;
    transform: translateY(-150%) !important;
  }

  a.button-sliding:hover .text-slide:last-of-type,
  a.button-outline-sliding:hover .text-slide:last-of-type,
  a.button-light-sliding:hover .text-slide:last-of-type,
  a.button-outline-light-sliding:hover .text-slide:last-of-type,
  a.button-secondary-sliding:hover .text-slide:last-of-type {
    opacity: 1 !important;
    transform: translateY(-50%) !important;
  }

  /* Alternative approach using nth-child */
  .button-sliding:hover .text-slide:nth-child(2),
  .button-outline-sliding:hover .text-slide:nth-child(2),
  .button-light-sliding:hover .text-slide:nth-child(2),
  .button-outline-light-sliding:hover .text-slide:nth-child(2),
  .button-secondary-sliding:hover .text-slide:nth-child(2) {
    opacity: 0 !important;
    transform: translateY(-150%) !important;
  }

  .button-sliding:hover .text-slide:nth-child(3),
  .button-outline-sliding:hover .text-slide:nth-child(3),
  .button-light-sliding:hover .text-slide:nth-child(3),
  .button-outline-light-sliding:hover .text-slide:nth-child(3),
  .button-secondary-sliding:hover .text-slide:nth-child(3) {
    opacity: 1 !important;
    transform: translateY(-50%) !important;
  }

  /* Enhanced buttons with subtitles - extending primary button styles */
  .button-with-subtitle {
    /* Reduced height with .25rem padding, wider for subtitle text */
    @apply py-1 px-4;
    min-width: 14rem; /* Increased width to accommodate 30-character text */
    position: relative;
    overflow: hidden;
  }

  .button-with-subtitle .button-content {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding-bottom: 0.75rem; /* Space at bottom for subtitle */
  }

  /* Unified text container for primary and subtitle text */
  .button-with-subtitle .text-slide {
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    transition: opacity 0.3s ease, transform 0.3s ease;
    white-space: nowrap;
    pointer-events: none;
    line-height: 1.1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
  }

  /* Primary text within unified container */
  .button-with-subtitle .text-slide .primary-text {
    font-size: inherit;
    line-height: 1.1;
  }

  /* Subtitle text within unified container */
  .button-with-subtitle .text-slide .subtitle-text {
    @apply font-normal;
    font-size: 0.7rem;
    line-height: 1.1;
    max-width: calc(100% - 0.5rem);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: center;
  }


  /* Animation states for unified text containers */
  .button-with-subtitle .text-slide:first-of-type {
    opacity: 1;
    transform: translateY(-50%);
  }

  .button-with-subtitle .text-slide:last-of-type {
    opacity: 0;
    transform: translateY(50%);
  }

  /* Unified animation on hover - both primary and subtitle move together */
  .button-with-subtitle:hover .text-slide:first-of-type,
  .button-with-subtitle:hover .text-slide:nth-child(2) {
    opacity: 0 !important;
    transform: translateY(-150%) !important;
  }

  .button-with-subtitle:hover .text-slide:last-of-type,
  .button-with-subtitle:hover .text-slide:nth-child(3) {
    opacity: 1 !important;
    transform: translateY(-50%) !important;
  }

  /* Color variations for different button types */
  .button-sliding.button-with-subtitle .subtitle-text {
    @apply text-gray-300;
  }

  .button-outline-sliding.button-with-subtitle .subtitle-text {
    @apply text-gray-500;
  }

  .button-secondary-sliding.button-with-subtitle .subtitle-text {
    @apply text-gray-500;
  }

  .button-light-sliding.button-with-subtitle .subtitle-text {
    @apply text-gray-500;
  }

  .button-outline-light-sliding.button-with-subtitle .subtitle-text {
    @apply text-gray-300;
  }

  /* Simple responsive navigation buttons */
  @media (max-width: 768px) {
    .button-with-subtitle {
      min-width: 12rem; /* Slightly smaller on tablets */
    }
    
    /* More space for subtitles on tablets */
    .responsive-subtitle {
      max-width: calc(100% - 0.25rem);
      font-size: 0.72rem;
    }
  }

  @media (max-width: 640px) {
    .button-with-subtitle {
      min-width: 10rem; /* Even smaller on mobile */
    }
    
    /* Optimized subtitle space on mobile */
    .responsive-subtitle {
      max-width: calc(100% - 0.25rem);
      font-size: 0.7rem;
    }
  }

  @media (max-width: 500px) {
    /* Specific layout for 500px and below */
    .navigation-buttons {
      flex-direction: column;
      gap: 0.75rem;
    }
    
    .home-button {
      width: 100% !important;
    }
    
    .nav-button {
      min-width: auto !important;
      flex: 1;
    }
    
    .navigation-buttons .nav-button:first-of-type {
      margin-right: 0.25rem;
    }
    
    .navigation-buttons .nav-button:last-of-type {
      margin-left: 0.25rem;
    }
    
    /* More space for subtitles on mobile - buttons are full width */
    .responsive-subtitle {
      max-width: calc(100% - 0.25rem) !important;
      font-size: 0.75rem !important;
    }
  }

  @media (max-width: 480px) {
    .button-with-subtitle {
      min-width: 8rem; /* Very small on small phones */
    }
  }

  .alert-success {
    @apply bg-green-50 border border-green-200 text-green-800 px-4 py-3 rounded-lg text-sm font-medium;
  }
  input[type=checkbox] {
    @apply h-4 w-4 rounded border-gray-300 text-indigo-600 focus:ring-indigo-600
  }
  input[type=radio] {
    @apply h-4 w-4 border-gray-300 text-indigo-600 focus:ring-indigo-600
  }
  .input {
    @apply block w-full rounded-md border-0 py-1.5 text-gray-900 shadow-sm ring-1 ring-inset ring-gray-300 placeholder:text-gray-400 focus:ring-2 focus:ring-inset focus:ring-indigo-600 sm:text-sm sm:leading-6
  }
  .label {
    @apply block mb-2 text-sm font-medium text-gray-900 dark:text-black
  }
  .container {
    max-width: none;
  }

  .testimonial-card {
    background-image: linear-gradient(rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.15)), url("/images/card-back-1.png");
    background-size: cover;
    background-position: center;
  }

  .contact-card {
    background-image: url("/assets/card-back-2-11ccbfae.png");
    background-size: cover;
    background-position: center;
  }

  .testimonial-card > *,
  .contact-card > * {
    position: relative;
    z-index: 2;
  }

  /* Hide hover indicators on touch devices */
  @media (hover: none) {
    .hover-indicator {
      display: none !important;
    }
  }

  /* Ensure video containers with hover indicators have proper overflow */
  .thumb-video .relative {
    overflow: hidden !important;
  }
  
  /* Ensure hover indicators are properly positioned and styled */
  .hover-indicator {
    position: absolute !important;
    bottom: 0.5rem !important;
    right: 0.5rem !important;
    width: 2.5rem !important;
    height: 2.5rem !important;
    background-color: rgba(0, 0, 0, 0.5) !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    opacity: 0.8 !important;
    z-index: 10 !important;
    pointer-events: none !important;
    transition: opacity 0.2s !important;
  }
  
  .hover-indicator img {
    width: 1.5rem !important;
    height: 1.5rem !important;
  }

  /* Prevent line breaks */
  .no-wrap {
    white-space: nowrap;
  }

  /* Hero text line-by-line animation */
  .hero-text-animated {
    overflow: hidden;
    opacity: 0;
  }

  .hero-text-animated.animation-ready {
    opacity: 1;
  }

  .hero-text-line {
    display: block;
    opacity: 0;
    transform: translateY(100%);
    filter: blur(8px);
    transition: opacity 0.8s ease, transform 0.8s ease, filter 0.8s ease;
  }

  .hero-text-line.animate-in {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0px);
  }


  /* Logo hover effect */
  .logo-container:hover .icon-image {
    @apply opacity-0;
  }

  .logo-container:hover .profile-image {
    @apply opacity-100;
  }
}


@layer base {


  @font-face {
    font-family: 'Playfair';
    src: url("/fonts/playfair/PlayfairDisplay-Bold.ttf") format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
  }

  @font-face {
    font-family: 'Playfair';
    src: url("/fonts/playfair/PlayfairDisplay-BoldItalic.ttf") format('truetype');
    font-weight: 700;
    font-style: italic;
    font-display: swap;
  }

  @font-face {
    font-family: 'Playfair';
    src: url("/fonts/playfair/PlayfairDisplay-Italic.ttf") format('truetype');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
  }

  @font-face {
    font-family: 'Playfair';
    src: url("/fonts/playfair/PlayfairDisplay-Medium.ttf") format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
  }

  @font-face {
    font-family: 'Playfair';
    src: url("/fonts/playfair/PlayfairDisplay-MediumItalic.ttf") format('truetype');
    font-weight: 500;
    font-style: italic;
    font-display: swap;
  }

  @font-face {
    font-family: 'Playfair';
    src: url("/fonts/playfair/PlayfairDisplay-Regular.ttf") format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
  }

  @font-face {
    font-family: 'Playfair';
    src: url("/fonts/playfair/PlayfairDisplay-SemiBold.ttf") format('truetype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
  }

  @font-face {
    font-family: 'Playfair';
    src: url("/fonts/playfair/PlayfairDisplay-SemiBoldItalic.ttf") format('truetype');
    font-weight: 600;
    font-style: italic;
    font-display: swap;
  }




@font-face {
  font-family: 'Fellix';
  src: url("/fonts/fellix/Fellix-Black.woff2") format('woff2'),
       url("/fonts/fellix/Fellix-Black.woff") format('woff');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Fellix';
  src: url("/fonts/fellix/Fellix-BlackItalic.woff2") format('woff2'),
       url("/fonts/fellix/Fellix-BlackItalic.woff") format('woff');
  font-weight: 900;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Fellix';
  src: url("/fonts/fellix/Fellix-Bold.woff2") format('woff2'),
       url("/fonts/fellix/Fellix-Bold.woff") format('woff');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Fellix';
  src: url("/fonts/fellix/Fellix-BoldItalic.woff2") format('woff2'),
       url("/fonts/fellix/Fellix-BoldItalic.woff") format('woff');
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Fellix';
  src: url("/fonts/fellix/Fellix-ExtraBold.woff2") format('woff2'),
       url("/fonts/fellix/Fellix-ExtraBold.woff") format('woff');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Fellix';
  src: url("/fonts/fellix/Fellix-ExtraBoldItalic.woff2") format('woff2'),
       url("/fonts/fellix/Fellix-ExtraBoldItalic.woff") format('woff');
  font-weight: 800;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Fellix';
  src: url("/fonts/fellix/Fellix-Light.woff2") format('woff2'),
       url("/fonts/fellix/Fellix-Light.woff") format('woff');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Fellix';
  src: url("/fonts/fellix/Fellix-LightItalic.woff2") format('woff2'),
       url("/fonts/fellix/Fellix-LightItalic.woff") format('woff');
  font-weight: 300;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Fellix';
  src: url("/fonts/fellix/Fellix-Medium.woff2") format('woff2'),
       url("/fonts/fellix/Fellix-Medium.woff") format('woff');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Fellix';
  src: url("/fonts/fellix/Fellix-MediumItalic.woff2") format('woff2'),
       url("/fonts/fellix/Fellix-MediumItalic.woff") format('woff');
  font-weight: 500;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Fellix';
  src: url("/fonts/fellix/Fellix-Regular.woff2") format('woff2'),
       url("/fonts/fellix/Fellix-Regular.woff") format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Fellix';
  src: url("/fonts/fellix/Fellix-RegularItalic.woff2") format('woff2'),
       url("/fonts/fellix/Fellix-RegularItalic.woff") format('woff');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Fellix';
  src: url("/fonts/fellix/Fellix-SemiBold.woff2") format('woff2'),
       url("/fonts/fellix/Fellix-SemiBold.woff") format('woff');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Fellix';
  src: url("/fonts/fellix/Fellix-SemiBoldItalic.woff2") format('woff2'),
       url("/fonts/fellix/Fellix-SemiBoldItalic.woff") format('woff');
  font-weight: 600;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'Fellix';
  src: url("/fonts/fellix/Fellix-Thin.woff2") format('woff2'),
       url("/fonts/fellix/Fellix-Thin.woff") format('woff');
  font-weight: 100;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Fellix';
  src: url("/fonts/fellix/Fellix-ThinItalic.woff2") format('woff2'),
       url("/fonts/fellix/Fellix-ThinItalic.woff") format('woff');
  font-weight: 100;
  font-style: italic;
  font-display: swap;
}




}