/* style.css - Midnight Purple Theme */
:root {
    --bg: #12081a;
    --card: #1e0b3a;
    --primary: #d05ce3;
    --text: #e0d5ff;
    --text-light: #a997de;
    --border: #4a1c7c;
}

* {
    margin: 0; padding: 0; box-sizing: border-box;
}
body {
    background: var(--bg); color: var(--text);
    font-family: 'Segoe UI', sans-serif; line-height: 1.6;
}
header {
    background: linear-gradient(to right, #1a0f2a, #2a124a);
    padding: 1.5rem 0; text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
.logo {
    font-size: 2rem; font-weight: 700; color: white;
}
.logo span {
    color: var(--primary); text-shadow: 0 0 10px rgba(208,92,227,0.4);
}
nav a {
    color: var(--text-light); margin: 0 1rem;
    text-decoration: none; font-weight: 500;
}
nav a.active {
    color: var(--primary); text-decoration: underline;
}
.container {
    width: 90%;
    max-width: 1000px;
    margin: 2rem auto;
    padding: 0 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    width: 100%;
    margin: 0 auto;
    justify-items: center;
}

/* Make sure each card resizes nicely */
.image-grid > div {
    position: relative;
    width: 100%;
    max-width: 300px;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 1 / 1; /* Keeps square shape */
}

.image-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Make sure buttons and links don't stretch oddly */
.link-btn {
    margin: 0 auto;
    display: inline-block;
}
section {
    background: var(--card); border-radius: 12px;
    padding: 2rem; margin-bottom: 2rem;
    border: 1px solid var(--border);
}
h2 {
    color: var(--primary); margin-bottom: 1rem;
}
img {
    border-radius: 10px; display: block;
    width: 100%; max-width: 300px; height: 300px;
    object-fit: cover; border: 2px solid var(--border);
    margin: 1rem 0;
}
.image-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}
.link-btn {
    background: var(--primary); color: white;
    border: none; padding: 0.6rem 1.2rem;
    border-radius: 20px; cursor: pointer;
    font-size: 0.9rem;
}
footer {
    text-align: center; padding: 2rem;
    background: #1a0f2a; color: var(--text-light);
    margin-top: 3rem;
}

.dropdown {
    position: relative;
    display: inline-block;
}

.dropbtn {
    background: transparent;
    color: var(--text-light);
    padding: 0.5rem 0.8rem;
    border: none;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dropbtn:hover {
    color: var(--primary);
}

.dropdown-content {
    display: none;
    position: absolute;
    background: #1e0b3a;
    min-width: 150px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    border-radius: 8px;
    z-index: 1;
    margin-top: 0.5rem;
}

.dropdown-content a {
    color: var(--text-light);
    padding: 0.8rem 1rem;
    text-decoration: none;
    display: block;
    transition: all 0.3s ease;
}

.dropdown-content a:hover {
    background: #2a124a;
    color: var(--primary);
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown:hover .dropbtn {
    color: var(--primary);
}