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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #0D1117 0%, #21262D 50%, #30363D 100%);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    min-height: 100vh;
    color: white;
    overflow-x: hidden;
    position: relative;
}

/* Animated background particles */
.background-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.particle {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: float 20s infinite linear;
}

.particle:nth-child(1) { width: 80px; height: 80px; left: 10%; animation-delay: 0s; }
.particle:nth-child(2) { width: 50px; height: 50px; left: 20%; animation-delay: 2s; }
.particle:nth-child(3) { width: 120px; height: 120px; left: 35%; animation-delay: 4s; }
.particle:nth-child(4) { width: 60px; height: 60px; left: 50%; animation-delay: 6s; }
.particle:nth-child(5) { width: 90px; height: 90px; left: 65%; animation-delay: 8s; }
.particle:nth-child(6) { width: 110px; height: 110px; left: 80%; animation-delay: 10s; }

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

@keyframes float {
    0% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(-100px) rotate(360deg); opacity: 0; }
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 70px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    padding: 0 20px;
    z-index: 100;
    transition: all 0.3s ease;
}

.header.scrolled {
    height: 60px;
    background: rgba(0, 0, 0, 0.3);
}

.menu-toggle {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 12px;
    border-radius: 12px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.menu-toggle::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.menu-toggle:hover::before {
    left: 100%;
}

.menu-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.05);
}

.logo {
    margin-left: 20px;
    font-size: 28px;
    font-weight: 800;
    background: linear-gradient(45deg, #fff, #f093fb, #fff);
    background-size: 200% 200%;
    animation: shimmer 3s ease-in-out infinite;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    cursor: pointer;
    transition: transform 0.3s ease;
}

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

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

/* Sidebar */
.sidebar {
    position: fixed;
    top: 0;
    left: -320px;
    width: 320px;
    height: 100vh;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(30px);
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 200;
    transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 90px 0 20px 0;
}

.sidebar.open {
    left: 0;
}

.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 150;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

.nav-menu {
    list-style: none;
}

.nav-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
}

.nav-link {
    display: block;
    color: white;
    text-decoration: none;
    padding: 24px 30px;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 16px;
    position: relative;
}

.nav-link::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 4px;
    background: linear-gradient(45deg, #f093fb, #f5576c);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.nav-link:hover::before,
.nav-link.active::before {
    transform: scaleY(1);
}

.nav-link:hover, .nav-link.active {
    background: rgba(255, 255, 255, 0.08);
    padding-left: 40px;
}

.dropdown {
    position: relative;
}

.dropdown-toggle::after {
    content: ' ▼';
    font-size: 12px;
    opacity: 0.7;
    transition: transform 0.3s ease;
}

.dropdown.open .dropdown-toggle::after {
    transform: rotate(180deg);
}

.dropdown-menu {
    display: none;
    background: rgba(0, 0, 0, 0.9);
    list-style: none;
    animation: slideDown 0.3s ease;
}

.dropdown.open .dropdown-menu {
    display: block;
}

.dropdown-item {
    padding: 18px 50px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    display: block;
    transition: all 0.3s ease;
    position: relative;
}

.dropdown-item::before {
    content: '→';
    position: absolute;
    left: 35px;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
}

.dropdown-item:hover::before {
    opacity: 1;
    transform: translateX(0);
}

.dropdown-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    padding-left: 55px;
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Main content */
.main-content {
    margin-top: 70px;
    min-height: calc(100vh - 70px);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 2rem;
    position: relative;
    z-index: 10;
}

.page {
    margin-top: 70px;
    display: none;
    text-align: center;
    max-width: 700px;
    animation: fadeInUp 0.8s ease-out;
    position: relative;
    width: 100%;
}

.page.active {
    display: block;
}

.page h1 {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, #fff, #f093fb, #f5576c, #fff);
    background-size: 300% 300%;
    animation: titleGradient 4s ease infinite;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.page h1::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(45deg, #f093fb, #f5576c);
    border-radius: 2px;
    animation: pulse 2s ease infinite;
}

.page h2 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, #fff, #f093fb, #fff);
    background-size: 200% 200%;
    animation: titleGradient 3s ease infinite;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

@keyframes pulse {
    0%, 100% { opacity: 1; transform: translateX(-50%) scaleX(1); }
    50% { opacity: 0.7; transform: translateX(-50%) scaleX(1.2); }
}

.subtitle {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    font-weight: 300;
    letter-spacing: 1px;
    animation: fadeIn 1s ease 0.3s both;
}

.description {
    font-size: 1.2rem;
    margin-bottom: 3rem;
    line-height: 1.7;
    opacity: 0.85;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeIn 1s ease 0.6s both;
}

.email-link {
    display: inline-block;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    text-decoration: none;
    padding: 1.2rem 3rem;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
    animation: fadeIn 1s ease 0.9s both;
}

.email-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s;
}

.email-link:hover::before {
    left: 100%;
}

.email-link:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.email-link:active {
    transform: translateY(-1px) scale(1.02);
}

/* Feature icons */
.features {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 3rem;
    animation: fadeIn 1s ease 1.2s both;
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.feature-icon:hover {
    transform: translateY(-5px) rotate(5deg);
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Stats counter */
.stats {
    display: flex;
    justify-content: center;
    gap: 4rem;
    margin-top: 3rem;
    animation: fadeIn 1s ease 1.5s both;
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(45deg, #fff, #f093fb);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
}

.stat-label {
    font-size: 0.9rem;
    opacity: 0.7;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 0.5rem;
}

/* Support and Privacy page specific styles */
.support-page, .privacy-page {
    max-width: 900px;
    text-align: left;
}

.support-page h2, .privacy-page h2 {
    text-align: center;
    margin-bottom: 1rem;
}

.support-page .subtitle, .privacy-page .subtitle {
    text-align: center;
    margin-bottom: 3rem;
}

.support-content, .privacy-content {
    margin-top: 2rem;
}

.contact-section, .faq-section, .privacy-section {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.contact-section h3, .faq-section h3, .privacy-section h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, #fff, #f093fb);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.privacy-section h4 {
    font-size: 1.2rem;
    margin: 1.5rem 0 0.8rem 0;
    color: rgba(255, 255, 255, 0.9);
}

.contact-section p, .privacy-section p {
    margin-bottom: 1rem;
    line-height: 1.6;
    opacity: 0.85;
}

.contact-section .email-link {
    margin: 1rem 0;
    padding: 0.8rem 2rem;
    font-size: 1rem;
}

.response-time {
    font-size: 0.9rem;
    opacity: 0.7;
    font-style: italic;
    margin-top: 0.5rem;
}

.faq-item {
    margin-bottom: 2rem;
}

.faq-item h4 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, #fff, #f5576c);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.faq-content p {
    margin-bottom: 1.2rem;
    line-height: 1.6;
    opacity: 0.85;
}

.faq-content strong {
    color: rgba(255, 255, 255, 0.95);
}

.privacy-section ul {
    list-style: none;
    margin: 1rem 0;
}

.privacy-section li {
    margin-bottom: 0.8rem;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.6;
    opacity: 0.85;
}

.privacy-section li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #f093fb;
    font-weight: bold;
}

.privacy-section a {
    color: #f093fb;
    text-decoration: none;
    transition: color 0.3s ease;
}

.privacy-section a:hover {
    color: #f5576c;
    text-decoration: underline;
}

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

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Scroll indicator */
.scroll-indicator {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 50;
    animation: bounce 2s infinite;
}

.scroll-arrow {
    color: rgba(255, 255, 255, 0.6);
    font-size: 24px;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

@media (max-width: 768px) {
    .page h1 { font-size: 3rem; }
    .page h2 { font-size: 2.5rem; }
    .subtitle { font-size: 1.4rem; }
    .description { font-size: 1.1rem; }
    .main-content { padding: 1rem; padding-top: 1rem; }
    .sidebar { width: 280px; left: -280px; }
    .feature-icon { width: 60px; height: 60px; font-size: 1.5rem; }
    
    .support-page, .privacy-page {
        max-width: 100%;
        padding: 1rem;
    }
    
    .contact-section, .faq-section, .privacy-section {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .contact-section h3, .faq-section h3, .privacy-section h3 {
        font-size: 1.3rem;
    }
    
    .faq-item h4 {
        font-size: 1.1rem;
    }
}

/* Only stack on very small screens */
@media (max-width: 400px) {
    .features { flex-direction: column; align-items: center; gap: 1.5rem; }
    .stats { flex-direction: column; gap: 2rem; }
    .page h1 { font-size: 2.5rem; }
    .page h2 { font-size: 2rem; }
    .subtitle { font-size: 1.2rem; }
    .description { font-size: 1rem; }
    
    .contact-section, .faq-section, .privacy-section {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    .contact-section h3, .faq-section h3, .privacy-section h3 {
        font-size: 1.2rem;
    }
    
    .privacy-section li {
        padding-left: 1rem;
    }
}

/* Adjust spacing for small mobile screens */
@media (max-width: 500px) and (min-width: 401px) {
    .features { gap: 1.5rem; }
    .stats { gap: 2.5rem; }
    .feature-icon { width: 65px; height: 65px; }
    .stat-number { font-size: 2rem; }
    .page h1 { font-size: 2.8rem; }
    .page h2 { font-size: 2.3rem; }
    .subtitle { font-size: 1.3rem; }
    .description { font-size: 1.05rem; }
}

/* Terms of Service page specific styles */
.terms-page {
    max-width: 900px;
    text-align: left;
}

.terms-page h2 {
    text-align: center;
    margin-bottom: 1rem;
}

.terms-page .subtitle {
    text-align: center;
    margin-bottom: 3rem;
}

.terms-content {
    margin-top: 2rem;
}

.terms-section {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.terms-section h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, #fff, #f093fb);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.terms-section h4 {
    font-size: 1.2rem;
    margin: 1.5rem 0 0.8rem 0;
    color: rgba(255, 255, 255, 0.9);
}

.terms-section p {
    margin-bottom: 1rem;
    line-height: 1.6;
    opacity: 0.85;
}

.terms-section ul {
    list-style: none;
    margin: 1rem 0;
}

.terms-section li {
    margin-bottom: 0.8rem;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.6;
    opacity: 0.85;
}

.terms-section li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #f093fb;
    font-weight: bold;
}

.terms-section a {
    color: #f093fb;
    text-decoration: none;
    transition: color 0.3s ease;
}

.terms-section a:hover {
    color: #f5576c;
    text-decoration: underline;
}

.terms-section strong {
    color: rgba(255, 255, 255, 0.95);
}

/* Mobile responsive adjustments for terms page */
@media (max-width: 768px) {
    .terms-page {
        max-width: 100%;
        padding: 1rem;
    }
    
    .terms-section {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .terms-section h3 {
        font-size: 1.3rem;
    }
    
    .terms-section h4 {
        font-size: 1.1rem;
    }
}

@media (max-width: 400px) {
    .terms-section {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    .terms-section h3 {
        font-size: 1.2rem;
    }
    
    .terms-section li {
        padding-left: 1rem;
    }
}
