:root {
  --primary: #1A365F;
  --primary-dark: #0F2A4A;
  --secondary: #2D9596;
  --accent: #38A169;
  --dark-text: #1A202C;
  --day-bg: linear-gradient(145deg, #87CEEB 0%, #E0F6FF 100%);
  
  /* Text color variables */
  --text-color: var(--dark-text);
  --heading-color: var(--primary-dark);
  --subheading-color: var(--primary);
  
  /* Variable for text on light backgrounds */
  --text-on-light: var(--dark-text);
}

body {
  background: var(--day-bg);
  color: var(--text-color);
}

/* Ensure all text elements have proper contrast */
.night h1, .night h2, .night h3, .night h4, .night h5, .night h6, 
.night p, .night li, .night span:not(.icon):not([class*="text-"]) {
  color: var(--light-text);
}

/* Apply the text-on-light variable to elements with light backgrounds */
.service-card,
.feature-card,
.spec-card,
.method-card,
.guide-card,
.level-card,
.benefit-card,
.integration-methods,
.technical-details table,
.response-table,
.chart-container,
.mermaid,
.diagram-container,
.features-filters {
  color: var(--text-on-light);
}

/* Ensure all text elements within light backgrounds use the correct color */
.service-card p,
.feature-card p,
.spec-card p,
.method-card p,
.guide-card p,
.level-card p,
.benefit-card p,
.integration-methods p,
.technical-details td,
.response-table td,
.features-filters h4,
.features-filters h5,
.features-filters label,
.features-filters button:not(.active) {
  color: var(--text-on-light);
}

/* Ensure headings within light backgrounds have proper contrast */
.service-card h3,
.feature-card h3,
.spec-card h4,
.method-card h5,
.guide-card h4,
.level-card h4,
.benefit-card h3,
.features-filters h4,
.features-filters h5 {
  color: var(--primary);
}

/* Fix specific components that might have light backgrounds */
.night .chart-container,
.night .mermaid,
.night .diagram-container,
.night .features-filters {
  background: transparent;
}

/* Fix feature cards in night mode */
.night .feature-card {
  background: rgba(255, 255, 255, 0.9);
}

.night .feature-card h3,
.night .feature-card p,
.night .feature-card .feature-description,
.night .spec-card h4,
.night .spec-card p,
.night .method-card h5,
.night .method-card p,
.night .guide-card h4,
.night .guide-card p,
.night .level-card h4,
.night .level-card p,
.night .benefit-card h3,
.night .benefit-card p,
.night .integration-methods p,
.night .technical-details td,
.night .response-table td,
.night .features-filters h4,
.night .features-filters h5,
.night .features-filters label,
.night .features-filters .filter-tag:not(.active),
.night .features-filters .priority-badge:not(.active),
.night .features-filters select,
.night .features-filters option {
  color: var(--light-text);
}

/* Fix features filters in night mode */
.night .features-filters h4,
.night .features-filters h5,
.night .features-filters label,
.night .features-filters .filter-tag:not(.active),
.night .features-filters .priority-badge:not(.active),
.night .features-filters select,
.night .features-filters option {
  color: var(--dark-text);
}

/* Apply the text-on-light variable to elements with light backgrounds */
.service-card,
.feature-card,
.spec-card,
.method-card,
.guide-card,
.level-card,
.benefit-card,
.integration-methods,
.technical-details table,
.response-table,
.chart-container,
.mermaid,
.diagram-container {
  color: var(--text-on-light);
}

/* Ensure all text elements within light backgrounds use the correct color */
.service-card p,
.feature-card p,
.spec-card p,
.method-card p,
.guide-card p,
.level-card p,
.benefit-card p,
.integration-methods p,
.technical-details td,
.response-table td {
  color: var(--text-on-light);
}

/* Base styles for boxes in both modes */
.service-card, 
.feature-card, 
.spec-card, 
.method-card, 
.guide-card, 
.level-card, 
.benefit-card, 
.integration-methods,
.technical-details table,
.response-table,
.chart-container,
.mermaid,
.diagram-container,
.features-filters {
    /* Default for day mode: white background, dark text */
    background: white;
    color: var(--dark-text);
    /* Add transition for smooth mode changes */
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Night mode: transparent background, light text */
body.night .service-card,
body.night .feature-card,
body.night .spec-card,
body.night .method-card,
body.night .guide-card,
body.night .level-card,
body.night .benefit-card,
body.night .integration-methods,
body.night .technical-details table,
body.night .response-table,
body.night .chart-container,
body.night .mermaid,
body.night .diagram-container,
body.night .features-filters {
    background: rgba(255, 255, 255, 0.1);
    color: var(--light-text);
    backdrop-filter: blur(4px);
}

/* Ensure text elements within these containers follow the color scheme */
body.night .service-card h3,
body.night .feature-card h3,
body.night .spec-card h4,
body.night .method-card h5,
body.night .guide-card h4,
body.night .level-card h4,
body.night .benefit-card h3,
body.night .integration-methods h4,
body.night .technical-details th,
body.night .response-table th {
    color: var(--light-text);
}

body.night .service-card p,
body.night .feature-card p,
body.night .spec-card p,
body.night .method-card p,
body.night .guide-card p,
body.night .level-card p,
body.night .benefit-card p,
body.night .integration-methods p,
body.night .technical-details td,
body.night .response-table td {
    color: var(--light-text);
}

/* Fix code blocks to maintain readability in night mode */
body.night pre,
body.night code {
    background: rgba(0, 0, 0, 0.5);
    color: #e0e0e0;
}

/* Ensure mermaid diagrams are readable in night mode */
body.night .mermaid {
    background: rgba(255, 255, 255, 0.1) !important;
}

/* Ensure headings within light backgrounds have proper contrast */
.service-card h3,
.feature-card h3,
.spec-card h4,
.method-card h5,
.guide-card h4,
.level-card h4,
.benefit-card h3 {
  color: var(--primary);
}

/* Fix specific components that might have light backgrounds */
.night .chart-container,
.night .mermaid,
.night .diagram-container,
.night .features-filters {
  background: rgba(255, 255, 255, 0.9);
}

/* Fix feature cards in night mode */
.night .feature-card {
  background: rgba(255, 255, 255, 0.9);
}

.night .feature-card h3,
.night .feature-card p,
.night .feature-card .feature-description,
.night .feature-meta span:not(.priority-badge.active) {
  color: var(--dark-text);
}

/* Fix features filters in night mode */
.night .features-filters h4,
.night .features-filters h5,
.night .features-filters label,
.night .features-filters .filter-tag:not(.active),
.night .features-filters .priority-badge:not(.active),
.night .features-filters select,
.night .features-filters option {
  color: var(--dark-text);
}

/* Make cards and containers stand out better */
.service-card, .feature-card, .spec-card {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-radius: 0.75rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.night .service-card, .night .feature-card, .night .spec-card {
  background: rgba(255, 255, 255, 0.9);
  color: var(--text-on-light);
}

.service-card:hover, .feature-card:hover, .spec-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

/* Modern button styling */
button, .cta-button {
  background: linear-gradient(135deg, var(--accent) 0%, var(--secondary) 100%);
  color: white;
  border-radius: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

button:hover, .cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    height: 100%;
}

body {
    line-height: 1.6;
    color: #334155;
    background: var(--day-bg);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    transition: background 1s ease, color 1s ease;
}

body.night {
    background: var(--night-bg);
    color: #e0e0e0;
}

/* Transitional states */
body.dawn {
    background: linear-gradient(
        145deg, 
        hsl(200, 80%, 60%) 0%, 
        hsl(200, 60%, 85%) 100%
    );
}

body.dusk {
    background: linear-gradient(
        145deg, 
        hsl(220, 60%, 20%) 0%, 
        hsl(220, 40%, 40%) 100%
    );
}

body.night .hero {
    background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7)), url('/static/images/network-bg.jpg');
}

.night-sky {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.star {
    position: absolute;
    background: white;
    border-radius: 50%;
    animation: twinkle var(--twinkle-duration) infinite ease-in-out;
    transition: opacity 1s ease;
}

.moon {
    transition: opacity 1s ease;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 1; }
}

.moon {
    position: fixed;
    top: 20%;
    right: 10%;
    width: 80px;
    height: 80px;
    background: #f0f0f0;
    border-radius: 50%;
    box-shadow: 0 0 40px rgba(240,240,240,0.2);
    z-index: -1;
}

.moon::after {
    content: "";
    position: absolute;
    top: 15%;
    left: 25%;
    width: 20px;
    height: 20px;
    background: #d0d0d0;
    border-radius: 50%;
}

header {
    background: linear-gradient(145deg, var(--primary) 0%, var(--secondary) 100%);
    padding: 1rem 2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    overflow: hidden;
}

header::after {
    content: "";
    position: absolute;
    top: -20%;
    left: -10%;
    width: 120%;
    height: 140%;
    background: radial-gradient(circle, var(--accent) 0%, transparent 15%);
    opacity: 0.1;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--primary);
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
}

nav ul {
    gap: 2rem;
    margin: 0;
    padding: 0;
}

nav a {
    color: white;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

nav a:hover {
    background: rgba(255,255,255,0.1);
}

.cta-button {
    background: var(--accent);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
}

.dropdown {
    position: relative;
}

.dropdown-content {
    display: none;
    position: absolute;
    background: white;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    min-width: 240px;
    border-radius: 4px;
    top: 100%;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-content a {
    color: #2d3748 !important;
    padding: 12px 16px;
    display: block;
    transition: background 0.2s;
}

.dropdown-content a:hover {
    background: #f7fafc;
}

.header-cta .cta-button {
    background: #38a169;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    margin-left: 2rem;
}

h1, h2, h3 {
    font-weight: 600;
    letter-spacing: -0.03em;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
    color: var(--heading-color);
}

/* Logo Styles */
.logo {
    max-height: 60px;
    width: auto;
    transition: opacity 0.3s ease;
}

header h1 {
    padding: 0;
    margin: 0;
}

header h1::after {
    display: none;
}

.logo:hover {
    opacity: 0.9;
}

@media (max-width: 768px) {
    .logo {
        max-height: 50px;
    }
}

h1 {
    margin: 0;
}
h2 { font-size: 2rem; margin-bottom: 1.5rem; }

nav ul {
    display: flex;
    gap: 2rem;
    list-style: none;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
    z-index: 1;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s ease;
}

nav a:hover::after {
    width: 100%;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    nav ul {
        display: none;
        width: 100%;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        background: var(--primary);
        padding: 1rem;
    }
    
    nav ul.active {
        display: flex;
    }
}


/* Services Grid */
.services-preview {
    padding: 4rem 2rem;
    background: var(--light);
}

.services-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    max-width: 1200px;
    margin: 0 auto;
}

.services-preview .service-card {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    color: var(--primary-dark);
    position: relative;
    min-height: auto;
    z-index: auto;
}

.services-preview .service-card::before {
    content: none;
}

.services-preview .service-card:hover {
    transform: translateY(-5px);
}

.services-preview .service-card a {
    display: inline-block;
    margin-top: 1.5rem;
    color: white !important;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    background: var(--accent);
    border: none;
    border-radius: 4px;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.services-preview .service-card a:hover {
    background: var(--secondary);
    color: white;
}

.services-preview .service-card h3 {
    color: var(--primary);
    margin-bottom: 1rem;
}

/* Performance Metrics */
.performance-metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    padding: 4rem 2rem;
    background: var(--primary-dark);
}

.metric-card {
    text-align: center;
    padding: 2rem;
    background: rgba(255,255,255,0.1);
    border-radius: 8px;
}

.metric-value {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--deco-green);
    margin-bottom: 1rem;
    opacity: 1 !important;
    transform: none !important;
}

/* Support Status Styles */
.support-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    font-size: 1.75rem;
    opacity: 1 !important;
    transform: none !important;
}

.status-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ccc;
}

.status-text {
    font-size: 1.5rem;
    font-weight: 600;
}

.status-dot.available {
    background: var(--deco-green);
    box-shadow: 0 0 8px rgba(106, 153, 78, 0.3);
}

.status-dot.offline {
    background: #dc2626;
    box-shadow: 0 0 8px rgba(220, 38, 38, 0.3);
}

/* Support status is now dynamic */

.metric-label {
    color: var(--deco-teal);
    font-size: 1.1rem;
}

/* Coverage Map */
.coverage-map {
    padding: 4rem 2rem;
    background: var(--light);
}

/* Improved map styling */
#serviceCoverageMap {
    border: 2px solid var(--deco-teal);
    height: 600px;
    width: 100%;
    min-height: 400px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    margin: 2rem 0;
    background: #f8f9fa;
}

.map-popup {
    font-family: 'Inter', sans-serif;
    min-width: 200px;
}

.map-popup h4 {
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.coverage-stats div {
    padding: 0.3rem 0;
    border-top: 1px solid #eee;
}

.network-node {
    position: relative;
    width: 20px;
    height: 20px;
}

.node-pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--accent);
    border-radius: 50%;
    animation: pulse 2s infinite;
    opacity: 0.7;
}

.cluster-marker {
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.cluster-marker div {
    transform: translateY(-1px);
}

@keyframes pulse {
    0% { transform: scale(0.8); opacity: 0.7; }
    50% { transform: scale(1.2); opacity: 0.4; }
    100% { transform: scale(0.8); opacity: 0.7; }
}

.map-legend {
    background: rgba(255,255,255,0.9);
    padding: 1rem;
    border-radius: 4px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.map-legend h4 {
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.map-legend div {
    margin: 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.leaflet-container {
    background: rgba(255,255,255,0.9) !important;
}

.leaflet-popup-content {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
}

.map-legend {
    display: flex;
    gap: 2rem;
    justify-content: center;
}

.swatch {
    display: inline-block;
    width: 20px;
    height: 20px;
    border-radius: 4px;
    margin-right: 0.5rem;
}

.voip { background: var(--accent); }
.sip { background: var(--secondary); }

/* Chart Container */
.chart-container {
    max-width: 800px;
    margin: 4rem auto;
    padding: 2rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    color: white;
    padding: 6rem 2rem;
    text-align: center;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
}

.hero-subhead {
    font-size: 1.25rem;
    margin: 1.5rem auto;
    max-width: 800px;
}

.hero-actions {
    margin-top: 3rem;
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* Feature Grid */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 3rem auto;
}

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    text-align: center;
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

/* Technical Specs */
.technical-specs {
    background: var(--light);
    padding: 4rem 2rem;
}

.specs-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    max-width: 1200px;
    margin: 2rem auto;
}

.specs-list h3 {
    color: var(--primary);
    margin-bottom: 1.5rem;
}

.specs-list ul {
    list-style: none;
    padding: 0;
}

.specs-list li {
    padding: 0.75rem 0;
    border-bottom: 1px solid #eee;
}

/* Network Visualization */
.network-visualization {
    padding: 4rem 2rem;
    background: var(--primary-dark);
    text-align: center;
    color: white;
    position: relative;
}

.network-visualization h3 {
    color: var(--accent);
    margin-bottom: 2rem;
    position: relative;
    z-index: 5;
}

.network-container {
    position: relative;
    height: 500px;
    width: 100%;
    margin: 2rem auto;
    background: var(--primary-dark);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

/* Removed world map background */

#networkNodes canvas {
    position: relative;
    z-index: 2;
}

.node-labels {
    position: relative;
    z-index: 10;
}

.node-label {
    position: absolute;
    color: white;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 0.9rem;
    pointer-events: none;
    background: rgba(0,0,0,0.7);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    transform: translate(-50%, -50%);
    z-index: 10;
    backdrop-filter: blur(2px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.1);
}

/* Position labels using data attributes */
[data-node="dallas"] { left: 25%; top: 40%; }
[data-node="richmond"] { left: 30%; top: 35%; }
[data-node="manila"] { left: 80%; top: 55%; }

/* Network Visualization Labels */
.network-visualization {
    padding: 4rem 2rem;
    background: var(--primary-dark);
    text-align: center;
    color: white;
    position: relative;
}

.network-visualization h3 {
    color: var(--accent);
    margin-bottom: 2rem;
    position: relative;
    z-index: 5;
}

.network-container {
    position: relative;
    height: 500px;
    width: 100%;
    margin: 2rem auto;
    background: var(--primary-dark);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.node-labels {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10;
}

.node-label {
    position: absolute;
    color: white;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 0.9rem;
    pointer-events: none;
    background: rgba(0,0,0,0.7);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    transform: translate(-50%, -50%);
    z-index: 10;
    backdrop-filter: blur(2px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.1);
    transition: opacity 0.3s ease;
}

/* Contact CTA Section */
.contact-cta {
    padding: 4rem 2rem;
    background: var(--primary-dark);
    color: white;
    text-align: center;
}

.contact-cta a {
    color: var(--accent) !important;
    text-decoration: none;
}

.contact-cta a:hover {
    color: var(--secondary) !important;
    text-decoration: underline;
}

.contact-cta h2 a {
    color: white;
    text-decoration: none;
}

.contact-cta h2 a:hover {
    text-decoration: underline;
}

.contact-cta address {
    font-style: normal;
    margin: 1rem 0;
    line-height: 1.6;
}

.contact-cta .business-hours {
    margin-top: 1.5rem;
    font-size: 0.95rem;
}

.contact-cta .hours-row {
    display: flex;
    justify-content: space-between;
    max-width: 300px;
    margin: 0 auto;
}

.contact-cta .contact-info-section {
    background: transparent;
    padding: 0;
    margin: 2rem auto 0;
    max-width: 600px;
}

/* About Section */
.about-section {
    background: var(--primary-dark);
    color: var(--light-text) !important; /* Force light text color */
    padding: 4rem 2rem;
}

.about-section h2,
.about-section h3,
.about-section h4,
.about-section p,
.about-section li {
    color: var(--light-text) !important; /* Ensure all text elements have light color */
}

.about-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
}

.about-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--accent) !important; /* Make headings stand out with accent color */
}

.subheading {
    font-size: 1.25rem;
    opacity: 0.95;
    color: var(--light-text) !important;
}

.about-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto 2rem;
}

.about-column {
    padding: 1rem;
}

.about-content p {
    margin-bottom: 1.5rem;
    line-height: 1.7;
    opacity: 0.95;
    color: var(--light-text) !important; /* Ensure paragraph text is visible */
}

.cta-section {
    text-align: center;
    margin-top: 3rem;
}

.cta-outline {
    display: inline-block;
    padding: 1rem 2.5rem;
    border: 2px solid var(--accent);
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border-radius: 4px;
}

.cta-outline:hover {
    background: var(--accent);
    color: var(--primary-dark);
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .about-columns {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .about-header h2 {
        font-size: 2rem;
    }
    
    .subheading {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .about-section {
        padding: 3rem 1rem;
    }
    
    .about-content p {
        font-size: 0.95rem;
    }
}

/* Contact link animation */
#nav-contact {
    transition: all 0.3s ease;
    position: relative;
    display: inline-block;
    will-change: transform;
}

/* Running man animation */
.runner-container {
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    height: 50px;
    overflow: visible;
    z-index: 1001;
    pointer-events: none;
    visibility: hidden;
    will-change: transform;
}

.runner {
    display: flex;
    align-items: center;
    gap: 20px;
    animation: run 20s linear infinite;
}

@keyframes run {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100vw); }
}

.submission-count {
    background: var(--primary);
    color: white;
    padding: 0.5rem 1.25rem;
    border-radius: 25px;
    display: flex;
    gap: 0.75rem;
    align-items: center;
    font-size: 0.95rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    backdrop-filter: blur(4px);
    background-color: rgba(31, 110, 140, 0.9);
    animation: none !important;
    transform: none !important;
}

.submission-count .count {
    font-weight: 800;
    color: var(--accent);
    font-size: 1.1rem;
    min-width: 20px;
    text-align: center;
}

.runner span {
    animation: none !important;
}

footer {
    background: #1a365f;
    color: white;
    padding: 4rem 2rem;
    position: sticky;
    top: 100vh;
}

.footer-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-column h4 {
    color: #38a169;
    margin-bottom: 1rem;
}

.footer-column a {
    color: #cbd5e0;
    display: block;
    margin: 0.5rem 0;
}

.hero {
    background: linear-gradient(135deg, #2d3748 0%, #1a365f 100%);
    padding: 8rem 2rem;
    text-align: center;
    color: white;
    margin-top: 0;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-buttons {
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.hero-buttons .cta-button {
    background: #38a169;
    border: 2px solid transparent;
}

.hero-buttons .cta-outline {
    border-color: #38a169;
    color: #38a169;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 4rem 2rem;
}

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    text-align: center;
    transition: transform 0.3s ease;
}

.feature-icon {
    font-size: 2.5rem;
    color: #38a169;
    margin-bottom: 1rem;
}

.service-tier {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.feature-card:hover, .service-tier:hover {
    transform: translateY(-5px);
}

.content-grid, .features, .services {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

button, .cta-button {
    background: linear-gradient(135deg, var(--accent) 0%, var(--deco-green) 100%);
    color: white;
    border-radius: 30px;
    padding: 1rem 2.5rem;
    border: none;
    font-weight: 600;
    letter-spacing: 0.05em;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    display: inline-block;
    text-decoration: none;
}

button:hover, .cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(236, 178, 46, 0.2);
}

/* Add specific hover state for hero CTA */
.hero .cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.services {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    padding: 4rem 2rem;
}

.service-tier {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    transition: transform 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.service-tier h3 {
    color: var(--primary);
    margin: 1rem 0;
    font-size: 1.5rem;
}

.service-tier ul {
    list-style: none;
    padding: 0;
    text-align: left;
}

.service-tier li {
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.service-tier li::before {
    content: "✓";
    color: var(--deco-green);
    font-weight: bold;
}

main {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding-top: 100px; /* Add padding equal to header height */
    min-height: calc(100vh - 100px); /* Keep footer at bottom */
}

main form > div {
    margin-bottom: 1rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
}

input {
    padding: 0.75rem;
    border: 2px solid var(--deco-teal);
    border-radius: 4px;
    width: 100%;
    max-width: 400px;
    transition: border-color 0.3s ease;
}

input:focus {
    border-color: var(--accent);
    outline: none;
    box-shadow: 0 0 0 3px rgba(236, 178, 46, 0.1);
}

.error {
    color: #dc2626;
    font-size: 0.875rem;
}

span.error {
    display: block;
    margin-top: 0.25rem;
}

@media (max-width: 768px) {
    header {
        flex-direction: column;
        gap: 1rem;
        min-height: 60px;
        padding: 0.5rem 1rem;
    }
    
    nav {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .hero h1 {
        font-size: 2rem;
    }

    main {
        padding-top: 80px;
        min-height: calc(100vh - 80px);
    }
    
    .logo {
        max-height: 40px !important;
    }
}

/* Services Section */
.services-section {
    background: var(--primary-dark);
    color: white;
    padding: 4rem 2rem;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto 1fr;
    grid-auto-rows: 1fr;
    align-items: stretch;
    gap: 2rem;
    grid-template-areas:
        "header header"
        "top-right bottom-left"
        "bottom-right bottom-right";
    min-height: 100vh;
}

.service-header {
    grid-area: header;
    max-width: 800px;
    padding-right: 2rem;
}

.service-header h2 {
    color: #FFFFFF;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.subheading {
    color: #2D9596;
    font-size: 1.25rem;
    font-weight: 500;
}

.intro-text {
    color: #E2E8F0;
    line-height: 1.7;
}

.service-card {
    background-position: center;
    background-size: cover;
    padding: 2rem;
}

.service-card h3 {
    color: #FFFFFF;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.service-description {
    color: #E2E8F0;
    margin-bottom: 1.5rem;
}

.service-features {
    color: #FFFFFF;
    list-style: none;
    padding: 0;
}

.service-features li {
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.service-features li::before {
    content: "✓";
    color: #38A169;
}

.service-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    min-height: 400px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.card-content {
    position: relative;
    z-index: 2;
    padding: 2rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.service-card h3 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    color: var(--accent);
}

.card-content p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    flex-grow: 1;
}

.card-actions {
    margin-top: auto;
    padding-top: 2rem;
}

/* Individual Card Positioning & Backgrounds */
.top-right {
    grid-area: top-right;
    background-image: url('/static/images/voip-service-bg.jpg');
}

.bottom-left {
    grid-area: bottom-left;
    background-image: url('/static/images/sip-trunking-bg.jpg');
}

.bottom-right {
    grid-area: bottom-right;
    background-image: url('/static/images/wholesale-bg.jpg');
}

/* Button Adjustments */
.service-card .cta-button {
    background: var(--accent);
    color: var(--primary-dark);
    border-radius: 4px;
    padding: 1rem 2rem;
    text-align: center;
    display: inline-block;
    transition: all 0.3s ease;
}

.service-card .cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(236, 178, 46, 0.3);
}

@media (max-width: 1024px) {
    .services-section {
        grid-template-columns: 1fr;
        grid-template-areas:
            "header"
            "top-right"
            "bottom-left"
            "bottom-right";
        min-height: auto;
    }
    
    .service-header {
        padding-right: 0;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .service-card {
        min-height: 300px;
    }
    
    .service-card h3 {
        font-size: 1.5rem;
    }
    
    .card-content {
        padding: 1.5rem;
    }
}

/* Service Detail Pages */
.service-detail-section {
    padding: 4rem 2rem;
    background: linear-gradient(to bottom, var(--primary-dark) 30%, var(--light) 30%);
}

.service-hero {
    text-align: center;
    color: white;
    padding: 3rem 0;
    margin-bottom: 2rem;
}

.service-hero h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary-dark);
    text-shadow: 0 1px 2px rgba(255,255,255,0.5);
}

.service-subhead {
    font-size: 1.25rem;
    max-width: 800px;
    margin: 0 auto;
    color: var(--primary);
    text-shadow: 0 1px 1px rgba(255,255,255,0.3);
}

.service-content {
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    padding: 2rem;
    margin-top: 2rem;
}

.feature-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    margin-bottom: 3rem;
}

.feature-list {
    columns: 2;
    list-style: none;
    padding: 0;
    margin: 2rem 0;
}

.feature-list li {
    padding: 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.feature-list li::before {
    content: "▹";
    color: var(--accent);
    font-weight: bold;
}

.implementation-details {
    margin: 3rem 0;
    padding: 2rem;
    background: var(--light);
    border-radius: 8px;
}

.benefits-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    margin-top: 1.5rem;
}

.benefit-card {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.service-cta {
    text-align: center;
    margin-top: 3rem;
    padding: 2rem;
    background: var(--primary);
    border-radius: 8px;
    color: white;
}

.service-cta .cta-button {
    background: var(--accent);
    color: var(--primary-dark);
    margin-top: 1rem;
}

@media (max-width: 768px) {
    .feature-list {
        columns: 1;
    }
    
    .service-hero h2 {
        font-size: 2rem;
    }
    
    .service-content {
        padding: 1.5rem;
    }
}

/* Features Page Styles */
.features-hero {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    padding: 4rem 2rem;
    color: white;
    text-align: center;
}

.features-container {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 3rem; /* Increased from 2rem to 3rem for better separation */
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
    align-items: start;
}

/* Features Filters */
.features-filters {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    width: auto;     /* Change from fixed width to auto */
    min-width: 280px; /* Ensure minimum width to fit content */
    max-width: 320px; /* Set maximum width */
    height: auto;    /* Change from fixed height to auto */
    max-height: fit-content; /* Make height fit the content */
    align-self: flex-start; /* Keep it at the top when scrolling */
    position: sticky;
    top: 100px;
}

.filter-group {
    margin-bottom: 1.5rem;
}

.filter-section {
    margin-bottom: 1rem;
}

.filter-tag {
    background: var(--light);
    border: 1px solid #CBD5E0;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-tag.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.filter-section {
    margin-bottom: 1.5rem;
}

.filter-tags, .filter-priority {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.section-select {
    width: 100%;
    padding: 0.5rem;
    border-radius: 4px;
    border: 1px solid #e2e8f0;
    background-color: white;
    color: var(--text-on-light);
}

.filter-tag, .priority-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    border: 1px solid #e2e8f0;
    background: white;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-tag.active, .priority-badge.active {
    background: #1a365f;
    color: white;
    border-color: #1a365f;
}

.priority-badge {
    text-transform: capitalize;
}
.priority-trivial { background: #e2e8f0; }
.priority-standard { background: #c3dafe; }
.priority-great { background: #a3bffa; }
.priority-unique { background: #7f9cf5; }
.priority-market-leading { background: #667eea; color: white; }

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.feature-card {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    border: 1px solid #e2e8f0;
}

.feature-card h3 {
    font-size: 1.25rem;
    color: #1a365f;
    margin-bottom: 0.75rem;
}

.feature-meta {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.doc-link {
    color: #38a169;
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.doc-link:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .features-container {
        grid-template-columns: 1fr;
    }
    
    .features-filters {
        position: sticky;
        top: 80px;
        z-index: 100;
    }
}

/* Admin Styles */
.admin-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

/* Admin input field text visibility */
.admin-container input[type="text"],
.admin-container input[type="email"],
.admin-container input[type="password"],
.admin-container input[type="number"],
.admin-container textarea,
.admin-container select {
    color: white !important;
}

/* Readonly inputs should have slightly different styling for better visibility */
.admin-container input[readonly] {
    color: #e0e0e0 !important;
    background-color: #374151 !important; /* slightly lighter than bg-gray-700 */
}

/* API Key display specific styling */
#apiKeyDisplay {
    color: #60a5fa !important; /* Light blue color for better visibility */
    font-family: 'Fira Code', monospace;
    letter-spacing: 0.05em;
}

.data-table, .pricing-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.pricing-table th,
.pricing-table td {
    padding: 1rem;
    border: 1px solid #e2e8f0;
    text-align: left;
}

.pricing-table th {
    background: #f7fafc;
    color: #2d3748;
}

.data-table th,
.data-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #eee;
    color: var(--primary-dark);
}

.data-table th {
    background-color: var(--primary);
    color: white;
    font-weight: 600;
}

.data-table tr:hover td {
    background-color: #f8f9fa;
    color: var(--primary-dark);
}

.truncate {
    max-width: 300px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.btn-danger {
    background-color: #dc3545;
    color: white;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-danger:hover {
    background-color: #c82333;
}

/* Contact Info Styles */
.contact-info-section {
    display: grid;
    gap: 2rem;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    margin-top: 3rem;
    padding: 2rem;
    background: var(--light);
    border-radius: 8px;
}

.contact-detail h3 {
    color: var(--primary);
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.contact-detail p {
    color: var(--primary-dark);
    opacity: 0.9;
}

.hours-row {
    color: var(--primary-dark);
    font-weight: 500;
}

.address-link {
    color: var(--primary) !important;
    text-decoration: none;
}

.address-link:hover {
    color: var(--secondary) !important;
    opacity: 0.8;
}

.business-hours {
    display: grid;
    gap: 0.75rem;
}

.hours-sep {
    flex: 1;
    border-bottom: 1px dotted rgba(255,255,255,0.3);
    margin: 0 0.5rem;
    position: relative;
    top: -3px;
}

.contact-email a {
    color: var(--secondary);
    font-weight: 500;
    text-decoration: none;
}

.contact-email a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

@media (max-width: 480px) {
    .contact-info-section {
        padding: 1.5rem;
    }
    
    .hours-row {
        font-size: 0.9rem;
    }
}
/* Configuration Guides */
.integration-guides {
    margin: 3rem 0;
}

.guide-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 1.5rem;
}

.guide-card {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
    text-decoration: none;
}

.guide-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    border-color: var(--primary);
}

.guide-card h4 {
    color: var(--primary);
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
}

.guide-card p {
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* SIP Header Table Styles */
.technical-details table {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
    margin: 2rem 0;
    background: var(--light);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.technical-details th {
    background: var(--primary);
    color: white;
    padding: 1rem;
    text-align: left;
    font-weight: 600;
}

.technical-details td {
    padding: 1.5rem;
    border: 1px solid rgba(0,0,0,0.1);
    vertical-align: top;
}

.technical-details pre {
    background: var(--primary-dark);
    color: white;
    padding: 1.5rem;
    border-radius: 4px;
    overflow-x: auto;
    white-space: pre-wrap;
    word-wrap: break-word;
    margin: 0;
}

.technical-details table code {
    white-space: pre-wrap;
    word-break: break-all;
}

/* Tab Styles */
.tab-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.tab-nav {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--primary);
}

.tab-link {
    padding: 1rem 2rem;
    background: transparent;
    border: none;
    cursor: pointer;
    font-weight: 600;
    color: var(--text-dark);
    transition: all 0.3s ease;
    position: relative;
}

.tab-link.active {
    color: var(--primary);
}

.tab-link.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--accent);
}

.tab-link:hover:not(.active) {
    color: var(--secondary);
}

.tab-content {
    display: none;
    padding: 2rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.tab-content.active {
    display: block;
}

.tab-section {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--light);
    border-radius: 6px;
}

.tab-section h3 {
    color: var(--primary);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

/* Fix text color contrast */
.service-detail-section,
.technical-specs {
    color: var(--text-dark);
    background: white;
}

.spec-card {
    background: var(--light);
    padding: 1.5rem;
    border-radius: 6px;
    margin-bottom: 1rem;
}

/* Service Detail Page Specific Styles */
.service-detail-section .service-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.service-content h3 {
    color: var(--primary-dark);
    border-bottom: 2px solid var(--secondary);
    padding-bottom: 0.5rem;
    margin: 2rem 0 1.5rem;
}

.implementation-details h3,
.technical-specs h3,
.call-flow h3,
.troubleshooting h3,
.integration-guide h3 {
    color: var(--primary-dark);
    padding-bottom: 0.5rem;
    margin-bottom: 2rem;
}

/* Configuration Steps */
.config-steps {
    display: grid;
    gap: 2rem;
    margin: 3rem 0;
}

.step {
    display: flex;
    gap: 1.5rem;
    background: var(--light);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-weight: 600;
}

.step-content {
    flex-grow: 1;
}

.step-content pre {
    background: var(--primary-dark);
    color: white;
    padding: 1rem;
    border-radius: 6px;
    overflow-x: auto;
    margin: 1rem 0;
}

.step-content pre code {
    font-family: 'Fira Code', monospace;
    font-size: 0.9rem;
    white-space: pre-wrap;
}

/* Call Flow Section */
.call-flow-steps {
    display: grid;
    gap: 2rem;
    margin: 3rem 0;
}

.flow-step {
    background: var(--light);
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.flow-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--secondary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.flow-content pre {
    background: #f8fafc;
    padding: 1rem;
    border-radius: 6px;
    border: 1px solid #cbd5e0;
    overflow-x: auto;
    font-size: 0.9rem;
}

/* Technical Specs Grid */
.specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.spec-card {
    background: var(--light);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.spec-card pre {
    white-space: pre-wrap;
    word-break: break-word;
    background: #f8fafc;
    padding: 1rem;
    border-radius: 6px;
    margin: 1rem 0;
}

/* Diagram Container */
.diagram-container {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    margin: 2rem 0;
    min-height: 400px;
}

/* Troubleshooting Section */
.issue-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.issue {
    background: var(--light);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.issue ul {
    margin: 1rem 0 0 0;
    padding-left: 1.5rem;
}

/* Code Samples */
.code-samples pre {
    background: var(--primary-dark);
    color: white;
    padding: 1.5rem;
    border-radius: 8px;
    overflow-x: auto;
}

.code-samples code {
    font-family: 'Fira Code', monospace;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .service-detail-section .service-content {
        padding: 1rem;
    }
    
    .step {
        flex-direction: column;
    }
    
    .step-number {
        margin-bottom: 1rem;
    }
}
/* Mermaid Diagram Styling */
.mermaid {
  background: white !important;
  padding: 1.5rem !important;
  border-radius: 8px !important;
  margin: 2rem 0 !important;
  min-height: 400px;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: auto;
}

.diagram-container {
  margin: 2rem 0;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.mermaid .label {
  font-family: 'Fira Code', monospace !important;
  color: var(--primary-dark) !important;
  font-size: 14px !important;
}

.mermaid .node rect {
  fill: #F8FAFC !important;
  stroke: #2D9596 !important;
  stroke-width: 2px !important;
  rx: 8px !important;
  ry: 8px !important;
}

.mermaid .edgePath path {
  stroke: #1A365F !important;
  stroke-width: 2px !important;
}

.mermaid .actor line {
  stroke: var(--secondary) !important;
}

.mermaid .note rect {
  fill: #f0fdf4 !important;
  stroke: var(--accent) !important;
}

.mermaid .activation rect {
  fill: rgba(45, 149, 150, 0.1) !important;
}

/* Flowchart Styles */
.flowchart {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    min-width: 120px;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #2D9596;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 2;
    transition: transform 0.3s ease;
}

.step:hover .step-number {
    transform: scale(1.1);
    box-shadow: 0 0 0 4px rgba(45, 149, 150, 0.2);
}

.step-content {
    text-align: center;
    font-size: 0.9rem;
    line-height: 1.3;
    padding: 0.5rem;
    background: rgba(255,255,255,0.9);
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.step:hover .step-content {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.connector {
    flex: 1;
    height: 2px;
    background: #2D9596;
    position: relative;
    margin: 0 -10px;
    z-index: 1;
}

.connector::after {
    content: '➤';
    position: absolute;
    right: -12px;
    top: -8px;
    color: #2D9596;
    font-size: 1.2rem;
}

@media (max-width: 768px) {
    .flowchart {
        flex-direction: column;
        height: auto;
    }
    
    .connector {
        width: 2px;
        height: 40px;
        margin: -10px 0;
    }
    
    .connector::after {
        right: -6px;
        top: auto;
        bottom: -12px;
        transform: rotate(90deg);
    }
}
