:root {
  /* Exact Colors from communicationscoldlake.com */
  --primary-color: #01a64a; /* CCL Vibrant Green */
  --primary-light: #01b852;
  --secondary-color: #c60c0c; /* Vibrant Red */
  --secondary-hover: #a30909;
  --text-dark: #333333;
  --text-light: #ffffff;
  --bg-light: #ffffff;
  --bg-gray: #f9f9f9;
  --font-main: 'Montserrat', sans-serif;
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-main);
  color: var(--text-dark);
  line-height: 1.7;
  background-color: var(--bg-light);
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4 {
  margin-bottom: 15px;
  font-weight: 700;
  line-height: 1.3;
}

h2 {
  font-size: 2.2rem;
}

.inline-logo {
  height: 1.8em;
  vertical-align: middle;
  position: relative;
  top: -6px;
}

.text-center { text-align: center; }

.underline {
  height: 3px;
  width: 50px;
  background-color: var(--secondary-color);
  margin-bottom: 30px;
}

/* Buttons */
.btn-primary {
  display: inline-block;
  background-color: var(--secondary-color);
  color: var(--text-light);
  padding: 12px 30px;
  border-radius: 30px; /* Pill shape */
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 6px rgba(198, 12, 12, 0.2);
}

.btn-primary:hover {
  background-color: var(--secondary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(198, 12, 12, 0.4);
}

.btn-primary.large {
  padding: 16px 40px;
  font-size: 1rem;
}

/* Top Bar */
.top-bar {
  display: none;
  background-color: var(--primary-color);
  color: var(--text-light);
  font-size: 0.85rem;
  padding: 10px 0;
}

.top-bar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.contact-info a {
  margin-right: 20px;
}
.contact-info a:hover {
  color: #ccc;
}

/* Header */
.main-header {
  background: rgba(225, 228, 232, 0.85); /* Light grey tint */
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 10px 40px rgba(0,0,0,0.1); /* Slightly stronger shadow */
  border: 1px solid rgba(255, 255, 255, 0.4);
  position: sticky;
  top: 15px;
  z-index: 1000;
  max-width: 1400px;
  margin: 15px auto;
  border-radius: 20px;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 110px;
  padding: 10px 30px;
  position: relative;
  max-width: 100%;
}

.logo, .logo-right {
  display: flex;
  align-items: center;
}

.logo a, .logo-right a {
  display: flex;
  align-items: center;
}

.header-logo {
  max-height: 95px;
  width: auto;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.header-logo:hover {
  transform: scale(1.05) rotate(-2deg);
}

.main-nav {
  flex: 0 1 auto;
}

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 25px;
}

.main-nav a {
  font-weight: 600;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: relative;
  padding: 8px 12px;
  border-radius: 8px;
  transition: all 0.3s ease;
  color: var(--text-dark);
}

.main-nav a:not(.btn-primary):hover {
  color: var(--primary-color);
  background: rgba(1, 166, 74, 0.08);
}

.main-nav a:not(.btn-primary)::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--primary-color);
  transition: width 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  border-radius: 2px;
}

.main-nav a:not(.btn-primary):hover::after {
  width: 60%;
}

/* Specialized Header Contact Button */
.main-nav .btn-primary {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 28px;
  border-radius: 50px;
  background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
  color: #fff !important;
  font-weight: 700;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(1, 166, 74, 0.3), inset 0 -2px 5px rgba(0,0,0,0.1);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  z-index: 1;
  border: none;
}

.main-nav .btn-primary::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 50%; height: 100%;
  background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.4) 50%, rgba(255,255,255,0) 100%);
  transform: skewX(-25deg);
  animation: shine 3.5s infinite;
  z-index: -1;
}

.main-nav .btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(1, 166, 74, 0.5);
  background: linear-gradient(135deg, #02c056, var(--primary-color));
  color: #fff !important;
}

@keyframes shine {
  0% { left: -100%; }
  20% { left: 200%; }
  100% { left: 200%; }
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.8rem;
  cursor: pointer;
  color: var(--primary-color);
  position: absolute;
  top: 35px;
  right: 20px;
}

.mobile-nav {
  display: none;
  background-color: #fff;
  padding: 20px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.mobile-nav.active {
  display: block;
}

.mobile-nav ul li {
  margin-bottom: 15px;
}

/* Hero Section */
.hero {
  position: relative;
  height: 85vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-slider {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.hero-slider .slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.hero-slider .slide.active {
  opacity: 1;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  color: var(--text-light);
  max-width: 1000px;
  text-align: center;
  margin: 0 auto;
}

.hero-content h1 {
  font-family: 'Source Sans Pro', sans-serif;
  font-size: 3.8rem;
  margin-bottom: 25px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
  font-weight: 900;
  line-height: 1.1;
}

.hero-content p {
  font-size: 1.3rem;
  margin-bottom: 40px;
  opacity: 0.95;
  text-shadow: 0 1px 5px rgba(0,0,0,0.5);
}

/* Services */
.services-section {
  padding: 100px 0;
  background-color: var(--bg-gray);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

@media (max-width: 991px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 768px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
}

.service-card {
  background: #fff;
  padding: 0;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  transition: var(--transition);
  overflow: hidden;
  border-bottom: 4px solid transparent;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(198, 12, 12, 0.15), 0 0 20px rgba(1, 166, 74, 0.1);
  border-bottom: 4px solid var(--secondary-color);
}
.service-card:hover .card-img {
  transform: scale(1.05);
}
.service-card .btn-primary::after {
  content: ' \2192';
  opacity: 0;
  display: inline-block;
  transform: translateX(-10px);
  transition: all 0.3s ease;
}
.service-card:hover .btn-primary::after {
  opacity: 1;
  transform: translateX(0);
}

.service-card .card-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  margin-bottom: 0;
  border-radius: 8px 8px 0 0;
  transition: transform 0.5s ease;
}

.service-card h3 {
  padding: 25px 25px 10px;
  font-size: 1.4rem;
}

.service-card p {
  padding: 0 25px 30px;
  color: #666;
  font-size: 0.95rem;
}

/* --- Bento Box Layout --- */
@media (min-width: 992px) {
  .card-large {
    grid-column: span 2;
    grid-row: span 2;
    min-height: 500px;
  }
  .card-tall {
    grid-row: span 2;
    min-height: 500px;
  }
  .card-wide {
    grid-column: span 2;
  }
}
@media (max-width: 991px) {
  .card-large, .card-wide { grid-column: span 2; }
}
@media (max-width: 768px) {
  .card-large, .card-wide { grid-column: span 1; }
}

/* Large and Tall cards become immersive image backgrounds */
.card-large, .card-tall {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 30px;
}
.card-large .card-img, .card-tall .card-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 8px;
  z-index: 0;
}
.card-large::before, .card-tall::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 80%;
  background: linear-gradient(to top, rgba(0,0,0,0.95), transparent);
  z-index: 1;
  pointer-events: none;
  border-radius: 0 0 8px 8px;
}
.card-large h3, .card-tall h3, 
.card-large p, .card-tall p, 
.card-large a, .card-tall a {
  position: relative;
  z-index: 2;
}
.card-large h3, .card-tall h3 {
  color: #fff;
  padding: 0;
  margin-bottom: 15px;
  font-size: 2rem;
}
.card-tall h3 { font-size: 1.8rem; }
.card-large p, .card-tall p {
  color: #eee;
  padding: 0;
  margin-bottom: 20px;
}
.card-large .btn-primary, .card-tall .btn-primary {
  align-self: flex-start;
  margin-top: 0;
}

/* --- Scroll Fade-Up Animations --- */
.fade-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease-out, transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Gradient Typography --- */
.gradient-text {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

/* --- Floating Orbs for Subpages --- */
.orb-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: -1;
  pointer-events: none;
}
.floating-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  animation: floatOrb 12s infinite alternate ease-in-out;
  opacity: 0.6;
}
.orb-green {
  background: var(--primary-color);
  width: 350px;
  height: 350px;
  top: -100px;
  left: -50px;
}
.orb-red {
  background: var(--secondary-color);
  width: 450px;
  height: 450px;
  bottom: -150px;
  right: -100px;
  animation-delay: -5s;
  opacity: 0.4;
}

@keyframes floatOrb {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, 40px) scale(1.1); }
  100% { transform: translate(-20px, 60px) scale(0.9); }
}

/* Split Layout (About) */
.why-us-section {
  padding: 100px 0;
  background-color: var(--bg-light);
}

.split-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.split-content p {
  font-size: 1.1rem;
  color: #555;
  margin-bottom: 20px;
}

.split-features {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.feature-card {
  background: var(--bg-gray);
  padding: 30px;
  border-radius: 8px;
  border-left: 4px solid var(--primary-color);
  transition: var(--transition);
}

.feature-card:hover {
  background: #fff;
  box-shadow: 0 5px 20px rgba(0,0,0,0.05);
  border-left: 4px solid var(--secondary-color);
}

.feature-card h3 {
  color: var(--primary-color);
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.feature-card p {
  color: #666;
  font-size: 0.9rem;
}

/* CTA */
.cta-section {
  padding: 100px 0;
  background-color: var(--primary-color);
  color: #fff;
}

.cta-section h2 {
  font-size: 2.5rem;
}

.cta-section p {
  font-size: 1.2rem;
  margin-bottom: 40px;
  opacity: 0.9;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.cta-section .underline {
  background-color: var(--secondary-color);
}

/* Footer */
.main-footer {
  background-color: #111;
  color: #eee;
  padding: 80px 0 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 50px;
  margin-bottom: 60px;
}

.footer-col h4 {
  margin-bottom: 25px;
  position: relative;
  padding-bottom: 12px;
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40px;
  height: 2px;
  background-color: var(--secondary-color);
}

.footer-col p {
  color: #bbb;
  margin-bottom: 15px;
  font-size: 0.95rem;
}

.footer-col ul li {
  margin-bottom: 12px;
}

.footer-col a {
  color: #bbb;
  transition: var(--transition);
}

.footer-col a:hover {
  color: var(--secondary-color);
  padding-left: 5px;
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid #333;
  color: #777;
  font-size: 0.9rem;
  position: relative;
}

.secret-popup {
  display: none;
  position: absolute;
  bottom: 50px;
  left: 50%;
  transform: translateX(-50%);
  background: #222;
  border: 1px solid #444;
  padding: 15px;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  z-index: 100;
  text-align: left;
  min-width: 220px;
}
.secret-popup.active {
  display: block;
}
.secret-popup ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.secret-popup ul li {
  margin-bottom: 10px;
}
.secret-popup ul li:last-child {
  margin-bottom: 0;
}
.secret-popup a {
  color: var(--primary-color);
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
}
.secret-popup a:hover {
  color: #fff;
  transform: translateX(5px);
}
/* --- Video Hero Section --- */
.video-hero-section {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-align: center;
  padding: 80px 0;
}

.bg-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translateX(-50%) translateY(-50%);
  z-index: -2;
  object-fit: cover;
}

.bg-image-animated {
  position: absolute;
  top: -10%;
  left: -10%;
  width: 120%;
  height: 120%;
  background-image: url('./images/vast-hero-bg.jpg');
  background-size: cover;
  background-position: center;
  z-index: -2;
  animation: slowPanZoom 20s infinite alternate linear;
}

@keyframes slowPanZoom {
  0% { transform: scale(1) translate(0, 0); }
  100% { transform: scale(1.1) translate(-2%, -2%); }
}

.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5); /* Dark overlay */
  z-index: -1;
}

.video-hero-content {
  position: relative;
  z-index: 1;
  color: #fff;
  padding: 0 20px;
  max-width: 1000px;
}

.video-hero-content h1 {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-shadow: 0 4px 15px rgba(0,0,0,0.5);
  font-family: 'Source Sans Pro', sans-serif;
}

.video-hero-content p {
  font-size: 1.25rem;
  margin-bottom: 30px;
  color: #eee;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* --- Dark Theme Feature Blocks --- */
.dark-features-section {
  background-color: #111;
  color: #eee;
  padding: 100px 0;
}

.feature-block {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 50px;
  margin-bottom: 100px;
}

.feature-block:last-child {
  margin-bottom: 0;
}

.feature-block.reverse {
  flex-direction: row-reverse;
}

.feature-content {
  flex: 1;
  min-width: 300px;
}

.feature-content h2 {
  font-size: 2.2rem;
  color: #fff;
  margin-bottom: 25px;
  position: relative;
  padding-bottom: 15px;
}

.feature-content h2::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 60px;
  height: 4px;
  background-color: var(--primary-color);
}

.feature-content p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #ccc;
  margin-bottom: 20px;
}

.feature-content ul {
  list-style: none;
  padding: 0;
}

.feature-content ul li {
  margin-bottom: 10px;
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  color: #ddd;
}

.feature-content ul li::before {
  content: '✓';
  color: var(--primary-color);
  font-weight: bold;
  margin-right: 10px;
}

.feature-image {
  flex: 1;
  min-width: 300px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0,0,0,0.6);
}

.feature-image img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s ease;
}

.feature-image:hover img {
  transform: scale(1.05);
}

/* Make sure the header looks seamless over video */
.video-page .main-header {
  border-bottom: none;
  box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

/* --- Global Animated Background (Full Page Mode) --- */
.global-bg {
  position: fixed !important;
  top: -10%;
  left: -10%;
  width: 120%;
  height: 120%;
  z-index: -9999;
}

.global-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.7);
  z-index: -9998;
}

.full-bg-mode .video-hero-section {
  background: transparent !important;
  border-bottom: none;
}

.full-bg-mode .video-hero-content {
  z-index: 10;
}

.full-bg-mode .why-us-section, 
.full-bg-mode .cta-section, 
.full-bg-mode .review-cta {
  background: transparent !important;
  color: #fff;
  position: relative;
  z-index: 10;
}

.full-bg-mode .why-us-section p,
.full-bg-mode .cta-section p,
.full-bg-mode .review-cta p {
  color: #eee;
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.full-bg-mode .why-us-section h2,
.full-bg-mode .cta-section h2,
.full-bg-mode .review-cta h2 {
  color: #fff !important;
  text-shadow: 0 4px 15px rgba(0,0,0,0.5);
}

.full-bg-mode .feature-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 15px 35px rgba(0,0,0,0.3);
  color: #fff;
}

.full-bg-mode .feature-card h3 {
  color: #fff;
}

.full-bg-mode .feature-card p {
  color: #ccc;
  text-shadow: none;
}

.full-bg-mode .feature-card:hover {
  background: rgba(255, 255, 255, 0.1);
}

.hero-btn {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff !important;
  padding: 15px 35px;
  border-radius: 30px;
  font-size: 1.1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  text-decoration: none;
}

.hero-btn:hover {
  background: var(--primary-color);
  border-color: var(--primary-color);
  box-shadow: 0 10px 25px rgba(1, 166, 74, 0.5);
  transform: translateY(-3px);
}

.full-bg-mode .main-footer {
  background: rgba(0,0,0,0.5) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  z-index: 10;
  color: #ccc;
}

.full-bg-mode .main-footer h4 {
  color: #fff;
}

.full-bg-mode main {
  background: transparent !important;
  color: #fff;
  position: relative;
  z-index: 10;
}

.full-bg-mode .about-text p {
  color: #eee !important;
  text-shadow: 0 1px 5px rgba(0,0,0,0.5);
}

.full-bg-mode .team-highlight {
  background: rgba(255, 255, 255, 0.05) !important;
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-left-color: var(--primary-color) !important;
  box-shadow: 0 15px 35px rgba(0,0,0,0.3) !important;
}

.full-bg-mode .team-highlight p {
  color: #fff !important;
}

.full-bg-mode .services-section {
  background: transparent !important;
  position: relative;
  z-index: 10;
}

.full-bg-mode .section-title h2,
.full-bg-mode .section-title h4 {
  color: #fff !important;
  text-shadow: 0 4px 15px rgba(0,0,0,0.5);
}

.full-bg-mode .service-card {
  background: rgba(255, 255, 255, 0.05) !important;
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.3) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.full-bg-mode .service-card h3 {
  color: #fff !important;
  text-shadow: 0 2px 5px rgba(0,0,0,0.5);
}

.full-bg-mode .service-card p {
  color: #eee !important;
}

.full-bg-mode .ideas-grid > div {
  background: rgba(255, 255, 255, 0.05) !important;
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.3) !important;
  border-top-width: 4px;
}

.full-bg-mode .ideas-grid > div p,
.full-bg-mode .ideas-grid > div h3 {
  text-shadow: 0 2px 5px rgba(0,0,0,0.5);
}

.full-bg-mode .ideas-grid > div p {
  color: #eee !important;
}

.full-bg-mode .text-center {
  color: #eee !important;
}

/* Eye-Catching Button Animation */
.btn-attention {
  position: relative;
  overflow: hidden;
  animation: attentionPulse 2s infinite;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  transform-origin: center;
  z-index: 1;
}
.btn-attention::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 50%; height: 100%;
  background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.4) 50%, rgba(255,255,255,0) 100%);
  transform: skewX(-25deg);
  animation: shimmerSweep 3s infinite;
  z-index: 2;
}
.btn-attention:hover {
  animation: none;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}
@keyframes attentionPulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7); transform: scale(1); }
  70% { box-shadow: 0 0 0 15px rgba(255, 255, 255, 0); transform: scale(1.03); }
  100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); transform: scale(1); }
}
@keyframes shimmerSweep {
  0% { left: -100%; }
  20% { left: 200%; }
  100% { left: 200%; }
}

/* Responsive */
@media (max-width: 992px) {
  .split-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .top-bar { display: none; }
  .main-nav { display: none; }
  .logo-right { display: none; }
  .mobile-menu-btn { display: block; }
  
  .hero-content h1 { font-size: 2.5rem; }
  
  .services-section, .why-us-section, .cta-section {
    padding: 60px 0;
  }
}

/* --- Interactive Fun Stuff Widgets --- */
.interactive-widget {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 15px;
  padding: 40px;
  box-shadow: 0 25px 50px rgba(0,0,0,0.3);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

.interactive-widget:hover {
  transform: translateY(-5px);
  box-shadow: 0 30px 60px rgba(0,0,0,0.4);
}

.interactive-widget::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.interactive-widget h3 {
  color: #fff;
  font-size: 1.8rem;
  margin-bottom: 15px;
  text-shadow: 0 2px 5px rgba(0,0,0,0.5);
}

.interactive-widget p {
  color: #ddd;
  font-size: 1rem;
  margin-bottom: 25px;
  line-height: 1.6;
}

/* Coverage Checker */
.coverage-input-group {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-bottom: 20px;
}

.coverage-input {
  padding: 12px 20px;
  border-radius: 30px;
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(0,0,0,0.2);
  color: #fff;
  font-size: 1rem;
  outline: none;
  width: 200px;
  transition: all 0.3s ease;
}

.coverage-input:focus {
  border-color: var(--primary-color);
  background: rgba(0,0,0,0.4);
}

.scanning-anim {
  display: none;
  margin: 20px auto;
  width: 50px;
  height: 50px;
  border: 4px solid rgba(255,255,255,0.1);
  border-top-color: var(--primary-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin { 100% { transform: rotate(360deg); } }

.coverage-result {
  display: none;
  margin-top: 20px;
  padding: 20px;
  border-radius: 10px;
  background: rgba(1, 166, 74, 0.1);
  border: 1px solid var(--primary-color);
  color: #fff;
  animation: fadeInDown 0.5s ease forwards;
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Tech Myths Quiz */
.quiz-container {
  min-height: 200px;
}

.quiz-question {
  display: none;
  animation: fadeIn 0.4s ease forwards;
}

.quiz-question.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.quiz-options {
  display: flex;
  gap: 15px;
  justify-content: center;
  margin-top: 20px;
}

.quiz-btn {
  padding: 10px 30px;
  border-radius: 30px;
  border: 2px solid var(--primary-color);
  background: transparent;
  color: #fff;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
}

.quiz-btn:hover {
  background: var(--primary-color);
  color: #fff;
}

.quiz-result {
  display: none;
  margin-top: 20px;
}

/* --- Fiber Splicer Game --- */
.fiber-container {
  position: relative;
  height: 80px;
  background: rgba(0,0,0,0.3);
  border-radius: 40px;
  margin: 30px 0;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.1);
}

.fiber-target {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 10px;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.2);
  border-left: 2px dashed rgba(255, 255, 255, 0.5);
  border-right: 2px dashed rgba(255, 255, 255, 0.5);
  z-index: 1;
}

.fiber-strand {
  position: absolute;
  top: 50%;
  height: 6px;
  background: #00e5ff;
  box-shadow: 0 0 10px #00e5ff, 0 0 20px #00e5ff;
  transform: translateY(-50%);
  border-radius: 3px;
  z-index: 2;
}

.fiber-left {
  left: -50%;
  width: 50%;
}

.fiber-right {
  right: 0;
  width: 50%;
}

/* --- Network Defender Game --- */
.defender-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  margin: 30px auto;
  max-width: 250px;
}

.threat-node {
  width: 60px;
  height: 60px;
  background: #333;
  border: 2px solid #555;
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  transition: all 0.2s ease;
  user-select: none;
}

.threat-node.threat {
  background: rgba(244, 67, 54, 0.2);
  border-color: #f44336;
  animation: pulse-red 1s infinite;
}

.threat-node.safe {
  background: rgba(76, 175, 80, 0.2);
  border-color: #4caf50;
  box-shadow: 0 0 15px rgba(76, 175, 80, 0.5);
}

@keyframes pulse-red {
  0% { box-shadow: 0 0 0 0 rgba(244, 67, 54, 0.7); }
  70% { box-shadow: 0 0 0 10px rgba(244, 67, 54, 0); }
  100% { box-shadow: 0 0 0 0 rgba(244, 67, 54, 0); }
}

/* --- Radio Simulator --- */
.radio-container {
  margin-top: 20px;
  text-align: left;
}

.slider-wrapper {
  margin-bottom: 25px;
}

.distance-slider {
  width: 100%;
  appearance: none;
  height: 8px;
  border-radius: 4px;
  background: rgba(255,255,255,0.2);
  outline: none;
}

.distance-slider::-webkit-slider-thumb {
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--primary-color);
  cursor: pointer;
  box-shadow: 0 0 10px var(--primary-color);
}

.toggle-wrapper {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
  color: #fff;
  font-weight: 600;
}

.toggle-switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 34px;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider-toggle {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #555;
  transition: .4s;
  border-radius: 34px;
}

.slider-toggle:before {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}

input:checked + .slider-toggle {
  background-color: var(--primary-color);
}

input:checked + .slider-toggle:before {
  transform: translateX(26px);
}

.radio-text-box {
  background: #111;
  border: 1px solid #333;
  border-radius: 8px;
  padding: 20px;
  font-family: 'Courier New', Courier, monospace;
  color: #4caf50;
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 1.1rem;
  line-height: 1.5;
  box-shadow: inset 0 0 10px rgba(0,0,0,0.8);
}


/* Contact Form Styles */
.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

@media (max-width: 900px) {
  .contact-container {
    grid-template-columns: 1fr;
  }
}

.contact-info {
  text-align: left;
}

.contact-info h2 {
  font-size: 3rem;
  color: #fff;
  margin-bottom: 20px;
  text-shadow: 0 4px 15px rgba(0,0,0,0.8);
}

.contact-info .underline {
  margin: 0 0 30px 0;
  width: 80px;
  height: 4px;
  background: var(--primary-color);
}

.contact-info p {
  color: #eee;
  font-size: 1.2rem;
  line-height: 1.6;
  margin-bottom: 20px;
}

.contact-info ul {
  list-style: none;
  padding: 0;
  margin-top: 30px;
}

.contact-info ul li {
  color: #fff;
  font-size: 1.2rem;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 15px;
}

.glass-form {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border: 1px solid rgba(255,255,255,0.1);
  border-top: 4px solid var(--primary-color);
  border-radius: 15px;
  padding: 40px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.5);
  text-align: left;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  color: #eee;
  font-size: 1rem;
  margin-bottom: 8px;
  font-weight: 500;
}

.form-control {
  width: 100%;
  padding: 15px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  color: #fff;
  font-size: 1rem;
  font-family: 'Montserrat', sans-serif;
  transition: all 0.3s ease;
}

.form-control::placeholder {
  color: #aaa;
}

.form-control:focus {
  outline: none;
  border-color: var(--primary-color);
  background: rgba(0, 0, 0, 0.5);
  box-shadow: 0 0 15px rgba(220, 38, 38, 0.3);
}

select.form-control {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23ffffff%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
  background-repeat: no-repeat;
  background-position: right 15px top 50%;
  background-size: 12px auto;
}

select.form-control option {
  background: #1a2235;
  color: #fff;
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

/* ==========================================================================
   MOBILE POLISH (max-width: 768px)
   ========================================================================== */
@media (max-width: 768px) {
  /* 1. Header & Navigation Refinements */
  /* Target the logo container specifically */
  section[style*="padding: 60px"] .container > div[style*="display: flex"] {
    flex-direction: column !important;
    gap: 20px !important;
  }
  
  /* Scale logos so they fit perfectly */
  section[style*="padding: 60px"] .container > div[style*="display: flex"] img {
    max-width: 250px !important;
    margin: 0 auto;
  }
  
  /* Stack the navigation buttons vertically */
  .hero-nav-links {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 10px !important;
    padding: 0 20px;
  }
  
  .hero-nav-links .hero-btn {
    width: 100% !important;
    text-align: center;
    display: block;
    padding: 12px 20px !important;
    margin-bottom: 0 !important;
  }

  /* 2. Typography Adjustments */
  h1 {
    font-size: 2.2rem !important;
  }
  h2 {
    font-size: 1.8rem !important;
  }
  .fade-up > p {
    font-size: 1.1rem !important;
  }
  
  /* Fix custom solutions box padding */
  .video-hero-content .fade-up {
    padding: 20px !important;
  }

  /* 3. Layout Grid Stacking & Spacing */
  /* Ensure padding isn't too massive on small screens */
  section {
    padding-top: 50px !important;
    padding-bottom: 50px !important;
  }
  
  /* Specifically fix the hero/splash header padding to avoid squishing */
  section[style*="padding: 60px"] {
    padding-top: 30px !important;
    padding-bottom: 10px !important;
  }

  /* Ensure grids stack nicely */
  .ideas-grid {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }
  
  .projects-grid {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }
  
  .contact-container {
    grid-template-columns: 1fr !important;
    gap: 30px !important;
  }

  /* Adjust glass form padding */
  .glass-form {
    padding: 25px 20px !important;
  }
  
  /* Adjust hero nav container on home page */
  .video-hero-content {
    padding-top: 30px !important;
  }
  
  .video-hero-content > div[style*="display: flex"] {
    flex-direction: column !important;
    gap: 20px !important;
  }
  
  .video-hero-content img {
    max-width: 250px !important;
  }
}

