/* ============================================================
   ROOT + THEME
   ============================================================ */

:root {
  --bg-light: #ffffff;
  --bg-dark: #0b0010;

  /* LOGO GRADIENTS */
  --grad-hover: linear-gradient(135deg, #07C6F8, #16A5F8, #366BF7, #454AF4);
  --grad-soft: linear-gradient(135deg, #e6f8ff, #edf1ff);
  --grad-dark: linear-gradient(135deg, #050c18, #020814);

  --text-dark: #0b1a33;
  --text-light: #eaf4ff;
}

html[data-theme="dark"] body {
  background: var(--grad-dark) !important;
  color: var(--text-light);
}

body {
  background: var(--bg-light);
  color: var(--text-dark);
}

:focus {
  outline: 2px solid #16A5F8;
  outline-offset: 2px;
}

/* ============================================================
   HERO
   ============================================================ */

.hero-header-bg {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* ============================================================
   FADE IN
   ============================================================ */

.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 1s ease-out forwards;
}

@keyframes fadeInUp {
  to { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   FOOTER
   ============================================================ */

.footer-wrapper {
  position: relative;
  overflow: hidden;
}

/* floating leaves */
.hp-leaf {
  position: absolute;
  font-size: 2.2rem;
  opacity: 0.18;
  pointer-events: none;
  animation: leafFloat 6s ease-in-out infinite;
}

.leaf-left { left: 10px; top: 22%; }
.leaf-right { right: 15px; top: 38%; }

@keyframes leafFloat {
  50% { transform: translateY(-18px) rotate(12deg); }
}

/* footer title */
.footer-title {
  font-size: 1.15rem;
  font-weight: 800;
  background: var(--grad-hover);
  -webkit-background-clip: text;
  color: transparent;
}

/* footer links */
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 8px;
  transition: .25s ease;
}

.footer-links a:hover {
  background: var(--grad-hover);
  color: #020814;
  padding-left: 12px;
}

/* ============================================================
   FOOTER ICONS / SOCIALS (SOURCE OF TRUTH)
   ============================================================ */

.footer-social,
.footer-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: var(--grad-soft);
  color: #366BF7;
  transition: .3s ease;
}

.footer-social {
  width: 42px;
  height: 42px;
  font-size: 1.3rem;
}

.footer-icon {
  padding: 7px 12px;
  font-size: 1.15rem;
}

.footer-social:hover,
.footer-icon:hover {
  background: var(--grad-hover);
  color: #020814;
  transform: translateY(-4px);
}

html[data-theme="dark"] .footer-social,
html[data-theme="dark"] .footer-icon {
  background: rgba(255,255,255,0.06);
  color: #07C6F8;
}

html[data-theme="dark"] .footer-social:hover,
html[data-theme="dark"] .footer-icon:hover {
  background: var(--grad-hover);
  color: #020814;
}


/* ===============================
   MICROSOFT FOOTER — DARK MODE
   =============================== */

html[data-theme="dark"] #msFooter {
  background: #0F1520;
  color: #e5e7eb;
}

html[data-theme="dark"] .msf-grid h5,
html[data-theme="dark"] .msf-grid a,
html[data-theme="dark"] .msf-privacy-item {
  color: #e5e7eb;
}

html[data-theme="dark"] .msf-grid a:hover {
  text-decoration: underline;
}

html[data-theme="dark"] .msf-bottom {
  background: #020617;
  border-top: 1px solid #1f2937;
}


/* ============================================================
   HEADER (MICA)
   ============================================================ */

#hwHeader {
  backdrop-filter: blur(18px);
  background: rgba(255,255,255,0.65);
  transition: .3s ease;
}

.dark #hwHeader {
  background: rgba(2,8,20,0.6);
}

.scrolled {
  box-shadow: 0 6px 30px rgba(22,165,248,0.35);
}

/* ============================================================
   NAV
   ============================================================ */

.hw-nav {
  font-weight: 500;
  position: relative;
  padding-bottom: 6px;
  transition: .25s ease;
}

.hw-line::after {
  content: "";
  position: absolute;
  bottom: 0; left: 0;
  width: 0%;
  height: 3px;
  border-radius: 4px;
  background: var(--grad-hover);
  transition: width .35s ease;
}

.hw-line:hover::after {
  width: 100%;
}

.hw-nav.active {
  background: var(--grad-hover);
  -webkit-background-clip: text;
  color: transparent !important;
}

.hw-nav.active::after {
  width: 100%;
}

/* ============================================================
   SIGN BUTTON
   ============================================================ */

.hw-sign-btn {
  border-radius: 10px;
  padding: 8px 18px;
  background: var(--grad-hover);
  border: none;
  transition: .25s ease;
}

.hw-sign-btn:hover {
  background: var(--grad-hover);
  color: #020814;
}

/* ============================================================
   SIDEBAR / MOBILE
   ============================================================ */

.hw-mobile-link {
  padding: 12px;
  border-radius: 10px;
  display: flex;
  gap: 10px;
  transition: .25s ease;
}

.hw-mobile-link:hover {
  background: var(--grad-hover);
  color: #020814;
}

#hwSidebar { transform: translateX(-100%); }
#hwSidebar.active { transform: translateX(0); }

#hwOverlay.visible {
  opacity: 1;
  pointer-events: auto;
}

/* dropdown animation */
#hwNotifPC,
#hwNotifM {
  animation: notifFade .25s ease;
}

@keyframes notifFade {
  from { opacity:0; transform: translateY(-8px); }
  to { opacity:1; transform: translateY(0); }
}

/* ============================================================
   CONTACT BUTTONS (MATCH FOOTER ICON HOVER)
   ============================================================ */

.hw-contact-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--grad-soft);
  font-weight: 500;
  transition: .25s ease;
}

.hw-contact-btn:hover {
  background: var(--grad-hover);
  color: #020814;
}

.dark .hw-contact-btn {
  background: rgba(255,255,255,0.06);
}

.dark .hw-contact-btn:hover {
  background: var(--grad-hover);
  color: #020814;
}

/* ============================================================
   MOBILE SPACING FIX
   ============================================================ */

@media (max-width: 768px) {
  header .flex.items-center.gap-8 {
    gap: 12px !important;
  }

  #hwBellM,
  #hwMenuOpen {
    padding: 6px !important;
  }
}








/* ===============================
   IBM STYLE VIDEO LOGO
   =============================== */

.logo-video-ibm {
  position: relative;
  width: 280px;
  aspect-ratio: 1 / 1;     /* square */
  overflow: hidden;
  background: #000;
  border-radius: 6px;      /* IBM is sharper than Microsoft */
  box-shadow: 0 20px 60px rgba(0,0,0,.35);
}

/* Video fills container */
.logo-video-ibm video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Play / Pause button (bottom-right only) */
.video-control {
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: 36px;
  height: 36px;
  border-radius: 4px;
  
  color: #0126f8;
  font-size: 16px;
  line-height: 1;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s ease, transform .15s ease;
}

.video-control:hover {
  background: rgba(0,0,0,.8);
  transform: scale(1.05);
}

/* Responsive sizes */
@media (min-width: 640px) {
  .logo-video-ibm { width: 320px; }
}

@media (min-width: 768px) {
  .logo-video-ibm { width: 360px; }
}

@media (min-width: 1024px) {
  .logo-video-ibm { width: 420px; }
}

/* Light / Dark balance */
html[data-theme="light"] .logo-video-ibm {
  box-shadow: 0 16px 50px rgba(0,0,0,.22);
}

html[data-theme="dark"] .logo-video-ibm {
  box-shadow: 0 22px 70px rgba(0,0,0,.55);
}




/* ===============================
   PROFESSIONAL HERO BACKGROUND
   =============================== */

.hero-bg-gradient {
  position: absolute;
  inset: 0;
  background: #000000; /* Pure black background */
  overflow: hidden;
}

/* Bubble 1 — Cyan */
.hero-bg-gradient::before {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(7,198,248,0.55),
    rgba(7,198,248,0.0) 65%
  );
  filter: blur(70px);
  animation: bubbleOne 26s ease-in-out infinite;
}

/* Bubble 2 — Blue */
.hero-bg-gradient::after {
  content: "";
  position: absolute;
  width: 640px;
  height: 640px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(22,165,248,0.50),
    rgba(22,165,248,0.0) 65%
  );
  filter: blur(80px);
  animation: bubbleTwo 34s ease-in-out infinite;
}

/* Violet bubble (extra layer) */
.hero-bg-gradient .bubble-orange {
  position: absolute;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(69,74,244,0.45),
    rgba(69,74,244,0.0) 65%
  );
  filter: blur(70px);
  animation: bubbleThree 38s ease-in-out infinite;
}

/* ===============================
   BUBBLE MOTION
   =============================== */

@keyframes bubbleOne {
  0%   { transform: translate(-20%, -10%); }
  50%  { transform: translate(60%, 30%); }
  100% { transform: translate(-20%, -10%); }
}

@keyframes bubbleTwo {
  0%   { transform: translate(70%, 80%); }
  50%  { transform: translate(10%, 20%); }
  100% { transform: translate(70%, 80%); }
}

@keyframes bubbleThree {
  0%   { transform: translate(40%, -30%); }
  50%  { transform: translate(80%, 60%); }
  100% { transform: translate(40%, -30%); }
}

/* ===============================
   BOX-STYLE FONT
   =============================== */

.hero-box-font {
  font-family: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  font-weight: 800;
  letter-spacing: -0.02em;
}

/* ===============================
   ANIMATED GRADIENT HEADLINE
   =============================== */

.hero-gradient-title {
  background: linear-gradient(
    120deg,
    #07C6F8,
    #16A5F8,
    #366BF7,
    #454AF4
  );
  background-size: 300% 300%;
  -webkit-background-clip: text;
  color: transparent;
  animation: gradientShift 8s ease infinite;
}

@keyframes gradientShift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}














/* =================================================
   MICROSOFT-STYLE FOOTER — UNIVERSAL RESPONSIVE
   ================================================= */

#msFooter {
  background: #f2f2f2;
  font-family: "Segoe UI", Calibri, system-ui, sans-serif;
  font-size: 12px;
  color: #1a1a1a;
}

/* CONTAINER */
.msf-container {
  max-width: 1680px;
  margin: 0 auto;
  padding-inline: clamp(16px, 4vw, 48px);
}

/* =================================================
   GRID — MICROSOFT COMPACT
   ================================================= */
.msf-grid {
  display: grid;
  grid-template-columns: repeat(
    auto-fit,
    minmax(200px, 1fr)
  );

  /* tighter column & row spacing */
  gap: clamp(14px, 2vw, 24px);

  /* reduced vertical padding */
  padding-block: clamp(20px, 3vw, 32px);
}

.msf-grid section {
  min-width: 0;
}

/* TITLES */
.msf-grid h5 {
  font-size: clamp(12px, 0.9vw, 13px);
  font-weight: 600;
  margin-bottom: 12px;
  color: #1a1a1a;
}

/* LINKS */
.msf-grid a {
  display: block;
  font-size: clamp(12px, 0.9vw, 13px);
  line-height: 1.6;
  margin-bottom: 6px;
  color: #1a1a1a;
  text-decoration: none;
}

.msf-grid a:hover {
  text-decoration: underline;
}

/* =================================================
   BOTTOM BAR — FLEX THAT NEVER BREAKS
   ================================================= */
.msf-bottom {
  background: #e6e6e6;
  border-top: 1px solid #d0d0d0;
}

.msf-bottom-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: clamp(10px, 3vw, 16px);
  padding-block: 14px;
}

/* LEFT / RIGHT — AUTO CENTER WHEN NEEDED */
.msf-left,
.msf-right {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

/* Auto-center on tight widths */
@container (max-width: 720px) {
  .msf-bottom-inner {
    justify-content: center;
    text-align: center;
  }
}

/* =================================================
   PRIVACY ITEMS
   ================================================= */
.msf-privacy-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #1a1a1a;
}

.msf-privacy-item i {
  font-size: 14px;
  line-height: 1;
}












/* ===============================
   MICROSOFT-STYLE MEGA MENU (POLISHED)
   =============================== */

.bh-mega { position: relative; }

/* Button */
.bh-mega-btn{
  display:flex;
  align-items:center;
  gap:6px;
  font-size:14px;
  padding:6px 10px;
  border-radius:4px;
  border:none;
  background:none;
  cursor:pointer;
  color:#1a1a1a;
}

.dark .bh-mega-btn{ color:#e5e7eb; }

.bh-mega-btn:hover{
  background:rgba(0,0,0,.06);
}
.dark .bh-mega-btn:hover{
  background:rgba(255,255,255,.08);
}

/* Popup */
.bh-mega-panel{
  position:absolute;
  top:100%;
  right:-160px;
  width:min(1280px,96vw);
  background:#f3f3f3;
  border-top:1px solid #e5e5e5;
  box-shadow:0 24px 70px rgba(0,0,0,.28);
  opacity:0;
  visibility:hidden;
  transform:translateY(-4px);
  transition:.18s ease;
  z-index:999;
}

.dark .bh-mega-panel{
  background:#0b1220;
  border-color:#1f2937;
}

/* Inner grid */
.bh-mega-inner{
  max-width:1200px;
  margin:0 auto;
  padding:30px 28px 22px;
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(170px,1fr));
  gap:32px;
}

/* Columns */
.bh-col h4{
  font-size:13px;
  font-weight:600;
  margin-bottom:12px;
  color:#000;
}
.dark .bh-col h4{ color:#f9fafb; }

.bh-col a{
  display:block;
  font-size:13px;
  padding:6px 0;
  color:#000;
  line-height:1.35;
}

.dark .bh-col a{ color:#d1d5db; }

.bh-col a:hover{
  text-decoration:underline;
}

/* Footer */
.bh-mega-footer{
  background:#ebebeb;
  border-top:1px solid #e5e5e5;
  padding:16px;
  text-align:center;
}

.dark .bh-mega-footer{
  background:#020617;
  border-color:#1f2937;
}

.bh-mega-footer a{
  font-size:13px;
  font-weight:600;
  color:#0067b8;
}

.dark .bh-mega-footer a{
  color:#60a5fa;
}

/* Open */
.bh-mega.open .bh-mega-panel{
  opacity:1;
  visibility:visible;
  transform:translateY(0);
}


















/* ===============================
   HOW WE DELIVER — MICROSOFT GRID
   =============================== */

/* Loader */
.bh-loader {
  width: 42px;
  height: 42px;
  border: 3px solid rgba(0,0,0,.12);
  border-top-color: #2563eb;
  border-radius: 50%;
  animation: spin .9s linear infinite;
}

.dark .bh-loader {
  border-color: rgba(255,255,255,.15);
  border-top-color: #60a5fa;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Grid layout */
.bh-grid {
  display: grid;
  gap: 32px;
}

/* Desktop: 3 + 2 layout */
@media (min-width: 1024px) {
  .bh-grid {
    grid-template-columns: repeat(6, 1fr);
  }

  .bh-card:nth-child(1),
  .bh-card:nth-child(2),
  .bh-card:nth-child(3) {
    grid-column: span 2;
  }

  .bh-card:nth-child(4),
  .bh-card:nth-child(5) {
    grid-column: span 3;
  }
}

/* Card */
.bh-card {
  border: 1px solid #e5e7eb;
  background: #fff;
  transition: .25s ease;
}

.dark .bh-card {
  background: rgba(255,255,255,.03);
  border-color: rgba(255,255,255,.12);
}

.bh-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0,0,0,.18);
}

/* Large images */
.bh-card img {
  width: 100%;
  height: 260px;
  object-fit: cover;
}

@media (max-width: 640px) {
  .bh-card img {
    height: 200px;
  }
}

/* Content */
.bh-body {
  padding: 24px;
}

.bh-body h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: #111827;
}

.dark .bh-body h3 {
  color: #fff;
}

.bh-body p {
  font-size: .95rem;
  line-height: 1.6;
  color: #4b5563;
  margin-bottom: 18px;
}

.dark .bh-body p {
  color: #d1d5db;
}

/* Button */
.bh-btn {
  display: inline-block;
  padding: 8px 22px;
  font-size: .85rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(90deg,#2563eb,#1d4ed8);
  text-decoration: none;
}

.bh-btn:hover {
  opacity: .9;
}












/* ===============================
   MICROSOFT FEATURE (FINAL)
   =============================== */

.ms-feature-wrapper {
  
  padding: 80px 0;
  font-family: Calibri, Inter, system-ui, sans-serif;
}

/* Light mode (default) */
.ms-feature-wrapper {
  background: #ffffff;   /* Microsoft light gray */
}

/* Dark mode */
.dark .ms-feature-wrapper {
  background: #020814;
}

.ms-feature-container {
  max-width: 1600px;          /* Microsoft-like width */
  margin: 0 auto;
  position: relative;
  padding-left: 16px;
  padding-right: 16px;
}


/* Background image */
.ms-feature-bg {
  min-height: 520px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 6px;
}



/* Content overlay — Microsoft style */
.ms-feature-content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 16px;
}

@media (min-width: 768px) {
  .ms-feature-content {
    padding: 0 24px;
  }
}

@media (min-width: 1280px) {
  .ms-feature-content {
    padding: 0 32px;
  }
}

/* Card — overlay on image (Microsoft proportions) */
.ms-feature-card {
  max-width: 440px;
  padding: 32px 36px;
  background: rgba(255,255,255,0.96);
  box-shadow: 0 24px 64px rgba(0,0,0,.28);
}

@media (min-width: 1024px) {
  .ms-feature-card {
    padding: 40px 44px;
  }
}


/* Dark mode */
.dark .ms-feature-card {
  background: rgba(8,16,32,0.9);
  box-shadow: 0 30px 80px rgba(0,0,0,.55);
}

/* Text */
.ms-feature-card h2 {
  font-size: 2rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 16px;
}

.dark .ms-feature-card h2 {
  color: #ffffff;
}

.ms-feature-card p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: #4b5563;
  margin-bottom: 28px;
}

.dark .ms-feature-card p {
  color: #d1d5db;
}

/* Button */
.ms-btn {
  display: inline-block;
  padding: 10px 28px;
  background: #0067b8;
  color: #ffffff;
  font-size: .95rem;
  font-weight: 600;
  text-decoration: none;
  transition: .2s ease;
}

.ms-btn:hover {
  background: #005aa3;
  transform: translateY(-2px);
}

/* ===============================
   MOBILE (IMAGE FIRST)
   =============================== */

@media (max-width: 900px) {

  .ms-feature-wrapper {
    padding: 40px 0;
  }

  .ms-feature-container {
    max-width: 100%;
    padding: 0 16px;
  }

  .ms-feature-bg {
    min-height: 260px;
  }

  .ms-feature-content {
    position: static;
    padding: 0;
    margin-top: -40px;
    justify-content: center;
  }

  .ms-feature-card {
    max-width: 100%;
    padding: 32px;
  }

  .ms-feature-card h2 {
    font-size: 1.6rem;
  }
}

.ms-feature-card {
  transform: none !important;
  opacity: 1 !important;
}


















/* ===============================
   MICROSOFT MOBILE SIDEBAR
   =============================== */

.ms-side-title {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #6b7280;
  margin-bottom: 8px;
}

.dark .ms-side-title {
  color: #9ca3af;
}

.ms-side-links a {
  display: block;
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 14px;
  color: #1a1a1a;
  transition: background .15s ease;
}

.dark .ms-side-links a {
  color: #e5e7eb;
}

.ms-side-links a:hover {
  background: rgba(0,103,184,0.1);
}











/* ===============================
   FLUENT UI v2 SIGN-IN
   =============================== */

.ms-signin-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;

  font-family: "Segoe UI", Inter, system-ui, sans-serif;
  font-size: 14px;
  font-weight: 600;

  padding: 4px 6px 4px 10px;
  border-radius: 4px;

  color: #1a1a1a;
  text-decoration: none;
  background: transparent;

  transition: background 120ms cubic-bezier(.4,0,.2,1);
}

.ms-signin-btn:hover {
  background: rgba(0,0,0,.06);
}

/* ===============================
   USER ICON + RING
   =============================== */

.ms-user-icon {
  position: relative;

  width: 28px;
  height: 28px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 50%;
  border: 1px solid #8a8a8a;
  color: #1a1a1a;

  background: transparent;

  transition: border-color 120ms ease;
}

/* Icon size */
.ms-user-icon i {
  font-size: 16px;
  z-index: 1;
}

/* FLUENT HOVER RING */
.ms-user-icon::after {
  content: "";
  position: absolute;
  inset: -4px;

  border-radius: 50%;
  border: 2px solid rgba(0, 103, 184, 0);

  transform: scale(0.85);
  opacity: 0;

  transition:
    transform 160ms cubic-bezier(.4,0,.2,1),
    opacity 120ms ease,
    border-color 120ms ease;
}

/* Hover animation */
.ms-signin-btn:hover .ms-user-icon::after {
  transform: scale(1);
  opacity: 1;
  border-color: rgba(0, 103, 184, 0.9);
}

/* Pressed (Fluent feedback) */
.ms-signin-btn:active .ms-user-icon::after {
  transform: scale(0.92);
}

/* Keyboard focus (Microsoft accessibility) */
.ms-signin-btn:focus-visible {
  outline: 2px solid #0067b8;
  outline-offset: 2px;
}

/* ===============================
   DARK MODE (Fluent)
   =============================== */

.dark .ms-signin-btn {
  color: #f5f5f5;
}

.dark .ms-signin-btn:hover {
  background: rgba(255,255,255,.08);
}

.dark .ms-user-icon {
  border-color: #b5b5b5;
  color: #f5f5f5;
}

.dark .ms-user-icon::after {
  border-color: rgba(79, 179, 255, 0);
}

.dark .ms-signin-btn:hover .ms-user-icon::after {
  border-color: rgba(79, 179, 255, 0.95);
}





