        :root {
            --bg-dark: #0f172a;
            --card-bg: #1e293b;
            --primary: #8b5cf6; /* Purple/Violet */
            --secondary: #ec4899;
            --text-main: #f8fafc;
            --text-muted: #94a3b8;
            --card-white: #ffffff;
        }

        body {
            background-color: var(--bg-dark);
            color: var(--text-main);
            font-family: 'Segoe UI', system-ui, sans-serif;
            margin: 0;
            padding: 0;
            min-height: 100vh;
        }

        /* --- HEADER --- */
        .navbar {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 15px 40px;
            background: rgba(30, 41, 59, 0.9);
            backdrop-filter: blur(10px);
            border-bottom: 1px solid #334155;
            position: sticky;
            top: 0;
            z-index: 100;
        }

        .logo {
            font-size: 1.4rem;
            font-weight: 800;
            background: linear-gradient(to right, var(--primary), var(--secondary));
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
        }

        .nav-links a {
            background: transparent;
            border: 1px solid #334155;
            color: var(--text-muted);
            padding: 8px 16px;
            border-radius: 8px;
            margin-left: 10px;
            cursor: pointer;
            transition: all 0.3s;
            text-decoration: none;
            display: inline-block;
            font-size: 0.9rem;
        }

        .nav-links a:hover {
            background: #334155;
            color: white;
            border-color: var(--primary);
        }

        .nav-links a.active {
            background: var(--primary);
            color: white;
            border: none;
        }

        /* MOBILE NAV */
        @media (max-width: 600px) {
            .navbar { flex-direction: column; gap: 15px; padding: 15px 20px; }
            .nav-links { width: 100%; display: flex; justify-content: center; gap: 10px; }
            .nav-links a { margin: 0; flex: 1; text-align: center; }
        }

        /* --- MAIN LAYOUT --- */
        .main-container {
            display: grid;
            grid-template-columns: 1.2fr 0.8fr; 
            gap: 2rem;
            max-width: 1200px;
            margin: 40px auto;
            padding: 0 20px;
        }

        @media (max-width: 900px) {
            .main-container { grid-template-columns: 1fr; }
        }

        /* --- LEFT COLUMN: GENERATOR & INFO --- */
        .card {
            background: var(--card-bg);
            border-radius: 20px;
            padding: 2rem;
            border: 1px solid #334155;
            box-shadow: 0 10px 40px rgba(0,0,0,0.2);
        }

        textarea {
            width: 100%;
            background: #0f172a;
            border: 2px solid #334155;
            border-radius: 12px;
            padding: 15px;
            color: white;
            font-size: 1rem;
            height: 120px;
            box-sizing: border-box;
            outline: none;
            margin: 15px 0;
            resize: none;
            transition: border-color 0.3s;
        }
        textarea:focus { border-color: var(--primary); }

        .btn-generate {
            width: 100%;
            padding: 16px;
            background: linear-gradient(135deg, var(--primary), var(--secondary));
            border: none;
            border-radius: 12px;
            color: white;
            font-size: 1.1rem;
            font-weight: bold;
            cursor: pointer;
            transition: transform 0.2s;
            margin-bottom: 20px;
        }
        .btn-generate:hover { transform: translateY(-2px); opacity: 0.95; }

        .success-msg {
            color: #10b981;
            text-align: center;
            font-size: 0.9rem;
            margin-bottom: 20px;
            display: none;
            animation: fadeIn 0.5s;
        }
        @keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

        /* --- INFO CARDS (Added based on Image 2) --- */
        .section-title {
            display: flex; align-items: center; gap: 10px; margin-top: 30px; margin-bottom: 15px;
        }
        .section-title h3 { margin: 0; font-size: 1.1rem; }

        .info-card {
            display: flex; gap: 15px; margin-bottom: 12px;
            background: rgba(30, 41, 59, 0.5); 
            padding: 15px; border-radius: 12px;
            border: 1px solid rgba(255,255,255,0.05);
        }
        
        .info-icon { 
            font-size: 1.2rem; background: #334155; width: 35px; height: 35px; 
            display: flex; align-items: center; justify-content: center; border-radius: 8px; flex-shrink: 0; 
        }

        .info-content h4 { margin: 0 0 4px 0; font-size: 0.95rem; color: #fff; }
        .info-content p { margin: 0; font-size: 0.85rem; color: #94a3b8; line-height: 1.4; }

        /* Note Box (Purple Disclaimer) */
        .note-box {
            background: rgba(139, 92, 246, 0.1);
            border: 1px solid rgba(139, 92, 246, 0.3);
            border-radius: 10px;
            padding: 15px;
            margin-top: 20px;
            font-size: 0.85rem;
            color: #d8b4fe;
            line-height: 1.4;
        }

        /* --- RIGHT COLUMN: PREVIEW & SEO --- */
        .preview-column { display: flex; flex-direction: column; gap: 20px; }

        /* SEO Score Card (Added based on Image 3) */
        .score-card {
            background: var(--card-white);
            color: #1e293b;
            text-align: center;
            padding: 30px;
            border-radius: 20px;
            box-shadow: 0 4px 20px rgba(0,0,0,0.1);
        }
        
        .circle-wrap {
            position: relative;
            width: 100px;
            height: 100px;
            margin: 0 auto 15px;
            border-radius: 50%;
            background: conic-gradient(var(--primary) 0%, #e2e8f0 0%);
            display: flex;
            align-items: center;
            justify-content: center;
            transition: background 1s ease-out;
        }
        
        .circle-inner {
            width: 80px;
            height: 80px;
            background: white;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.5rem;
            font-weight: 800;
            color: var(--primary);
        }

        .phone-frame {
            background: #0f172a;
            border: 8px solid #334155;
            border-radius: 30px;
            padding: 15px;
            position: relative;
            min-height: 450px;
        }
        
        .phone-header { display: flex; gap: 10px; align-items: center; margin-bottom: 15px; }
        .phone-avatar { width: 35px; height: 35px; background: #cbd5e1; border-radius: 50%; }
        .phone-username { font-size: 0.9rem; font-weight: bold; color: white; }
        
        .phone-media {
            background: #1e293b;
            height: 200px;
            border-radius: 10px;
            display: flex; align-items: center; justify-content: center;
            color: #64748b; margin-bottom: 15px;
        }
        
        .phone-caption { font-size: 0.9rem; color: #e2e8f0; line-height: 1.5; white-space: pre-line; }
        .phone-tags { color: var(--primary); font-weight: 500; margin-top: 10px; display: block; font-size: 0.9rem; }

.faq-section {
  max-width: 900px;
  margin: 80px auto;
  padding: 0 20px;
}

.faq-title {
  text-align: center;
  font-size: 32px;
  margin-bottom: 40px;
}

.faq-item {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 14px;
  margin-bottom: 16px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.06);
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  color: #fff;
  font-size: 18px;
  font-weight: 600;
  padding: 22px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.faq-question .icon {
  font-size: 26px;
  transition: transform 0.3s ease;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.faq-answer p {
  padding: 0 24px 24px;
  color: #d1d5db;
  line-height: 1.6;
}

/* OPEN STATE */
.faq-item.active .faq-answer {
  max-height: 300px;
}

.faq-item.active .icon {
  transform: rotate(45deg); /* + becomes × */
}
.seo-section {
  margin: 80px 0 60px;
  padding: 0 20px;
}

.seo-container {
  max-width: 900px;
  margin: 0 auto;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 18px;
  padding: 40px 36px;
}

.seo-container h2 {
  font-size: 28px;
  margin-bottom: 16px;
}

.seo-container h3 {
  font-size: 20px;
  margin-top: 28px;
  margin-bottom: 10px;
}

.seo-container p {
  font-size: 16px;
  line-height: 1.7;
  color: #d1d5db;
}

.seo-link {
  color: #8b5cf6;
  font-weight: 600;
  text-decoration: none;
}

.seo-link:hover {
  text-decoration: underline;
}

/* --- COLORFUL CENTERED HEADING --- */
.viral-heading {
    text-align: center;                 /* Centers the text */
    font-size: 3rem;                    /* Makes it big and bold */
    font-weight: 800;                   /* Extra bold thickness */
    margin: 40px 0 20px 0;              /* Spacing around the heading */
    
    /* The Magical Gradient Color */
    background: linear-gradient(to right, #8b5cf6, #ec4899, #f59e0b); 
    -webkit-background-clip: text;      /* Clips background to the text shape */
    -webkit-text-fill-color: transparent; /* Makes text transparent so bg shows */
    background-clip: text;              /* Standard property for compatibility */
    
    letter-spacing: -1px;               /* Tightens letters for a modern look */
}

/* Mobile Adjustment */
@media (max-width: 600px) {
    .viral-heading {
        font-size: 2.2rem; /* Smaller on phone so it stays on one line */
    }
}


 /* Desktop Links */
        /* --- NAVBAR LINKS FIX --- */
        .nav-menu {
            display: flex;
            gap: 20px;
            align-items: center;
        }

        /* Targeted specifically to make text visible */
        .nav-menu a {
            color: #e2e8f0 !important; /* Forces bright color */
            text-decoration: none;     /* Removes underline */
            font-size: 0.95rem;
            font-weight: 600;
            transition: all 0.3s;
            padding: 8px 12px;
            border-radius: 8px;
            opacity: 0.9;
        }

        .nav-menu a:hover {
            color: #ffffff !important; /* Pure white on hover */
            background: rgba(255, 255, 255, 0.1);
            opacity: 1;
            transform: translateY(-1px);
        }

     /* --- HAMBURGER ICON --- */
.hamburger {
    display: none;
    cursor: pointer;
    z-index: 2000; /* CRITICAL: Forces icon ABOVE the menu overlay */
    position: relative; 
    width: 30px;
    height: 20px;
}

.bar {
    display: block;
    width: 100%;
    height: 3px;
    margin: 5px 0;
    -webkit-transition: all 0.3s ease-in-out;
    transition: all 0.3s ease-in-out;
    background-color: white;
    border-radius: 3px;
}

/* --- MOBILE MENU FIX --- */
@media (max-width: 768px) {
    .hamburger {
        display: block;
    }

    /* 1. Hide Middle Bar */
    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    /* 2. Rotate Top Bar (X) */
    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
        background-color: #ec4899; /* Turns Pink when open */
    }

    /* 3. Rotate Bottom Bar (X) */
    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
        background-color: #ec4899; /* Turns Pink when open */
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 0;
        flex-direction: column;
        background-color: rgba(15, 23, 42, 0.98); /* Dark solid background */
        width: 100%;
        height: 100vh; /* Full screen height */
        text-align: center;
        transition: 0.3s ease-in-out;
        padding-top: 100px; /* Pushes links down below the X */
        z-index: 1500; /* Lower than hamburger (2000) */
        box-shadow: none;
        gap: 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu a {
        display: block;
        padding: 20px 0;
        font-size: 1.2rem;
        border-bottom: 1px solid rgba(255,255,255,0.05);
        color: white !important;
    }
}
/* --- FOOTER STYLES --- */
footer {
    text-align: center;
    padding: 40px 20px;
    margin-top: 60px;
    border-top: 1px solid rgba(255, 255, 255, 0.05); /* Subtle top line */
    background-color: rgba(15, 23, 42, 0.4); /* Slight background tint */
}

footer p {
    color: #94a3b8; /* Muted text color */
    font-size: 0.9rem;
    margin: 0 0 15px 0; /* Space between copyright and links */
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 25px; /* Space between each link */
    flex-wrap: wrap; /* Allows links to wrap on very small screens */
}

.footer-links a {
    color: #64748b;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: white; /* Brighten on hover */
    text-decoration: underline;
}

/* Mobile Tweak: Stack links closer if needed */
@media (max-width: 600px) {
    .footer-links {
        gap: 15px;
        font-size: 0.85rem;
    }
}
