/* css/style.css */

html {
    scroll-behavior: smooth;
}

/* Theme variables */
:root {
    --bg-dark: #000000;
    --bg-navbar: rgba(20, 20, 20, 0.85);
    --text-light: #ffffff;
    --text-muted: #A0A0A0;
    --button-primary-bg: #282828;
    --title-color: #f66048;
}

html:not(.dark) {
    --bg-dark: #fffef9;   /* base background */
    --bg-navbar: rgba(255, 246, 233, 0.85);
    --text-light: #000000;
    --text-muted: #555555;
    --button-primary-bg: #ffefd7; /* buttons and accents */
    --title-color: #000000;
}


body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* Το radial-gradient εφαρμόζεται inline στο HTML body style tag,
       οπότε δεν χρειάζεται background definition εδώ για το body. */
}

/* Utility classes inspired by Tailwind for consistent widths and centering */
.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.max-w-md { max-width: 28rem; width: 100%; }
.max-w-lg { max-width: 32rem; width: 100%; }
.max-w-xl { max-width: 36rem; width: 100%; }
.max-w-2xl { max-width: 42rem; width: 100%; }
.max-w-3xl { max-width: 48rem; width: 100%; }
.max-w-4xl { max-width: 56rem; width: 100%; }
.max-w-7xl { max-width: 80rem; width: 100%; }
.max-w-none { max-width: none; width: 100%; }

.text-gradient-primary {
    background-image: linear-gradient(to right, #f66048, #f87e6a); /* from-brand-primary to-brand-secondary */
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}

.hero-pill-badge {
    display: inline-block;
    font-size: 0.80rem;
    line-height: 1rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 0.375rem 1rem;
    border-radius: 0.375rem;
    border: 1px solid rgba(246, 96, 72, 0.7);
    color: #f66048;
}
.section-tag {
    display: inline-block;
    font-size: 0.80rem;
    line-height: 1rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 0.375rem 1rem;
    border-radius: 0.375rem;
    border: 1px solid rgba(246, 96, 72, 0.7);
    color: #f66048;
}

.cta-button-outline {
    display: inline-block;
    font-size: 0.95rem;
    line-height: 1.25rem;
    font-weight: 500;
    color: var(--text-light); /* text-light */
    background-color: transparent;
    border: 2px solid #f66048; /* brand-primary */
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem; /* rounded-lg */
    transition: color 300ms, background-color 300ms;
}
.cta-button-outline:hover {
    background-color: #f66048; /* brand-primary */
    color: var(--bg-dark); /* bg-dark */

}

.form-input {
    display: block;
    width: 100%;
    border-radius: 0.5rem; /* rounded-lg */
    background-color: var(--bg-navbar); /* bg-navbar */
    border: 1px solid transparent;
    padding: 0.75rem 1rem;
    color: var(--text-light); /* text-light */

    transition: border-color 200ms, box-shadow 200ms;
}
.form-input::placeholder {
    color: rgba(160, 160, 160, 0.7); /* text-muted με opacity */
}
.form-input:focus {
    border-color: #f66048; /* brand-primary */
    box-shadow: 0 0 0 1px #f66048; /* ring-1 ring-brand-primary */
    outline: none;
}

/* EXPLORE SOLUTIONS BUTTON*/
.btn-17,
.btn-17 *,
.btn-17 :after,
.btn-17 :before,
.btn-17:after,
.btn-17:before {
  border: 0 solid;
  box-sizing: border-box;
}

.btn-17 {
  -webkit-tap-highlight-color: transparent;
  -webkit-appearance: button;
  background-color: #f66048;
  background-image: none;
  color: var(--bg-dark);

  cursor: pointer;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif,
    "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.25rem;
  margin: 0;
  padding: 0.8rem 2.5rem;
  text-transform: uppercase;
  border-radius: 0.5rem;
  z-index: 0;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  position: relative;
}

.btn-17:disabled {
  cursor: default;
}

.btn-17:-moz-focusring {
  outline: auto;
}

.btn-17 svg {
  display: block;
  vertical-align: middle;
}

.btn-17 [hidden] {
  display: none;
}

.btn-17 .text-container {
  display: block;
  mix-blend-mode: difference;
  overflow: hidden;
  position: relative;
}

.btn-17 .text {
  display: block;
  position: relative;
  color: var(--bg-dark);
}



.btn-17:hover .text {
  animation: move-up-alternate 0.3s forwards;
}

@keyframes move-up-alternate {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(80%);
  }
  51% {
    transform: translateY(-80%);
  }
  100% {
    transform: translateY(0);
  }
}

.btn-17:after,
.btn-17:before {
  --skew: 0.2;
  background: var(--text-light);

  content: "";
  display: block;
  height: 102%;
  left: calc(-50% - 50% * var(--skew));
  pointer-events: none;
  position: absolute;
  top: -104%;
  transform: skew(calc(150deg * var(--skew))) translateY(var(--progress, 0));
  transition: transform 0.2s ease;
  width: 100%;
  z-index: -1;
}

.btn-17:after {
  --progress: 0%;
  left: calc(50% + 50% * var(--skew));
  top: 102%;
}

.btn-17:hover:before {
  --progress: 100%;
}

.btn-17:hover:after {
  --progress: -102%;
}

/*EXPERTISE CARDS*/
.container-expertise-cards {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
  padding: 40px 0;
}

.expertise-card.glass {
  position: relative;
  width: 180px;
  height: 200px;
  background: linear-gradient(rgba(255, 255, 255, 0.05), transparent);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 25px 25px rgba(0, 0, 0, 0.25);
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  transition: 
    transform 0.5s ease-in-out,
    margin 0.5s ease-in-out,
    box-shadow 0.5s ease-in-out;
  border-radius: 12px;
  margin: 0;
  backdrop-filter: blur(10px);
  transform: scale(1);
  cursor: pointer;
}

.container-expertise-cards:hover .expertise-card.glass {
  transform: scale(1.08) translateY(-6px);
  box-shadow: 0 25px 40px rgba(246, 96, 72, 0.3);
  transition: 
    transform 0.6s cubic-bezier(0.22, 1, 0.36, 1),
    margin 0.6s ease,
    box-shadow 0.6s ease;
}

.expertise-card.glass::before {
  content: attr(data-text);
  position: absolute;
  bottom: -40px;
  background-color: rgba(246, 96, 72, 0.95);
  color: var(--text-light);
  padding: 0.5rem 1rem;

  border-radius: 0.375rem;
  font-size: 0.75rem;
  font-weight: 500;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(10px);
  transition: 
    opacity 0.4s ease,
    transform 0.4s ease;
  pointer-events: none;
}

.expertise-card.glass:hover::before {
  opacity: 1;
  transform: translateY(0);
}

.expertise-icon {
  width: 3.5rem;
  height: 3.5rem;
  color: var(--text-muted);

  transition: color 0.3s ease;
  margin-bottom: 0.75rem;
}

.expertise-card.glass:hover .expertise-icon {
  color: #f66048;
}

.expertise-card-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-light);
  line-height: 1.3;
}

/*GET STARTED BUTTON*/
.btn-get-started {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 130px;
  height: 40px;
  border-radius: 20px;
  border: 1px solid #f66048;
  position: relative;
  overflow: hidden;
  transition: background-color 0.4s ease-in-out, color 0.4s ease-in-out;
  z-index: 1;
  background-color: transparent;
  font-weight: 500;
  font-size: 0.875rem;
  padding: 0 1rem;
}

.btn-get-started::before,
.btn-get-started::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50%;
  transition: transform 0.4s ease-in-out;
  z-index: -1;
}

.btn-get-started::before {
  left: 0;
  background: #f66048;
  transform: translateX(-100%);
}

.btn-get-started::after {
  right: 0;
  background: #f87e6a;
  transform: translateX(100%);
}

.btn-get-started:hover::before {
  transform: translateX(0);
}

.btn-get-started:hover::after {
  transform: translateX(0);
}

.btn-get-started span {
  color: #f66048;
  font-size: 15px;
  transition: color 0.3s ease-in;
  position: relative;
  z-index: 1;
}

.btn-get-started:hover span {
  color: var(--text-light);
}

@keyframes fadeIn {
  0% {
    opacity: 0;
    transform: scale(0.95);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.animate-fadeIn {
  animation: fadeIn 0.35s ease-out;
}


/*FEATURED SECTION*/

.feature-card {
  max-width: 100%;
  width: 100%;
  background-color: var(--bg-navbar);

  border-radius: 1rem;
  box-shadow: 0 10px 25px rgba(0,0,0,0.3);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-6px);
}

.feature-card img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.feature-card-content {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.feature-card-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text-light);
  margin-bottom: 0.5rem;
}

.feature-card-text {
  font-size: 0.875rem;
  color: var(--text-muted);

  flex-grow: 1;
  margin-bottom: 1rem;
}

.feature-card-link {
  color: #f66048;
  font-weight: 500;
  font-size: 0.875rem;
}

footer {
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* Utility classes tied to theme variables */
.bg-bg-dark { background-color: var(--bg-dark) !important; }
.bg-bg-navbar { background-color: var(--bg-navbar) !important; }
.text-text-light { color: var(--text-light) !important; }
.text-text-muted { color: var(--text-muted) !important; }
.bg-button-primary-bg { background-color: var(--button-primary-bg) !important; }
.title-color { color: var(--title-color) !important; }

h1, h2, h3, h4, h5, h6 {
  color: var(--text-light);
}

html:not(.dark) h1,
html:not(.dark) h2,
html:not(.dark) h3,
html:not(.dark) h4,
html:not(.dark) h5,
html:not(.dark) h6 {
  color: var(--title-color);
}

/* Theme switch */
 .switch {
  font-size: 14px;
  position: relative;
  display: inline-flex;
  align-items: center;
  width: 2.25em;
  height: 1.25em;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

 .slider {
  --background: #383838;
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--background);
  transition: .5s;
  border-radius: 30px;
}

 .slider:before {
  position: absolute;
  content: "";
  height: 0.9em;
  width: 0.9em;
  border-radius: 50%;
  left: 2px;
  bottom: 2px;
  box-shadow: inset 6px -3px 0px 0px #f66048;
  background: var(--background);
  transition: .5s;
}

input:checked + .slider {
  background-color: #2e2e2e;
}

 input:checked + .slider:before {
  transform: translateX(1em);
  box-shadow: inset 12px -3px 0px 12px #f66048;
}

/* Cards for services and pricing */
.service-card {
  perspective: 1000px;
  height: 26rem;
}

/* --- OLD FLIP-CARD STYLES (NOW REMOVED) --- */


/* 
==============================================
 NEW STYLES FOR PRICING PAGE
==============================================
*/

/* Section Heading Divider */
.section-heading-container {
  display: flex;
  align-items: center;
  text-align: center;
  gap: 1.5rem;
  padding: 1rem 0;
  /* Προσθήκη για να διαχειριστούμε την υπερχείλιση σωστά */
  overflow: hidden;
}

.section-heading-container::before,
.section-heading-container::after {
  content: '';
  flex-grow: 1;
  height: 1px;
  background-image: linear-gradient(to right, transparent, rgba(246, 96, 72, 0.4), transparent);
}

html:not(.dark) .section-heading-container::before,
html:not(.dark) .section-heading-container::after {
   background-image: linear-gradient(to right, transparent, rgba(0, 0, 0, 0.2), transparent);
}

.section-heading-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-light);
  letter-spacing: 0.05em;
  
  /* === START: Η ΜΑΓΙΚΗ ΑΛΛΑΓΗ ΕΙΝΑΙ ΕΔΩ === */
  white-space: nowrap;      /* 1. Εξασφαλίζει ότι ο τίτλος μένει σε μία γραμμή */
  overflow: hidden;         /* 2. Κρύβει ό,τι περισσεύει */
  text-overflow: ellipsis;  /* 3. Προσθέτει "..." στο τέλος του κρυμμένου κειμένου */
  max-width: 80%;           /* 4. Περιορίζει το πλάτος του τίτλου για να υπάρχει χώρος για τις γραμμές */
  flex-shrink: 0;           /* 5. Αποτρέπει το flex item από το να συρρικνωθεί */
  /* === END: Η ΜΑΓΙΚΗ ΑΛΛΑΓΗ ΕΙΝΑΙ ΕΔΩ === */
}

/* Solid Call-to-Action Button for New Pricing Cards */
.cta-button-solid {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0.625rem 1.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    text-align: center;
    border-radius: 9999px; /* rounded-full */
    
    background-color: var(--text-light);
    color: var(--bg-dark);
    border: 2px solid var(--text-light);

    transition: background-color 200ms, color 200ms, border-color 200ms;
}

.cta-button-solid:hover {
    background-color: transparent;
    color: var(--text-light);
    border-color: var(--text-light);
}

/* Layout for pricing card collections */
.pricing-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
}

/* Light theme overrides so plan cards don't stay white */
html:not(.dark) .plan-starter,
html:not(.dark) .plan-engine,
html:not(.dark) .plan-domination {
    background-color: var(--bg-navbar);
}

/* Animated border wrapper for highlighted pricing card */
.highlight-card-wrapper {
    position: relative;
    z-index: 0;
    border-radius: 1.5rem; /* matches rounded-3xl */
    overflow: visible;
}
.highlight-card-wrapper::before {
    content: "";
    position: absolute;
    inset: 0;
    border: 2px solid #f66048;
    border-radius: inherit;
    z-index: -1;
    pointer-events: none;
}
.highlight-card-wrapper .pricing-card {
    border-radius: inherit;
    overflow: hidden;
}

.most-chosen-badge {
    position: absolute;
    top: -0.75rem;
    right: 1rem;
    background-color: var(--bg-dark);
    color: #f66048;
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.25rem 0.5rem;
    border-radius: 9999px;
    border: 1px solid #f66048;
    z-index: 10;
}

/* Improve pricing card border visibility on light theme */
html:not(.dark) .flex.flex-col.bg-bg-navbar {
    border-color: rgba(0, 0, 0, 0.1) !important; /* Use important to override Tailwind inline classes */
}

/* Glassmorphism effect for pricing cards */
.pricing-card.glass {
    background: rgba(255, 255, 255, 0.06) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25) !important;
    backdrop-filter: blur(12px) saturate(160%);
    -webkit-backdrop-filter: blur(12px) saturate(160%);
    transition: box-shadow 0.5s ease, border-color 0.5s ease;
}

html:not(.dark) .pricing-card.glass {
    background: rgba(255, 255, 255, 0.4) !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
}

.pricing-card.glass:hover {
    box-shadow: 0 8px 40px rgba(246, 96, 72, 0.35) !important;
    border-color: rgba(246, 96, 72, 0.4) !important;
}

/* Mobile hamburger animation */
.hamburger {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.hamburger-line {
  width: 24px;
  height: 2px;
  background-color: currentColor;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.hamburger-line + .hamburger-line {
  margin-top: 5px;
}
.hamburger.open .hamburger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger.open .hamburger-line:nth-child(2) {
  opacity: 0;
}
.hamburger.open .hamburger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Desktop glass navigation bar */
@media (min-width: 768px) {
  .glass-nav {
    background: rgba(20, 20, 20, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
  }

  html:not(.dark) .glass-nav {
    background: rgba(255, 255, 255, 0.35);
    border: 1px solid rgba(0, 0, 0, 0.1);
  }
}

/* Navigation link underline animation */
.nav-link {
  position: relative;
  transition: color 0.3s;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background-color: #f66048;
  transition: width 0.3s;
}
.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}
.nav-link.active {
  color: #f66048;
}

/* Responsive adjustments */
@media (max-width: 640px) {
    .section-heading-container {
        gap: 0.75rem; /* Μειώνουμε λίγο το κενό */
    }
    .section-heading-title {
        font-size: 1.125rem; /* Μικραίνουμε λίγο τη γραμματοσειρά για καλύτερη εφαρμογή */
        max-width: 100%;
    }
}


@media (max-width: 480px) {
  .expertise-card.glass {
    width: 100%;
  }
}

@media (min-width: 481px) and (max-width: 640px) {
  .container-expertise-cards {
    gap: 1rem;
  }
  .expertise-card.glass {
    width: 48%;
  }
}

@media (min-width: 641px) and (max-width: 1023px) {
  .expertise-card.glass {
    width: 160px;
  }
}
