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

/* CSS Variables */
:root {
    /* Colors */
    --primary-bg-dark: #051428;
    --primary-bg-mid: #062a52;
    --primary-bg-light: #003f66;
    --accent-cyan: #00c6ff;
    --accent-cyan-light: #00e5ff;
    --accent-green: #00ff99;
    --text-primary: #e6f7ff;
    --text-secondary: #9fbccc;
    --text-muted: #7a9bb3;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-xxl: 4rem;
    
    /* Layout */
    --container-max-width: 1200px;
    --border-radius: 8px;
    --border-radius-lg: 12px;
    
    /* Glow Effects */
    --glow-intensity: 0 0 20px;
    --glow-green: var(--glow-intensity) var(--accent-green);
    --glow-cyan: var(--glow-intensity) var(--accent-cyan);
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
}

/* Base Styles */
html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, var(--primary-bg-dark) 0%, var(--primary-bg-mid) 50%, var(--primary-bg-light) 100%);
    background-attachment: fixed;
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Container */
.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: var(--spacing-sm);
    color: var(--text-primary);
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
    margin-bottom: var(--spacing-sm);
    color: var(--text-secondary);
}

.lead {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-lg);
}

/* Links */
a {
    color: var(--accent-cyan);
    text-decoration: none;
    transition: var(--transition-fast);
}

a:hover,
a:focus {
    color: var(--accent-cyan-light);
    text-shadow: var(--glow-cyan);
    outline: none;
}

/* Focus Styles */
*:focus {
    outline: 2px solid var(--accent-green);
    outline-offset: 2px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: var(--spacing-sm) var(--spacing-lg);
    border: none;
    border-radius: var(--border-radius);
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: var(--transition-normal);
    text-decoration: none;
    font-size: 1rem;
}

.btn-primary {
    background: var(--accent-green);
    color: var(--primary-bg-dark);
    box-shadow: var(--glow-green);
}

.btn-primary:hover,
.btn-primary:focus {
    background: var(--accent-cyan);
    color: var(--primary-bg-dark);
    box-shadow: var(--glow-cyan);
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--accent-cyan);
    box-shadow: var(--glow-cyan);
}

.btn-secondary:hover,
.btn-secondary:focus {
    background: var(--accent-cyan);
    color: var(--primary-bg-dark);
    box-shadow: var(--glow-cyan);
    transform: translateY(-2px);
}

/* Header & Navigation */
.navbar {
    background: rgba(5, 20, 40, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 198, 255, 0.2);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: var(--spacing-sm) 0;
}

.nav-container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.nav-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: var(--transition-fast);
    position: absolute;
    left: var(--spacing-md);
}

.logo-image {
    height: 40px; /* Increased to better match text size */
    width: auto;
    transition: var(--transition-fast);
    max-height: 48px; /* Prevent oversized logos */
}

.nav-logo:hover .logo-image {
    transform: scale(1.05);
    filter: brightness(1.1);
}

/* Responsive Logo Scaling */
@media (max-width: 1200px) {
    .logo-image {
        height: 36px; /* Slightly smaller for large tablets */
    }
}

@media (max-width: 768px) {
    .logo-image {
        height: 32px; /* Comfortable mobile size */
    }
}

@media (max-width: 480px) {
    .logo-image {
        height: 28px; /* Still visible on phones */
    }
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: var(--spacing-lg);
    align-items: center;
    padding-left: 120px; /* Account for logo width */
}

.nav-link {
    color: var(--text-secondary);
    font-weight: 500;
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--border-radius);
    transition: var(--transition-fast);
}

.nav-link:hover,
.nav-link:focus {
    color: var(--accent-green);
    text-shadow: var(--glow-green);
    background: rgba(0, 255, 153, 0.1);
}

.nav-link.active {
    color: var(--accent-green);
    text-shadow: var(--glow-green);
    background: rgba(0, 255, 153, 0.15);
    border: 2px solid var(--accent-green);
    border-radius: var(--border-radius);
    box-shadow: 0 0 10px rgba(0, 255, 153, 0.3);
    padding: var(--spacing-xs) var(--spacing-sm);
    position: relative;
}

.hamburger {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--spacing-xs);
    gap: 4px;
    transition: var(--transition-fast);
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    transition: var(--transition-fast);
    transform-origin: center;
}

.hamburger:hover span {
    background: var(--accent-green);
}

.hamburger:focus {
    outline: 2px solid var(--accent-green);
    outline-offset: 2px;
}

/* Hamburger Animation */
.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Hero Section */
.hero {
    padding: calc(80px + var(--spacing-xxl)) 0 var(--spacing-xxl);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(0, 198, 255, 0.1) 0%, transparent 70%);
    animation: pulse 4s ease-in-out infinite;
}

.hero-container {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent-cyan) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: glow 2s ease-in-out infinite alternate;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-xl);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    flex-wrap: wrap;
}

/* Page Hero */
.page-hero {
    padding: calc(80px + var(--spacing-xl)) 0 var(--spacing-xl);
    text-align: center;
    background: rgba(0, 63, 102, 0.3);
    border-bottom: 1px solid rgba(0, 198, 255, 0.2);
}

/* Content Sections */
.services {
    padding: var(--spacing-xxl) 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--spacing-xl);
    margin-top: var(--spacing-xl);
}

.service-card {
    background: rgba(255, 255, 255, 0.05);
    padding: var(--spacing-lg);
    border-radius: var(--border-radius-lg);
    border: 1px solid rgba(0, 198, 255, 0.2);
    text-align: center;
    transition: var(--transition-normal);
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--glow-cyan);
    border-color: var(--accent-cyan);
}

.service-card h3 {
    color: var(--accent-green);
    margin-bottom: var(--spacing-sm);
    text-shadow: var(--glow-green);
}

/* About Page */
.about-content {
    padding: var(--spacing-xxl) 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: var(--spacing-xxl);
    align-items: start;
}

.about-text h2 {
    color: var(--accent-cyan);
    margin-top: var(--spacing-xl);
    margin-bottom: var(--spacing-md);
    text-shadow: var(--glow-cyan);
}

.about-text h2:first-child {
    margin-top: 0;
}

.features-list {
    list-style: none;
    margin-top: var(--spacing-md);
}

.features-list li {
    padding: var(--spacing-xs) 0;
    position: relative;
    padding-left: var(--spacing-lg);
    color: var(--text-secondary);
}

.features-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent-green);
    font-weight: bold;
}

.about-stats {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.stat {
    text-align: center;
    padding: var(--spacing-lg);
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius-lg);
    border: 1px solid rgba(0, 198, 255, 0.2);
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-green);
    text-shadow: var(--glow-green);
    margin-bottom: var(--spacing-xs);
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Policies Page */
.policies-content {
    padding: var(--spacing-xxl) 0;
}

.policy-section {
    margin-bottom: var(--spacing-xxl);
    padding-bottom: var(--spacing-xxl);
    border-bottom: 1px solid rgba(0, 198, 255, 0.2);
}

.policy-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.policy-section h2 {
    color: var(--accent-cyan);
    margin-bottom: var(--spacing-md);
    text-shadow: var(--glow-cyan);
}

.policy-section h3 {
    color: var(--accent-green);
    margin-top: var(--spacing-lg);
    margin-bottom: var(--spacing-sm);
    text-shadow: var(--glow-green);
}

/* Registration Content */
.registration-content {
    padding: var(--spacing-xxl) 0;
}

.content-section {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.content-section h2 {
    color: var(--accent-cyan);
    margin-bottom: var(--spacing-lg);
    text-shadow: var(--glow-cyan);
    font-size: 2.5rem;
}

.content-section h3 {
    color: var(--accent-green);
    margin-top: var(--spacing-xl);
    margin-bottom: var(--spacing-md);
    text-shadow: var(--glow-green);
    font-size: 1.5rem;
}

.content-section p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: var(--spacing-md);
}

.content-section ul {
    list-style: none;
    margin: var(--spacing-md) 0;
    padding-left: 0;
}

.content-section li {
    position: relative;
    padding-left: var(--spacing-lg);
    margin-bottom: var(--spacing-sm);
    color: var(--text-secondary);
    line-height: 1.6;
}

.content-section li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent-green);
    font-weight: bold;
}

.content-section strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* Responsive Registration Content */
@media (max-width: 768px) {
    .content-section h2 {
        font-size: 2rem;
    }

    .content-section h3 {
        font-size: 1.25rem;
    }

    .content-section {
        padding: 0 var(--spacing-sm);
    }
}

/* Links Page */
.links-content {
    padding: var(--spacing-xxl) 0;
}

.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--spacing-xl);
    margin-top: var(--spacing-lg);
}

.links-category {
    background: rgba(255, 255, 255, 0.05);
    padding: var(--spacing-lg);
    border-radius: var(--border-radius-lg);
    border: 1px solid rgba(0, 198, 255, 0.2);
    margin-bottom: var(--spacing-lg);
}

.links-category h2 {
    color: var(--accent-cyan);
    margin-bottom: var(--spacing-md);
    text-shadow: var(--glow-cyan);
}

.country-section {
    margin-bottom: var(--spacing-lg);
}

.country-section h3 {
    color: var(--accent-green);
    font-size: 1.1rem;
    margin-bottom: var(--spacing-sm);
    text-shadow: var(--glow-green);
    font-weight: 600;
}

.links-list {
    list-style: none;
}

.links-list li {
    margin-bottom: var(--spacing-sm);
}

.links-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-sm);
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius);
    border: 1px solid rgba(0, 198, 255, 0.2);
    transition: var(--transition-normal);
    color: var(--text-primary);
}

.links-list a:hover,
.links-list a:focus {
    border-color: var(--accent-green);
    box-shadow: var(--glow-green);
    transform: translateX(5px);
}

.link-external {
    color: var(--accent-green);
    font-weight: bold;
}

/* Footer */
footer {
    background: rgba(5, 20, 40, 0.95);
    border-top: 1px solid rgba(0, 198, 255, 0.2);
    padding: var(--spacing-xxl) 0 var(--spacing-lg);
    margin-top: auto;
}

.footer-container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.footer-section h4 {
    color: var(--accent-green);
    margin-bottom: var(--spacing-md);
    text-shadow: var(--glow-green);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: var(--spacing-xs);
}

.footer-section a {
    color: var(--text-secondary);
    transition: var(--transition-fast);
}

.footer-section a:hover,
.footer-section a:focus {
    color: var(--accent-cyan);
    text-shadow: var(--glow-cyan);
}

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-lg);
    border-top: 1px solid rgba(0, 198, 255, 0.2);
    color: var(--text-muted);
}

/* Animations */
@keyframes glow {
    from {
        text-shadow: 0 0 10px rgba(0, 198, 255, 0.5);
    }
    to {
        text-shadow: 0 0 20px rgba(0, 198, 255, 0.8), 0 0 30px rgba(0, 198, 255, 0.4);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 0.6;
        transform: scale(1.05);
    }
}

/* Responsive Navigation */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: fixed;
        top: 0;
        left: 0; /* Changed from right: 0 */
        width: 50vw; /* Take half the screen width */
        height: 100vh;
        background: rgba(5, 20, 40, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        padding: var(--spacing-lg);
        gap: var(--spacing-md);
        border-right: 1px solid rgba(0, 198, 255, 0.2); /* Changed from border-left */
        transform: translateX(-100%); /* Start off-screen to the left */
        transition: transform 0.3s ease;
        z-index: 999;
    }

    .hamburger {
        display: flex;
        position: absolute;
        left: var(--spacing-md);
        top: 50%;
        transform: translateY(-50%);
        z-index: 1001;
        order: -1;
    }

    .nav-logo {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        order: 0;
    }

    .nav-menu {
        padding-left: 0;
        order: 1;
    }

    .logo-image {
        height: 24px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.25rem;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }

    .links-grid {
        grid-template-columns: 1fr;
    }

    .country-section h3 {
        font-size: 1rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    /* Disable intensive effects on mobile */
    .btn::before {
        display: none;
    }

    .service-card::after,
    .stat::after {
        display: none;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--spacing-sm);
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
        min-height: 48px; /* Ensure touch-friendly size */
        padding: var(--spacing-md) var(--spacing-lg);
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
}

/* Enhanced Responsive Design for All Devices */
@media (max-width: 1400px) {
    .container {
        max-width: 1200px;
    }
}

@media (max-width: 1200px) {
    .container {
        max-width: 1000px;
    }

    .logo-image {
        height: 28px;
    }

    .hero-title {
        font-size: 3rem;
    }
}

@media (max-width: 992px) {
    .container {
        max-width: 900px;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-md);
    }

    .about-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .container {
        max-width: 100%;
        padding: 0 var(--spacing-md);
    }

    .nav-menu {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 50vw;
        height: 100vh;
        background: rgba(5, 20, 40, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        padding: var(--spacing-lg);
        gap: var(--spacing-md);
        border-right: 1px solid rgba(0, 198, 255, 0.2);
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 999;
    }

    .nav-menu.active {
        display: flex;
        transform: translateX(0);
    }

    .hamburger {
        display: flex;
        position: absolute;
        left: var(--spacing-md);
        top: 50%;
        transform: translateY(-50%);
        z-index: 1001;
        order: -1;
    }

    .nav-logo {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        order: 0;
    }

    .nav-menu {
        padding-left: 0;
        order: 1;
    }

    .logo-image {
        height: 24px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.25rem;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    /* Disable intensive effects on mobile */
    .btn::before {
        display: none;
    }

    .service-card::after,
    .stat::after {
        display: none;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 var(--spacing-sm);
    }

    .logo-image {
        height: 20px;
    }

    .hero-title {
        font-size: 2rem;
        line-height: 1.2;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .btn {
        width: 100%;
        max-width: 280px;
        min-height: 48px;
        padding: var(--spacing-sm) var(--spacing-md);
        font-size: 0.9rem;
    }

    .service-card {
        padding: var(--spacing-md);
    }

    .footer-section {
        margin-bottom: var(--spacing-md);
    }

    .nav-menu.active {
        flex-direction: column; /* Stack vertically on very small screens */
        justify-content: flex-start;
        align-items: stretch;
        gap: var(--spacing-sm);
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--spacing-sm);
    }

    .logo-image {
        height: 20px;
    }

    .hero-title {
        font-size: 2rem;
        line-height: 1.2;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .btn {
        width: 100%;
        max-width: 280px;
        min-height: 48px;
        padding: var(--spacing-sm) var(--spacing-md);
        font-size: 0.9rem;
    }

    .service-card {
        padding: var(--spacing-md);
    }

    .service-card p {
        font-size: 0.9rem;
    }
}

/* Ultra-wide screens */
@media (min-width: 1600px) {
    .container {
        max-width: 1400px;
    }

    .hero-title {
        font-size: 4rem;
    }

    .hero-subtitle {
        font-size: 1.8rem;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .logo-image {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Landscape mobile devices */
@media (max-width: 768px) and (orientation: landscape) {
    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero {
        min-height: 70vh;
    }
}

/* Print styles */
@media print {
    .nav-logo,
    .btn,
    .discord-footer-btn,
    .hamburger {
        display: none !important;
    }

    body {
        background: white !important;
        color: black !important;
    }

    .hero-title,
    h2, h3 {
        color: black !important;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .hero::before {
        animation: none;
    }
    
    .hero-title {
        animation: none;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --text-primary: #ffffff;
        --text-secondary: #cccccc;
        --accent-cyan: #00ffff;
        --accent-green: #00ff00;
    }
}

/* ========================================
   COOL QUIRKS - Enhanced User Experience
   ======================================== */

/* Enhanced Button Hover Effects */
.btn {
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(0, 255, 153, 0.3) 0%, transparent 70%);
    transition: width 0.6s, height 0.6s;
    transform: translate(-50%, -50%);
    border-radius: 50%;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

/* Card Hover Effects */
.service-card,
.stat,
.support-card {
    position: relative;
}

.service-card::after,
.stat::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent, rgba(0, 198, 255, 0.1), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.service-card:hover::after,
.stat:hover::after {
    opacity: 1;
}

/* Subtle Parallax Effect */
.hero {
    background-attachment: fixed;
}

/* Typing Effect for Hero Title (CSS only approximation) */
.hero-title {
    overflow: hidden;
    white-space: nowrap;
    border-right: 2px solid var(--accent-green);
    animation: typing 3.5s steps(40, end), blink-caret 0.75s step-end infinite;
    animation-delay: 1s;
    animation-fill-mode: both;
}

@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes blink-caret {
    from, to { border-color: transparent; }
    50% { border-color: var(--accent-green); }
}

/* Enhanced Focus Effects */
*:focus-visible {
    outline: 3px solid var(--accent-green);
    outline-offset: 2px;
    animation: focus-pulse 2s infinite;
}

@keyframes focus-pulse {
    0% { box-shadow: 0 0 0 0 rgba(0, 255, 153, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(0, 255, 153, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 255, 153, 0); }
}

/* Scroll-triggered Animations */
@media (prefers-reduced-motion: no-preference) {
    .service-card,
    .stat,
    .support-card {
        opacity: 0;
        transform: translateY(20px);
        animation: fadeInUp 0.6s ease-out forwards;
    }

    .service-card:nth-child(1) { animation-delay: 0.1s; }
    .service-card:nth-child(2) { animation-delay: 0.2s; }
    .service-card:nth-child(3) { animation-delay: 0.3s; }
    .service-card:nth-child(4) { animation-delay: 0.4s; }
}

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

/* Secret Easter Egg - Konami Code */
.konami-activated .hero-title::after {
    content: ' 🚀 UNLOCKED!';
    animation: rainbow 2s linear infinite;
}

@keyframes rainbow {
    0% { color: #ff0000; }
    16% { color: #ff8000; }
    33% { color: #ffff00; }
    50% { color: #00ff00; }
    66% { color: #0080ff; }
    83% { color: #8000ff; }
    100% { color: #ff0000; }
}

/* Matrix Rain Effect (Subtle) */
body {
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    background:
        linear-gradient(180deg, transparent 0%, rgba(0, 255, 153, 0.03) 50%, transparent 100%),
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 2px,
            rgba(0, 255, 153, 0.1) 2px,
            rgba(0, 255, 153, 0.1) 4px
        );
    animation: matrix-rain 10s linear infinite;
    opacity: 0.1;
}

@keyframes matrix-rain {
    0% { background-position: 0 0; }
    100% { background-position: 0 100px; }
}

/* Enhanced Mobile Interactions */
@media (hover: none) and (pointer: coarse) {
    .btn:active {
        transform: scale(0.95);
        transition: transform 0.1s;
    }

    .service-card:active,
    .stat:active {
        transform: scale(0.98);
        transition: transform 0.1s;
    }

    /* Disable heavy animations on mobile */
    .btn::before,
    .hero-title,
    .nav-logo::before,
    body::after,
    body::before {
        animation: none !important;
    }

    .hero {
        background-attachment: scroll; /* Fix mobile parallax issues */
    }
}

/* Discord Button Styling */
.discord-btn,
.discord-footer-btn {
    background: linear-gradient(135deg, #5865F2 0%, #4752C4 100%) !important;
    color: #ffffff !important;
    border: none !important;
    box-shadow: 0 4px 14px 0 rgba(88, 101, 242, 0.39) !important;
    text-shadow: none !important;
    font-weight: 600 !important;
    letter-spacing: 0.5px !important;
}

.discord-btn:hover,
.discord-footer-btn:hover,
.discord-btn:focus,
.discord-footer-btn:focus {
    background: linear-gradient(135deg, #4752C4 0%, #3C45B3 100%) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px 0 rgba(88, 101, 242, 0.5) !important;
    color: #ffffff !important;
}

.discord-btn:active,
.discord-footer-btn:active {
    transform: translateY(0) !important;
    box-shadow: 0 2px 10px 0 rgba(88, 101, 242, 0.4) !important;
}

/* Discord Icon Styling */
.discord-icon {
    margin-right: var(--spacing-xs);
    font-size: 1.1em;
}
