/* Section-by-section scrolling */
html {
    scroll-behavior: smooth;
}

.section-container {
    height: 100vh;
    scroll-snap-align: start;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    max-height: 100vh;
    box-sizing: border-box;
    padding: 2rem;
}

.main-scroll-container {
    height: 100vh;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
    scroll-behavior: smooth;
    scroll-snap-stop: always;
    scroll-timeline-name: --sections;
}

/* Ensure proper scrolling on all devices */
@media (max-width: 768px) {
    .section-container {
        height: auto;
        min-height: 100vh;
        padding: 2rem 0;
    }
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.8) 0%, rgba(26, 26, 26, 0.8) 25%, rgba(64, 64, 64, 0.8) 50%, rgba(102, 102, 102, 0.8) 75%, rgba(153, 153, 153, 0.8) 100%), url("../img/ryoji-iwata-IBaVuZsJJTo-unsplash.c23808c03f5e.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
    text-align: center;
    padding: 2rem;
}
.hero-section .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100%;
    transform: translateY(-4vh);
}

.hero-logo {
    max-width: 500px;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
}

/* Scroll indicators */
.scroll-stack {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    z-index: 5;
}
.scroll-indicator,
.scroll-indicator-up {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.2s ease;
}
.scroll-indicator:hover,
.scroll-indicator-up:hover { opacity: 1; }
.scroll-indicator .chevron {
    width: 0; height: 0;
    border-left: 7px solid transparent;
    border-right: 7px solid transparent;
    border-top: 9px solid rgba(255,255,255,0.9);
    animation: bounce 1.4s ease-in-out infinite;
}
.scroll-indicator .chevron:nth-child(1) { animation-delay: 0s; }
.scroll-indicator .chevron:nth-child(2) { animation-delay: 0.15s; }
/* Dark text/arrow on light sections */
.stats-section .scroll-indicator,
.action-section .scroll-indicator,
.features-section .scroll-indicator,
.contact-section .scroll-indicator,
.stats-section .scroll-indicator-up,
.action-section .scroll-indicator-up,
.features-section .scroll-indicator-up,
.contact-section .scroll-indicator-up {
    color: rgba(0,0,0,0.6);
}
.stats-section .scroll-indicator .chevron,
.action-section .scroll-indicator .chevron,
.features-section .scroll-indicator .chevron,
.contact-section .scroll-indicator .chevron,
.stats-section .scroll-indicator-up .chevron-up,
.action-section .scroll-indicator-up .chevron-up,
.features-section .scroll-indicator-up .chevron-up,
.contact-section .scroll-indicator-up .chevron-up {
    border-top-color: rgba(0,0,0,0.7);
}

/* Up chevrons */
.scroll-indicator-up .chevron-up {
    width: 0; height: 0;
    border-left: 7px solid transparent;
    border-right: 7px solid transparent;
    border-bottom: 9px solid rgba(255,255,255,0.9);
    animation: bounce 1.4s ease-in-out infinite;
}
.scroll-indicator-up .chevron-up:nth-child(1) { animation-delay: 0s; }
.scroll-indicator-up .chevron-up:nth-child(2) { animation-delay: 0.15s; }
.stats-section .scroll-indicator-up .chevron-up,
.action-section .scroll-indicator-up .chevron-up,
.features-section .scroll-indicator-up .chevron-up {
    border-bottom-color: rgba(0,0,0,0.7);
}
@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(4px); }
}

.hero-search {
    width: 520px;
    max-width: 90vw;
    margin: 0 auto;
}
.hero-search .input-group { width: 100%; }
.hero-search .form-control { flex: 1 1 auto; }

.hero-search .form-control {
    border: none;
    border-radius: 25px 0 0 25px;
    padding: 12px 20px;
    font-size: 1rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.hero-search .btn {
    border-radius: 0 25px 25px 0;
    padding: 12px 25px;
    font-weight: 600;
    background: #ffc107;
    border: none;
    color: #333;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.hero-search .btn:hover {
    background: #e0a800;
    box-shadow: 0 6px 20px rgba(0,0,0,0.15);
}

/* Stats Section */
.stats-section {
    background: white;
    padding: 2rem;
    padding-top: 1rem;
    color: #333;
}

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

.stat-card {
    background: white;
    padding: 1.5rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e0e0e0;
}

.stat-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
    border-color: #ffc107;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: #ffc107;
    margin-bottom: 0.5rem;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s ease;
}

.stat-number.animate {
    opacity: 1;
    transform: translateY(0);
}

.stat-label {
    font-size: 1.1rem;
    color: #666;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.visualization-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.viz-card {
    background: white;
    border-radius: 15px;
    padding: 1rem;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    height: 300px;
    overflow: hidden;
    position: relative;
    border: 1px solid #e0e0e0;
    transition: all 0.3s ease;
}

.viz-card:hover {
    transform: translateY(-5px);
    border-color: #ffc107;
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.viz-card h3 {
    color: #333;
    margin-bottom: 1rem;
    text-align: center;
    font-size: 1.3rem;
}

.viz-preview {
    width: 100%;
    height: calc(100% - 50px);
    border-radius: 10px;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.viz-preview:hover {
    background: #e9ecef;
    transform: scale(1.02);
}

.viz-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

.viz-preview .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 10px;
}

.viz-preview:hover .overlay {
    opacity: 1;
}

.viz-preview .overlay-text {
    color: white;
    text-align: center;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 1rem 1rem 0.5rem 1rem;
    width: 100%;
}

.overlay-description {
    margin-top: 0.25rem;
    padding: 0 1rem 1rem 1rem;
    width: 100%;
}

.overlay-description p {
    color: white;
    font-size: 0.85rem;
    line-height: 1.4;
    margin: 0;
    text-align: center;
    opacity: 0.9;
}

/* Action Section */
.action-section {
    background: white;
    color: #333;
    text-align: center;
    padding: 2rem;
}

.action-title {
    font-size: 3rem;
    margin-bottom: 3rem;
    font-weight: 300;
    color: #333;
}

.action-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.action-btn {
    background: white;
    border: 1px solid #e0e0e0;
    color: #333;
    padding: 2rem;
    border-radius: 15px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 200px;
}

.action-btn:hover {
    background: white;
    border-color: #ffc107;
    transform: translateY(-5px);
    color: #333;
    text-decoration: none;
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.action-icon {
    font-size: 2.5rem;
    color: #ffc107;
    margin-bottom: 1rem;
}

.action-btn-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
    color: #333;
}

.action-btn-description {
    color: #666;
    line-height: 1.6;
    font-size: 0.9rem;
    margin: 0;
}

/* Features Section */
.features-section {
    background: white;
    padding: 2rem;
    color: #333;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    color: inherit;
    border: 1px solid #e0e0e0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
    border-color: #ffc107;
    text-decoration: none;
    color: inherit;
}

.feature-icon {
    font-size: 2.5rem;
    color: #ffc107;
    margin-bottom: 0.8rem;
}

.feature-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
    color: #333;
}

.feature-description {
    color: #666;
    line-height: 1.6;
}

/* Contact Section */
.contact-section {
    background: linear-gradient(135deg, #000000 0%, #1a1a1a 25%, #404040 50%, #666666 75%, #999999 100%);
    color: #333;
    text-align: center;
    padding: 2rem;
}

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

.contact-item {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.contact-item:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: #ffc107;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.4);
}

.contact-icon {
    font-size: 2rem;
    color: #ffc107;
    margin-bottom: 1rem;
}

.contact-details h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: white;
    font-weight: 600;
}

.contact-details p {
    color: white;
    line-height: 1.5;
    margin: 0;
    font-size: 0.9rem;
}

.contact-details a {
    color: #ffc107;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-details a:hover {
    color: #ffdb4d;
    text-decoration: none;
}

/* Privacy Section */
.privacy-section {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
}

.privacy-text {
    text-align: center;
    margin: 0;
}

.privacy-text a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.privacy-text a:hover {
    color: white;
    text-decoration: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .visualization-container {
        grid-template-columns: 1fr;
    }
    .features-grid {
        grid-template-columns: 1fr;
    }
    .action-buttons {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .action-btn {
        min-height: 180px;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    .hero-logo {
        max-width: 200px;
    }
    .action-title {
        font-size: 2rem;
    }
}


