 
 :root {
     --bg-dark: #0f172a;        
    --bg-light: #1e293b;       
    
     --bg-dark-frost: rgba(15, 23, 42, 0.9);
    --bg-light-frost: rgba(30, 41, 59, 0.9);
    
     --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --border-color: #334155;
    
     --accent-glow: rgba(16, 185, 129, 0.4);
    --accent-color: #10b981; /* Solid accent for text/buttons */
    --accent-gradient: linear-gradient(135deg, #10b981 0%, #06b6d4 100%);
}

 body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    
     background: linear-gradient(to bottom right, var(--bg-dark), #111827);
    
     min-height: 100vh;
    
    color: var(--text-primary);
    margin: 0;
    padding: 2rem;
    
     background-attachment: fixed;
}

header, .blog-post, .category-filters, .image-card {
    opacity: 0;
    transition: all 0.6s ease-out;
}

/* --- SPECIFIC MOVEMENTS --- */

/* 1. Header (Slides down) */
header { transform: translateY(-50px); }

/* 2. Blog Post (Slides up) */
.blog-post { transform: translateY(50px); }

/* 3. Category Filter (Slides in from the LEFT) */
.category-filters {
    transform: translateX(-50px); 
    /* Optional: add a background to make it pop */
    /* display: inline-block;  */
}

/* 4. Image Card (Zoom + Slide Up effect) */
.image-card {
    transform: translateY(30px) scale(0.9);
}

/* --- THE VISIBLE STATE --- */
/* This resets everything to normal when JS adds the class */
header.visible, 
.blog-post.visible, 
.category-filters.visible, 
.image-card.visible {
    opacity: 1;
    transform: translate(0) scale(1);
}

/* Optional: Stagger effect for image cards so they don't load all at once */
/* This makes the 2nd and 3rd cards wait a bit before appearing */
.image-card:nth-child(2) { transition-delay: 100ms; }
.image-card:nth-child(3) { transition-delay: 200ms; }

/* Standard styling for the post */
.blog-post {
    
    
    /* --- ANIMATION STARTING STATE --- */
    opacity: 0; /* Invisible */
    transform: translateY(30px); /* Pushed down 30px */
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

/* --- ANIMATION FINAL STATE --- */
.blog-post.visible {
    opacity: 1; /* Fully visible */
    transform: translateY(0); /* Back to original position */
}


/* --- 1. Loader Overlay Styles --- */
.loader-overlay {
    display: none; 
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: var(--bg-dark-frost); 
    backdrop-filter: blur(5px);
    justify-content: center;
    align-items: center;
    flex-direction: column;
    z-index: 2000;
}
/* (Loader bouncing styles are the same) */
.loader-bouncing { display: flex; justify-content: center; }
.loader-bouncing div {
    width: 15px; height: 15px;
    background-color: var(--text-primary);
    border-radius: 50%; margin: 0 5px;
    animation: bounce 1.4s infinite ease-in-out both;
}
.loader-bouncing div:nth-child(1) { animation-delay: -0.32s; }
.loader-bouncing div:nth-child(2) { animation-delay: -0.16s; }
@keyframes bounce { 0%, 80%, 100% { transform: scale(0); } 40% { transform: scale(1.0); } }

/* --- Page Header --- */
.header {
    text-align: center;
    margin-bottom: 2rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}
.header h1 { font-size: 2.5rem; margin-bottom: 0.5rem; }
.header p { font-size: 1.1rem; color: var(--text-secondary); }

/* --- Category Filter Styling (Sticky Bar) --- */
.category-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    /* position: sticky; */
    top: 0;
    z-index: 900;
    
    /* background-color: var(--bg-dark-frost); */
    /* backdrop-filter: blur(8px); Frosted glass! */
    
    padding: 1.5rem;
    margin-left: -2rem; 
    margin-right: -2rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.filter-btn {
    background-color: #1f293776;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    padding: 0.6rem 1.2rem;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
}
.filter-btn:hover {
    /* background-color: var(--border-color); */
    color: var(--text-primary);
}
.filter-btn.active {
    background: var(--accent-gradient);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 15px var(--accent-glow);
}

/* --- Image Gallery Styling --- */
.image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px,  1fr));
    gap: 1.5rem;
}
.image-card {
    cursor: pointer;
    /* pointer-events: none; */
    overflow: hidden;
    border-radius: 12px;
    position: relative;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
    background-color: var(--bg-light); /* Solid bg for the card */
}
.image-card:hover {
    transform: scale(1.04);
    box-shadow: 0 8px 30px rgb(16, 185, 129);
}
.category-filters:hover,.filter-btn:hover,.blog-post:hover{ box-shadow: 0 8px 30px rgb(3, 71, 83); }
.image-card img {
    width: 100%;
    height:100%;
    object-fit: cover;
    display: block;
}
.image-card.hidden { display: none; }

/* --- MODAL STYLING (Frosted) --- */
.prompt-modal {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.7); 
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 1000;
}
.prompt-modal.active { opacity: 1; pointer-events: all; }

.modal-content {
    background-color: var(--bg-light-frost);
    backdrop-filter: blur(10px);
    padding: 0.5rem 2rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    box-shadow: 0 0 40px -10px var(--accent-glow);
    width: 100%;
    max-width: 500px;
    position: relative;
    transform: scale(0.95);
    transition: transform 0.3s ease;
}
.prompt-modal.active .modal-content { transform: scale(1); }
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}
.modal-header h3 {
    margin: 0; font-size: 1.3rem;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.close-modal {
    position: absolute;
    top: 5px; right: 15px;
    background: none; border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    transition: color 0.2s ease;
    z-index: 10;
}
.close-modal:hover { color: var(--text-primary); }

/* --- 2-Step View Styling --- */
#prompt-view { display: flex; flex-direction: column; gap: 1rem; }
#tools-view { display: none; flex-direction: column; gap: 0.75rem; }
.tools-header {
    text-align: center; font-size: 1.25rem; font-weight: 600;
    color: #10b981; /* Fallback */
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0 0 0.25rem 0;
}
.tools-header .fa-circle-check { margin-right: 8px; }
.tools-subheader {
    text-align: center;
    margin: 0 0 1rem 0;
    color: var(--text-secondary);
}

/* --- Prompt Text Area --- */
#prompt-text {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-secondary);
    background-color: var(--bg-dark-frost);
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    margin-bottom: 0;
    min-height: 100px;
    white-space: pre-wrap;
    word-wrap: break-word;
}

/* --- Action Button Styling --- */
.action-button {
    width: 100%; padding: 0.8rem 1rem;
    font-size: 1rem; font-weight: 600;
    border: none; border-radius: 8px;
    cursor: pointer; transition: all 0.2s ease;
    display: flex; align-items: center; justify-content: center;
    gap: 10px;
}
.action-button:hover { filter: brightness(1.2); transform: translateY(-2px); }
.gradient-copy { background: var(--accent-gradient); color: #fff; }
.gradient-share { background: linear-gradient(90deg, #FF6B6B 0%, #FFCD6B 100%); color: #fff; }
.ai-button { background-color: var(--border-color); color: var(--text-primary); }
.ai-button:hover { background-color: #4b5563; }
.ai-button img { height: 20px; width: 20px; }
.back-button { background-color: #444; color: var(--text-secondary); margin-top: 0.5rem; }
.back-button:hover { background-color: #555; color: var(--text-primary); }
.modal-persistent-actions {
    margin-top: 1.5rem; padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}


.share-popup {
    display: none;
    flex-direction: column;
    gap: 0.75rem;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    z-index: 1001; /* Above the main modal */
    width: 90%;
    max-width: 300px;
}

.share-popup h4 {
    margin: 0 0 0.5rem 0;
    color: var(--text-primary);
    text-align: center;
    font-size: 1.2rem;
}

.social-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.social-button {
    padding: 0.75rem;
    border-radius: 5px;
    text-decoration: none;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-weight: 500;
    color: #fff;
    transition: filter 0.2s;
}
.social-button:hover {
    filter: brightness(1.1);
}
.social-button .fab {
    font-size: 1.2rem;
}

/* Social Media Colors */
.social-button.whatsapp { background-color: #25D366; }
.social-button.telegram { background-color: #0088cc; }
.social-button.facebook { background-color: #1877F2; }
.social-button.instagram { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); } 

/* (All other .share-popup styles are the same) */

/* --- Floating WhatsApp CTA Button (No changes) --- */
 .whatsapp-cta-button {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%); 
    z-index: 1000;
    background-color: #25D366;
    color: #FFFFFF;
    border-radius: 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    text-decoration: none;
    display: flex;
    align-items: center;
    padding: 10px 20px;
    gap: 12px;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    font-weight: bold;
    animation: slide-in-and-out-desktop 10s ease-in-out infinite;
}

.whatsapp-cta-button .fab {
    font-size: 24px;
}

.whatsapp-cta-button:hover {
    animation-play-state: paused; 
    background-color: #1EAE56;
    transform: translateY(-50%) scale(1.05); 
}

@keyframes slide-in-and-out-desktop {
    0% {
        transform: translateY(-50%) translateX(110%);
        opacity: 0;
    }
    20% {
        transform: translateY(-50%) translateX(0);
        opacity: 1;
    }
    80% {
        transform: translateY(-50%) translateX(130%);
        opacity: 1;
    }
    100% {
        transform: translateY(-50%) translateX(110%);
        opacity: 0;
    }
}

@keyframes slide-in-out-mobile-full {
    0% {
        transform: translateX(110%);
        opacity: 0;
    }
    20% {
        transform: translateX(0);
        opacity: 1;
    }
    80% {
        transform: translateX(180%);
        opacity: 1;
    }
    100% {
        transform: translateX(110%);
        opacity: 0;
    }
}


/* --- Load More Button Styles --- */
.load-more-container {
    display: flex;
    justify-content: center;
    padding: 2rem 0;
}
.load-more-btn {
    background: var(--accent-gradient);
    color: #fff;
    border: none;
    padding: 0.8rem 2.5rem;
    border-radius: 30px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px var(--accent-glow);
}
.load-more-btn:hover { transform: scale(1.05); filter: brightness(1.2); }
.load-more-btn.hidden { display: none; }

/* --- Blog Post Styles (Frosted) --- */
.blog-post {
    line-height: 1.7;
    /* background-color: var(--bg-light-frost); */
    backdrop-filter: blur(6px);
    color: var(--text-primary);
    max-width: 1000px;
    margin: 2rem auto;
    padding: 20px 30px;
    border-radius: 8px;
    box-shadow: 0 4px 20px var(--accent-glow);
    border: 1px solid var(--border-color);
}
.blog-post h1, .blog-post h2, .blog-post h3 {
    font-family: 'Georgia', serif;
    color: var(--text-primary);
    margin-top: 1.5em; margin-bottom: 0.5em;
    line-height: 1.3;
}
.blog-post h1 {
    font-size: 2.25rem; text-align: center;
    border-bottom: 2px solid var(--border-color); 
    padding-bottom: 15px;
}
.blog-post h2 {
    font-size: 1.75rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 8px;
}
.blog-post h3 { font-size: 1.25rem; }
.blog-post p {
    font-size: 1rem; margin-bottom: 1.25em;
    color: var(--text-secondary);
}
.blog-post a {
    color: #38bdf8; /* Light blue from the new palette */
    text-decoration: none;
    font-weight: 500;
}
.blog-post a:hover { text-decoration: underline; }
.blog-post ul, .blog-post ol {
    margin-left: 20px; padding-left: 15px;
    margin-bottom: 1.25em;
    color: var(--text-secondary);
}
.blog-post li { margin-bottom: 0.75em; }
.blog-post code {
    font-family: "Courier New", Courier, monospace;
    background-color: var(--bg-dark-frost);
    color: #6ee7b7; /* A nice mint green */
    padding: 3px 6px;
    border-radius: 4px;
    font-size: 0.95em;
    border: 1px solid var(--border-color);
}
.blog-post .prompt-example {
    background-color: var(--bg-dark-frost);
    border-left: 4px solid #10b981; /* New accent green */
    padding: 15px 20px;
    margin: 20px 0;
    border-radius: 0 8px 8px 0;
}
.blog-post .prompt-example p {
    margin: 0.5em 0; font-size: 0.95em;
    color: var(--text-secondary);
}
.blog-post .prompt-example hr {
    border: 0;
    border-top: 1px dashed var(--border-color);
    margin: 15px 0;
}
.blog-post .prompt-example strong { color: var(--text-primary); }
.blog-post strong {
    font-weight: 600;
    color: var(--text-primary);
}

/* --- MOBILE RESPONSIVE STYLES --- */
@media (max-width: 768px) {
    .whatsapp-cta-button {
        top: auto; bottom: 20px;
        transform: none; 
        animation: slide-in-out-mobile-full 10s ease-in-out infinite;
    }
    .whatsapp-cta-button:hover {
        transform: scale(1.05); 
        animation-play-state: paused;
    }
    
    body { padding: 1rem; }
    
    .category-filters {
        position: static;
        padding: 0;
        margin-left: 0;
        margin-right: 0;
        border-bottom: none;
        box-shadow: none;
        background-color: transparent; 
        backdrop-filter: none;
    }

    .header h1 { font-size: 2rem; }
    .header p { font-size: 1rem; }
     .modal-content { padding: 1.5rem; }
    #prompt-text { font-size: 0.9rem; }
    /* === THIS IS THE CHANGE === */
    .image-gallery { 
        gap: 1rem;
        /* This line creates your 2-column layout */
        grid-template-columns: repeat(1, 1fr); 
    }
}

 
.site-footer {
     /* background-color: var(--bg-light-frost); */
    backdrop-filter: blur(10px);
    
    color: var(--text-secondary);
    /* More padding at the top for a premium feel */
    padding: 4rem 2rem 2rem 2rem; 
    margin-top: 13rem;
    
    border-top: 1px solid var(--border-color);
    box-shadow: 0 -5px 20px rgba(0,0,0,0.2);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    /* Create 3 columns: 1.5 for "About", 1 for "Links", 1 for "Social" */
    grid-template-columns: 1.5fr 1fr 1fr; 
    gap: 2.5rem; /* Space between the columns */
    margin-bottom: 2rem;
}

/* --- Footer Column Titles --- */
.footer-about h3,
.footer-links-section h3,
.footer-social-section h3 {
    font-size: 1.25rem;
    color: var(--text-primary); /* Brighter for titles */
    margin-top: 0;
    margin-bottom: 1.5rem;
    
    /* Use the accent color for a small underline */
    border-bottom: 2px solid #10b981; 
    padding-bottom: 0.5rem;
    display: inline-block; /* Makes the border fit the text */
}

/* --- Column 1: About --- */
.footer-about p {
    line-height: 1.7;
    font-size: 0.95rem;
    margin: 0;
    opacity: 0.9;
}

/* --- Column 2: Links --- */
.footer-links-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links-section li {
    margin-bottom: 0.75rem;
}

.footer-links-section a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.footer-links-section a:hover {
    color: #10b981; /* Accent color */
    padding-left: 5px; /* Nice hover effect */
}

/* --- Column 3: Social --- */
.footer-social-icons {
    display: flex;
    gap: 1.5rem; /* Space between icons */
}

.footer-social-icons a {
    color: var(--text-secondary);
    font-size: 1.5rem; /* Larger icons */
    transition: all 0.3s ease;
}

.footer-social-icons a:hover {
    color: #06b6d4; /* The other accent color */
    transform: scale(1.1) translateY(-2px);
}

/* --- Bottom Copyright Bar --- */
.footer-copyright {
    font-size: 0.9rem;
    color: var(--text-secondary);
    opacity: 0.8;
    text-align: center;
    
    /* Separates it from the columns above */
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.footer-copyright p {
    margin: 0;
}

/* --- Footer Mobile --- */
@media (max-width: 768px) {
    .footer-container {
        /* Stack the 3 columns on top of each other */
        grid-template-columns: 1fr; 
        gap: 2rem;
    }
    
    .footer-about h3,
    .footer-links-section h3,
    .footer-social-section h3 {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }
}

.comparison-section {
            width: 100%;
            max-width: 800px;
            margin: 0 auto;
            text-align: center;
        }

        .comparison-section h2 {
            font-size: 2.25rem; /* 36px */
            font-weight: 600;
            margin-bottom: 30px;
        }

        /* * --- This is the Key Fix ---
         * 1. We use 'display: flex' to create a flexible row.
         * 2. 'gap' adds space between the boxes.
        */
        .comparison-container {
            display: flex;
            justify-content: center;
            align-items: stretch; /* Makes boxes same height */
            gap: 30px; /* Space between the boxes */
        }

        /*
         * 3. 'flex: 1' is the magic!
         * It tells BOTH boxes to take up an equal
         * amount of the available space.
        */
        .image-box {
            flex: 1; /* <-- THIS MAKES THEM EQUAL SIZE */
            /* background-color: #2d3748; Dark box color */
            border-radius: 12px;
            padding: 24px;
            border: 1px solid #4a5568;
        }

        .image-box h3 {
            font-size: 1.5rem; /* 24px */
            margin-top: 0;
            margin-bottom: 20px;
            color: #fff;
        }

        /* --- Placeholder for the image --- */
        .image-placeholder {
            width: 100%;
            aspect-ratio: 1 / 1; /* Makes it a perfect square */
            background-color: #d1dbec;
            border-radius: 8px;
            
            /* Centering the "A Sample Image" text */
            display: flex;
            justify-content: center;
            align-items: center;
            font-size: 1.25rem;
            color: #a0aec0;
            font-weight: 500;
        }

        /* --- How to add a REAL image --- */
        .image-box img {
            width: 100%;
            height: auto;
            border-radius: 8px;
            aspect-ratio: 1 / 1; /* Optional: keeps it square */
            object-fit: cover;   /* Optional: prevents stretching */
        }
        
        /* --- Responsive for mobile --- */
        @media (max-width: 768px) {
            .comparison-container {
                flex-direction:  column; /* Stacks boxes on mobile */
            }
        }