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

html {
    overflow-x: hidden;
    max-width: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f8f9fa;
    overflow-x: hidden;
    max-width: 100vw;
    position: relative;
}

a {
    text-decoration: none;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: white;
}

::-webkit-scrollbar-thumb {
    background: #e2e8f0;
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: #cbd5e0;
}

/* Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: #e2e8f0 white;
}

/* Language Switcher */
.language-switcher {
    position: fixed;
    top: 8px;
    right: 10px;
    z-index: 1000;
    display: flex;
    gap: 0;
    background: white;
    padding: 4px;
    border-radius: 25px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.lang-btn {
    padding: 8px 20px;
    border: none;
    background: transparent;
    cursor: pointer;
    border-radius: 20px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    color: #666;
}

.lang-btn.active {
    background: #002FA7;
    color: white;
}

.lang-btn:hover {
    background: rgba(0, 47, 167, 0.1);
}

.lang-btn.active:hover {
    background: #0047AB;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    padding: 80px 5%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.3) 100%), url('images/hero-banner.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
    position: relative;
    overflow: hidden;
}

.hero-content {
    z-index: 2;
}

.animated-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    animation: fadeInUp 1s ease;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 40px;
    opacity: 0.95;
    animation: fadeInUp 1s ease 0.2s both;
}

.hero-quality {
    font-size: 1.1rem;
    margin-bottom: 40px;
    opacity: 0.9;
    line-height: 1.7;
    animation: fadeInUp 1s ease 0.3s both;
}

/* Value Proposition Card */
.value-prop-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 40px;
    border-radius: 20px;
    margin: 40px auto;
    max-width: 900px;
    animation: fadeInUp 1s ease 0.4s both;
    transition: transform 0.3s ease;
}

.value-prop-card:hover {
    background: rgba(255, 255, 255, 0.2);
}

.value-prop-card h2 {
    color: white;
    font-size: 2rem;
    margin-bottom: 20px;
    text-align: center;
    font-weight: 700;
}

.value-prop-card p {
    font-size: 1.2rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.95);
    text-align: center;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 40px 0;
}

.stat-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    transition: transform 0.3s ease;
    animation: fadeInUp 1s ease 0.4s both;
}

.stat-card:hover {
    background: rgba(255, 255, 255, 0.2);
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* CTA Button */
.cta-button {
    padding: 18px 50px;
    font-size: 1.1rem;
    font-weight: 700;
    background: white;
    color: #002FA7;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    animation: fadeInUp 1s ease 0.6s both;
}

.cta-button:hover {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

/* Network Visualization */
.network-visualization {
    position: relative;
    height: 600px;
    animation: fadeIn 1.5s ease;
}

#networkCanvas {
    width: 100%;
    height: 100%;
}

/* Services Dashboard */
.services-dashboard {
    padding: 100px 5%;
    background: white;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 60px;
    color: #2d3748;
    font-weight: 800;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    align-items: stretch;
}

@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.service-card {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
}

.service-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #2d3748;
}

.service-card p {
    color: #718096;
    margin-bottom: 20px;
}

.service-chart {
    height: 200px;
    margin-top: auto;
}

/* Dashboard Section */
.dashboard-section {
    padding: 100px 5%;
    background: transparent;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.dashboard-card {
    background: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.dashboard-card.wide {
    grid-column: 1 / -1;
}

.dashboard-card h3 {
    margin-bottom: 20px;
    color: #2d3748;
    font-size: 1.3rem;
}

.dashboard-card canvas {
    max-height: 300px;
}

/* Blog Section */
.blog-section {
    padding: 40px 5%;
    background: white;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}

.view-more-btn {
    display: block;
    margin: 40px auto 0;
    padding: 15px 40px;
    background: linear-gradient(135deg, #002FA7 0%, #0047AB 100%);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.view-more-btn:hover {
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

/* Blog Page Specific */
.blog-nav {
    background: white;
    padding: 20px 5%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    display: flex;
    gap: 30px;
}

.blog-nav a {
    color: #4a5568;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.blog-nav a:hover,
.blog-nav a.active {
    color: #002FA7;
}

.blog-header {
    background: white;
    color: #2d3748;
    padding: 80px 5%;
    text-align: center;
    border-bottom: 1px solid #e2e8f0;
}

.blog-header h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.blog-header p {
    font-size: 1.2rem;
    color: #4a5568;
}

.blog-header-small {
    background: white;
    color: #2d3748;
    padding: 40px 5%;
    text-align: center;
    border-bottom: 1px solid #e2e8f0;
}

.blog-header-small h1 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.blog-header-small p {
    font-size: 1rem;
    color: #4a5568;
}

.blog-filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    padding: 40px 5%;
    background: white;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 25px;
    border: 2px solid #e2e8f0;
    background: white;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    color: #4a5568;
}

.filter-btn:hover,
.filter-btn.active {
    background: #002FA7;
    color: white;
    border-color: #002FA7;
}

.blog-content {
    padding: 20px 5% 40px 5%;
    background: transparent;
}

.blog-articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
}

.blog-article-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.blog-article {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
}

.blog-article-link:hover .blog-article {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.article-image {
    aspect-ratio: 4 / 3;
    background-size: cover;
    background-position: center;
    border-radius: 20px;
}

.article-content {
    padding: 20px;
}

.article-tag {
    display: inline-block;
    padding: 6px 15px;
    background: #edf2f7;
    color: #002FA7;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.article-content h2 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #2d3748;
    line-height: 1.3;
}

.article-content p {
    color: #718096;
    margin-bottom: 20px;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #e2e8f0;
    padding-top: 20px;
}

.article-date {
    color: #a0aec0;
    font-size: 0.9rem;
}

.read-more {
    color: #002FA7;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.read-more:hover {
    color: #0047AB;
}

/* Contact Section */
.contact-section {
    padding: 40px 5%;
    background: white;
    color: #2d3748;
}

.contact-form {
    max-width: 600px;
    margin: 40px auto 0;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    background: white;
    color: #2d3748;
    outline: 0;
}

.contact-form textarea {
    resize: vertical;
    font-family: inherit;
    min-height: 275px;
}

.submit-btn {
    width: 100%;
    padding: 15px;
    background: #002FA7;
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    background: #0047AB;
    box-shadow: 0 10px 30px rgba(0, 47, 167, 0.2);
}

/* Footer */
footer {
    background: white;
    color: #4a5568;
    text-align: center;
    padding: 30px 5%;
}

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

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

/* Responsive Design */
@media (min-width: 769px) {
    .animated-title {
        white-space: nowrap;
    }
}

@media (max-width: 1024px) {
    .hero {
        grid-template-columns: 1fr;
        padding: 60px 5%;
    }

    .network-visualization {
        height: 400px;
        margin-top: 40px;
    }

    .animated-title {
        font-size: 2.5rem;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    /* Force no horizontal scroll on mobile */
    * {
        max-width: 100vw;
    }

    section {
        overflow-x: hidden;
        max-width: 100vw;
    }

    /* Language switcher - vertical stacked */
    .language-switcher {
        position: fixed !important;
        flex-direction: column;
        top: 5px !important;
        right: 5px !important;
        padding: 2px;
        gap: 2px;
        z-index: 1000 !important;
        border-radius: 20px;
    }

    .lang-btn {
        padding: 4px 12px;
        font-size: 14px;
    }

    /* Hero section - stable background (no parallax) and no animations on mobile */
    .hero {
        background-attachment: scroll;
        min-height: auto;
        padding: 30px 5%;
        max-width: 100vw;
        width: 100%;
        overflow-x: hidden;
        box-sizing: border-box;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero *, .hero *::before, .hero *::after {
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .animated-title {
        font-size: 1.7rem;
        animation: none;
        white-space: normal !important;
        max-width: 100%;
        word-wrap: break-word;
    }

    .hero-subtitle {
        font-size: 1.1rem;
        animation: none;
        max-width: 100%;
        word-wrap: break-word;
        white-space: normal !important;
    }

    .hero-quality {
        font-size: 1rem;
        animation: none;
        max-width: 100%;
        word-wrap: break-word;
        white-space: normal !important;
        margin-bottom: 30px;
    }

    .value-prop-card {
        animation: none;
        max-width: 100%;
        word-wrap: break-word;
    }

    .value-prop-card * {
        white-space: normal !important;
    }

    .network-visualization {
        display: none;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .section-title {
        font-size: 2rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .blog-grid,
    .blog-articles-grid {
        grid-template-columns: 1fr;
    }

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

    .blog-filters {
        gap: 10px;
    }

    .filter-btn {
        padding: 8px 18px;
        font-size: 0.9rem;
    }

    /* Reduce card padding on mobile */
    .value-prop-card {
        padding: 20px;
    }

    .stat-card {
        padding: 15px;
    }

    .service-card {
        padding: 20px;
    }

    .dashboard-card {
        padding: 15px;
    }

    .use-case-card {
        padding: 20px;
    }

    .article-cta {
        padding: 25px;
    }
}

/* Article CTA Box */
.article-cta {
    background: #002FA7;
    color: white;
    padding: 50px;
    border-radius: 20px;
    text-align: center;
    margin: 20px auto;
    max-width: 800px;
}

.article-cta h3 {
    font-size: 2rem;
    margin: 0 0 15px;
    color: white;
}

.article-cta p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.95;
    color: white;
}

.article-cta .cta-button {
    background: white;
    color: #002FA7;
    display: inline-block;
}

/* Use Cases Section */
.use-cases-section {
    padding: 100px 5%;
    background: #f8f9fa;
}

.use-cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 40px;
    align-items: stretch;
}

.use-case-card {
    background: white;
    padding: 35px;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.use-case-card:hover {
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.12);
}

.use-case-card h3 {
    color: #002FA7;
    font-size: 1.4rem;
    margin-bottom: 15px;
}

.use-case-tag {
    display: inline-block;
    background: #edf2f7;
    color: #4a5568;
    padding: 6px 15px;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.use-case-card p {
    color: #4a5568;
    line-height: 1.7;
    margin-bottom: 15px;
}

.use-case-result {
    background: #e6f7ed;
    border-left: 3px solid #38ef7d;
    padding: 15px;
    margin-top: auto;
    border-radius: 8px;
    font-weight: 600;
    color: #2d3748;
}

.section-subtitle {
    text-align: center;
    color: #4a5568;
    font-size: 1.2rem;
    max-width: 800px;
    margin: -40px auto 60px;
    line-height: 1.6;
}
