:root {
    /* Instagram Aesthetic Colors */
    --ig-grad: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    --soft-pink: #fff0f3;
    --fancy-pink-grad: linear-gradient(135deg, #fff5f7 0%, #ffe4e9 100%);
    --dark-text: #262626;
    --grey-text: #8e8e8e;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    /* Fancy Light Pink Background */
    background: var(--fancy-pink-grad);
    min-height: 100vh;
    color: var(--dark-text);
}

/* HEADER - CENTER FOCUSED */
.main-header {
    background: #ffffff;
    /* position: sticky;  <-- Ye hata diya */
    /* top: 0;           <-- Ye hata diya */
    position: relative;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.header-inner {
    max-width: 1000px;
    /* Centered focus */
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 30px;
    height: 75px;
}

.logo a {
    font-size: 28px;
    font-weight: 700;
    text-decoration: none;
    color: var(--dark-text);
    letter-spacing: -1px;
}

.logo span {
    background: var(--ig-grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 35px;
}

.nav-links a {
    text-decoration: none;
    color: var(--dark-text);
    font-size: 15px;
    font-weight: 600;
    transition: 0.3s ease;
    opacity: 0.8;
}

.nav-links a:hover,
.nav-links a.active {
    opacity: 1;
    color: #cc2366;
}

/* Header Gradient Line */
.header-gradient-line {
    height: 3px;
    background: var(--ig-grad);
    width: 100%;
}

/* MAIN CONTENT AREA */
.main-content {
    padding: 50px 20px;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
}

.content-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 24px;
    padding: 40px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 10px 30px rgba(220, 39, 67, 0.05);
    text-align: center;
}

.ig-main-h1 {
    font-size: 30px;
    text-align: center;
    margin-bottom: 20px;
    background: var(--ig-grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.ig-p {
    font-size: 17px;
    text-align: center;
    color: black;
    margin-bottom: 30px;
}

.my-content h2 {
    font-size: 27px;
    text-align: center;
    margin-bottom: 20px;
    background: var(--ig-grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.my-content h3 {
    font-size: 25px;
    text-align: center;
    margin-bottom: 20px;
    background: var(--ig-grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

li {
    margin-bottom: 10px;
}

h2 {
    font-size: 25px;
    text-align: center;
    margin-bottom: 20px;
    background: var(--ig-grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

p {
    font-size: 17px;
    color: black;
    margin-bottom: 20px;
}

.my-content p {
    font-size: 17px;
    color: black;
    margin-bottom: 30px;
}

.my-content img {
    width: 650px;
    height: auto;
    max-width: 100%;
    border-radius: 10px;
    object-fit: cover;
    display: block;
    margin: 0 auto;
    margin-bottom: 20px;
}

.my-content li {
    margin-top: 10px;
    margin-left: 20px;
    margin-right: 20px;
    margin-bottom: 20px;
}

.tool-placeholder {
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed #ffcad4;
    border-radius: 15px;
    color: #ff8fa3;
    font-weight: 500;
}

/* FOOTER - NO LINE, PREMIUM LOOK */
.main-footer {
    background: #fff;
    padding: 60px 20px 30px;
    margin-top: 50px;
}

.footer-container {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.footer-top {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-bottom: 40px;
}

.footer-about h3 {
    font-size: 25px;
    margin-bottom: 10px;
}

.footer-about h3 span {
    color: #bc1888;
}

.footer-about p {
    color: black;
    font-size: 17px;
    max-width: 800px;
}

/* SOCIAL ICONS - PREMIUM STYLE */
.footer-social {
    display: flex;
    gap: 18px;
    justify-content: center;
    align-items: center;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #f5f5f5;
    color: #555;
    font-size: 20px;
    text-decoration: none;
    transition: all 0.35s ease;
    border: 2px solid transparent;
}

.footer-social a:hover {
    transform: translateY(-4px) scale(1.1);
}

/* Instagram - Gradient Glow */
.footer-social a:nth-child(1):hover {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 6px 20px rgba(225, 48, 108, 0.45);
}

/* Pinterest - Red Glow */
.footer-social a:nth-child(2):hover {
    background: #e60023;
    color: #fff;
    border-color: transparent;
    box-shadow: 0 6px 20px rgba(230, 0, 35, 0.4);
}

/* Twitter - Blue Glow */
.footer-social a:nth-child(3):hover {
    background: #1da1f2;
    color: #fff;
    border-color: transparent;
    box-shadow: 0 6px 20px rgba(29, 161, 242, 0.4);
}

/* Disclaimer Section */
.disclaimer {
    background: #fdf2f4;
    padding: 20px;
    border-radius: 12px;
    margin: 0 auto 30px;
    max-width: 800px;
}

.disclaimer p {
    font-size: 16px;
    color: #000000;
    line-height: 1.6;
}

/* Footer Navigation */
.footer-nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}

.footer-nav a {
    text-decoration: none;
    color: #555;
    font-size: 15px;
    font-weight: 500;
    transition: color 0.3s ease;
}

.footer-nav a:hover {
    color: #cc2366;
}

.footer-bottom {
    font-size: 16px;
    color: black;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.header-sticky {
    position: sticky;
    top: 0;
    width: 100%;
    padding: 15px 0;
    display: flex;
    justify-content: center;
    z-index: 1000;
}

.input-wrapper {
    position: relative;
    width: 90%;
    max-width: 600px;
}

#nameInput {
    width: 100%;
    padding: 12px 45px 12px 20px;
    font-size: 17px;
    border: 1px solid black;
    border-radius: 12px;
    outline: none;
    background-color: white;
    box-sizing: border-box;
}

.clear-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: #000000;
    color: #ffffff;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: none;
    font-size: 12px;
}

/* Wapas Flex Layout (Boxes side-by-side) */
#bio-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding: 30px 15px;
    max-width: 1200px;
    width: 100%;
}

.bio-card {
    background: #ffffff;
    border: 1px solid black;
    border-radius: 12px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.03);
    display: flex;
    align-items: center;
    justify-content: center;
}

.bio-card:hover {
    transform: translateY(-2px);
    background-color: #fcfaff;
    box-shadow: 0 6px 15px rgba(138, 125, 240, 0.15);
}

.bio-text {
    white-space: pre;
    /* Exact spaces dikhayega */
    font-size: 15px;
    color: var(--dark-text);
    margin: 0;
    line-height: 1.5;
    text-align: left;
}

#toast {
    visibility: hidden;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    background-color: rgba(0, 0, 0, 0.85);
    color: #fff;
    padding: 15px 20px;
    border-radius: 10px;
    z-index: 2000;
    opacity: 0;
    transition: 0.3s;
}

#toast.show {
    visibility: visible;
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* LOAD MORE BUTTON */
.load-more-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-top: 10px;
    padding: 20px 0;
}

.bio-counter {
    font-size: 14px;
    color: var(--grey-text);
    font-weight: 500;
    letter-spacing: 0.3px;
}

.load-more-btn {
    background: var(--ig-grad);
    color: #fff;
    border: none;
    padding: 14px 40px;
    font-size: 16px;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(204, 35, 102, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    letter-spacing: 0.5px;
}

.load-more-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(204, 35, 102, 0.45);
}

.load-more-btn:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(204, 35, 102, 0.3);
}

.load-more-btn i {
    font-size: 13px;
    animation: bounceDown 1.5s ease infinite;
}

@keyframes bounceDown {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(4px);
    }
}

/* MOBILE RESPONSIVE TOGGLE */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background-color: var(--dark-text);
    margin: 4px 0;
    transition: 0.4s;
}

/* EXAMPLE BIOS STATIC GRID */
.example-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin: 20px 0;
    width: 100%;
}

.example-grid-item {
    flex: 1 1 calc(50% - 15px);
    min-width: 100px;
    max-width: 300px;
    background: #ffffff;
    border: 1px solid #910404;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.04);
    text-align: left;
    white-space: pre-line;
    font-size: 14px;
    color: #910404;
    line-height: 1.6;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

.example-grid-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
}


/* CATEGORY GRID - 8 Cards Section */
.category-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin: 20px 0 30px 0;
}

.category-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 28px 24px;
    border: 1px solid rgba(204, 35, 102, 0.1);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 28px rgba(204, 35, 102, 0.12);
    border-color: rgba(204, 35, 102, 0.25);
}

.category-card h3 {
    font-size: 20px;
    margin-bottom: 8px;
}

.category-card p {
    font-size: 14px;
    color: #555;
    margin-bottom: 16px;
    line-height: 1.5;
}

.category-card .example-grid {
    max-width: 250px;
    margin: 0 0 18px 0;
}

.category-card .example-grid-item {
    font-size: 13px;
    padding: 14px;
    width: 100%;
    border-color: rgba(204, 35, 102, 0.2);

    /* --- Formatting Fixes --- */
    white-space: pre-line;
    /* Isse line break aur spaces barakar rahenge */
    line-height: 1.6;
    /* Lines ke beech accha gap dikhega */
    display: block;
}

.category-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--ig-grad);
    /* Ensure your --ig-grad variable is defined elsewhere */
    color: #fff;
    text-decoration: none;
    padding: 10px 26px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
    box-shadow: 0 3px 12px rgba(204, 35, 102, 0.25);
}

.category-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(204, 35, 102, 0.4);
}

.category-btn i {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.category-btn:hover i {
    transform: translateX(4px);
}

.boys-girls-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 30px 0 30px 0;
}

.bg-card {
    background: #ffffff;
    border-radius: 14px;
    padding: 20px 16px;
    border: 1px solid rgba(204, 35, 102, 0.1);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    align-items: center;
    text-align: center;
}

.bg-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 22px rgba(204, 35, 102, 0.12);
}

.bg-card h3 {
    font-size: 16px;
    margin-bottom: 12px;
}

.bg-card .example-grid {
    margin: 0;
}

.bg-card .example-grid-item {
    font-size: 12px;
    padding: 12px;
    margin-left: 10px;
    margin-right: 10px;
    min-width: 250px;
    max-width: 300px;
    border-color: rgba(204, 35, 102, 0.2);

    /* --- Main Fix --- */
    white-space: pre-line;
    /* Isse line breaks dikhenge */
    line-height: 1.6;
    /* Lines ke beech gap ke liye */
    display: block;
    /* Proper alignment ke liye */
}

/* new csss */
.common-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 30px 0 30px 0;
}

/* .common-card {
    background: #ffffff;
    border-radius: 14px;
    padding: 20px 16px;
    border: 1px solid rgba(204, 35, 102, 0.1);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    align-items: center;
    text-align: center;
} */

/* .common-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 22px rgba(204, 35, 102, 0.12);
} */

.common-card h3 {
    font-size: 16px;
    margin-bottom: 12px;
}

.common-card .example-grid {
    margin: 0;
}

.common-card .example-grid-item {
    font-size: 12px;
    padding: 12px;
    margin-left: 10px;
    margin-right: 10px;
    min-width: 250px;
    max-width: 300px;
    border-color: rgba(204, 35, 102, 0.2);
    text-align: left;
    /* --- Main Fix --- */
    white-space: pre-line;
    /* Isse line breaks dikhenge */
    line-height: 1.6;
    /* Lines ke beech gap ke liye */
    display: block;
    /* Proper alignment ke liye */
}

a {
    text-decoration: none;
    color: #4c31fa;
}

.no-list {
    list-style: none;
}

/* FAQ Section Styles (Accordion) */
.faq-section {
    margin-top: 60px;
    margin-bottom: 40px;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-h2 {
    font-size: 27px;
    text-align: center;
    margin-bottom: 20px;
    background: var(--ig-grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

details {
    background: #ffffff;
    border-radius: 12px;
    margin-bottom: 12px;
    border: 1px solid rgba(204, 35, 102, 0.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
}

details:hover {
    box-shadow: 0 6px 15px rgba(204, 35, 102, 0.1);
}

summary {
    padding: 18px 24px;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    position: relative;
    user-select: none;
}

summary::-webkit-details-marker {
    display: none;
}

summary::after {
    content: '+';
    position: absolute;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    color: #cc2366;
    transition: 0.3s;
}

details[open] summary::after {
    content: '−';
}

details[open] {
    background: #fffafa;
    border-color: rgba(204, 35, 102, 0.3);
}

details p {
    padding: 0 24px 20px 24px;
    font-size: 15px;
    color: #555;
    line-height: 1.6;
    margin: 0 !important;
}


@media screen and (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: absolute;
        top: 78px;
        left: -100%;
        width: 100%;
        background: #fff;
        transition: 0.5s;
        box-shadow: 0 10px 10px rgba(0, 0, 0, 0.05);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-links {
        flex-direction: column;
        padding: 40px 0;
        text-align: center;
        gap: 25px;
    }

    .header-inner {
        padding: 0 20px;
    }

    .ig-main-h1 {
        font-size: 1.8rem;
    }

    /* Hamburger Animation */
    .menu-toggle.is-active .bar:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.is-active .bar:nth-child(1) {
        transform: translateY(11px) rotate(45deg);
    }

    .menu-toggle.is-active .bar:nth-child(3) {
        transform: translateY(-11px) rotate(-45deg);
    }

    /* --- Responsive Grids --- */
    .category-grid,
    .boys-girls-grid,
    .common-grid {
        grid-template-columns: 1fr;
    }

    .category-card,
    .bg-card {
        padding: 20px 15px;
    }

    .example-grid-item {
        flex: 1 1 100%;
        min-width: 100%;
        max-width: 100%;
    }

    .bg-card .example-grid-item,
    .common-card .example-grid-item {
        min-width: auto;
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
        text-align: center;
        /* Center bio on mobile */
    }
}