:root {
    --gold: #d4af37;
    --gold-dim: rgba(212, 175, 55, 0.4);
    --gold-dark: #b58d20;
    --dark-bg: #070707;
    --card-bg: #0d0d0f;
    --card-border: #1a1a1c;
    --text-main: #f0f0f0;
    --text-muted: #888888;
    --crimson: #8b0000;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    background-color: var(--dark-bg);
    color: var(--text-main);
    font-family: 'Outfit', sans-serif;
    overflow-x: hidden;
}

.title-cinzel {
    font-family: 'Cinzel', serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.gold-text {
    color: var(--gold);
    text-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5%;
}

.active {
    color: var(--gold) !important;
    text-shadow: 0 0 10px var(--gold-dim) !important;
}


/* --- Floating Ancient Navbar --- */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all 0.4s ease;
    border-bottom: 1px solid transparent;
}

nav.scrolled {
    background: rgba(5, 5, 5, 0.95);
    border-bottom: 1px solid var(--gold-dim);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.8);
    padding: 0.8rem 5%;
}

.logo {
    font-family: 'Cinzel', serif;
    font-size: 1.4rem;
    font-weight: 800;
    text-shadow: 2px 2px 5px rgba(0,0,0,0.8);
    text-decoration: none;
    color: inherit;
    display: inline-block;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-muted);
    font-family: 'Cinzel', serif;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nav-links a:hover {
    color: var(--gold);
    text-shadow: 0 0 10px var(--gold-dim);
}

/* --- Epic Parallax Hero --- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    background-image: url('assets/hero_bg.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Parallax effect */
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(0,0,0,0.2) 0%, #070707 90%);
    box-shadow: inset 0 0 150px #070707;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
}

.hero-title {
    font-family: 'Cinzel', serif;
    font-size: 6vw;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    text-shadow: 0 5px 20px rgba(0,0,0,0.9);
    opacity: 0;
    animation: fadeIn 1.2s ease 0.3s forwards;
    transform: translateY(20px);
}

.hero-content p {
    font-size: 1.4rem;
    color: #cecece;
    margin: 0 auto 3rem;
    max-width: 700px;
    opacity: 0;
    animation: fadeIn 1.2s ease 0.6s forwards;
    transform: translateY(20px);
    text-shadow: 0 2px 10px rgba(0,0,0,0.8);
}

.hero-buttons {
    opacity: 0;
    animation: fadeIn 1.2s ease 0.9s forwards;
    transform: translateY(20px);
}

/* --- Fantasy Buttons --- */
.btn-fantasy {
    position: relative;
    display: inline-block;
    padding: 1rem 2.5rem;
    text-decoration: none;
    font-family: 'Cinzel', serif;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 2px;
    background: transparent;
    border: 1px solid var(--gold);
    transition: all 0.3s ease;
    overflow: hidden;
    /* Diagonal cuts using clip-path for that MMO feel */
    clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
    margin: 0 10px;
}

.btn-fantasy::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: var(--gold);
    z-index: -1;
    transform: translateX(-100%);
    transition: transform 0.4s ease;
}

.btn-fantasy:hover {
    color: #000;
    box-shadow: 0 0 20px var(--gold-dim);
}

.btn-fantasy:hover::before {
    transform: translateX(0);
}

.btn-fantasy.primary {
    background: rgba(212, 175, 55, 0.1);
}

.btn-fantasy.secondary {
    border-color: var(--text-muted);
    color: var(--text-main);
}
.btn-fantasy.secondary::before {
    background: var(--text-muted);
}
.btn-fantasy.secondary:hover {
    color: #000;
}

/* --- Systems Grid --- */
.systems-section {
    padding: 8rem 8%;
    position: relative;
    background: var(--dark-bg);
}

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

.section-header h2 {
    font-size: 3.5rem;
    color: white;
}

.section-header span {
    color: var(--gold);
}

.header-divider {
    height: 3px;
    width: 150px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    margin: 1rem auto;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 3rem;
    max-width: 1500px;
    margin: 0 auto;
    justify-content: center; /* Center them if there are few */
}

/* Fantasy Card Styling */
.system-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    position: relative;
    padding-bottom: 2rem;
    transition: all 0.4s ease;
    /* Angled corners for a game UI look */
    clip-path: polygon(25px 0%, 100% 0, 100% calc(100% - 25px), calc(100% - 25px) 100%, 0 100%, 0% 25px);
    opacity: 0;
    transform: translateY(40px);
}

.system-card::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    /* The mouse tracking variable is set in JS */
    background: radial-gradient(600px circle at var(--mouse-x, -500px) var(--mouse-y, -500px), var(--gold-dim), transparent 40%);
    z-index: 10;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s;
}

.system-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.8);
    border-color: var(--card-border);
}

.system-card:hover::after {
    opacity: 1;
}

.card-image-wrapper {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 85%);
}

.card-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s ease;
}

.system-card:hover .card-image {
    transform: scale(1.1);
}

.card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, var(--card-bg) 0%, transparent 100%);
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    padding: 1rem;
}

.price-tag {
    background: rgba(0, 0, 0, 0.8);
    color: var(--gold);
    padding: 0.5rem 1rem;
    border: 1px solid var(--gold-dim);
    border-radius: 4px;
    font-family: 'Cinzel', serif;
    font-weight: 700;
    font-size: 1.1rem;
    box-shadow: 0 0 10px rgba(0,0,0,0.5);
    transform: translateY(0);
    opacity: 1;
    transition: all 0.4s ease;
}

.system-card:hover .price-tag {
    transform: scale(1.05);
    border-color: var(--gold);
}

.card-content {
    padding: 1.5rem 2.5rem;
    position: relative;
    z-index: 2;
}

.card-content h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: var(--gold);
}

.card-content p {
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 2rem;
    min-height: 80px;
}

.btn-small {
    padding: 0.6rem 1.5rem;
    font-size: 0.9rem;
    clip-path: none;
    border-radius: 4px; /* Simpler button inside card */
    background: transparent;
    border: 1px solid var(--gold-dim);
    margin: 0;
}

.btn-small::before { background: var(--gold); }
.btn-small:hover { border-color: var(--gold); }

/* --- Services Section --- */
.services-section {
    padding: 8rem 8%;
    background: #09090b;
    border-top: 1px solid #1a1a1c;
    border-bottom: 1px solid #1a1a1c;
    position: relative;
    overflow: hidden;
}

.services-bg {
    position: absolute;
    top: -50%; left: -50%; width: 200%; height: 200%;
    background: radial-gradient(circle, rgba(212,175,55,0.03) 0%, transparent 50%);
    pointer-events: none;
}

.feature-container {
    display: flex;
    justify-content: center;
    gap: 4rem;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.feature-item {
    text-align: center;
    max-width: 300px;
    opacity: 0;
    transform: translateY(30px);
}

.feature-icon {
    font-size: 3rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    transition: all 0.4s;
}

.feature-item:hover .feature-icon {
    color: var(--gold);
    text-shadow: 0 0 20px var(--gold-dim);
    transform: scale(1.1);
}

.feature-item h4 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: white;
}

.feature-item p {
    color: var(--text-muted);
    line-height: 1.6;
}

/* --- Footer --- */
footer {
    padding: 6rem 5% 3rem;
    text-align: center;
    background: var(--dark-bg);
}

.footer-divider {
    height: 1px;
    width: 60%;
    margin: 0 auto 4rem;
    background: linear-gradient(90deg, transparent, var(--gold-dim), transparent);
}

.footer-desc {
    color: var(--text-muted);
    margin: 1rem auto 3rem;
    font-size: 1.1rem;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 3rem;
}

.social-links a {
    color: var(--text-muted);
    font-size: 2rem;
    transition: all 0.3s;
}

.social-links a:hover {
    color: var(--gold);
    transform: translateY(-5px);
    text-shadow: 0 0 15px var(--gold-dim);
}

.copyright {
    color: #444;
    font-size: 0.9rem;
    font-family: 'Cinzel', serif;
}

/* --- Animations --- */
@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Video Embed Styling */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin-top: 1rem;
}

.video-responsive {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.8);
    background: #000;
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.video-responsive iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.show {
    opacity: 1 !important;
    transform: translateY(0) !important;
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- Mobile Responsiveness & Menu --- */
.mobile-menu-toggle {
    display: none;
    font-size: 1.8rem;
    color: var(--gold);
    cursor: pointer;
    z-index: 1001;
}

@media (max-width: 992px) {
    nav, nav.scrolled { 
        padding: 0.8rem 4% !important; 
        justify-content: space-between;
        gap: 10px;
    }
    
    .logo { 
        font-size: 1.2rem !important; 
        flex-shrink: 1;
        white-space: nowrap;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: rgba(10, 10, 12, 0.98);
        backdrop-filter: blur(15px);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1000;
        border-left: 1px solid var(--gold-dim);
        box-shadow: -10px 0 30px rgba(0,0,0,0.5);
        left: auto;
        transform: none;
    }

    .nav-links.active {
        right: 0;
    }

    .mobile-menu-toggle {
        display: flex !important;
        align-items: center;
        justify-content: center;
        font-size: 1.6rem;
        margin-left: auto; /* Push it to the right */
        color: #ffd700;
        text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
    }

    .lang-switch {
        gap: 8px;
    }
    
    .lang-flag {
        width: 22px;
        height: 15px;
    }

    .hero-title { font-size: 3rem; }
    .grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.5rem; }
}

@media (max-width: 600px) {
    .hero-title { font-size: 1.8rem !important; margin-bottom: 1rem; }
    .hero-content p { font-size: 0.9rem; margin-bottom: 2rem; }
    .btn-fantasy { width: 100%; margin: 0.3rem 0; padding: 0.7rem 1rem; font-size: 0.85rem; }
    
    .section-header h2 { font-size: 1.6rem; }
    .logo { font-size: 0.9rem !important; }
    nav { padding: 0.6rem 3%; }
    .mobile-menu-toggle { font-size: 1.3rem; }
}

@media (max-width: 400px) {
    .logo { font-size: 0.8rem !important; }
    .lang-flag { width: 18px; height: 12px; }
}

/* Utilities */
.no-scroll { overflow: hidden; }

/* Utilities */
.systems-section.page-top { padding-top: 150px; min-height: 80vh; }


/* --- Detay Sayfasi Tasarimi --- */
.detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5%;
}

.main-image-wrapper {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--card-border);
    box-shadow: 0 10px 30px rgba(0,0,0,0.8);
    background: var(--card-bg);
}

.main-image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
}

.gallery-container {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    flex-wrap: wrap;
}

.gallery-thumb {
    width: 80px;
    height: 80px;
    background-size: cover;
    background-position: center;
    border-radius: 8px;
    border: 1px solid var(--card-border);
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0.6;
}

.gallery-thumb:hover {
    border-color: var(--gold);
    opacity: 1;
    transform: scale(1.05);
}

.detail-info {
    color: var(--text-main);
}

.detail-price {
    display: inline-block;
    background: rgba(212, 175, 55, 0.1);
    color: var(--gold);
    padding: 0.5rem 1.5rem;
    border: 1px solid var(--gold);
    font-family: 'Cinzel', serif;
    font-weight: 700;
    font-size: 1.5rem;
    margin: 1.5rem 0;
    border-radius: 4px;
}

.long-desc {
    color: #cecece;
    line-height: 1.8;
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.long-desc p { margin-bottom: 1rem; }
.long-desc img { max-width: 100%; height: auto; border-radius: 8px; margin: 1rem 0; border: 1px solid var(--card-border); }
.long-desc h1, .long-desc h2, .long-desc h3 { color: var(--gold); margin: 1.5rem 0 1rem; font-family: 'Cinzel', serif; }

.features-list {
    list-style: none;
    margin-top: 1rem;
}

.features-list li {
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--card-border);
    color: #e2e2e2;
    display: flex;
    align-items: center;
}

@media (max-width: 900px) {
    .detail-grid { grid-template-columns: 1fr; }
}

.long-desc-centered { text-align: center; }
.long-desc-centered p, .long-desc-centered h1, .long-desc-centered h2, .long-desc-centered h3 { text-align: center; justify-content: center; }
.long-desc-centered img { margin: 1rem auto; display: block; }

/* --- Featured Card Styles --- */
@property --border-angle {
    syntax: "<angle>";
    inherits: false;
    initial-value: 0deg;
}

@keyframes rotate-border {
    to { --border-angle: 360deg; }
}

.featured-card {
    border: 2px solid transparent !important;
    background: 
        linear-gradient(var(--card-bg), var(--card-bg)) padding-box,
        conic-gradient(from var(--border-angle), transparent 30%, var(--gold) 50%, var(--gold-dark) 55%, transparent 70%) border-box !important;
    animation: rotate-border 4s linear infinite !important;
    box-shadow: 0 0 25px rgba(212, 175, 55, 0.15) !important;
}

.featured-card:hover {
    box-shadow: 0 10px 45px rgba(212, 175, 55, 0.4) !important;
}

.featured-badge {
    position: absolute;
    top: 30px;
    left: -55px;
    width: 200px;
    text-align: center;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: #000;
    font-family: 'Cinzel', serif;
    font-size: 0.70rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 6px 0;
    transform: rotate(-45deg);
    z-index: 20;
    box-shadow: 0 4px 15px rgba(0,0,0,0.6);
    pointer-events: none;
}

.system-card {
    overflow: hidden; /* Ribbon'un kart disina tasmamasi icin */
}

/* --- Flag Language Switcher --- */
.lang-switch {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Discord Button Premium Look */
.lang-switch .discord-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    background: rgba(88, 101, 242, 0.15);
    border: 1px solid rgba(88, 101, 242, 0.5);
    border-radius: 50%;
    color: #7289da;
    font-size: 1.25rem;
    margin-right: 15px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 0 10px rgba(88, 101, 242, 0.4);
    text-decoration: none;
    position: relative;
}

.lang-switch .discord-btn:hover {
    transform: scale(1.2) translateY(-2px);
    background: rgba(88, 101, 242, 0.3);
    border-color: #5865F2;
    color: #fff;
    box-shadow: 0 0 20px rgba(88, 101, 242, 0.8), inset 0 0 8px rgba(255,255,255,0.2);
}

.lang-switch a {
    display: inline-flex;
    transition: all 0.3s ease;
    border-radius: 4px;
    overflow: hidden;
    line-height: 0;
    opacity: 0.6;
    border: 1px solid transparent;
    padding: 0;
}

.lang-switch a::before {
    display: none; /* override fantasy button effects if any spill over */
}

.lang-switch a:hover {
    transform: scale(1.15);
    opacity: 1;
    box-shadow: 0 0 15px var(--gold-dim);
    text-shadow: none;
}

.lang-switch a.active-lang {
    opacity: 1;
    box-shadow: 0 0 10px var(--gold);
    border: 1px solid var(--gold);
}

.lang-flag {
    width: 28px;
    height: 20px;
    object-fit: cover;
    display: block;
}

/* --- Team Section --- */
.team-section {
    padding: 8rem 8%;
    background: var(--dark-bg);
    position: relative;
    overflow: hidden;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
    max-width: 1200px;
    margin: 3rem auto 0;
}

.team-card {
    position: relative;
    perspective: 1000px;
}

.team-card-inner {
    background: rgba(20, 20, 25, 0.6);
    border: 1px solid rgba(255, 215, 0, 0.1);
    border-radius: 15px;
    padding: 2.5rem 1.5rem;
    text-align: center;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
    height: 100%;
}

.team-card-inner::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 4px;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    opacity: 0;
    transition: opacity 0.3s;
}

.team-card:hover .team-card-inner {
    transform: translateY(-10px);
    border-color: var(--gold-dim);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
}

.team-card:hover .team-card-inner::before {
    opacity: 1;
}

.team-image-wrapper {
    width: 120px;
    height: 120px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    padding: 5px;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
}

.team-image-wrapper img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #000;
}

.team-info h3 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    color: #fff;
}

.team-info .role {
    color: var(--gold);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.team-discord-user {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(88, 101, 242, 0.05);
    color: #a4b1e6;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    border: 1px solid rgba(88, 101, 242, 0.15);
    transition: all 0.3s ease;
}

.team-card:hover .team-discord-user {
    background: rgba(88, 101, 242, 0.15);
    color: #fff;
    border-color: rgba(88, 101, 242, 0.4);
}

@media (max-width: 768px) {
    .team-grid { grid-template-columns: 1fr; gap: 2rem; }
}

