/* NeKoMa Website - Responsive Styles */

/* Tablet Styles */
@media (max-width: 1024px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    
    .hero-title h1 {
        font-size: 3rem;
    }
    
    .hero-left h2 {
        font-size: 1.8rem;
    }
    
    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* Mobile Styles */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 2rem;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }
    
    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .nav-toggle.active span:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }
    
    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active span:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }
    
    .hero-section {
        padding-top: 100px;
        min-height: auto;
        padding-bottom: 4rem;
    }
    
    .hero-title {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-title h1 {
        font-size: 2.5rem;
    }
    
    .hero-left h2 {
        font-size: 1.5rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .lamp-stack-info {
        flex-direction: column;
        text-align: center;
    }
    
    .lamp-icon {
        margin-right: 0;
        margin-bottom: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    .feature-tags {
        justify-content: center;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .stat-item {
        flex-direction: column;
        text-align: center;
    }
    
    .stat-icon {
        margin-right: 0;
        margin-bottom: 1rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .additional-features-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
    
    .type-icons {
        gap: 2rem;
    }
    
    .prediction-steps {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .highlight-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .technical-highlight {
        padding: 2rem;
    }
    
    .download-header h2 {
        font-size: 2rem;
    }
    
    .download-options {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .installation-guide {
        padding: 1.5rem;
    }
    
    .step {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .step-number {
        margin-bottom: 0.5rem;
        margin-right: 0;
    }
    
    .requirements {
        flex-direction: column;
        align-items: center;
    }
    
    .requirement-tag {
        width: 100%;
        max-width: 200px;
        justify-content: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

/* Small Mobile Styles */
@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }
    
    .hero-title h1 {
        font-size: 2rem;
    }
    
    .title-icon {
        font-size: 2rem;
    }
    
    .hero-left h2 {
        font-size: 1.3rem;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
    }
    
    .download-header h2 {
        font-size: 1.8rem;
    }
    
    .feature-card,
    .step-card,
    .technical-highlight {
        padding: 1.5rem;
    }
    
    .download-card {
        padding: 1.5rem;
    }
    
    .installation-guide {
        padding: 1rem;
    }
    
    .footer {
        padding: 2rem 0 1rem;
    }
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.6s ease;
}

.slide-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.6s ease;
}

.slide-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.scale-in {
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.6s ease;
}

.scale-in.visible {
    opacity: 1;
    transform: scale(1);
}

/* Smooth scrolling for older browsers */
@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .hero-section {
        background: #000;
        color: #fff;
    }
    
    .btn-primary {
        background: #fff;
        color: #000;
        border: 2px solid #000;
    }
    
    .feature-card {
        border: 2px solid #000;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* Print styles */
@media print {
    .navbar,
    .nav-toggle,
    .hero-buttons,
    .download-section {
        display: none;
    }
    
    .hero-section {
        background: none;
        color: #000;
        min-height: auto;
    }
    
    .feature-card,
    .step-card {
        break-inside: avoid;
    }
    
    a {
        color: #000;
        text-decoration: underline;
    }
    
    .footer {
        background: none;
        color: #000;
    }
}

