/* Hero Styles */
.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  padding-top: 100px;
  padding-bottom: 60px;
  z-index: 10;
}

.backgroundLayer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, rgba(10, 132, 255, 0.15) 0%, transparent 60%);
  z-index: -2;
  transition: background-position 0.5s ease-out;
  overflow: hidden;
}

.gridOverlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  z-index: -1;
  mask-image: linear-gradient(to bottom, black 40%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, black 40%, transparent 100%);
}

[data-theme="dark"] .gridOverlay {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
}

.glowOverlay {
  position: absolute;
  top: 20%;
  left: -10%;
  width: 50vw;
  height: 50vw;
  background: radial-gradient(circle, rgba(10, 132, 255, 0.2) 0%, transparent 70%);
  filter: blur(80px);
  z-index: -2;
  animation: pulseGlow 8s infinite alternate;
}

@keyframes pulseGlow {
  0% { transform: scale(1) translate(0, 0); opacity: 0.5; }
  100% { transform: scale(1.1) translate(5%, 5%); opacity: 0.8; }
}

.content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  justify-content: space-between;
  gap: 2rem;
  position: relative;
  z-index: 1;
}

@media (min-width: 768px) {
  .content {
    flex-direction: row;
    text-align: left;
  }
}

.textContent {
  flex: 1.5;
  max-width: 700px;
  min-width: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin: 0;
  animation: fadeInUp 0.8s ease-out forwards;
}

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

@media (min-width: 768px) {
  .textContent {
    align-items: flex-start;
    text-align: left;
  }
}

.subtitle {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--color-primary);
  margin-bottom: 1.5rem;
  margin-left: -32px;
}

.subtitle::before {
  content: '';
  display: block;
  width: 20px;
  height: 2px;
  background: var(--color-primary);
}

.title {
  font-size: 2rem;
  line-height: 1.15;
  margin-bottom: 1.25rem;
  color: var(--color-text-dark);
  letter-spacing: -0.02em;
}

@media (min-width: 768px) {
  .title { font-size: 4.25rem; }
}

.highlight {
  color: var(--color-primary);
  position: relative;
  display: inline-block;
}

.description {
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--color-text-muted);
  margin-bottom: 2.5rem;
  max-width: 100%;
}

@media (min-width: 1024px) {
  .description { max-width: 90%; }
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem 1.5rem;
  width: 100%;
  margin-bottom: 2rem;
}

@media (min-width: 768px) {
  .actions {
    justify-content: flex-start;
    margin-bottom: 4rem;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0.875rem 1.75rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  border: none;
  text-decoration: none;
}

.btnPrimary {
  background: var(--color-primary);
  color: white;
  box-shadow: 0 4px 14px rgba(255, 107, 0, 0.4);
}

.btnPrimary:hover {
  background: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 107, 0, 0.6);
}

.btnMore {
  background: rgba(10, 132, 255, 0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--color-text-dark);
  border: 1px solid rgba(10, 132, 255, 0.2);
}

[data-theme="dark"] .btnMore {
  background: rgba(255, 255, 255, 0.05);
  color: #f1f5f9;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.btnMore:hover {
  background: rgba(10, 132, 255, 0.15);
  border-color: rgba(10, 132, 255, 0.4);
  color: var(--color-primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

[data-theme="dark"] .btnMore:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.dropdownContainer {
  position: relative;
  display: inline-block;
}

.dropdownMenu {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  background: var(--color-bg-light);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 0.5rem 0;
  min-width: 220px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  z-index: 100;
  display: none;
  flex-direction: column;
}

.dropdownMenu.active {
  display: flex;
}

[data-theme="dark"] .dropdownMenu {
  background: #1e293b;
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.btnDropdown {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  padding: 0.85rem 1.25rem;
  font-weight: 600;
  font-size: 0.9rem;
  font-family: inherit;
  color: var(--color-text-dark);
  background: transparent;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  text-align: left;
  text-decoration: none;
}

[data-theme="dark"] .btnDropdown {
  color: #f1f5f9;
}

.btnDropdown:hover {
  background: rgba(10, 132, 255, 0.1);
  color: var(--color-primary);
}

[data-theme="dark"] .btnDropdown:hover {
  background: rgba(255, 255, 255, 0.05);
}

.visualContent {
  flex: 1;
  min-width: 30%;
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 1000px;
  animation: scaleIn 1s ease-out forwards;
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

.glassPanel {
  width: 100%;
  max-width: 500px;
  height: 320px;
  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: var(--radius-lg);
  box-shadow: var(--shadow-2xl);
  transform: rotateY(-15deg) rotateX(5deg);
  transition: transform 0.5s ease;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

@media (min-width: 768px) {
  .glassPanel { height: 400px; }
}

.glassPanel:hover {
  transform: rotateY(0deg) rotateX(0deg);
}

.panelHeader {
  height: 40px;
  background: rgba(0, 0, 0, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  padding: 0 1rem;
  gap: 8px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
}
.dot:nth-child(1) { background: #FF5F56; }
.dot:nth-child(2) { background: #FFBD2E; }
.dot:nth-child(3) { background: #27C93F; }

.panelBody {
  flex: 1;
  position: relative;
  padding: 2rem;
}

.circuitLine {
  position: absolute;
  top: 20%;
  left: 0;
  width: 60%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-primary));
  animation: drawLine 3s infinite;
}

.circuitLine2 {
  position: absolute;
  top: 50%;
  right: 0;
  width: 80%;
  height: 2px;
  background: linear-gradient(-90deg, transparent, var(--color-accent));
  animation: drawLine 4s infinite reverse;
}

@keyframes drawLine {
  0% { width: 0; opacity: 0; }
  50% { opacity: 1; }
  100% { width: 100%; opacity: 0; }
}

.dashboardHeader {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--color-primary);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  letter-spacing: 0.5px;
}

.dashboardIcon {
  animation: pulseGlow 2s infinite alternate;
}

.dashboardGrid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

@media (min-width: 480px) {
  .dashboardGrid { grid-template-columns: 1fr 1fr; }
}

.dashboardCard {
  background: rgba(10, 132, 255, 0.05);
  border: 1px solid rgba(10, 132, 255, 0.2);
  border-radius: var(--radius-sm);
  padding: 1rem;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all 0.3s ease;
}

.dashboardCard:hover {
  background: rgba(10, 132, 255, 0.1);
  border-color: rgba(10, 132, 255, 0.4);
  transform: translateY(-2px);
}

.cardIcon {
  background: rgba(10, 132, 255, 0.15);
  color: var(--color-primary);
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cardInfo {
  display: flex;
  flex-direction: column;
}

.cardLabel {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.cardValue {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-text-dark);
  font-family: var(--font-heading);
}

[data-theme="dark"] .cardValue {
  color: var(--color-text-light);
}

.systemStatus {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 1rem;
  background: rgba(39, 201, 63, 0.05);
  border: 1px solid rgba(39, 201, 63, 0.2);
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

.statusIcon {
  color: #27C93F;
  flex-shrink: 0;
  margin-top: 2px;
}

/* Video Modal Styles */
.videoModal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 2000;
  display: none;
  justify-content: center;
  align-items: center;
}

.videoModal.active {
  display: flex;
}

.videoOverlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.videoContainer {
  position: relative;
  width: 90%;
  max-width: 900px;
  aspect-ratio: 16 / 9;
  background: var(--color-bg-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-2xl);
  overflow: hidden;
  z-index: 10;
  animation: scaleIn 0.3s ease-out;
}

[data-theme="dark"] .videoContainer {
  background: #050A15;
}

.closeVideoBtn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(0, 0, 0, 0.5);
  border: none;
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  z-index: 20;
  transition: all 0.2s;
}

.closeVideoBtn:hover {
  background: var(--color-primary);
  transform: scale(1.1);
}

.videoIframe {
  width: 130%;
  height: 250%;
  border: none;
  position: absolute;
  top: -75%;
  left: -15%;
}

@media (max-width: 768px) {
  .videoIframe {
    width: 100%;
    height: 300%;
    top: -30%;
    left: 0;
  }
}
