/* ============================================
   Fur_Craft — Premium Stylesheet
   ============================================ */

:root {
    /* Default Theme (Deep Forest) - Will be overridden by JS */
    --bg-deep: #080b12;
    --bg-dark: #0d1117;
    --bg-card: rgba(21, 27, 37, 0.7);
    --bg-card-hover: rgba(28, 35, 51, 0.8);
    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(82, 183, 136, 0.5);

    --primary: #52b788;
    --primary-light: #95d5b2;
    --primary-dark: #2d6a4f;
    --accent: #6c63ff;
    --danger: #ef4444;

    --text-white: #f0f2f5;
    --text-light: #c9d1d9;
    --text-muted: #8b949e;

    --font: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-heading: 'Outfit', sans-serif;
    /* Reverted to modern sans-serif as per feedback */
    --font-mono: 'Consolas', 'Monaco', 'Courier New', monospace;
    /* Tech feel for numbers */

    --radius: 16px;
    --radius-sm: 10px;
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    --transition: 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Custom Cursor */
body {
    cursor: none;
    /* Hide default cursor */
}

/* Custom Cursor - Crosshair Style */
/* Custom Cursor - FPS Crosshair Style */
.custom-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 0;
    height: 0;
    pointer-events: none;
    z-index: 9999;
    /* Spread effect controlled by JS updating --spread variable */
    transform: translate(0, 0);
    mix-blend-mode: normal;
    /* Removed transition to avoid lag with JS position updates */
}

/* Four lines of the crosshair */
.custom-cursor::before,
.custom-cursor::after,
.custom-cursor .h-line,
.custom-cursor .v-line {
    content: '';
    position: absolute;
    background-color: var(--primary);
    transition: all 0.1s ease-out;
    /* Smooth spreading */
}


/* Left line - Using extra spans if needed, or box-shadow?
   Actually, pseudo-elements only give us 2.
   Let's use JS to add 2 inner spans for the other 2 lines to simplify CSS or use box-shadow.
   Box-shadow approach is tricky for spreading.
   Let's stick to adding spans in JS for the other 2 lines.
   Wait, I can use a simpler approach: 2 pseudo elements, one for V-bar, one for H-bar, but user wants "gap" in middle.
   So we need 4 separate pieces.
   I will update JS to add 4 lines inside cursor.
*/

.custom-cursor .line {
    position: absolute;
    background-color: var(--primary);
    transition: transform 0.1s ease-out;
}

.custom-cursor .line.top {
    width: 2px;
    height: 8px;
    left: -1px;
    top: -10px;
    transform: translateY(calc(var(--spread, 0) * -1px));
}

.custom-cursor .line.bottom {
    width: 2px;
    height: 8px;
    left: -1px;
    top: 2px;
    transform: translateY(calc(var(--spread, 0) * 1px));
}

.custom-cursor .line.left {
    width: 8px;
    height: 2px;
    left: -10px;
    top: -1px;
    transform: translateX(calc(var(--spread, 0) * -1px));
}

.custom-cursor .line.right {
    width: 8px;
    height: 2px;
    left: 2px;
    top: -1px;
    transform: translateX(calc(var(--spread, 0) * 1px));
}

.custom-cursor.hover .line {
    background-color: var(--accent);
    transform: scale(0.8);
    /* Shrink slightly on target */
}

/* Inner Dot removed for clean crosshair, or kept small? Let's keep a tiny center dot */
/* Actually, let's make it a pure crosshair with a gap in the middle using mask or just simple lines */
/* Improving crosshair: Circle with a center dot is classic 'Red Dot' style, or just a cross. */
/* User asked for "aiming sight". Let's do a circle with a center dot. */

.custom-cursor.hover {
    width: 10px;
    height: 10px;
    background-color: var(--accent);
    border-color: transparent;
    border-radius: 50%;
}

.custom-cursor.hover::before,
.custom-cursor.hover::after {
    display: none;
    /* Hide crosshair lines on hover/click to indicate selection */
}

.cursor-trail {
    position: fixed;
    top: 0;
    left: 0;
    width: 8px;
    height: 8px;
    background-color: var(--primary);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 9998;
    opacity: 0.6;
    transition: opacity 0.5s;
}



/* 3D Tilt Base */
.tilt-card {
    transform-style: preserve-3d;
    transform: perspective(1000px);
}

/* 3D Tilt Base */
.tilt-card {
    transform-style: preserve-3d;
    transform: perspective(1000px);
}


/* ---- Reset & Base ---- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font);
    background: var(--bg-deep);
    color: var(--text-light);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ---- Particles ---- */
#particles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* ---- Navbar ---- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 16px 0;
    z-index: 1000;
    background: transparent;
    transition: background var(--transition), padding var(--transition), box-shadow var(--transition);
}

.navbar.scrolled {
    background: rgba(8, 11, 18, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 10px 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.4rem;
    font-weight: 700;
    z-index: 1001;
}

.logo-icon {
    font-size: 1.6rem;
    filter: drop-shadow(0 0 8px rgba(82, 183, 136, 0.5));
}

.logo-text {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    padding: 4px 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    border-radius: 1px;
    transition: width var(--transition);
}

.nav-links a:hover {
    color: var(--text-white);
}

.nav-links a:hover::after {
    width: 100%;
}

/* Navbar QQ Link - Special Styling */
.nav-qq-link {
    background: linear-gradient(135deg, rgba(82, 183, 136, 0.15), rgba(82, 183, 136, 0.08)) !important;
    padding: 8px 16px !important;
    border-radius: 8px;
    border: 1px solid rgba(82, 183, 136, 0.3);
    transition: var(--transition);
    color: var(--primary-light) !important;
}

.nav-qq-link:hover {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark)) !important;
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(82, 183, 136, 0.3);
}

.nav-qq-link::after {
    display: none !important;
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
    padding: 5px;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-white);
    border-radius: 2px;
    transition: var(--transition);
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ---- Hero Section ---- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    padding: 120px 0 80px;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(82, 183, 136, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(108, 99, 255, 0.06) 0%, transparent 50%),
        linear-gradient(180deg, transparent 0%, var(--bg-deep) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(82, 183, 136, 0.1);
    border: 1px solid rgba(82, 183, 136, 0.2);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--primary-light);
    margin-bottom: 30px;
    letter-spacing: 0.5px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font);
    /* Consistent modern look */
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 16px;
    letter-spacing: 0.5px;
    /* Slightly wider for modern feel */
}

h1 {
    letter-spacing: -1px;
    /* Tight tracking for large titles */
}

.ip-address,
.stat-number,
#server-ip,
.detail-value {
    font-family: var(--font-mono);
    letter-spacing: -0.5px;
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 24px;
    color: var(--text-white);
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary), var(--primary-light), var(--accent));
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradient-shift 4s ease infinite;
}

@keyframes gradient-shift {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.8;
}

/* IP Card */
.server-ip-section {
    margin-bottom: 50px;
}

.ip-card {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-subtle);
    padding: 20px 40px;
    border-radius: var(--radius);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    cursor: pointer;
    transition: var(--transition);
}

.ip-card:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: var(--border-hover);
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(82, 183, 136, 0.1);
}

.ip-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
}

.ip-address {
    display: flex;
    align-items: center;
    gap: 12px;
}

#server-ip {
    font-size: 1.3rem;
    font-weight: 600;
    font-family: 'Courier New', monospace;
    color: var(--text-white);
    letter-spacing: 1px;
}

.copy-btn {
    background: none;
    border: none;
    color: var(--primary);
    font-size: 1.1rem;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.copy-btn:hover {
    color: var(--primary-light);
    transform: scale(1.1);
}

.copy-tooltip {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: #fff;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.copy-tooltip.show {
    opacity: 1;
}

.ip-backup {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Uptime Stats */
.hero-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-white);
    font-variant-numeric: tabular-nums;
    min-width: 60px;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--border-subtle);
}

.uptime-label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    animation: bounce 2s infinite;
    color: var(--text-muted);
    font-size: 1.2rem;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    50% {
        transform: translateX(-50%) translateY(10px);
    }
}

/* ---- Status Section ---- */
.status-section {
    padding: 100px 0;
    position: relative;
    z-index: 1;
}

.section-title {
    text-align: center;
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-white);
}

.section-title i {
    color: var(--primary);
    margin-right: 10px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 60px;
    font-size: 1.05rem;
}

.status-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.status-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius);
    padding: 30px;
    transition: var(--transition);
}

.status-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.status-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.status-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--text-muted);
    transition: var(--transition);
}

.status-dot.online {
    background: var(--primary);
    box-shadow: 0 0 12px var(--primary);
    animation: pulse-dot 2s infinite;
}

.status-dot.offline {
    background: var(--danger);
    box-shadow: 0 0 12px var(--danger);
}

@keyframes pulse-dot {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(82, 183, 136, 0.4);
    }

    50% {
        box-shadow: 0 0 0 8px rgba(82, 183, 136, 0);
    }
}

.status-text {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-white);
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-subtle);
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-label {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.detail-label i {
    margin-right: 8px;
    color: var(--primary);
    width: 16px;
    text-align: center;
}

.detail-value {
    color: var(--text-white);
    font-weight: 500;
    font-size: 0.95rem;
}

.player-bar-container {
    margin-top: 20px;
    height: 6px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
    overflow: hidden;
}

.player-bar {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    border-radius: 3px;
    transition: width 1s ease;
}

.info-status h3 {
    font-size: 1.2rem;
    color: var(--text-white);
    margin-bottom: 20px;
}

.info-status h3 i {
    color: var(--primary);
    margin-right: 8px;
}

.info-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.info-list li {
    color: var(--text-light);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 12px;
}

.info-list li i {
    color: var(--primary);
    font-size: 0.85rem;
    flex-shrink: 0;
}

/* ---- Features Section ---- */
.features-section {
    padding: 100px 0;
    position: relative;
    z-index: 1;
    background: linear-gradient(180deg, transparent, rgba(82, 183, 136, 0.02), transparent);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius);
    padding: 30px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.04), transparent);
    transform: skewX(-15deg);
    transition: 0.6s;
    pointer-events: none;
}

.feature-card:hover::before {
    left: 120%;
}

.feature-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.feature-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, rgba(82, 183, 136, 0.15), rgba(82, 183, 136, 0.05));
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--primary);
    font-size: 1.4rem;
    transition: var(--transition);
}

.feature-card:hover .feature-icon {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    transform: scale(1.05);
}

.feature-card h3 {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-white);
    margin-bottom: 12px;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.7;
}

/* ---- Gallery Section ---- */
.gallery-section {
    padding: 100px 0;
    position: relative;
    z-index: 1;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

/* Gallery Items - Now with gradient backgrounds */
.gallery-item {
    aspect-ratio: 16 / 10;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.gallery-placeholder-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    color: rgba(255, 255, 255, 0.95);
    z-index: 2;
    position: relative;
}

.gallery-placeholder-content i {
    font-size: 3rem;
    opacity: 0.9;
}

.gallery-placeholder-content p {
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.gallery-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.1);
    opacity: 0;
    transition: opacity var(--transition);
    z-index: 1;
}

.gallery-item:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.3);
}

.gallery-item:hover::before {
    opacity: 1;
}

/* Legacy placeholder support - for when actual images are added */
.gallery-placeholder {
    aspect-ratio: 16 / 10;
    background: var(--bg-card);
    border: 1px dashed rgba(255, 255, 255, 0.1);
    border-radius: var(--radius);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: var(--text-muted);
    transition: var(--transition);
}

.gallery-placeholder i {
    font-size: 2rem;
    opacity: 0.3;
}

.gallery-placeholder p {
    font-size: 0.85rem;
}

.gallery-placeholder:hover {
    border-color: var(--border-hover);
    background: var(--bg-card-hover);
}

/* ---- Community Section ---- */
.community-section {
    padding: 100px 0;
    position: relative;
    z-index: 1;
}

.community-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius);
    padding: 60px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.community-glow {
    position: absolute;
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(82, 183, 136, 0.08), transparent 70%);
    pointer-events: none;
}

.community-card h2 {
    font-size: 2rem;
    color: var(--text-white);
    margin-bottom: 16px;
    position: relative;
}

.community-card p {
    color: var(--text-muted);
    max-width: 500px;
    margin: 0 auto 30px;
    font-size: 1rem;
    position: relative;
}

.community-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    position: relative;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 32px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    box-shadow: 0 4px 20px rgba(82, 183, 136, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(82, 183, 136, 0.4);
}

/* ---- Footer ---- */
.footer {
    background: var(--bg-card);
    border-top: 1px solid var(--border-subtle);
    padding: 60px 0 30px;
    position: relative;
    z-index: 1;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand .logo-icon {
    font-size: 1.4rem;
}

.footer-brand .logo-text {
    font-size: 1.3rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.footer-brand p {
    color: var(--text-muted);
    margin-top: 12px;
    font-size: 0.9rem;
}

.footer-links-group h4 {
    color: var(--text-white);
    font-size: 0.95rem;
    margin-bottom: 16px;
}

.footer-links-group ul {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-links-group a {
    color: var(--text-muted);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-links-group a:hover {
    color: var(--primary);
}

.footer-bottom {
    border-top: 1px solid var(--border-subtle);
    padding-top: 24px;
    text-align: center;
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* ---- Scroll Animations ---- */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered delay for children */
.animate-on-scroll:nth-child(1) {
    transition-delay: 0.05s;
}

.animate-on-scroll:nth-child(2) {
    transition-delay: 0.1s;
}

.animate-on-scroll:nth-child(3) {
    transition-delay: 0.15s;
}

.animate-on-scroll:nth-child(4) {
    transition-delay: 0.2s;
}

.animate-on-scroll:nth-child(5) {
    transition-delay: 0.25s;
}

.animate-on-scroll:nth-child(6) {
    transition-delay: 0.3s;
}

/* ---- Responsive Design ---- */

/* Tablet */
@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-top {
        grid-template-columns: 1fr 1fr;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 75%;
        max-width: 300px;
        height: 100vh;
        background: rgba(13, 17, 23, 0.97);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 24px;
        transition: right var(--transition);
        border-left: 1px solid var(--border-subtle);
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        font-size: 1.1rem;
    }

    .hamburger {
        display: flex;
    }

    .hero {
        padding: 100px 0 60px;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .ip-card {
        padding: 16px 24px;
        width: 90%;
        max-width: 360px;
    }

    #server-ip {
        font-size: 1rem;
    }

    .stat-number {
        font-size: 1.8rem;
    }

    .status-grid {
        grid-template-columns: 1fr;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .community-card {
        padding: 40px 24px;
    }

    .footer-top {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }

    .footer-links-group ul {
        align-items: center;
    }
}

/* Small Mobile */
@media (max-width: 400px) {
    .container {
        padding: 0 16px;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .hero-stats {
        gap: 12px;
    }

    .stat-number {
        font-size: 1.5rem;
        min-width: 45px;
    }
}