:root {
    --bg-color: #0f172a;
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --accent-1: #8b5cf6; /* Purple */
    --accent-2: #ec4899; /* Pink */
    --accent-3: #3b82f6; /* Blue */
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
}

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

body {
    /* Changed to Bengali font */
    font-family: 'Hind Siliguri', 'Outfit', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    background-image: 
        radial-gradient(at 0% 0%, rgba(139, 92, 246, 0.15) 0px, transparent 50%),
        radial-gradient(at 100% 0%, rgba(236, 72, 153, 0.15) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(59, 130, 246, 0.15) 0px, transparent 50%);
    background-attachment: fixed;
}

.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.glass-header {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    margin-bottom: 3rem;
    animation: fadeInDown 1s ease-out;
}

h1 {
    font-family: 'Outfit', 'Hind Siliguri', sans-serif;
    font-size: 4rem;
    font-weight: 800;
    background: linear-gradient(to right, var(--accent-1), var(--accent-2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 1rem;
    text-shadow: 0 0 30px rgba(139, 92, 246, 0.3);
}

.glass-header p {
    font-size: 1.5rem;
    color: var(--text-secondary);
}

main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

/* New Services Section Styling */
.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 2.5rem;
    background: linear-gradient(to right, var(--accent-3), var(--accent-1));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
}

.services-section {
    margin-bottom: 4rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.service-card {
    background: rgba(0, 0, 0, 0.2);
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid transparent;
}

.service-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--accent-3);
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.2);
}

.service-icon {
    font-size: 3rem;
    color: var(--accent-3);
    margin-bottom: 1rem;
    background: linear-gradient(45deg, var(--accent-3), var(--accent-1));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.service-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.profiles-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
    margin-bottom: 4rem;
}

.profile-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.profile-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
}

.asif-card::before { background: linear-gradient(to right, var(--accent-1), var(--accent-3)); }
.shakil-card::before { background: linear-gradient(to right, var(--accent-2), #f59e0b); }

.profile-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.profile-img-wrapper {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    padding: 6px;
    background: linear-gradient(45deg, var(--accent-1), var(--accent-2));
    margin-bottom: 1.5rem;
    animation: float 6s ease-in-out infinite;
}

.shakil-card .profile-img-wrapper {
    background: linear-gradient(45deg, var(--accent-2), #f59e0b);
    animation: float 6s ease-in-out infinite reverse;
}

.profile-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid var(--bg-color);
    cursor: pointer;
    transition: transform 0.3s ease;
}
.profile-img:hover {
    transform: scale(1.05);
}

.profile-card h2 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.role {
    font-size: 1.2rem;
    color: var(--accent-1);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.shakil-card .role { color: var(--accent-2); }

.funny-stats {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.stat {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    backdrop-filter: blur(5px);
}

.description {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.gallery {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 15px;
    width: 100%;
    scrollbar-width: thin;
    scrollbar-color: var(--accent-1) rgba(255, 255, 255, 0.05);
}

.gallery::-webkit-scrollbar {
    height: 8px;
}

.gallery::-webkit-scrollbar-thumb {
    background: var(--accent-1);
    border-radius: 10px;
}

.gallery img {
    width: 90px;
    height: 90px;
    object-fit: cover;
    border-radius: 12px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    border: 2px solid transparent;
}

.gallery img:hover {
    transform: scale(1.1);
    border-color: var(--accent-1);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.shakil-card .gallery img:hover {
    border-color: var(--accent-2);
}

.roast-section {
    text-align: center;
    margin-bottom: 4rem;
}

.roast-section .section-title {
    background: linear-gradient(to right, #f59e0b, #ef4444);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.qa-container {
    display: grid;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.qa-item {
    background: rgba(0, 0, 0, 0.3);
    padding: 1.5rem;
    border-radius: 16px;
    border-left: 4px solid var(--accent-2);
    text-align: left;
    transition: all 0.3s ease;
}

.qa-item:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateX(10px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.qa-item h3 {
    font-size: 1.25rem;
    margin-bottom: 0.8rem;
    color: var(--text-primary);
    font-weight: 600;
}

.qa-item p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.fun-btn {
    background: linear-gradient(45deg, var(--accent-1), var(--accent-2));
    color: white;
    border: none;
    padding: 1rem 2.5rem;
    font-size: 1.2rem;
    font-weight: 600;
    border-radius: 30px;
    cursor: pointer;
    font-family: inherit;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 15px rgba(236, 72, 153, 0.4);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.fun-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(236, 72, 153, 0.6);
}

.fun-btn:active {
    transform: scale(0.95);
}

footer {
    text-align: center;
    padding: 2rem;
    color: var(--text-secondary);
    border-top: 1px solid var(--glass-border);
    background: rgba(0,0,0,0.2);
    font-size: 1.1rem;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Modal for Image Preview */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.85);
    backdrop-filter: blur(10px);
    justify-content: center;
    align-items: center;
}

.modal img {
    max-width: 90%;
    max-height: 90vh;
    border-radius: 12px;
    box-shadow: 0 0 40px rgba(255,255,255,0.15);
    animation: zoomIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 40px;
    color: white;
    font-size: 50px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    text-shadow: 0 0 10px rgba(0,0,0,0.5);
}

.close-modal:hover { color: var(--accent-2); transform: rotate(90deg); }

@keyframes zoomIn {
    from { transform: scale(0.7); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    .glass-header p { font-size: 1.2rem; }
    .profiles-section { grid-template-columns: 1fr; }
    .voting-container { flex-direction: column; }
    .vote-divider { margin: 1rem 0; }
}

/* Voting Section Styling */
.voting-section {
    margin-bottom: 4rem;
    text-align: center;
}

.voting-subtitle {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.voting-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-bottom: 1.5rem;
}

.vote-card {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 300px;
}

.vote-btn {
    width: 100%;
    padding: 1rem 1.5rem;
    border: none;
    border-radius: 30px;
    font-family: inherit;
    font-size: 1.2rem;
    font-weight: 600;
    color: white;
    cursor: pointer;
    margin-bottom: 1rem;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.asif-vote-btn {
    background: linear-gradient(45deg, var(--accent-1), var(--accent-3));
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
}

.shakil-vote-btn {
    background: linear-gradient(45deg, var(--accent-2), #f59e0b);
    box-shadow: 0 4px 15px rgba(236, 72, 153, 0.4);
}

.vote-btn:hover {
    transform: scale(1.05);
}

.vote-btn:active {
    transform: scale(0.95);
}

.vote-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.vote-progress-wrapper {
    width: 100%;
    height: 30px;
    background: rgba(255,255,255,0.1);
    border-radius: 15px;
    position: relative;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.vote-progress {
    height: 100%;
    width: 0%;
    border-radius: 15px;
    transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.asif-progress {
    background: linear-gradient(90deg, var(--accent-1), var(--accent-3));
}

.shakil-progress {
    background: linear-gradient(90deg, var(--accent-2), #f59e0b);
}

.vote-count {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 0.9rem;
    font-weight: 700;
    text-shadow: 0 0 5px rgba(0,0,0,0.8);
    pointer-events: none;
}

.vote-divider {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-secondary);
    font-style: italic;
    opacity: 0.5;
}

.total-votes {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-top: 1rem;
}

#totalCount {
    font-weight: 800;
    color: var(--text-primary);
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: slideInRight 0.3s forwards, fadeOut 0.5s forwards 3s;
    border-left: 4px solid var(--accent-3);
}

.toast.success {
    border-left-color: #10b981;
}

.toast.error {
    border-left-color: #ef4444;
}

@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes fadeOut {
    to { opacity: 0; pointer-events: none; }
}
