/* ===============================
   GLOBAL VARIABLES
   =============================== */
:root {
  --header-h: 60px;   /* Total header height */
  --logo-h: 50px;     /* Logo height */
  --navbar-bg: #007bff; /* Light blue navbar background */
  --navbar-text: #ffffff; /* White text color for navbar */
  --sidebar-width: 260px;
}

/* ===============================
   BASE STYLES
   =============================== */
body {
  background-color: #f8f9fa;
  margin: 0;
  padding: 0;
  font-family: "Segoe UI", sans-serif;
}

/* ===============================
   NAVIGATION BAR
   =============================== */
.navbar.app-header {
  height: var(--header-h);
  min-height: var(--header-h);
  padding: 0 0.75rem;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.08) 25%, transparent 25%),
    linear-gradient(225deg, rgba(255, 255, 255, 0.08) 25%, transparent 25%),
    linear-gradient(45deg, rgba(255, 255, 255, 0.08) 25%, transparent 25%),
    linear-gradient(315deg, rgba(255, 255, 255, 0.08) 25%, transparent 25%),
    linear-gradient(135deg, #0056b3 0%, #007bff 50%, #0099ff 100%) !important;
  background-size: 15px 15px, 15px 15px, 15px 15px, 15px 15px, 100% 100% !important;
  background-position: 0 0, 7.5px 0, 7.5px -7.5px, 0 7.5px, 0 0 !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15) !important;
  position: relative;
  color: var(--navbar-text);
}

.navbar.app-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="10" cy="10" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="30" cy="20" r="0.5" fill="rgba(255,255,255,0.15)"/><circle cx="50" cy="15" r="0.8" fill="rgba(255,255,255,0.1)"/><circle cx="70" cy="25" r="0.6" fill="rgba(255,255,255,0.12)"/><circle cx="90" cy="10" r="1" fill="rgba(255,255,255,0.1)"/></svg>') repeat;
  background-size: 100px 100px;
  opacity: 0.3;
  pointer-events: none;
}

.navbar.app-header .navbar-brand,
.navbar.app-header .navbar-brand span,
.navbar.app-header .btn,
.navbar.app-header .header-user {
  color: var(--navbar-text) !important;
  position: relative;
  z-index: 10;
}

.navbar.app-header .btn-outline-secondary {
  border-color: #ffffff80;
}

.navbar.app-header .btn-outline-secondary:hover {
  background-color: #ffffff33;
}

/* ===============================
   LOGO
   =============================== */
.brand-logo {
  height: var(--logo-h);
  width: auto;
  display: inline-block;
  vertical-align: middle;
  margin-left: 0.5rem;
}

/* ===============================
   HEADER BUTTONS
   =============================== */
.btn-header {
  padding: 0.25rem 0.5rem;
  font-size: 0.85rem;
  color: var(--navbar-text);
}

/* ===============================
   USER DISPLAY
   =============================== */
.header-user {
  font-size: 0.85rem;
  color: #f0f0f0;
  max-width: 24ch;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ===============================
   MAIN CONTENT
   =============================== */
main {
  padding: 0;
  margin: 0;
}

/* ===============================
   SIDEBAR
   =============================== */
.app-wrapper {
  display: grid;
  grid-template-columns: 0 1fr;
  transition: grid-template-columns 0.2s ease;
  min-height: calc(100vh - var(--header-h));
}

.sidebar {
  background: #fff;
  border-right: 1px solid #e9ecef;
  overflow: hidden;
}

.sidebar .sidebar-inner {
  width: var(--sidebar-width);
}

.sidebar-link {
  display: block;
  padding: 0.5rem 1rem;
  text-decoration: none;
  color: #212529;
  border-left: 3px solid transparent;
}

.sidebar-link:hover {
  background: #f1f3f5;
}

/* when menu is open */
.app-wrapper.open {
  grid-template-columns: var(--sidebar-width) 1fr;
}

/* ===============================
   POWER BI CONTAINER
   =============================== */
#pbi-container {
  width: 100%;
  min-height: 70vh;
}

main.col-12 {
  padding: 0;
  margin: 0;
}

/* ===============================
   HAMBURGER ICON
   =============================== */
#hamburger {
  font-size: 1.5rem;
}
.hero-section {
  background:
    linear-gradient(135deg, rgba(13, 110, 253, 0.9) 0%, rgba(102, 16, 242, 0.85) 100%),
    url('https://images.unsplash.com/photo-1451187580459-43490279c0fa?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  padding: 160px 0 200px;
  position: relative;
  overflow: hidden;
}

.hero-section h1 {
  color: #f0f2f5 !important;
  text-shadow:
    0 2px 10px rgba(0, 0, 0, 0.3),
    0 4px 20px rgba(0, 0, 0, 0.2),
    0 0 40px rgba(102, 16, 242, 0.3);
  font-weight: 700 !important;
  letter-spacing: -0.01em;
}

.hero-section .lead {
  color: #e8eaed !important;
  text-shadow:
    0 2px 8px rgba(0, 0, 0, 0.4),
    0 4px 16px rgba(0, 0, 0, 0.2);
  font-weight: 400;
  opacity: 0.92;
}
.hero-wave {
  position: absolute;
  bottom: 0; left: 0; width: 100%; height: 150px;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 1440 150' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='%23ffffff' d='M0,0 C280,100 1160,100 1440,0 L1440,150 L0,150 Z'%3E%3C/path%3E%3C/svg%3E") bottom repeat-x;
}
html { scroll-behavior: smooth; }

/* ===============================
   SERVICE CARDS
   =============================== */
.service-card {
  transition: all 0.3s ease;
  border: 1px solid #e9ecef;
  position: relative;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
  border-color: #0d6efd;
}

/* Clickable cards with showcase details */
a.text-decoration-none .service-card {
  border: 2px solid transparent;
  background: linear-gradient(white, white) padding-box,
              linear-gradient(135deg, rgba(13, 110, 253, 0.3), rgba(102, 16, 242, 0.3)) border-box;
  border: 2px solid transparent;
  background-clip: padding-box, border-box;
  background-origin: padding-box, border-box;
  cursor: pointer;
}

a.text-decoration-none .service-card::before {
  content: "Click to explore →";
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #0d6efd;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

a.text-decoration-none .service-card:hover::before {
  opacity: 1;
}

a.text-decoration-none .service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(13, 110, 253, 0.2) !important;
  border-color: #0d6efd;
}

.service-icon {
  display: inline-block;
}

.service-card h4 {
  color: #212529;
  font-size: 1.25rem;
}

.service-card p {
  font-size: 0.95rem;
  line-height: 1.6;
}

.service-card ul li {
  font-size: 0.9rem;
  color: #6c757d;
}

/* Smooth scroll offset for anchor links */
html {
  scroll-padding-top: 60px;
}

/* ===============================
   NAVBAR BUTTON VISIBILITY FIX
   =============================== */
.navbar.app-header .btn-light {
  background-color: #ffffff !important;
  border: 2px solid #ffffff !important;
  color: #007bff !important;
  font-weight: 600 !important;
}

.navbar.app-header .btn-light:hover {
  background-color: #f8f9fa !important;
  border-color: #f8f9fa !important;
  color: #0056b3 !important;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2) !important;
}

.navbar.app-header .btn-outline-secondary {
  border-color: rgba(255, 255, 255, 0.5) !important;
  color: #ffffff !important;
}

.navbar.app-header .btn-outline-secondary:hover {
  background-color: rgba(255, 255, 255, 0.2) !important;
  border-color: #ffffff !important;
  color: #ffffff !important;
}
