:root {
    --bg-dark: #080a0f;
    --accent: #00d2ff;
    --glass: rgba(255, 255, 255, 0.05);
    --text: #ffffff;
}

* {
    margin: 80; padding: 0; box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--bg-dark);
    color: var(--text);
    display: flex;
    overflow: hidden; /* Prevents body scroll, main-frame will scroll */
}

/* Background Animation */
.bg-animate {
    position: fixed;
    width: 100vw; height: 100vh;
    background: radial-gradient(circle at 50% 50%, #1a1a2e, #080a0f);
    z-index: -1;
}

/* Sidebar */
.sidebar {
    width: 250px;
    height: 100vh;
    background: rgba(17, 17, 17, 0.5);
    backdrop-filter: blur(10px);
    border-right: 1px solid rgba(255,255,255,0.1);
    display: flex;
    flex-direction: column;
    padding: 40px 20px;
}

.logo {
    font-family: 'Dancing Script', cursive;
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 80px;
    text-align: center;
}

.sidebar ul { list-style: none; }
.sidebar ul li { margin-bottom: 20px; }

.nav-link {
    text-decoration: none;
    color: #888;
    font-weight: 500;
    transition: 0.3s;
    display: block;
    padding: 10px;
    border-radius: 8px;
}

.nav-link:hover, .nav-link.active {
    color: var(--accent);
    background: var(--glass);
    padding-left: 15px;
}

/* Main Content Frame */
.content-frame {
    flex: 1;
    height: 100vh;
    overflow-y: auto;
    padding: 50px;
    scroll-behavior: smooth;
}

.shayari-section {
    padding-bottom: 100px;
    min-height: 80vh;
}

.section-title {
    font-family: 'Dancing Script', cursive;
    font-size: 3rem;
    margin-bottom: 40px;
    color: var(--accent);
    border-bottom: 2px solid var(--glass);
    display: inline-block;
}

/* Shayari Cards Grid */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

.shayari-card {
    background: var(--glass);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 30px;
    border-radius: 20px;
    transition: 0.4s;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.shayari-card:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-10px);
    border-color: var(--accent);
}

.shayari-card p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 15px;
    font-style: italic;
}

.shayari-card span {
    color: var(--accent);
    font-size: 0.9rem;
    font-weight: 600;
}

/* About Section */
.about-card {
    background: linear-gradient(135deg, rgba(0, 210, 255, 0.1), rgba(0,0,0,0.5));
    padding: 50px;
    border-radius: 30px;
    border: 1px solid var(--accent);
}

.about-card h2 { margin-bottom: 20px; color: var(--accent); }
.about-card p { margin-bottom: 15px; line-height: 1.6; opacity: 0.8; }

/* Responsive */
@media (max-width: 768px) {
    body { flex-direction: column; overflow: auto; }
    .sidebar { width: 100%; height: auto; }
    .content-frame { height: auto; padding: 20px; }
}

/* Menu button at top right */
     #menu-btn {
      position: fixed;
      top: 55px;
      right: 30px;
      background: none;   /* transparent background */
      border: none;
      font-size: 20px;
      cursor: pointer;
      color: rgb(250, 248, 248); /* button text color */
    }

    /* Menu styling */
    #menu {
      position: fixed;
      top: 40px;
      right: 10px;
      list-style: none;
      margin: 0;
      padding: 0;
      display: none; /* hidden by default */
      background: none; /* transparent background */
    }

    #menu li {
      margin: 5px 0;
    }

    #menu a {
      text-decoration: none;
      color: white; /* menu text color is white */
      font-weight: bold;
    }

    /* Sidebar - Desktop (Default) */
.sidebar {
    width: 280px;
    height: 100vh;
    background: rgba(10, 12, 15, 0.8);
    backdrop-filter: blur(15px);
    border-right: 1px solid rgba(0, 210, 255, 0.2);
    display: flex;
    flex-direction: column;
    padding: 40px 20px;
    position: fixed; /* Fixed so content scrolls past it */
    left: 0;
    top: 0;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 1000;
}

/* Animations for Links */
.sidebar ul li {
    opacity: 0;
    transform: translateX(-20px);
    animation: slideIn 0.5s forwards;
    margin-bottom: 15px;
}

@keyframes slideIn {
    to { opacity: 1; transform: translateX(0); }
}

/* Menu Button - Hidden on Desktop */
#menu-btn {
    display: none; 
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1100;
    background: var(--accent);
    border: none;
    padding: 10px 15px;
    border-radius: 8px;
    color: #000;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 0 15px var(--accent);
}

/* Content adjustment for Sidebar */
.content-frame {
    margin-left: 280px; /* Leave space for sidebar */
    flex: 1;
    height: 100vh;
    overflow-y: auto;
    padding: 50px;
    scroll-behavior: smooth;
}

/* --- Responsive (Mobile) --- */
@media (max-width: 992px) {
    #menu-btn { display: block; } /* Show button */

    .sidebar {
        transform: translateX(-100%); /* Hide sidebar off-screen */
        width: 100%;
        text-align: center;
        justify-content: center;
    }

    .sidebar.active {
        transform: translateX(0); /* Slide in when active */
    }

    .content-frame {
        margin-left: 0;
        padding: 0px 20px 20px;
    }

    .sidebar ul li {
        font-size: 1.5rem;
    }
}