/* ===== VARIABLES ===== */
:root {
    --primary: #1e90ff;
    --primary-dark: #0066cc;
    --primary-light: #4da8ff;
    --secondary: #0a0a2a;
    --accent: #00bfff;
    --text: #ffffff;
    --text-secondary: #b0b0b0;
    --card-bg: rgba(30, 144, 255, 0.08);
    --border: rgba(30, 144, 255, 0.2);
    --gradient: linear-gradient(135deg, #0a0a2a 0%, #1a1a3a 100%);
    --gradient-primary: linear-gradient(135deg, #1e90ff 0%, #00bfff 100%);
    --success: #2ecc71;
    --warning: #f39c12;
    --danger: #e74c3c;
}

/* ===== RESET & BASE STYLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: var(--gradient);
    color: var(--text);
    overflow-x: hidden;
    min-height: 100vh;
    line-height: 1.6;
}

/* ===== UTILITY CLASSES ===== */
.section {
    display: none;
}

.section.active {
    display: block;
}

.highlight {
    color: var(--primary);
    font-weight: 700;
    text-shadow: 0 0 15px rgba(30, 144, 255, 0.5);
}

.discord-link-inline {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s;
}

.discord-link-inline:hover {
    color: var(--accent);
    text-decoration: underline;
}

/* ===== BROWSER CHECK SCREEN ===== */
.browser-check {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.browser-check.hidden {
    opacity: 0;
    pointer-events: none;
}

.checking-screen {
    background: rgba(10, 10, 42, 0.95);
    border-radius: 20px;
    padding: 3rem;
    text-align: center;
    max-width: 600px;
    width: 90%;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border);
    backdrop-filter: blur(15px);
    position: relative;
    overflow: hidden;
}

.checking-screen::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
    transition: left 0.8s;
}

.checking-screen:hover::before {
    left: 100%;
}

.check-icon {
    width: 120px;
    height: 120px;
    margin: 0 auto 2rem;
    background: rgba(30, 144, 255, 0.15);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 3.5rem;
    color: var(--primary);
    position: relative;
    overflow: hidden;
    animation: pulse 2s infinite;
}

.check-icon::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    opacity: 0.2;
    border-radius: 50%;
}

.check-icon i {
    position: relative;
    z-index: 1;
}

.browser-check h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, var(--primary), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 700;
}

.loading-bar {
    width: 100%;
    height: 8px;
    background: rgba(30, 144, 255, 0.2);
    border-radius: 4px;
    margin: 2rem 0;
    overflow: hidden;
}

.loading-progress {
    height: 100%;
    width: 0%;
    background: var(--gradient-primary);
    border-radius: 4px;
    transition: width 5s linear;
}

.status-text {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: var(--text-secondary);
}

.ip-container {
    margin: 2rem 0;
    padding: 1.5rem;
    background: rgba(30, 144, 255, 0.1);
    border-radius: 15px;
    border: 1px solid var(--border);
    transition: all 0.4s;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
}

.ip-container.show {
    opacity: 1;
    max-height: 200px;
}

.ip-title {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--primary);
    font-weight: 600;
}

.ip-address {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text);
    word-break: break-all;
}

/* ===== BUTTONS ===== */
.toggle-btn,
.cta-button,
.discord-link {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1.2rem 2.5rem;
    background: var(--gradient-primary);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.2rem;
    transition: all 0.4s;
    box-shadow: 0 10px 30px rgba(30, 144, 255, 0.4);
    position: relative;
    overflow: hidden;
    border: none;
    cursor: pointer;
}

.toggle-btn {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    margin-top: 1rem;
}

.toggle-btn::before,
.cta-button::before,
.discord-link::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.7s;
}

.toggle-btn:hover::before,
.cta-button:hover::before,
.discord-link:hover::before {
    left: 100%;
}

.toggle-btn:hover,
.cta-button:hover,
.discord-link:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(30, 144, 255, 0.6);
}

/* ===== HEADER ===== */
header {
    background: rgba(10, 10, 42, 0.95);
    backdrop-filter: blur(15px);
    padding: 1.2rem 2rem;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border);
    animation: slideDown 0.8s ease-out;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    position: relative;
    padding: 0.5rem 0;
    font-size: 1.1rem;
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-links a.active {
    color: var(--primary);
}

.nav-links a.active::after {
    width: 100%;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    bottom: 0;
    left: 0;
    background: var(--gradient-primary);
    transition: width 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-radius: 2px;
}

.nav-links a:hover::after {
    width: 100%;
}

/* ===== HERO SECTION ===== */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 2rem;
    margin-top: 80px;
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.7;
}

.hero-bg::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(30, 144, 255, 0.15) 0%, transparent 70%);
    animation: pulse 12s infinite alternate;
}

.hero-content {
    max-width: 900px;
    z-index: 1;
}

.hero h1 {
    font-size: 5rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, var(--primary), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: fadeInUp 1s ease-out, glow 3s infinite alternate;
    text-shadow: 0 0 30px rgba(30, 144, 255, 0.4);
    font-weight: 800;
    letter-spacing: 1px;
}

.hero h2 {
    font-size: 2.8rem;
    margin-bottom: 2rem;
    color: var(--primary);
    animation: fadeInUp 1s ease-out 0.2s both;
    font-weight: 600;
}

.hero p {
    font-size: 1.3rem;
    line-height: 1.7;
    margin-bottom: 3rem;
    animation: fadeInUp 1s ease-out 0.4s both;
    color: var(--text-secondary);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
}

.scroll-indicator i {
    font-size: 1.8rem;
    color: var(--primary);
}

/* ===== FEATURES SECTION ===== */
.features {
    padding: 8rem 2rem;
    background-color: rgba(10, 10, 42, 0.7);
}

.section-title {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: var(--primary);
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
    font-weight: 700;
}

.section-title::after {
    content: '';
    position: absolute;
    width: 120px;
    height: 4px;
    background: var(--gradient-primary);
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    animation: expand 1.2s ease-out 0.5s both;
    border-radius: 2px;
}

.section-subtitle {
    text-align: center;
    font-size: 1.3rem;
    margin-bottom: 5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    color: var(--text-secondary);
    line-height: 1.6;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    max-width: 1300px;
    margin: 0 auto;
}

.feature-card {
    background-color: var(--card-bg);
    border-radius: 20px;
    padding: 3rem 2.5rem;
    text-align: center;
    border: 1px solid var(--border);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    opacity: 0;
    transform: translateY(40px);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
    transition: left 0.8s;
}

.feature-card:hover::before {
    left: 100%;
}

.feature-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.feature-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 40px rgba(30, 144, 255, 0.25);
    border-color: var(--primary-light);
}

.feature-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 2rem;
    background: rgba(30, 144, 255, 0.15);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2.5rem;
    color: var(--primary);
    transition: all 0.5s;
    position: relative;
    overflow: hidden;
}

.feature-icon::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.4s;
    border-radius: 50%;
}

.feature-icon i {
    position: relative;
    z-index: 1;
}

.feature-card:hover .feature-icon {
    transform: scale(1.15) rotate(5deg);
    box-shadow: 0 0 30px rgba(30, 144, 255, 0.6);
}

.feature-card:hover .feature-icon::before {
    opacity: 0.2;
}

.feature-card h3 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--primary);
    font-weight: 600;
}

.feature-card p {
    line-height: 1.7;
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* ===== FAQ SECTION ===== */
.faq {
    padding: 8rem 2rem;
    background-color: rgba(10, 10, 42, 0.5);
}

.faq-container {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 2rem;
    border: 1px solid var(--border);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.4s;
    background: var(--card-bg);
    backdrop-filter: blur(10px);
}

.faq-item:hover {
    border-color: var(--primary);
    box-shadow: 0 10px 25px rgba(30, 144, 255, 0.15);
}

.faq-question {
    background-color: rgba(30, 144, 255, 0.05);
    padding: 1.8rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    font-size: 1.2rem;
    transition: background-color 0.3s;
}

.faq-question:hover {
    background-color: rgba(30, 144, 255, 0.1);
}

.faq-answer {
    padding: 0 1.8rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.6s ease, padding 0.4s ease;
    background-color: rgba(10, 10, 42, 0.3);
    line-height: 1.7;
}

.faq-answer.active {
    padding: 1.8rem;
    max-height: 500px;
}

.faq-toggle {
    font-size: 1.8rem;
    transition: transform 0.4s;
    color: var(--primary);
    font-weight: 300;
}

.faq-toggle.active {
    transform: rotate(45deg);
}

/* ===== CONTRIBUTORS SECTION ===== */
.contributors-container {
    padding: 10rem 2rem 5rem;
    min-height: 100vh;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.contributors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.contributor-card {
    background-color: var(--card-bg);
    border-radius: 25px;
    padding: 3rem 2.5rem;
    border: 1px solid var(--border);
    transition: all 0.5s;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.contributor-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
    transition: left 0.8s;
}

.contributor-card:hover::before {
    left: 100%;
}

.contributor-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(30, 144, 255, 0.25);
    border-color: var(--primary-light);
}

.contributor-avatar {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    margin: 0 auto 2.5rem;
    overflow: hidden;
    border: 4px solid var(--primary);
    box-shadow: 0 0 30px rgba(30, 144, 255, 0.6);
    animation: float 6s ease-in-out infinite;
}

.contributor-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.contributor-card h3 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
    color: var(--primary);
    font-weight: 600;
}

.contributor-card p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* ===== FOOTER ===== */
footer {
    background-color: rgba(10, 10, 42, 0.95);
    padding: 4rem 2rem 2.5rem;
    border-top: 1px solid var(--border);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.footer-logo {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.footer-links {
    display: flex;
    gap: 2.5rem;
    margin-bottom: 2.5rem;
}

.footer-links a {
    color: var(--text);
    text-decoration: none;
    transition: all 0.3s;
    position: relative;
    font-size: 1.1rem;
    font-weight: 500;
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background: var(--gradient-primary);
    transition: width 0.3s;
}

.footer-links a:hover::after {
    width: 100%;
}

.copyright {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-top: 1rem;
}

/* ===== ANIMATIONS ===== */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(30, 144, 255, 0.4);
    }
    70% {
        box-shadow: 0 0 0 20px rgba(30, 144, 255, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(30, 144, 255, 0);
    }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
    }
    to {
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) translateX(-50%);
    }
    40% {
        transform: translateY(-15px) translateX(-50%);
    }
    60% {
        transform: translateY(-7px) translateX(-50%);
    }
}

@keyframes glow {
    from {
        text-shadow: 0 0 15px rgba(30, 144, 255, 0.5);
    }
    to {
        text-shadow: 0 0 25px rgba(30, 144, 255, 0.8), 0 0 40px rgba(30, 144, 255, 0.6);
    }
}

@keyframes expand {
    from {
        width: 0;
    }
    to {
        width: 120px;
    }
}

@keyframes float {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-15px);
    }
    100% {
        transform: translateY(0);
    }
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 968px) {
    .hero h1 {
        font-size: 3.5rem;
    }
    
    .hero h2 {
        font-size: 2.2rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .contributors-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.8rem;
    }
    
    .hero h2 {
        font-size: 1.8rem;
    }
    
    .nav-links {
        gap: 1.5rem;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 1.2rem;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
    
    .checking-screen {
        padding: 2rem;
    }
    
    .check-icon {
        width: 90px;
        height: 90px;
        font-size: 2.5rem;
    }
    
    .browser-check h1 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2.2rem;
    }
    
    .hero h2 {
        font-size: 1.5rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .nav-links {
        gap: 1rem;
    }
    
    .logo {
        font-size: 1.5rem;
    }
}