/* === RESET === */
html, body {
  margin: 0;
  padding: 0;
  height: 100%;
}

/* === BASE STYLES (Enhanced Dark Scheme) === */
body {
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 100%);
  background-attachment: fixed;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: #e0e0e0;
  line-height: 1.6;
}

/* Subtle noise texture overlay */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
  opacity: 0.03;
  pointer-events: none;
  z-index: 0;
}

/* === WRAPPER FOR FULL HEIGHT === */
.wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  z-index: 1;
  position: relative;
}

/* === MAIN PAGE AREA STRETCH === */
.layout {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* === HAMBURGER MENU === */
.hamburger {
  font-size: 28px;
  background: rgba(20, 20, 35, 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(51, 102, 204, 0.3);
  color: #6699ff;
  padding: 12px 16px;
  cursor: pointer;
  display: block;
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 2100;
  border-radius: 10px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(51, 102, 204, 0.15);
}
.hamburger:hover {
  background: rgba(51, 102, 204, 0.2);
  border-color: #3366cc;
  box-shadow: 0 6px 30px rgba(51, 102, 204, 0.35);
  transform: translateY(-2px);
}

body.sidebar-open .hamburger {
  display: none;
}

/* === OVERLAY === */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
body.sidebar-open .overlay {
  opacity: 1;
  pointer-events: auto;
}

/* === SIDEBAR === */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 280px;
  height: 100%;
  background: linear-gradient(180deg, #16213e 0%, #0f0f1e 100%);
  border-right: 1px solid rgba(102, 153, 255, 0.2);
  box-shadow: 4px 0 40px rgba(51, 102, 204, 0.2);
  color: #f0f0f0;
  padding: 30px 25px;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  z-index: 2050;
  overflow-y: auto;
}
.sidebar.active {
  transform: translateX(0);
}
.sidebar h2 {
  margin-top: 0;
  color: #6699ff;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.5px;
  text-shadow: 0 0 20px rgba(102, 153, 255, 0.4);
}
.sidebar ul {
  list-style: none;
  padding: 0;
}
.sidebar li {
  margin: 35px 0;
}
.sidebar a {
  color: #d0d0d0;
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  transition: all 0.2s ease;
  position: relative;
}
.sidebar a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #3366cc, #00d4ff);
  transition: width 0.3s ease;
}
.sidebar a:hover {
  color: #6699ff;
}
.sidebar a:hover::after {
  width: 100%;
}

/* === CLOSE SIDEBAR BUTTON === */
.close-sidebar {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 32px;
  background: none;
  border: none;
  color: #d0d0d0;
  cursor: pointer;
  transition: all 0.2s ease;
}
.close-sidebar:hover {
  color: #ff6b6b;
  text-shadow: 0 0 10px rgba(255, 107, 107, 0.6);
}

/* === LOGO IMAGES === */
.main-logo {
  width: 140px;
  height: auto;
  margin-bottom: 24px;
  filter: drop-shadow(0 4px 20px rgba(51, 102, 204, 0.4));
}

.sidebar-logo {
  width: 80px;
  height: auto;
  margin: 10px 0 20px;
  display: block;
  filter: drop-shadow(0 2px 12px rgba(102, 153, 255, 0.5));
}

/* === DROPDOWN SUBMENU === */
.submenu {
  display: none;
  padding-left: 20px;
  list-style: none;
  margin-top: 15px;
}
.has-submenu.active .submenu {
  display: block;
}
.submenu li {
  margin: 15px 0;
}
.submenu a {
  font-size: 14px;
  color: #9999aa;
  font-weight: 400;
}
.submenu a:hover {
  color: #00d4ff;
}

/* === HERO SECTION === */
.hero {
  text-align: center;
  padding: 100px 40px 80px;
  background: 
    radial-gradient(ellipse at top, rgba(51, 102, 204, 0.15) 0%, transparent 60%),
    linear-gradient(135deg, rgba(0, 212, 255, 0.05) 0%, rgba(0, 0, 0, 0) 100%);
  border-bottom: 1px solid rgba(102, 153, 255, 0.15);
  position: relative;
}
.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(51, 102, 204, 0.2) 0%, transparent 70%);
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}
.hero h1 {
  font-size: 64px;
  font-weight: 800;
  letter-spacing: -2px;
  margin-bottom: 20px;
  background: linear-gradient(120deg, #3366cc 0%, #00d4ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
  z-index: 1;
  text-shadow: 0 0 40px rgba(51, 102, 204, 0.3);
}
.hero p {
  font-size: 22px;
  color: #b8b8c8;
  margin-bottom: 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  z-index: 1;
}

/* === CTA BUTTON === */
.cta-button {
  display: inline-block;
  background: linear-gradient(135deg, #3366cc 0%, #00d4ff 100%);
  color: #fff;
  padding: 16px 40px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  box-shadow: 
    0 6px 25px rgba(51, 102, 204, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  z-index: 1;
}
.cta-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s ease;
}
.cta-button:hover::before {
  left: 100%;
}
.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 
    0 10px 35px rgba(51, 102, 204, 0.6),
    0 0 40px rgba(0, 212, 255, 0.4);
}

/* === MAIN CONTENT === */
.content {
  position: relative;
  z-index: 1;
  padding: 60px 20px;
  max-width: 1000px;
  margin: 0 auto;
}
h1 {
  font-size: 56px;
  font-weight: 800;
  text-align: center;
  letter-spacing: -1.5px;
  background: linear-gradient(120deg, #ffffff 0%, #6699ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 30px;
  text-shadow: 0 0 30px rgba(102, 153, 255, 0.3);
}

/* Global small text colour */
p,
.content p,
.about-section p,
.content-list li {
  color: #b8b8c8;
}

/* === FOOTER === */
footer {
  background: linear-gradient(180deg, #0a0a0a 0%, #16213e 100%);
  border-top: 1px solid rgba(102, 153, 255, 0.2);
  color: #666;
  text-align: center;
  padding: 25px 0;
  font-size: 14px;
}

/* === ABOUT/CONTACT SECTIONS === */
.about-section {
  background: 
    linear-gradient(135deg, rgba(51, 102, 204, 0.05) 0%, rgba(0, 212, 255, 0.02) 100%),
    rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(102, 153, 255, 0.15);
  padding: 40px;
  margin-bottom: 30px;
  border-radius: 16px;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}
.about-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(0, 212, 255, 0.08) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}
.about-section:hover::before {
  opacity: 1;
}
.about-section:hover {
  border-color: rgba(0, 212, 255, 0.4);
  transform: translateY(-4px);
  box-shadow: 
    0 12px 40px rgba(51, 102, 204, 0.25),
    0 0 60px rgba(0, 212, 255, 0.15);
}
.content h2 {
  font-size: 32px;
  background: linear-gradient(120deg, #3366cc 0%, #00d4ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 16px;
  font-weight: 700;
  letter-spacing: -0.5px;
}
.content h3 {
  font-size: 24px;
  color: #6699ff;
  margin-top: 24px;
  margin-bottom: 12px;
  font-weight: 600;
}
.content p {
  font-size: 17px;
  line-height: 1.8;
}

/* === BULLET LIST STYLING === */
.content-list {
  list-style: none;
  padding: 0;
  margin: 16px 0 0 0;
}

.content-list li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 10px;
  font-size: 17px;
  line-height: 1.7;
}

.content-list li::before {
  content: "•";
  color: #00d4ff;
  position: absolute;
  left: 0;
  top: 0;
  font-size: 20px;
  line-height: 1;
  text-shadow: 0 0 8px rgba(0, 212, 255, 0.6);
}

/* ========================================= */
/* === BUSINESS ANALYSIS FLOW (BA) === */
/* ========================================= */
.ba-flow-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  max-width: 800px;
  width: 100%;
  margin: 32px auto 0;
}

.ba-flow-step {
  width: 100%;
  max-width: 650px;
  perspective: 1000px;
}

.ba-card {
  position: relative;
  width: 100%;
  height: 160px;
  transform-style: preserve-3d;
  transition: transform 0.6s;
  cursor: pointer;
}

.ba-flow-step:hover .ba-card {
  transform: rotateY(180deg);
}

.ba-card-face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 32px;
  border: 1px solid rgba(102, 153, 255, 0.3);
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(12px);
  text-align: center;
}

.ba-card-front {
  background: 
    linear-gradient(135deg, rgba(51, 102, 204, 0.25) 0%, rgba(0, 212, 255, 0.1) 100%),
    rgba(255, 255, 255, 0.03);
  border-color: rgba(51, 102, 204, 0.5);
  box-shadow: 
    0 8px 30px rgba(51, 102, 204, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}
.ba-card-front h3 {
  font-size: 28px;
  font-weight: 700;
  background: linear-gradient(120deg, #3366cc 0%, #00d4ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0;
  text-shadow: 0 0 20px rgba(51, 102, 204, 0.4);
}

.ba-card-back {
  transform: rotateY(180deg);
  background: 
    linear-gradient(135deg, rgba(0, 212, 255, 0.08) 0%, rgba(51, 102, 204, 0.08) 100%),
    rgba(255, 255, 255, 0.04);
  border-color: rgba(0, 212, 255, 0.5);
  flex-direction: column;
  box-shadow: 0 8px 30px rgba(0, 212, 255, 0.2);
}
.ba-card-back h4 {
  font-size: 22px;
  color: #00d4ff;
  margin: 0 0 10px;
  font-weight: 700;
  text-shadow: 0 0 15px rgba(0, 212, 255, 0.5);
}
.ba-card-back p {
  font-size: 16px;
  line-height: 1.5;
  color: #c0c0d0;
  margin: 0;
}

.ba-arrow {
  width: 0;
  height: 0;
  border-left: 14px solid transparent;
  border-right: 14px solid transparent;
  border-top: 24px solid #3366cc;
  opacity: 0.8;
  filter: drop-shadow(0 0 8px rgba(51, 102, 204, 0.6));
}

/* ========================================= */
/* === SOFTWARE TEST MANAGEMENT FLOW (STM) === */
/* ========================================= */
.stm-flow-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  max-width: 800px;
  width: 100%;
  margin: 32px auto 0;
}

.stm-flow-step {
  width: 100%;
  max-width: 700px;
  perspective: 1000px;
}

.stm-card {
  position: relative;
  width: 100%;
  height: 240px;
  transform-style: preserve-3d;
  transition: transform 0.6s;
  cursor: pointer;
}

.stm-flow-step:hover .stm-card {
  transform: rotateY(180deg);
}

.stm-card-face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 32px;
  border: 1px solid rgba(102, 153, 255, 0.3);
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(12px);
  text-align: center;
  overflow-y: auto;
}

.stm-card-front {
  background: 
    linear-gradient(135deg, rgba(51, 102, 204, 0.22) 0%, rgba(0, 212, 255, 0.08) 100%),
    rgba(255, 255, 255, 0.03);
  border-color: rgba(51, 102, 204, 0.5);
  box-shadow: 
    0 8px 30px rgba(51, 102, 204, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}
.stm-card-front h3 {
  font-size: 26px;
  font-weight: 700;
  background: linear-gradient(120deg, #3366cc 0%, #00d4ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0;
  text-shadow: 0 0 20px rgba(51, 102, 204, 0.4);
}

.stm-card-back {
  transform: rotateY(180deg);
  background: 
    linear-gradient(135deg, rgba(0, 212, 255, 0.08) 0%, rgba(51, 102, 204, 0.08) 100%),
    rgba(255, 255, 255, 0.04);
  border-color: rgba(0, 212, 255, 0.5);
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 20px 28px;
  box-shadow: 0 8px 30px rgba(0, 212, 255, 0.2);
}
.stm-card-back h4 {
  font-size: 20px;
  color: #00d4ff;
  margin: 0 0 10px;
  font-weight: 700;
  text-shadow: 0 0 15px rgba(0, 212, 255, 0.5);
}
.stm-card-back p {
  font-size: 15px;
  line-height: 1.6;
  color: #c0c0d0;
  margin: 0;
}

.stm-arrow {
  width: 0;
  height: 0;
  border-left: 14px solid transparent;
  border-right: 14px solid transparent;
  border-top: 24px solid #3366cc;
  opacity: 0.8;
  filter: drop-shadow(0 0 8px rgba(51, 102, 204, 0.6));
}

/* === CONTACT FORM === */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.contact-form label {
  font-weight: 600;
  color: #d0d0e0;
  font-size: 15px;
  letter-spacing: 0.3px;
}
.contact-form input,
.contact-form textarea {
  padding: 14px 16px;
  border: 1px solid rgba(102, 153, 255, 0.2);
  border-radius: 10px;
  font-size: 16px;
  font-family: inherit;
  background: rgba(255, 255, 255, 0.03);
  color: #e0e0e0;
  transition: all 0.3s ease;
}
.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #00d4ff;
  outline: none;
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 
    0 0 0 3px rgba(0, 212, 255, 0.15),
    0 0 20px rgba(0, 212, 255, 0.2);
}
.contact-form button {
  background: linear-gradient(135deg, #3366cc 0%, #00d4ff 100%);
  color: #fff;
  padding: 16px 32px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  transition: all 0.3s ease;
  box-shadow: 
    0 6px 20px rgba(51, 102, 204, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
}
.contact-form button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s ease;
}
.contact-form button:hover::before {
  left: 100%;
}
.contact-form button:hover {
  transform: translateY(-2px);
  box-shadow: 
    0 8px 30px rgba(51, 102, 204, 0.6),
    0 0 40px rgba(0, 212, 255, 0.4);
}

/* === ALERT BANNERS === */
.alert {
  padding: 14px 18px;
  border-radius: 12px;
  margin-bottom: 20px;
  font-weight: 600;
  font-size: 15px;
}
.alert.success {
  background: rgba(0, 212, 100, 0.1);
  border: 1px solid rgba(0, 212, 100, 0.4);
  color: #00ff88;
  box-shadow: 0 4px 20px rgba(0, 212, 100, 0.2);
}
.alert.error {
  background: rgba(255, 80, 80, 0.1);
  border: 1px solid rgba(255, 80, 80, 0.4);
  color: #ff6b6b;
  box-shadow: 0 4px 20px rgba(255, 80, 80, 0.2);
}
.hidden { display: none; }

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 42px;
  }
  .hero p {
    font-size: 18px;
  }
  h1 {
    font-size: 38px;
  }
  .about-section {
    padding: 25px;
  }

  /* BA responsive */
  .ba-flow-step {
    max-width: 100%;
  }
  .ba-card {
    height: 150px;
  }
  .ba-card-front h3 {
    font-size: 24px;
  }
  .ba-card-back h4 {
    font-size: 20px;
  }
  .ba-card-back p {
    font-size: 15px;
  }

  /* STM responsive */
  .stm-flow-step {
    max-width: 100%;
  }
  .stm-card {
    height: 220px;
  }
  .stm-card-front h3 {
    font-size: 22px;
  }
  .stm-card-back h4 {
    font-size: 18px;
  }
  .stm-card-back p {
    font-size: 14px;
  }
  .stm-card-face {
    padding: 16px 20px;
  }
}
