:root {
  --primary: #ff9ecf;
  --secondary: #a7d8ff;
  --bg: #f9fbff;
  --text: #1e293b;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', sans-serif;
}

body {
  scroll-behavior: smooth;    
  background: var(--bg);
  color: var(--text);
}

.container {
  width: 100%;
  max-width: 1100px;
  margin: auto;
}

/* ============================= */
/* PREMIUM CENTERED NAV HEADER  */
/* ============================= */

.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0,0,0,0.05);
  padding: 20px 0;
}

.nav-container {
  width: 92%;
  max-width: 1200px;
  margin: auto;

  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
}

/* ===== LOGO ===== */

.logo {
  display: flex;
  align-items: center;
  gap: 14px;
}

.logo img {
  width: 50px;
  height: auto;
  border-radius:30px;
}

.logo span {
  font-size: 26px;
  font-weight: 700;
  color: #1e293b;
}

/* ===== CENTER NAV ===== */

.nav-center {
  display: flex;
  justify-content: center;
  gap: 10px;

  background: #f1f3f7;
  padding: 8px;
  border-radius: 50px;
}

.nav-center a {
  text-decoration: none;
  color: #334155;
  font-weight: 500;
  padding: 10px 22px;
  border-radius: 40px;
  transition: 0.3s ease;
  font-size: 16px;
}

.nav-center a:hover {
  background: white;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.nav-center a.active {
  background: white;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

/* ===== RIGHT SIDE ===== */

.nav-right {
  display: flex;
  align-items: center;
  gap: 25px;
}

.login-link {
  text-decoration: none;
  font-weight: 500;
  color: #334155;
  font-size: 16px;
}

.open-btn {
  padding: 12px 28px;
  border-radius: 40px;
  background: linear-gradient(45deg,#ff9ecf,#a7d8ff);
  color: white;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  box-shadow: 0 8px 25px rgba(167,216,255,0.4);
  transition: 0.3s ease;
}

.open-btn:hover {
  transform: translateY(-2px);
}

/* ===== MOBILE FIX ===== */

@media (max-width: 950px) {

  .nav-container {
    grid-template-columns: auto auto;
  }

  .nav-center {
    display: none;
  }

}




/* ===== HERO SECTION ===== */

.hero {
  padding: 20px 0;
}

.hero-wrapper {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  gap: 60px;
}

/* LEFT CONTENT */
.hero-content h1 {
  font-size: 46px;
  font-weight: 700;
  margin-bottom: 20px;
}

.hero-content p {
  font-size: 18px;
  margin-bottom: 35px;
  color: #475569;
}

/* Upload Area */
.upload-area {
  display: flex;
  gap: 20px;
  margin-bottom: 25px;
}

.upload-card {
  background: white;
  padding: 25px;
  border-radius: 20px;
  flex: 1;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
  transition: 0.3s ease;
}

.upload-card:hover {
  transform: translateY(-5px);
}

.upload-card label {
  display: block;
  margin-bottom: 10px;
  font-weight: 600;
}

.upload-card input {
  width: 100%;
}

/* Generate Button */
.generate-btn {
  padding: 15px 30px;
  border: none;
  border-radius: 40px;
  font-size: 16px;
  font-weight: 600;
  background: linear-gradient(45deg,#ff9ecf,#a7d8ff);
  color: white;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(255,158,207,0.4);
  transition: 0.3s ease;
}

.generate-btn:hover {
  transform: translateY(-3px);
}

.privacy-note {
  display: block;
  margin-top: 15px;
  font-size: 13px;
  color: #64748b;
}

/* RIGHT PREVIEW */
.hero-preview {
  position: relative;
}

.result-card {
  background: white;
  padding: 20px;
  border-radius: 25px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.07);
  position: relative;
}

.result-card img {
  width: 100%;
  border-radius: 20px;
}

.ai-badge {
  position: absolute;
  top: -15px;
  left: 20px;
  background: linear-gradient(45deg,#ff9ecf,#a7d8ff);
  color: white;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

/* ===== RESPONSIVE ===== */

@media (max-width: 900px) {

  .hero-wrapper {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .upload-area {
    flex-direction: column;
  }

}






/* ============================= */
/* RESOURCES SECTION */
/* ============================= */

.resources-section {
  padding: 50px 0;
  background: #f8fafc;
}

.section-header {
  text-align: center;
  max-width: 650px;
  margin: auto;
  margin-bottom: 60px;
}

.section-header h2 {
  font-size: 38px;
  margin-bottom: 15px;
  font-weight: 700;
  color: #1e293b;
}

.section-header p {
  font-size: 17px;
  color: #64748b;
}

/* Grid */
.resources-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

/* Cards */
.resource-card {
  background: white;
  padding: 35px 30px;
  border-radius: 25px;
  box-shadow: 0 10px 35px rgba(0,0,0,0.05);
  transition: 0.3s ease;
}

.resource-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.08);
}

.resource-card .icon {
  font-size: 32px;
  margin-bottom: 18px;
}

.resource-card h3 {
  font-size: 20px;
  margin-bottom: 12px;
  font-weight: 600;
}

.resource-card p {
  font-size: 15px;
  color: #64748b;
  margin-bottom: 15px;
  line-height: 1.6;
}

.resource-card a {
  text-decoration: none;
  font-weight: 600;
  color: #7c3aed;
  font-size: 14px;
}

/* Responsive */
@media (max-width: 1100px) {
  .resources-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 700px) {
  .resources-grid {
    grid-template-columns: 1fr;
  }
}



/* ============================= */
/* PRICING SECTION */
/* ============================= */

.pricing-section {
  padding: 50px 0;
  background: #ffffff;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 35px;
  margin-top: 60px;
}

/* Card */
.pricing-card {
  background: #f8fafc;
  padding: 45px 35px;
  border-radius: 30px;
  text-align: center;
  position: relative;
  transition: 0.3s ease;
  box-shadow: 0 10px 40px rgba(0,0,0,0.05);
}

.pricing-card:hover {
  transform: translateY(-10px);
}

/* Popular Plan */
.pricing-card.popular {
  background: white;
  border: 2px solid #a7d8ff;
  transform: scale(1.05);
}

.badge {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(45deg,#ff9ecf,#a7d8ff);
  color: white;
  padding: 6px 18px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
}

/* Price */
.price {
  font-size: 42px;
  font-weight: 700;
  margin: 20px 0;
  color: #1e293b;
}

/* List */
.pricing-card ul {
  list-style: none;
  padding: 0;
  margin-bottom: 30px;
}

.pricing-card ul li {
  margin-bottom: 12px;
  font-size: 15px;
  color: #475569;
}

/* Button */
.pricing-btn {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 40px;
  text-decoration: none;
  font-weight: 600;
  background: #e2e8f0;
  color: #1e293b;
  transition: 0.3s ease;
}

.pricing-btn:hover {
  background: #cbd5e1;
}

.gradient-btn {
  background: linear-gradient(45deg,#ff9ecf,#a7d8ff);
  color: white;
  box-shadow: 0 10px 30px rgba(167,216,255,0.4);
}

.gradient-btn:hover {
  transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 1100px) {
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .pricing-card.popular {
    transform: scale(1);
  }
}


/* ============================= */
/* FAQ SECTION */
/* ============================= */

.faq-section {
  padding: 50px 0;
  background: #f8fafc;
}

.faq-container {
  max-width: 800px;
  margin: 60px auto 0;
}

.faq-item {
  background: white;
  border-radius: 20px;
  margin-bottom: 20px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.05);
  overflow: hidden;
  transition: 0.3s ease;
}

.faq-question {
  width: 100%;
  padding: 22px 25px;
  border: none;
  background: none;
  font-size: 17px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-question span {
  font-size: 22px;
  transition: 0.3s ease;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
  padding: 0 25px;
}

.faq-answer p {
  padding-bottom: 20px;
  font-size: 15px;
  color: #475569;
  line-height: 1.6;
}

/* Active state */
.faq-item.active .faq-answer {
  max-height: 200px;
}

.faq-item.active .faq-question span {
  transform: rotate(45deg);
}


/* ============================= */
/* FOOTER SECTION */
/* ============================= */

.footer {
  background: #0f172a;
  color: #cbd5e1;
  padding-top: 80px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  padding-bottom: 50px;
}

.footer-col h3 {
  font-size: 22px;
  margin-bottom: 20px;
  color: white;
}

.footer-col h4 {
  margin-bottom: 20px;
  font-size: 16px;
  color: white;
}

.footer-col p {
  font-size: 14px;
  line-height: 1.7;
  color: #94a3b8;
}

.footer-col ul {
  list-style: none;
  padding: 0;
}

.footer-col ul li {
  margin-bottom: 10px;
  font-size: 14px;
}

.footer-col ul li a {
  text-decoration: none;
  color: #94a3b8;
  transition: 0.3s ease;
}

.footer-col ul li a:hover {
  color: white;
}

/* Social Icons */
.social-links {
  margin-top: 20px;
  display: flex;
  gap: 15px;
}

.social-links a {
  width: 38px;
  height: 38px;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: white;
  transition: 0.3s ease;
}

.social-links a:hover {
  background: linear-gradient(45deg,#ff9ecf,#a7d8ff);
}

/* Bottom Bar */
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  text-align: center;
  padding: 20px 0;
  font-size: 14px;
  color: #94a3b8;
}

/* Responsive */
@media (max-width: 1000px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}


.page-container {
  max-width: 900px;
  margin: 100px auto;
  padding: 40px;
  background: white;
  border-radius: 25px;
  box-shadow: 0 15px 50px rgba(0,0,0,0.05);
}

.page-container h1 {
  margin-bottom: 30px;
}

.page-container h3 {
  margin-top: 25px;
}

.page-container p {
  line-height: 1.7;
  margin-bottom: 15px;
}




.auth-box {
  max-width: 400px;
  margin: 100px auto;
  padding: 40px;
  background: white;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.05);
  text-align: center;
}

.auth-box h2 {
  margin-bottom: 20px;
}

.auth-box input {
  width: 100%;
  padding: 12px;
  margin-bottom: 15px;
  border-radius: 10px;
  border: 1px solid #ddd;
}

.auth-box button {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 30px;
  background: linear-gradient(45deg,#ff9ecf,#a7d8ff);
  color: white;
  font-weight: 600;
  cursor: pointer;
}

.error {
  color: red;
  margin-bottom: 15px;
}



.dashboard-box {
  max-width: 1000px;
  margin: 80px auto;
  padding: 50px;
  background: white;
  border-radius: 30px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.05);
  text-align: center;
}

.upload-grid {
  display: grid;
  grid-template-columns: repeat(2,1fr);
  gap: 30px;
  margin: 40px 0;
}

.upload-card {
  background: #f8fafc;
  padding: 30px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.04);
}

.upload-card label {
  display: block;
  margin-bottom: 15px;
  font-weight: 600;
}

.upload-card input {
  width: 100%;
}

.generate-btn {
  padding: 15px 40px;
  border: none;
  border-radius: 50px;
  font-size: 16px;
  font-weight: 600;
  background: linear-gradient(45deg,#ff9ecf,#a7d8ff);
  color: white;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(167,216,255,0.4);
  transition: 0.3s ease;
}

.generate-btn:hover {
  transform: translateY(-3px);
}

.success {
  color: green;
  margin-top: 20px;
}

.image-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 20px;
  margin-top: 40px;
}

.image-grid img {
  width: 100%;
  border-radius: 15px;
  object-fit: cover;
}





.image-card {
    display: inline-block;
    margin: 15px;
    text-align: center;
}

.image-actions {
    margin-top: 8px;
}

.download-btn,
.delete-btn {
    padding: 6px 12px;
    margin: 3px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    display: inline-block;
}

.download-btn {
    background: #4CAF50;
    color: white;
}

.delete-btn {
    background: #f44336;
    color: white;
}
