/**
 * Custom theme for AI Market Presentation
 */
:root {
  --main-color: #2056ac;
  --secondary-color: #5594f2;
  --accent-color: #ffa500;
  --text-color: #333;
  --light-text: #f8f8f8;
  --background: #ffffff;
  --light-background: #f5f8ff;
  --dark-background: #1e2a45;
  --shadow: rgba(0, 0, 0, 0.1);
}

body {
  background: var(--background);
  color: var(--text-color);
  font-family: 'Segoe UI', Roboto, Oxygen, Ubuntu, 'Helvetica Neue', sans-serif;
}

.reveal {
  font-family: 'Segoe UI', Roboto, Oxygen, Ubuntu, 'Helvetica Neue', sans-serif;
  font-size: 36px;
  font-weight: normal;
  color: var(--text-color);
}

.reveal .slides {
  text-align: left;
}

.reveal .slides section {
  padding: 20px 40px;
  text-align: left;
}

.reveal h1,
.reveal h2,
.reveal h3,
.reveal h4,
.reveal h5,
.reveal h6 {
  margin: 0 0 20px 0;
  color: var(--main-color);
  font-family: 'Segoe UI', Roboto, Oxygen, Ubuntu, 'Helvetica Neue', sans-serif;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: normal;
  text-align: left;
  text-shadow: none;
  word-wrap: break-word;
}

.reveal h1 {
  font-size: 2.5em;
}

.reveal h2 {
  font-size: 1.8em;
  border-bottom: 2px solid var(--secondary-color);
  padding-bottom: 10px;
  margin-bottom: 30px;
}

.reveal h3 {
  font-size: 1.3em;
  color: var(--secondary-color);
}

.reveal p {
  margin: 20px 0;
  line-height: 1.3;
}

.reveal ul,
.reveal ol {
  display: inline-block;
  text-align: left;
  margin: 0 0 0 1em;
  width: 100%;
}

.reveal ul li,
.reveal ol li {
  margin-bottom: 10px;
}

.reveal .source {
  position: absolute;
  bottom: 10px;
  right: 20px;
  font-size: 0.5em;
  color: #888;
  font-style: italic;
}

/* Title slide */
.reveal .title-slide {
  text-align: center;
  background: linear-gradient(135deg, var(--dark-background), var(--main-color));
  color: var(--light-text);
}

.reveal .title-slide h1,
.reveal .title-slide h3 {
  text-align: center;
  color: var(--light-text);
}

.reveal .title-slide h1 {
  font-size: 2.8em;
  margin-bottom: 30px;
}

.reveal .title-slide h3 {
  font-size: 1.4em;
  font-weight: 400;
  margin-bottom: 40px;
}

.reveal .title-slide .date {
  font-size: 1em;
  margin-top: 40px;
  color: rgba(255, 255, 255, 0.8);
}

/* Market Overview Slide */
.market-overview {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin: 30px 0;
}

.stat-box {
  width: 45%;
  padding: 20px;
  margin-bottom: 20px;
  background-color: var(--light-background);
  border-radius: 8px;
  box-shadow: 0 4px 8px var(--shadow);
  text-align: center;
}

.stat-value {
  font-size: 2em;
  font-weight: bold;
  color: var(--main-color);
  margin-bottom: 10px;
}

.stat-label {
  font-size: 0.9em;
}

.stat-box.highlight {
  background-color: var(--main-color);
}

.stat-box.highlight .stat-value,
.stat-box.highlight .stat-label {
  color: white;
}

/* Investment Slide */
.chart-container {
  margin: 20px 0;
  text-align: center;
}

.chart-container img {
  max-width: 80%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 8px var(--shadow);
}

.investment-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin: 30px 0;
}

.stat-item {
  width: 48%;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
}

.stat-item i {
  margin-right: 15px;
  font-size: 1.5em;
  color: var(--accent-color);
}

/* Companies Grid */
.companies-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-gap: 15px;
  margin: 30px 0;
}

.company-item {
  background-color: var(--light-background);
  border-radius: 8px;
  padding: 15px;
  text-align: center;
  box-shadow: 0 2px 5px var(--shadow);
  transition: transform 0.3s ease;
}

.company-item:hover {
  transform: translateY(-5px);
}

.company-logo {
  height: 50px;
  margin-bottom: 10px;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}

.company-logo.openai {
  background-image: url('https://upload.wikimedia.org/wikipedia/commons/thumb/4/4d/OpenAI_Logo.svg/1200px-OpenAI_Logo.svg.png');
}

.company-logo.google {
  background-image: url('https://upload.wikimedia.org/wikipedia/commons/thumb/e/e8/Google_DeepMind_logo.svg/1200px-Google_DeepMind_logo.svg.png');
}

.company-logo.microsoft {
  background-image: url('https://upload.wikimedia.org/wikipedia/commons/thumb/4/44/Microsoft_logo.svg/1200px-Microsoft_logo.svg.png');
}

.company-logo.aws {
  background-image: url('https://upload.wikimedia.org/wikipedia/commons/thumb/9/93/Amazon_Web_Services_Logo.svg/1200px-Amazon_Web_Services_Logo.svg.png');
}

.company-logo.nvidia {
  background-image: url('https://upload.wikimedia.org/wikipedia/commons/thumb/2/21/Nvidia_logo.svg/1200px-Nvidia_logo.svg.png');
}

.company-logo.ibm {
  background-image: url('https://upload.wikimedia.org/wikipedia/commons/thumb/5/51/IBM_logo.svg/1200px-IBM_logo.svg.png');
}

.company-logo.meta {
  background-image: url('https://upload.wikimedia.org/wikipedia/commons/thumb/7/7b/Meta_Platforms_Inc._logo.svg/1200px-Meta_Platforms_Inc._logo.svg.png');
}

.company-logo.tesla {
  background-image: url('https://upload.wikimedia.org/wikipedia/commons/thumb/b/bb/Tesla_T_symbol.svg/1200px-Tesla_T_symbol.svg.png');
}

.company-logo.baidu {
  background-image: url('https://upload.wikimedia.org/wikipedia/commons/thumb/4/4e/Baidu.svg/1200px-Baidu.svg.png');
}

.company-logo.alibaba {
  background-image: url('https://upload.wikimedia.org/wikipedia/commons/thumb/b/b6/Alibaba_Group_logo.svg/1200px-Alibaba_Group_logo.svg.png');
}

.company-name {
  font-weight: bold;
  margin-bottom: 5px;
  font-size: 0.8em;
}

.company-products {
  font-size: 0.7em;
  color: #666;
}

/* Trends Slides */
.trends-container {
  display: flex;
  flex-direction: column;
  margin: 20px 0;
}

.trend-item {
  display: flex;
  margin-bottom: 20px;
  align-items: flex-start;
}

.trend-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: var(--main-color);
  color: white;
  border-radius: 50%;
  font-weight: bold;
  margin-right: 15px;
  flex-shrink: 0;
}

.trend-content {
  flex: 1;
}

.trend-content h3 {
  margin: 0 0 5px 0;
  font-size: 1em;
}

.trend-content p {
  margin: 0;
  font-size: 0.8em;
  line-height: 1.4;
}

/* Sectors Slide */
.sectors-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin: 30px 0;
}

.sector-item {
  width: 48%;
  margin-bottom: 20px;
  padding: 15px;
  background-color: var(--light-background);
  border-radius: 8px;
  box-shadow: 0 2px 5px var(--shadow);
  display: flex;
  flex-direction: column;
}

.sector-icon {
  font-size: 1.5em;
  color: var(--main-color);
  margin-bottom: 10px;
}

.sector-name {
  font-weight: bold;
  margin-bottom: 10px;
  color: var(--secondary-color);
}

.sector-stats {
  display: flex;
  flex-direction: column;
  font-size: 0.8em;
}

.sector-stats span {
  margin-bottom: 5px;
}

/* Workforce Slide */
.workforce-container {
  display: flex;
  margin: 30px 0;
}

.chart-half {
  width: 50%;
  padding-right: 20px;
}

.chart-placeholder img {
  max-width: 100%;
  border-radius: 8px;
  box-shadow: 0 4px 8px var(--shadow);
}

.stats-half {
  width: 50%;
  display: flex;
  flex-direction: column;
}

.workforce-stat {
  display: flex;
  margin-bottom: 20px;
  align-items: center;
}

.stat-icon {
  font-size: 1.5em;
  color: var(--accent-color);
  margin-right: 15px;
}

.stat-content {
  display: flex;
  flex-direction: column;
}

.stat-content .stat-value {
  font-size: 1.5em;
  margin-bottom: 5px;
}

.stat-content .stat-label {
  font-size: 0.7em;
}

/* Brazil Slide */
.brazil-container {
  display: flex;
  margin: 30px 0;
}

.brazil-map {
  width: 40%;
  padding-right: 20px;
}

.brazil-map img {
  max-width: 100%;
  border-radius: 8px;
}

.brazil-content {
  width: 60%;
  display: flex;
  flex-direction: column;
}

.brazil-highlight, .brazil-companies, .brazil-challenges {
  margin-bottom: 20px;
}

.brazil-highlight h3, .brazil-companies h3, .brazil-challenges h3 {
  margin-bottom: 10px;
  font-size: 1em;
}

.brazil-highlight ul, .brazil-challenges ul {
  margin: 0;
  padding-left: 20px;
}

.brazil-highlight li, .brazil-challenges li {
  margin-bottom: 5px;
  font-size: 0.8em;
}

.company-logos {
  display: flex;
  justify-content: space-between;
}

.br-company {
  padding: 10px;
  background-color: var(--light-background);
  border-radius: 5px;
  font-size: 0.8em;
  text-align: center;
  width: 30%;
}

/* Conclusion Slide */
.conclusion-container {
  margin: 20px 0;
}

.key-takeaway {
  display: flex;
  align-items: flex-start;
  margin-bottom: 15px;
}

.takeaway-icon {
  font-size: 1.2em;
  color: var(--accent-color);
  margin-right: 15px;
}

.takeaway-content {
  flex: 1;
}

.takeaway-content h3 {
  margin: 0 0 5px 0;
  font-size: 1em;
}

.takeaway-content p {
  margin: 0;
  font-size: 0.8em;
}

.next-steps {
  margin-top: 30px;
  background-color: var(--light-background);
  padding: 15px;
  border-radius: 8px;
}

.next-steps h3 {
  margin: 0 0 10px 0;
  font-size: 1em;
}

.next-steps ol {
  margin: 0;
  padding-left: 20px;
}

.next-steps li {
  margin-bottom: 5px;
  font-size: 0.8em;
}

/* Thank You Slide */
.thank-you-slide {
  text-align: center !important;
  background: linear-gradient(135deg, var(--main-color), var(--dark-background));
  color: var(--light-text);
}

.thank-you-slide h1,
.thank-you-slide h3 {
  text-align: center;
  color: var(--light-text);
}

.thank-you-slide h1 {
  font-size: 3em;
  margin-bottom: 30px;
}

.thank-you-slide h3 {
  font-size: 1.5em;
  font-weight: 400;
}

/* Progress Bar */
.reveal .progress {
  height: 4px;
}

.reveal .progress span {
  background-color: var(--main-color);
}

/* Media Queries */
@media (max-width: 900px) {
  .companies-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .market-overview, .investment-stats {
    flex-direction: column;
  }
  
  .stat-box, .stat-item {
    width: 100%;
  }
  
  .workforce-container, .brazil-container {
    flex-direction: column;
  }
  
  .chart-half, .stats-half, .brazil-map, .brazil-content {
    width: 100%;
    padding-right: 0;
  }
  
  .chart-half {
    margin-bottom: 30px;
  }
}