/* Global Styles */
:root {
  --primary-color: #2e7d5f;
  --secondary-color: #67b395;
  --accent-color: #e0ebe6;
  --text-color: #333;
  --light-gray: #f5f5f5;
  --border-radius: 12px;
  --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  background-color: #c8e7d7;
  background-image: none;
  min-height: 100vh;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

h1,
h2,
h3,
h4 {
  margin-bottom: 0.5rem;
  font-weight: bold;
}

/* Header Styles */
header {
  text-align: right;
  padding: 0.7rem 0;
  position: relative;
  background: none;
  border-radius: var(--border-radius);
  margin-bottom: 1.2rem;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  height: 250px;
}

.header-image {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left center;
  border-radius: var(--border-radius);
  z-index: 0;
}

.header-content {
  position: relative;
  z-index: 1;
  width: 40%;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-left: auto;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
}

header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(
    to right,
    var(--primary-color),
    var(--secondary-color)
  );
  z-index: 2;
}

.highlight {
  color: var(--primary-color);
  position: relative;
  display: inline-block;
}

.highlight::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--secondary-color);
  opacity: 0.6;
}

header h1 {
  font-size: 2.2rem;
  margin-bottom: 0.2rem;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5), 0 0 10px rgba(255, 255, 255, 0.7);
  margin-top: 0.2rem;
  color: white;
}

header h2 {
  font-size: 1.2rem;
  font-weight: normal;
  color: #1a3d2f;
  margin-bottom: 0.3rem;
  text-shadow: 0 0 3px rgba(255, 255, 255, 0.8),
    0 0 5px rgba(255, 255, 255, 0.9), 0 0 8px white;
}

/* Enhanced logo styling */
.logo {
  position: relative;
  margin: 0.3rem auto 0.1rem;
  width: 150px;
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.15));
  transition: transform 0.3s ease;
}

.logo:hover {
  transform: scale(1.05) rotate(5deg);
}

.logo img {
  max-width: 100%;
  height: auto;
}

/* Grid Layout */
.content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.8rem;
}

/* For screens larger than 768px, explicitly define a 3-column grid */
@media (min-width: 1024px) {
  .content-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-areas:
      "problem solution impact"
      "market-access traction market";
    gap: 2rem;
  }

  .problem {
    grid-area: problem;
  }
  .solution {
    grid-area: solution;
  }
  .impact {
    grid-area: impact;
  }
  .market-access {
    grid-area: market-access;
  }
  .traction {
    grid-area: traction;
  }
  .market {
    grid-area: market;
  }
}

/* Enhanced Card Styles */
.card {
  background-color: white;
  border-radius: var(--border-radius);
  padding: 1.5rem;
  box-shadow: var(--box-shadow);
  position: relative;
  transition: var(--transition);
  border-top: 4px solid var(--primary-color);
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.8), transparent);
  opacity: 0.5;
  z-index: 0;
}

.card > * {
  position: relative;
  z-index: 1;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 25px rgba(0, 0, 0, 0.1);
}

/* Icon Circle Styles - Repositioned next to titles */
.icon-circle {
  display: inline-flex;
  width: 38px;
  height: 38px;
  min-width: 38px;
  background-color: var(--primary-color);
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1rem;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  margin-right: 12px;
  position: relative;
}

.card h3 {
  margin-top: 0;
  color: var(--primary-color);
  border-bottom: 1px solid var(--accent-color);
  padding-bottom: 0.8rem;
  margin-bottom: 1.2rem;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  line-height: 1.2;
}

/* Specific Card Styles */
.problem {
  grid-column: span 1;
}

.impact {
  grid-column: span 1;
}

.solution {
  grid-column: span 1;
}

.market-access {
  grid-column: span 1;
}

.traction {
  grid-column: span 1;
}

.market {
  grid-column: span 1;
}

/* List Styles */
ul {
  list-style-type: none;
  margin-left: 0.5rem;
}

li {
  margin-bottom: 0.8rem;
  display: flex;
  align-items: flex-start;
  transition: transform 0.2s ease;
}

li:hover {
  transform: translateX(5px);
}

.icon {
  color: var(--primary-color);
  margin-right: 0.8rem;
  font-size: 1rem;
}

/* Enhanced Impact Items */
.impact-item,
.access-item,
.traction-item,
.fund-item,
.contact-item {
  margin-bottom: 1.2rem;
  display: flex;
  align-items: flex-start;
  padding: 0.8rem;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.impact-item:hover,
.access-item:hover,
.traction-item:hover,
.fund-item:hover,
.contact-item:hover {
  background-color: var(--accent-color);
  transform: translateX(5px);
}

.impact-icon,
.access-icon,
.traction-icon,
.fund-icon,
.contact-icon {
  background-color: var(--secondary-color);
  color: white;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1rem;
  flex-shrink: 0;
  font-size: 0.9rem;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
}

/* Team Section Styles - Full Width */
.team-section {
  margin-top: 3rem;
  width: 100%;
  box-shadow: 0 10px 25px rgba(46, 125, 95, 0.25);
  border-top: 6px solid var(--primary-color);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-top: 1.5rem;
}

.team-member-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 0.3s ease;
  padding: 1rem;
  border-radius: 8px;
}

.team-member-card:hover {
  transform: translateY(-8px);
  background-color: var(--accent-color);
}

.team-photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--primary-color);
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  margin-bottom: 1rem;
}

.placeholder-photo {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--accent-color);
  color: var(--primary-color);
  font-size: 2.5rem;
}

.team-member-card:hover .team-photo {
  border-color: var(--secondary-color);
  transform: scale(1.08) rotate(5deg);
}

.team-member-card h4 {
  margin-bottom: 0.4rem;
  color: var(--text-color);
  font-size: 1.1rem;
  white-space: nowrap;
}

.team-member-card p {
  font-size: 0.9rem;
  color: #555;
  line-height: 1.4;
  margin-bottom: 1rem;
}

.linkedin-link {
  display: inline-flex;
  align-items: center;
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  background-color: var(--accent-color);
}

.linkedin-link i {
  margin-right: 0.5rem;
}

.linkedin-link:hover {
  background-color: var(--primary-color);
  color: white;
  transform: scale(1.05);
}

/* Responsive Team Grid */
@media (max-width: 1200px) {
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .team-grid {
    grid-template-columns: 1fr;
  }
}

/* Pie Chart Styles */
.fund-chart {
  margin: 2rem 0;
  display: flex;
  justify-content: center;
}

.chart-wrapper {
  position: relative;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  overflow: hidden;
  background: #eee;
}

.pie-segment {
  position: absolute;
  width: 100%;
  height: 100%;
  transform-origin: 50% 50%;
  background: conic-gradient(
    var(--segment-color) 0%,
    var(--segment-color) var(--percentage),
    transparent var(--percentage),
    transparent 100%
  );
}

.segment-1 {
  --segment-color: var(--primary-color);
  --segment-offset: 0%;
}

.segment-2 {
  --segment-color: var(--secondary-color);
  --segment-offset: 38%;
  clip-path: polygon(50% 50%, 100% 0, 100% 100%, 0 100%, 0 0);
  transform: rotate(136.8deg);
}

.segment-3 {
  --segment-color: #90c7ad;
  --segment-offset: 68%;
  clip-path: polygon(50% 50%, 100% 0, 100% 100%, 0 100%, 0 0);
  transform: rotate(244.8deg);
}

.segment-4 {
  --segment-color: #b8ddcb;
  --segment-offset: 88%;
  clip-path: polygon(50% 50%, 100% 0, 100% 100%, 0 100%, 0 0);
  transform: rotate(316.8deg);
}

.fund-note {
  font-style: italic;
  text-align: center;
  margin-bottom: 0.5rem;
}

.mission {
  font-weight: bold;
  text-align: center;
  color: var(--primary-color);
}

/* Roadmap Styles */
.roadmap-timeline {
  margin-top: 1.5rem;
  position: relative;
}

.roadmap-timeline::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 10px;
  width: 2px;
  background-color: var(--secondary-color);
}

.timeline-item {
  display: flex;
  margin-bottom: 1.5rem;
  position: relative;
}

.timeline-marker {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: var(--primary-color);
  margin-right: 1rem;
  z-index: 1;
}

.timeline-content {
  flex: 1;
}

.timeline-content h4 {
  font-size: 1rem;
  margin-bottom: 0.3rem;
}

/* Footer */
footer {
  text-align: center;
  margin-top: 3rem;
  padding: 1.5rem 0;
  color: #666;
  font-size: 0.95rem;
  border-top: 1px solid var(--accent-color);
  position: relative;
}

footer p {
  margin: 0.5rem 0;
}

footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 30%;
  height: 3px;
  background: linear-gradient(
    to right,
    transparent,
    var(--primary-color),
    transparent
  );
}

/* Responsive Styles */
@media (max-width: 768px) {
  .content-grid {
    grid-template-columns: 1fr;
  }

  .card {
    grid-column: span 1 !important;
  }

  .team-section {
    margin-top: 2rem;
  }

  header {
    flex-direction: column;
    text-align: center;
    height: auto;
    position: relative;
    max-height: 250px;
    overflow: hidden;
  }

  .header-image {
    position: static;
    width: 100%;
    max-height: 180px;
    height: auto;
    border-radius: var(--border-radius) var(--border-radius) 0 0;
    margin-bottom: 0;
    object-fit: cover;
    object-position: center;
    aspect-ratio: 16/9;
  }

  .header-content {
    width: 100%;
    padding: 0.7rem 1rem;
    margin: 0;
    background: white;
    border-radius: 0 0 var(--border-radius) var(--border-radius);
    box-shadow: none;
  }

  .logo {
    position: absolute;
    top: -150px;
    right: 35px;
    width: 120px;
    height: 120px;
    margin: 0;
    background-color: transparent;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    z-index: 5;
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.7));
  }

  header h1 {
    font-size: 1.5rem;
    margin-top: 0;
  }

  header h2 {
    font-size: 1rem;
    margin-bottom: 0;
  }
}

/* Additional styles for very small screens and in-app browsers like Telegram */
@media (max-width: 480px) {
  header {
    max-height: 220px;
  }

  .header-image {
    max-height: 150px;
    aspect-ratio: 16/9;
    display: block;
  }

  .logo {
    width: 100px;
    height: 100px;
    top: -130px;
  }
}

/* Force image constraints for all mobile devices regardless of browser */
@media (max-width: 768px) {
  .header-image {
    max-width: 100% !important;
    height: auto !important;
    max-height: 180px !important;
  }
}
