/* RESET & GLOBALS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: 0.25s ease-in-out;
}


html, body {
    width: 100%;
    overflow-x: hidden !important;
}
.brand {
    font-weight: 900;
    font-size: 25px;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

body {
    font-family: "Inter", "Poppins", Arial, sans-serif;
    background: #f5f7fa;
    color: #1f2937;
    line-height: 1.7;
}

/* ------------------------------
      HEADER
--------------------------------*/
header {
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(135deg, #2563eb, #60a5fa);
    color: white;
    border-bottom-left-radius: 40px;
    border-bottom-right-radius: 40px;
    box-shadow: 0 4px 18px rgba(0,0,0,0.15);
    width: 100%;
    max-width: 100%;
}

/* Prevent header overflow */
header h1 {
    font-size: 2.6rem;
    font-weight: 800;
    margin-bottom: 10px;
    word-wrap: break-word;
}

.subtitle {
    opacity: .90;
    font-size: 1.15rem;
}

/* ------------------------------
      HERO
--------------------------------*/
.hero {
    max-width: 900px;
    width: 100%;
    background: white;
    margin: 30px auto;
    padding: 45px 30px;
    border-radius: 25px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.07);
    text-align: center;
}

.AI {
    font-size: 2rem;
    font-weight: 800;
    color: #2563eb;
    text-align: center;
}

.hero h2 {
    font-size: 2rem;
    font-weight: 700;
}

.hero p {
    font-size: 1.15rem;
    opacity: .85;
    margin-top: 10px;
}

/* Button */
#generateBtn {
    background: #2563eb;
    padding: 14px 32px;
    border-radius: 50px;
    border: none;
    color: white;
    font-weight: 600;
    cursor: pointer;
    margin-top: 20px;
    font-size: 1rem;
    box-shadow: 0 5px 14px rgba(37,99,235,0.25);
}

#generateBtn:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
}

/* ------------------------------
      OUTPUT BOX
--------------------------------*/
.output-box {
    max-width: 900px;
    width: 100%;
    margin: 25px auto;
    background: white;
    padding: 25px;
    border-radius: 20px;
    box-shadow: 0 8px 22px rgba(0,0,0,0.07);
}

#resultBox {
    background: #111827;
    color: #10b981;
    padding: 20px;
    border-radius: 12px;
    font-family: "JetBrains Mono", monospace;
    font-size: 15px;
    white-space: pre-wrap;
    overflow-x: auto;
}

/* ------------------------------
      AI TOOLS LIST
--------------------------------*/
.list {
    max-width: 500px;
    margin: 40px auto;
    width: 100%;
    padding: 0;
}

.list li {
    display: flex;
    align-items: center;
    background: white;
    padding: 14px;
    margin-bottom: 15px;
    border-radius: 12px;
    gap: 14px;
    font-weight: 600;
    text-transform: uppercase;
    color: #374151;
    box-shadow: 0 6px 15px rgba(0,0,0,0.06);
    overflow: hidden;
}

.list img {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    object-fit: cover;
}

.grok-logo {
    filter: grayscale(1) brightness(.3);
}

/* ------------------------------
      USING AI STEPS
--------------------------------*/
.using-AI {
    max-width: 900px;
    width: 100%;
    margin: 40px auto;
    padding: 20px;
    text-align: center;
}

.using-AI p {
    font-size: 16px;
    text-align: justify;
    background: white;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 6px 22px rgba(0,0,0,0.06);
    margin-bottom: 25px;
}

.using-AI img {
    width: 100%;
    height: auto;
    margin: 15px 0;
    border-radius: 18px;
    box-shadow: 0 10px 24px rgba(0,0,0,0.08);
}

/* Step label */
.step1 {
    display: inline-block;
    background: #dbeafe;
    color: #1e40af;
    padding: 10px 25px;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 15px;
    border-left: 5px solid #2563eb;
}

/* ------------------------------
      ADVANTAGES GRID
--------------------------------*/
.adventages-title {
    max-width: 900px;
    margin: 40px auto 20px;
    padding: 20px;
    font-size: 26px;
    font-weight: 800;
    text-align: center;
    background: white;
    border-radius: 18px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.07);
}

.advantages-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: 16px;
    max-width: 1100px;
    width: 100%;
    padding: 10px;
    margin: auto;
}

.advantage-card {
    background: white;
    padding: 25px;
    border-radius: 15px;
    border-left: 6px solid #2563eb;
    box-shadow: 0 10px 20px rgba(0,0,0,0.07);
}

.advantage-card h4 {
    color: #2563eb;
    font-size: 1.2rem;
    margin-bottom: 8px;
}

/* ------------------------------
      PDF VIEWER
--------------------------------*/
.pdf-wrapper {
    max-width: 900px;
    margin: 40px auto;
    width: 100%;
}

#pdf-full-view {
    width: 100%;
    border-radius: 12px;
    border: 1px solid #d1d5db;
    box-shadow: 0 10px 24px rgba(0,0,0,0.10);
}

/* ------------------------------
      NAVBAR
--------------------------------*/
:root {
    --nav-bg: white;
    --nav-text: #1f2937;
    --nav-accent: #2563eb;
    --nav-height: 70px;
}

.top-nav {
    position: sticky;
    top: 0;
    width: 100%;
    background: var(--nav-bg);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    border-bottom: 1px solid #e5e7eb;
    box-shadow: 0 8px 20px rgba(0,0,0,0.05);
    z-index: 999;
}

.nav-list {
    display: flex;
    gap: 20px;
}

.nav-link {
    font-weight: 600;
    padding: 10px 14px;
    border-radius: 8px;
}

.nav-link:hover {
    background: #e0e7ff;
    color: #1e40af;
}

/* Mobile hamburger */
.hamburger {
    display: none;
}

@media (max-width: 900px) {
    .nav-list {
        display: none;
    }
    .hamburger {
        display: flex;
        width: 45px;
        height: 45px;
        align-items: center;
        justify-content: center;
        background: #e5e7eb;
        border-radius: 10px;
    }
}

/* ------------------------------
      MOBILE PANEL
--------------------------------*/
.mobile-panel {
    background: white;
    padding: 15px;
    display: none;
    position: absolute;
    top: calc(var(--nav-height) + 10px);
    right: 25px;
    width: 230px;
    border-radius: 12px;
    box-shadow: 0 10px 26px rgba(0,0,0,0.12);
}

.mobile-panel.open {
    display: block;
}

.mobile-panel .nav-link {
    display: block;
    padding: 12px 10px;
    margin-bottom: 8px;
    background: #f3f4f6;
    border-radius: 10px;
}

/* ------------------------------
      FOOTER
--------------------------------*/
.footer {
    background-color: #333;
    color: #fff;
    padding: 2rem 0;
    margin-top: 2rem;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.footer-section {
    flex: 1;
    min-width: 200px;
    margin: 1rem;
}

.footer-section h4 {
    margin-bottom: 1rem;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.social-links a {
    background-color: #555;
    padding: 0.5rem;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.footer-bottom {
    text-align: center;
    padding: 1rem;
    border-top: 1px solid #555;
    margin-top: 2rem;
}

/* Back to top button */
#backToTop {
    background-color: #ff6b6b;
    color: #fff;
    border: none;
    padding: 0.5rem 1rem;
    cursor: pointer;
    border-radius: 5px;
}

#backToTop:hover {
    background-color: #e55a5a;
}

/* ------------------------------
      PDF CONTAINER
--------------------------------*/
.pdf-container {
    width: 100%;
    max-width: 1200px;
    margin: 20px auto;
    padding: 10px;
    border-radius: 8px;
    background-color: #f8f8f8;
}

.pdf-embed {
    width: 100%;
    min-height: 800px;
    border: 1px solid #ccc;
    border-radius: 6px;
    display: block;
}

/* ------------------------------
      RESPONSIVE FIXES
--------------------------------*/
@media (max-width: 480px) {
    header h1 {
        font-size: 1.9rem;
    }

    .hero {
        padding: 30px;
    }

    #resultBox {
        font-size: 13px;
    }

    .using-AI img {
        max-height: 250px;
        object-fit: cover;
    }

    #pdf-full-view {
        height: 80vh;
    }
}
