/* Base Styles */
:root {
    --primary-bg: #040404;
    --secondary-bg: #0a0a0a;
    --text-color: #f7f7f7;
    --accent-color: #3a86ff;
    --border-color: #1a1a1a;
    --card-bg: rgba(20, 20, 20, 0.7);
    --btn-hover: #2563eb;
    --transition-speed: 0.3s;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

html {
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--accent-color) var(--primary-bg);
    scroll-padding-top: 100px; /* Fix for fixed header */
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--primary-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--btn-hover);
}

/* Aurora Borealis Background Effect */
body {
    background-color: var(--primary-bg);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

body::before {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 50% 50%, 
        rgba(58, 134, 255, 0.15) 0%, 
        rgba(100, 255, 218, 0.1) 25%, 
        rgba(157, 78, 221, 0.05) 50%, 
        transparent 70%);
    z-index: -1;
    animation: auroraMove 25s linear infinite;
    pointer-events: none;
    filter: blur(60px);
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(45deg, rgba(58, 134, 255, 0.03) 0%, transparent 70%),
        linear-gradient(-45deg, rgba(157, 78, 221, 0.03) 0%, transparent 70%);
    z-index: -1;
    pointer-events: none;
}

@keyframes auroraMove {
    0% { transform: rotate(0deg) translate(0, 0); }
    25% { transform: rotate(5deg) translate(2%, 2%); }
    50% { transform: rotate(0deg) translate(4%, 0); }
    75% { transform: rotate(-5deg) translate(2%, -2%); }
    100% { transform: rotate(0deg) translate(0, 0); }
}

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

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

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

ul {
    list-style: none;
}

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

/* Language Switcher */
.desktop-only {
    display: block;
}

.mobile-language-switcher {
    display: none;
}

.language-btn {
    display: flex;
    align-items: center;
    background: rgba(10, 10, 10, 0.5); 
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    padding: 8px 16px; 
    border-radius: 20px;
    border: 1px solid rgba(58, 134, 255, 0.3);
    color: var(--text-color);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
}

.language-btn:hover {
    background: rgba(58, 134, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(58, 134, 255, 0.3);
}

.highlight-button {
    animation: pulse 1s ease-in-out;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); box-shadow: 0 0 20px rgba(58, 134, 255, 0.5); }
    100% { transform: scale(1); }
}

.language-btn .current-lang {
    font-weight: 600;
    opacity: 1;
}

.language-btn .alt-lang {
    opacity: 0.7;
}

.language-btn .divider {
    margin: 0 5px;
    opacity: 0.5;
}

/* Header - Liquid Glass Pill Style */
header {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) perspective(1000px) rotateX(0deg);
    width: 90%;
    max-width: 1100px;
    z-index: 1000;
    padding: 10px 30px; /* Reduced padding for tighter fit */
    
    /* Liquid Glass Effect */
    background: rgba(20, 20, 20, 0.4);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-radius: 50px;
    
    /* Complex Border & Shadow for Glass Realism */
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    border-right: 1px solid rgba(255, 255, 255, 0.03);
    
    box-shadow: 
        0 15px 35px rgba(0, 0, 0, 0.5),
        0 5px 15px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.15),
        inset 0 -1px 0 rgba(255, 255, 255, 0.05),
        inset 10px 0 20px rgba(255, 255, 255, 0.02),
        inset -10px 0 20px rgba(255, 255, 255, 0.02);
        
    transition: all 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* Header Scrolled State - Removed for fixed size */

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0;
    width: 100%;
    height: 100%; /* Ensure full height for alignment */
}

/* 3D Hover Effect for Header */
header:hover {
    transform: translateX(-50%) translateY(-2px);
    box-shadow: 
        0 25px 50px -12px rgba(0, 0, 0, 0.7),
        inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.logo img {
    height: 55px;
    transition: transform var(--transition-speed) ease;
}

.logo img:hover {
    transform: scale(1.05);
}

/* Ensure nav items are perfectly centered vertically */
nav ul {
    display: flex;
    gap: 25px; /* Increased gap slightly */
    align-items: center;
    margin: 0;
}

/* Nav Link Enhancements for Glass Effect */
nav ul li a {
    font-weight: 500;
    position: relative;
    padding: 5px 0;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: width var(--transition-speed) ease;
}

nav ul li a:hover::after {
    width: 100%;
}

.contact-btn, .support-btn, .signup-btn {
    background: rgba(58, 134, 255, 0.2);
    padding: 8px 16px;
    border-radius: 20px;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(58, 134, 255, 0.3);
    transition: all var(--transition-speed) ease;
}

.contact-btn:hover, .support-btn:hover, .signup-btn:hover {
    background: rgba(58, 134, 255, 0.3);
    border-color: rgba(58, 134, 255, 0.5);
    transform: translateY(-1px);
}

.signup-btn {
    background: linear-gradient(135deg, rgba(58, 134, 255, 0.3), rgba(58, 134, 255, 0.2));
    border: 1px solid rgba(58, 134, 255, 0.4);
    font-weight: 600;
}

.signup-btn:hover {
    background: linear-gradient(135deg, rgba(58, 134, 255, 0.4), rgba(58, 134, 255, 0.3));
    border-color: rgba(58, 134, 255, 0.6);
    box-shadow: 0 4px 15px rgba(58, 134, 255, 0.2);
}

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

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: var(--text-color);
    transition: all var(--transition-speed) ease;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    background: linear-gradient(to bottom, var(--primary-bg), var(--secondary-bg));
    background-size: 200% 200%;
    animation: gradientBG 15s ease infinite;
    position: relative;
    overflow: hidden;
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 30%, rgba(58, 134, 255, 0.1), transparent 40%);
    z-index: 1;
}

.hero-content {
    max-width: 700px;
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
    background: linear-gradient(to right, var(--text-color), #a5c4ff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

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

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 30px;
    font-weight: 500;
    transition: all var(--transition-speed) ease;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.btn-primary {
    background: rgba(58, 134, 255, 0.2);
    border: 1px solid rgba(58, 134, 255, 0.3);
    color: var(--text-color);
}

.btn-primary:hover {
    background: rgba(58, 134, 255, 0.4);
    border-color: rgba(58, 134, 255, 0.6);
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(58, 134, 255, 0.3);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-color);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-3px);
    box-shadow: 0 5px 20px rgba(255, 255, 255, 0.1);
}

/* Sections */
section {
    padding: 100px 0;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 50px;
    text-align: center;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--accent-color);
    border-radius: 3px;
}

/* About Section */
.about {
    background-color: var(--primary-bg);
}

.about p {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px;
    font-size: 1.1rem;
}

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

.value-card {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: transform var(--transition-speed) ease;
}

.value-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(58, 134, 255, 0.1);
    border-color: rgba(58, 134, 255, 0.3);
}

.value-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--accent-color);
}

/* Footer */
footer {
    background-color: var(--secondary-bg);
    padding: 60px 0 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.footer-logo img {
    height: 65px;
}

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

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    font-size: 0.9rem;
    opacity: 0.7;
}

/* Legal Content Styles */
.legal-content {
    padding: 120px 0 80px;
    background: transparent;
    min-height: calc(100vh - 200px);
}

.legal-content h1 {
    color: var(--text-color);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    text-align: center;
}

.legal-content .last-updated {
    text-align: center;
    color: rgba(247, 247, 247, 0.7);
    font-size: 1rem;
    margin-bottom: 40px;
    font-style: italic;
}

.legal-section {
    background: var(--card-bg);
    padding: 30px;
    margin-bottom: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    border-left: 4px solid var(--accent-color);
    border-top: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
}

.legal-section h2 {
    color: var(--accent-color);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
}

.legal-section p {
    color: var(--text-color);
    line-height: 1.7;
    margin-bottom: 15px;
    font-size: 1rem;
    opacity: 0.9;
}

.legal-section ul {
    margin: 15px 0;
    padding-left: 25px;
}

.legal-section li {
    color: var(--text-color);
    line-height: 1.6;
    margin-bottom: 8px;
    font-size: 1rem;
    opacity: 0.9;
}

.legal-section a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.legal-section a:hover {
    color: var(--btn-hover);
    text-decoration: underline;
}

/* Language Change Animation */
.lang-transition {
    animation: langFade 0.5s ease-in-out;
}

@keyframes langFade {
    0% {
        opacity: 1;
        filter: blur(0);
    }
    50% {
        opacity: 0;
        filter: blur(5px);
        transform: scale(0.98);
    }
    100% {
        opacity: 1;
        filter: blur(0);
        transform: scale(1);
    }
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.animate-fade-in {
    /* Legacy support or explicit use */
    animation: fadeIn 0.8s ease forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero h1.animate-fade-in {
    animation-delay: 0.2s;
}

.hero p.animate-fade-in {
    animation-delay: 0.4s;
}

.hero-buttons.animate-fade-in {
    animation-delay: 0.6s;
}

.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }


/* Responsive Design */
@media (max-width: 992px) {
    .hero h1 {
        font-size: 2.8rem;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .desktop-only {
        display: none !important;
    }
    
    .mobile-language-switcher {
        display: block;
        width: 100%;
        text-align: center;
        margin-top: 10px;
        padding-top: 15px;
        border-top: 1px solid var(--border-color);
    }
    
    .mobile-language-switcher .language-btn {
        padding: 10px 20px;
        font-size: 14px;
        width: auto;
        display: inline-flex;
    }
    
    header {
        width: 94%;
        padding: 8px 20px;
        border-radius: 30px;
    }

    header .container {
        padding: 0;
    }
    
    nav ul {
        display: flex;
        position: absolute;
        top: 100%;
        margin-top: 12px;
        left: 0;
        width: 100%;
        background: rgba(10, 10, 10, 0.95);
        flex-direction: column;
        padding: 20px;
        gap: 15px;
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 25px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
        
        /* Animation properties */
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px) scale(0.95);
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        pointer-events: none;
    }
    
    header.scrolled nav ul {
        top: 100%;
    }
    
    nav ul.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        pointer-events: auto;
    }
    
    nav ul li {
        width: 100%;
        text-align: center;
    }
    
    nav ul li a {
        display: block;
        padding: 10px;
        border-radius: 8px;
        transition: all var(--transition-speed) ease;
    }
    
    nav ul li a:hover {
        background: rgba(58, 134, 255, 0.1);
    }
    
    .contact-btn, .signup-btn {
        margin: 5px 0;
        display: block;
        text-align: center;
        padding: 12px 20px;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .hero {
        padding-top: 100px;
        min-height: 80vh;
    }
    
    .hero h1 {
        font-size: 2.2rem;
        margin-bottom: 15px;
    }
    
    .hero p {
        font-size: 1rem;
        margin-bottom: 25px;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
    }
    
    .btn {
        width: 100%;
        text-align: center;
        padding: 14px 24px;
    }
    
    .section-title {
        font-size: 2rem;
        margin-bottom: 30px;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .footer-links ul {
        justify-content: center;
        gap: 15px;
    }
    
    .footer-links ul li a {
        padding: 8px 12px;
        display: block;
    }
}

@media (max-width: 480px) {
    .language-switcher {
        top: 10px;
        right: 10px;
    }
    
    .language-btn {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    header {
        padding: 5px 10px;
        width: 92%;
    }
    
    .logo img {
        height: 50px;
    }
    
    .hero {
        padding-top: 90px;
        min-height: 75vh;
    }
    
    .hero h1 {
        font-size: 1.8rem;
        line-height: 1.3;
    }
    
    .hero p {
        font-size: 0.95rem;
        margin-bottom: 20px;
    }
    
    .hero-buttons {
        gap: 10px;
    }
    
    .btn {
        padding: 12px 20px;
        font-size: 0.9rem;
    }
    
    section {
        padding: 50px 0;
    }
    
    .section-title {
        font-size: 1.8rem;
        margin-bottom: 25px;
    }
    
    .container {
        padding: 0 10px;
    }
    
    .values {
        gap: 20px;
        margin-top: 30px;
    }
    
    .value-card {
        padding: 20px 15px;
    }
    
    .value-card h3 {
        font-size: 1.3rem;
        margin-bottom: 10px;
    }
    
    .value-card p {
        font-size: 0.9rem;
    }
    
    .footer-content {
        gap: 20px;
    }
    
    .footer-logo img {
        height: 60px;
    }
    
    .footer-links ul {
        gap: 10px;
        flex-wrap: wrap;
    }
    
    .footer-links ul li a {
        padding: 6px 10px;
        font-size: 0.9rem;
    }
    
    .footer-bottom {
        font-size: 0.8rem;
        padding-top: 15px;
    }
    
    /* Legal Content Mobile */
    .legal-content {
        padding: 100px 0 60px;
    }
    
    .legal-content h1 {
        font-size: 2rem;
    }
    
    .legal-section {
        padding: 20px;
        margin-bottom: 20px;
    }
    
    .legal-section h2 {
        font-size: 1.3rem;
    }
}