/* Base Styles */
:root {
    --primary-color: #0b1c3f;
    --secondary-color: #0056b3;
    --accent-color: #1a73e8;
    --text-main: #333;
    --text-muted: #666;
    --bg-light: #f4f6f9;
    --bg-white: #ffffff;
    --danger: #dc3545;
    --success: #28a745;
    --border-color: #e0e0e0;
    --font-family: 'Inter', sans-serif;
    --transition: all 0.3s ease;
}

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

body {
    font-family: var(--font-family);
    color: var(--text-main);
    line-height: 1.6;
    background-color: var(--bg-white);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section-padding {
    padding: 80px 0;
}

.bg-light {
    background-color: var(--bg-light);
}

.text-white {
    color: white !important;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 40px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--accent-color);
    color: white;
    border: 2px solid var(--accent-color);
}

.btn-primary:hover {
    background-color: #1557b0;
    border-color: #1557b0;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(26, 115, 232, 0.3);
}

.btn-outline {
    background-color: transparent;
    color: white;
    border: 2px solid white;
}

.btn-outline:hover {
    background-color: white;
    color: var(--primary-color);
}

/* Header */
.header {
    background-color: var(--primary-color);
    color: white;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: var(--transition);
    padding: 15px 0;
}

.header.scrolled {
    padding: 10px 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    background-color: rgba(11, 28, 63, 0.95);
    backdrop-filter: blur(10px);
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
    letter-spacing: 1px;
}

.logo span {
    font-weight: 400;
    opacity: 0.8;
}

.main-nav ul {
    display: flex;
    gap: 25px;
}

.main-nav a {
    font-size: 0.9rem;
    font-weight: 500;
}

.main-nav a:hover {
    color: var(--accent-color);
}

.btn-nav {
    padding: 8px 16px;
    font-size: 0.9rem;
    border-radius: 20px;
}

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

/* Hero */
.hero {
    position: relative;
    padding: 180px 0 120px;
    background-color: var(--primary-color);
    color: white;
    text-align: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-wrap: wrap;
    z-index: 1;
}

.hero-bg .bg-img {
    flex: 1 1 20%;
    height: 33.33%;
    background-size: cover;
    background-position: center;
    filter: grayscale(20%); /* Slightly grayscale so it blends well with the overlay */
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary-color);
    opacity: 0.7;
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero h1 span {
    font-size: 2.5rem;
    font-weight: 600;
    background: linear-gradient(90deg, #fff, #a0c4ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 60px;
}

.hero-stats {
    position: relative;
    z-index: 3;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    border-top: 1px solid rgba(255,255,255,0.1);
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding: 20px 0;
}

.stats-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 15px;
    text-align: left;
}

.stat-item i {
    font-size: 2rem;
    color: var(--accent-color);
}

.stat-item div {
    font-size: 0.9rem;
    line-height: 1.4;
}

.stat-item strong {
    font-size: 1.1rem;
}

/* Why Transform */
.compare-container {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 40px;
    margin-top: 50px;
    position: relative;
}

.compare-card {
    flex: 1;
    max-width: 500px;
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.current-state {
    border-top: 4px solid var(--danger);
    background-color: #fffafb;
}

.transformed-state {
    border-top: 4px solid var(--success);
    background-color: #f6fff8;
}

.compare-card h3 {
    text-align: center;
    margin-bottom: 25px;
    font-size: 1.2rem;
}

.current-state h3 { color: var(--danger); }
.transformed-state h3 { color: var(--success); }

.compare-card ul li {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.current-state ul li i { color: var(--danger); margin-top: 4px; }
.transformed-state ul li i { color: var(--success); margin-top: 4px; }

.vs-badge {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--primary-color);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.2rem;
    border: 4px solid white;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    z-index: 2;
}

.section-footer-text {
    text-align: center;
    margin-top: 40px;
    font-size: 1.2rem;
    color: var(--primary-color);
}

/* How NHK Works */
.process-flow {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 50px;
    flex-wrap: wrap;
}

.flow-step {
    text-align: center;
    flex: 1;
    min-width: 120px;
}

.flow-step .icon-box {
    width: 70px;
    height: 70px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 1.8rem;
    color: var(--primary-color);
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: var(--transition);
}

.flow-step:hover .icon-box {
    transform: scale(1.1);
    color: var(--accent-color);
}

.flow-step h4 {
    font-size: 1rem;
    margin-bottom: 5px;
}

.flow-step p {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.flow-arrow {
    font-size: 1.5rem;
    color: #ccc;
}

.tags-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 50px;
}

.tag {
    background: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    gap: 8px;
}

.tag i {
    color: var(--accent-color);
}

/* 4 Layers */
.layers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.layer-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    border: 1px solid var(--border-color);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.layer-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.layer-header {
    background: #eef4ff;
    padding: 20px;
    text-align: center;
    font-weight: 700;
    color: var(--primary-color);
    border-bottom: 1px solid #dce8fc;
}

.layer-header span {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--accent-color);
    display: block;
    margin-top: 5px;
}

.layer-body {
    padding: 20px;
    text-align: center;
    flex-grow: 1;
}

.layer-body p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.8;
}

.layer-image {
    height: 140px;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: #cbd5e1;
}

/* Solutions */
.industry-group {
    margin-bottom: 50px;
}

.industry-title {
    color: var(--primary-color);
    margin-bottom: 20px;
    font-size: 1.1rem;
    border-bottom: 2px solid var(--accent-color);
    display: inline-block;
    padding-bottom: 5px;
}

.solutions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.solution-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.solution-card:hover {
    transform: translateY(-3px);
    border-color: var(--accent-color);
}

.solution-card .card-img {
    height: 120px;
    background: #eef2f7;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: #8da4be;
}

.solution-card .card-body {
    padding: 15px;
}

.solution-card h4 {
    font-size: 1rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.solution-card a {
    font-size: 0.85rem;
    color: var(--accent-color);
    font-weight: 500;
}

.solution-card a:hover {
    text-decoration: underline;
}

/* Projects */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.project-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: var(--transition);
}

.project-card:hover {
    transform: translateY(-5px);
}

.project-img {
    height: 150px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
    opacity: 0.9;
}

.project-info {
    padding: 20px;
    text-align: center;
}

.project-info h4 {
    margin-bottom: 15px;
}

.project-info a {
    font-size: 0.9rem;
    color: var(--accent-color);
    font-weight: 600;
}

/* Ecosystem Network */
.ecosystem-network {
    background-color: var(--primary-color);
    position: relative;
    overflow: hidden;
    padding: 100px 0;
}

.network-diagram {
    position: relative;
    height: 500px;
    margin-top: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.center-node {
    width: 150px;
    height: 150px;
    background: transparent;
    border: 2px solid rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 800;
    font-size: 1.5rem;
    text-align: center;
    z-index: 10;
    position: relative;
    box-shadow: 0 0 30px rgba(26, 115, 232, 0.5);
}

.center-node::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 1px dashed rgba(255,255,255,0.5);
    animation: spin 20s linear infinite;
}

@keyframes spin { 100% { transform: rotate(360deg); } }

.node-wrapper {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.node {
    position: absolute;
    width: 80px;
    height: 80px;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.8rem;
    text-align: center;
    background: rgba(11, 28, 63, 0.8);
    backdrop-filter: blur(5px);
    transition: var(--transition);
    cursor: pointer;
}

.node:hover {
    background: var(--accent-color);
    transform: scale(1.1);
    z-index: 20;
}

.node i {
    font-size: 1.5rem;
    margin-bottom: 5px;
    color: #a0c4ff;
}

/* Positioning nodes in a circle */
.node-wrapper:nth-child(2) .node { top: 10%; left: 50%; transform: translateX(-50%); }
.node-wrapper:nth-child(3) .node { top: 20%; left: 75%; transform: translateX(-50%); }
.node-wrapper:nth-child(4) .node { top: 50%; left: 85%; transform: translateY(-50%); }
.node-wrapper:nth-child(5) .node { top: 80%; left: 75%; transform: translateX(-50%); }
.node-wrapper:nth-child(6) .node { bottom: 10%; left: 50%; transform: translateX(-50%); }
.node-wrapper:nth-child(7) .node { top: 80%; left: 25%; transform: translateX(-50%); }
.node-wrapper:nth-child(8) .node { top: 50%; left: 15%; transform: translateY(-50%); }
.node-wrapper:nth-child(9) .node { top: 20%; left: 25%; transform: translateX(-50%); }
.node-wrapper:nth-child(10) .node { top: 30%; left: 60%; }
.node-wrapper:nth-child(11) .node { bottom: 30%; left: 35%; }
.node-wrapper:nth-child(12) .node { bottom: 30%; right: 35%; }

/* CTA Interest */
.interest-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.interest-card {
    background: white;
    border-radius: 12px;
    padding: 30px 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    border-top: 3px solid transparent;
    transition: var(--transition);
}

.interest-card:hover {
    border-top-color: var(--accent-color);
    transform: translateY(-5px);
}

.interest-card .icon {
    width: 60px;
    height: 60px;
    background: #eef4ff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.5rem;
    color: var(--accent-color);
}

.interest-card h4 {
    font-size: 1.1rem;
    margin-bottom: 20px;
    line-height: 1.4;
    color: var(--primary-color);
}

.interest-card a {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 600;
}

.interest-card a:hover {
    color: var(--accent-color);
}

/* Footer */
.footer {
    background-color: var(--primary-color);
    color: white;
    padding: 60px 0 20px;
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 40px;
}

.footer-col {
    flex: 1;
    min-width: 150px;
}

.brand-col {
    flex: 2;
    min-width: 250px;
}

.brand-col p {
    font-size: 0.9rem;
    color: #a0c4ff;
    margin: 20px 0;
    max-width: 300px;
}

.social-links a {
    display: inline-block;
    width: 35px;
    height: 35px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    text-align: center;
    line-height: 35px;
    margin-right: 10px;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--accent-color);
}

.footer-col h4 {
    font-size: 1rem;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul a {
    color: #a0c4ff;
    font-size: 0.9rem;
}

.footer-col ul a:hover {
    color: white;
}

.contact-col p {
    font-size: 0.9rem;
    color: #a0c4ff;
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    text-align: center;
    font-size: 0.85rem;
    color: #a0c4ff;
}

/* Responsive */
@media (max-width: 992px) {
    .compare-container {
        flex-direction: column;
        align-items: center;
    }
    
    .compare-card {
        width: 100%;
    }
    
    .vs-badge {
        position: relative;
        margin: 20px 0;
        top: auto; left: auto; transform: none;
    }

    .flow-arrow {
        transform: rotate(90deg);
        margin: 15px 0;
    }

    .process-flow {
        flex-direction: column;
    }

    .main-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--primary-color);
        padding: 20px;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    }

    .main-nav.active {
        display: block;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 15px;
    }

    .btn-nav {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero h1 span {
        font-size: 1.8rem;
    }
}

@media (max-width: 768px) {
    .hero-stats .stats-container {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .footer-container {
        flex-direction: column;
    }
    
    .network-diagram {
        height: 400px;
        transform: scale(0.8);
    }
}
