/* MyCNGuide - Main Stylesheet */

/* CSS Variables */
:root {
    --primary-red: #D32F2F;
    --primary-gold: #FFD700;
    --dark-bg: #1a1a1a;
    --light-bg: #f8f9fa;
    --text-muted: #6c757d;
}

/* Base Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    scroll-padding-top: 70px;
}

/* Navbar Styles */
.navbar {
    padding: 15px 0;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    padding: 10px 0;
    background-color: rgba(255, 255, 255, 0.98) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-weight: bold;
    color: var(--primary-red) !important;
    font-size: 1.5rem;
}

.navbar-brand span {
    font-size: 0.5em;
    color: #333;
}

.nav-link {
    color: #333;
    font-weight: 500;
    margin-left: 15px;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-red);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-red);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 80%;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../images/china-city.jpg');
    background-size: cover;
    background-position: center;
    height: 80vh;
    min-height: 500px;
    color: white;
    display: flex;
    align-items: center;
    text-align: center;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    animation: fadeInUp 1s ease;
}

.hero p.lead {
    font-size: 1.3rem;
    margin-bottom: 30px;
    animation: fadeInUp 1s ease 0.2s both;
}

.hero .btn-main {
    animation: fadeInUp 1s ease 0.4s both;
}

/* Buttons */
.btn-main {
    background-color: var(--primary-red);
    color: white;
    padding: 12px 30px;
    border-radius: 30px;
    font-size: 1.2rem;
    border: none;
    transition: all 0.3s ease;
}

.btn-main:hover {
    background-color: #b71c1c;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(211, 47, 47, 0.4);
}

/* Section Titles */
.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
}

.section-title p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* Service Cards */
.service-card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
    overflow: hidden;
    background: white;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.card-icon {
    font-size: 3rem;
    color: var(--primary-red);
    margin-bottom: 15px;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #333;
}

.service-card p {
    color: var(--text-muted);
    line-height: 1.6;
}

.service-card a {
    color: var(--primary-red);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.service-card a:hover {
    color: #b71c1c;
}

/* Features Section */
.feature-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 20px;
}

.feature-item i {
    color: #28a745;
    font-size: 1.2rem;
    margin-right: 10px;
    margin-top: 3px;
}

/* Stats Section */
.stats-section {
    background: linear-gradient(rgba(211, 47, 47, 0.9), rgba(211, 47, 47, 0.9)), url('../images/stats-bg.jpg');
    background-size: cover;
    background-position: center;
    color: white;
}

.stat-item {
    text-align: center;
    padding: 20px;
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* CTA Section */
.cta-section {
    background-color: var(--primary-red);
    color: white;
    padding: 80px 0;
}

.cta-section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.cta-section .form-control {
    min-width: 300px;
    padding: 12px 20px;
    border-radius: 30px;
    border: none;
}

.cta-section .btn-light {
    border-radius: 30px;
    padding: 12px 30px;
    font-weight: 600;
}

.cta-section .btn-light:hover {
    background-color: var(--primary-red);
    color: white;
    border: 2px solid white;
}

/* Footer */
footer {
    background-color: var(--dark-bg);
    color: #aaa;
    padding: 60px 0 30px;
}

footer h5 {
    color: white;
    margin-bottom: 20px;
    font-weight: 600;
}

footer a {
    color: #aaa;
    text-decoration: none;
    transition: color 0.3s ease;
    display: block;
    margin-bottom: 10px;
}

footer a:hover {
    color: white;
}

footer .social-links a {
    display: inline-block;
    margin-right: 15px;
}

footer .social-links i {
    transition: transform 0.3s ease, color 0.3s ease;
}

footer .social-links a:hover i {
    transform: scale(1.2);
    color: var(--primary-red);
}

/* Page Header */
.page-header {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../images/china-city.jpg');
    background-size: cover;
    background-position: center;
    padding: 150px 0 80px;
    color: white;
    text-align: center;
}

.page-header h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.page-header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Content Sections */
.content-section {
    padding: 80px 0;
}

.content-section.alternating {
    background-color: var(--light-bg);
}

/* Info Cards */
.info-card {
    border: none;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.info-card .card-img-top {
    height: 200px;
    object-fit: cover;
}

.info-card .card-body {
    padding: 25px;
}

.info-card .card-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
}

.info-card .card-text {
    color: var(--text-muted);
    line-height: 1.7;
}

/* Step Process */
.step-process {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
}

.step-number {
    width: 50px;
    height: 50px;
    background-color: var(--primary-red);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    font-weight: 700;
    flex-shrink: 0;
    margin-right: 20px;
}

.step-content h4 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #333;
}

.step-content p {
    color: var(--text-muted);
    line-height: 1.6;
}

/* Accordion Customization */
.accordion-item {
    border: none;
    margin-bottom: 15px;
    border-radius: 10px !important;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.accordion-button {
    font-weight: 600;
    color: #333;
}

.accordion-button:not(.collapsed) {
    background-color: rgba(211, 47, 47, 0.1);
    color: var(--primary-red);
}

.accordion-button:focus {
    box-shadow: 0 0 0 0.25rem rgba(211, 47, 47, 0.25);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: var(--primary-red);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    border: none;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: #b71c1c;
    transform: translateY(-5px);
}

/* Responsive Adjustments */
@media (max-width: 992px) {
    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p.lead {
        font-size: 1.1rem;
    }

    .cta-section .form-control {
        min-width: 100%;
        margin-bottom: 15px;
    }

    .cta-section .btn-light {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .hero {
        height: 70vh;
        min-height: 400px;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .section-title h2 {
        font-size: 2rem;
    }

    .page-header h1 {
        font-size: 2.2rem;
    }

    .navbar-brand {
        font-size: 1.3rem;
    }
}

/* Loading Spinner */
.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--primary-red);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Utility Classes */
.text-primary-red {
    color: var(--primary-red) !important;
}

.bg-primary-red {
    background-color: var(--primary-red) !important;
}

.rounded-15 {
    border-radius: 15px !important;
}

.shadow-hover {
    transition: box-shadow 0.3s ease;
}

.shadow-hover:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
}
