/* Basic Reset & Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
    /* Light gray background */
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

a {
    text-decoration: none;
    color: #007bff;
    /* Bootstrap primary blue */
    transition: color 0.3s ease;
}

a:hover {
    color: #0056b3;
    /* Darker blue on hover */
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

h1,
h2,
h3 {
    margin-bottom: 0.8em;
    color: #343a40;
    /* Dark gray for headings */
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
}

h2 {
    font-size: 2rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 1.5em;
    position: relative;
}

h2::after {
    /* Underline effect for section titles */
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background-color: #007bff;
    margin: 0.3em auto 0;
}


/* Header & Navigation */
header {
    background-color: #ffffff;
    padding: 1em 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#logo {
    height: 50px;
    /* Adjust as needed */
    transition: transform 0.3s ease;
}

#logo:hover {
    transform: scale(1.05);
}

.nav-links {
    list-style: none;
    display: flex;
}

.nav-links li {
    margin-left: 25px;
}

.nav-links a {
    font-weight: 600;
    color: #343a40;
    padding: 0.5em 0;
    position: relative;
}

.nav-links a::after {
    /* Underline animation for nav links */
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #007bff;
    transition: width 0.3s ease-in-out;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-toggle {
    /* Hamburger menu button */
    display: none;
    /* Hidden by default, shown on small screens */
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.hamburger {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #333;
    position: relative;
    transition: background-color 0s 0.3s;
    /* Delay hiding middle bar */
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    left: 0;
    width: 25px;
    height: 3px;
    background-color: #333;
    transition: transform 0.3s ease, top 0.3s ease;
}

.hamburger::before {
    top: -8px;
}

.hamburger::after {
    top: 8px;
}

/* Hamburger animation when active */
.nav-open .hamburger {
    background-color: transparent;
    /* Middle bar disappears */
}

.nav-open .hamburger::before {
    transform: rotate(45deg);
    top: 0;
}

.nav-open .hamburger::after {
    transform: rotate(-45deg);
    top: 0;
}


/* Hero Section */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('https://via.placeholder.com/1200x400?text=Background+Image') no-repeat center center/cover;
    color: #fff;
    padding: 4em 0;
    text-align: center;
}

.hero h1 {
    color: #fff;
    margin-bottom: 0.5em;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 1.5em;
}

.hero-image {
    margin-top: 2em;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-image:hover {
    transform: scale(1.03);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Content Sections */
.content-section {
    padding: 3em 0;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5em;
}

.card {
    background-color: #ffffff;
    border-radius: 8px;
    padding: 1.5em;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    /* For aligning content inside card if needed */
    flex-direction: column;
    justify-content: space-between;
    /* Pushes p tag to bottom if image takes space */
}

.card img {
    border-radius: 6px;
    margin-bottom: 1em;
    max-height: 150px;
    /* Limit image height within card */
    object-fit: cover;
    /* Ensures image covers the area well */
}

.card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.card h3 {
    font-size: 1.3rem;
    color: #007bff;
}

.card p {
    color: #6c757d;
    /* Muted text color */
    font-size: 0.9rem;
}

/* Tags Section */
.tags-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.8em;
}

.tag {
    background-color: #e9ecef;
    /* Light gray background for tags */
    color: #495057;
    /* Darker text for tags */
    padding: 0.5em 1em;
    border-radius: 20px;
    /* Pill-shaped tags */
    font-size: 0.9rem;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
}

.tag:hover {
    background-color: #007bff;
    color: #fff;
    transform: scale(1.05);
}

/* Footer */
footer {
    background-color: #343a40;
    /* Dark footer */
    color: #f8f9fa;
    /* Light text for footer */
    padding: 2em 0;
    text-align: center;
}

.footer-nav a {
    color: #adb5bd;
    /* Muted link color in footer */
    margin: 0 10px;
}

.footer-nav a:hover {
    color: #ffffff;
}

footer p {
    margin-top: 1em;
    font-size: 0.9rem;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.7rem;
    }

    .nav-links {
        display: none;
        /* Hide normal nav links */
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 100%;
        /* Position below header */
        left: 0;
        background-color: #ffffff;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
        padding-bottom: 10px;
        /* Spacing for last item */
    }

    .nav-links.nav-active {
        /* Class to show nav links */
        display: flex;
    }

    .nav-links li {
        margin-left: 0;
        text-align: center;
        width: 100%;
    }

    .nav-links li a {
        display: block;
        padding: 1em;
        border-bottom: 1px solid #eee;
    }

    .nav-links li:last-child a {
        border-bottom: none;
    }

    .nav-toggle {
        display: block;
        /* Show hamburger button */
    }

    .grid-container {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }

    #love-shayari-types .grid-container {
        grid-template-columns: 1fr;
        /* Stack love shayari types on small screens */
    }

    #love-shayari-types .card {
        text-align: left;
        padding-left: 2em;
    }

    #love-shayari-types .card h3 {
        color: #343a40;
        /* Regular color for list-like items */
    }

}

@media (max-width: 480px) {
    .container {
        width: 95%;
    }

    .hero h1 {
        font-size: 1.8rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .grid-container {
        grid-template-columns: 1fr;
        /* Stack all cards on very small screens */
    }

    .card {
        padding: 1em;
    }

    .card h3 {
        font-size: 1.1rem;
    }
}