/* Global Variables */
:root {
    --primary-color: #0d6efd;
    --light-color:#ffffff;
    --secondary-color: #001A57;
    --accent-color: #f7644f;
    --gradient-start: #0d6efd;
    --gradient-end: #2986FF;
    --light-bg: #f8f9fa;
    --dark-bg: #0F172A;
    --text-light: #f8f9fa;
    --text-dark: #1E293B;
    --text-muted: #64748B;
    --card-bg: #ffffff;
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    --border-radius: 12px;
    --transition-normal: all 0.3s ease;
    --transition-slow: all 0.5s ease;
}

/* Base Styles */
body {
    font-family: 'Noto Sans JP', sans-serif;
    line-height: 1.7;
    color: var(--text-dark);
    overflow-x: hidden;
    background-color: #FAFAFA;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.3;
}

.display-1 {
    font-weight: 900;
    letter-spacing: -1px;
}

.lead {
    font-weight: 400;
    font-size: 1.2rem;
}

/* Navigation */
.navbar {
    padding: 1rem 0;
    transition: var(--transition-normal);
    z-index: 1000;
}

.navbar.scrolled {
    /* background-color: rgba(255, 255, 255, 0.98); */
    background-color: rgb(25 117 253);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    padding: 0.7rem 0;
}

.navbar.scrolled .nav-link {
    color: var(--text-light);
}

.navbar.scrolled .navbar-brand {
    color: var(--primary-color);
}

.navbar-brand {
    padding: 0;
    display: flex;
    align-items: center;
}

.logo-img {
    height: 40px;
    width: auto;
    transition: var(--transition-normal);
}

/* Make the logo slightly smaller when scrolled */
.navbar.scrolled .logo-img {
    height: 35px;
}

.nav-link {
    font-weight: 500;
    color: var(--text-light);
    padding: 0.5rem 1rem !important;
    margin: 0 0.2rem;
    position: relative;
    transition: var(--transition-normal);
}

.nav-link:hover {
    color: var(--accent-color);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 1rem;
    right: 1rem;
    height: 2px;
    background-color: var(--accent-color);
    transform: scaleX(0);
    transition: var(--transition-normal);
}

.nav-link:hover::after {
    transform: scaleX(1);
}

.navbar-toggler {
    border: none;
    color: white;
    padding: 0.25rem 0;
}

.navbar-toggler:focus {
    box-shadow: none;
    outline: none;
}

.navbar-toggler i {
    font-size: 1.5rem;
}

/* Change color when scrolled */
.navbar.scrolled .navbar-toggler {
    color: var(--light-color);
}

.navbar-toggler-icon {
    width: 24px;
    height: 17px;
    background-image: none;
    position: relative;
    border-bottom: 1px solid var(--text-light);
    transition: all 300ms linear;
}

.navbar-toggler-icon:after, 
.navbar-toggler-icon:before {
    width: 24px;
    position: absolute;
    height: 1px;
    background-color: var(--text-light);
    top: 0;
    left: 0;
    content: '';
    z-index: 2;
    transition: all 300ms linear;
}

.navbar-toggler-icon:after {
    top: 8px;
}

.navbar.scrolled .navbar-toggler-icon,
.navbar.scrolled .navbar-toggler-icon:after,
.navbar.scrolled .navbar-toggler-icon:before {
    background-color: var(--text-dark);
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    /* min-height: 70vh; */
    display: flex;
    align-items: center;
    background: #0d6efd;
    position: relative;
    overflow: hidden;
    padding: 100px 0;
}

.hero-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M50 50c0-5.523 4.477-10 10-10s10 4.477 10 10-4.477 10-10 10c0 5.523-4.477 10-10 10s-10-4.477-10-10 4.477-10 10-10zM10 10c0-5.523 4.477-10 10-10s10 4.477 10 10-4.477 10-10 10c0 5.523-4.477 10-10 10S0 25.523 0 20s4.477-10 10-10zm10 8c4.418 0 8-3.582 8-8s-3.582-8-8-8-8 3.582-8 8 3.582 8 8 8zm40 40c4.418 0 8-3.582 8-8s-3.582-8-8-8-8 3.582-8 8 3.582 8 8 8z' /%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: rgba(255, 255, 255, 0.15);
    color: white;
    border-radius: 30px;
    font-weight: 500;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(10px);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    color: white;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 2rem;
    color: rgba(255, 255, 255, 0.9);
}

.btn {
    padding: 0.8rem 1.8rem;
    border-radius: 30px;
    font-weight: 500;
    transition: var(--transition-normal);
}

.btn-primary {
    background-color: white;
    color: var(--primary-color);
    border: none;
}

.btn-primary:hover {
    background-color: var(--accent-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.btn-outline {
    background-color: transparent;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.5);
}

.btn-outline:hover {
    background-color: white;
    color: var(--primary-color);
    border-color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.btn-outline-primary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.video-container {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.video-container:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.1);
    z-index: 1;
    pointer-events: none;
}

.ratio {
    position: relative;
    width: 100%;
}

.ratio-16x9 {
    /* padding-top: 56.25%; */
}

.ratio > * {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Section Styling */
section {
    padding: 100px 0;
    position: relative;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 3rem;
    position: relative;
    display: inline-block;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 80px;
    height: 4px;
    background: var(--accent-color);
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 3rem;
    max-width: 700px;
}

.accent-bg {
    background-color: var(--light-bg);
}

.dark-bg {
    background-color: var(--dark-bg);
    color: var(--text-light);
}

/* Cards and Features */
.card {
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    transition: var(--transition-normal);
    overflow: hidden;
    height: 100%;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.feature-card {
    padding: 3rem 2rem;
    text-align: center;
    background-color: var(--card-bg);
}

.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    color: white;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.feature-icon:before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--accent-color), #FF9E80);
    opacity: 0;
    transition: var(--transition-normal);
    z-index: -1;
}

.feature-card:hover .feature-icon:before {
    opacity: 1;
}

.feature-title {
    font-weight: 700;
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

/* Demo Section - Large Column Layout */
.demo-section {
    background-color: #f9f9f9;
    padding-bottom: 80px;
}

/* Demo Type Selector */
.demo-selector {
    margin: 40px 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    border-radius: 10px;
    overflow: hidden;
}

.demo-type-tab {
    background-color: #f0f0f0;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    border-bottom: 3px solid transparent;
}

.demo-type-tab.active {
    background-color: white;
    color: var(--primary-color);
    border-bottom: 3px solid var(--primary-color);
}

.demo-type-tab:hover:not(.active) {
    background-color: #e8e8e8;
}

.demo-tag {
    position: absolute;
    top: 5px;
    right: 10px;
    background-color: var(--accent-color);
    color: white;
    font-size: 0.65rem;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 500;
}

/* Demo Content Areas */
.demo-content-area {
    margin-bottom: 30px;
}

.demo-tab-content {
    display: none;
    animation: fadeIn 0.5s ease;
}

.demo-tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}


.demo-info-card {
    background-color: white;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    margin-bottom: 30px;
}

.demo-info-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

/* Large Demo Cards for Column Layout */
.web-demos, .pano-demos {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.demo-card-large {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    background-color: white;
    position: relative;
    width: 100%;
    margin-bottom: 0;
    transition: all 0.3s ease;
}

.demo-card-large:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.demo-card-large .demo-preview {
    position: relative;
    width: 100%;
    overflow: hidden;
    aspect-ratio: 16 / 9; /* Maintain 16:9 aspect ratio */
    background-color: #f0f0f0;
}

.demo-card-large .demo-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.demo-card-large:hover .demo-preview img {
    transform: scale(1.03);
}

.demo-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.103);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.demo-card-large:hover .demo-overlay {
    background: rgba(0, 0, 0, 0.5);
    cursor: pointer;
}

.demo-play-button {
    width: 100px; /* Larger play button */
    height: 100px; /* Larger play button */
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2.5rem; /* Larger icon */
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.25);
    transition: all 0.3s ease;
    z-index: 2;
}

.demo-card-large:hover .demo-play-button {
    transform: scale(1.1);
    background-color: var(--accent-color);
}

.demo-label {
    position: absolute;
    top: 25px;
    right: 25px;
    background-color: var(--accent-color);
    color: white;
    padding: 8px 20px;
    border-radius: 30px;
    font-weight: 500;
    font-size: 1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.demo-iframe-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    z-index: 5;
    background-color: #000;
}

.demo-iframe-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
    position: absolute;
    top: 0;
    left: 0;
}

.demo-back-button {
    position: absolute;
    top: 20px;
    left: 20px;
    background-color: rgba(255, 255, 255, 0.9);
    color: var(--text-dark);
    border: none;
    border-radius: 30px;
    padding: 8px 18px;
    font-size: 1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    z-index: 6;
    cursor: pointer;
    transition: all 0.2s ease;
}

.demo-back-button:hover {
    background-color: white;
    transform: translateY(-2px);
}

.demo-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 5;
}

.demo-loading-text {
    margin-top: 15px;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

/* Usage Section */
.usage-section {
    background-color: white;
}

.usage-img {
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    overflow: hidden;
}

.usage-list {
    padding-left: 0;
    list-style: none;
}

.usage-list li {
    padding: 0.8rem 0;
    position: relative;
    padding-left: 2rem;
}

.usage-list li:before {
    content: '\f00c';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 0.8rem;
    color: var(--primary-color);
}

/* Contact Section */
.contact-section {
    background-color: var(--light-bg);
}

.contact-card {
    background-color: white;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    padding: 3rem;
}

.contact-icon {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-right: 0.5rem;
}

/* Footer */
.footer {
    background-color: var(--dark-bg);
    color: var(--text-light);
    padding: 5rem 0 2rem;
}

.footer-title {
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: white;
}

.footer-list {
    padding-left: 0;
    list-style: none;
}

.footer-list li {
    margin-bottom: 0.8rem;
}

.footer-list a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition-normal);
}

.footer-list a:hover {
    color: white;
    padding-left: 5px;
}

.copyright {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

/* Scroll to top button */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-normal);
    z-index: 99;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.scroll-top.active {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    background-color: var(--accent-color);
    transform: translateY(-5px);
}

/* Responsive Adjustments */
@media (max-width: 991.98px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .navbar-collapse {
        background-color: white;
        padding: 1rem;
        border-radius: var(--border-radius);
        box-shadow: var(--card-shadow);
        margin-top: 1rem;
    }
    
    .navbar-collapse .nav-link {
        color: var(--text-dark);
    }
}

@media (max-width: 767.98px) {
    section {
        padding: 70px 0;
    }
    .logo-img {
        height: 45px;
    }
    
    .navbar.scrolled .logo-img {
        height: 45px;
    }

    .hero-section {
        padding: 80px 0;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .feature-card {
        padding: 2rem 1.5rem;
    }
    
    .contact-card {
        padding: 2rem;
    }

    .demo-type-tab {
        padding: 15px 10px;
        font-size: 0.9rem;
    }
    
    .demo-play-button {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .demo-label {
        top: 10px;
        right: 10px;
        padding: 3px 10px;
        font-size: 0.8rem;
    }

    .navbar.scrolled .nav-link {
        color: var(--text-dark);
    }
    
    .demo-card {
        padding-bottom: 75%; /* More vertical space on mobile */
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .demo-type-tab {
        padding: 15px 10px;
        font-size: 0.9rem;
    }
    
    .demo-play-button {
        width: 70px;
        height: 70px;
        font-size: 1.8rem;
    }
    
    .demo-label {
        top: 15px;
        right: 15px;
        padding: 5px 15px;
        font-size: 0.9rem;
    }
    
    .demo-back-button {
        top: 15px;
        left: 15px;
        padding: 5px 15px;
        font-size: 0.9rem;
    }
}