/* X Pulse - Premium Website Styles */
/* Version 2.0.1 */

:root {
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-card: rgba(255, 255, 255, 0.03);
    --bg-glass: rgba(10, 10, 15, 0.85);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-glow: rgba(124, 58, 237, 0.3);
    --text-primary: #ffffff;
    --text-secondary: #a0a0b0;
    --accent-blue: #1d9bf0;
    --accent-purple: #7c3aed;
    --accent-cyan: #06b6d4;
    --accent-green: #22c55e;
    --gradient-primary: linear-gradient(135deg, #1d9bf0 0%, #7c3aed 100%);
    --gradient-chrome: linear-gradient(135deg, #4285f4 0%, #34a853 50%, #fbbc05 75%, #ea4335 100%);
    --gradient-glow: linear-gradient(135deg, rgba(124, 58, 237, 0.2) 0%, rgba(29, 155, 240, 0.2) 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ==================== FIXED HEADER ==================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-primary);
}

.logo img {
    width: 40px;
    height: 40px;
    border-radius: 10px;
}

.logo-text {
    font-size: 24px;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.version-badge {
    font-size: 10px;
    background: var(--accent-purple);
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 8px;
    -webkit-text-fill-color: white;
}

/* Main Navigation */
.main-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    padding: 10px 16px;
    border-radius: 8px;
    transition: all 0.2s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--text-primary);
    background: var(--bg-card);
}

.nav-link.active {
    color: var(--accent-blue);
}

/* Dropdown Menu */
.nav-dropdown {
    position: relative;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.dropdown-toggle svg {
    width: 12px;
    height: 12px;
    transition: transform 0.2s ease;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.2s ease;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(4px);
}

.nav-dropdown:hover .dropdown-toggle svg {
    transform: rotate(180deg);
}

.dropdown-item {
    display: block;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    padding: 10px 14px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    color: var(--text-primary);
    background: var(--bg-card);
}

/* Right Side: Lang + Chrome Button */
.header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.lang-switcher {
    display: flex;
    gap: 4px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 4px;
}

.lang-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.lang-btn:hover {
    color: var(--text-primary);
}

.lang-btn.active {
    background: var(--gradient-primary);
    color: white;
}

/* Chrome Button */
.btn-chrome {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--gradient-chrome);
    color: white;
    padding: 12px 20px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 20px rgba(66, 133, 244, 0.3);
}

.btn-chrome:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(66, 133, 244, 0.5);
}

.btn-chrome svg {
    width: 20px;
    height: 20px;
}

/* ==================== HERO SECTION ==================== */
.hero {
    padding: 140px 0 80px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at 50% 0%, rgba(124, 58, 237, 0.15) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-text h1 {
    font-size: 56px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
}

.hero-text h1 .gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-text h1 .highlight {
    color: var(--accent-cyan);
}

.hero-subtitle {
    font-size: 20px;
    color: var(--text-secondary);
    margin-bottom: 32px;
    line-height: 1.7;
}

.hero-features {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 40px;
}

.hero-feature {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 18px;
    font-weight: 500;
}

.hero-feature svg {
    width: 24px;
    height: 24px;
    color: var(--accent-green);
}

/* Hero Media (Image/Video) */
.hero-media {
    position: relative;
}

.hero-image-wrapper {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.5);
    animation: float 6s ease-in-out infinite;
}

.hero-image-wrapper::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: var(--gradient-primary);
    border-radius: 22px;
    z-index: -1;
    opacity: 0.5;
}

.hero-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 20px;
}

/* Video Placeholder */
.video-placeholder {
    position: relative;
    aspect-ratio: 16/9;
    background: var(--bg-card);
    border: 2px dashed var(--border-color);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 16px;
    color: var(--text-secondary);
    margin-top: 24px;
}

.video-placeholder svg {
    width: 48px;
    height: 48px;
    opacity: 0.5;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-20px) rotate(1deg);
    }
}

/* Floating particles */
.particles {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--accent-purple);
    border-radius: 50%;
    animation: particleFloat 15s infinite;
    opacity: 0.3;
}

@keyframes particleFloat {

    0%,
    100% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }

    10% {
        opacity: 0.3;
    }

    90% {
        opacity: 0.3;
    }

    100% {
        transform: translateY(-100vh) rotate(720deg);
        opacity: 0;
    }
}

/* ==================== PAGE CONTENT ==================== */
.page-content {
    padding: 120px 0 80px;
    min-height: 100vh;
}

.page-header {
    text-align: center;
    margin-bottom: 60px;
}

.page-title {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 16px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.page-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* Cards Grid */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 32px;
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-4px);
    border-color: var(--accent-purple);
    box-shadow: 0 20px 40px rgba(124, 58, 237, 0.1);
}

.card-icon {
    width: 56px;
    height: 56px;
    background: var(--gradient-primary);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.card-icon svg {
    width: 28px;
    height: 28px;
    color: white;
}

.card h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
}

.card p {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.7;
}

/* ==================== X SOCIAL LINK ==================== */
.social-link-x {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link-x:hover {
    color: var(--text-primary);
    border-color: var(--accent-blue);
    background: rgba(29, 155, 240, 0.1);
    transform: translateY(-2px);
}

.social-link-x svg {
    width: 20px;
    height: 20px;
}

.footer-social-x {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.mobile-social-x {
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, rgba(29, 155, 240, 0.1) 0%, rgba(124, 58, 237, 0.1) 100%) !important;
    border-color: var(--accent-blue) !important;
}

/* ==================== FOOTER ==================== */
.footer {
    border-top: 1px solid var(--border-color);
    padding: 40px 0;
    text-align: center;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-links {
    display: flex;
    gap: 24px;
    align-items: center;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: var(--accent-blue);
}

.footer-copy {
    color: var(--text-secondary);
    font-size: 14px;
}

/* Mobile elements - hidden by default on desktop */
.mobile-menu-btn {
    display: none;
}

.mobile-menu {
    display: none;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-text h1 {
        font-size: 42px;
    }

    .hero-features {
        align-items: center;
    }
}

@media (max-width: 768px) {

    /* Mobile Header Fixes */
    .header {
        padding: 10px 0;
    }

    .header-content {
        gap: 8px;
    }

    .logo img {
        width: 32px;
        height: 32px;
    }

    .logo-text {
        font-size: 18px;
    }

    .version-badge {
        display: none;
    }

    .lang-switcher {
        padding: 2px;
    }

    .lang-btn {
        padding: 4px 8px;
        font-size: 11px;
    }

    .main-nav {
        display: none;
    }

    /* Mobile Menu Button */
    .mobile-menu-btn {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        width: 44px;
        height: 44px;
        background: var(--bg-card);
        border: 1px solid var(--border-color);
        border-radius: 10px;
        cursor: pointer;
        gap: 5px;
        transition: all 0.3s ease;
    }

    .mobile-menu-btn span {
        display: block;
        width: 20px;
        height: 2px;
        background: var(--text-primary);
        border-radius: 2px;
        transition: all 0.3s ease;
    }

    .mobile-menu-btn.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-btn.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    /* Mobile Menu Overlay */
    .mobile-menu {
        display: none;
        position: fixed;
        top: 73px;
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--bg-primary);
        z-index: 999;
        padding: 24px;
        overflow-y: auto;
        animation: slideDown 0.3s ease;
    }

    .mobile-menu.active {
        display: block;
    }

    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-20px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .mobile-menu-links {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    .mobile-menu-links a {
        display: block;
        color: var(--text-primary);
        text-decoration: none;
        font-size: 18px;
        font-weight: 500;
        padding: 16px 20px;
        background: var(--bg-card);
        border: 1px solid var(--border-color);
        border-radius: 12px;
        transition: all 0.2s ease;
    }

    .mobile-menu-links a:hover {
        background: var(--gradient-glow);
        border-color: var(--accent-purple);
    }

    .mobile-menu-section {
        margin-top: 12px;
        padding-top: 12px;
        border-top: 1px solid var(--border-color);
    }

    .mobile-menu-section-title {
        display: flex;
        align-items: center;
        justify-content: space-between;
        font-size: 14px;
        font-weight: 600;
        color: var(--text-secondary);
        padding: 12px 16px;
        background: var(--bg-card);
        border: 1px solid var(--border-color);
        border-radius: 10px;
        cursor: pointer;
        transition: all 0.2s ease;
    }

    .mobile-menu-section-title:hover {
        color: var(--text-primary);
        border-color: var(--accent-purple);
    }

    .mobile-menu-section-title::after {
        content: '▼';
        font-size: 10px;
        transition: transform 0.3s ease;
    }

    .mobile-menu-section-title.active::after {
        transform: rotate(180deg);
    }

    .mobile-menu-section-content {
        display: none;
        margin-top: 8px;
    }

    .mobile-menu-section-content.active {
        display: flex;
        flex-direction: column;
        gap: 6px;
    }

    .hero-text h1 {
        font-size: 28px;
    }

    .hero-subtitle {
        font-size: 15px;
    }

    .page-title {
        font-size: 28px;
    }

    .btn-chrome span {
        display: none;
    }

    .btn-chrome {
        padding: 10px;
    }

    .btn-chrome svg {
        width: 18px;
        height: 18px;
    }

    .footer-content {
        flex-direction: column;
    }
}

/* ==================== ANIMATIONS ==================== */
.fade-in {
    animation: fadeIn 0.6s ease forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-in-left {
    animation: slideInLeft 0.6s ease forwards;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.slide-in-right {
    animation: slideInRight 0.6s ease forwards;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Stagger animation delays */
.stagger-1 {
    animation-delay: 0.1s;
}

.stagger-2 {
    animation-delay: 0.2s;
}

.stagger-3 {
    animation-delay: 0.3s;
}

.stagger-4 {
    animation-delay: 0.4s;
}

.stagger-5 {
    animation-delay: 0.5s;
}