/* 
 * JWCH.CC - TikTok-style Tech Website 
 * Main Stylesheet
 */

/* ===== Base Styles ===== */
:root {
    --primary-color: #FF0050;
    --secondary-color: #00F2EA;
    --dark-bg: #121212;
    --darker-bg: #0A0A0A;
    --light-text: #FFFFFF;
    --gray-text: #AAAAAA;
    --gradient-primary: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

body {
    font-family: 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', Arial, sans-serif;
    background-color: var(--dark-bg);
    color: var(--light-text);
    overflow-x: hidden;
    margin: 0;
    position: relative;
}

/* ===== Custom Scrollbar ===== */
::-webkit-scrollbar {
    width: 8px;
    background-color: var(--darker-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-primary);
    border-radius: 10px;
}

/* ===== Typography ===== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ===== Header & Navigation ===== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.navbar {
    padding: 15px 0;
    transition: all 0.3s ease;
}

.navbar-scrolled {
    padding: 8px 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.navbar-dark {
    background-color: transparent;
}

.navbar-brand {
    display: flex;
    align-items: center;
}

.brand-text {
    font-size: 1.8rem;
    font-weight: 900;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 1px;
}

.nav-item {
    margin: 0 5px;
}

.nav-link {
    color: var(--light-text) !important;
    font-weight: 500;
    padding: 8px 15px !important;
    border-radius: 20px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover, .nav-link.active {
    background: rgba(255, 255, 255, 0.1);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 15%;
    width: 70%;
    height: 2px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.nav-link:hover::after, .nav-link.active::after {
    transform: scaleX(1);
}

.dropdown-menu {
    background-color: rgba(25, 25, 25, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    margin-top: 10px;
    overflow: hidden;
}

.dropdown-item {
    color: var(--light-text);
    padding: 10px 20px;
    transition: all 0.3s ease;
}

.dropdown-item:hover {
    background: linear-gradient(90deg, rgba(255, 0, 80, 0.2), rgba(0, 242, 234, 0.2));
    color: var(--light-text);
    transform: translateX(5px);
}

/* ===== Buttons ===== */
.btn {
    border-radius: 30px;
    padding: 10px 25px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    z-index: -1;
    transition: transform 0.3s ease;
    transform: scaleX(0);
    transform-origin: right;
}

.btn:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

.btn-primary {
    background: var(--primary-color);
    border: none;
}

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline-primary:hover {
    background: transparent;
    color: var(--light-text);
}

.btn-outline-light {
    border: 2px solid rgba(255, 255, 255, 0.6);
    color: var(--light-text);
}

.btn-outline-light:hover {
    background: transparent;
    border-color: var(--light-text);
}

/* ===== Cards & Sections ===== */
.section {
    padding: 100px 0;
    position: relative;
}

.section-title {
    margin-bottom: 60px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 0;
    width: 80px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.card {
    background-color: rgba(30, 30, 30, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

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

/* ===== Footer ===== */
.site-footer {
    background-color: var(--darker-bg);
    padding: 80px 0 40px;
    position: relative;
    overflow: hidden;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--gradient-primary);
}

.site-footer h5 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
    padding-bottom: 10px;
}

.site-footer h5::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 1.5px;
}

.site-footer p {
    color: var(--gray-text);
    margin-bottom: 15px;
}

.site-footer p i {
    margin-right: 10px;
    color: var(--secondary-color);
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: var(--light-text);
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background: var(--gradient-primary);
    transform: translateY(-5px);
}

.copyright {
    color: var(--gray-text);
    font-size: 0.9rem;
}

/* ===== Responsive Adjustments ===== */
@media (max-width: 991px) {
    .navbar-collapse {
        background-color: rgba(10, 10, 10, 0.95);
        border-radius: 10px;
        padding: 20px;
        margin-top: 15px;
    }
    
    .nav-link::after {
        display: none;
    }
}

@media (max-width: 767px) {
    .section {
        padding: 70px 0;
    }
    
    .section-title {
        margin-bottom: 40px;
    }
    
    .site-footer {
        padding: 60px 0 30px;
    }
}

/* ===== Animations & Effects ===== */
.hover-float {
    transition: transform 0.3s ease;
}

.hover-float:hover {
    transform: translateY(-10px);
}

.hover-glow:hover {
    box-shadow: 0 0 20px rgba(0, 242, 234, 0.5);
}

/* ===== Special Elements ===== */
.tech-bg-dots {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.5;
    z-index: -1;
}

.glow-effect {
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    z-index: -1;
}

.glow-primary {
    background: var(--primary-color);
}

.glow-secondary {
    background: var(--secondary-color);
}

/* Helps with potential layout issues */
.main-content {
    position: relative;
    z-index: 1;
}

/* Policy Pages Styling */
.page-header {
    background-color: #0a1626;
    color: white;
    padding: 100px 0;
    margin-bottom: 3px;
    margin-top: 30px;
}

.page-header h1 {
    font-weight: 600;
    margin: 0;
}

.content-section {
    padding: 40px 0 60px;
    background:#666666;
}

.policy-content {
    line-height: 1.7;
}

.policy-content h2 {
    margin-top: 30px;
    margin-bottom: 15px;
    color: #fff;
    font-size: 1.5rem;
}

.policy-content ul {
    margin-bottom: 20px;
}

.policy-content p,
.policy-content li {
    margin-bottom: 10px;
    color: #fff;
}

/* End Policy Pages Styling */

/* Language Switcher */
#language-toggle {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--light-text);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-left: 15px;
    text-decoration: none;
}

#language-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

@media (max-width: 991px) {
    #language-toggle {
        margin: 10px 0 0 0;
        display: inline-block;
    }
}

/* End Language Switcher */ 