/* මුළු පිටුවටම Dark Theme එකක් සකස් කිරීම */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #121212;
    color: #ffffff;
    scroll-behavior: smooth;
}

/* Header */
header {
    background-color: #1a1a1a;
    padding: 40px 20px;
    text-align: center;
    border-bottom: 3px solid #2ecc71;
}

.site-logo {
    width: 110px;
    height: 110px;
    border-radius: 12px;
    object-fit: cover;
    margin-bottom: 15px;
    border: 3px solid #ffffff;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.4);
}

header h1 {
    margin: 5px 0;
    font-size: 2.5rem;
    letter-spacing: 3px;
}

.tagline {
    margin: 0;
    color: #2ecc71;
    font-weight: bold;
    font-size: 1.1rem;
    letter-spacing: 1px;
}

.animated-description {
    max-width: 650px;
    margin: 20px auto 0 auto;
    font-size: 1rem;
    line-height: 1.6;
    color: #b3b3b3;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1.2s ease-out forwards;
    animation-delay: 0.3s;
}

.social-group {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 25px;
    flex-wrap: wrap;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1.2s ease-out forwards;
    animation-delay: 0.6s;
}

.social-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 30px;
    font-weight: bold;
    font-size: 0.95rem;
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
}

.social-btn i { font-size: 1.2rem; }
.yt-btn { background-color: #ff0000; }
.yt-btn:hover { background-color: #cc0000; transform: translateY(-3px); box-shadow: 0 6px 15px rgba(255, 0, 0, 0.4); }
.wa-btn { background-color: #25d366; }
.wa-btn:hover { background-color: #20ba5a; transform: translateY(-3px); box-shadow: 0 6px 15px rgba(37, 211, 102, 0.4); }

@keyframes fadeInUp { to { opacity: 1; transform: translateY(0); } }

main {
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 20px;
}

.section-title {
    border-left: 5px solid #2ecc71;
    padding-left: 12px;
    margin-bottom: 30px;
    font-size: 1.8rem;
}

.game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

/* ගේම් කාඩ් */
.game-card {
    background-color: #1e1e1e;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.game-card:hover {
    transform: translateY(-5px);
}

/* Image Hover Zoom Effect */
.img-container {
    width: 100%;
    height: 180px;
    overflow: hidden;
    border-radius: 10px 10px 0 0;
}

.game-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease-out;
}

.game-card:hover .game-img {
    transform: scale(1.15);
}

/* ගේම් විස්තර */
.game-info {
    padding: 20px;
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.game-info h3 {
    margin-top: 0;
    margin-bottom: 12px;
    font-size: 1.2rem;
    color: #eceff1;
}

.game-specs {
    background-color: #151515;
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-align: left;
    font-size: 0.8rem;
    color: #aaaaaa;
    border-left: 3px solid #2ecc71;
}

.game-specs i { color: #2ecc71; width: 15px; margin-right: 5px; }

/* 🛡️ Antivirus Safe Badge Style */
.safe-badge {
    background-color: rgba(46, 204, 113, 0.1);
    color: #2ecc71;
    font-size: 0.75rem;
    font-weight: bold;
    padding: 6px 10px;
    border-radius: 4px;
    margin-bottom: 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: 1px solid rgba(46, 204, 113, 0.2);
}

.button-group {
    display: flex;
    gap: 10px;
    justify-content: center;
    width: 100%;
}

.download-btn, .video-btn {
    flex: 1;
    padding: 10px 5px;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    font-size: 0.85rem;
    text-align: center;
    transition: background 0.3s ease, transform 0.2s ease;
}

.download-btn { background-color: #2ecc71; color: #fff; }
.download-btn:hover { background-color: #27ae60; transform: scale(1.03); }
.video-btn { background-color: #e74c3c; color: #fff; }
.video-btn:hover { background-color: #c0392b; transform: scale(1.03); }

/* Back to Top */
#backToTop {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 99;
    border: none;
    outline: none;
    background-color: #2ecc71;
    color: white;
    cursor: pointer;
    padding: 12px 16px;
    border-radius: 50%;
    font-size: 18px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
    transition: background-color 0.3s, transform 0.3s;
}

#backToTop:hover { background-color: #27ae60; transform: scale(1.1); }

/* Footer */
footer { text-align: center; padding: 25px; background-color: #1a1a1a; margin-top: 60px; font-size: 0.9rem; color: #666; }