/* Japanese Dictionary Page Specific Styles */

/* General Enhancements */
body {
    background-color: #ffffff;
    color: #333333;
    font-family: 'Roboto', sans-serif;
}

h2 {
    color: #24a228;
    font-size: 32px;
    margin-bottom: 20px;
    text-align: center;
}

h3 {
    color: #333333;
    font-size: 22px;
    margin-bottom: 10px;
}

p {
    color: #555555;
    font-size: 16px;
    line-height: 1.6;
}

/* Hero Section */
.hero {
    position: relative;
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    margin-top: 60px; /* Adjust for fixed navbar */
}

.hero-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 40px;
    z-index: 3;
    position: relative;
}

.screenshots-hero {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    width: 50%;
}

.screenshots-hero .screenshot-item img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.screenshots-hero .screenshot-item img:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.download-hero {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 30%;
}

.download-hero .btn-secondary {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #24a228;
    color: #ffffff;
    padding: 15px 30px;
    text-decoration: none;
    font-size: 18px;
    border-radius: 5px;
    transition: background-color 0.3s ease, transform 0.3s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.download-hero .btn-secondary:hover {
    background-color: #1e8b1e;
    transform: scale(1.05);
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.download-hero .btn-secondary i {
    font-size: 20px;
    margin-right: 10px;
}

/* Hero Video Overlay */
.hero-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(36, 162, 40, 0.4); /* Semi-transparent overlay */
    z-index: 2;
}

/* Hero Background Video */
.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.hero-image video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* TikTok Videos Section */
.tiktok-videos {
    padding: 60px 0;
    background-color: #f9f9f9;
}

.tiktok-videos h2 {
    color: #24a228;
    margin-bottom: 40px;
    font-size: 32px;
    text-align: center;
}

.tiktok-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    justify-items: center;
    padding: 0 20px;
}

.tiktok-video {
    width: 100%;
    max-width: 605px;
}

/* Features Section */
.features {
    background-color: #ffffff;
}

.features h2 {
    color: #24a228;
    margin-bottom: 40px;
    font-size: 32px;
    text-align: center;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    padding: 0 20px;
}

.feature-card {
    background: #f4f4f4;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.feature-card i {
    font-size: 40px;
    color: #24a228;
    margin-bottom: 15px;
}

.feature-card h3 {
    font-size: 22px;
    margin-bottom: 10px;
    color: #333333;
}

.feature-card p {
    font-size: 16px;
    color: #555555;
}

/* Screenshots Section */
.screenshots {
    background-color: #ffffff;
}

.screenshots h2 {
    color: #24a228;
    margin-bottom: 40px;
    font-size: 32px;
    text-align: center;
}

.screenshots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    padding: 0 20px;
}

.screenshot img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.screenshot img:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Testimonials Section */
.testimonials {
    background-color: #f9f9f9;
}

.testimonials h2 {
    color: #24a228;
    margin-bottom: 40px;
    font-size: 32px;
    text-align: center;
}

.testimonials-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.testimonial {
    background: #ffffff;
    padding: 20px;
    border-radius: 10px;
    font-style: italic;
    position: relative;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.testimonial:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.testimonial::before {
    content: '"';
    font-size: 40px;
    position: absolute;
    top: -10px;
    left: 20px;
    color: #24a228;
}

.testimonial h4 {
    text-align: right;
    margin-top: 15px;
    font-size: 18px;
    color: #24a228;
}

/* Download Section */
.download {
    background-color: #ffffff;
}

.download h2 {
    color: #24a228;
    margin-bottom: 40px;
    font-size: 32px;
    text-align: center;
}

.download-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding: 0 20px;
}

.download-buttons a {
    background-color: #24a228;
    color: #ffffff;
    padding: 15px 30px;
    text-decoration: none;
    font-size: 18px;
    border-radius: 5px;
    transition: background-color 0.3s ease, transform 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.download-buttons a:hover {
    background-color: #1e8b1e;
    transform: scale(1.05);
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.download-buttons i {
    font-size: 20px;
}

/* Footer Styles */
.footer {
    background-color: #333333;
    color: #ffffff;
    padding: 20px 0;
    text-align: center;
}

.footer p {
    margin-bottom: 10px;
    font-size: 16px;
}

.footer .social-links a {
    color: #ffffff;
    margin: 0 10px;
    text-decoration: none;
    transition: color 0.3s ease;
    font-size: 18px;
}

.footer .social-links a:hover {
    color: #24a228;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero-container {
        position: relative;
        flex-direction: column;
        gap: 30px;
    }

    .screenshots-hero {
        width: 100%;
    }

    .download-hero {
        position: absolute;
        top: 30vh;
        right: 0px;
        width: 100%;
        flex-direction: column;
        justify-content: center;
        gap: 15px;
    }

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

    .download-buttons a {
        width: 80%;
        justify-content: center;
    }
}
