/* ====================================================================
   GLOBAL STYLING
   ==================================================================== */

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  box-sizing: border-box;
  font-size: 18px;
  /* Corporate sans-serif: clean, modern, and professional */
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  background-color: #fff;
  color: #333;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

*, *::before, *::after {
  box-sizing: inherit;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background-size: cover;
  background-repeat: no-repeat;
}

body.pushable, .pusher {
  overflow: visible !important;
}

/* --------------------------------------------------
   ROOT VARIABLES (Executive Corporate Palette)
-------------------------------------------------- */
:root {
  --logo-accent-color: #2c3e50;       /* Deep navy */
  --logo-text-color: #ffffff;         /* Crisp white text on dark */
  --logo-background-color: #ecf0f1;   /* Very light gray for contrast */
  --segment-bg-color: #ffffff;        /* Clean white for segments */
  --metadata-color: #7f8c8d;          /* Medium gray for metadata */
  --header-text-color: #ffffff;       /* White headers on dark backgrounds */
  --header-accent-color: #34495e;     /* Sophisticated blue-gray accent */
  --card-bg-color: #ffffff;           /* White cards with subtle borders */
  --card-text-color: #2c3e50;         /* Deep navy for card text */
  --footer-bg-color: #2c3e50;         /* Deep navy for footer */
  --footer-text-color: #bdc3c7;       /* Light silver for footer text */
  /* Subtle glow for header text in silver tones */
  --neon-glow-color-1: #bdc3c7;
  --neon-glow-color-2: #95a5a6;
}

/* ====================================================================
   LIGHT THEME FOR CASSETTE AND HOST
   ==================================================================== */

.cassette,
.host {
  font-weight: bold;
  padding: 5px 12px;
  letter-spacing: 1px;
  border-radius: 6px;
  display: inline-block;
  transition: background 0.3s, color 0.3s, transform 0.3s, box-shadow 0.3s;
}

/* Cassette: Crisp white with refined dark text */
.cassette {
  color: var(--logo-accent-color);
  background: #fff;
  border: 1px solid #bdc3c7;
  box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.07);
}

/* Host: Deep navy background with white text */
.host {
  color: var(--logo-text-color);
  background: var(--logo-accent-color);
  border: 1px solid var(--logo-accent-color);
  margin-left: -6px;
  box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1);
}

.logo {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 10px;
  cursor: pointer;
}

.logo:hover .host {
  transform: translateY(-2px);
  box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.15);
}

/* ====================================================================
   SEGMENTS (Semantic UI Overrides)
   ==================================================================== */

.ui.segment {
  background-color: var(--segment-bg-color) !important;
  color: #333;
  border-radius: 6px;
  padding: 20px;
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.06);
}

.ui.raised.raised.segment,
.ui.raised.raised.segments {
  box-shadow:
    0 1px 3px rgba(0, 0, 0, 0.1),
    0 1px 2px rgba(0, 0, 0, 0.06) !important;
}

/* ====================================================================
   MAIN MENU / SUBMENU
   ==================================================================== */

   /* ====================================================================
   FLOATING CHAT BUTTON
   ==================================================================== */
#floatingChatButton {
  position: fixed; z-index: 999;
  bottom: 20px;
  right: 20px;
  width: 120px;
  height: 60px;
  background: linear-gradient(135deg, var(--logo-accent-color), var(--header-accent-color));
  color: #fff;
  font-size: 2em;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transition: all 0.3s ease-in-out;
}

#floatingChatButton:hover {
  background: var(--header-accent-color);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

#floatingChatButton i {
  font-size: 1.8em;
}

/* ====================================================================
   CHAT MODAL
   ==================================================================== */
   .ui.modal#chatModal {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    border-radius: 0 !important;
    padding: 0 !important;
    background: rgba(226, 226, 226, 0.95) !important;
    color: #FFFFFF !important;
    z-index: 10000;
  }
  
  .ui.modal#chatModal .header {
    background: linear-gradient(135deg, var(--logo-accent-color), var(--header-accent-color));
    padding: 20px;
    font-size: 1.8em;
    border-radius: 0;
  }
  
  .ui.modal#chatModal .content {
    height: calc(100% - 60px); /* Adjust if header height changes */
    padding: 0;
    border-radius: 0;
  }
  
  .ui.modal#chatModal .content iframe {
    width: 100%;
    height: 100%;
    border: none;
  }
  
  .ui.modal#chatModal .close.icon {
    color: #fff !important;
    font-size: 1.5em !important;
    top: 12px !important;
    right: 12px !important;
  }
  

.ui.top.fixed.menu.main-menu {
  background: #000 !important;
  height: 60px;
  display: flex;
  align-items: center;
}

.ui.top.fixed.menu.main-menu .item {
  color: #ececec !important;
  font-size: 1.2rem !important;
  font-weight: bold !important;
}

.ui.menu .ui.dropdown .menu.inverted {
  background-color: #000 !important;
  color: #ececec !important;
  border: none !important;
  box-shadow: none !important;
}
.ui.menu .ui.dropdown .menu.inverted .item {
  color: #ececec !important;
}
.ui.menu .ui.dropdown .menu.inverted .item:hover {
  background-color: #333 !important;
  color: #fff !important;
}
.ui.menu .ui.dropdown .dropdown.icon {
  color: #ececec !important;
}

/* Sidebar submenu */
.ui.vertical.inverted.sidebar.menu .menu.inverted {
  background-color: #000 !important;
  color: #ececec !important;
  border: none !important;
}
.ui.vertical.inverted.sidebar.menu .menu.inverted .item {
  color: #ececec !important;
}
.ui.vertical.inverted.sidebar.menu .menu.inverted .item:hover {
  background-color: #333 !important;
  color: #fff !important;
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  font-size: 24px;
  color: #ececec;
  cursor: pointer;
}

@media only screen and (max-width: 767px) {
  .menu-toggle {
    display: block !important;
    position: relative;
    margin-left: auto;
  }
  .right.menu.computer.only {
    display: none !important;
  }
}

.pusher {
  overflow-x: hidden;
  overflow-y: auto;
  min-height: 100vh;
}

/* Responsive adjustments for cassette/host */
@media (max-width: 600px) {
  .cassette,
  .host {
    padding: 5px 10px;
    font-size: 14px;
    border-radius: 4px;
  }
  .host {
    margin-left: -5px;
  }
}

/* ====================================================================
   MAIN CONTENT
   ==================================================================== */

main {
  flex: 1 0 auto;
  padding: 0;
  width: 100%;
}

.main-content {
  margin-top: 60px;
}

/* ====================================================================
   MAIN HEADER (HERO SECTION)
   ==================================================================== */

.main-header {
  background: url('../images/dysto.jpg') no-repeat center center;
  background-size: cover;
  padding: 100px 0;
  margin: 0;
  color: var(--header-text-color);
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.6);
}

.main-header h1,
.main-header h2,
.main-header h3,
.main-header h4,
.main-header h5,
.main-header p {
  font-weight: bold;
  color: var(--header-accent-color);
  padding: 4px 8px;
  margin-left: -4px;
  letter-spacing: 0.5px;
  border: 2px solid var(--header-accent-color);
  border-radius: 4px;
}

/* A subtle silver glow effect on hero headers */
.main-header h1 {
  font-size: 4em;
  margin-bottom: 0.2em;
  text-transform: uppercase;
  animation: neonGlow 1.5s infinite alternate;
}

#hero-title {
  font-size: 4.0em;
}

@keyframes neonGlow {
  from {
    text-shadow:
      0 0 3px var(--neon-glow-color-1),
      0 0 6px var(--neon-glow-color-2);
  }
  to {
    text-shadow:
      0 0 6px var(--neon-glow-color-2),
      0 0 10px var(--neon-glow-color-1);
  }
}

.main-header p {
  font-size: 1.3em;
  max-width: 700px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .main-header {
    padding: 80px 0;
  }
  .main-header h1 {
    font-size: 2.5em;
  }
  .main-header p {
    font-size: 1em;
    padding: 0 20px;
  }
}

@media (max-width: 600px) {
  .main-header {
    padding: 60px 0;
  }
  .main-header h1 {
    font-size: 2em;
  }
}

/* ====================================================================
   SECTION INTRO STYLES
   ==================================================================== */

#introduction {
  padding: 60px 0;
  text-align: center;
}

#about-intro,
#personal-intro,
#radio-intro,
#enterprise-intro {
  padding: 100px 0;
  text-align: center;
  background: #f2f2f2;
  color: #333;
}

#personal-intro h1,
#radio-intro h1,
#enterprise-intro h1 {
  font-size: 2.2em;
  margin-bottom: 20px;
}

#personal-intro p,
#radio-intro p,
#enterprise-intro p {
  font-size: 1em;
  color: #555;
}

/* ====================================================================
   MAIN-HOME-SECTION (Top Headlines)
   ==================================================================== */

/* Prominent top headline area with increased vertical impact */
.main-home-section {
  min-height: 40vh;
  padding: 80px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  color: #01142b;
  background-color: #f9f9f9;
  position: relative;
  overflow: hidden;
  margin-bottom: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease-in-out;
  z-index: 1;
}

/* Optional subtle overlay for added depth */
.main-home-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(0,0,0,0.02), rgba(0,0,0,0.05));
  z-index: 0;
}

/* Ensure headline text sits above overlay */
.main-home-section > * {
  position: relative;
  z-index: 1;
}

/* Headline text styling */
.main-home-section h1 {
  font-size: 3.5em;
  font-weight: bold;
  text-transform: uppercase;
  margin: 0.2em 0;
  letter-spacing: 1px;
}

.main-home-section h2 {
  font-size: 2em;
  font-weight: normal;
  margin: 0.2em 0;
}

@media (max-width: 768px) {
  .main-home-section {
    padding: 60px 10px;
    min-height: 35vh;
  }
  .main-home-section h1 {
    font-size: 2.5em;
  }
  .main-home-section h2 {
    font-size: 1.6em;
  }
}

@media (max-width: 600px) {
  .main-home-section {
    padding: 50px 10px;
    min-height: 30vh;
  }
  .main-home-section h1 {
    font-size: 2em;
  }
  .main-home-section h2 {
    font-size: 1.4em;
  }
}

/* ====================================================================
   SIMPLE SECTION BACKGROUNDS
   ==================================================================== */

#target-users,
#stations,
#how-it-works,
#features,
#testimonials,
#pricing,
#call-to-action {
  position: relative;
  min-height: 50vh;
  padding: 60px 20px;
  background-color: #fafafa;
  color: #333;
  transition: background 0.3s ease-in-out;
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.03);
}

#target-users { background-color: #f6f6f6; }
#stations      { background-color: #efefef; }
#how-it-works  { background-color: #f2f2f2; }
#features      { background-color: #fff; }
#testimonials  { background-color: #fbfbfb; }
#pricing       { background-color: #f2f2f2; }
#call-to-action {
  min-height: 30vh;
  background-color: #ececec;
}

/* ====================================================================
   SECTION TITLES
   ==================================================================== */

.section-title {
  color: var(--header-accent-color);
  font-size: clamp(1.8rem, 2rem + 1vw, 3rem);
  font-weight: 800;
  letter-spacing: 0.5px;
  margin: 2rem auto;
  padding: 0.5rem 1rem;
  text-align: center;
  user-select: none;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
  .section-title {
    font-size: clamp(1.5rem, 1.8rem + 1vw, 2.2rem);
    margin: 1.5rem auto;
  }
}

/* ====================================================================
   INTRO TEXT
   ==================================================================== */

.intro-text {
  font-size: 1.2em;
  line-height: 1.6;
  color: #111;
  margin: 0 auto 20px;
  text-align: center;
  user-select: none;
  max-width: 80%;
  opacity: 0.9;
}

@media (max-width: 768px) {
  .intro-text {
    font-size: 1em;
    max-width: 95%;
  }
}

/* ====================================================================
   SEMANTIC UI SEGMENTS (OVERRIDES)
   ==================================================================== */

.ui.container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
}

.ui.segment {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 30px;
  margin: 20px 0;
  position: relative;
  border-radius: 6px;
  background-color: #fff !important;
  border: 0 !important;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.ui.segment h3 {
  font-size: 1.5em;
  color: #333;
}

.ui.segment p {
  font-size: 1em;
  color: #555;
}

.step-number h1 {
  font-size: 4em;
  font-weight: bolder;
  color: rgba(153,153,153,0.15);
  margin: 0;
  position: absolute;
  top: -40px;
  right: 0;
  padding: 15px;
}

/* ====================================================================
   CONTENT CONTAINERS
   ==================================================================== */

.content-site,
.content-layer,
.content-case {
  padding: 40px 20px;
  margin: 0 auto 40px;
  border-radius: 6px;
  position: relative;
  z-index: 2;
  background-color: #fff;
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.06);
}

/* ====================================================================
   STATION CARDS
   ==================================================================== */

.ui.card {
  position: relative;
  background-color: var(--card-bg-color);
  color: var(--card-text-color);
  cursor: pointer;
  border-radius: 10px;
  margin: 10px;
  transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out, border-color 0.3s ease-in-out;
  overflow: hidden;
}

.ui.card:hover {
  transform: translateY(-3px);
  border-color: #bdc3c7 !important;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15), 0 0 5px #bdc3c7;
}

.ui.card:focus {
  outline: none;
  border-color: #bdc3c7 !important;
  box-shadow: 0 0 0 8px rgba(189, 195, 199, 0.3);
}

.ui.card .image {
  position: relative;
}

.ui.card .image img {
  width: 100%;
  height: auto;
  display: block;
  filter: grayscale(80%);
  transition: filter 0.4s ease-in-out, transform 0.4s ease-in-out;
}

.ui.card:hover .image img {
  filter: grayscale(0%);
  transform: scale(1.02);
}

/* Play overlay icon */
.ui.card .play-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(1);
  opacity: 0;
  transition: opacity 0.4s ease-in-out;
  pointer-events: none;
}

.ui.card:hover .play-overlay {
  opacity: 1;
}

.ui.card .play-overlay .icon {
  color: rgba(255, 255, 255, 0.4);
  text-shadow: 0 0 3px rgba(0, 0, 0, 0.7);
}

.ui.card .content {
  padding: 10px;
}

.ui.card .content .header {
  font-size: 1.2em !important;
  color: #2c3e50;
  margin-bottom: 5px;
}

.ui.card .content .description {
  color: #7f8c8d;
  font-size: 0.9em;
}

@media (max-width: 600px) {
  .ui.card {
    width: 100%;
    margin: 10px 0;
  }
}

/* ====================================================================
   FAQ / ACCORDION
   ==================================================================== */

.faq-header {
  text-align: center;
  font-size: 2em;
  margin-bottom: 15px;
}

.faq-intro {
  text-align: center;
  font-size: 1em;
  color: #666;
  margin-bottom: 30px;
}

/* Tab menu */
.faq-menu {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 20px;
}

.tab-link {
  background-color: #f1f1f1;
  border: none;
  padding: 10px 15px;
  cursor: pointer;
  font-size: 1em;
  color: #333;
  margin: 5px;
  border-radius: 4px;
}

.tab-link.active {
  background-color: #666;
  color: #fff;
}

.tab-content {
  display: none;
}
.tab-content.active {
  display: block;
}

/* Accordion */
.accordion {
  width: 100%;
}

.accordion-item {
  border-bottom: 1px solid #ddd;
}

.accordion-title {
  padding: 15px;
  font-size: 1em;
  cursor: pointer;
  background-color: #f9f9f9;
  color: #333;
  position: relative;
}
.accordion-title::after {
  content: '+';
  position: absolute;
  right: 20px;
  font-size: 1.2em;
}
.accordion-title.active::after {
  content: '−';
}
.accordion-title:hover {
  background-color: #f1f1f1;
}

.accordion-content {
  padding: 15px;
  display: none;
  font-size: 0.9em;
  color: #555;
  background-color: #fafafa;
}

@media only screen and (max-width: 767px) {
  .faq-menu {
    flex-direction: column;
    align-items: center;
  }
  .tab-link {
    width: 100%;
    margin: 5px 0;
  }
}

/* Scroll to top button */
#scrollToTop {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: #666;
  color: #fff;
  border: none;
  padding: 12px;
  cursor: pointer;
  display: none;
  border-radius: 50%;
  font-size: 18px;
}

/* ====================================================================
   FOOTER
   ==================================================================== */

.footer {
  background-color: var(--footer-bg-color) !important;
  color: var(--footer-text-color) !important;
  padding: 30px 0;
  text-align: center;
  flex-shrink: 0;
  box-shadow: 0 -1px 3px rgba(0, 0, 0, 0.2);
}

footer.ui.vertical.footer.segment .links a {
  color: #aaaaaa;
  font-size: 12px;
  text-decoration: underline;
  margin: 0 5px;
}

@media (max-width: 600px) {
  footer.ui.vertical.footer.segment {
    padding: 10px 0;
    font-size: 10px;
  }
  footer.ui.vertical.footer.segment .menu .item {
    padding: 3px 6px;
    font-size: 10px;
  }
}

/* ====================================================================
   MODALS & OVERLAYS
   ==================================================================== */

.ui.modal {
  z-index: 1000 !important;
  transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
}

.ui.modal > .content {
  padding: 30px;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-height: 80vh;
  overflow-y: auto;
}

.ui.modal > .header {
  color: #444;
  font-size: 1.5em;
  font-weight: bold;
  margin-bottom: 15px;
  position: relative;
}

.ui.modal > .header::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -8px;
  transform: translateX(-50%);
  width: 40px;
  height: 2px;
  background-color: #bbb;
  border-radius: 2px;
}

/* Modal text */
.ui.modal .content p {
  color: #666;
  font-size: 1em;
  text-align: center;
  margin-bottom: 20px;
}

/* Pre/code blocks in modal */
.ui.modal .content pre {
  background-color: #f4f4f4;
  color: #333;
  padding: 15px;
  border-radius: 5px;
  width: 100%;
  white-space: pre-wrap;
  word-wrap: break-word;
  font-family: "Courier New", Courier, monospace;
  font-size: 1em;
  overflow-x: auto;
  max-height: 60vh;
}

#termsContent,
#privacyContent {
  max-height: 60vh;
  overflow-y: auto;
  font-size: small;
  white-space: pre-wrap;
  word-wrap: break-word;
}

@media (max-width: 600px) {
  .ui.modal > .content {
    padding: 20px;
  }
  .ui.modal .ui.button {
    width: 100%;
  }
  .ui.modal .actions {
    flex-direction: column;
    gap: 10px;
  }
}

/* ====================================================================
   ADDITIONAL STYLES
   ==================================================================== */

/* Toast notifications */
.toast {
  position: fixed;
  bottom: 20px;
  left: 50%;
  z-index: 999999999;
  transform: translateX(-50%);
  background-color: #2c3e50;
  color: #ececec;
  padding: 10px 20px;
  border-radius: 5px;
}

/* Button loading indicator */
.ui.button.loading {
  position: relative;
  pointer-events: none;
}

/* GDPR notification bar */
#gdpr-notification {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 1001;
  padding: 1em;
  background-color: rgba(0, 0, 0, 0.85);
  color: #fff;
  display: none;
}
#gdpr-notification .content {
  font-size: 1em;
  text-align: center;
  padding: 0.5em;
}
#gdpr-notification .actions {
  text-align: center;
  margin-top: 0.5em;
}
#gdpr-notification .ui.button {
  margin: 0 5px;
}
#gdpr-notification .links {
  text-align: center;
  margin-top: 10px;
}
#gdpr-notification .links a {
  color: #bbb;
  text-decoration: underline;
}

/* ====================================================================
   MAIN-HOME-HEADER (VIDEO BACKGROUND) - Optional
   ==================================================================== */

.main-home-header {
  position: relative;
  width: 100%;
  height: 60vh;
  margin-top: 60px;
  overflow: hidden;
}

.header-video {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.header-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.13);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.header-content {
  text-align: center;
  color: #fff;
}

.header-content h1 {
  font-size: 3em;
  margin-bottom: 0.5em;
}

.header-content h2 {
  font-size: 1.8em;
  margin-bottom: 1em;
}

.header-content p {
  font-size: 1.1em;
  max-width: 700px;
  margin: 0 auto;
}

/* For users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}
