/* ProxyRed Common Styles */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg: #0a0b0d;
    --text: #e5e7eb;
    --muted: #9ca3af;
    --accent: #FFD063;
    --accent-2: #ff6b6b;
    --card: rgba(255, 255, 255, .03);
    --card-b: rgba(255, 255, 255, .1);
}

body {
    font-family: "Nunito", -apple-system, system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff;
    background: var(--bg);
    overflow-x: hidden;
}

a {
    color: #fff;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

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

/* Animated Background */
.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: radial-gradient(ellipse at center, #1a1d29 0%, #0a0b0d 70%);
    pointer-events: none; /* never block clicks */
}

.bg-animation::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><radialGradient id="grad"><stop offset="0%" stop-color="rgba(255,107,107,0.1)"/><stop offset="100%" stop-color="transparent"/></radialGradient></defs><circle cx="20" cy="20" r="2" fill="url(%23grad)" opacity="0.8"><animate attributeName="opacity" values="0.3;0.8;0.3" dur="4s" repeatCount="indefinite"/></circle><circle cx="80" cy="30" r="1.5" fill="rgba(52,211,153,0.1)"><animate attributeName="opacity" values="0.2;0.7;0.2" dur="3s" repeatCount="indefinite"/></circle><circle cx="30" cy="70" r="1" fill="rgba(96,165,250,0.1)"><animate attributeName="opacity" values="0.4;0.9;0.4" dur="5s" repeatCount="indefinite"/></circle></svg>');
    animation: float 20s ease-in-out infinite;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(10, 11, 13, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 3000;
    transition: all 0.3s ease;
}

.nav {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    position: relative;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
}

.logo img {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: block;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: #9ca3af;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 1rem;
    border-radius: 8px;
}

.nav-links a:hover,
.nav-links a.active {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
}

.nav-links li {
    position: relative;
}

.nav-links li.dropdown > a::after {
    content: '▾';
    margin-left: 6px;
    font-size: .8rem;
    opacity: .8;
}

/* Dropdown Menu */
.dropdown {
    position: relative;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(23, 25, 32, .95);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 10px;
    min-width: 200px;
    padding: .5rem;
    box-shadow: 0 12px 30px rgba(0, 0, 0, .35);
    z-index: 1001;
    list-style: none;
    margin: 0;
}

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

.dropdown-menu li {
    margin: 0;
}

.dropdown-menu a {
    display: block;
    padding: .5rem .75rem;
    color: #e5e7eb;
    border-radius: 8px;
}

.dropdown-menu a:hover {
    background: rgba(255, 255, 255, .08);
    color: #fff;
}

/* Mobile Navigation Toggle */
.nav-toggle {
    display: none;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, .2);
    color: #fff;
    padding: .5rem .65rem;
    border-radius: 10px;
    cursor: pointer;
    position: relative;
    z-index: 1003; /* ensure it's above menus */
}

.nav-toggle:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, .2);
}

.nav-toggle .bar {
    display: block;
    width: 22px;
    height: 2px;
    background: #e5e7eb;
    margin: 5px 0;
    transition: transform .2s ease, opacity .2s ease;
}

.nav-toggle.active .bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle.active .bar:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active .bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Buttons */
.cta-button {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: #fff;
    padding: .75rem 1.5rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: all .3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 107, .3);
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .2), transparent);
    transition: left .5s;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 107, 107, .4);
    text-decoration: none;
}

/* Action buttons - no underline on hover */
.btn-primary,
.btn-secondary,
.partners-link,
.plan-button,
.order-button,
.get-started-button,
.btn-plan,
.btn-telegram,
.btn-discord,
.pricing-tab {
    text-decoration: none !important;
}

.btn-primary:hover,
.btn-secondary:hover,
.partners-link:hover,
.plan-button:hover,
.order-button:hover,
.get-started-button:hover,
.btn-plan:hover,
.btn-telegram:hover,
.btn-discord:hover,
.pricing-tab:hover {
    text-decoration: none !important;
}

/* Brand Buttons */
.btn-telegram {
    background: linear-gradient(135deg, #37aee2, #1e96c8);
    color: #fff;
    padding: 1rem 1.25rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    box-shadow: 0 6px 18px rgba(30, 150, 200, .35);
    border: 1px solid rgba(255, 255, 255, .15);
    transition: transform .2s ease, box-shadow .2s ease;
}

.btn-telegram:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 26px rgba(30, 150, 200, .45);
}

.btn-discord {
    background: linear-gradient(135deg, #5865F2, #404EED);
    color: #fff;
    padding: 1rem 1.25rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    box-shadow: 0 6px 18px rgba(88, 101, 242, .35);
    border: 1px solid rgba(255, 255, 255, .15);
    transition: transform .2s ease, box-shadow .2s ease;
}

.btn-discord:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 26px rgba(88, 101, 242, .45);
}

.btn-icon {
    display: inline-flex;
    width: 20px;
    height: 20px;
    align-items: center;
    justify-content: center;
}

.btn-icon svg {
    width: 100%;
    height: 100%;
    display: block;
    vertical-align: middle;
}

/* Gradient Text */
.gradient-text {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24, #feca57);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.125rem;
    color: #9ca3af;
    max-width: 600px;
    margin: 0 auto;
}

/* Page Hero */
.page-hero {
    padding-top: 7rem;
    padding-bottom: 2rem;
    text-align: center;
}

/* Contact Section */
.contact {
    padding: 6rem 2rem;
}

.contact-container {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.contact-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 1.5rem;
    backdrop-filter: blur(12px);
}

.contact-cta {
    display: flex;
    gap: .75rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 1rem;
}

.contact-info-list {
    display: grid;
    gap: .4rem;
    justify-items: center;
    color: #e5e7eb;
}

.contact-info-list .muted {
    color: #9ca3af;
    text-align: center;
}

.contact-info-list a {
    color: #fff;
    text-decoration: none;
}

.contact-info-list a:hover {
    text-decoration: underline;
}

/* Footer */
.footer {
    background: rgba(0, 0, 0, 0.5);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 3rem 2rem 2rem;
    text-align: center;
    margin-top: 3rem;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: #9ca3af;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #ff6b6b;
}

/* Utility */
.only-mobile { display: none; }

/* Reveal Animations */
.reveal {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity .6s ease, transform .6s ease;
}

.reveal.show {
    opacity: 1;
    transform: none;
}

/* Animations */
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.5);
        opacity: 0.7;
    }
}

@keyframes rotate {
    from {
        transform: translate(-50%, -50%) rotate(0deg);
    }
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

@keyframes connectionPulse {
    0%, 100% {
        opacity: 0;
        transform: scaleX(0);
    }
    50% {
        opacity: 1;
        transform: scaleX(1);
    }
}

@keyframes marquee {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

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

/* Responsive Design */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}

@media (max-width: 1024px) {
    .nav {
        position: relative;
    }
    
    .nav-toggle {
        display: inline-block;
        z-index: 3002;
    }
    
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        right: 0;
        width: 280px;
        max-width: calc(100vw - 2rem);
        flex-direction: column;
        gap: .25rem;
        background: rgba(23, 25, 32, .96);
        border: 1px solid rgba(255, 255, 255, .12);
        border-radius: 12px;
        padding: .5rem;
        z-index: 3001;
    }
    
    .nav-links.open {
        display: flex;
    }
    
    .nav-links > li > a {
        width: 100%;
    }
    
    .dropdown:hover .dropdown-menu {
        display: none;
    }
    
    .nav-links .dropdown.open > .dropdown-menu {
        display: flex !important;
        flex-direction: column !important;
        position: static !important;
        background: rgba(255, 255, 255, 0.02) !important;
        border: 1px solid rgba(255, 255, 255, 0.08) !important;
        border-radius: 8px !important;
        box-shadow: none !important;
        padding: .25rem !important;
        margin: .25rem 0 !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    
    .dropdown.open > .dropdown-menu a {
        padding: .45rem .65rem;
    }
    /* hide only the standalone header CTA on mobile */
    .nav > .cta-button { display: none; }
    .nav-links .only-mobile { display: block; }
    /* explicitly show CTA inside burger and make it full-width */
    .nav-links .only-mobile .cta-button {
        display: inline-flex;
        width: 100%;
        justify-content: center;
        margin-top: .25rem;
    }
}

@media (max-width: 640px) {
    .section-title {
        font-size: 2rem;
    }
    /* Tighter CTA sizing on narrow screens */
    .cta-button {
        padding: .55rem 1rem;
        font-size: .95rem;
        border-radius: 10px;
    }
}
