/* =============================================
   Zhiying Capital - Responsive Stylesheet
   Dark Theme with Gradient Effects
   ============================================= */

/* Large Screens (>1200px) */
@media screen and (min-width: 1201px) {
    .container {
        max-width: 1280px;
    }
}

/* Laptop & Small Screens (1025px - 1200px) */
@media screen and (max-width: 1200px) {
    .hero-title {
        font-size: 46px;
    }

    .services-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 25px;
    }

    .service-card {
        padding: 30px;
    }
}

/* Tablet Devices (769px - 1024px) */
@media screen and (max-width: 1024px) {
    /* Navigation */
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 85%;
        max-width: 400px;
        height: 100vh;
        background: linear-gradient(180deg, #0f1c2e 0%, #0a1628 100%);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 100px 40px 40px;
        gap: 0;
        box-shadow: -10px 0 50px rgba(0, 0, 0, 0.5);
        transition: var(--transition);
        z-index: 999;
        border-left: 1px solid rgba(102, 126, 234, 0.2);
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-item {
        border-bottom: 1px solid rgba(102, 126, 234, 0.1);
    }

    .nav-item a {
        display: block;
        padding: 22px 0;
        font-size: 18px;
        color: var(--text-primary);
    }

    .nav-actions {
        display: none;
    }

    .hamburger {
        display: flex;
        z-index: 1001;
    }

    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    /* Hero Section */
    .hero {
        min-height: auto;
        padding: 100px 0;
    }

    .hero-title {
        font-size: 42px;
    }

    .hero-subtitle {
        font-size: 20px;
    }

    .hero-description {
        font-size: 17px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero-stats {
        gap: 40px;
    }

    /* Services Grid */
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* US Stocks Section */
    .us-stocks-content {
        grid-template-columns: 1fr;
        gap: 45px;
    }

    .stocks-info {
        grid-template-columns: 1fr 1fr;
    }

    /* Trading Hours */
    .hours-timeline {
        grid-template-columns: 1fr;
    }

    /* About Section */
    .about-content {
        grid-template-columns: 1fr;
        gap: 45px;
    }

    .about-text .section-title {
        text-align: center;
    }

    .about-features {
        align-items: center;
    }

    /* Contact Section */
    .contact-content {
        grid-template-columns: 1fr;
        gap: 45px;
    }

    /* Footer */
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 35px;
    }

    .footer-section:first-child {
        grid-column: span 2;
    }
}

/* Large Phones (481px - 768px) */
@media screen and (max-width: 768px) {
    /* Navigation */
    .navbar {
        padding: 12px 0;
    }

    .logo-icon {
        width: 42px;
        height: 42px;
        font-size: 20px;
    }

    .logo-text {
        font-size: 22px;
    }

    /* Hero Section */
    .hero {
        padding: 80px 0;
        min-height: auto;
    }

    .hero-title {
        font-size: 34px;
        line-height: 1.25;
    }

    .hero-subtitle {
        font-size: 18px;
    }

    .hero-description {
        font-size: 16px;
    }

    .hero-buttons {
        width: 100%;
    }

    .hero-buttons .btn {
        width: 100%;
    }

    .hero-stats {
        width: 100%;
        justify-content: space-between;
    }

    .stat-item {
        text-align: center;
    }

    .stat-number {
        font-size: 30px;
    }

    .stat-label {
        font-size: 11px;
    }

    /* Section Headers */
    .section-title {
        font-size: 30px;
    }

    .section-subtitle {
        font-size: 16px;
    }

    /* Services Section */
    .services {
        padding: 70px 0;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .service-card {
        padding: 28px;
    }

    .service-icon {
        width: 64px;
        height: 64px;
    }

    .service-icon svg {
        width: 34px;
        height: 34px;
    }

    .service-title {
        font-size: 20px;
    }

    /* US Stocks Section */
    .us-stocks {
        padding: 70px 0;
    }

    .stocks-info {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .market-features h3 {
        font-size: 24px;
        margin-bottom: 22px;
    }

    .exchange-item {
        flex-direction: column;
        text-align: center;
        gap: 16px;
        padding: 22px 18px;
    }

    /* Trading Hours */
    .trading-hours {
        padding: 70px 0;
    }

    .time-block {
        padding: 28px 22px;
    }

    .time-label {
        font-size: 20px;
    }

    .time-range {
        font-size: 14px;
        padding: 6px 14px;
    }

    /* About Section */
    .about {
        padding: 70px 0;
    }

    .about-stats {
        grid-template-columns: 1fr 1fr;
        gap: 18px;
    }

    .stat-box {
        padding: 24px 18px;
    }

    .stat-value {
        font-size: 26px;
    }

    /* Risk Disclosure */
    .risk-content {
        padding: 22px;
    }

    .risk-content h3 {
        font-size: 16px;
    }

    .risk-content p {
        font-size: 13px;
    }

    /* Contact Section */
    .contact {
        padding: 70px 0;
    }

    .contact-item {
        flex-direction: row;
        align-items: center;
        padding: 18px;
        gap: 16px;
    }

    .contact-icon {
        width: 48px;
        height: 48px;
        font-size: 24px;
    }

    .contact-details h4 {
        font-size: 16px;
    }

    .contact-details p {
        font-size: 13px;
    }

    .contact-form-wrapper {
        padding: 28px 22px;
    }

    .form-group input,
    .form-group textarea {
        padding: 14px 18px;
        font-size: 16px;
    }

    /* Footer */
    .footer {
        padding: 60px 0 30px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .footer-section:first-child {
        grid-column: span 1;
    }

    .footer-section h4 {
        margin-bottom: 18px;
    }

    .footer-bottom {
        padding-top: 30px;
    }
}

/* Small Phones (≤480px) */
@media screen and (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    /* Hero Section */
    .hero {
        padding: 60px 0;
    }

    .hero-title {
        font-size: 30px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .hero-description {
        font-size: 15px;
        margin-bottom: 28px;
    }

    .btn {
        padding: 14px 22px;
        font-size: 14px;
    }

    .btn-lg {
        padding: 16px 28px;
        font-size: 15px;
    }

    .hero-stats {
        flex-direction: column;
        gap: 24px;
    }

    .stat-number {
        font-size: 28px;
    }

    /* Section Headers */
    .section-title {
        font-size: 26px;
        margin-bottom: 12px;
    }

    .section-subtitle {
        font-size: 14px;
    }

    .section-header {
        margin-bottom: 40px;
    }

    /* Services Section */
    .services {
        padding: 60px 0;
    }

    .service-card {
        padding: 24px;
    }

    .service-icon {
        width: 56px;
        height: 56px;
        margin-bottom: 20px;
    }

    .service-icon svg {
        width: 30px;
        height: 30px;
    }

    .service-title {
        font-size: 19px;
    }

    .service-description {
        font-size: 14px;
    }

    .service-features li {
        font-size: 13px;
    }

    .service-link {
        font-size: 14px;
    }

    /* US Stocks Section */
    .us-stocks {
        padding: 60px 0;
    }

    .info-card {
        padding: 22px 18px;
    }

    .info-icon {
        font-size: 32px;
        margin-bottom: 14px;
    }

    .info-card h3 {
        font-size: 17px;
    }

    .info-card p {
        font-size: 13px;
    }

    /* Trading Hours */
    .trading-hours {
        padding: 60px 0;
    }

    .time-block {
        padding: 24px 18px;
    }

    .time-header {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }

    .time-label {
        font-size: 18px;
    }

    .time-description p {
        font-size: 14px;
    }

    .hours-note {
        font-size: 12px;
        padding: 18px;
    }

    /* About Section */
    .about {
        padding: 60px 0;
    }

    .about-description {
        font-size: 15px;
    }

    .feature-item {
        font-size: 14px;
        padding: 12px 16px;
    }

    .stat-box {
        padding: 20px 16px;
    }

    .stat-value {
        font-size: 24px;
    }

    .stat-label {
        font-size: 12px;
    }

    /* Risk Disclosure */
    .risk-content h3 {
        font-size: 15px;
    }

    .risk-content p {
        font-size: 12px;
    }

    /* Contact Section */
    .contact {
        padding: 60px 0;
    }

    .contact-item {
        padding: 14px;
        gap: 14px;
    }

    .contact-icon {
        width: 44px;
        height: 44px;
        font-size: 22px;
    }

    .contact-details h4 {
        font-size: 15px;
        margin-bottom: 6px;
    }

    .contact-details p {
        font-size: 12px;
    }

    .contact-form-wrapper h3 {
        font-size: 22px;
        margin-bottom: 24px;
    }

    .contact-form {
        gap: 18px;
    }

    .form-group textarea {
        min-height: 110px;
    }

    /* Footer */
    .footer {
        padding: 50px 0 25px;
    }

    .footer-logo .logo-icon {
        width: 44px;
        height: 44px;
        font-size: 20px;
    }

    .footer-logo .logo-text {
        font-size: 22px;
    }

    .footer-description {
        font-size: 13px;
    }

    .footer-section h4 {
        font-size: 17px;
    }

    .footer-links li a {
        font-size: 13px;
    }

    .footer-bottom p {
        font-size: 12px;
    }

    .sec-info {
        font-size: 11px;
    }
}

/* iPhone X / Notch Display */
@media screen and (max-width: 375px) {
    .nav-menu {
        width: 88%;
        padding: 90px 28px 35px;
    }

    .nav-item a {
        font-size: 17px;
        padding: 20px 0;
    }

    .hero-title {
        font-size: 28px;
    }

    .btn {
        padding: 13px 20px;
    }
}

/* Landscape Mode */
@media screen and (max-height: 500px) and (orientation: landscape) {
    .hero {
        padding: 50px 0;
        min-height: auto;
    }

    .hero-title {
        font-size: 32px;
    }

    .hero-description {
        margin-bottom: 24px;
    }

    .hero-stats {
        flex-direction: row;
        gap: 35px;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #8b9ff0;
        --text-primary: #ffffff;
        --text-secondary: #e2e8f0;
        --bg-dark: #000000;
    }

    .service-card,
    .info-card,
    .exchange-item,
    .contact-item,
    .time-block,
    .stat-box {
        border: 2px solid var(--text-primary);
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }

    html {
        scroll-behavior: auto;
    }
}

/* Print Styles */
@media print {
    .header,
    .hamburger,
    .nav-actions,
    .hero-buttons,
    .contact-form-wrapper,
    .footer {
        display: none;
    }

    .hero {
        min-height: auto;
        background: white !important;
    }

    .hero-content {
        max-width: 100%;
    }

    .section-title {
        color: #000;
    }

    body {
        background: white;
        color: #000;
    }

    a {
        text-decoration: underline;
    }

    a[href^="http"]::after {
        content: " (" attr(href) ")";
        font-size: 12px;
        color: #666;
    }
}

/* =============================================
   Image Carousel Responsive Styles - Background Version
   ============================================= */

/* Tablet Devices */
@media screen and (max-width: 1024px) {
    .carousel-background .carousel-control {
        width: 46px;
        height: 46px;
    }
    
    .carousel-background .carousel-control svg {
        width: 22px;
        height: 22px;
    }
    
    .carousel-background .carousel-indicators {
        bottom: 24px;
    }
}

/* Large Phones */
@media screen and (max-width: 768px) {
    .carousel-background .carousel-control {
        width: 42px;
        height: 42px;
        padding: 8px;
    }
    
    .carousel-background .carousel-control svg {
        width: 20px;
        height: 20px;
    }
    
    .carousel-background .carousel-indicators {
        bottom: 20px;
        gap: 10px;
    }
    
    .carousel-background .indicator {
        width: 10px;
        height: 10px;
    }
}

/* Small Phones */
@media screen and (max-width: 480px) {
    .carousel-background .carousel-control {
        width: 38px;
        height: 38px;
        padding: 6px;
    }
    
    .carousel-background .carousel-control svg {
        width: 18px;
        height: 18px;
    }
    
    .carousel-background .carousel-indicators {
        bottom: 16px;
        gap: 8px;
    }
    
    .carousel-background .indicator {
        width: 9px;
        height: 9px;
    }
}

/* iPhone X / Notch Display */
@media screen and (max-width: 375px) {
    .carousel-background .carousel-control {
        width: 36px;
        height: 36px;
    }
    
    .carousel-background .carousel-indicators {
        bottom: 14px;
    }
    
    .carousel-background .indicator {
        width: 8px;
        height: 8px;
    }
}

/* Landscape Mode */
@media screen and (max-height: 500px) and (orientation: landscape) {
    .carousel-background .carousel-control {
        width: 32px;
        height: 32px;
        padding: 6px;
    }
    
    .carousel-background .carousel-control svg {
        width: 16px;
        height: 16px;
    }
    
    .carousel-background .carousel-indicators {
        bottom: 10px;
        gap: 6px;
    }
    
    .carousel-background .indicator {
        width: 8px;
        height: 8px;
    }
}
