/* Enhanced GIF Display Styles */
/* ============================= */

/* Enhanced GIF Container Styles */
.gif-container {
  position: relative;
  margin: 2em 0;
  border-radius: 12px;
  overflow: hidden;
  display: inline-block;
  width: 100%;
  max-width: none;
}

.enhanced-gif {
  display: block;
  width: 100%;
  height: auto;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 12px;
}

.gif-overlay {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 8px 12px;
  border-radius: 20px;
  font-size: 12px;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.gif-container:hover .gif-overlay {
  opacity: 1;
}

/* Lightbox Styles */
.lightbox {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(5px);
  animation: fadeIn 0.3s ease;
}

.lightbox-content {
  position: relative;
  margin: auto;
  padding: 20px;
  width: 95%;
  height: 95%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  animation: zoomIn 0.3s ease;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 35px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  z-index: 10000;
  transition: color 0.3s ease;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-close:hover {
  color: #ff4444;
  background: rgba(0, 0, 0, 0.8);
}

.lightbox-info {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: white;
  text-align: center;
  background: rgba(0, 0, 0, 0.7);
  padding: 10px 20px;
  border-radius: 20px;
  font-size: 14px;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes zoomIn {
  from { transform: scale(0.8); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* Responsive Design */
@media (max-width: 768px) {
  .lightbox-close {
    top: 10px;
    right: 15px;
    font-size: 30px;
    width: 45px;
    height: 45px;
  }
  
  .gif-overlay {
    font-size: 10px;
    padding: 6px 10px;
  }
  
  .lightbox-info {
    font-size: 12px;
    padding: 8px 16px;
  }
}

/* Color-coded borders for different demo types */
.gif-blue-border {
  border: 2px solid #2196F3;
  box-shadow: 0 8px 24px rgba(33, 150, 243, 0.3);
}

.gif-blue-border:hover {
  box-shadow: 0 12px 32px rgba(33, 150, 243, 0.4);
}

.gif-green-border {
  border: 2px solid #4CAF50;
  box-shadow: 0 8px 24px rgba(76, 175, 80, 0.3);
}

.gif-green-border:hover {
  box-shadow: 0 12px 32px rgba(76, 175, 80, 0.4);
}

.gif-orange-border {
  border: 2px solid #FF9800;
  box-shadow: 0 8px 24px rgba(255, 152, 0, 0.3);
}

.gif-orange-border:hover {
  box-shadow: 0 12px 32px rgba(255, 152, 0, 0.4);
}

.gif-purple-border {
  border: 2px solid #9C27B0;
  box-shadow: 0 8px 24px rgba(156, 39, 176, 0.3);
}

.gif-purple-border:hover {
  box-shadow: 0 12px 32px rgba(156, 39, 176, 0.4);
}

/* Clickable GIF styles */
.clickable-gif {
  cursor: zoom-in;
  transition: all 0.3s ease;
}

.clickable-gif:hover {
  transform: scale(1.02);
}

/* Enhanced hover effects for different border colors */
.enhanced-gif.gif-blue-border:hover {
  transform: scale(1.02);
  box-shadow: 0 12px 32px rgba(33, 150, 243, 0.4);
}

.enhanced-gif.gif-green-border:hover {
  transform: scale(1.02);
  box-shadow: 0 12px 32px rgba(76, 175, 80, 0.4);
}

.enhanced-gif.gif-orange-border:hover {
  transform: scale(1.02);
  box-shadow: 0 12px 32px rgba(255, 152, 0, 0.4);
}

.enhanced-gif.gif-purple-border:hover {
  transform: scale(1.02);
  box-shadow: 0 12px 32px rgba(156, 39, 176, 0.4);
}

/* Reset hover effects when not hovering */
.enhanced-gif.gif-blue-border {
  transform: scale(1);
  box-shadow: 0 8px 24px rgba(33, 150, 243, 0.3);
}

.enhanced-gif.gif-green-border {
  transform: scale(1);
  box-shadow: 0 8px 24px rgba(76, 175, 80, 0.3);
}

.enhanced-gif.gif-orange-border {
  transform: scale(1);
  box-shadow: 0 8px 24px rgba(255, 152, 0, 0.3);
}

.enhanced-gif.gif-purple-border {
  transform: scale(1);
  box-shadow: 0 8px 24px rgba(156, 39, 176, 0.3);
}

/* Hero Banner Styles for Index Page */
/* ================================== */

.hero-banner {
    width: 100%;
    margin: 20px 0;
}

.hero-container {
    width: 100%;
    min-height: 500px;
    background: linear-gradient(135deg, #0B1426 0%, #1E3A5F 50%, #2B5A87 100%);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    border-radius: 12px;
    padding: 40px 20px;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle at 25% 25%, rgba(255,255,255,0.1) 2px, transparent 2px),
                      radial-gradient(circle at 75% 75%, rgba(255,255,255,0.05) 1px, transparent 1px);
    background-size: 60px 60px, 40px 40px;
    animation: float 20s ease-in-out infinite;
}

.hero-decorations {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 5;
}

.switch-element {
    position: absolute;
    width: clamp(60px, 8vw, 80px);
    height: clamp(15px, 2vw, 20px);
    background: linear-gradient(45deg, #2196F3, #64B5F6);
    border-radius: 4px;
    box-shadow: 0 4px 15px rgba(33, 150, 243, 0.3);
}

.switch-1 {
    top: 15%;
    left: 10%;
    animation: float-switch 15s ease-in-out infinite;
}

.switch-2 {
    top: 25%;
    right: 15%;
    animation: float-switch 18s ease-in-out infinite reverse;
}

.switch-3 {
    bottom: 20%;
    left: 8%;
    animation: float-switch 12s ease-in-out infinite;
}

.hero-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.pulse-line {
    position: absolute;
    background: linear-gradient(90deg, transparent, rgba(79, 195, 247, 0.6), transparent);
    height: 2px;
    animation: pulse-line 3s ease-in-out infinite;
}

.line-1 {
    top: 30%;
    left: 20%;
    width: clamp(150px, 20vw, 200px);
    transform: rotate(25deg);
}

.line-2 {
    top: 60%;
    right: 25%;
    width: clamp(120px, 15vw, 150px);
    transform: rotate(-15deg);
}

.line-3 {
    bottom: 35%;
    left: 15%;
    width: clamp(140px, 18vw, 180px);
    transform: rotate(45deg);
}

.hero-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(76, 175, 80, 0.9);
    color: white;
    padding: 8px 16px;
    border-radius: 25px;
    font-size: clamp(10px, 1.5vw, 14px);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
    animation: pulse-badge 2s ease-in-out infinite;
    z-index: 10;
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 1200px;
    width: 100%;
}

.hero-brand {
    color: #FFFFFF;
    font-size: clamp(24px, 6vw, 48px);
    font-weight: bold;
    letter-spacing: 2px;
    margin-bottom: 10px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.hero-title {
    color: #FFFFFF !important;
    font-size: clamp(28px, 7vw, 56px);
    font-weight: 600;
    margin: 0 0 15px 0;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.hero-subtitle {
    color: #B8D4F0;
    font-size: clamp(14px, 3vw, 24px);
    font-weight: 400;
    margin-bottom: 30px;
    line-height: 1.4;
}

.hero-break {
    display: block;
}

.solutions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 30px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.solution-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 20px 15px;
    text-align: center;
    transition: all 0.3s ease;
}

.solution-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
}

.solution-icon {
    font-size: clamp(32px, 5vw, 48px);
    margin-bottom: 12px;
    color: #4FC3F7;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3));
}

.solution-title {
    color: #FFFFFF;
    font-size: clamp(14px, 2vw, 16px);
    font-weight: 600;
    margin-bottom: 6px;
}

.solution-desc {
    color: #B8D4F0;
    font-size: clamp(10px, 1.5vw, 12px);
    line-height: 1.3;
}

/* Hero Banner Animations */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

@keyframes float-switch {
    0%, 100% { transform: translateY(0px) rotate(0deg); opacity: 0.6; }
    50% { transform: translateY(-20px) rotate(2deg); opacity: 0.8; }
}

@keyframes pulse-line {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

@keyframes pulse-badge {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Hero Banner Mobile Responsive */
@media (max-width: 768px) {
    .hero-container {
        min-height: 350px;
        padding: 20px 15px;
    }

    .hero-badge {
        top: 10px;
        right: 10px;
        padding: 4px 8px;
        font-size: 0.7rem;
    }

    .hero-brand {
        font-size: 2rem;
        margin-bottom: 6px;
    }

    .hero-title {
        font-size: 1.5rem;
        margin-bottom: 10px;
        line-height: 1.2;
    }

    .hero-subtitle {
        font-size: 0.9rem;
        line-height: 1.3;
        margin-bottom: 20px;
        padding: 0 10px;
    }

    .hero-break {
        display: block;
    }

    .solutions-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        margin-top: 15px;
    }

    .solution-card {
        padding: 12px;
        min-height: auto;
    }

    .solution-icon {
        font-size: 1.5rem;
        margin-bottom: 6px;
    }

    .solution-title {
        font-size: 0.8rem;
        margin-bottom: 3px;
        line-height: 1.2;
    }

    .solution-desc {
        font-size: 0.7rem;
        line-height: 1.2;
    }

    /* Simplify decorative elements for mobile */
    .switch-element {
        width: 35px;
        height: 25px;
    }

    .switch-element::before,
    .switch-element::after {
        width: 4px;
        height: 4px;
    }
}

@media (max-width: 480px) {
    .hero-container {
        min-height: 300px;
        padding: 15px 10px;
    }

    .hero-brand {
        font-size: 1.8rem;
        margin-bottom: 5px;
    }

    .hero-title {
        font-size: 1.3rem;
        margin-bottom: 8px;
    }

    .hero-subtitle {
        font-size: 0.8rem;
        line-height: 1.2;
        margin-bottom: 15px;
        padding: 0 5px;
    }

    .solutions-grid {
        grid-template-columns: 1fr;
        gap: 10px;
        margin-top: 10px;
    }

    .solution-card {
        padding: 10px;
        text-align: center;
    }

    .solution-icon {
        font-size: 1.3rem;
        margin-bottom: 5px;
    }

    .solution-title {
        font-size: 0.75rem;
        margin-bottom: 2px;
    }

    .solution-desc {
        font-size: 0.65rem;
    }

    /* Hide decorative elements on very small screens */
    .switch-element,
    .pulse-line {
        display: none;
    }
}

/* Mobile Responsive Grid Cards and Layout */
/* ======================================== */

@media (max-width: 768px) {
    /* Grid cards responsive layout */
    .md-typeset .grid.cards {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin: 1rem 0;
    }

    .md-typeset .grid.cards > * {
        margin: 0;
        padding: 1rem;
    }

    /* Button improvements for mobile */
    .md-typeset .md-button {
        padding: 0.6rem 1.2rem;
        font-size: 0.9rem;
        margin: 0.5rem 0;
        display: inline-block;
        width: auto;
        text-align: center;
    }

    /* Section headings mobile spacing */
    .md-typeset h2 {
        font-size: 1.4rem;
        margin: 1.5rem 0 1rem 0;
        line-height: 1.3;
    }

    /* Improve text readability on mobile */
    .md-typeset p {
        font-size: 0.9rem;
        line-height: 1.5;
        margin-bottom: 1rem;
    }

    /* Card content mobile optimization */
    .md-typeset .grid.cards .md-button {
        width: 100%;
        margin-top: 0.8rem;
    }
}

@media (max-width: 480px) {
    /* Extra small screens - single column everything */
    .md-typeset .grid.cards {
        gap: 0.8rem;
        margin: 0.8rem 0;
    }

    .md-typeset .grid.cards > * {
        padding: 0.8rem;
    }

    .md-typeset h2 {
        font-size: 1.2rem;
        margin: 1.2rem 0 0.8rem 0;
    }

    .md-typeset p {
        font-size: 0.85rem;
        line-height: 1.4;
        margin-bottom: 0.8rem;
    }

    .md-typeset .md-button {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }

    /* Optimize icon sizes for mobile */
    .md-typeset .twemoji {
        width: 1.2rem;
        height: 1.2rem;
    }
}

/* Tablet responsive adjustments */
@media (min-width: 769px) and (max-width: 1024px) {
    .md-typeset .grid.cards {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 1.5rem;
    }

    .hero-container {
        min-height: 450px;
        padding: 40px 20px;
    }

    .solutions-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
    }
}

/* Custom Icon Colors */
/* =================== */

/* Baby blue color for material-cloud icons */
.md-typeset .twemoji.material-cloud,
.md-typeset .twemoji svg[data-md-component="icon-cloud"],
.md-content .twemoji.material-cloud,
.md-content .twemoji svg[data-md-component="icon-cloud"] {
    color: #87CEEB !important;
    fill: #87CEEB !important;
}

/* Alternative selectors for Material Design icons */
.md-typeset [data-md-component="icon"] svg[data-md-component="material-cloud"],
.md-content [data-md-component="icon"] svg[data-md-component="material-cloud"],
.md-typeset .md-icon--material-cloud,
.md-content .md-icon--material-cloud {
    color: #87CEEB !important;
    fill: #87CEEB !important;
}

/* Specific targeting for grid cards with cloud icons */
.grid.cards .md-typeset .twemoji,
.grid.cards .md-content .twemoji {
    color: #87CEEB !important;
    fill: #87CEEB !important;
}
