/* ==========================================================================
   Valis Corp S.A.C. - Custom Design System & Bulma Overrides
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800&display=swap');

:root {
  /* Design Tokens - Light Theme */
  --primary-color: #041632;       /* Dark Navy Blue */
  --accent-color: #D4AF37;        /* Gold Accent */
  --accent-hover: #bfa032;        /* Darker Gold */
  --bg-color: #F7F7F7;            /* Light gray background */
  --card-bg: #E5E4E2;             /* Platinum card background */
  --card-border: rgba(4, 22, 50, 0.08);
  --text-color: #041632;          /* Navy blue text */
  --text-muted: #556c8c;
  --text-muted-dark: #334155;     /* Slate-700 for high readability on light backgrounds */
  
  --navbar-bg: rgba(4, 22, 50, 0.95);
  --navbar-text: #F7F7F7;
  --footer-bg: #041632;
  --footer-text: #E5E4E2;
  
  --glow-shadow: 0 4px 20px rgba(212, 175, 55, 0.15);
  --card-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
  --card-shadow-hover: 0 15px 30px rgba(4, 22, 50, 0.15);

  /* Solutions problem/solution labels */
  --problem-bg: rgba(108, 117, 125, 0.1);
  --problem-text: #495057;
  --problem-border: rgba(108, 117, 125, 0.25);

  --solution-bg: rgba(212, 175, 55, 0.1);
  --solution-text: #8c6c10;
  --solution-border: rgba(212, 175, 55, 0.3);
}

[data-theme="dark"] {
  /* Design Tokens - Dark Theme */
  --primary-color: #E5C158;       /* Lighter Gold for highlights */
  --accent-color: #D4AF37;        /* Gold Accent */
  --accent-hover: #e5c158;        /* Lighter Gold */
  --bg-color: #020B18;            /* Deep Space Navy */
  --card-bg: #0A2246;             /* Cobalto Navy Card */
  --card-border: rgba(212, 175, 55, 0.1);
  --text-color: #F7F7F7;          /* Platinum text */
  --text-muted: #a0aec0;          /* Gray text */
  --text-muted-dark: #a0aec0;     /* Slate-400 for high readability on dark backgrounds */
  
  --navbar-bg: rgba(2, 11, 24, 0.95);
  --navbar-text: #F7F7F7;
  --footer-bg: #010710;
  --footer-text: #E5E4E2;
  
  --glow-shadow: 0 4px 20px rgba(212, 175, 55, 0.3);
  --card-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
  --card-shadow-hover: 0 15px 30px rgba(212, 175, 55, 0.15);

  /* Solutions problem/solution labels */
  --problem-bg: rgba(148, 163, 184, 0.12);
  --problem-text: #94a3b8;
  --problem-border: rgba(148, 163, 184, 0.25);

  --solution-bg: rgba(212, 175, 55, 0.12);
  --solution-text: #D4AF37;
  --solution-border: rgba(212, 175, 55, 0.3);
}

/* Base Styles */
html {
  scroll-behavior: smooth;
  background-color: var(--bg-color);
  transition: background-color 0.4s ease;
}

body {
  font-family: 'Montserrat', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: background-color 0.4s ease, color 0.4s ease;
  overflow-x: hidden;
}

/* Headings & Text Color Overrides */
.title, .subtitle {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  transition: color 0.4s ease;
}

.title {
  color: var(--text-color) !important;
}

.subtitle {
  color: var(--text-muted-dark) !important;
}

.title.is-size-1 {
  font-weight: 800;
  letter-spacing: -0.5px;
}

/* Custom Utilities */
.text-accent {
  color: var(--accent-color) !important;
}

.bg-primary {
  background-color: #041632 !important;
}

.bg-secondary-section {
  background-color: var(--card-bg);
  transition: background-color 0.4s ease;
}

/* Header & Navbar Custom Styles */
.navbar {
  background-color: var(--navbar-bg) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding: 0.5rem 0;
  position: fixed !important;
  width: 100%;
  top: 0;
  z-index: 1000;
  transition: background-color 0.4s ease, box-shadow 0.4s ease;
}

.navbar.is-scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  padding: 0.2rem 0;
}

.navbar-item, .navbar-link {
  color: var(--navbar-text) !important;
  font-weight: 500;
  transition: color 0.3s ease;
}

.navbar-item:focus, .navbar-item:hover, .navbar-link:focus, .navbar-link:hover {
  background-color: transparent !important;
  color: var(--accent-color) !important;
}

.navbar-burger {
  color: var(--navbar-text) !important;
}

.navbar-burger:hover {
  background-color: rgba(255, 255, 255, 0.05) !important;
}

/* Theme Toggle Control styling */
.theme-switcher {
  display: inline-flex;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 30px;
  padding: 3px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  margin-left: 1rem;
}

.theme-btn {
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.6);
  border-radius: 20px;
  padding: 6px 14px;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.theme-btn:hover {
  color: var(--navbar-text);
}

.theme-btn.is-active {
  background: var(--accent-color);
  color: #041632 !important;
  font-weight: 600;
  box-shadow: 0 2px 10px rgba(212, 175, 55, 0.4);
}

/* Hero Section */
.hero {
  background: linear-gradient(135deg, #020B18 0%, #041632 50%, #0A2246 100%);
  color: #F7F7F7 !important;
  position: relative;
  overflow: hidden;
  padding-top: 6rem;
}

/* Force strong text inside the dark hero section to be bright white */
.hero strong {
  color: #FFF !important;
}

/* Decorative grid pattern on Hero */
.hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: linear-gradient(rgba(212, 175, 55, 0.04) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(212, 175, 55, 0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  background-position: center center;
  pointer-events: none;
}

.hero-glow {
  position: absolute;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.15) 0%, rgba(212, 175, 55, 0) 70%);
  top: 10%;
  right: -5%;
  pointer-events: none;
  filter: blur(40px);
}

.hero-glow-2 {
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(4, 22, 50, 0.4) 0%, rgba(2, 11, 24, 0) 70%);
  bottom: -10%;
  left: -10%;
  pointer-events: none;
  filter: blur(50px);
}

/* Custom Card Component */
.card {
  background-color: var(--card-bg) !important;
  color: var(--text-color) !important;
  border-radius: 14px !important;
  border: 1px solid var(--card-border);
  box-shadow: var(--card-shadow);
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1),
              box-shadow 0.3s cubic-bezier(0.25, 0.8, 0.25, 1),
              border-color 0.3s ease,
              background-color 0.4s ease;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--card-shadow-hover);
  border-color: var(--accent-color);
}

.card-content {
  padding: 2.25rem !important;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.card-body-text {
  color: var(--text-muted-dark);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  transition: color 0.4s ease;
}

.card-title {
  font-weight: 700;
  font-size: 1.4rem;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Buttons Styling */
.button.is-accent {
  background-color: var(--accent-color) !important;
  color: #041632 !important;
  font-weight: 600;
  border: 1px solid var(--accent-color);
  transition: all 0.3s ease;
  box-shadow: var(--glow-shadow);
}

.button.is-accent:hover {
  background-color: var(--accent-hover) !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
}

.button.is-accent:active {
  transform: translateY(0);
}

.button.is-accent-outline {
  background-color: transparent !important;
  color: var(--accent-color) !important;
  border: 2px solid var(--accent-color) !important;
  font-weight: 600;
  transition: all 0.3s ease;
}

.button.is-accent-outline:hover {
  background-color: var(--accent-color) !important;
  color: #041632 !important;
  box-shadow: var(--glow-shadow);
  transform: translateY(-2px);
}

.button.is-primary-custom {
  background-color: #041632 !important;
  color: #F7F7F7 !important;
  font-weight: 600;
  border: 1px solid #041632;
}

.button.is-primary-custom:hover {
  background-color: #092858 !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(4, 22, 50, 0.2);
}

/* Custom Badges (Bulma tags) */
.tag.is-development {
  background-color: rgba(212, 175, 55, 0.15) !important;
  color: #D4AF37 !important;
  border: 1px solid var(--accent-color) !important;
  font-weight: 600;
  border-radius: 4px;
}

.tag.is-problem {
  background-color: var(--problem-bg) !important;
  color: var(--problem-text) !important;
  border: 1px solid var(--problem-border) !important;
  font-weight: 600;
  border-radius: 4px;
}

.tag.is-solution {
  background-color: var(--solution-bg) !important;
  color: var(--solution-text) !important;
  border: 1px solid var(--solution-border) !important;
  font-weight: 600;
  border-radius: 4px;
}

/* Force strong elements to inherit tag colors for contrast */
.tag.is-development strong,
.tag.is-problem strong,
.tag.is-solution strong {
  color: inherit !important;
}

/* Logo SVG styling in Navbar & Footer */
.logo-svg {
  height: 38px;
  width: auto;
  transition: fill 0.3s ease;
}

.logo-svg .fil0, .logo-svg .fil1 {
  fill: #FEFEFE; /* Default white for navy background header */
  transition: fill 0.3s ease;
}

/* Section Styling */
.section {
  padding: 6rem 1.5rem !important;
  position: relative;
}

.section-title-container {
  margin-bottom: 4rem;
  text-align: center;
}

.section-title-underline {
  width: 60px;
  height: 4px;
  background-color: var(--accent-color);
  margin: 1rem auto 0;
  border-radius: 2px;
}

/* Industry Solutions Grid Configuration (5 cards) */
.solutions-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.solutions-grid .full-width-card {
  grid-column: span 2;
}

@media screen and (max-width: 768px) {
  .solutions-grid {
    grid-template-columns: 1fr;
  }
  .solutions-grid .full-width-card {
    grid-column: span 1;
  }
}

/* Floating WhatsApp Button */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: #25d366;
  color: #FFF;
  border-radius: 50px;
  text-align: center;
  font-size: 30px;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
  z-index: 999;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.whatsapp-float:hover {
  background-color: #20ba5a;
  transform: scale(1.1) rotate(10deg);
  color: #FFF;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
}

/* Contact Form Input Styling */
.input, .textarea {
  background-color: var(--bg-color) !important;
  border: 1px solid var(--border-color) !important;
  color: var(--text-color) !important;
  font-family: 'Montserrat', sans-serif;
  transition: all 0.3s ease;
}

.input::placeholder, .textarea::placeholder {
  color: var(--text-muted) !important;
  opacity: 0.7;
}

.input:focus, .textarea:focus {
  border-color: var(--accent-color) !important;
  box-shadow: 0 0 0 0.125em rgba(212, 175, 55, 0.25) !important;
}

/* Footer Section */
.footer {
  background-color: var(--footer-bg) !important;
  color: var(--footer-text) !important;
  padding: 5rem 1.5rem 3rem !important;
  border-top: 1px solid var(--border-color);
  transition: background-color 0.4s ease, border-color 0.4s ease;
}

.footer a {
  color: var(--accent-color);
  transition: color 0.3s ease;
}

.footer a:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

/* Animations */
.fade-in-up {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

.delay-1 {
  animation-delay: 0.2s;
}

.delay-2 {
  animation-delay: 0.4s;
}

.delay-3 {
  animation-delay: 0.6s;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Custom Responsive Styles */
@media screen and (max-width: 1023px) {
  .navbar-menu {
    background-color: var(--navbar-bg) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  }
  .theme-switcher {
    margin: 1rem 0.5rem;
    display: flex;
    justify-content: space-around;
  }
}
