:root {
    /* Instagram Gradient Colors */
    --purple: #833AB4;
    --pink: #FD1D1D;
    --orange: #FCAF45;
    --violet-soft: #c1a8e9;
    --gradient-insta: linear-gradient(45deg, var(--orange), var(--pink), var(--purple));

    /* Layout Colors */
    --bg-color: #fafafa;
    --card-bg: rgba(255, 255, 255, 0.7);
    --text-main: #1a1a1a;
    --text-muted: #666666;
    --border-color: rgba(0, 0, 0, 0.08);

    /* Shadows */
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 10px 20px rgba(0, 0, 0, 0.06);
    --shadow-hover: 0 20px 40px rgba(0, 0, 0, 0.1);

    /* Metrics */
    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-sm: 8px;
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
}

/* Background Blobs */
.background-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    z-index: -1;
    pointer-events: none;
}

.bg-blob {
    position: absolute;
    filter: blur(100px);
    z-index: -1;
    opacity: 0.5;
    border-radius: 50%;
    animation: float 10s infinite alternate ease-in-out;
}

.blob-1 {
    width: 400px;
    height: 400px;
    background: var(--purple);
    top: -100px;
    left: -100px;
}

.blob-2 {
    width: 350px;
    height: 350px;
    background: var(--pink);
    top: 40%;
    right: -100px;
    animation-delay: -3s;
}

.blob-3 {
    width: 300px;
    height: 300px;
    background: var(--orange);
    bottom: -50px;
    left: 20%;
    animation-delay: -6s;
}

@keyframes float {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(30px, 30px) scale(1.1);
    }
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 0;
    position: relative;
}

.logo {
    font-size: 24px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--gradient-insta);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 32px;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text-main);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    cursor: pointer;
    z-index: 101;
}

.mobile-menu-btn span {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--text-main);
    border-radius: 2px;
    transition: var(--transition);
    transform-origin: center;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 60px 0 80px;
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.gradient-text {
    background: var(--gradient-insta);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 18px;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Grid Section */
.grid-section {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    padding-bottom: 80px;
}

/* Bio Card */
.bio-card {
    background: var(--card-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.bio-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: rgba(253, 29, 29, 0.2);
}

/* Dropdown */
.font-selector {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.font-selector label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.font-dropdown {
    width: 100%;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.9);
    font-size: 15px;
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    outline: none;
    cursor: pointer;
    transition: var(--transition);
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 16px;
}

.font-dropdown:focus {
    border-color: var(--purple);
    box-shadow: 0 0 0 3px rgba(131, 58, 180, 0.1);
}

/* Instagram Preview Box */
.preview-box {
    background: #ffffff;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    padding: 20px;
    box-shadow: var(--shadow-sm);
}

.preview-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.avatar-container {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--gradient-insta);
    padding: 3px;
}

.avatar-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #fff;
    display: block;
}

.stats {
    display: flex;
    gap: 16px;
    text-align: center;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-num {
    font-weight: 700;
    font-size: 16px;
}

.stat-label {
    font-size: 12px;
    color: var(--text-muted);
}

.user-info {
    margin-bottom: 8px;
}

.username {
    font-weight: 700;
    font-size: 15px;
}

.bio-text {
    font-size: 14px;
    line-height: 1.5;
    white-space: pre-wrap;
    color: var(--text-main);
    min-height: 80px;
    word-break: break-word;
}

/* Bottom Action Bar */
.action-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 10px;
}

.btn-copy {
    flex: 1;
    background: var(--gradient-insta);
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 100px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-copy:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(253, 29, 29, 0.3);
}

.btn-copy:active {
    transform: translateY(0);
}

.social-icons {
    display: flex;
    gap: 8px;
}

.icon-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-main);
    transition: var(--transition);
}

.icon-btn:hover {
    background: var(--bg-color);
    color: var(--pink);
    border-color: var(--pink);
    transform: translateY(-2px);
}

/* Tooltip */
.tooltip {
    position: fixed;
    background: var(--text-main);
    color: #fff;
    padding: 8px 16px;
    border-radius: 100px;
    font-size: 14px;
    font-weight: 500;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s, transform 0.2s;
    transform: translateY(10px);
    z-index: 1000;
}

.tooltip.show {
    opacity: 1;
    transform: translateY(0);
}

.content-sec {
    background-color: var(--bg-color);
    border-radius: 5px;
    padding: 12px;
}


/* faq section  */
.faq-section {
    max-width: 800px;
    margin: 40px auto;
    padding: 10px;
}

.faq-section h2 {
    text-align: center;
    margin-bottom: 20px;
}

.faq-item {
    border: 1px solid var(--primary);
    border-radius: 10px;
    margin-bottom: 10px;
    overflow: hidden;
    background: #fff;
    transition: 0.3s;
}

.faq-question {
    padding: 12px 15px;
    cursor: pointer;
    font-weight: 600;
    position: relative;
    font-size: 1.125rem;
    font-weight: 600;
}

.faq-question:hover {
    background: var(--light);
}

/* arrow icon */
.faq-question::after {
    content: "›";
    position: absolute;
    right: 15px;
    font-size: 20px;
    transform: rotate(90deg);
    transition: transform 0.3s ease;
}

.faq-item.active {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* rotate when active */
.faq-item.active .faq-question::after {
    transform: rotate(270deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 15px;
    font-size: 14px;
    color: #555;
    transition: 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 300px;
    padding: 1px 15px 50px;
}


/* Footer */
footer {
    background: var(--card-bg);
    border-top: 1px solid var(--border);
    padding: 3rem 0 2rem;
    margin-top: 24rem;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.footer-links a {
    opacity: 0.8;
    transition: opacity 0.2s;
    cursor: pointer;
    text-decoration: none;
    color: var(--text-main);
}

.footer-links a:hover {
    opacity: 1;
    color: var(--text-muted);
}

.copyright {
    text-align: center;
    opacity: 0.6;
    font-size: 0.875rem;
    border-top: 1px solid var(--border);
    padding-top: 2rem;
}

/* new edited 12 april  */
.footer h2,
.footer h3 {
    margin-bottom: 10px;
}

.footer p {
    font-size: 14px;
    color: #ccc;
}

.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links ul li {
    margin-bottom: 8px;
}

.footer-links a:hover {
    color: #fff;
}

.social-icons {
    display: flex;
    gap: 12px;
    justify-content: center;
    align-items: center;
}

.social-icons a {
    display: inline-flex;
    width: 35px;
    height: 35px;
    background: #222;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.social-icons svg {
    width: 18px;
    height: 18px;
    fill: #fff;
}

.social-icons a:hover {
    background: #444;
}

/* Responsive */
@media (max-width: 992px) {
    .hero h1 {
        font-size: 40px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        padding: 20px;
        border: 1px solid var(--border-color);
        border-radius: var(--radius-md);
        margin-top: 10px;
        z-index: 100;
        box-shadow: var(--shadow-md);
        text-align: center;
    }

    .nav-links.active {
        display: flex;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .grid-section {
        grid-template-columns: 1fr;
    }

    .hero {
        padding: 40px 0;
    }

    .hero h1 {
        font-size: 32px;
    }

    .stats {
        gap: 12px;
    }
}