/* HyScaler Slides Common Styles */

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #ffffff;
    color: #000000;
    line-height: 1.6;
    overflow-x: hidden;
}

.slide {
    min-height: 100vh;
    padding: 60px;
    padding-bottom: calc(60px + 6vh);
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    page-break-after: always;
    page-break-inside: avoid;
    break-after: page;
    break-inside: avoid;
    background: #ffffff;
    border-bottom: 1px solid #e5e5e5;
}

.slide::before {
    display: none;
}

.slide-content {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    position: relative;
    z-index: 1;
}

.slide-content.wide-content {
    max-width: 1600px;
}

h1 {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: #000000;
}

h2 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: #000000;
    text-align: center;
}

h3 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #171717;
}

p, li {
    font-size: 1.3rem;
    line-height: 1.8;
    color: #525252;
}

.subtitle {
    font-size: 1.8rem;
    color: #737373;
    margin-bottom: 2rem;
}

.highlight {
    color: #000000;
    font-weight: 600;
}

.accent {
    color: #404040;
    font-weight: 600;
}

ul {
    list-style: none;
    padding-left: 0;
    margin: 1.5rem 0;
}

ul li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 1rem;
}

ul li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: #000000;
    font-size: 1.5rem;
}

.logo {
    display: inline-block;
    margin-bottom: 1rem;
    height: 60px;
}

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

.stat-card {
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: #000000;
}

.stat-label {
    font-size: 1.2rem;
    color: #737373;
    margin-top: 0.5rem;
}

.chart-container {
    background: #fafafa;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 2rem;
    margin: 2rem 0;
}

.cta-button {
    display: inline-block;
    padding: 1.5rem 3rem;
    background: #000000;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-size: 1.3rem;
    font-weight: 600;
    margin: 2rem 0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    background: #171717;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin: 2rem 0;
}

.feature-card {
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    border-color: #d4d4d4;
}

.icon {
    width: 48px;
    height: 48px;
    color: #000000;
    margin-bottom: 1rem;
}

.two-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.three-column {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin: 2rem 0;
}

.pipeline-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin: 2rem 0;
}

.service-card {
    background: #ffffff;
    border: 2px solid #e5e5e5;
    border-radius: 12px;
    padding: 2.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(to bottom, #0369a1, #0284c7);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.service-card:hover::before {
    transform: scaleY(1);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
    border-color: #0369a1;
}

.category-card {
    background: #ffffff;
    border: 2px solid #e5e5e5;
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-color: #0369a1;
}

.demo-link {
    color: #0369a1;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.demo-link:hover {
    color: #0284c7;
    text-decoration: underline;
}

.next-slide-indicator {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.next-slide-indicator:hover {
    transform: translateX(-50%) translateY(-5px);
}

.next-slide-indicator .arrow {
    width: 40px;
    height: 40px;
    color: #000000;
    animation: bounce-arrow 2s infinite;
}

.next-slide-indicator .text {
    display: none;
}

@keyframes bounce-arrow {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

.gradient-text {
    background: linear-gradient(135deg, #0369a1, #0284c7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Competitive Table Styles */
.competitive-table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
}

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

.competitive-table th {
    background: #f9fafb;
    font-weight: 600;
    color: #171717;
}

.competitive-table tbody tr {
    transition: background-color 0.2s ease;
}

.competitive-table tbody tr:hover {
    background-color: #f9fafb;
}

/* Tab Styles */
.tab-container {
    margin: 2rem 0;
}

.tab-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.tab-button {
    padding: 1rem 2rem;
    background: #f3f4f6;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.tab-button:hover {
    background: #e5e7eb;
    border-color: #d1d5db;
}

.tab-button.active {
    background: #16a34a;
    color: white;
    border-color: #16a34a;
}

.tab-content {
    display: none;
}

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

/* Demo Section Styles */
.demo-section {
    margin: 2rem 0;
}

.demo-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 8px;
}

.demo-content-header {
    text-align: center;
    margin-bottom: 1rem;
}

.demo-content-description {
    color: #737373;
}

.demo-video-link {
    text-align: center;
    margin-top: 1rem;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    .slide {
        min-height: 100vh;
        padding: 30px 20px;
        padding-bottom: calc(30px + 6vh);
    }

    h1 {
        font-size: 2.5rem !important;
        margin-bottom: 1rem;
    }

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

    h3 {
        font-size: 1.4rem;
        margin-bottom: 1rem;
    }

    p, li {
        font-size: 1rem;
        line-height: 1.6;
    }

    .subtitle {
        font-size: 1.3rem !important;
        margin-bottom: 1.5rem;
    }

    .logo {
        height: 40px;
        margin-bottom: 0.75rem;
    }

    .icon {
        width: 32px;
        height: 32px;
    }

    .feature-grid, .two-column, .three-column, .pipeline-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem;
    }

    .stats-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem;
        margin: 2rem 0;
    }

    .stat-card, .feature-card, .service-card, .category-card, .chart-container {
        padding: 1.5rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .stat-label {
        font-size: 1rem;
    }

    .cta-button {
        padding: 1rem 2rem !important;
        font-size: 1.1rem !important;
        width: 100%;
        text-align: center;
    }

    .next-slide-indicator {
        bottom: 20px;
    }

    .next-slide-indicator .arrow {
        width: 32px;
        height: 32px;
    }

    .next-slide-indicator .text {
        font-size: 0.8rem;
    }

    .slide:first-child h1 {
        font-size: 2rem !important;
    }

    .slide:first-child .subtitle {
        font-size: 1.1rem !important;
    }

    .demo-tabs {
        gap: 0.75rem;
    }

    .demo-tabs .tab-button {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }

    /* Mobile Footer Adjustments */
    .fixed-footer {
        padding: 0 1.5rem;
    }

    .footer-page-number {
        font-size: 0.65rem;
    }

    .footer-logo {
        height: 2.5vh;
        max-height: 30px;
    }

    /* Responsive Table */
    .competitive-table {
        border: 0;
    }

    .competitive-table thead {
        display: none;
    }

    .competitive-table tbody tr {
        display: block;
        margin-bottom: 1.5rem;
        border: 1px solid #e5e5e5;
        border-radius: 8px;
        background: #ffffff;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    }

    .competitive-table td {
        display: block;
        text-align: left;
        padding: 0.75rem 1rem;
        border-bottom: 1px solid #f3f4f6;
    }

    .competitive-table td:last-child {
        border-bottom: 0;
    }

    .competitive-table td::before {
        content: attr(data-label);
        font-weight: 600;
        color: #171717;
        display: block;
        margin-bottom: 0.5rem;
        font-size: 0.9rem;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    .competitive-table td strong {
        color: #0369a1;
    }
}

@media (max-width: 480px) {
    .slide {
        min-height: 100vh;
        padding: 20px 15px;
        padding-bottom: calc(20px + 6vh);
    }

    h1 {
        font-size: 2rem !important;
    }

    h2 {
        font-size: 1.75rem;
    }

    h3 {
        font-size: 1.25rem;
    }

    p, li {
        font-size: 0.95rem;
    }

    .subtitle {
        font-size: 1.1rem !important;
    }

    .stat-number {
        font-size: 1.75rem;
    }

    .cta-button {
        padding: 0.875rem 1.5rem !important;
        font-size: 1rem !important;
    }

    .demo-tabs .tab-button {
        padding: 0.625rem 1.25rem;
        font-size: 0.9rem;
    }

    /* Mobile Footer Adjustments */
    .fixed-footer {
        padding: 0 1rem;
    }

    .footer-page-number {
        font-size: 0.6rem;
    }

    .footer-logo {
        height: 2vh;
        max-height: 25px;
    }
}

/* Fixed Footer Styles */
.fixed-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 6vh;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 3rem;
    z-index: 999;
    transition: background 0.3s ease;
    border-top: 1px solid rgba(229, 229, 229, 0.5);
}

.fixed-footer:hover {
    background: rgba(255, 255, 255, 0.4);
}

.footer-page-number {
    font-size: 0.75rem;
    font-weight: 400;
    color: #a3a3a3;
    opacity: 0.7;
}

.footer-logo-link {
    display: flex;
    align-items: center;
}

.footer-logo {
    height: 3vh;
    max-height: 40px;
    transition: opacity 0.3s ease;
}

.footer-logo:hover {
    opacity: 0.8;
}

/* Slide Pagination Styles */
.slide-pagination {
    position: fixed;
    bottom: 6vh;
    left: 0;
    width: 100%;
    height: 5px;
    background: rgba(229, 229, 229, 0.3);
    z-index: 998;
    display: flex;
}

.pagination-dot {
    flex: 1;
    height: 100%;
    background: rgba(229, 229, 229, 0.5);
    transition: all 0.3s ease;
    border-right: 1px solid rgba(255, 255, 255, 0.5);
    cursor: pointer;
    position: relative;
}

.pagination-dot:hover {
    height: 8px;
    bottom: 0;
}

.pagination-dot:last-child {
    border-right: none;
}

/* Alternating colors for pagination bars - more distinct shades */
.pagination-dot:nth-child(2n+1) { background: rgba(100, 116, 139, 0.35); }  /* Slate */
.pagination-dot:nth-child(2n+2) { background: rgba(71, 85, 105, 0.45); }   /* Darker slate */

/* Active state - brand color for progress */
.pagination-dot.active { background: #0369a1 !important; }

/* Tooltip styles for pagination dots */
.pagination-dot::after {
    content: attr(data-title);
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%) translateY(-5px);
    background: rgba(23, 23, 23, 0.95);
    color: #ffffff;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.75rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.pagination-dot:hover::after {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Tooltip arrow */
.pagination-dot::before {
    content: '';
    position: absolute;
    bottom: 7px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid rgba(23, 23, 23, 0.95);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 1000;
}

.pagination-dot:hover::before {
    opacity: 1;
}

@media print {
    /* Hide default browser page numbers */
    @page {
        margin-bottom: 20mm;
    }

    body {
        background: white;
        color: black;
    }

    .slide {
        min-height: 100vh;
        height: auto;
        background: white;
        padding: 40px;
        padding-bottom: calc(80px + 8vh);
        margin-bottom: 0;
        page-break-after: always;
        page-break-inside: avoid;
        break-after: page;
        break-inside: avoid;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        border-bottom: none !important;
    }

    .slide-content {
        margin-bottom: 8vh;
    }

    h1, h2, h3, .stat-number, .logo {
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
        color: #000000 !important;
    }

    p, li {
        color: #525252 !important;
    }

    .stat-card, .feature-card, .service-card, .category-card, .chart-container {
        border: 1px solid #e5e5e5 !important;
        background: #ffffff !important;
        page-break-inside: avoid;
        break-inside: avoid;
    }

    .feature-grid, .stats-grid, .two-column, .three-column, .pipeline-grid {
        page-break-inside: auto;
        break-inside: auto;
    }

    .feature-grid > *, .stats-grid > *, .two-column > *, .three-column > *, .pipeline-grid > * {
        page-break-inside: avoid;
        break-inside: avoid;
    }

    .chart-container {
        page-break-inside: avoid;
        break-inside: avoid;
    }

    h1, h2, h3, h4 {
        page-break-after: avoid;
        break-after: avoid;
    }

    ul, ol {
        page-break-inside: avoid;
        break-inside: avoid;
    }

    table, .competitive-table {
        page-break-inside: avoid;
        break-inside: avoid;
    }

    .competitive-table tbody tr {
        page-break-inside: avoid;
        break-inside: avoid;
    }

    .next-slide-indicator {
        display: none !important;
    }

    .slide-pagination {
        display: none !important;
    }

    /* Ensure footer is visible in print */
    .fixed-footer {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 6vh;
        background: transparent !important;
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        display: flex !important;
        align-items: center;
        justify-content: space-between !important;
        padding: 5px 20px !important;
        z-index: 9999 !important;
        border-top: 1px solid #e5e5e5;
        border-bottom: none !important;
        page-break-inside: avoid;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    /* Replace page counter with copyright */
    .footer-page-number {
        display: block !important;
        text-align: left !important;
        font-size: 0 !important; /* Hide original text */
        font-weight: 500;
        color: #999999 !important;
        opacity: 1;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .footer-page-number::before {
        content: "© 2025 HyScaler®. All rights reserved." !important;
        font-size: 8pt !important; /* Restore font size for copyright */
    }

    /* Ensure logo is visible and on the right */
    .footer-logo-link {
        display: block !important;
    }

    .footer-logo {
        height: 20px !important;
        max-height: 30px;
        opacity: 1 !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}
