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

:root {
    --primary-purple: #6c5ce7;
    --secondary-purple: #a29bfe;
    --accent-cyan: #00d2d3;
    --dark-bg: #0f0e17;
    --darker-bg: #0a0912;
    --card-bg: #1a1825;
    --text-primary: #f0f0f0;
    --text-secondary: #b8b8b8;
    --accent-gold: #feca57;
    --accent-pink: #ff6b9d;
    --border-color: #2d2a3e;
    --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: var(--dark-bg);
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(108, 92, 231, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(0, 210, 211, 0.1) 0%, transparent 50%);
    background-attachment: fixed;
    overflow-x: hidden;
}

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

/* Header and Navigation */
.header {
    background: rgba(15, 14, 23, 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.5);
}

.navbar {
    padding: 1.25rem 0;
}

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

.nav-brand h1 {
    font-size: 1.75rem;
    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;
    letter-spacing: -0.5px;
}

.nav-brand a {
    text-decoration: none;
    display: block;
}

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

.nav-menu a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.6rem 1.2rem;
    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: 2px;
    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);
}

/* Page Header */
.page-header {
    background: linear-gradient(135deg, var(--primary-purple) 0%, var(--accent-cyan) 100%);
    padding: 5rem 0 4rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.page-header .container {
    position: relative;
    z-index: 1;
}

.page-header h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    letter-spacing: -1px;
}

.page-header p {
    font-size: 1.25rem;
    opacity: 0.95;
    font-weight: 300;
}

/* Content Sections */
.content-section {
    padding: 4rem 0;
}

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

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

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

/* Feature Cards - Asymmetric Grid */
.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: 4px;
    background: linear-gradient(90deg, var(--primary-purple), var(--accent-cyan));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s;
}

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

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

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

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

/* Info Sections - Side by Side */
.info-section {
    padding: 5rem 0;
    background: var(--darker-bg);
}

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

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

.info-content p {
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
    line-height: 1.9;
    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: 20px;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.info-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
    transition: transform 0.5s;
}

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

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

/* Buttons */
.btn-primary,
.btn-secondary {
    display: inline-block;
    padding: 14px 32px;
    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:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px var(--shadow-glow);
}

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

.btn-secondary:hover {
    background: var(--accent-cyan);
    color: var(--dark-bg);
    transform: translateY(-3px);
}

/* CTA Section */
.cta-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, var(--primary-purple) 0%, var(--accent-cyan) 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('data:image/svg+xml,<svg width="60" height="60" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="dots" width="60" height="60" patternUnits="userSpaceOnUse"><circle cx="30" cy="30" r="2" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100%" height="100%" fill="url(%23dots)"/></svg>');
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-content h2 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.cta-content p {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
}

.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: 20px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
    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 {
    font-size: 2.25rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-purple), var(--accent-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 3rem 0 1.5rem;
    letter-spacing: -0.5px;
}

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

/* 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: 14px;
    border-left: 4px solid var(--accent-cyan);
    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(--primary-purple);
    box-shadow: -8px 0 20px rgba(108, 92, 231, 0.2);
}

.mechanic-card h3,
.welfare-card h3,
.biome-card h3,
.economy-card h3,
.staff-card h3,
.tip-card h3 {
    color: var(--accent-cyan);
    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(--primary-purple);
    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 8px 25px rgba(108, 92, 231, 0.15);
}

.mode-item h3,
.enrichment-item h3,
.climate-item h3,
.expense-item h3,
.strategy-item h3,
.tip-item h3 {
    color: var(--accent-cyan);
    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: flex;
    flex-direction: column;
    gap: 3rem;
    margin-top: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.contact-info-wrapper {
    margin-top: 3rem;
}

.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.contact-info-card {
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    text-align: center;
    transition: all 0.3s;
}

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

.contact-info-card h3 {
    color: var(--accent-cyan);
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.contact-info-card p {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 1rem;
}

.contact-info-card a:hover {
    color: var(--primary-purple);
    text-decoration: underline;
}

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

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

.contact-form-wrapper {
    background: var(--card-bg);
    padding: 3rem;
    border-radius: 20px;
    border: 1px solid var(--border-color);
}

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

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

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

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

.form-group input,
.form-group textarea {
    padding: 1rem;
    background: var(--darker-bg);
    border: 2px 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 textarea {
    resize: vertical;
    min-height: 140px;
}

.form-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--primary-purple);
}

.form-group label[for] {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
}

.form-group label[for] input[type="checkbox"] {
    margin-top: 0.25rem;
    flex-shrink: 0;
}

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

.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(--accent-cyan);
    font-weight: 700;
    font-size: 1.2rem;
}

.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-secondary);
}

/* 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.5);
    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: 32px;
    height: 32px;
    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(--accent-cyan);
    color: var(--dark-bg);
}

.notification-error .notification-icon {
    background: var(--accent-pink);
    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(--accent-cyan);
}

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

/* Responsive Design */
@media (max-width: 1024px) {
    .info-section .container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .contact-info-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 72px;
        flex-direction: column;
        background: var(--card-bg);
        width: 100%;
        text-align: left;
        transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
        padding: 2rem;
        border-top: 1px solid var(--border-color);
        gap: 0.5rem;
    }

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

    .nav-menu a {
        width: 100%;
        padding: 1rem;
    }

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

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

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

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

    .cta-content h2 {
        font-size: 2.25rem;
    }

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

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

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

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

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

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

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

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

    .contact-form-wrapper {
        padding: 2rem 1.5rem;
    }
}

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

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.6s ease-in;
}

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