/* Mobile Navigation Styles */
.mobile-nav-menu {
  position: fixed;
  inset: 0;
  background: #0a0e13;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transform: translateX(-100%);
  visibility: hidden;
  opacity: 0;
  transition: transform 0.3s, opacity 0.3s, visibility 0.3s;
}

.mobile-nav-menu.active {
  transform: translateX(0);
  visibility: visible;
  opacity: 1;
}

.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 1.2rem 0 1.2rem;
}

.mobile-menu-logo {
  flex: 1;
  display: flex;
  justify-content: center;
}

.mobile-menu-close {
  color: #fff;
  font-size: 2rem;
  margin-left: 1rem;
  padding: 0.5rem;
  border-radius: 0.5rem;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 80;
}

.mobile-menu-close:hover {
  background: rgba(0, 212, 170, 0.1);
}

.mobile-nav-menu nav {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
}

.mobile-nav-menu ul {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
  width: 100%;
}

.mobile-nav-link {
  color: #fff;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 0.5rem 1.5rem;
  border-radius: 0.75rem;
  transition: background 0.2s, color 0.2s;
  text-align: center;
  width: 100%;
  display: block;
}

.mobile-nav-link:hover {
  background: rgba(0, 212, 170, 0.1);
  color: #00d4aa;
}

.mobile-menu-contact {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
  padding-bottom: 1.2rem;
}

.mobile-menu-contact a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #00d4aa;
  font-size: 1rem;
  font-weight: 500;
  transition: color 0.2s;
}

.mobile-menu-contact a:hover {
  color: #1dd1a1;
}

/* Service Module Styles */
.service-modules {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  position: relative;
  height: auto;
}

.service-module {
  position: relative;
  top: auto;
  left: auto;
  right: auto;
  bottom: auto;
  margin-bottom: 1rem;
  min-width: 100%;
  max-width: 320px;
}

.module-popup {
  position: relative;
  top: auto;
  left: auto;
  right: auto;
  bottom: auto;
  transform: none;
  margin-top: 1rem;
  opacity: 1;
  visibility: visible;
  min-width: 100%;
  max-width: 100%;
}

/* Connection lines positioning */
.connection-line {
  position: absolute;
  background: var(--primary-cyan);
  border-radius: 1px;
  opacity: 0.8;
}

.top-left-line {
  top: 15%;
  left: 20%;
  width: 22%;
  height: 2px;
}

.top-right-line {
  top: 15%;
  right: 20%;
  width: 22%;
  height: 2px;
}

.top-2-left-line {
  bottom: 60%;
  left: 9%;
  width: 30%;
  height: 2px;
}

.top-2-left-line:after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 2px;
  height: 200px;
  background: var(--primary-cyan);
}

.top-2-right-line {
  top: 40%;
  right: 9%;
  width: 30%;
  height: 2px;
}

.top-2-right-line:after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 2px;
  height: 200px;
  background: var(--primary-cyan);
}

.middle-left-line {
  bottom: 43%;
  left: 13%;
  width: 30%;
  height: 2px;
}

.middle-left-line:after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 2px;
  height: 200px;
  background: var(--primary-cyan);
}

.middle-right-line {
  top: 57%;
  right: 13%;
  width: 30%;
  height: 2px;
}

.middle-right-line:after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 2px;
  height: 200px;
  background: var(--primary-cyan);
}

.bottom-left-line {
  bottom: 22%;
  left: 26%;
  width: 22%;
  height: 2px;
}

.bottom-left-line::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 2px;
  height: 400px;
  background: var(--primary-cyan);
}

.bottom-right-line {
  bottom: 22%;
  right: 26%;
  width: 22%;
  height: 2px;
}

.bottom-right-line::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 2px;
  height: 400px;
  background: var(--primary-cyan);
}

/* Blog Details Page Styles */
#blog-details {
  position: relative;
  overflow-x: hidden;
}

#blog-details .grid-bg {
  background-image: linear-gradient(rgba(0, 212, 170, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 212, 170, 0.1) 1px, transparent 1px);
  background-size: 40px 40px;
}

/* Typography Enhancements */
#blog-details h1 {
  line-height: 1.1;
  letter-spacing: -0.02em;
}

#blog-details h2 {
  line-height: 1.2;
  margin-bottom: 1rem;
}

#blog-details h3 {
  line-height: 1.3;
  margin-bottom: 0.75rem;
}

#blog-details p {
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

#blog-details ul, #blog-details ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

#blog-details li {
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

/* Code Block Styles */
#blog-details pre {
  background: #0a0e13;
  border: 1px solid rgba(0, 212, 170, 0.2);
  border-radius: 0.5rem;
  padding: 1rem;
  overflow-x: auto;
  margin: 1.5rem 0;
  position: relative;
}

#blog-details pre code {
  font-family: 'Fira Code', 'Monaco', 'Consolas', monospace;
  font-size: 0.875rem;
  line-height: 1.5;
  color: #e2e8f0;
}

#blog-details .bg-darkest-bg {
  background: #0a0e13;
}

/* Table Styles */
#blog-details table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
}

#blog-details th {
  background: rgba(0, 212, 170, 0.1);
  color: #00d4aa;
  font-weight: 600;
  text-align: left;
  padding: 1rem;
  border-bottom: 1px solid rgba(0, 212, 170, 0.2);
}

#blog-details td {
  padding: 1rem;
  border-bottom: 1px solid rgba(0, 212, 170, 0.1);
  vertical-align: top;
}

#blog-details tr:hover {
  background: rgba(0, 212, 170, 0.05);
}

/* Blockquote Styles */
#blog-details blockquote {
  border-left: 4px solid #00d4aa;
  background: rgba(0, 212, 170, 0.05);
  border-radius: 0 0.5rem 0.5rem 0;
  padding: 1.5rem;
  margin: 2rem 0;
  font-style: italic;
}

#blog-details blockquote p {
  margin-bottom: 0.5rem;
  font-size: 1.125rem;
}

#blog-details blockquote cite {
  font-style: normal;
  font-weight: 600;
}

/* Interactive Elements */
#blog-details .hover\:border-primary-cyan:hover {
  border-color: #00d4aa;
  transform: translateY(-2px);
  transition: all 0.3s ease;
}

#blog-details .hover\:scale-105:hover {
  transform: scale(1.05);
  transition: transform 0.3s ease;
}

/* Line Clamp Utilities */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Newsletter Form Styles */
#blog-details input[type="email"] {
  background: #0a0e13;
  border: 1px solid rgba(0, 212, 170, 0.2);
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  color: #ffffff;
  font-size: 0.875rem;
  transition: border-color 0.3s ease;
}

#blog-details input[type="email"]:focus {
  outline: none;
  border-color: #00d4aa;
  box-shadow: 0 0 0 3px rgba(0, 212, 170, 0.1);
}

#blog-details input[type="email"]::placeholder {
  color: #6b7280;
}

/* Copy Button Styles */
#blog-details .copy-button {
  background: rgba(0, 212, 170, 0.1);
  color: #00d4aa;
  border: 1px solid rgba(0, 212, 170, 0.2);
  border-radius: 0.25rem;
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

#blog-details .copy-button:hover {
  background: #00d4aa;
  color: #ffffff;
}

/* Breadcrumb Styles */
#blog-details nav {
  margin-bottom: 2rem;
}

#blog-details nav a {
  color: #9ca3af;
  text-decoration: none;
  transition: color 0.3s ease;
}

#blog-details nav a:hover {
  color: #00d4aa;
}

/* Category Badge Styles */
#blog-details .category-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(0, 212, 170, 0.1);
  color: #00d4aa;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Author Profile Styles */
#blog-details .author-avatar {
  width: 4rem;
  height: 4rem;
  background: linear-gradient(135deg, #00d4aa 0%, #1dd1a1 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 700;
  font-size: 1.25rem;
  margin: 0 auto 1rem;
}

/* Social Media Icons */
#blog-details .social-icon {
  width: 2.5rem;
  height: 2.5rem;
  background: rgba(0, 212, 170, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #00d4aa;
  transition: all 0.3s ease;
  cursor: pointer;
}

#blog-details .social-icon:hover {
  background: #00d4aa;
  color: #ffffff;
  transform: translateY(-2px);
}

/* Warning Box Styles */
#blog-details .warning-box {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, rgba(251, 146, 60, 0.1) 100%);
  border-left: 4px solid #ef4444;
  border-radius: 0 0.5rem 0.5rem 0;
  padding: 1.5rem;
  margin: 1.5rem 0;
}

#blog-details .warning-box h4 {
  color: #f87171;
  font-weight: 600;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Key Takeaways Box */
#blog-details .key-takeaways {
  background: linear-gradient(135deg, rgba(0, 212, 170, 0.1) 0%, rgba(29, 209, 161, 0.1) 100%);
  border-left: 4px solid #00d4aa;
  border-radius: 0 0.5rem 0.5rem 0;
  padding: 1.5rem;
  margin: 1.5rem 0;
}

#blog-details .key-takeaways h3 {
  color: #ffffff;
  font-weight: 600;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

#blog-details .key-takeaways ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

#blog-details .key-takeaways li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  color: #d1d5db;
}

#blog-details .key-takeaways li:last-child {
  margin-bottom: 0;
}

#blog-details .key-takeaways .bullet {
  width: 0.5rem;
  height: 0.5rem;
  background: #00d4aa;
  border-radius: 50%;
  margin-top: 0.5rem;
  flex-shrink: 0;
}

/* Responsive Design for Blog Details */
@media (max-width: 768px) {
  #blog-details h1 {
    font-size: 2rem !important;
    line-height: 1.2 !important;
  }
  
  #blog-details h2 {
    font-size: 1.5rem !important;
    line-height: 1.3 !important;
  }
  
  #blog-details h3 {
    font-size: 1.25rem !important;
    line-height: 1.4 !important;
  }
  
  #blog-details p {
    font-size: 0.9rem !important;
    line-height: 1.6 !important;
  }
  
  #blog-details pre {
    font-size: 0.75rem !important;
    padding: 0.75rem !important;
  }
  
  #blog-details table {
    font-size: 0.8rem !important;
  }
  
  #blog-details th,
  #blog-details td {
    padding: 0.5rem !important;
  }
  
  #blog-details .author-avatar {
    width: 3rem !important;
    height: 3rem !important;
    font-size: 1rem !important;
  }
  
  #blog-details .social-icon {
    width: 2rem !important;
    height: 2rem !important;
  }
  
  #blog-details .category-badge {
    font-size: 0.7rem !important;
    padding: 0.2rem 0.5rem !important;
  }
}

@media (max-width: 480px) {
  #blog-details h1 {
    font-size: 1.75rem !important;
  }
  
  #blog-details h2 {
    font-size: 1.25rem !important;
  }
  
  #blog-details h3 {
    font-size: 1.1rem !important;
  }
  
  #blog-details p {
    font-size: 0.85rem !important;
  }
  
  #blog-details pre {
    font-size: 0.7rem !important;
    padding: 0.5rem !important;
  }
  
  #blog-details blockquote {
    padding: 1rem !important;
  }
  
  #blog-details blockquote p {
    font-size: 1rem !important;
  }
}

/* Animation Enhancements */
#blog-details .fade-in {
  animation: fadeIn 0.6s ease-in-out;
}

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

#blog-details .slide-in-left {
  animation: slideInLeft 0.6s ease-out;
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

#blog-details .slide-in-right {
  animation: slideInRight 0.6s ease-out;
}

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