@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

html,
body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

:root {
    --bg-color: #08080a;
    --surface-color: #111116;
    --card-bg: #15151c;
    --primary-color: #ff2d2d;
    --primary-glow: rgba(255, 45, 45, 0.4);
    --secondary-color: #b31212;
    --text-color: #f8f9fa;
    --text-muted: #9499a1;
    --glass-border: rgba(255, 255, 255, 0.08);
    --accent-gradient: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
    scrollbar-gutter: stable;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-color);
    background-image:
        radial-gradient(circle at 20% 20%, rgba(255, 45, 45, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 80% 80%, rgba(255, 45, 45, 0.05) 0%, transparent 40%),
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 100% 100%, 100% 100%, 40px 40px, 40px 40px;
    color: var(--text-color);
    overflow-x: hidden;
    width: 100%;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

main {
    padding-top: 80px;
    /* Aligned with header height for full-screen slider */
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    /* Sleek height */
    display: flex;
    align-items: center;
    background: rgba(8, 8, 10, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--glass-border);
    z-index: 1000;
    transition: var(--transition);
}

header.scrolled {
    background: rgba(8, 8, 10, 0.95);
    height: 70px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.header-container {
    width: 100%;
    max-width: 1600px;
    /* Increased to allow logo to go further left */
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    /* Moved slightly back to the right */
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

.main-nav a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    position: relative;
    padding: 10px 0;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--text-color);
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: var(--transition);
    box-shadow: 0 0 10px var(--primary-glow);
}

.main-nav a:hover::after,
.main-nav a.active::after {
    width: 100%;
}

.logo {
    height: 45px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.logo a {
    display: flex;
    align-items: center;
    height: 100%;
    text-decoration: none;
}

.logo img {
    height: 100%;
    width: auto;
    max-width: 180px;
    object-fit: contain;
    display: block;
    transition: var(--transition);
}

.logo:hover img {
    transform: scale(1.05);
}

.menu-toggle {
    display: none;
}

/* Slider */
.slider-container {
    margin: 0 auto 20px;
    position: relative;
    width: 100%;
    max-width: 100%;
    height: 480px;
    /* Reduced for a more compact look */
    overflow: hidden;
    border-radius: 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.slider {
    display: flex;
    width: 300%;
    height: 100%;
    transition: transform 0.8s cubic-bezier(0.7, 0, 0.3, 1);
}

.slide {
    width: 100%;
    height: 100%;
    position: relative;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(8, 8, 10, 0.95) 0%, rgba(8, 8, 10, 0.2) 60%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 10%;
    /* More padding for edge-to-edge */
}

.slide-content h2 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: -1px;
    line-height: 1.1;
    background: #fff;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.slide-content p {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 500px;
    margin-bottom: 2rem;
}

.slider-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 15px;
    padding: 18px 45px;
    background: var(--accent-gradient);
    color: #fff;
    text-decoration: none;
    font-weight: 800;
    font-size: 1.1rem;
    border-radius: 12px;
    /* Modern square-ish look but rounded */
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 10px 30px var(--primary-glow);
    border: 1px solid rgba(255, 255, 255, 0.2);
    overflow: hidden;
    z-index: 1;
}

.slider-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg,
            transparent,
            rgba(255, 255, 255, 0.3),
            transparent);
    transition: all 0.6s;
    z-index: -1;
}

.slider-btn:hover::before {
    left: 100%;
}

.slider-btn i {
    font-size: 1.2rem;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.slider-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(255, 45, 45, 0.6);
    border-color: rgba(255, 255, 255, 0.5);
    letter-spacing: 3px;
}

.slider-btn:hover i {
    transform: translateX(8px) scale(1.2);
}

.slider-btn:active {
    transform: translateY(-2px);
}

.slider-dots {
    position: absolute;
    bottom: 10px;
    /* Reduced to avoid overlap */
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: var(--transition);
}

.dot.active {
    background: var(--primary-color);
    box-shadow: 0 0 10px var(--primary-color);
    width: 30px;
    border-radius: 10px;
}

/* Cards Section */
.content-section {
    padding: 2rem 5% 4rem;
    /* Reduced top padding */
}

.section-title {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title::before {
    content: '';
    width: 4px;
    height: 24px;
    background: var(--accent-gradient);
    border-radius: 2px;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr) !important;
    /* Strictly 3 columns */
    gap: 25px;
    max-width: 1150px;
    /* Increased to make cards a bit larger */
    margin: 0 auto;
}

.grid-container.blog-home-grid {
    grid-template-columns: repeat(3, 1fr) !important;
}

.blog-card .card-body {
    padding: 20px;
}

.blog-card .card-title,
.blog-card .card-desc {
    white-space: normal !important;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-card .card-title {
    -webkit-line-clamp: 2;
    font-size: 1.1rem;
    line-height: 1.3;
    margin-bottom: 8px;
}

.blog-card .card-desc {
    -webkit-line-clamp: 3;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Specific smaller grid for bonus page */
.bonus-grid {
    max-width: 1150px !important;
    gap: 25px !important;
}

.bonus-grid .card {
    aspect-ratio: 1 / 1;
}

.bonus-grid .card-img {
    height: 100% !important;
    width: 100% !important;
    position: relative;
    overflow: hidden;
}

.bonus-grid .card-img img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block;
}

.bonus-grid .card-body {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, transparent 100%);
    padding: 15px;
}

.bonus-grid .card-title {
    font-size: 0.9rem;
    margin-bottom: 0;
}

.bonus-grid .card-desc {
    display: none;
    /* Hide desc on square cards for cleaner look, or keep it very small */
}

.card {
    background: var(--card-bg);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--glass-border);
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: rgba(255, 45, 45, 0.3);
    box-shadow: 0 20px 40px rgba(255, 45, 45, 0.15);
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, rgba(255, 45, 45, 0.1), transparent 70%);
    opacity: 0;
    transition: var(--transition);
}

.card:hover::before {
    opacity: 1;
}

.card-img {
    width: 100%;
    aspect-ratio: 1/1;
    /* Square cards */
    overflow: hidden;
}

.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.card-body {
    padding: 5px;
    /* Minimal padding */
}

.card-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 5px;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 50px;
    height: 50px;
    background: var(--accent-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 2;
}

.card:hover .card-play-btn {
    transform: translate(-50%, -50%) scale(1);
}

/* Responsive */
/* Footer */
.site-footer {
    background: rgba(14, 14, 18, 0.95);
    border-top: 1px solid var(--glass-border);
    padding: 60px 5% 30px;
    margin-top: 60px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-brand .footer-logo {
    height: 40px;
    margin-bottom: 20px;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 25px;
    max-width: 350px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-color);
    font-size: 1.1rem;
    transition: var(--transition);
    text-decoration: none;
    /* Removed underline */
}

.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 5px 15px var(--primary-glow);
}

.footer-links h4,
.footer-newsletter h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 25px;
    color: var(--text-color);
}

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

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.95rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.footer-newsletter p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.newsletter-form {
    display: flex;
    gap: 10px;
}

.newsletter-form input {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    padding: 12px 15px;
    color: #fff;
    outline: none;
    transition: var(--transition);
}

.newsletter-form input:focus {
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.08);
}

.newsletter-form button {
    background: var(--accent-gradient);
    border: none;
    border-radius: 10px;
    width: 50px;
    color: #fff;
    cursor: pointer;
    transition: var(--transition);
}

.newsletter-form button:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px var(--primary-glow);
}

.footer-bottom {
    border-top: 1px solid var(--glass-border);
    margin-top: 50px;
    padding-top: 30px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Mobile Breakpoints */
@media (max-width: 1024px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }

    .footer-newsletter {
        grid-column: span 2;
    }

    .slide-content h2 {
        font-size: 2rem;
    }
}

@media (max-width: 968px) {
    header {
        height: auto;
        padding: 15px 0;
    }

    .header-container {
        flex-direction: column;
        align-items: center;
        padding: 0 10px;
        gap: 15px;
        width: 100%;
    }

    .logo {
        height: 35px;
        margin-top: 10px; /* Lowered a bit more */
        margin-bottom: 5px;
    }

    .main-nav {
        width: 100%;
        overflow-x: auto;
        -ms-overflow-style: none;
        scrollbar-width: none;
        padding: 5px 0;
    }

    .main-nav::-webkit-scrollbar {
        display: none;
    }

    .main-nav ul {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        justify-content: flex-start; /* Start from left to ensure scroll works */
        gap: 8px;
        width: max-content; /* Ensure it doesn't shrink */
        margin: 0 auto; /* Center the whole group if it fits */
        padding: 0 10px;
    }

    .main-nav a {
        font-size: 0.7rem;
        padding: 8px 12px;
        background: rgba(255, 255, 255, 0.05);
        border-radius: 8px;
        border: 1px solid var(--glass-border);
        white-space: nowrap;
    }

    .main-nav a::after {
        display: none !important;
    }

    .main-nav a.active {
        border-color: var(--primary-color);
        background: rgba(255, 45, 45, 0.1);
    }

    main {
        padding-top: 140px; 
    }
}

@media (max-width: 768px) {
    .slider-container {
        height: 220px;
        /* Slightly smaller for mobile */
        width: 100%;
        margin: 0 auto 5px;
        /* Minimized space under slider */
        border-radius: 0;
    }

    .slide-content h2 {
        font-size: 1.5rem;
        /* Smaller for mobile */
    }

    .slide-content p {
        font-size: 0.85rem;
        margin-bottom: 1rem;
        max-width: 100%;
    }

    .slider-btn {
        padding: 12px 30px;
        font-size: 0.85rem;
    }

    .section-title {
        font-size: 1.2rem;
        margin-bottom: 1.5rem;
    }

    .grid-container {
        grid-template-columns: repeat(2, 1fr) !important;
        /* 2 columns for mobile */
        gap: 20px;
        padding: 0 15px;
    }

    .grid-container.blog-home-grid {
        grid-template-columns: 1fr !important;
    }

    .content-section {
        padding: 1rem 10px 2rem;
        /* Reduced top padding */
    }

    .card-body {
        padding: 10px;
    }

    .card-title {
        font-size: 0.9rem;
    }

    .card-desc {
        font-size: 0.75rem;
    }
}

/* Social Media Contact - Simple & Clean */
.social-contact-wrapper {
    max-width: 800px;
    margin: 40px auto;
    text-align: center;
}

.social-intro {
    color: var(--text-muted);
    margin-bottom: 40px;
    font-size: 1.1rem;
}

.social-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    /* 3 columns on PC */
    gap: 15px;
    margin-bottom: 40px;
}

@media (max-width: 768px) {
    .social-grid {
        grid-template-columns: repeat(2, 1fr);
        /* 2 columns on mobile */
    }
}

.social-box {
    background: var(--card-bg);
    border: 1px solid var(--glass-border);
    padding: 30px 20px;
    border-radius: 20px;
    text-decoration: none;
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.social-box i {
    font-size: 2.5rem;
    transition: var(--transition);
}

.social-box span {
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.social-box:hover {
    transform: translateY(-10px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 30px rgba(255, 45, 45, 0.2);
}

.social-box.telegram:hover i {
    color: #0088cc;
    text-shadow: 0 0 20px rgba(0, 136, 204, 0.5);
}

.social-box.twitter:hover i {
    color: #1da1f2;
    text-shadow: 0 0 20px rgba(29, 161, 242, 0.5);
}

.social-box.instagram:hover i {
    color: #e1306c;
    text-shadow: 0 0 20px rgba(225, 48, 108, 0.5);
}

.social-box.discord:hover i {
    color: #5865f2;
    text-shadow: 0 0 20px rgba(88, 101, 242, 0.5);
}


@media (max-width: 480px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}