/* Reset & Base */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-family: 'Inter', system-ui, sans-serif; }
:root {
  --primary: #6D5DF6; --secondary: #4F8CFF; --accent: #ec4899;
  --bg: #ffffff; --text: #111827; --text-muted: #6b7280;
  --card-bg: rgba(255, 255, 255, 0.8); --border: rgba(0, 0, 0, 0.08);
  --glass-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  --gradient: linear-gradient(135deg, var(--primary), var(--secondary));
  --radius: 20px;
}
body.dark {
  --bg: #111827; --text: #f9fafb; --text-muted: #9ca3af;
  --card-bg: rgba(31, 41, 55, 0.6); --border: rgba(255, 255, 255, 0.1);
  --glass-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}
body { background-color: var(--bg); color: var(--text); line-height: 1.6; transition: background-color 0.3s, color 0.3s; overflow-x: hidden; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* Layout */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section { padding: 80px 0; }

/* Typography */
h1, h2, h3 { line-height: 1.2; margin-bottom: 1rem; }
h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); font-weight: 800; background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
h2 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; text-align: center; }
p { margin-bottom: 1rem; color: var(--text-muted); }

/* Glassmorphism */
.glass {
  background: var(--card-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--glass-shadow);
}

/* Header & Nav */
header { position: fixed; top: 0; width: 100%; z-index: 1000; transition: background 0.3s; border-bottom: 1px solid transparent; }
header.scrolled { background: var(--card-bg); backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); box-shadow: var(--glass-shadow); }
nav { display: flex; justify-content: space-between; align-items: center; height: 80px; }
.logo { font-size: 1.5rem; font-weight: 700; display: flex; align-items: center; gap: 10px; }
.logo i { background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.nav-links { display: flex; gap: 30px; align-items: center; }
.nav-links a { font-weight: 500; transition: color 0.3s; }
.nav-links a:hover { color: var(--primary); }
.nav-actions { display: flex; gap: 15px; align-items: center; }
.theme-btn { background: none; border: none; font-size: 1.2rem; color: var(--text); cursor: pointer; display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; transition: background 0.3s; }
.theme-btn:hover { background: var(--border); }
.mobile-menu-btn { display: none; background: none; border: none; font-size: 1.5rem; color: var(--text); cursor: pointer; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 12px 28px; border-radius: 50px; font-weight: 600; cursor: pointer; transition: all 0.3s; border: none; outline: none; gap: 8px; font-size: 1rem; }
.btn-primary { background: var(--gradient); color: white; box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(139, 92, 246, 0.4); }
.btn-outline { background: transparent; border: 2px solid var(--border); color: var(--text); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }

/* Hero */
.hero { min-height: 100vh; display: flex; align-items: center; justify-content: center; text-align: center; position: relative; padding-top: 80px; overflow: hidden;}
.hero-content { max-width: 900px; z-index: 2; position: relative; padding: 20px;}
.hero-subtitle { font-size: 1.2rem; margin-bottom: 40px; max-width: 600px; margin-left: auto; margin-right: auto;}
.hero-buttons { display: flex; gap: 20px; justify-content: center; margin-bottom: 60px;}
.hero-bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; overflow: hidden; z-index: 0; }
.blob { position: absolute; filter: blur(100px); opacity: 0.5; animation: float 10s infinite ease-in-out alternate; }
.blob-1 { top: -10%; left: -10%; width: 50vw; height: 50vw; background: var(--primary); border-radius: 50%; }
.blob-2 { bottom: -10%; right: -10%; width: 40vw; height: 40vw; background: var(--accent); border-radius: 50%; animation-delay: -5s; }

/* Generator Tool */
.generator-section { position: relative; z-index: 5; margin-top: -100px; padding-bottom: 80px; }
.generator-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; text-align: left; padding: 40px;}
.gen-panel { display: flex; flex-direction: column; gap: 20px;}
.input-group label { display: block; font-weight: 600; margin-bottom: 8px; font-size: 0.95rem;}
textarea, select, input { width: 100%; padding: 15px; border-radius: 12px; border: 1px solid var(--border); background: var(--bg); color: var(--text); font-family: inherit; font-size: 1rem; transition: border-color 0.3s; }
textarea:focus, select:focus, input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2); }
textarea { resize: vertical; min-height: 120px; }
.gen-options { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.result-card { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 400px; text-align: center; position: relative; overflow: hidden; border-radius: 12px; background: var(--bg); border: 1px solid var(--border);}
.result-placeholder { display: flex; flex-direction: column; align-items: center; gap: 15px; color: var(--text-muted); }
.result-placeholder i { font-size: 3rem; opacity: 0.5; }
.loading-overlay { position: absolute; inset: 0; background: var(--card-bg); backdrop-filter: blur(10px); display: none; flex-direction: column; align-items: center; justify-content: center; z-index: 10; }
.progress-bar { width: 80%; height: 8px; background: var(--border); border-radius: 4px; overflow: hidden; margin-top: 20px; }
.progress-fill { height: 100%; width: 0%; background: var(--gradient); transition: width 0.3s; }
.generated-image { width: 100%; height: 100%; object-fit: contain; display: none; background: #000; }
.result-actions { display: none; gap: 15px; margin-top: 20px; width: 100%; justify-content: center; position: absolute; bottom: 20px; z-index: 20;}

/* Examples */
.prompt-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 5px; }
.tag { padding: 6px 14px; background: var(--bg); border: 1px solid var(--border); border-radius: 20px; font-size: 0.85rem; cursor: pointer; transition: all 0.3s; }
.tag:hover { background: var(--primary); color: white; border-color: var(--primary); }

/* Features Grid */
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; margin-top: 40px;}
.feature-card { padding: 40px 30px; text-align: center; transition: transform 0.3s; }
.feature-card:hover { transform: translateY(-10px); }
.feature-icon { width: 70px; height: 70px; margin: 0 auto 25px; display: flex; align-items: center; justify-content: center; background: var(--gradient); border-radius: 20px; color: white; font-size: 1.8rem; }

/* How It Works */
.steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 60px; text-align: center;}
.step-card { position: relative; padding: 30px 20px; }
.step-number { width: 50px; height: 50px; background: var(--gradient); color: white; font-size: 1.5rem; font-weight: bold; display: flex; align-items: center; justify-content: center; border-radius: 50%; margin: 0 auto 20px; }
.step-card:not(:last-child)::after { content: '\f061'; font-family: 'Font Awesome 6 Free'; font-weight: 900; position: absolute; top: 40px; right: -15px; font-size: 1.5rem; color: var(--border); }

/* Gallery */
.masonry { columns: 3 300px; column-gap: 20px; margin-top: 40px; }
.gallery-item { margin-bottom: 20px; break-inside: avoid; border-radius: var(--radius); overflow: hidden; position: relative; cursor: pointer; }
.gallery-item img { transition: transform 0.5s; width: 100%; display: block; border-radius: var(--radius);}
.gallery-item:hover img { transform: scale(1.05); }
.gallery-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.7); opacity: 0; transition: opacity 0.3s; display: flex; align-items: center; justify-content: center; color: white; flex-direction: column; padding: 20px; text-align: center; border-radius: var(--radius);}
.gallery-item:hover .gallery-overlay { opacity: 1; }

/* Pricing */
.pricing-card { padding: 40px; text-align: center; position: relative; display: flex; flex-direction: column; }
.pricing-card.popular { border: 2px solid var(--primary); transform: scale(1.05); z-index: 2;}
.popular-badge { position: absolute; top: -15px; left: 50%; transform: translateX(-50%); background: var(--gradient); color: white; padding: 6px 16px; border-radius: 20px; font-size: 0.9rem; font-weight: bold; }
.price { font-size: 3.5rem; font-weight: 800; margin: 20px 0; }
.price span { font-size: 1.2rem; color: var(--text-muted); font-weight: normal;}
.pricing-features { text-align: left; margin: 30px 0; flex-grow: 1; }
.pricing-features li { margin-bottom: 12px; display: flex; align-items: center; gap: 10px; }
.pricing-features li i { color: var(--primary); }

/* FAQ */
.faq-list { max-width: 800px; margin: 40px auto 0; }
.faq-item { margin-bottom: 15px; border-radius: var(--radius); overflow: hidden; }
.faq-q { padding: 20px 30px; font-weight: 600; font-size: 1.1rem; cursor: pointer; display: flex; justify-content: space-between; align-items: center; transition: background 0.3s;}
.faq-q:hover { background: rgba(139, 92, 246, 0.05); }
.faq-q i { transition: transform 0.3s; }
.faq-item.active .faq-q i { transform: rotate(180deg); color: var(--primary);}
.faq-a { padding: 0 30px; max-height: 0; overflow: hidden; transition: all 0.3s ease-in-out; color: var(--text-muted); }
.faq-item.active .faq-a { padding: 0 30px 20px; max-height: 300px; }

/* SEO Content Section */
.seo-content { font-size: 1.05rem; }
.seo-content h2 { text-align: left; margin-top: 40px; font-size: 2rem;}
.seo-content h3 { margin-top: 30px; font-size: 1.5rem;}
.seo-content p { margin-bottom: 20px; }
.seo-content ul { list-style: disc; margin-left: 20px; margin-bottom: 20px;}
.seo-content li { margin-bottom: 10px; color: var(--text-muted);}

/* Newsletter */
.newsletter-section { text-align: center; }
.newsletter-form { display: flex; max-width: 500px; margin: 30px auto 0; gap: 10px; }
.newsletter-form input { flex-grow: 1; border-radius: 50px; padding: 15px 25px; }
.newsletter-form button { border-radius: 50px; padding: 15px 30px; }

/* Footer */
footer { background: var(--bg); padding: 80px 0 20px; border-top: 1px solid var(--border); margin-top: 60px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 40px; margin-bottom: 40px; }
.footer-col h3 { font-size: 1.2rem; margin-bottom: 20px; }
.footer-links li { margin-bottom: 12px; }
.footer-links a { color: var(--text-muted); transition: color 0.3s; }
.footer-links a:hover { color: var(--primary); }
.social-links { display: flex; gap: 15px; margin-top: 20px; }
.social-links a { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--border); transition: all 0.3s; color: var(--text);}
.social-links a:hover { background: var(--primary); color: white; transform: translateY(-3px);}
.copyright { text-align: center; color: var(--text-muted); padding-top: 20px; border-top: 1px solid var(--border); }

/* Animations */
@keyframes float { 0% { transform: translate(0, 0); } 100% { transform: translate(30px, 30px); } }
.animate-on-scroll { opacity: 0; transform: translateY(30px); transition: opacity 0.8s ease-out, transform 0.8s ease-out; }
.animate-on-scroll.fade-in { opacity: 1; transform: translateY(0); }

/* Content Pages */
.page-header { text-align: center; padding: 160px 0 80px; position: relative; overflow: hidden;}
.content-box { max-width: 900px; margin: 0 auto; padding: 50px; margin-bottom: 80px;}
.content-box h2 { text-align: left; margin-top: 40px; font-size: 2rem;}
.content-box h3 { text-align: left; margin-top: 30px; font-size: 1.5rem;}
.content-box p { margin-bottom: 20px; }

/* Contact Form */
.contact-form { display: grid; gap: 20px; }
.contact-form input, .contact-form textarea { background: var(--bg); }

/* Responsive */
@media (max-width: 1024px) {
  .generator-wrap { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .step-card:nth-child(2)::after { display: none; }
  .masonry { columns: 2 250px; }
}
@media (max-width: 768px) {
  .nav-links { position: fixed; top: 80px; left: -100%; width: 100%; background: var(--card-bg); backdrop-filter: blur(16px); flex-direction: column; padding: 40px; transition: 0.3s; height: calc(100vh - 80px); border-top: 1px solid var(--border); align-items: flex-start;}
  .nav-links.active { left: 0; }
  .mobile-menu-btn { display: block; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 120px; }
  .hero h1 { font-size: 2.5rem; }
  .steps-grid { grid-template-columns: 1fr; }
  .step-card::after { display: none; }
  .masonry { columns: 1 100%; }
  .newsletter-form { flex-direction: column; }
  .pricing-card.popular { transform: none; }
  .generator-wrap { padding: 20px; }
  .gen-options { grid-template-columns: 1fr; }
}

/* Gemini Redesign Styles */
.hidden { display: none !important; }

/* Header */
.gemini-header {
  position: fixed; top: 0; width: 100%; z-index: 1000;
  display: flex; justify-content: space-between; align-items: center;
  padding: 15px 30px;
  background: var(--bg);
  transition: background 0.3s;
}

/* Main */
.gemini-main {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 80px 20px 40px;
}

.gemini-container {
  width: 100%;
  max-width: 800px;
  margin: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

/* Prompt Section */
.prompt-section {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}

.gemini-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin: 0;
  text-align: center;
}

.prompt-box-wrapper {
  width: 100%;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 20px;
  box-shadow: var(--glass-shadow);
  display: flex;
  flex-direction: column;
  gap: 15px;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.prompt-box-wrapper:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(109, 93, 246, 0.2);
}

#prompt-input {
  width: 100%;
  background: transparent;
  border: none;
  color: var(--text);
  font-size: 1.1rem;
  resize: none;
  min-height: 50px;
  max-height: 200px;
  padding: 0;
  font-family: inherit;
}
#prompt-input:focus {
  outline: none;
  box-shadow: none;
}
#prompt-input::placeholder {
  color: var(--text-muted);
}

.prompt-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.btn-icon {
  background: transparent;
  border: none;
  color: var(--text-muted);
  width: 40px; height: 40px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
}
.btn-icon:hover {
  background: var(--border);
  color: var(--text);
}

.gemini-btn {
  background: var(--gradient);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 30px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.gemini-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(109, 93, 246, 0.4);
}
.gemini-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

/* Advanced Settings */
.advanced-settings {
  width: 100%;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  display: flex; flex-direction: column; gap: 15px;
  animation: fadeIn 0.3s ease;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Results Section */
.results-section {
  width: 100%;
}

.loading-state {
  display: flex; flex-direction: column; align-items: center; gap: 20px;
  color: var(--text-muted);
}
.spinner {
  font-size: 2.5rem;
  color: var(--primary);
}

.skeleton-grid {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
.skeleton-card {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius);
  background: linear-gradient(90deg, var(--border) 25%, rgba(109, 93, 246, 0.1) 50%, var(--border) 75%);
  background-size: 200% 100%;
  animation: loadingSkeleton 1.5s infinite;
}
@keyframes loadingSkeleton {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.image-results {
  width: 100%;
}
.result-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
.image-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--glass-shadow);
}
.image-card img {
  width: 100%;
  display: block;
}
.card-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.5);
  opacity: 0;
  transition: opacity 0.3s;
  display: flex;
  align-items: center; justify-content: center;
  gap: 10px;
}
.image-card:hover .card-overlay {
  opacity: 1;
}
.action-btn {
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,0.4);
  color: white;
  width: 45px; height: 45px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
}
.action-btn:hover {
  background: white;
  color: var(--primary);
  transform: translateY(-2px);
}

/* Additional Styles for Upgrades */

/* Suggestions */
.prompt-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: -10px;
}
.suggestion-chip {
  background: var(--card-bg);
  border: 1px solid var(--border);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.9rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: var(--glass-shadow);
}
.suggestion-chip:hover {
  background: var(--border);
  color: var(--text);
  transform: translateY(-2px);
}

/* Empty State */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  opacity: 0.7;
}

/* Loader */
.loader-spinner {
  width: 50px;
  height: 50px;
  border: 4px solid var(--border);
  border-top: 4px solid var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 10px;
}
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}
.loading-text {
  font-size: 1.1rem;
  font-weight: 500;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: pulse 1.5s ease-in-out infinite;
}

/* Footer */
.gemini-footer {
  margin-top: auto;
  width: 100%;
  border-top: 1px solid var(--border);
  padding: 40px 20px;
  background: var(--card-bg);
}
.footer-content {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.footer-links-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}
.footer-links-row a {
  color: var(--text-muted);
  font-weight: 500;
  transition: color 0.2s;
}
.footer-links-row a:hover {
  color: var(--primary);
}
.social-links-row {
  display: flex;
  gap: 15px;
}
.social-links-row a {
  color: var(--text-muted);
  font-size: 1.2rem;
  transition: color 0.2s;
}
.social-links-row a:hover {
  color: var(--primary);
}
.copyright-row {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Modal */
.modal {
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.3s, visibility 0.3s;
}
.modal.hidden {
  opacity: 0;
  visibility: hidden;
  display: flex !important; /* Override the other hidden class if needed, but rely on opacity */
  pointer-events: none;
}
.modal-overlay {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(5px);
}
.modal-content {
  position: relative;
  z-index: 2001;
  width: 90%;
  max-width: 1000px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.modal-close {
  position: absolute;
  top: -40px; right: 0;
  background: transparent;
  border: none;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  transition: transform 0.2s;
}
.modal-close:hover {
  transform: scale(1.1);
}
.modal-image-container {
  width: 100%;
  height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal-image-container img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}
.modal-toolbar {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}
.modal-tool-btn {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: white;
  padding: 10px 20px;
  border-radius: 20px;
  cursor: pointer;
  display: flex; align-items: center; gap: 8px;
  transition: all 0.2s;
}
.modal-tool-btn:hover {
  background: white;
  color: var(--primary);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  padding: 10px 20px;
  border-radius: 20px;
  cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px;
  transition: all 0.2s;
}
.btn-outline:hover {
  background: var(--border);
}

/* Premium Animations & UI Updates */
.fade-in-up {
  animation: fadeInUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.gemini-container {
  animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.image-card {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}
.image-card:hover {
  transform: translateY(-5px) scale(1.01);
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

/* Glassmorphism improvements */
.glass-panel {
  background: var(--card-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
}

/* Button Ripple (Simplified via scale) */
.gemini-btn:active {
  transform: scale(0.96);
}

/* Input Focus */
#prompt-input {
  transition: all 0.3s ease;
}
.prompt-box-wrapper {
  transition: box-shadow 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}
.prompt-box-wrapper:focus-within {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(109, 93, 246, 0.15);
}

/* Loader Shimmer */
.skeleton-card {
  background: linear-gradient(90deg, var(--border) 25%, rgba(109, 93, 246, 0.15) 50%, var(--border) 75%);
  background-size: 200% 100%;
  animation: loadingSkeleton 1.5s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.empty-state {
  animation: fadeInUp 0.5s ease 0.2s both;
}

/* Tooltips (Simple) */
[title] {
  position: relative;
}

/* Focus outlines for accessibility */
*:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

