/*
Theme Name: Boostimize AI Theme
Theme URI: https://example.com/
Author: Your Name
Author URI: https://example.com/
Description: A modern AI marketing theme for Boostimize AI with support for custom HTML content
Version: 1.0
Author: Boostimize AI
*/

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700;800&display=swap');

/* Global Styles from Home Page */
html {
  scroll-behavior: smooth;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', sans-serif;
  background: #0a182f;
  color: #e2e8f0;
  position: relative;
  overflow-x: hidden;
  min-height: 100vh;
}

/* Main content wrapper */
.main1 {
  position: relative;
  overflow: hidden;
  z-index: 1;
}

/* Background image layer */
.main1::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('2.png');
  background-repeat: no-repeat;
  background-size: 60%;
  background-position: center top 135%;
  opacity: 0.2;
  z-index: 0;
}

/* Dark overlay */
.main1::before {
  content: '';
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.3);
  z-index: 1;
}

.main1 > * {
  position: relative;
  z-index: 2;
}

/* Overlay elements */
.main1 .overlay-top,
.main1 .overlay-bottom,
.overlay-top,
.overlay-bottom {
  content: '';
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.main1 .overlay-top,
.overlay-top {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, #1c9a94, transparent);
  top: -100px;
  left: -100px;
  filter: blur(120px);
  z-index: 0;
}

.main1 .overlay-bottom,
.overlay-bottom {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, #023d4b, transparent);
  bottom: -80px;
  right: -80px;
  filter: blur(180px);
  z-index: 0;
}

/* Header Styles */
header,
heading {
  position: sticky;
  top: 0;
  z-index: 999;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 60px;
  background-color: black;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo img {
  height: 50px;
}

.ai-text {
  font-size: 24px;
  font-weight: 800;
  color: white;
}

.nav-and-btn {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-links {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  position: relative;
}

.nav-links a,
.dropdown-toggle {
  text-decoration: none;
  color: white;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  position: relative;
  display: inline-block;
}

.nav-links a:hover,
.dropdown-toggle:hover {
  color: #04aaa2;
}

.dropdown {
  position: relative;
}

.dropdown-toggle {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: relative;
  cursor: pointer;
}

.dropdown-toggle .dropdown-check {
  appearance: none;
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  cursor: pointer;
  z-index: 2;
  opacity: 0;
}

.dropdown-menu {
  display: none;
  flex-direction: column;
  position: absolute;
  background-color: #1a1a2f;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 10px;
  top: 30px;
  left: 0;
  min-width: 200px;
  z-index: 1;
}

.dropdown-toggle .dropdown-check:checked + .dropdown-menu {
  display: flex;
}

.dropdown-menu a {
  display: block;
  padding: 8px 12px;
  color: white;
  text-decoration: none;
  border-radius: 5px;
  transition: background 0.2s;
}

.dropdown-menu a:hover {
  background-color: #04aaa2;
  color: white;
}

.nav-buttons {
  display: flex;
  gap: 12px;
}

.btn {
  padding: 10px 24px;
  border: 2px solid transparent;
  border-radius: 25px;
  font-weight: bold;
  cursor: pointer;
  font-size: 16px;
  color: white;
  background: none;
  position: relative;
  overflow: hidden;
  z-index: 1;
  transition: transform 0.3s ease;
}

.btn span {
  position: relative;
  z-index: 2;
}

.btn::before {
  content: "";
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  z-index: 0;
  border-radius: 25px;
  background: linear-gradient(to right, #01738e, #04aaa2);
}

.btn::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  right: 2px;
  bottom: 2px;
  border-radius: 20px;
  background-color: black;
  z-index: 1;
}

.btn:hover {
  transform: scale(1.03);
  box-shadow: 0 0 15px white, 0 0 30px white;
}

/* Hero Section */
.hero {
  text-align: center;
  padding: 80px 30px 60px;
  margin-top: 0;
  margin-bottom: 0;
  border-radius: 24px;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}

.typewriter-heading {
  font-size: 60px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 30px;
  color: white;
  text-align: center;
}

.line {
  display: inline-block;
  overflow: hidden;
  white-space: nowrap;
  border-right: 2px solid transparent;
}

.line1 {
  width: 0;
  animation: typing 2s steps(30, end) forwards;
}

.line2 {
  width: 0;
  animation: typing 2.5s steps(40, end) 2s forwards;
}

@keyframes typing {
  from { width: 0; }
  to { width: 100%; }
}

.highlight-orange {
  background: linear-gradient(to right, #01738e, #04aaa2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
  font-weight: 800;
}

.hero p {
  font-size: 22px;
  max-width: 850px;
  margin: 0 auto 50px;
  color: #f1f5f9;
  padding: 10px 20px;
}

.hero .buttons {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.hero .buttons button {
  padding: 14px 32px;
  font-size: 16px;
  border-radius: 30px;
  cursor: pointer;
  font-weight: 600;
  transition: 0.3s ease;
  position: relative;
  overflow: hidden;
}

.hero .buttons .primary {
  background: linear-gradient(to right, #01738e, #04aaa2);
  color: white;
  border: none;
}

.hero .buttons .primary:hover {
  background: linear-gradient(to right, #04aaa2, #01738e);
  box-shadow: 0 0 15px #04aaa2, 0 0 25px #04aaa2;
  transform: scale(1.03);
}

.hero .buttons .secondary {
  background: black;
  color: white;
  border: 2px solid transparent;
  background-image: linear-gradient(black, black),
    linear-gradient(to right, #01738e, #04aaa2);
  background-origin: border-box;
  background-clip: padding-box, border-box;
  position: relative;
  z-index: 1;
}

.hero .buttons .secondary:hover {
  color: white;
  background: linear-gradient(to right, #01738e, #04aaa2);
  border: none;
  box-shadow: 0 0 15px #04aaa2, 0 0 25px #04aaa2;
  transform: scale(1.03);
}

/* Cards and Grid Layouts */
.grid-container {
  max-width: 1300px;
  width: 100%;
  margin: 0 auto;
  padding: 0 30px 60px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  align-items: stretch;
}

.grid-2x2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 25px;
}

.card,
.challenge-item,
.agent-card,
.card1 {
  background: #1a1c22;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  padding: 28px;
  color: #e2e8f0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  text-align: center;
}

.card:hover,
.challenge-item:hover,
.agent-card:hover,
.card1:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 24px rgba(1, 115, 142, 0.3);
}

.card h3,
.challenge-item h3,
.card1 h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: #ffffff;
}

.card p,
.challenge-item p,
.agent-card p,
.card1 p {
  font-size: 1.2rem;
  line-height: 1.6;
  color: #cbd5e1;
  margin: 0;
}

.card-icon,
.challenge-item i {
  font-size: 2rem;
  color: #34b2bf;
  margin-bottom: 14px;
  display: block;
  transition: color 0.3s ease;
}

.card:hover .card-icon,
.challenge-item:hover i {
  color: #04aaa2;
}

/* Section Titles */
.section-title,
.agents-title {
  font-size: 2.5rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 40px;
  background: linear-gradient(to right, #01738e, #04aaa2);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* Sections */
.challenges-section,
.why-us,
.ai-marketing-agents {
  background-color: #08101f;
  margin: 0;
  padding: 60px 30px;
  width: 100%;
  text-align: center;
}

.ai-marketing-agents {
  background-color: #03060b;
}

/* Buttons and CTAs */
.cta {
  text-align: center;
  margin-top: 30px;
}

.cta a {
  display: inline-block;
  margin: 10px;
  padding: 12px 25px;
  border-radius: 30px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 1rem;
  cursor: pointer;
}

.cta .primary {
  position: relative;
  display: inline-block;
  padding: 0.75em 2em;
  border-radius: 50px;
  background: linear-gradient(90deg, #00c6ff, #0072ff);
  color: white;
  text-align: center;
  font-weight: bold;
  text-decoration: none;
  box-shadow: 0 0 10px rgba(94, 162, 255, 0.5);
  border: none;
  overflow: hidden;
}

.shining-button {
  position: relative;
  background-color: black;
  border: 2px solid #04aaa2;
  color: white;
  overflow: hidden;
  display: inline-block;
  padding: 12px 25px;
  border-radius: 30px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 1rem;
  cursor: pointer;
}

.shining-button::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.4) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: skewX(-20deg);
  animation: shine-effect 2.5s infinite;
  z-index: 1;
}

.shining-button span {
  position: relative;
  z-index: 2;
}

.shining-button:hover {
  transform: scale(1.05);
  box-shadow: 0 0 10px #04aaa2;
}

@keyframes shine-effect {
  0% { left: -100%; }
  100% { left: 100%; }
}

/* Shine effects for buttons */
.hero .buttons .primary::before,
.hero .buttons .secondary::before,
.cta .primary::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  right: 4px;
  bottom: 4px;
  border-radius: 45px;
  background: linear-gradient(
    120deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.8) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  z-index: 1;
  transform: skewX(-25deg);
  animation: shine 2.5s infinite;
  pointer-events: none;
}

.hero .buttons .primary span,
.hero .buttons .secondary span {
  position: relative;
  z-index: 2;
}

@keyframes shine {
  0% { left: -75%; }
  100% { left: 125%; }
}

/* CSS Variables for Optimizer page */
:root {
  --bg: #0c0e15;
  --card: #1a1d26;
  --text: #ccc;
  --heading: #58c7ff;
  --accent: #b586f8;
  --primary: #5ea2ff;
}

/* Content wrapper for optimizer */
.content {
  position: relative;
  z-index: 2;
}

/* Responsive Design */
@media (max-width: 768px) {
  header,
  heading {
    flex-direction: column;
    gap: 15px;
    padding: 20px 30px;
  }

  .nav-and-btn {
    flex-direction: column;
    gap: 10px;
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
  }

  .typewriter-heading {
    font-size: 40px;
  }

  .hero p {
    font-size: 18px;
  }

  .grid-container,
  .grid-2x2 {
    grid-template-columns: 1fr;
    padding: 0 20px;
  }

  .section-title {
    font-size: 2rem;
  }

  .card,
  .card1 {
    padding: 20px;
  }
}

/* WordPress specific styles */
.wp-block-group {
  margin: 0;
}

.entry-content {
  max-width: none;
}

.entry-content > * {
  max-width: none;
}

/* Ensure WordPress editor content displays properly */
.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
  color: inherit;
  font-family: inherit;
}

.entry-content p {
  color: inherit;
  font-family: inherit;
}
