:root {
  --primary-color: #6e8efb;
  --secondary-color: #d7c2f1;
  --dark: #1e1e2f;
  --light: #f5f7fa;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: "Segoe UI", sans-serif;
  background: var(--light);
  color: #333;
  display: flex;
  overflow-x: hidden;
  flex-direction: column;
  min-height: 100vh;
}

.flex-grow { flex: 1; }

/* Navbar */
.navbar {
  padding: 15px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 1000;
}
.logo a {
  font-size: 32px;
  font-weight: bold;
  text-decoration: none;
  background: linear-gradient(to bottom, 
    #ffcc00 0%,       
    #ffcc00 40%,      
    #ffcc00 40%,         
    #ffcc00 55%,         
    #000 55%,      
    #000 100%      
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}
.nav-links {
  display: flex;
color: black;
overflow-x: auto;
-webkit-overflow-scrolling: touch;
flex-wrap: nowrap;
  gap: 25px;
}
.nav-links a {
  color: black;
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 6px;
  transition: 0.3s;
}
.nav-links a:not(.active):hover { font-size: large;   background: rgba(0,0,0,0.05); }
.nav-links a.active { background: #ffcc00; color: black; font-weight: bold; }

/* Hero */
.hero {
  background:transparent;
  color: white;
  text-align: center;
  padding: 30px 15px;   
}
.logo-big {
  font-size: 48px;
  font-weight: bold;
  background: linear-gradient(to bottom, 
    #ffcc00 0%,       
    #ffcc00 40%,      
    #ffcc00 40%,         
    #ffcc00 55%,        
    #000 55%,      
    #000 100%      
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

/* Ads */
.ad {
  display: flex;
  justify-content: center;
  align-items: center;
  color: #555;
  font-weight: bold;
  border-radius: 6px;
  margin: 20px auto;
  width: 100%;
  max-width: 970px;   
  min-height: 50px;   
  max-height: 280px;  
  overflow: hidden;
}


.ad-side {
  position: fixed;
  top: 150px;
  width: 100%;
  max-width: 300px;    
  min-height: 250px;
  min-width: 120px;
  max-height: 600px;    
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 8px;
  font-weight: bold;
  overflow: hidden;     
}
.ad-side.left { left: 10px; }
.ad-side.right { right: 10px; }

.mobile-header {
  display: none;
}

@media (min-width: 1025px) {

  .navbar {
    display: flex !important;
  }

  .mobile-header,
  .mobile-menu {
    display: none !important;
  }
  .ad-side {
    display: flex !important;
  }
  .ad-leaderboard {
    display: flex !important;
  }
  .ad-bottom {
    display: none !important;
  }
}

/* TAb */
@media (min-width: 768px) and (max-width: 1024px) {

  .mobile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    border-bottom: 1px solid #eee;
  }

  .navbar {
    display: none !important;
  }

  .page-title {
    font-size: 18px;
    margin: 0;
  }

  .menu-toggle {
    font-size: 24px;
    background: none;
    border: none;
    cursor: pointer;
  }

  .mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  right: 0;
  width: 33%;           
  height: 600px;
  background: #f5f7fa;
  color: #000;
  z-index: 1000;
  padding: 60px 20px 20px;
  text-align: center;
  box-shadow: -2px 0 8px rgba(0,0,0,0.2);
  border-radius: 12px 0 0 12px;
  transition: transform 0.3s ease;
  transform: translateX(100%);
}

  .mobile-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

  .mobile-menu ul li {
  margin: 20px 0;
}

 .mobile-menu ul li a {
  display: block;
  margin: 15px 0;
  padding: 10px;
  background: #ffcc00;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  color: #000;
}


.mobile-menu .close-btn {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 26px;
  cursor: pointer;
  background: #ffcc00;
  border-radius: 50%;
  padding: 5px 10px;
}

  .mobile-menu.show {
  display: block;
  transform: translateX(0);
}


.nav-links {
    gap: 15px;
  }
.nav-links a {
    font-size: 12px;
    padding: 6px 8px;
  }

  .logo a {
    font-size: 22px;     
  }

  .ad-side {
    display: none !important;
  }
  .ad-leaderboard {
    display: flex !important;
  }
  .ad-bottom {
    display: flex !important;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    justify-content: center;
    height: 90px;
  }
}



/* Mobile */
@media (max-width: 767px) {

  .mobile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    border-bottom: 1px solid #eee;
  }

  .navbar {
    display: none !important;
  }

  .page-title {
    font-size: 18px;
    margin: 0;
  }

  .menu-toggle {
    font-size: 24px;
    background: none;
    border: none;
    cursor: pointer;
  }

  .mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  right: 0;
  width: 60%;           
  height: 90%;
  max-height: 660px;
  background: #f5f7fa;
  color: #000;
  z-index: 1000;
  padding: 60px 20px 20px;
  text-align: center;
  box-shadow: -2px 0 8px rgba(0,0,0,0.2);
  border-radius: 12px 0 0 12px;
  transition: transform 0.3s ease;
  transform: translateX(100%);
}

  .mobile-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

  .mobile-menu ul li {
  margin: 20px 0;
}

 .mobile-menu ul li a {
  display: block;
  margin: 15px 0;
  padding: 10px;
  background: #ffcc00;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  color: #000;
}


.mobile-menu .close-btn {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 26px;
  cursor: pointer;
  background: #ffcc00;
  border-radius: 50%;
  padding: 5px 10px;
}

  .mobile-menu.show {
  display: block;
  transform: translateX(0);
}

.idea-block h1 {
    font-size: 18px !important;
}

.idea-block p {
    font-size: 14px !important;
}

 .category-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }

  .category-card {
    align-content: center !important;
    min-height: 120px !important;
    max-height: 120px !important;
    min-width: 100% !important;
    padding: 5px !important;
  }

  .category-card h3 {
    font-size: 14px !important;
  }

  .category-card p {
    display: none !important;
  }

  .icon-box {
    width: 40px !important;
    height: 40px !important;
    font-size: 18px !important;
    margin: 0 auto 8px !important;
  }

  .ideas {
    height: auto !important;
  }

  .textarea {
    min-height: 120px !important;
    font-size: 14px;
  }


.nav-links {
    overflow-x: auto;
    display: flex;
    flex-wrap: nowrap;
  }

  .nav-links a {
    font-size: 11px;
    padding: 5px 7px;
  }

  .logo a {
    font-size: 18px;     
  }

  .ad-side,
  .ad-leaderboard {
    display: none !important;
  }
  .ad-bottom {
    display: flex !important;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    justify-content: center;
    height: 50px;
  }
}

/* Cards (Home) */
.container {
  width: 90%;
  max-width: 1100px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  padding: 30px 0;
}
.card {
  background: white;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.6s ease-in-out;
}
.card.show { opacity: 1; transform: translateY(0); }
.card h3 { margin-bottom: 10px; }
.btn {
  display: inline-block;
  margin-top: 10px;
  padding: 8px 16px;
  background: #ffcc00;
  color: black;
  text-decoration: none;
  border-radius: 6px;
  transition: 0.3s;
}
.btn:hover { background: lightblue; color: black; }

.idea-block button {
  margin: 6px 4px;   
}

.idea-block input,
.idea-block textarea {
  margin-bottom: 12px; 
}

.idea-block p {
  margin-top: 10px;   
}

textarea {
  width: 100%;                 
  min-height: 250px;           
  resize: vertical;            
  font-size: 16px;             
  line-height: 1.5;            
  padding: 12px;               
  border: 1px solid #ccc;     
  border-radius: 8px;          
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.05); 
  transition: border-color 0.3s, box-shadow 0.3s;
  margin-bottom: 12px;         
}


input[type="number"],
input[type="text"],
select {
  border: 1px solid #ccc;
  border-radius: 8px;       
  padding: 5px 10px;        
  font-size: 14px;
  transition: border-color 0.3s, box-shadow 0.3s;
}

input[type="number"]:focus,
input[type="text"]:focus,
select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 5px rgba(110, 142, 251, 0.4); 
}



.ideas {
  width: 90%;
  max-width: 900px;
  margin: auto;
  padding: 40px 0;
}

.idea-block {
  margin-bottom: 40px;
  padding: 20px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 3px 12px rgba(0,0,0,0.1);
  opacity: 1;
}
.idea-block.show { opacity: 1; transform: translateY(0); }
.idea-block h2 { margin-bottom: 8px; color: black; }
.idea-block p { line-height: 1.6; }

/* Footer */
footer {
  background:transparent;
  color: black;
  text-align: center;
  padding: 20px;
  margin-top: auto;
}

/* Category Grid */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
  width: 100%;
  max-width: 1200px;
  overflow: hidden;
  margin: 40px auto;
  justify-items: center;
  justify-content: center;  
  align-content: start;     
}

.layout {
   background-size: cover;        
  background-position: center;   
  background-repeat: no-repeat;  
  min-height: 100vh; 
}

.category-card {
  background: #fff;
  border-radius: 12px;
  padding: 14px 20px;
  text-align: center; 
  cursor: pointer;
  height: auto;
  min-height: 180px;    
  max-height: 270px;
  border: 1px solid #eee;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  transition: transform 0.3s;
  margin: 0 auto; 
}
.category-card:hover { transform: translateY(-5px); }
.category-card h3 {
  font-size: 18px;
  font-weight: bold;
  margin: 10px 0;
}
.category-card p {
  font-size: 14px;
  color: #666;
}

/* Icon Box */
.icon-box {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  margin: 0 auto 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}
.bg-blue { background: #dbeafe; }
.bg-green { background: #dcfce7; }
.bg-purple { background: #ede9fe; }
.bg-orange { background: #ffedd5; }


.home-info {
  padding: 40px 20px;   
  text-align: center;
}
.home-info h2 {
  font-size: 26px;
  font-weight: bold;
  margin-bottom: 25px;  
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); 
  gap: 15px; 
  max-width: 1000px; 
  margin: 0 auto;
}
.info-card.square {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 12px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 3px 10px rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.info-card h3 {
  margin: 15px 0 10px;
  font-size: 18px;
  font-weight: bold;
}
.info-card p {
  font-size: 14px;
  color: #666;
}

.input-box {
  padding: 8px 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  margin-right: 10px;
}
