/* style.css Reset */
body {
    margin: 0;
    font: normal 75% Arial, Helvetica, sans-serif;
}
canvas {
    display: block;
    vertical-align: bottom;
}

/* particles.js container */
#particles-js {
    position: fixed;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f5f5f5, #e0e0e0), url('https://www.transparenttextures.com/patterns/paper.png');
    background-blend-mode: overlay;
    z-index: -1;
}

/* Popup navigation styles */
.popup-nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 250px;
    height: 100%;
    background: rgba(74, 90, 106, 0.9);
    padding: 15px 0;
    z-index: 1000;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(5px);
    flex-direction: column;
    align-items: flex-start;
}
.popup-nav.active {
    display: flex;
}
.popup-nav ul {
    flex-direction: column;
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 20px;
}
.popup-nav ul li a {
    color: #ffffff;
    text-decoration: none;
    font-size: 1.2em;
    padding: 10px 15px;
    transition: background 0.3s;
}
.popup-nav ul li a:hover {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 5px;
}

/* Hamburger menu styles */
#hamburger-lines {
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 24px;
    width: 30px;
    z-index: 1100;
}
.line {
    width: 100%;
    height: 3px;
    background: #ffffff;
    transition: all 0.3s ease;
}
#hamburger-lines.active .line1 {
    transform: rotate(45deg) translate(5px, 5px);
}
#hamburger-lines.active .line2 {
    opacity: 0;
}
#hamburger-lines.active .line3 {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Header styles */
.header-style {
    display: flex;
    align-items: center;
    justify-content: space-between; /* Changed: Space out hamburger, title, and button */
    padding: 20px;
    color: #ffffff;
    background: rgba(51, 51, 51, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.3);
    z-index: 10;
}
.header-style h1 {
    margin-left: 20px;
    font-size: 2em;
    flex-grow: 1; /* Changed: Allow title to take available space */
}
#translateBtn {
    padding: 10px 20px;
    background: rgba(139, 94, 60, 0.7); /* Matches back-btn sepia */
    color: #ffffff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    transition: background 0.3s;
}
#translateBtn:hover {
    background: rgba(107, 74, 46, 1); /* Matches back-btn hover */
}

/* Section and content styles */
#shayari-section {
    padding: 20px;
    position: relative;
    z-index: 2;
    background: rgba(0, 0, 0, 0.5);
}
.section-heading {
    font-size: 1.8em;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}
.shayari-content {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Shayari box styles */
.shayari-box {
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), url('../images/pexels-padrinan-194096.jpg');
    background-size: cover;
    background-position: center;
    color: #ffffff;
    padding: 40px 20px 20px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    min-height: 200px;
}
.box-number {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: #fef9e7;
    color: #1f2a44;
    font-size: 0.9em;
    font-weight: bold;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}
.shayari-box p {
    margin: 0 0 15px;
    line-height: 1.6;
}
.shayari-box p strong {
    color: #d1d5db;
}
.check-link {
    display: block;
    color: #1e40af;
    text-decoration: none;
    font-size: 0.9em;
    margin-top: 10px;
}
.check-link:hover {
    text-decoration: underline;
    color: #2563eb;
}

/* Back button */
.back-btn {
    display: block;
    margin: 20px auto;
    padding: 10px 20px;
    background: rgba(139, 94, 60, 0.7);
    color: #ffffff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    width: fit-content;
}
.back-btn:hover {
    background: rgba(107, 74, 46, 1);
}

/* Footer styles */
footer {
    padding: 20px;
    text-align: center;
    background: #2d3748;
    margin-top: 20px;
}
.social-icons {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 15px;
}
.social-icons a {
    color: #ffffff;
    font-size: 1.5em;
    transition: color 0.3s;
}
.social-icons a:hover {
    color: #d1d5db;
}

/* Go to Top and Back to Bottom Buttons */
#goTopBtn, #goBottomBtn {
    position: fixed;
    background-color: rgba(107, 114, 128, 0.8);
    color: #ffffff;
    border: none;
    border-radius: 50%;
    padding: 12px;
    font-size: 1.2em;
    cursor: pointer;
    z-index: 1000;
    transition: transform 0.3s, background-color 0.3s;
}
#goTopBtn:hover, #goBottomBtn:hover {
    background-color: rgba(75, 85, 99, 1);
    transform: scale(1.1);
}
#goTopBtn {
    bottom: 20px;
    left: 20px;
}
#goBottomBtn {
    top: 20px;
    right: 20px;
}

/* Responsive design */
@media (max-width: 768px) {
    .header-style h1 {
        font-size: 1.5em;
    }
    .section-heading {
        font-size: 1.5em;
    }
    .shayari-box {
        padding: 30px 15px 15px 15px;
    }
    .box-number {
        width: 50px;
        height: 50px;
        font-size: 0.8em;
    }
    #translateBtn {
        padding: 8px 15px;
        font-size: 0.9em;
    }
}