:root {
    --bg-main: #0b0f19;
    --bg-card: rgba(20, 29, 48, 0.7);
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --primary: #6366f1;
    --primary-hover: #4f46e5;
    --secondary: rgba(255, 255, 255, 0.1);
    --secondary-hover: rgba(255, 255, 255, 0.2);
    --accent-1: #3b82f6;
    --accent-2: #8b5cf6;
    --accent-3: #ec4899;
    --border: rgba(255, 255, 255, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
    position: relative;
}

/* Background Blobs for Atmosphere */
.blob-bg {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    z-index: -1;
    opacity: 0.4;
    animation: drift 20s infinite alternate ease-in-out;
}

.blob-1 {
    top: -10%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--accent-1), transparent 70%);
}

.blob-2 {
    bottom: 20%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--accent-2), transparent 70%);
    animation-delay: -5s;
}

.blob-3 {
    top: 40%;
    left: 40%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--accent-3), transparent 70%);
    animation-delay: -10s;
}

@keyframes drift {
    0% {
        transform: translate(0, 0) scale(1) rotate(0deg);
    }

    50% {
        transform: translate(50px, -50px) scale(1.1) rotate(180deg);
    }

    100% {
        transform: translate(-50px, 50px) scale(1) rotate(360deg);
    }
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

/* Navbar */
.navbar {
    padding: 1.5rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: background 0.3s ease, padding 0.3s ease, box-shadow 0.3s ease;
}

.navbar.scrolled {
    background: rgba(11, 15, 25, 0.85);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    padding: 1rem 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-main);
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.logo i {
    color: var(--primary);
    font-size: 1.8rem;
    background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    font-weight: 600;
    color: var(--text-muted);
    position: relative;
    padding-bottom: 5px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: var(--text-main);
}

.nav-links a:hover::after {
    width: 100%;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.btn-sm {
    padding: 0.5rem 1.2rem;
    font-size: 0.9rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--accent-2));
    color: white;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
    z-index: 1;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--accent-2), var(--accent-1));
    z-index: -1;
    transition: opacity 0.4s ease;
    opacity: 0;
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.6);
}

.btn-primary:hover::before {
    opacity: 1;
}

.glow-btn {
    animation: glow-pulse 2s infinite;
}

@keyframes glow-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(139, 92, 246, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(139, 92, 246, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(139, 92, 246, 0);
    }
}

.btn-secondary {
    background: var(--secondary);
    color: var(--text-main);
    border: 1px solid var(--border);
    backdrop-filter: blur(5px);
}

.btn-secondary:hover {
    background: var(--secondary-hover);
    transform: translateY(-3px);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    text-align: center;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 2rem;
    min-height: 140px;
    /* Sabit yükseklik, yazılar değişirken atlama olmasın diye */
}

@media (max-width: 768px) {
    .hero-title {
        min-height: 180px;
    }
}

.gradient-text {
    background: linear-gradient(135deg, #60a5fa, #c084fc, #ec4899);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
    animation: gradientShine 3s linear infinite;
}

@keyframes gradientShine {
    0% {
        background-position: 0% center;
    }

    100% {
        background-position: 200% center;
    }
}

/* Typewriter Cursor */
.typewrite>.wrap {
    border-right: 0.08em solid #f8fafc;
    animation: blink-caret .75s step-end infinite;
    padding-right: 2px;
}

@keyframes blink-caret {

    from,
    to {
        border-color: transparent
    }

    50% {
        border-color: #f8fafc;
    }
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-inline: auto;
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-bottom: 4rem;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 5rem;
    border-top: 1px solid var(--border);
    padding-top: 3rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number,
.stat-plus {
    font-size: 3rem;
    font-weight: 800;
    color: var(--text-main);
    font-variant-numeric: tabular-nums;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

.stat-plus {
    color: var(--accent-1);
}

.stat-label {
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.95rem;
    margin-top: 0.5rem;
}

/* Features */
.features {
    padding: 6rem 0;
}

.section-title {
    text-align: center;
    font-size: 2.8rem;
    margin-bottom: 4rem;
    background: linear-gradient(to right, #f8fafc, #94a3b8);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.feature-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
}

.feature-card {
    flex: 1 1 250px;
    max-width: 320px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 2.5rem 2rem;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

/* Magic card border glow effect */
.magic-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 20px;
    padding: 2px;
    background: linear-gradient(135deg, transparent, rgba(99, 102, 241, 0.8), transparent);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.magic-card:hover::before {
    opacity: 1;
}

.feature-icon {
    width: 65px;
    height: 65px;
    border-radius: 18px;
    background: rgba(99, 102, 241, 0.15);
    color: var(--accent-1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    transition: transform 0.4s ease, background 0.4s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
    background: var(--primary);
    color: white;
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.5);
}

.feature-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.7;
}

/* Games Section */
.games-section {
    padding: 6rem 0;
    position: relative;
    background: linear-gradient(to bottom, transparent, rgba(11, 15, 25, 0.4), transparent);
}

.game-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
}

.game-card {
    flex: 1 1 300px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 2.5rem 2rem;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 400px;
}

.game-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    border-color: rgba(236, 72, 153, 0.5);
    /* accent-3 hover */
}

.game-icon {
    width: 70px;
    height: 70px;
    border-radius: 20px;
    background: rgba(236, 72, 153, 0.15);
    color: var(--accent-3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    margin-bottom: 1.5rem;
    transition: transform 0.4s ease, background 0.4s ease;
}

.game-card:hover .game-icon {
    transform: scale(1.1) rotate(-5deg);
    background: var(--accent-3);
    color: white;
    box-shadow: 0 0 20px rgba(236, 72, 153, 0.5);
}

.game-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.game-card p {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.6;
}

/* Ranks Section */
.ranks-section {
    padding: 6rem 0;
    position: relative;
}

.rank-container {
    max-width: 800px;
    margin: 0 auto;
    background: var(--bg-card);
    border-radius: 20px;
    padding: 2px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.02));
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.rank-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-main);
    border-radius: 18px;
    overflow: hidden;
}

.rank-table th,
.rank-table td {
    padding: 1.5rem 2rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.rank-table th {
    background: rgba(255, 255, 255, 0.03);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-main);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.rank-table tbody tr {
    transition: background 0.3s ease;
}

.rank-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.05);
}

.rank-table tbody tr:last-child td {
    border-bottom: none;
}

.rank-table td {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-muted);
}

.rank-table td:last-child {
    font-family: monospace;
    font-size: 1.2rem;
    color: var(--text-main);
}

.rank-badge {
    padding: 0.4rem 1rem;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.unranked {
    background: rgba(255, 255, 255, 0.1);
    color: #94a3b8;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.bronze {
    background: #cd7f3220;
    color: #cd7f32;
    border: 1px solid #cd7f3240;
}

.silver {
    background: #c0c0c020;
    color: #c0c0c0;
    border: 1px solid #c0c0c040;
}

.gold {
    background: #ffd70020;
    color: #ffd700;
    border: 1px solid #ffd70040;
}

.platinum {
    background: #e5e4e220;
    color: #e5e4e2;
    border: 1px solid #e5e4e240;
}

.master {
    background: #9c27b020;
    color: #d8b4e2;
    border: 1px solid #9c27b040;
}

.predator {
    background: #f4433620;
    color: #ff8a80;
    border: 1px solid #f4433640;
}

.legend {
    background: linear-gradient(135deg, #ff9a9e, #fecfef);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    border: none;
    font-size: 1.2rem;
    text-shadow: 0 0 20px rgba(255, 154, 158, 0.4);
    padding: 0;
}

.legend-row {
    background: rgba(255, 154, 158, 0.05) !important;
}

.legend-row:hover {
    background: rgba(255, 154, 158, 0.1) !important;
}

.legend i {
    color: #ff9a9e;
    -webkit-text-fill-color: initial;
}

/* Commands Section */
.commands {
    padding: 6rem 0;
    position: relative;
}

.command-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
}

.command-card {
    flex: 1 1 300px;
    max-width: 480px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 2rem;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.command-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border-color: var(--accent-1);
}

.cmd-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: rgba(59, 130, 246, 0.15);
    color: var(--accent-1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
    transition: all 0.4s ease;
}

.command-card:hover .cmd-icon {
    background: var(--accent-1);
    color: white;
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.5);
}

.cmd-content {
    flex: 1;
}

.cmd-content h3 {
    font-family: monospace;
    font-size: 1.3rem;
    color: var(--text-main);
    margin-bottom: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 0.2rem 0.6rem;
    border-radius: 6px;
    display: inline-block;
}

.cmd-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* BMC Link Styles */
.bmc-link {
    color: #ffd700 !important;
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.3);
}

.bmc-link::after {
    background: #ffd700 !important;
}

.bmc-link:hover {
    color: #fff !important;
    text-shadow: 0 0 12px rgba(255, 215, 0, 0.8);
}

/* Partners Section */
.partners-section {
    padding: 6rem 0;
    position: relative;
    background: linear-gradient(to top, transparent, rgba(11, 15, 25, 0.4), transparent);
}

.partner-grid {
    display: flex;
    justify-content: center;
    gap: 2rem;
}

.partner-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 2.5rem 2rem;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    text-align: center;
    width: 100%;
    max-width: 350px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.partner-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    border-color: var(--accent-2);
}

.partner-img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1.5rem;
    border: 3px solid rgba(139, 92, 246, 0.3);
    /* accent-2 */
    padding: 3px;
    background: var(--bg-main);
    transition: all 0.4s ease;
}

.partner-card:hover .partner-img {
    border-color: var(--accent-2);
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.5);
    transform: scale(1.05);
}

.partner-content h3 {
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
    color: var(--text-main);
}

.partner-content p {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
}

/* Footer */
.footer {
    border-top: 1px solid var(--border);
    padding: 4rem 0 2rem;
    background: linear-gradient(to bottom, transparent, rgba(11, 15, 25, 0.95));
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-logo {
    max-width: 320px;
}

.footer-logo i {
    color: var(--primary);
    font-size: 1.5rem;
    margin-right: 0.5rem;
}

.footer-links h4 {
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    color: var(--text-main);
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.footer-links a {
    color: var(--text-muted);
    transition: color 0.3s ease, padding-left 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.95rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hero-title {
        font-size: 3rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: 2.5rem;
        align-items: center;
    }

    .stat-number,
    .stat-plus {
        font-size: 2.5rem;
    }

    .footer-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .footer-links ul {
        align-items: center;
    }

    .footer-links a:hover {
        padding-left: 0;
    }
}
