/* PanTarg Website Styles
   A clean, professional design for a biotech company
   Created: October 2025
*/

/* Base & Typography */
:root {
  --color-primary: #0F92A0;
  --color-primary-light: #0FBCB2;
  --color-primary-dark: #0F928B;
  --color-accent: #33CC99;
  --color-accent-light: #7CCFA;
  --color-text: #2C3E50;
  --color-text-light: #666;
  --color-text-dark: #0B1E26;
  --color-bg: #fff;
  --color-bg-alt: #F4F7F8;
  --color-bg-alt-2: #DCE3E5;
  --color-border: #DCE3E5;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
  --radius: 4px;
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 8rem;
  --container-width: 1200px;
  --header-height: 80px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-bg);
}

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 var(--space-sm);
  line-height: 1.2;
  font-weight: 600;
  color: var(--color-text);
}

h1 {
  font-size: 3rem;
  font-weight: 700;
}

h2 {
  font-size: 2.25rem;
}

h3 {
  font-size: 1.5rem;
}

p {
  margin-bottom: var(--space-sm);
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--color-primary-dark);
}

.lead {
  font-size: 1.25rem;
  font-weight: 300;
  margin-bottom: var(--space-md);
}

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.section {
  padding: var(--space-lg) 0;
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-lg);
}

.section-kicker {
  color: var(--color-primary);
  font-size: 1.125rem;
  margin-top: -0.5rem;
  margin-bottom: var(--space-md);
}

/* Layout */
.grid {
  display: grid;
  gap: var(--space-md);
}

.two-cols {
  grid-template-columns: repeat(1, 1fr);
}

.three-cols {
  grid-template-columns: repeat(1, 1fr);
}

.team-grid {
  grid-template-columns: repeat(1, 1fr);
  max-width: 100%;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .two-cols {
    grid-template-columns: repeat(2, 1fr);
  }

  .three-cols {
    grid-template-columns: repeat(2, 1fr);
  }

  .team-grid {
    grid-template-columns: repeat(8, 1fr);
    row-gap: var(--space-lg);
  }

  /* First row: 3 items, offset by half a column to interlock with the row below */
  .team-grid .person:nth-child(1) {
    grid-column: 2 / 4;
  }

  .team-grid .person:nth-child(2) {
    grid-column: 4 / 6;
  }

  .team-grid .person:nth-child(3) {
    grid-column: 6 / 8;
  }

  /* Second row: 4 items spanning the full width */
  .team-grid .person:nth-child(4) {
    grid-column: 1 / 3;
  }

  .team-grid .person:nth-child(5) {
    grid-column: 3 / 5;
  }

  .team-grid .person:nth-child(6) {
    grid-column: 5 / 7;
  }

  .team-grid .person:nth-child(7) {
    grid-column: 7 / 9;
  }
}

@media (min-width: 992px) {
  .three-cols {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Components */
.btn {
  display: inline-block;
  background-color: var(--color-primary);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 500;
  text-align: center;
  transition: all 0.2s ease;
  border: 2px solid var(--color-primary);
}

.btn:hover {
  background-color: var(--color-primary-dark);
  color: white;
  border-color: var(--color-primary-dark);
}

.btn-outline {
  background-color: transparent;
  color: var(--color-primary);
}

.btn-outline:hover {
  background-color: var(--color-primary);
  color: white;
}

.link {
  display: inline-block;
  margin-left: var(--space-sm);
  font-weight: 500;
  position: relative;
}

.link:after {
  content: '';
  position: absolute;
  width: 100%;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: var(--color-primary);
  transform: scaleX(0);
  transform-origin: bottom right;
  transition: transform 0.3s;
}

.link:hover:after {
  transform: scaleX(1);
  transform-origin: bottom left;
}

.card {
  background-color: var(--color-bg);
  border-radius: var(--radius);
  padding: var(--space-md);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.3s ease, transform 0.3s ease;
  height: 100%;
}

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

.card h3 {
  margin-bottom: var(--space-xs);
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-height);
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(5px);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05);
  z-index: 100;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  max-height: 50px;
  width: auto;
}

.nav {
  display: flex;
  gap: var(--space-md);
  align-items: center;
}

.nav a {
  font-weight: 500;
}

/* Hero */
.hero {
  padding: calc(var(--header-height) + var(--space-lg)) 0 var(--space-lg);
  background-color: var(--color-primary-dark);
  position: relative;
  color: white;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

.hero .container {
  position: relative;
  z-index: 2;
}

.hero h1, 
.hero .lead {
  color: white;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.hero .link {
  color: white;
}

.hero .link:after {
  background-color: white;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 70vh;
}

.hero-copy {
  max-width: 700px;
}

.hero-cta {
  margin-top: var(--space-md);
  display: flex;
  align-items: center;
}

/* About */
.about {
  background-color: var(--color-bg);
}

.about .two-cols {
  align-items: center;
}

.about .two-cols > div:first-child p {
  font-size: 1.0625rem;
  line-height: 1.7;
  margin-bottom: var(--space-md);
  color: var(--color-text);
}

.about .two-cols > div:first-child p:last-child {
  margin-bottom: 0;
}

.keypoints {
  display: grid;
  gap: var(--space-sm);
  height: 100%;
}

.keypoints .card {
  padding: var(--space-md) var(--space-lg) var(--space-md) calc(var(--space-lg) - 4px);
  background-color: var(--color-bg-alt);
  border-left: 4px solid var(--color-primary);
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.keypoints h3 {
  color: var(--color-primary);
  margin-bottom: var(--space-md);
  font-size: 1.5rem;
}

.about .about-intro {
  align-items: stretch;
}

.about-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--space-lg) 0;
}

.about-founders-image {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
  border-radius: var(--radius);
}

.about .why-pantarg-row {
  align-items: stretch;
  margin-bottom: var(--space-lg);
}

.why-pantarg-row .why-pantag-image {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
  border-radius: var(--radius);
}

.why-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.why-list li {
  margin-bottom: var(--space-sm);
  line-height: 1.6;
  padding-left: var(--space-md);
  position: relative;
}

.why-list li:last-child {
  margin-bottom: 0;
}

.why-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--color-primary);
  font-weight: bold;
}

.why-list li strong {
  color: var(--color-text-dark);
  display: block;
  margin-bottom: 0.25rem;
}

/* News */
.news {
  background-color: var(--color-bg-alt);
}

.news-card {
  display: flex;
  flex-direction: column;
}

.news-date {
  font-size: 0.875rem;
  color: var(--color-text-light);
  margin-bottom: var(--space-xs);
}

/* Team */
.team {
  background-color: var(--color-bg);
}

.team .container {
  max-width: 1480px;
}

.person {
  text-align: center;
  background: none;
  box-shadow: none;
  padding: 0;
  transition: transform 0.3s ease;
}

.person:hover {
  box-shadow: none;
  transform: translateY(-8px);
}

.avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background-color: var(--color-primary-light);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 600;
  margin: 0 auto var(--space-sm);
}

.profile-image {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto var(--space-sm);
  display: block;
  border: 3px solid var(--color-primary-light);
  box-shadow: var(--shadow-md);
  filter: grayscale(100%);
  transition: filter 0.3s ease;
}

.person:hover .profile-image {
  filter: grayscale(0%);
}

.role {
  color: var(--color-primary);
  font-weight: 500;
  margin-bottom: var(--space-sm);
}

.linkedin-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: var(--space-xs);
  color: #0077B5;
  transition: color 0.2s ease, transform 0.2s ease;
}

.linkedin-link:hover {
  color: #005582;
  transform: scale(1.1);
}

.linkedin-link svg {
  width: 24px;
  height: 24px;
}

/* Footer */
.site-footer {
  background-color: var(--color-primary-dark);
  color: rgba(255, 255, 255, 0.9);
  padding: var(--space-lg) 0;
}

.site-footer h2 {
  color: white;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}

@media (min-width: 768px) {
  .footer-inner {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

.footer-title {
  font-size: 1.5rem;
  margin-bottom: var(--space-sm);
}

.footer-col {
  margin-bottom: var(--space-md);
}

.footer-col .btn {
  background-color: var(--color-primary-light);
  color: white;
  border-color: var(--color-primary-light);
  font-weight: 600;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.footer-col .btn:hover {
  background-color: white;
  color: var(--color-primary-dark);
  border-color: white;
}

.list {
  list-style: none;
}

.list li {
  margin-bottom: var(--space-xs);
}

.list a {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
  text-decoration-color: rgba(255, 255, 255, 0.5);
}

.list a:hover {
  color: white;
  text-decoration-color: white;
}

.smallprint {
  font-size: 0.875rem;
  opacity: 0.8;
}

.footer-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: var(--space-sm);
}

.footer-social {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.footer-linkedin-link {
  color: rgba(255, 255, 255, 0.9);
  transition: color 0.2s ease, transform 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.footer-linkedin-link:hover {
  color: white;
  transform: scale(1.1);
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(3px);
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.modal-content {
  background-color: white;
  margin: 5% auto;
  padding: var(--space-lg);
  border-radius: var(--radius);
  max-width: 600px;
  width: 90%;
  position: relative;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  animation: slideIn 0.3s ease;
}

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

.modal-close {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  font-size: 2rem;
  font-weight: 300;
  color: var(--color-text-light);
  cursor: pointer;
  transition: color 0.2s ease;
  line-height: 1;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover {
  color: var(--color-text);
}

.modal-profile-image {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  margin: 0 auto var(--space-md);
  border: 4px solid var(--color-primary-light);
  box-shadow: var(--shadow-md);
}

#modalBody h2 {
  margin-bottom: var(--space-xs);
  color: var(--color-text);
  text-align: center;
}

#modalBody .role {
  text-align: center;
}

#modalBody p {
  line-height: 1.7;
  color: var(--color-text);
}

/* Responsive adjustments */
@media (max-width: 767px) {
  h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 2rem;
  }

  .nav {
    display: none;
  }

  .modal-content {
    margin: 10% auto;
    padding: var(--space-md);
    width: 95%;
  }
}
