
 @import url('https://fonts.googleapis.com/css2?family=Kaushan+Script&display=swap');

 

/* ============================================
   MissGlowry - Main Stylesheet
   ============================================ */

/* CSS Variables for Light/Dark Theme */
:root {
  /* Light Theme (Default) */
  --card :#faceedd2;
  --contact-form : rgb(255, 249, 253);
  --article-box: white;
  --bg-primary: #f3c3eb98;
  --bg-secondary: #f8a5e941;
  --bg-card: #e9e1e6;
  --text-primary: #2d3436;
  --text-secondary: #636e72;
  --text-muted: #b2bec3;
  --accent-primary: #ff6b9d;
  --accent-secondary: #c44569;
  --accent-gradient: linear-gradient(135deg, #ff6b9d 0%, #c44569 100%);
  --nav-bg: rgb(247, 218, 242);
  --border-color: #dfe6e9;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.15);
  --overlay: rgba(0, 0, 0, 0.5);
  --success: #00b894;
  --warning: #fdcb6e;
  --error: #d63031;
}

/* Dark Theme */
[data-theme="dark"] {
  --card :#000000d2;
  --contact-form : rgb(0, 0, 0);
  --article-box: rgb(0, 0, 0);
  --bg-primary: #1a1a2e;  
  --bg-secondary: #16213e;
  --bg-card: #0f3460;
  --text-primary: #eaeaea;
  --text-secondary: #a0a0a0;
  --text-muted: #6c6c6c;
  --accent-primary: #ff6b9d;
  --accent-secondary: #ff8fab;
  --accent-gradient: linear-gradient(135deg, #ff6b9d 0%, #ff8fab 100%);
  --nav-bg: rgba(26, 26, 46, 0.95);
  --border-color: #2d3561;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  --shadow-hover: 0 8px 30px rgba(0, 0, 0, 0.4);
  --overlay: rgba(0, 0, 0, 0.7);
}

/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
}

body h1, body h2, body h4 {
  font-family: 'Kaushan Script';
}

/* Background Image */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('images/bg-pattern.png');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  opacity: 0.05;
  z-index: -1;
  pointer-events: none;
}

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

/* ============================================
   Navigation
   ============================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: var(--nav-bg);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
  z-index: 1000;
  transition: all 0.3s ease;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}

.logo {
  font-size: 1.8rem;
  font-weight: 700;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-decoration: none;
  letter-spacing: -1px;
  font-family: 'Kaushan Script';
}

.logo:hover {
  color: var(--accent-primary);
}

.logo span {
  font-weight: 300;
  
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: 2rem;
  align-items: center;
}

.nav-link {
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  transition: color 0.3s ease;
  padding: 0.5rem 0;
  font-family: 'Kaushan Script';
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-gradient);
  transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link:hover,
.nav-link.active {
  color: var(--accent-primary);
}

/* Theme Toggle Button */
.theme-toggle {
  background: none;
  border: 2px solid var(--border-color);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  color: var(--text-primary);
  font-size: 1.2rem;
}

.theme-toggle:hover {
  border-color: var(--accent-primary);
  transform: rotate(180deg);
}

/* Hamburger Menu */
.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 5px;
  padding: 5px;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: var(--text-primary);
  border-radius: 3px;
  transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -6px);
}

/* Mobile Navigation */
@media (max-width: 768px) {
  .hamburger {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 80%;
    max-width: 300px;
    height: calc(100vh - 70px);
    background: var(--nav-bg);
    backdrop-filter: blur(10px);
    flex-direction: column;
    padding: 2rem;
    gap: 1.5rem;
    transition: left 0.3s ease;
    box-shadow: var(--shadow);
  }

  .nav-menu.active {
    left: 0;
  }

  .nav-link {
    font-size: 1.1rem;
    width: 100%;
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--border-color);
  }

  .nav-link::after {
    display: none;
  }
}

/* ============================================
   Main Content
   ============================================ */
main {
  padding-top: 70px;
  min-height: calc(100vh - 70px);
}

/* ============================================
   Hero Section with Animated Text
   ============================================ */
.hero {
  padding: 4rem 0;
  text-align: center;
  background: var(--bg-secondary);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, var(--accent-primary) 0%, transparent 70%);
  opacity: 0.05;
  animation: pulse 10s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.05; }
  50% { transform: scale(1.1); opacity: 0.08; }
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.animated-text {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
  min-height: 1.2em;
  
}

.animated-text {
  font-family: 'Kaushan Script', crossorigin;
  font-size: 2.5rem;
  color: #1877F2; /* Aap apni marzi ka color de sakte hain */
  animation: fadeInOut 3s ease-in-out infinite;
  text-align: center;
}

.hero p {
  font-size: 1.2rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 2rem;
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 2rem;
  }
  
  .hero p {
    font-size: 1rem;
  }
}

/* ============================================
   Buttons
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.5rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  outline: none;
}

.btn-primary {
  background: var(--accent-gradient);
  color: white;
  box-shadow: 0 4px 15px rgba(255, 107, 157, 0.4);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(255, 107, 157, 0.5);
}

.btn-secondary {
  background: transparent;
  color: var(--accent-primary);
  border: 2px solid var(--accent-primary);
}

.btn-secondary:hover {
  background: var(--accent-primary);
  color: white;
  transform: translateY(-3px);
}

.btn-small {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
}

/* ============================================
   Articles Section
   ============================================ */
.articles-section {
  padding: 4rem 0;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.section-subtitle {
  text-align: center;
  color: var(--text-secondary);
  margin-bottom: 3rem;
  font-size: 1.1rem;
}

/* 3-Column Grid */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

@media (max-width: 992px) {
  .articles-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .articles-grid {
    grid-template-columns: 1fr;
  }
}

/* Article Card */
.article-card {
  background: var(--bg-card);
  background-color: var(--article-box);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  border: 1px solid var(--border-color);
}

.article-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-hover);
}

.article-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.article-card:hover .article-image {
  transform: scale(1.05);
}

.article-content {
  padding: 1.5rem;
}

.article-content h3 {
  font-size: 1.2rem;
  margin-bottom: 0.8rem;
  font-weight: 600;
  line-height: 1.4;
}

.article-content p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-buttons {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

/* ============================================
   Game Section
   ============================================ */
.game-section {
  padding: 4rem 0;
  background: var(--bg-secondary);
  text-align: center;
}

.game-container {
  max-width: 500px;
  margin: 2rem auto;
  background: var(--bg-card);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: var(--shadow);
}

.game-title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--accent-primary);
}

.game-score {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

#gameCanvas {
  border: 3px solid var(--accent-primary);
  border-radius: 10px;
  background: var(--bg-primary);
  max-width: 100%;
  cursor: pointer;
}

.game-controls {
  margin-top: 1rem;
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.game-instructions {
  margin-top: 1rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* ============================================
   Footer
   ============================================ */
.footer {
  background: var(--bg-secondary);
  padding: 3rem 0 1rem;
  border-top: 1px solid var(--border-color);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-bottom: 2rem;
}

@media (max-width: 992px) {
  .footer-content {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .footer-content {
    grid-template-columns: 1fr;
  }
}

.footer-section h4 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  color: var(--accent-primary);
}

.footer-section p,
.footer-section a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.8;
  text-decoration: none;
  display: block;
  transition: color 0.3s ease;
}

.footer-section a:hover {
  color: var(--accent-primary);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 0.9rem;
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.social-links a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  border: 1px solid var(--border-color);
  position: relative;
  right: 55px;
  top: 20px;
}

.social-links a:hover {
  background: rgb(80, 80, 99) ;
  color: white;
  transform: translateY(-3px);
}

/* ============================================
   Cookie Consent Popup
   ============================================ */
.cookie-popup {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(150%);
  background: var(--bg-card);
  padding: 1.5rem 2rem;
  border-radius: 15px;
  box-shadow: var(--shadow-hover);
  z-index: 2000;
  max-width: 500px;
  width: 90%;
  text-align: center;
  transition: transform 0.5s ease;
  border: 1px solid var(--border-color);
}

.cookie-popup.show {
  transform: translateX(-50%) translateY(0);
}

.cookie-popup h4 {
  margin-bottom: 0.5rem;
  color: var(--accent-primary);
}

.cookie-popup p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.cookie-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

/* ============================================
   FAQ Modal
   ============================================ */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--overlay);
  z-index: 1500;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: var(--bg-card);
  border-radius: 20px;
  max-width: 700px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  padding: 2rem;
  position: relative;
  transform: scale(0.8);
  transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-secondary); 
  transition: color 0.3s ease;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover {
  color: var(--error);
  background: var(--bg-secondary);
}

.modal-title {
  font-size: 1.8rem;
  margin-bottom: 1.5rem;
  text-align: center;
  color: var(--accent-primary);
}


 

/* FAQ Items */
.faq-item {
  border-bottom: 1px solid var(--border-color);
  padding: 1.5rem 0;

}

.faq-question {
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: color 0.3s ease;
}

.faq-question:hover {
  color: var(--accent-primary);
}

.faq-answer {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
  max-height: 200px;
}

.faq-icon {
  transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

/* ============================================
   About Page Styles
   ============================================ */
.about-hero {
  padding: 4rem 0;
  text-align: center;
  background: var(--bg-secondary);
}

.about-hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.about-hero p {
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

.about-content {
  padding: 4rem 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

@media (max-width: 768px) {
  .about-grid {
    grid-template-columns: 1fr;
  }
}

.about-image {
  width: 100%;
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.about-text h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--accent-primary);
}

.about-text p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
  line-height: 1.8;
}

/* ============================================
   Contact Page Styles
   ============================================ */
.contact-hero {
  padding: 4rem 0;
  text-align: center;
  background: var(--bg-secondary);
}
 

.contact-hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.contact-content {
  padding: 4rem 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

.contact-info h3 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: var(--accent-primary);
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.contact-item-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgb(80, 80, 99) ;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.contact-item-content h4 {
  font-size: 1.1rem;
  margin-bottom: 0.3rem;
}

.contact-item-content p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* Contact Form */
.contact-form {
  background: var(--contact-form);
  padding: 2rem;
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 2px solid var(--border-color);
  border-radius: 10px;
  background: var(--form);
  color: var(--text-primary);
  font-size: 1rem;
  transition: border-color 0.3s ease;
  font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-primary);
}

.form-group textarea {
  min-height: 150px;
  resize: vertical;
}

/* ============================================
   Article Detail Page
   ============================================ */
.article-hero {
  padding: 4rem 0;
  text-align: center;
  background: var(--bg-secondary);
}

.article-hero h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.article-meta {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.article-detail {
  padding: 3rem 0;
}

.article-detail-image {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  border-radius: 20px;
  margin-bottom: 2rem;
}

.article-detail-content {
  max-width: 800px;
  margin: 0 auto;
}

.article-detail-content h2 {
  font-size: 1.8rem;
  margin: 2rem 0 1rem;
  color: var(--accent-primary);
}

.article-detail-content h3 {
  font-size: 1.4rem;
  margin: 1.5rem 0 0.8rem;
}

.article-detail-content p {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 1rem;
}

.article-detail-content ul {
  margin-left: 2rem;
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

.article-detail-content li {
  margin-bottom: 0.5rem;
}

.product-box {
  background: var(--bg-card);
  background-color: var(--card);
  border: 2px solid var(--accent-primary);
  border-radius: 15px;
  padding: 2rem;
  margin: 2rem 0;
  text-align: center;
}

.product-box h3 {
  color: var(--accent-primary);
  margin-bottom: 1rem;
}

.product-price {
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent-primary);
  margin-bottom: 1rem;
}

/* ============================================
   Animations
   ============================================ */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.6s ease forwards;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.slide-in {
  animation: slideIn 0.6s ease forwards;
}

/* Scroll animations */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   Scrollbar Styling
   ============================================ */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
  background: var(--accent-primary);
  border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-secondary);
}

/* ============================================
   Selection Styling
   ============================================ */
::selection {
  background: var(--accent-primary);
  color: white;
}

.jump-in-btn {
    padding: 14px 28px;
    font-weight: 600;
    background: linear-gradient(135deg, ); /* Modern Gradient */
    color: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    
    /* Animation settings */
    animation: dropSquash 1.2s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    transform-origin: bottom; /* Squash effect neechay sy hoga */
}

/* Hover Effect (Extra touch for user) */
.jump-in-btn:hover {
    transform: scale(1.05);
    transition: 0.3s; 
}

/* Animation Logic */
@keyframes dropSquash {
    0% {
        transform: translateY(-800px) scaleY(1.5); /* Oper sy lamba ho kr gire ga */
        opacity: 0;
    }
    60% {
        transform: translateY(0) scaleY(1); 
        opacity: 1;
    }
    75% {
        transform: scaleY(0.7) scaleX(1.2); /* Zameen pr lagte hi squash hoga */
    }
    90% {
        transform: scaleY(1.1) scaleX(0.9); /* Halka sa wapis bounce */
    }
    100% {
        transform: scale(1); /* Real shape */
        opacity: 1;
    }
}



/* paragraph animation  */

.para-fade-up {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 1.5s ease-out forwards;
    animation-delay: 0.5s; /* Buttons ke baad start hoga */
}

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

