/* Front Page Styles (Home) */

/* Hero section */
.hero-section {
    color: #ffffff;
    padding: 8rem 2rem 4rem 2rem;
    text-align: center;
    position: relative;
    margin-top: -100px;
    padding-top: calc(8rem + 100px);
    border-bottom: 1px solid #e2e8f0;
    overflow: hidden;
}

.hero-background-slides {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
}

.hero-slide:nth-child(1) {
    opacity: 1;
    transform: scale(1.1);
}

@keyframes fadeAndZoomFirst {
    0% { transform: scale(1.1); opacity: 1; }
    23% { transform: scale(1.0); opacity: 1; }
    25% { opacity: 0; }
    100% { transform: scale(1.0); opacity: 0; }
}

@keyframes fadeAndZoom {
    0% { transform: scale(1.1); opacity: 0; }
    2% { opacity: 1; }
    23% { transform: scale(1.0); opacity: 1; }
    27% { opacity: 0; }
    100% { transform: scale(1.0); opacity: 0; }
}

.hero-slide:nth-child(1) { animation: fadeAndZoomFirst 16s infinite 0s ease-out; }
.hero-slide:nth-child(2) { animation: fadeAndZoom 16s infinite 3.5s ease-out; }
.hero-slide:nth-child(3) { animation: fadeAndZoom 16s infinite 7.5s ease-out; }
.hero-slide:nth-child(4) { animation: fadeAndZoom 16s infinite 11.5s ease-out; }

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.7) 0%, rgba(30, 41, 59, 0.6) 50%, rgba(15, 23, 42, 0.8) 100%);
    z-index: 2;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 3;
}

.hero-badge {
    display: inline-block;
    background: transparent;
    color: #ffffff;
    padding: 0.5rem 0;
    font-family: 'Inter', -apple-system, sans-serif;
    font-size: clamp(2.5rem, 8vw + 1rem, 5rem);
    font-weight: 900;
    margin-bottom: 1.5rem;
    letter-spacing: -0.04em;
    text-transform: none;
    line-height: 0.95;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.hero-title {
    font-size: clamp(0.875rem, 1.5vw + 0.25rem, 1.125rem);
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 2.5rem;
    color: #cbd5e1;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    line-height: 1.6;
    text-shadow: none;
    opacity: 0.8;
}

.title-part {
    display: inline-block;
    white-space: nowrap;
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 500;
}

.hero-subtitle {
    font-size: clamp(1rem, 1.5vw + 0.5rem, 1.25rem);
    color: #f1f5f9;
    margin-bottom: 2.25rem;
    font-weight: 500;
    line-height: 1.7;
    max-width: 580px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.95;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.hero-cta { 
    margin-bottom: 3rem;
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-button {
    display: inline-block;
    padding: 0.875rem 1.75rem;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 9999px;
    transition: all 0.2s ease;
}

.hero-button.primary {
    background: #ffffff;
    color: #0f172a;
    border: 1px solid #ffffff;
}

.hero-button.primary:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.2);
}

.hero-button.secondary {
    background: transparent;
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(4px);
    transition: all 0.3s ease;
}

.hero-button.secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: #ffffff;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

/* Apps Grid on Home */
.apps-section {
    padding: 6rem 0;
    background-color: #f8fafc;
}

.apps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.app-card {
    /* Extending component */
    height: 100%;
    display: flex;
    flex-direction: column;
}

.app-card-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.app-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.app-card:hover .app-card-image img { transform: none; }

.app-status {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: #10b981;
    color: #ffffff;
    padding: 0.375rem 1rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    backdrop-filter: blur(10px);
}

.app-status.planning {
    background: #f59e0b;
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.tech-tag {
    background: #f1f5f9;
    color: #475569;
    padding: 0.375rem 0.875rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.tech-tag:hover {
    background: #e2e8f0;
    color: #1e293b;
    transform: translateY(-1px);
}

.coming-soon-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(4, 48, 79, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.app-card-content {
    padding: 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.app-card h3 {
    color: #111827;
    font-size: 1.4rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.app-card p {
    color: #6b7280;
    margin-bottom: 1.5rem;
    line-height: 1.7;
    flex: 1;
}

.app-card-footer {
    margin-top: 1.5rem;
}

/* About section */
.about-section {
    padding: 6rem 0;
    background-color: #ffffff;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-lead {
    font-size: 1rem;
    color: #6b7280;
    margin-bottom: 2rem;
    font-weight: 500;
    line-height: 1.7;
}

.about-details {
    display: grid;
    gap: 1.5rem;
}

.about-item h3 {
    color: #111827;
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.about-item p {
    color: #6b7280;
    line-height: 1.7;
}

.about-image {
    border-radius: 16px;
    overflow: hidden;
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Features section */
.features-section {
    padding: 6rem 0;
    background-color: #f8fafc;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    background: #ffffff;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: none;
    transition: transform 0.2s ease, border-color 0.2s ease;
    border: 1px solid #e5e7eb;
}

.feature-card:hover { transform: translateY(-2px); border-color: #d1d5db; }

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    color: #111827;
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.feature-card p {
    color: #6b7280;
    line-height: 1.7;
}

/* Tech Stack section */
.tech-section {
    padding: 6rem 0;
    background-color: #ffffff;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.tech-card {
    background: #f8fafc;
    padding: 3rem 2rem;
    border-radius: 12px;
    border: 1px solid transparent;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.tech-card:hover {
    background: #ffffff;
    border-color: #e2e8f0;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.05);
}

.tech-card::before {
    display: none;
}

.tech-card:hover::before {
    display: none;
}

.tech-icon {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    display: inline-block;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.tech-card:hover .tech-icon {
    transform: scale(1.1);
}

.tech-card h3 {
    color: #1f2937;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.tech-card p {
    color: #6b7280;
    line-height: 1.7;
    font-size: 0.95rem;
}

/* Contact section */
.contact-section {
    padding: 5rem 0;
    background-color: #ffffff;
}

.contact-content h2 {
    font-size: 2.25rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
}

.contact-content p {
    font-size: 1.125rem;
    color: #6b7280;
    margin-bottom: 2.5rem;
    line-height: 1.7;
}

.contact-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.contact-button {
    display: inline-block;
    padding: 0.875rem 1.75rem;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    border-radius: 9999px;
    transition: all 0.2s ease;
}

.contact-button.primary {
    background: #0f172a;
    color: #ffffff;
    border: 1px solid #0f172a;
}

.contact-button.primary:hover {
    background: #1e293b;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.1);
}

.contact-button.secondary {
    background: rgba(255, 255, 255, 0.8);
    color: #475569;
    border: 1px solid #cbd5e1;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.1);
}

.contact-button.secondary:hover {
    background: rgba(255, 255, 255, 0.95);
    border-color: #94a3b8;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15);
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .apps-grid {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 6rem 1rem 4rem 1rem;
        margin-top: -80px;
        padding-top: calc(6rem + 80px);
    }
    
    /* Hero title font size is now handled by clamp() above */
    
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-button {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }
    
    .apps-grid {
        grid-template-columns: 1fr;
    }

    /* Tech Stack 2 columns on mobile */
    .tech-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .tech-card {
        padding: 2rem 1rem;
    }

    .tech-icon {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }

    .tech-card h3 {
        font-size: 1.1rem;
    }

    .tech-card p {
        font-size: 0.85rem;
        line-height: 1.5;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .about-content .about-image {
        order: -1;
    }
}
