/*
Theme Name: YENGJUAN Telescope
Theme URI: http://yengjuan.com
Author: YENGJUAN Team
Author URI: http://yengjuan.com
Description: Professional Astronomy Telescope Theme
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: yengjuan
*/

/* ========================================
   Reset & Base Styles
======================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2E86DE;
    --secondary-color: #1B4965;
    --accent-color: #00D9FF;
    --dark-bg: #0A1128;
    --light-bg: #F8F9FA;
    --text-dark: #1A1A1A;
    --text-light: #FFFFFF;
    --text-gray: #6C757D;
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-secondary: linear-gradient(135deg, #2E86DE 0%, #00D9FF 100%);
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.2);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--light-bg);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ========================================
   Header & Navigation
======================================== */

.main-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 17, 40, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
}

.main-header.scrolled {
    background: rgba(10, 17, 40, 0.98);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}

.navbar {
    padding: 15px 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h1 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-light);
    letter-spacing: 2px;
}

.logo span {
    font-size: 12px;
    color: var(--accent-color);
    letter-spacing: 3px;
    display: block;
    margin-top: -5px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-menu li a {
    color: var(--text-light);
    font-weight: 500;
    font-size: 15px;
    padding: 8px 16px;
    border-radius: 20px;
    position: relative;
}

.nav-menu li a:hover {
    color: var(--accent-color);
    background: rgba(0, 217, 255, 0.1);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-light);
    border-radius: 2px;
    transition: var(--transition);
}

/* ========================================
   Hero Section
======================================== */

.hero-section {
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    padding: 100px 0 50px;
    overflow: hidden;
    background: linear-gradient(135deg, #0A1128 0%, #1B4965 100%);
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
}

/* Animated Stars Background */
.stars, .stars2, .stars3 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
}

.stars {
    background-image: 
        radial-gradient(2px 2px at 20px 30px, #eee, transparent),
        radial-gradient(2px 2px at 60px 70px, #fff, transparent),
        radial-gradient(1px 1px at 50px 50px, #ddd, transparent),
        radial-gradient(1px 1px at 130px 80px, #fff, transparent),
        radial-gradient(2px 2px at 90px 10px, #fff, transparent);
    background-repeat: repeat;
    background-size: 200px 200px;
    animation: stars 20s linear infinite;
}

.stars2 {
    background-image: 
        radial-gradient(1px 1px at 10px 10px, #eee, transparent),
        radial-gradient(2px 2px at 150px 150px, #fff, transparent),
        radial-gradient(1px 1px at 60px 170px, #ddd, transparent);
    background-repeat: repeat;
    background-size: 250px 250px;
    animation: stars 30s linear infinite;
}

.stars3 {
    background-image: 
        radial-gradient(1px 1px at 75px 125px, #fff, transparent),
        radial-gradient(2px 2px at 100px 75px, #eee, transparent);
    background-repeat: repeat;
    background-size: 300px 300px;
    animation: stars 40s linear infinite;
}

@keyframes stars {
    from { transform: translateY(0); }
    to { transform: translateY(-300px); }
}

.hero-content-wrapper {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-badge {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(0, 217, 255, 0.2);
    border: 1px solid var(--accent-color);
    border-radius: 30px;
    color: var(--accent-color);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.hero-title {
    font-size: 56px;
    font-weight: 700;
    color: var(--text-light);
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 30px;
    line-height: 1.6;
}

.hero-features {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.hero-feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-light);
    font-size: 14px;
}

.feature-icon {
    font-size: 24px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.btn {
    padding: 14px 32px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: var(--gradient-secondary);
    color: var(--text-light);
    box-shadow: 0 4px 15px rgba(0, 217, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 217, 255, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--text-light);
    border: 2px solid var(--text-light);
}

.btn-secondary:hover {
    background: var(--text-light);
    color: var(--dark-bg);
}

.hero-product {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.product-glow {
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(0, 217, 255, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(40px);
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.floating-product {
    position: relative;
    max-width: 500px;
    animation: float 6s ease-in-out infinite;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.4));
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(2deg); }
}

.floating-planet {
    position: absolute;
    width: 150px;
    top: -50px;
    left: -80px;
    animation: orbit 20s linear infinite;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.3));
}

@keyframes orbit {
    0% { transform: rotate(0deg) translateX(100px) rotate(0deg); }
    100% { transform: rotate(360deg) translateX(100px) rotate(-360deg); }
}

.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.scroll-arrow {
    width: 2px;
    height: 40px;
    background: linear-gradient(to bottom, transparent, var(--accent-color));
    margin-top: 10px;
    animation: scrollArrow 2s ease-in-out infinite;
}

@keyframes scrollArrow {
    0%, 100% { opacity: 0; transform: translateY(0); }
    50% { opacity: 1; transform: translateY(10px); }
}

/* ========================================
   Section Headers
======================================== */

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-badge {
    display: inline-block;
    padding: 6px 18px;
    background: rgba(46, 134, 222, 0.1);
    border: 1px solid var(--primary-color);
    border-radius: 20px;
    color: var(--primary-color);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.section-title {
    font-size: 42px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.section-subtitle {
    font-size: 16px;
    color: var(--text-gray);
    max-width: 600px;
    margin: 0 auto;
}

/* ========================================
   Features Section
======================================== */

.features-section {
    padding: 100px 0;
    background: var(--light-bg);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.feature-card {
    background: white;
    padding: 40px 30px;
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-md);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    background: var(--gradient-secondary);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.feature-icon svg {
    width: 40px;
    height: 40px;
}

.feature-card h3 {
    font-size: 22px;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.feature-card p {
    color: var(--text-gray);
    line-height: 1.7;
}

/* ========================================
   Product Details Section
======================================== */

.product-details {
    padding: 100px 0;
    background: white;
}

.product-showcase {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.product-images {
    position: sticky;
    top: 100px;
}

.main-image {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 20px;
    background: #f8f9fa;
    box-shadow: var(--shadow-md);
}

.main-image img {
    width: 100%;
    transition: var(--transition);
}

.main-image:hover img {
    transform: scale(1.05);
}

.image-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.9);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: var(--primary-color);
}

.thumbnail-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.thumbnail {
    border-radius: 10px;
    cursor: pointer;
    border: 3px solid transparent;
    transition: var(--transition);
    overflow: hidden;
}

.thumbnail:hover,
.thumbnail.active {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-sm);
}

.product-specs h2 {
    font-size: 32px;
    margin-bottom: 30px;
    color: var(--text-dark);
}

.specs-table {
    background: #f8f9fa;
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
}

.spec-row {
    display: flex;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px solid #e9ecef;
}

.spec-row:last-child {
    border-bottom: none;
}

.spec-label {
    font-weight: 600;
    color: var(--text-dark);
}

.spec-value {
    color: var(--text-gray);
    text-align: right;
}

.price-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 0;
    border-top: 2px solid #e9ecef;
    border-bottom: 2px solid #e9ecef;
    margin-bottom: 20px;
}

.price-info {
    display: flex;
    flex-direction: column;
}

.price-label {
    font-size: 14px;
    color: var(--text-gray);
    margin-bottom: 5px;
}

.price {
    font-size: 36px;
    font-weight: 700;
    color: var(--primary-color);
}

.btn-buy {
    padding: 16px 40px;
    font-size: 16px;
}

.product-badges {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.badge {
    padding: 8px 16px;
    background: rgba(46, 134, 222, 0.1);
    color: var(--primary-color);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
}

/* ========================================
   Accessories Section
======================================== */

.accessories-section {
    padding: 100px 0;
    background: #f8f9fa;
}

.accessories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.accessory-item {
    background: white;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.accessory-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.accessory-image {
    width: 120px;
    height: 120px;
    margin: 0 auto 20px;
    background: #f8f9fa;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.accessory-image img {
    max-width: 80%;
    max-height: 80%;
}

.accessory-item h4 {
    font-size: 18px;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.accessory-item p {
    color: var(--text-gray);
    font-size: 14px;
    margin-bottom: 10px;
}

.accessory-spec {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(46, 134, 222, 0.1);
    color: var(--primary-color);
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

/* ========================================
   Use Cases Section
======================================== */

.usecases-section {
    padding: 100px 0;
    background: white;
}

.usecases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.usecase-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    height: 300px;
    cursor: pointer;
}

.usecase-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.usecase-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.8));
    display: flex;
    align-items: flex-end;
    padding: 30px;
    transition: var(--transition);
}

.usecase-card:hover img {
    transform: scale(1.1);
}

.usecase-card:hover .usecase-overlay {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.9));
}

.usecase-content {
    color: white;
    position: relative;
}

.usecase-content h3 {
    font-size: 24px;
    margin-bottom: 10px;
}

.usecase-content p {
    font-size: 14px;
    opacity: 0.9;
    line-height: 1.6;
}

.usecase-icon {
    font-size: 40px;
    position: absolute;
    top: -60px;
    right: 0;
    opacity: 0.3;
}

/* ========================================
   Package Section
======================================== */

.package-section {
    padding: 100px 0;
    background: #f8f9fa;
}

.package-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.package-image {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.package-list h3 {
    font-size: 28px;
    margin-bottom: 30px;
    color: var(--text-dark);
}

.checklist {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.checklist-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px;
    background: white;
    border-radius: 10px;
    transition: var(--transition);
}

.checklist-item:hover {
    transform: translateX(10px);
    box-shadow: var(--shadow-sm);
}

.check-icon {
    width: 24px;
    height: 24px;
    background: var(--gradient-secondary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}

/* ========================================
   Testimonials Section
======================================== */

.testimonials-section {
    padding: 100px 0;
    background: white;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background: #f8f9fa;
    padding: 35px;
    border-radius: 20px;
    position: relative;
    transition: var(--transition);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.rating {
    color: #FFC107;
    font-size: 20px;
    margin-bottom: 20px;
}

.testimonial-card p {
    color: var(--text-dark);
    line-height: 1.7;
    margin-bottom: 20px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    flex-direction: column;
}

.testimonial-author strong {
    color: var(--text-dark);
    margin-bottom: 5px;
}

.testimonial-author span {
    color: var(--text-gray);
    font-size: 14px;
}

/* ========================================
   Contact/CTA Section
======================================== */

.cta-section {
    padding: 100px 0;
    background: var(--gradient-primary);
}

.cta-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.cta-content {
    text-align: center;
    margin-bottom: 50px;
}

.cta-content h2 {
    font-size: 42px;
    color: white;
    margin-bottom: 20px;
}

.cta-content p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
}

.contact-form-wrapper {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 14px 18px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 15px;
    font-family: inherit;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(46, 134, 222, 0.1);
}

.btn-submit {
    width: 100%;
    margin-top: 10px;
}

/* ========================================
   Footer
======================================== */

.main-footer {
    background: var(--dark-bg);
    color: rgba(255, 255, 255, 0.8);
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    color: white;
    margin-bottom: 20px;
    font-size: 18px;
}

.footer-col p {
    line-height: 1.7;
    margin-bottom: 20px;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a:hover {
    color: var(--accent-color);
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-links a:hover {
    background: var(--accent-color);
    transform: translateY(-3px);
}

.social-links svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.contact-info li {
    margin-bottom: 15px;
    padding-left: 25px;
    position: relative;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a:hover {
    color: var(--accent-color);
}

/* ========================================
   Back to Top Button
======================================== */

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--gradient-secondary);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
}

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

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

/* ========================================
   Responsive Design
======================================== */

@media (max-width: 1024px) {
    .hero-content-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .hero-title {
        font-size: 42px;
    }
    
    .product-showcase {
        grid-template-columns: 1fr;
    }
    
    .package-content {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(10, 17, 40, 0.98);
        flex-direction: column;
        padding: 20px;
        gap: 10px;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
    }
    
    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .hero-title {
        font-size: 36px;
    }
    
    .section-title {
        font-size: 32px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .usecases-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 28px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .price {
        font-size: 28px;
    }
}