/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Bengali:wght@400;700&display=swap');

/* Basic Styles */
body {
    background-color: #050210;
    color: #e0e0e0;
    font-family: 'Noto Sans Bengali', sans-serif;
    margin: 0;
    padding: 0;
    text-align: center;
    overflow-x: hidden;
}

/* Background Animation */
#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: -1;
}

/* Header */
.header {
    padding: 50px 20px;
    text-shadow: 0 0 10px #00d5ff, 0 0 20px #00d5ff, 0 0 40px #00d5ff;
    animation: fadeIn 2s ease-in-out;
}
.header-names h1 { display: inline-block; margin: 0 10px; font-size: 1.4em; }
.baby-name h2 { font-size: 1.2em; color: #ffc400; margin-top: 25px; }
.baby-name .main-name { font-size: 3.5em; color: #ffc400; text-shadow: 0 0 15px #ffc400, 0 0 30px #ffc400; margin: 0; }

/* Section Card Design */
.section-card {
    background: rgba(12, 0, 31, 0.6);
    border: 1px solid rgba(0, 213, 255, 0.3);
    border-radius: 20px;
    padding: 30px;
    margin: 40px 15px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    backdrop-filter: blur(10px);
    box-shadow: 0 0 40px rgba(0, 213, 255, 0.15);
    box-sizing: border-box;
}
.section-title { font-size: 2em; color: #00d5ff; margin-bottom: 30px; }
.content-text { font-size: 1.1em; line-height: 1.8; word-wrap: break-word; }

/* Dua Section */
.dua-item { border-top: 1px solid rgba(0, 213, 255, 0.2); padding-top: 20px; margin-top: 20px; }
.arabic-text { font-size: 1.5em; direction: rtl; color: #ffc400; }
.play-button { background: #00d5ff; color: #050210; border: none; padding: 12px 25px; font-weight: bold; cursor: pointer; border-radius: 5px; margin-top: 15px; font-size: 1em; }

/* Special Link to Memories Page */
.special-link-card {
    padding: 20px;
    background: linear-gradient(45deg, #e94560, #ffc400);
}
.special-button {
    font-size: 1.5em;
    font-weight: bold;
    color: #050210;
    text-decoration: none;
    display: block;
    transition: transform 0.3s;
}
.special-button:hover {
    transform: scale(1.05);
}

/* Photo Gallery (Card View Design) */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px; /* Space between cards */
}
.photo-card {
    background: #161b22; /* Dark background for the card */
    border-radius: 15px; /* Rounded corners for the card */
    padding: 10px; /* Space between the blue border and the media */
    border: 1px solid #00d5ff; /* The blue border */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 213, 255, 0.3); /* Shadow and blue glow */
    transition: transform 0.3s ease;
}
.photo-card:hover {
    transform: translateY(-10px); /* Lifts the card on hover */
}

/* Style for Image, Video, and Audio inside the card */
.photo-card img,
.photo-card video {
    width: 100%;
    aspect-ratio: 1 / 1; /* Makes the media area a perfect square */
    object-fit: cover; /* Ensures media covers the area without distortion */
    border-radius: 10px; /* Rounded corners for the media itself */
    display: block;
}
.photo-card .audio-container {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1 / 1; /* Same square shape as images/videos */
    background: #000;
    border-radius: 10px;
}
.photo-card audio {
    width: 100%;
    filter: invert(1) hue-rotate(180deg); /* Style audio player for dark theme */
}

/* Certificate */
.certificate { border: 3px solid transparent; border-image: linear-gradient(to right, #ffc400, #00d5ff) 1; background: rgba(255, 196, 0, 0.05); }
.cert-title { color: #ffc400; }
.cert-content h3, .cert-content p { margin: 10px 0; text-align: left; }

/* Footer */
footer { padding: 20px; margin-top: 50px; color: rgba(255, 255, 255, 0.5); }

/* Animation */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* Mobile Responsive Code */
@media (max-width: 768px) {
    .gallery-grid {
        /* On mobile, cards will stack in a single column */
        grid-template-columns: 1fr;
        gap: 25px;
    }
    .header-names h1 { font-size: 1.2em; }
    .baby-name .main-name { font-size: 3em; }
    .section-card { padding: 20px 15px; }
}
