/* NeoHub.io - Modern Futuristic Website Styles */

/* CSS Variables - Brand Colors */
:root {
    --neohub-blue: #36B6E7;
    --deep-blue: #2186C4;
    --dark-blue: #175B8C;
    --light-gray: #E6ECF3;
    --white: #FFFFFF;
    --black: #000000;
    --text-primary: #175B8C;
    --text-secondary: #666666;
    --background: #FFFFFF;
    --surface: #F8FAFC;
    --border: #E2E8F0;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--neohub-blue), var(--deep-blue));
    --gradient-hero: linear-gradient(135deg, var(--neohub-blue) 0%, var(--deep-blue) 50%, var(--dark-blue) 100%);
    
    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.2);
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--background);
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    color: var(--text-primary);
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Buttons */
.btn-primary, .btn-secondary, .btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    font-size: 1rem;
    text-decoration: none;
    cursor: pointer;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-primary.large {
    padding: 16px 32px;
    font-size: 1.1rem;
}

.btn-secondary {
    background: transparent;
    color: var(--neohub-blue);
    border: 2px solid var(--neohub-blue);
}

.btn-secondary:hover {
    background: var(--neohub-blue);
    color: var(--white);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--border);
}

.btn-outline:hover {
    border-color: var(--neohub-blue);
    color: var(--neohub-blue);
    transform: translateY(-2px);
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    transition: all var(--transition-normal);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-logo .logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: var(--shadow-md);
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.nav-menu {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: all var(--transition-fast);
    position: relative;
    padding: 0.5rem 1rem;
    border-radius: 6px;
}

.nav-link:hover {
    color: var(--neohub-blue);
    background: rgba(54, 182, 231, 0.1);
}

.nav-link.active {
    color: var(--neohub-blue);
    background: rgba(54, 182, 231, 0.15);
    font-weight: 600;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--gradient-hero);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content {
    animation: slideInLeft 1s ease-out;
}

.hero-title {
    font-size: 4rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.title-line {
    display: block;
}

.highlight {
    background: linear-gradient(45deg, #FFD700, #FFA500);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-visual {
    animation: slideInRight 1s ease-out;
}

/* Dashboard Preview */
.dashboard-preview {
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    transform: perspective(1000px) rotateY(-5deg) rotateX(5deg);
    transition: transform var(--transition-slow);
}

.dashboard-preview:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

.dashboard-header {
    background: var(--surface);
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border);
}

.dashboard-dots {
    display: flex;
    gap: 8px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot.red { background: #FF5F57; }
.dot.yellow { background: #FFBD2E; }
.dot.green { background: #28CA42; }

.dashboard-title {
    font-weight: 600;
    color: var(--text-primary);
}

.dashboard-content {
    padding: 1.5rem;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.dashboard-card {
    background: var(--surface);
    border-radius: 8px;
    padding: 1rem;
    border: 1px solid var(--border);
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.card-header h3 {
    font-size: 0.9rem;
    color: var(--text-primary);
}

.card-status {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #28CA42;
}

.card-chart {
    display: flex;
    gap: 4px;
    align-items: end;
    height: 60px;
}

.chart-bar {
    flex: 1;
    background: var(--gradient-primary);
    border-radius: 2px;
    min-height: 20px;
}

.card-metrics {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.metric {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.metric-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.metric-value {
    font-weight: 600;
    color: var(--text-primary);
}

/* Features Section */
.features {
    padding: 6rem 0;
    background: var(--surface);
}

.features-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

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

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
}

.pricing-note {
    margin-top: 1.5rem;
    padding: 1rem 2rem;
    background: rgba(54, 182, 231, 0.1);
    border-left: 4px solid var(--neohub-blue);
    border-radius: 8px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.pricing-note p {
    margin: 0;
    color: var(--text-primary);
    font-size: 1rem;
    text-align: center;
}

.pricing-note strong {
    color: var(--neohub-blue);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    align-items: stretch;
}

.feature-card {
    background: var(--white);
    border: 2px solid var(--border);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    position: relative;
    transition: all var(--transition-normal);
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 400px;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--neohub-blue);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.icon-dashboard::before {
    content: '📊';
    font-size: 2rem;
}

.icon-modular::before {
    content: '🔧';
    font-size: 2rem;
}

.icon-docker::before {
    content: '🐳';
    font-size: 2rem;
}

.icon-web-ui::before {
    content: '🌐';
    font-size: 2rem;
}

.feature-title {
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.feature-description {
    color: var(--text-secondary);
    line-height: 1.6;
    flex-grow: 1;
    margin-bottom: 1rem;
}

/* Pricing Section */
.pricing {
    padding: 6rem 0;
    background: var(--white);
}

.pricing-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    align-items: stretch;
}

.pricing-card {
    background: var(--white);
    border: 2px solid var(--border);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    position: relative;
    transition: all var(--transition-normal);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.pricing-card.featured {
    border-color: var(--neohub-blue);
    transform: scale(1.05);
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient-primary);
    color: var(--white);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.pricing-header {
    margin-bottom: 2rem;
}

.pricing-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.pricing-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.5rem;
}

.price-currency {
    font-size: 1.5rem;
    color: var(--text-secondary);
}

.price-amount {
    font-size: 3rem;
    font-weight: 700;
    color: var(--neohub-blue);
}

.price-period {
    color: var(--text-secondary);
}

.pricing-features {
    margin-bottom: 2rem;
    flex-grow: 1;
}

.feature-item {
    padding: 0.5rem 0;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border);
}

.feature-item:last-child {
    border-bottom: none;
}

/* Contact Section */
.contact {
    padding: 6rem 0;
    background: var(--surface);
}

.contact-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 3rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.contact-icon {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-email::before {
    content: '✉️';
    font-size: 1.5rem;
}

.icon-phone::before {
    content: '📞';
    font-size: 1.5rem;
}

.contact-details h4 {
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.contact-details p {
    color: var(--text-secondary);
}

.contact-form {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
}

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

.form-input, .form-textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color var(--transition-fast);
    background: var(--white);
}

.form-input:focus, .form-textarea:focus {
    outline: none;
    border-color: var(--neohub-blue);
}

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

/* Footer */
.footer {
    background: var(--dark-blue);
    color: var(--white);
    padding: 3rem 0 1rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-logo .logo {
    width: 32px;
    height: 32px;
    object-fit: contain;
    border-radius: 6px;
    box-shadow: var(--shadow-sm);
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-link {
    color: var(--white);
    text-decoration: none;
    opacity: 0.8;
    transition: opacity var(--transition-fast);
}

.footer-link:hover {
    opacity: 1;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.8;
}

/* Animations */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

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

/* Scroll Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Demo Popup Styles */
.demo-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    /* Ensure popup container doesn't cause overflow */
    overflow: hidden;
    box-sizing: border-box;
}

.demo-popup.active {
    display: flex;
    /* Ensure popup doesn't exceed viewport */
    padding: 20px;
    box-sizing: border-box;
}

.demo-popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
}

.demo-popup-content {
    position: relative;
    background: var(--white);
    border-radius: 20px;
    max-width: 90vw;
    max-height: 90vh;
    width: 1000px;
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    animation: popupSlideIn 0.3s ease-out;
    display: flex;
    flex-direction: column;
    /* Ensure content always fits within viewport */
    box-sizing: border-box;
    /* Ensure popup never exceeds viewport */
    margin: auto;
}

.demo-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--text-secondary);
    cursor: pointer;
    z-index: 10001;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.demo-close-btn:hover {
    background: rgba(0, 0, 0, 0.1);
    color: var(--text-primary);
}

.demo-header {
    padding: 2rem 2rem 1rem;
    text-align: center;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
    /* Prevent header from growing */
    min-height: 0;
}

.demo-header h2 {
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.demo-header p {
    color: var(--text-secondary);
    margin: 0;
}

.demo-slider {
    position: relative;
    flex: 1 1 auto;
    min-height: 500px;
    overflow: hidden;
    /* Calculate height dynamically, leaving space for header (~120px) and navigation (~70px) */
    height: calc(90vh - 190px);
    max-height: calc(90vh - 190px);
    /* Must be block (not flex) for absolute positioned slides to work */
    display: block;
}

.demo-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.4s ease-in-out;
    display: flex;
    flex-direction: column;
    z-index: 1;
    padding: 1rem;
    box-sizing: border-box;
    overflow-y: auto;
    overflow-x: hidden;
    /* Ensure slide content is visible and properly sized */
    min-height: 100%;
}

.demo-slide.active {
    opacity: 1;
    transform: translateX(0) !important;
    z-index: 2;
    /* Ensure active slide is fully visible */
    visibility: visible;
}

.demo-slide img {
    width: 100%;
    height: auto;
    max-height: calc(90vh - 280px);
    min-height: 400px;
    object-fit: contain;
    background: var(--surface);
    border-radius: 8px;
    margin-bottom: 1rem;
    flex-shrink: 1;
    /* Ensure image doesn't cause overflow */
    max-width: 100%;
}

.demo-slide-info {
    padding: 0 2rem 1rem;
    text-align: center;
    background: var(--white);
    position: relative;
    z-index: 10;
}

.demo-slide-info h3 {
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.demo-slide-info p {
    color: var(--text-secondary);
    margin: 0;
}

.demo-navigation {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 2rem;
    border-top: 1px solid var(--border);
    flex-shrink: 0;
    /* Ensure navigation is ALWAYS visible - never shrinks */
    background: var(--white);
    z-index: 100;
    /* Minimum height to ensure buttons are always visible */
    min-height: 60px;
    /* Sticky positioning to keep it visible when scrolling */
    position: sticky;
    bottom: 0;
    margin-top: auto;
}

.demo-nav-btn {
    background: var(--gradient-primary);
    color: var(--white);
    border: none;
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    /* Ensure buttons are always visible and clickable */
    flex-shrink: 0;
    z-index: 101;
}

.demo-nav-btn:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-md);
}

.demo-nav-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.demo-indicators {
    display: flex;
    gap: 0.5rem;
}

.demo-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--border);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.demo-indicator.active {
    background: var(--neohub-blue);
    transform: scale(1.2);
}

.demo-indicator:hover {
    background: var(--deep-blue);
}

@keyframes popupSlideIn {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(-50px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Navigation CTA Updates */
.nav-cta {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.nav-cta .btn-secondary,
.nav-cta .btn-primary {
    padding: 10px 20px;
    font-size: 0.9rem;
    font-weight: 500;
    width: 120px;
    height: 40px;
    text-align: center;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

.nav-cta .btn-primary {
    text-decoration: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .nav-cta {
        gap: 0.5rem;
    }
    
    .nav-cta .btn-secondary,
    .nav-cta .btn-primary {
        padding: 8px 12px;
        font-size: 0.8rem;
        width: 100px;
        height: 36px;
    }
    
    .pricing-note {
        padding: 0.75rem 1rem;
        margin-top: 1rem;
    }
    
    .pricing-note p {
        font-size: 0.9rem;
    }
    
    .demo-popup-content {
        width: 95vw;
        max-height: 95vh;
    }
    
    .demo-slider {
        height: calc(95vh - 160px);
        max-height: calc(95vh - 160px);
    }
    
    .demo-slide img {
        max-height: calc(95vh - 250px);
        min-height: 300px;
        margin-bottom: 0.5rem;
    }
    
    .demo-navigation {
        padding: 0.75rem 1rem;
        min-height: 55px;
    }
    
    .demo-nav-btn {
        width: 35px;
        height: 35px;
        min-width: 35px;
        min-height: 35px;
        font-size: 1rem;
    }
    
    .demo-header {
        padding: 1.5rem 1rem 1rem;
    }
    
    .demo-slide-info {
        padding: 0 1rem 1rem;
    }
    
    .demo-slide-info h3 {
        font-size: 1.1rem;
        margin-bottom: 0.25rem;
    }
    
    .demo-slide-info p {
        font-size: 0.9rem;
    }
    
    .demo-navigation {
        padding: 1rem;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .contact-content {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 1rem;
    }
    
    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .pricing-grid {
        grid-template-columns: 1fr;
    }
    
    .pricing-card.featured {
        transform: none;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
}
