/* Landing Page Styles */
:root {
    --primary-color: #007bff;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-accent: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --dark-bg: #1a1a1a;
    --light-text: #ffffff;
    --shadow-light: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 8px 15px rgba(0, 0, 0, 0.2);
    --shadow-heavy: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Navigation */
.navbar {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 1rem;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.4rem;
}

.navbar-brand .brand-icon {
    color: #007bff;
    margin-right: 8px;
}

/* Nav Links */
.navbar-nav .nav-link {
    color: #333 !important;
    font-weight: 500;
    padding: 12px 16px !important;
    border-radius: 8px;
    margin: 4px 0;
    transition: all 0.2s ease;
    text-align: center;
}

.navbar-nav .nav-link:hover {
    background: #f8f9fa;
    color: #007bff !important;
}

/* Buttons */
.navbar-nav .nav-link.btn-outline-primary {
    border: 2px solid #007bff;
    color: #007bff !important;
    font-weight: 600;
    margin: 8px 0;
}

.navbar-nav .nav-link.btn-outline-primary:hover {
    background: #007bff !important;
    color: white !important;
}

.navbar-nav .nav-link.btn-primary {
    background: #007bff !important;
    color: white !important;
    border: 2px solid #007bff;
    font-weight: 600;
    margin: 8px 0;
}

.navbar-nav .nav-link.btn-primary:hover {
    background: #0056b3 !important;
    border-color: #0056b3;
}

@media screen and (max-width: 992px) { 
    .navbar-toggler {
        order: 0;
    }
}

/* Desktop Styles */
@media (min-width: 992px) {
    .navbar-collapse {
        background: transparent;
        box-shadow: none;
        margin-top: 0;
        padding: 0;
        border-top: none;
    }
    
    .navbar-nav {
        align-items: center;
    }
    
    .navbar-nav .nav-link {
        margin: 0 8px;
        text-align: left;
    }
    
    .navbar-nav .nav-link.btn-outline-primary,
    .navbar-nav .nav-link.btn-primary {
        margin: 0 4px;
        padding: 8px 20px !important;
    }
}

/* Dark Mode */
.dark-mode .navbar {
    background: rgba(26, 26, 26, 0.95) !important;
}

.dark-mode .navbar-brand {
    color: #ffffff !important;
}

.dark-mode .navbar-collapse {
    background: #2d2d2d;
}

.dark-mode .navbar-nav .nav-link {
    color: #ffffff !important;
}

.dark-mode .navbar-nav .nav-link:hover {
    background: #404040;
    color: #007bff !important;
}

@media (min-width: 992px) {
    .dark-mode .navbar-collapse {
        background: transparent;
    }
}

#btnNavLogin:hover, #btnNavRegister:hover {
    color: white;
}
/* Hero Section */
.hero-section {
    min-height: 100vh;
    background: var(--gradient-primary);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(255,255,255,0.1) 2px, transparent 2px),
        radial-gradient(circle at 75% 75%, rgba(255,255,255,0.05) 1px, transparent 1px);
    background-size: 50px 50px, 30px 30px;
    animation: float 20s linear infinite;
}

@keyframes float {
    0% { transform: translateY(0px) translateX(0px); }
    33% { transform: translateY(-10px) translateX(5px); }
    66% { transform: translateY(5px) translateX(-5px); }
    100% { transform: translateY(0px) translateX(0px); }
}

.hero-content {
    position: relative;
    z-index: 2;
    color: white;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.gradient-text {
    background: linear-gradient(45deg, #fff, #f0f8ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.3rem;
    opacity: 0.9;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.hero-buttons {
    margin-bottom: 3rem;
}

.hero-btn {
    margin-right: 1rem;
    margin-bottom: 1rem;
    padding: 0.8rem 2rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-medium);
}

.hero-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-heavy);
}

.hero-stats {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: white;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Hero Visual */
.hero-visual {
    position: relative;
    z-index: 2;
}

.platform-preview {
    position: relative;
    animation: float-gentle 6s ease-in-out infinite;
}

@keyframes float-gentle {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.preview-window {
    background: white;
    border-radius: 20px;
    box-shadow: var(--shadow-heavy);
    overflow: hidden;
    transform: perspective(1000px) rotateY(-15deg) rotateX(10deg);
}

.window-controls {
    display: flex;
    gap: 8px;
    padding: 15px 20px;
    background: #f8f9fa;
}

.control {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.control.red { background: #ff5f56; }
.control.yellow { background: #ffbd2e; }
.control.green { background: #27ca3f; }

.preview-content {
    padding: 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.translation-demo {
    background: white;
    border-radius: 15px;
    padding: 25px;
}

.demo-card {
    text-align: center;
}

.demo-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
    color: var(--primary-color);
    font-weight: 600;
}

.demo-text {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.japanese-text {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
}

.arrow {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.english-text {
    font-size: 1.3rem;
    color: #666;
}

.demo-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.demo-actions span {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #888;
    font-size: 0.9rem;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.scroll-arrow {
    width: 24px;
    height: 24px;
    border: 2px solid white;
    border-top: none;
    border-left: none;
    transform: rotate(45deg);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0) rotate(45deg); }
    40% { transform: translateY(-10px) rotate(45deg); }
    60% { transform: translateY(-5px) rotate(45deg); }
}

/* Section Styles */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #333;
}

.section-subtitle {
    font-size: 1.1rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
}

/* Features Section */
.features-section {
    background: #f8f9fa;
}

.feature-card {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
    height: 100%;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-light);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-medium);
}

.feature-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: white;
}

.feature-card h4 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #333;
}

.feature-card p {
    color: #666;
    line-height: 1.6;
}

/* About Section */
.about-section {
    padding: 5rem 0;
}

.about-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #666;
    margin-bottom: 1.5rem;
}

.about-features {
    margin-top: 2rem;
}

.about-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1rem;
}

.about-feature i {
    color: var(--success-color);
    font-size: 1.2rem;
}

.about-visual {
    position: relative;
}

.about-card {
    background: var(--gradient-primary);
    border-radius: 20px;
    padding: 2rem;
    color: white;
    text-align: center;
    box-shadow: var(--shadow-medium);
}

.about-card .card-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.community-avatars {
    display: flex;
    justify-content: center;
    gap: -10px;
    margin-bottom: 1rem;
}

.avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4);
    border: 3px solid white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    margin-left: -10px;
}

.avatar.plus {
    background: rgba(255, 255, 255, 0.2);
    font-size: 1.5rem;
}

/* Stats Section */
.stats-section {
    background: #f8f9fa;
    color: black;
    display: block;
}

.stat-card {
    text-align: center;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.15);
}

.stat-card .stat-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.stat-card .stat-number {
    font-size: 3rem;
    font-weight: 800;
    color: black;
    display: block;
    margin-bottom: 0.5rem;
}

.stat-card .stat-label {
    font-size: 1rem;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* CTA Section */
.cta-section {
    background: var(--gradient-primary);
    color: white;
    text-align: center;
}

.cta-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    margin-bottom: 2rem;
}

.cta-btn {
    margin: 0.5rem;
    padding: 1rem 2rem;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-heavy);
}

.cta-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    opacity: 0.8;
    font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-stats {
        gap: 0.5rem;
        margin-bottom: 50px;
    }
    
    .stat-number {
        font-size: 2rem !important;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .demo-text {
        flex-direction: column;
        gap: 10px;
    }
    
    .arrow {
        transform: rotate(90deg);
    }
    
    .preview-window {
        transform: none;
    }
    
    .cta-title {
        font-size: 2rem;
    }

    .hero-section {
        padding-bottom: 40px;
        padding-top: 20px;
    }
}

@media (max-width: 576px) {
    .hero-btn {
        display: block;
        margin-bottom: 1rem;
    }
    
    .feature-card {
        padding: 1.5rem;
    }
    
    .about-card {
        padding: 1.5rem;
    }
    
    .stat-card {
        padding: 1.5rem;
    }
}

/* Dark Mode Support */
.dark-mode .landing-nav {
    background: rgba(26, 26, 26, 0.95);
}

.dark-mode .section-title {
    color: white;
}

.dark-mode .section-subtitle {
    color: #ccc;
}

.dark-mode .features-section {
    background: #222;
}

.dark-mode .feature-card {
    background: #333;
    color: white;
}

.dark-mode .feature-card h4 {
    color: white;
}

.dark-mode .feature-card p {
    color: #ccc;
}

.dark-mode .about-section {
    background: #1a1a1a;
}

.dark-mode .about-text {
    color: #ccc;
}

/* 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);
}

/* Contact Section */
.contact-section {
    background: #ffffff;
    color: #333;
    border-top: 1px solid #e9ecef;
}

.contact-section .section-title {
    color: #333;
}

.contact-section .section-subtitle {
    color: #666;
}

.contact-form-container {
    background: #f8f9fa;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid #e9ecef;
}

.contact-form .form-group label {
    color: #333;
    font-weight: 600;
    margin-bottom: 8px;
    display: block;
}

.contact-form .form-control {
    background: #ffffff;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 16px;
    color: #333;
    transition: all 0.3s ease;
}

.contact-form .form-control:focus {
    background: #ffffff;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
    outline: none;
}

.contact-form .form-control::placeholder {
    color: #999;
}

.contact-form textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

.contact-btn {
    background: linear-gradient(45deg, #007bff, #0056b3);
    border: none;
    border-radius: 50px;
    padding: 15px 40px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    color: white;
}

.contact-btn:hover {
    background: linear-gradient(45deg, #0056b3, #004085);
    box-shadow: 0 10px 25px rgba(0, 123, 255, 0.3);
}

.contact-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.contact-btn .btn-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Input validation states */
.contact-form .form-control.is-invalid {
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

.contact-form .form-control.is-valid {
    border-color: #28a745;
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.1);
}

/* Dark mode support for contact section */
.dark-mode .contact-section {
    background: #1a1a1a;
    color: #ffffff;
    border-top-color: #333;
}

.dark-mode .contact-section .section-title {
    color: #ffffff;
}

.dark-mode .contact-section .section-subtitle {
    color: #cccccc;
}

.dark-mode .contact-form-container {
    background: #2d2d2d;
    border-color: #444;
}

.dark-mode .contact-form .form-group label {
    color: #ffffff;
}

.dark-mode .contact-form .form-control {
    background: #3a3a3a;
    border-color: #555;
    color: #ffffff;
}

.dark-mode .contact-form .form-control:focus {
    background: #404040;
    border-color: #007bff;
}

.dark-mode .contact-form .form-control::placeholder {
    color: #999;
}

/* Responsive */
@media (max-width: 768px) {
    .contact-form-container {
        padding: 30px 20px;
    }
    
    .contact-btn {
        width: 100%;
        padding: 15px 20px;
    }
}

@media (max-width: 576px) {
    .contact-form-container {
        padding: 25px 15px;
    }
    
    .contact-form .form-control {
        font-size: 16px; /* Prevents zoom on iOS */
    }
}