/* 1. General Settings */
* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
    font-family: 'Poppins', sans-serif; 
}

body { 
    background: #050505; /* තරු පේන්න තද කළු පාට */
    color: white; 
    overflow-x: hidden; 
    line-height: 1.6; 
}

.container { 
    max-width: 1200px; 
    margin: 0 auto; 
    padding: 0 20px; 
}

/* 2. Star Animation Background */
.chart-bg {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: radial-gradient(ellipse at bottom, #1B2735 0%, #090A0F 100%);
    z-index: -2;
    overflow: hidden;
}

/* දිලිසෙන තරු (Twinkling Stars) */
.stars {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: transparent url('https://www.transparenttextures.com/patterns/stardust.png') repeat;
    animation: twinkle 5s infinite ease-in-out;
    opacity: 0.5;
}

@keyframes twinkle {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.8; }
}

/* කඩා වැටෙන තරු (Shooting Stars) */
.shooting-stars {
    position: absolute;
    top: 0; left: 50%;
    width: 2px; height: 2px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 0 10px 2px white;
    animation: shoot 4s linear infinite;
    opacity: 0;
}

@keyframes shoot {
    0% { transform: rotate(315deg) translateX(0); opacity: 1; }
    20% { transform: rotate(315deg) translateX(-1000px); opacity: 0; }
    100% { transform: rotate(315deg) translateX(-1000px); opacity: 0; }
}

/* 3. Header & Navigation */
header { 
    background: rgba(0,0,0,0.9); 
    padding: 15px 0; 
    position: sticky; 
    top: 0; 
    z-index: 1000; 
    border-bottom: 2px solid #ff0000; 
}

nav { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
}

.logo img { 
    height: 50px; 
}

.nav-links { 
    display: flex; 
    list-style: none; 
}

.nav-links li a { 
    color: white; 
    text-decoration: none; 
    padding: 10px 20px; 
    font-weight: 600; 
    transition: 0.3s; 
}

.nav-links li a:hover { 
    color: #ff0000; 
}

/* 4. Mobile Menu Toggle Icon */
.menu-toggle {
    display: none; 
    color: white;
    font-size: 28px;
    cursor: pointer;
}

/* 5. Responsive Design (Mobile) */
@media (max-width: 768px) {
    .menu-toggle {
        display: block; /* Phone එකේදී පෙන්වන්න */
    }

    .nav-links {
        position: fixed;
        top: 80px;
        right: -100%; 
        width: 80%;
        height: 100vh;
        background: rgba(5, 5, 5, 0.98); /* කළු පසුබිම */
        flex-direction: column;
        align-items: center;
        padding-top: 50px;
        transition: 0.4s ease-in-out;
        z-index: 999;
        border-left: 2px solid #ff0000;
    }

    .nav-links.active {
        right: 0; /* Menu එක එබුවම එළියට එනවා */
    }

    .nav-links li {
        margin: 20px 0;
    }
}

/* 6. Grids & Cards */
.grid-3 { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); 
    gap: 20px; 
}

.grid-2 { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    gap: 40px; 
}

.card { 
    background: #111; 
    border-radius: 10px; 
    overflow: hidden; 
    border-bottom: 3px solid #ff0000; 
    transition: 0.3s; 
}

.card:hover { 
    transform: translateY(-10px); 
}

/* 7. Buttons */
.btn { 
    display: inline-block; 
    padding: 12px 30px; 
    border-radius: 5px; 
    text-decoration: none; 
    font-weight: bold; 
    transition: 0.3s; 
    cursor: pointer; 
    border: none; 
}

.btn-red { 
    background: #ff0000; 
    color: white; 
}

.btn-red:hover { 
    background: #cc0000; 
    transform: scale(1.05); 
}

/* 8. Partner Slider Animation */
@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(calc(-200px * 10)); }
}

.slider { 
    background: rgba(255,255,255,0.03); 
    height: 120px; 
    overflow: hidden; 
    position: relative; 
    width: 100%; 
    display: flex; 
    align-items: center; 
}

.slide-track { 
    animation: scroll 30s linear infinite; 
    display: flex; 
    width: calc(200px * 20); 
}

.slide { 
    width: 200px; 
    padding: 20px; 
}

.slide img { 
    height: 50px; 
    filter: grayscale(1) brightness(1.5); 
}
.testimonial-card {
    transition: transform 0.3s ease;
    border: 1px solid rgba(255,255,255,0.05);
}
.testimonial-card:hover {
    transform: translateY(-10px);
    background: rgba(255,255,255,0.05) !important;
}