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

        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.8);
            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 button {
            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;
        }

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

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

        
        /* --- 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 --- */
        .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: 10px;
        }
        .btn-generate:hover { transform: translateY(-2px); opacity: 0.95; }

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

        /* EDUCATIONAL CARDS */
        .info-card {
            display: flex; gap: 15px; margin-bottom: 15px;
            background: rgba(255,255,255,0.03); padding: 15px; border-radius: 12px;
        }
        .info-icon { 
            font-size: 1.5rem; background: #334155; width: 40px; height: 40px; 
            display: flex; align-items: center; justify-content: center; border-radius: 8px; flex-shrink: 0; 
        }

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

        .score-card {
            background: white; 
            color: #1e293b;
            text-align: center;
            padding: 30px;
            border-radius: 20px;
        }
        
        .circle-wrap {
            position: relative;
            width: 120px;
            height: 120px;
            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: 100px;
            height: 100px;
            background: white;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.8rem;
            font-weight: 800;
            color: var(--primary);
        }

        .phone-frame {
            background: #0f172a;
            border: 8px solid #334155;
            border-radius: 30px;
            padding: 15px;
            position: relative;
            min-height: 400px;
        }
        
        .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.4; }
        .phone-tags { color: var(--secondary); font-weight: 500; margin-top: 5px; display: block; }

/* ================= SEO INTRO ================= */

.seo-intro {
  max-width: 900px;
  margin: 40px auto 20px;
  padding: 0 20px;
}

.seo-intro p {
  font-size: 16px;
  line-height: 1.7;
  color: #d1d5db;
  margin-bottom: 14px;
}

/* ================= SEO CONTENT SECTION ================= */

.seo-section {
  margin: 80px 0 60px;
  padding: 0 20px;
}

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

.seo-container h2 {
  font-size: 28px;
  margin-bottom: 18px;
  color: #ffffff;
}

.seo-container h3 {
  font-size: 20px;
  margin-top: 26px;
  margin-bottom: 8px;
  color: #e5e7eb;
}

.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;
}

/* ================= FAQ SECTION ================= */

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

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

/* FAQ ITEM */
.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.08);
}

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

/* PLUS ICON */
.faq-question .icon {
  font-size: 26px;
  font-weight: 400;
  transition: transform 0.3s ease;
}

/* ANSWER */
.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;
  font-size: 16px;
}

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

.faq-item.active .icon {
  transform: rotate(45deg); /* + becomes × */
}

/* ================= MOBILE OPTIMIZATION ================= */

@media (max-width: 600px) {
  .seo-container {
    padding: 28px 22px;
  }

  .seo-container h2 {
    font-size: 24px;
  }

  .faq-title {
    font-size: 26px;
  }

  .faq-question {
    font-size: 16px;
    padding: 18px 20px;
  }

  .faq-answer p {
    font-size: 15px;
  }
}

/* --- STYLISH VIRAL HEADING --- */
.viral-heading {
    text-align: center;                 /* Centers the text */
    font-size: 2.8rem;                  /* Large, readable size */
    font-weight: 800;                   /* Extra Bold */
    margin: 40px 0 20px 0;              /* Spacing */
    line-height: 1.2;                   /* Prevents overlapping lines */
    
    /* The Viral Gradient Effect */
    background: linear-gradient(to right, #8b5cf6, #ec4899, #f59e0b);
    -webkit-background-clip: text;      /* Puts color inside text */
    -webkit-text-fill-color: transparent; 
    background-clip: text;
    
    letter-spacing: -1px;               /* Modern tight spacing */
}

/* Mobile Adjustment */
@media (max-width: 600px) {
    .viral-heading {
        font-size: 2rem; /* Smaller font for phones so it fits nicely */
        padding: 0 10px;
    }
}

/* --- 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;
    }
}

 /* 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;
    }
}
