:root {
    --bg-main: #000000;
    --bg-card: #111827;
    --accent: #27d494;
    --border: #1f2937;
    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    --font-main: 'Inter', sans-serif;
}

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: var(--font-main);
    margin: 0;
    display: flex;
    justify-content: center;
    padding: 60px 20px;
}

.container {
    max-width: 900px;
    width: 100%;
}

/* Header */
.header {
    margin-bottom: 40px;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 25px;
    transition: 0.3s;
}

.back-btn:hover {
    color: var(--accent);
    transform: translateX(-5px);
}

.brand-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
}

.brand-logo {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    object-fit: cover;
}

.brand-title h1 {
    font-size: 1.8rem;
    margin: 0;
    font-weight: 800;
}

.brand-title h1 span { color: var(--accent); }
.brand-title p { color: var(--text-secondary); margin: 5px 0 0; font-size: 0.9rem; }

/* Bento Grid System */
.social-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Column 3 ක ග්‍රිඩ් එකක් */
    gap: 20px;
}

.social-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 30px;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 160px;
    position: relative;
    overflow: hidden;
}

.social-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent);
    box-shadow: 0 15px 30px rgba(39, 212, 148, 0.1);
}

/* Wide Card Logic */
.social-card.wide {
    grid-column: span 2; /* මේක Column 2 ක ඉඩක් ගන්නවා */
    flex-direction: row;
    align-items: center;
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.wide .card-icon {
    font-size: 3.5rem;
    margin-bottom: 0;
    margin-right: 30px;
}

.card-info h3 {
    font-size: 1.2rem;
    margin: 0;
    color: var(--text-primary);
}

.card-info p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin: 5px 0 0;
}

/* Footer (Dimmed) */
.footer {
    margin-top: 60px;
    text-align: center;
    border-top: 1px solid var(--border);
    padding-top: 25px;
}

.footer p {
    color: var(--text-secondary);
    opacity: 0.4;
    font-size: 0.85rem;
    margin: 0;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .social-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .social-card.wide {
        grid-column: span 2;
    }
}

@media (max-width: 480px) {
    .social-grid {
        grid-template-columns: 1fr;
    }
    .social-card.wide {
        grid-column: span 1;
        flex-direction: column;
        align-items: flex-start;
    }
    .wide .card-icon { margin-right: 0; margin-bottom: 15px; }

}

/* Back Icon Button Styling */
.back-icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background-color: #161b22; /* පේජ් එකට වඩා පොඩ්ඩක් තද පාටක් */
    color: #4ade80; /* ඔයාගේ Mint Green පාට */
    border-radius: 50%; /* රවුම් බටන් එකක් */
    text-decoration: none;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    border: 1px solid #30363d;
    margin-bottom: 30px; /* පල්ලෙහයින් තියෙන Content එකට ඉඩ තියන්න */
}

/* Mouse එක උඩට ගියාම වෙනස් වෙන විදිහ */
.back-icon-btn:hover {
    background-color: #4ade80;
    color: #05070a; /* Background එකේ කළු පාට */
    transform: translateX(-5px); /* වමට පොඩ්ඩක් මූව් වෙනවා */
    box-shadow: 0 0 15px rgba(74, 222, 128, 0.3);
}
