/* ==========================================================
   AI IMAGE GENERATION PAGE — Dark Creative Spectrum Theme
   ========================================================== */

/* ── SCROLL REVEAL ── */
.img-reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.65s ease, transform 0.65s ease;
}
.img-reveal.visible { opacity: 1; transform: translateY(0); }

/* ── HERO ── */
.img-hero {
    min-height: 88vh;
    display: flex;
    align-items: center;
    background: #08060f;
    position: relative;
    overflow: hidden;
}

#img-canvas {
    position: absolute;
    inset: 0;
    width: 100%; height: 100%;
    z-index: 0;
    pointer-events: none;
}

.img-hero-grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2;
    padding: 80px 24px;
}

/* Badge */
.img-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 1rem;
    background: rgba(255,80,120,0.1);
    border: 1px solid rgba(255,80,120,0.3);
    border-radius: 999px;
    color: #ff8fb3;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 1.4rem;
    animation: fadeUp 0.8s ease both;
}
.img-badge-dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: #ff8fb3;
    animation: dotBlink 1.4s ease-in-out infinite;
}
@keyframes dotBlink { 0%,100%{opacity:1;} 50%{opacity:0.15;} }

.img-hero-content {
    text-align: left;
}

.img-hero-content h1 {
    font-size: clamp(2.3rem, 4vw, 3.4rem);
    font-weight: 900;
    color: #ffffff;
    line-height: 1.12;
    margin-bottom: 0.6rem;
    animation: fadeUp 0.8s ease 0.15s both;
    background: linear-gradient(135deg, #fff 30%, #ff8fb3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.img-hero-content h2 {
    font-size: 1.4rem;
    color: rgba(255,255,255,0.65);
    font-weight: 600;
    margin-bottom: 1.2rem;
    animation: fadeUp 0.8s ease 0.28s both;
}
.img-hero-desc {
    font-size: 1rem;
    color: rgba(255,255,255,0.5);
    line-height: 1.8;
    margin-bottom: 1.6rem;
    animation: fadeUp 0.8s ease 0.42s both;
}

.img-hero-modes {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-bottom: 1.8rem;
    animation: fadeUp 0.8s ease 0.55s both;
}
.img-mode-pill {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.32rem 0.85rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.12);
    color: rgba(255,255,255,0.75);
    transition: background 0.2s ease, border-color 0.2s ease;
}
.img-mode-pill:hover {
    background: rgba(255,80,120,0.12);
    border-color: rgba(255,80,120,0.3);
}

.img-hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    animation: fadeUp 0.8s ease 0.68s both;
}
@keyframes fadeUp {
    from { opacity:0; transform:translateY(22px); }
    to   { opacity:1; transform:translateY(0); }
}

/* ── GENERATOR CARD ── */
.img-generator-card {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,100,150,0.2);
    border-radius: 22px;
    padding: 1.8rem;
    backdrop-filter: blur(16px);
    box-shadow: 0 24px 64px rgba(0,0,0,0.6), 0 0 60px rgba(255,80,120,0.06);
    animation: floatCard 6s ease-in-out infinite;
}
@keyframes floatCard { 0%,100%{transform:translateY(0);} 50%{transform:translateY(-12px);} }

.igc-header {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.07);
    margin-bottom: 1.1rem;
}
.igc-icon { font-size: 1.2rem; }
.igc-title { font-weight: 700; color: rgba(255,255,255,0.75); font-size: 0.88rem; }
.igc-model {
    margin-left: auto;
    font-size: 0.7rem;
    color: #ff8fb3;
    font-weight: 700;
    padding: 0.2rem 0.65rem;
    background: rgba(255,80,120,0.12);
    border: 1px solid rgba(255,80,120,0.25);
    border-radius: 999px;
}

.igc-prompt-box {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 0.8rem 1rem;
    margin-bottom: 1.2rem;
    min-height: 68px;
}
.igc-prompt-label {
    display: block;
    font-size: 0.68rem;
    color: #ff8fb3;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.3rem;
}
.igc-prompt-text {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.85);
    font-style: italic;
    border-right: 2px solid #ff8fb3;
    animation: blink-cursor 0.8s steps(1) infinite;
    min-height: 1.2rem;
    display: inline-block;
}
@keyframes blink-cursor { 50% { border-color: transparent; } }

.igc-preview-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
    margin-bottom: 1.2rem;
}
.igc-preview-thumb {
    border-radius: 10px;
    height: 80px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.08);
}
.igc-thumb-0 { background: linear-gradient(135deg, #ff5070, #ff8060); }
.igc-thumb-1 { background: linear-gradient(135deg, #6040ff, #c060ff); }
.igc-thumb-2 { background: linear-gradient(135deg, #00c8a0, #00e8c8); }
.igc-thumb-3 { background: linear-gradient(135deg, #ff8c00, #ffd000); }

.igc-thumb-shimmer {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    animation: shimmer 2s infinite;
}
@keyframes shimmer { 0%{transform:translateX(-100%);} 100%{transform:translateX(100%);} }

.igc-thumb-label {
    position: absolute;
    bottom: 4px; left: 50%;
    transform: translateX(-50%);
    font-size: 0.62rem;
    color: rgba(255,255,255,0.75);
    font-weight: 700;
    white-space: nowrap;
}

.igc-controls {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1.1rem;
}
.igc-ctrl {
    display: flex;
    flex-direction: column;
    padding: 0.45rem 0.75rem;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 9px;
    flex: 1;
    min-width: 80px;
}
.igc-ctrl-label { font-size: 0.62rem; color: rgba(255,255,255,0.4); font-weight: 700; text-transform: uppercase; }
.igc-ctrl-val { font-size: 0.8rem; color: #ffffff; font-weight: 700; }

.igc-generate-btn {
    width: 100%;
    padding: 0.8rem;
    text-align: center;
    background: linear-gradient(135deg, #ff3060, #ff6090, #ff3060);
    background-size: 200% 100%;
    animation: btnPulse 3s ease infinite;
    color: #ffffff;
    border-radius: 12px;
    font-weight: 800;
    font-size: 0.92rem;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(255,48,96,0.45);
    transition: opacity 0.2s;
}
.igc-generate-btn:hover { opacity: 0.9; }
@keyframes btnPulse {
    0%,100% { background-position: 0% 50%; }
    50%      { background-position: 100% 50%; }
}

@media (max-width: 900px) {
    .img-hero-grid { grid-template-columns: 1fr; gap: 40px; padding: 90px 24px 60px; }
}

/* ── GALLERY ── */
.img-gallery-section { background: #0f0c1a; padding: 4rem 0 3rem; }
.img-gallery-section .section-title { color: #ffffff; }
.img-section-sub {
    text-align: center;
    color: rgba(255,255,255,0.45);
    font-size: 0.98rem;
    margin-top: -1.5rem;
    margin-bottom: 3rem;
}

.img-gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: auto;
    gap: 1rem;
}

.img-gallery-card { cursor: pointer; }
.img-gallery-tall  { grid-row: span 2; }
.img-gallery-wide  { grid-column: span 2; }

.img-gallery-thumb {
    border-radius: 16px;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.img-gallery-tall .img-gallery-thumb { aspect-ratio: auto; height: 100%; min-height: 300px; }
.img-gallery-wide .img-gallery-thumb { aspect-ratio: 2; }

.img-gallery-card:hover .img-gallery-thumb {
    transform: scale(1.02);
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}
.img-gallery-emoji { font-size: 3.5rem; position: relative; z-index: 1; }

.img-gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 50%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 0.85rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.img-gallery-card:hover .img-gallery-overlay { opacity: 1; }
.img-gallery-tag {
    font-size: 0.68rem;
    color: #ff8fb3;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.img-gallery-style {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.85);
    font-weight: 600;
}

.img-gallery-caption {
    font-size: 0.78rem;
    color: rgba(255,255,255,0.45);
    margin: 0.5rem 0 0;
    padding: 0 0.2rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 900px) {
    .img-gallery-grid { grid-template-columns: 1fr 1fr; }
    .img-gallery-tall, .img-gallery-wide { grid-row: auto; grid-column: auto; }
}
@media (max-width: 600px) {
    .img-gallery-grid { grid-template-columns: 1fr; }
}

/* ── CAPABILITIES ── */
.img-capabilities { background: #08060f; padding: 4rem 0 3rem; }
.img-capabilities .section-title { color: #ffffff; }

.img-cap-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
}

@media (max-width: 1000px) {
    .img-cap-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
    .img-cap-grid { grid-template-columns: 1fr; }
}

.img-cap-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 18px;
    padding: 1.8rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.img-cap-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.4);
    border-color: rgba(255,80,120,0.25);
}

.img-cap-icon-wrap {
    width: 56px; height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin-bottom: 1rem;
}
.img-cap-card h3 {
    font-size: 1.02rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 0.55rem;
}
.img-cap-card > p {
    font-size: 0.87rem;
    color: rgba(255,255,255,0.48);
    line-height: 1.6;
    margin-bottom: 0.85rem;
}
.img-cap-card ul { list-style: none; padding: 0; }
.img-cap-card li {
    font-size: 0.83rem;
    color: rgba(255,255,255,0.55);
    padding: 0.25rem 0 0.25rem 1.2rem;
    position: relative;
}
.img-cap-card li::before { content: '→'; position: absolute; left: 0; color: #ff8fb3; font-weight: 800; }

/* ── EDUCATION USE ── */
.img-edu-section { background: #0f0c1a; padding: 4rem 0 3rem; }

.img-edu-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem 2rem;
    align-items: start;
}

.img-edu-content {
    grid-column: 1 / -1;
    max-width: 820px;
}

.img-edu-label {
    display: inline-block;
    padding: 0.3rem 0.85rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: rgba(255,80,120,0.1);
    color: #ff8fb3;
    border: 1px solid rgba(255,80,120,0.28);
    margin-bottom: 1rem;
}
.img-edu-content h2 {
    font-size: 2rem;
    font-weight: 900;
    color: #ffffff;
    margin-bottom: 0.75rem;
}
.img-edu-content > p {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.52);
    line-height: 1.7;
    margin-bottom: 2rem;
}
.img-edu-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 1rem; }
.img-edu-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.9rem;
    padding: 1rem 1.1rem;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 12px;
    transition: background 0.2s ease, border-color 0.2s ease;
}
.img-edu-list li:hover {
    background: rgba(255,80,120,0.07);
    border-color: rgba(255,80,120,0.22);
}
.img-edu-list-icon { font-size: 1.3rem; flex-shrink: 0; margin-top: 1px; }
.img-edu-list strong { display: block; color: #ffffff; font-size: 0.92rem; margin-bottom: 0.2rem; }
.img-edu-list span { font-size: 0.82rem; color: rgba(255,255,255,0.45); }

.img-edu-visual {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.img-edu-example-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 14px;
    padding: 0.85rem 1.1rem;
    height: 100%;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.img-edu-example-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(255,80,120,0.15);
}
.img-edu-example-thumb {
    width: 56px; height: 56px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    flex-shrink: 0;
}
.img-edu-example-body strong { display: block; color: #ffffff; font-size: 0.9rem; }
.img-edu-example-body span { font-size: 0.78rem; color: rgba(255,255,255,0.45); }

@media (max-width: 900px) {
    .img-edu-grid { grid-template-columns: 1fr; gap: 3rem; }
    .img-edu-content { grid-column: auto; }
}

/* ── STYLES ── */
.img-styles { background: #08060f; padding: 4rem 0 3rem; }
.img-styles .section-title { color: #ffffff; }

.img-style-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.1rem;
}

@media (max-width: 980px) {
    .img-style-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 540px) {
    .img-style-grid { grid-template-columns: 1fr; }
}
.img-style-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
}
.img-style-preview {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255,255,255,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.img-style-card:hover .img-style-preview {
    transform: scale(1.06) translateY(-4px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.5);
}
.img-style-emoji { font-size: 2.4rem; }
.img-style-card strong {
    font-size: 0.85rem;
    font-weight: 800;
    color: #ffffff;
    text-align: center;
}
.img-style-card > span {
    font-size: 0.74rem;
    color: rgba(255,255,255,0.42);
    text-align: center;
    line-height: 1.4;
}

/* ── HOW IT WORKS ── */
.img-how { background: #0f0c1a; padding: 4rem 0 3rem; }
.img-how .section-title { color: #ffffff; }

.img-how-steps {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 1rem;
    align-items: stretch;
}
.img-how-step {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 18px;
    padding: 1.7rem 1.3rem;
    text-align: center;
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.img-how-step:hover {
    transform: translateY(-8px);
    box-shadow: 0 18px 40px rgba(0,0,0,0.4);
}
.img-how-step-num {
    width: 34px; height: 34px;
    border-radius: 50%;
    color: #ffffff;
    font-size: 0.88rem;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.6rem;
    box-shadow: 0 4px 12px rgba(255,48,96,0.4);
}
.img-how-step-icon { font-size: 1.6rem; display: block; margin-bottom: 0.7rem; }
.img-how-step h3 {
    font-size: 0.9rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 0.35rem;
}
.img-how-step p {
    font-size: 0.79rem;
    color: rgba(255,255,255,0.45);
    margin: 0;
    line-height: 1.5;
}
@media (max-width: 1000px) {
    .img-how-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
    .img-how-steps { grid-template-columns: 1fr; }
}

/* ── CTA ── */
.img-cta {
    background: #08060f;
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}
.img-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 70% 60% at 20% 50%, rgba(255,48,96,0.1) 0%, transparent 60%),
        radial-gradient(ellipse 70% 60% at 80% 50%, rgba(96,48,255,0.1) 0%, transparent 60%);
}
.img-cta-inner {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 680px;
    margin: 0 auto;
    border: 1px solid rgba(255,80,120,0.18);
    border-radius: 28px;
    padding: 3.5rem 3rem;
    background: rgba(255,255,255,0.03);
    backdrop-filter: blur(10px);
}
.img-cta-inner h2 {
    font-size: 2.1rem;
    font-weight: 900;
    color: #ffffff;
    margin-bottom: 0.75rem;
    background: linear-gradient(135deg, #fff 30%, #ff8fb3);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.img-cta-inner p {
    color: rgba(255,255,255,0.5);
    font-size: 1rem;
    margin-bottom: 2rem;
}
.img-cta-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ── BUTTON OVERRIDES ── */
.img-hero .btn-primary,
.img-cta .btn-primary {
    background: linear-gradient(135deg, #ff3060, #ff609a);
    color: #ffffff;
    border: none;
    font-weight: 800;
    box-shadow: 0 6px 20px rgba(255,48,96,0.4);
}
.img-hero .btn-secondary {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,80,120,0.3);
    color: #ff8fb3;
}
.img-hero .btn-secondary:hover {
    background: rgba(255,80,120,0.1);
    border-color: #ff8fb3;
    color: #ffffff;
}
.img-cta .btn-secondary {
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.15);
    color: rgba(255,255,255,0.8);
}
.img-cta .btn-secondary:hover {
    background: rgba(255,255,255,0.15);
    color: #ffffff;
}
