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

:root {
    --primary-purple: #6c5ce7;
    --secondary-purple: #a29bfe;
    --accent-cyan: #00d2d3;
    --accent-pink: #fd79a8;
    --dark-bg: #0a0e27;
    --darker-bg: #050714;
    --card-bg: #1a1f3a;
    --text-primary: #ffffff;
    --text-secondary: #b8b9c4;
    --text-muted: #6c7293;
    --border-color: #2d3250;
    --success: #00d4aa;
    --warning: #fdcb6e;
    --error: #e74c3c;
    --shadow-glow: rgba(108, 92, 231, 0.3);
}

body {
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    line-height: 1.7;
    color: var(--text-primary);
    background: linear-gradient(135deg, var(--darker-bg) 0%, var(--dark-bg) 100%);
    background-attachment: fixed;
    min-height: 100vh;
    overflow-x: hidden;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header and Navigation */
.header {
    background: rgba(10, 14, 39, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.navbar {
    padding: 1.25rem 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.nav-brand {
    display: flex;
    align-items: center;
    position: relative;
}

.nav-brand h1 {
    font-size: 1.75rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-purple), var(--accent-cyan), var(--accent-pink));
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
    animation: gradient-shift 3s ease infinite;
    position: relative;
}

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

.nav-brand a {
    text-decoration: none;
    display: flex;
    align-items: center;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.nav-menu a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.625rem 1.25rem;
    border-radius: 8px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    display: inline-block;
}

.nav-menu a::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--primary-purple), var(--accent-cyan));
    opacity: 0;
    transition: opacity 0.3s;
    z-index: -1;
}

.nav-menu a:hover {
    color: var(--text-primary);
    transform: translateY(-2px);
}

.nav-menu a:hover::before {
    opacity: 0.15;
}

.nav-menu a.active {
    color: var(--text-primary);
    background: linear-gradient(135deg, var(--primary-purple), var(--accent-cyan));
    box-shadow: 0 4px 15px var(--shadow-glow);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    padding: 0.5rem;
}

.hamburger span {
    width: 28px;
    height: 3px;
    background: var(--text-primary);
    border-radius: 3px;
    transition: all 0.3s;
}

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

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

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

/* Hero Section */
.page-header {
    background: linear-gradient(135deg, rgba(108, 92, 231, 0.1), rgba(0, 210, 211, 0.1));
    border-bottom: 1px solid var(--border-color);
    padding: 4rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(108, 92, 231, 0.1), transparent 70%);
    pointer-events: none;
}

.page-header h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--text-primary), var(--secondary-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    z-index: 1;
}

.page-header p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* Buttons */
.btn-primary,
.btn-secondary {
    display: inline-block;
    padding: 0.875rem 2rem;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-purple), var(--accent-cyan));
    color: var(--text-primary);
    box-shadow: 0 4px 15px var(--shadow-glow);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

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

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px var(--shadow-glow);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-purple);
    border: 2px solid var(--primary-purple);
}

.btn-secondary:hover {
    background: var(--primary-purple);
    color: var(--text-primary);
    transform: translateY(-3px);
    box-shadow: 0 6px 25px var(--shadow-glow);
}

/* Content Sections */
.content-section {
    padding: 5rem 0;
    background: transparent;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.75rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary-purple), var(--accent-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-header p {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 800px;
    margin: 0 auto;
}

/* Feature Cards */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-purple), var(--accent-cyan));
    transform: scaleX(0);
    transition: transform 0.4s;
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary-purple);
    box-shadow: 0 12px 40px rgba(108, 92, 231, 0.2);
}

.feature-card h3 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 1.5rem;
    font-weight: 700;
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.8;
}

/* Info Sections */
.info-section {
    padding: 5rem 0;
    background: rgba(26, 31, 58, 0.3);
    border-radius: 24px;
    margin: 3rem 0;
}

.info-section.reverse {
    background: rgba(26, 31, 58, 0.3);
}

.info-section.reverse .container {
    direction: rtl;
}

.info-section.reverse .container > * {
    direction: ltr;
}

.info-section .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.info-content h2 {
    color: var(--text-primary);
    font-size: 2.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--primary-purple), var(--accent-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.info-content p {
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
    line-height: 1.8;
    font-size: 1.05rem;
}

.info-content ul {
    list-style: none;
    margin: 2rem 0;
}

.info-content ul li {
    padding: 0.75rem 0;
    padding-left: 2rem;
    position: relative;
    color: var(--text-secondary);
}

.info-content ul li::before {
    content: ">";
    position: absolute;
    left: 0;
    color: var(--accent-cyan);
    font-size: 0.75rem;
}

.info-image {
    background: var(--card-bg);
    border-radius: 16px;
    height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.info-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(108, 92, 231, 0.1), rgba(0, 210, 211, 0.1));
    z-index: 1;
}

.info-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: relative;
    z-index: 2;
}

.placeholder-image {
    color: var(--text-muted);
    font-size: 1.1rem;
    position: relative;
    z-index: 1;
}

/* CTA Section */
.cta-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, rgba(108, 92, 231, 0.15), rgba(0, 210, 211, 0.15));
    border-radius: 24px;
    text-align: center;
    margin: 3rem 0;
    border: 1px solid var(--border-color);
}

.cta-content h2 {
    font-size: 2.75rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--text-primary), var(--secondary-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cta-content p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Article Content */
.article-content {
    max-width: 900px;
    margin: 0 auto;
}

.article-image {
    margin: 3rem 0;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
}

.article-image img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s;
}

.article-image:hover img {
    transform: scale(1.05);
}

.article-content h2 {
    color: var(--text-primary);
    font-size: 2.25rem;
    font-weight: 700;
    margin: 3rem 0 1.5rem;
    background: linear-gradient(135deg, var(--primary-purple), var(--accent-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.article-content p {
    color: var(--text-secondary);
    margin-bottom: 1.75rem;
    line-height: 1.9;
    font-size: 1.05rem;
}

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

.article-content ul {
    list-style: none;
    margin: 2rem 0;
    padding: 0;
}

.article-content ul li {
    position: relative;
    padding: 1rem 0 1rem 2.5rem;
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 1.05rem;
    border-bottom: 1px solid rgba(45, 50, 80, 0.3);
    transition: all 0.3s ease;
}

.article-content ul li:last-child {
    border-bottom: none;
}

.article-content ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 1.4rem;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-purple), var(--accent-cyan));
    box-shadow: 0 0 10px rgba(108, 92, 231, 0.5);
}

.article-content ul li:hover {
    color: var(--text-primary);
    padding-left: 3rem;
    transform: translateX(5px);
}

.article-content ul li:hover::before {
    width: 10px;
    height: 10px;
    box-shadow: 0 0 15px rgba(108, 92, 231, 0.8);
}

/* Grid Layouts */
.mechanics-grid,
.welfare-grid,
.biome-grid,
.economy-grid,
.staff-grid,
.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2.5rem 0;
}

.mechanic-card,
.welfare-card,
.biome-card,
.economy-card,
.staff-card,
.tip-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 16px;
    border-left: 4px solid var(--primary-purple);
    transition: all 0.3s;
    border-top: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.mechanic-card:hover,
.welfare-card:hover,
.biome-card:hover,
.economy-card:hover,
.staff-card:hover,
.tip-card:hover {
    transform: translateX(8px);
    border-left-color: var(--accent-cyan);
    box-shadow: 0 8px 25px rgba(108, 92, 231, 0.15);
}

.mechanic-card h3,
.welfare-card h3,
.biome-card h3,
.economy-card h3,
.staff-card h3,
.tip-card h3 {
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-size: 1.4rem;
    font-weight: 700;
}

.mechanic-card p,
.welfare-card p,
.biome-card p,
.economy-card p,
.staff-card p,
.tip-card p {
    color: var(--text-secondary);
    line-height: 1.8;
}

/* Lists */
.modes-list,
.enrichment-list,
.climate-list,
.expense-list,
.strategy-list,
.design-tips {
    margin: 2.5rem 0;
}

.mode-item,
.enrichment-item,
.climate-item,
.expense-item,
.strategy-item,
.tip-item {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    border-left: 4px solid var(--accent-cyan);
    border-top: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    transition: all 0.3s;
}

.mode-item:hover,
.enrichment-item:hover,
.climate-item:hover,
.expense-item:hover,
.strategy-item:hover,
.tip-item:hover {
    transform: translateX(5px);
    box-shadow: 0 6px 20px rgba(0, 210, 211, 0.15);
}

.mode-item h3,
.enrichment-item h3,
.climate-item h3,
.expense-item h3,
.strategy-item h3,
.tip-item h3 {
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    font-size: 1.3rem;
    font-weight: 700;
}

.mode-item p,
.enrichment-item p,
.climate-item p,
.expense-item p,
.strategy-item p,
.tip-item p {
    color: var(--text-secondary);
    line-height: 1.8;
}

/* Contact Form */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 3rem;
}

.contact-info h2 {
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-purple), var(--accent-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.contact-info p {
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
    line-height: 1.8;
}

.contact-form-wrapper {
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    align-self: flex-start;
    height: fit-content;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
    padding: 1rem;
    background: var(--darker-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    font-family: inherit;
    font-size: 1rem;
    color: var(--text-primary);
    transition: all 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-purple);
    box-shadow: 0 0 0 3px rgba(108, 92, 231, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.form-group textarea {
    resize: vertical;
    min-height: 140px;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    cursor: pointer;
    accent-color: var(--primary-purple);
    flex-shrink: 0;
}

.checkbox-label a {
    color: var(--accent-cyan);
    text-decoration: underline;
}

.checkbox-label a:hover {
    color: var(--primary-purple);
}

.contact-details {
    margin-top: 2rem;
}

.contact-item {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.contact-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.contact-item h3 {
    color: var(--accent-cyan);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.contact-item p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin: 0;
}

.contact-item a {
    color: var(--accent-cyan);
    text-decoration: none;
    transition: color 0.3s;
}

.contact-item a:hover {
    color: var(--primary-purple);
}

/* Footer */
.footer {
    background: var(--darker-bg);
    border-top: 1px solid var(--border-color);
    padding: 4rem 0 2rem;
    margin-top: 5rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1.25rem;
    color: var(--text-primary);
    font-weight: 700;
    font-size: 1.2rem;
}

.footer-section h4 {
    font-size: 1.1rem;
}

.footer-section p {
    color: var(--text-secondary);
    line-height: 1.8;
}

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

.footer-section ul li {
    margin-bottom: 0.75rem;
}

.footer-section ul li a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s;
    display: inline-block;
}

.footer-section ul li a:hover {
    color: var(--accent-cyan);
    transform: translateX(5px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
}

/* Responsive Design */
@media (max-width: 968px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: var(--card-bg);
        width: 100%;
        text-align: left;
        transition: 0.3s;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
        padding: 2rem;
        border-top: 1px solid var(--border-color);
        max-height: calc(100vh - 70px);
        overflow-y: auto;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu a {
        padding: 1rem;
        border-radius: 8px;
    }

    .page-header h1 {
        font-size: 2.25rem;
    }

    .page-header p {
        font-size: 1.1rem;
    }

    .info-section .container,
    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .features-grid,
    .mechanics-grid,
    .welfare-grid,
    .biome-grid,
    .economy-grid,
    .staff-grid,
    .tips-grid {
        grid-template-columns: 1fr;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 640px) {
    .page-header {
        padding: 3rem 0;
    }

    .page-header h1 {
        font-size: 1.75rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .article-content h2 {
        font-size: 1.75rem;
    }

    .feature-card,
    .contact-form-wrapper {
        padding: 1.75rem;
    }
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Notification Styles */
.notification {
    position: fixed;
    top: 24px;
    right: 24px;
    background: var(--card-bg);
    padding: 1.25rem 1.75rem;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
    z-index: 10000;
    opacity: 0;
    transform: translateX(400px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 320px;
    max-width: 420px;
    border: 1px solid var(--border-color);
}

.notification.show {
    opacity: 1;
    transform: translateX(0);
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.notification-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 16px;
    flex-shrink: 0;
}

.notification-success .notification-icon {
    background: var(--success);
    color: var(--text-primary);
}

.notification-error .notification-icon {
    background: var(--error);
    color: var(--text-primary);
}

.notification-message {
    color: var(--text-primary);
    font-size: 0.95rem;
    line-height: 1.5;
}

.notification-success {
    border-left: 4px solid var(--success);
}

.notification-error {
    border-left: 4px solid var(--error);
}

@media (max-width: 768px) {
    .notification {
        right: 16px;
        left: 16px;
        min-width: auto;
        max-width: none;
        transform: translateY(-100px);
    }

    .notification.show {
        transform: translateY(0);
    }
}

/* Scroll to top button */
.scroll-to-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-purple), var(--accent-cyan));
    color: var(--text-primary);
    border: none;
    cursor: pointer;
    display: none;
    z-index: 999;
    font-size: 24px;
    box-shadow: 0 6px 20px var(--shadow-glow);
    transition: all 0.3s;
}

.scroll-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px var(--shadow-glow);
}

