* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    scroll-behavior: smooth;
}

body {
    background: #f6f7fb;
    color: #333;
    overflow-x: hidden;
}

/* ─── SECTIONS ─────────────────────────────────── */

section {
    padding: 80px 8%;
}

section h2 {
    font-size: clamp(1.5rem, 4vw, 2rem);
    margin-bottom: 10px;
}

/* ─── NAV ───────────────────────────────────────── */

nav {
    position: fixed;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 8%;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 1000;
    transition: box-shadow 0.3s;
}

.nav-logo {
    font-size: clamp(1.1rem, 3vw, 1.4rem);
    color: #ff2e93;
    white-space: nowrap;
}

.nav-links {
    display: flex;
    gap: 8px;
    align-items: center;
}

.nav-links a {
    padding: 6px 12px;
    text-decoration: none;
    color: #333;
    font-size: 0.95rem;
    border-radius: 20px;
    transition: background 0.2s, color 0.2s;
}

.nav-links a:hover {
    color: #ff2e93;
    background: rgba(255, 46, 147, 0.08);
}

/* Hamburger button */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    margin-top: 0;
    border-radius: 8px;
    z-index: 1100;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: #333;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Animated X when open */
.hamburger.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
    opacity: 0;
}
.hamburger.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Mobile nav overlay */
.nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.3);
    z-index: 999;
}
.nav-overlay.show {
    display: block;
}

/* ─── HERO ─────────────────────────────────────── */

.hero-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 60px;
    padding: 120px 8% 80px;
    background: linear-gradient(-45deg, #f194c1, #f3cae1, #7aa8ff, #b993ff);
    background-size: 400% 400%;
    animation: gradientMove 12s ease infinite;
    flex-wrap: wrap;
}

@keyframes gradientMove {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.hero-text {
    max-width: 550px;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 40px;
    border-radius: 20px;
    width: 100%;
}

.hero-text h1 {
    font-size: clamp(2rem, 7vw, 3.5rem);
    color: white;
    line-height: 1.1;
}

.tagline {
    margin-top: 10px;
    color: white;
    font-size: clamp(0.75rem, 2.5vw, 0.95rem);
}

.about {
    margin-top: 20px;
    line-height: 1.7;
    color: white;
    font-size: clamp(0.85rem, 2vw, 1rem);
}

.hero-avatar {
    width: clamp(180px, 30vw, 270px);
    height: clamp(260px, 45vw, 400px);
    border-radius: 50%;
    border: 6px solid white;
    object-fit: cover;
    animation: float 4s ease-in-out infinite;
    flex-shrink: 0;
}

/* Fallback if image missing */
.hero-avatar[src="XXXXX.JPG"] {
    background: rgba(255,255,255,0.4);
}

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

.hero-btn {
    margin-top: 25px;
    background: white;
    color: #ff2e93;
    border: none;
    padding: 12px 28px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.hero-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255,46,147,0.3);
}

/* ─── EVENTS ────────────────────────────────────── */

.feed {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 35px rgba(0,0,0,0.12);
}

.card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.card-body {
    padding: 16px;
}

.card-body h3 {
    font-size: 1.05rem;
    margin-bottom: 6px;
}

.like {
    margin-top: 12px;
    cursor: pointer;
    color: #ff2e93;
    font-size: 0.9rem;
    display: inline-block;
    transition: transform 0.15s;
}

.like:hover {
    transform: scale(1.05);
}

/* ─── GALLERY ───────────────────────────────────── */

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    margin-top: 30px;
}

.gallery img {
    width: 100%;
    border-radius: 10px;
    display: block;
    aspect-ratio: 3/2;
    object-fit: cover;
    transition: transform 0.2s, box-shadow 0.2s;
}

.gallery img:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* ─── BLOG ──────────────────────────────────────── */

.blog-list {
    margin-top: 30px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.blog-card {
    background: white;
    padding: 22px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    border-left: 4px solid #f18dbd;
}

.blog-card h3 {
    font-size: 1.05rem;
    margin-bottom: 4px;
    color: #ff2e93;
}

.blog-card small {
    display: block;
    color: #999;
    font-size: 0.78rem;
    margin-bottom: 10px;
}

.blog-card p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #555;
}

.no-blogs {
    color: #999;
    font-style: italic;
    font-size: 0.95rem;
    text-align: center;
    padding: 30px 0;
}

/* ─── LOGIN ─────────────────────────────────────── */

.login-box {
    max-width: 360px;
    margin: 30px auto 0;
    background: white;
    padding: 32px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

#editor {
    max-width: 600px;
    margin: 30px auto 0;
    background: white;
    padding: 32px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

#editor h3 {
    margin-bottom: 10px;
    color: #ff2e93;
}

input,
textarea {
    width: 100%;
    padding: 11px 14px;
    margin-top: 12px;
    border-radius: 8px;
    border: 1px solid #ddd;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
}

input:focus,
textarea:focus {
    border-color: #f18dbd;
    box-shadow: 0 0 0 3px rgba(241, 141, 189, 0.2);
}

textarea {
    resize: vertical;
    min-height: 120px;
}

button {
    margin-top: 15px;
    background: linear-gradient(135deg, #f18dbd, #ff2e93);
    color: white;
    border: none;
    padding: 12px 28px;
    border-radius: 25px;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 46, 147, 0.35);
}

button:active {
    transform: translateY(0);
}

.hidden {
    display: none !important;
}

/* ─── FOOTER ────────────────────────────────────── */

footer {
    background: linear-gradient(135deg, #f18dbd, #ff2e93);
    color: white;
    text-align: center;
    padding: 32px 20px;
    margin-top: 40px;
    font-size: 0.9rem;
    line-height: 1.8;
}

/* ════════════════════════════════════════════════
   RESPONSIVE BREAKPOINTS
   ════════════════════════════════════════════════ */

/* ─── TABLET (max 900px) ────────────────────────── */
@media (max-width: 900px) {
    nav {
        padding: 16px 5%;
    }

    section {
        padding: 70px 5%;
    }

    .hero-container {
        padding: 110px 5% 70px;
        gap: 40px;
    }
}

/* ─── MOBILE (max 768px) ────────────────────────── */
@media (max-width: 768px) {

    /* Hamburger visible */
    .hamburger {
        display: flex;
    }

    /* Mobile nav drawer slides in from right */
    .nav-links {
        position: fixed;
        top: 0;
        right: -260px;
        width: 240px;
        height: 100vh;
        background: white;
        flex-direction: column;
        align-items: flex-start;
        padding: 80px 24px 30px;
        gap: 4px;
        z-index: 1000;
        box-shadow: -4px 0 20px rgba(0,0,0,0.1);
        transition: right 0.3s ease;
    }

    .nav-links.open {
        right: 0;
    }

    .nav-links a {
        width: 100%;
        padding: 12px 16px;
        font-size: 1rem;
        border-radius: 10px;
    }

    /* Hero stacks vertically */
    .hero-container {
        flex-direction: column;
        text-align: center;
        padding: 100px 6% 60px;
        gap: 30px;
        min-height: auto;
    }

    .hero-avatar {
        width: 160px;
        height: 220px;
        border-radius: 40%;
    }

    .hero-text {
        padding: 28px 22px;
    }

    .hero-text h1 {
        font-size: clamp(1.8rem, 8vw, 2.5rem);
    }

    /* Events: single column */
    .feed {
        grid-template-columns: 1fr;
    }

    /* Gallery: 2 columns */
    .gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    /* Blog: single column */
    .blog-list {
        grid-template-columns: 1fr;
    }

    /* Login box full width */
    .login-box,
    #editor {
        max-width: 100%;
        padding: 24px 18px;
        margin: 20px 0 0;
    }

    section {
        padding: 60px 5%;
    }
}

/* ─── SMALL MOBILE (max 480px) ──────────────────── */
@media (max-width: 480px) {
    .gallery {
        grid-template-columns: 1fr;
    }

    .hero-avatar {
        width: 140px;
        height: 200px;
    }

    .hero-text {
        padding: 22px 16px;
    }

    .card img {
        height: 170px;
    }

    section {
        padding: 50px 4%;
    }

    nav {
        padding: 14px 4%;
    }
}