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

body {
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  color: #333;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: var(--light);
}

/* VARIABLES */
:root {
  --primary: #0b1f3a;
  --secondary: #1e3c72;
  --accent: #c8a96a;
  --light: #f5f7fa;
  --text: #222;
}

/* NAVBAR */
nav {
  position: sticky;
  top: 0;
  background: var(--primary);
  padding: 15px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  position: relative;
}

nav h1 {
  color: white;
  font-size: 20px;
}

.nav-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

nav a {
  color: white;
  margin-left: 20px;
  text-decoration: none;
  font-weight: 500;
  position: relative;
}

.hamburger {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: white;
  margin: 3px 0;
  transition: 0.3s;
}

nav a::after {
  content: "";
  height: 2px;
  width: 0%;
  background: var(--accent);
  position: absolute;
  bottom: -5px;
  left: 0;
  transition: 0.3s;
}

nav a:hover::after {
  width: 100%;
}

nav a.active::after {
  width: 100%;
}

.search-btn {
  background: none;
  border: none;
  color: white;
  font-size: 16px;
  cursor: pointer;
  margin-left: 20px;
  padding: 5px;
  transition: 0.3s;
}

.search-btn:hover {
  color: var(--accent);
}

.search-container {
  display: none;
  background: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  margin: 20px 0;
  max-width: 400px;
}

.search-container input {
  width: 70%;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 16px;
}

.search-container button {
  padding: 10px 15px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  margin-left: 10px;
}

.search-container button:hover {
  background: var(--secondary);
}

.search-btn {
  background: var(--accent);
  color: white;
  border: none;
  padding: 8px 15px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 500;
  transition: 0.3s;
}

.search-btn:hover {
  background: #b8965a;
}

/* HERO */
.hero {
  height: 50vh;
  overflow: hidden;
  position: relative;
}

.slider {
  display: flex;
  width: 300%; /* 3 slides */
  height: 100%;
  transition: transform 0.5s ease;
}

.slide {
  width: 33.333%;
  height: 100%;
  position: relative;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.slide-content {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  padding: 60px;
  color: white;
  background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.8));
}

.slide-content h2 {
  color: #add8e6;
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.5);
  color: white;
  border: none;
  width: 50px;
  height: 50px;
  font-size: 24px;
  cursor: pointer;
  z-index: 10;
  transition: 0.3s;
  opacity: 0;
  visibility: hidden;
}

.hero:hover .slider-btn {
  opacity: 1;
  visibility: visible;
}

.slider-btn:hover {
  background: rgba(0,0,0,0.8);
}

.prev {
  left: 20px;
}

.next {
  right: 20px;
}

.hero h2 {
  font-size: 50px;
  max-width: 600px;
}

.hero p {
  margin-top: 20px;
  max-width: 500px;
}

/* SECTION */
section {
  padding: 80px 60px;
  max-width: 1200px;
  margin: auto;
}

h2 {
  font-size: 32px;
  margin-bottom: 20px;
  color: var(--primary);
}

/* GRID */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
}

/* CARD */
.card {
  background: white;
  padding: 25px;
  border-radius: 8px;
  transition: 0.3s;
  border-top: 3px solid transparent;
}

.card:hover {
  transform: translateY(-6px);
  border-top: 3px solid var(--accent);
}

.founders-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
  margin-top: 20px;
}

.founder-card img {
  width: 100%;
  height: 350px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 15px;
}

.founder-card h3 {
  margin-bottom: 8px;
}

.founder-role {
  color: var(--secondary);
  font-weight: 600;
  margin-bottom: 12px;
}

/* BUTTON */
.btn {
  display: inline-block;
  margin-top: 15px;
  padding: 12px 20px;
  background: var(--primary);
  color: white;
  text-decoration: none;
  transition: 0.3s;
}

.btn:hover {
  background: var(--secondary);
}

/* PUBLICATIONS */
.pub {
  background: white;
  padding: 20px;
  margin-bottom: 20px;
  border-left: 4px solid var(--primary);
}

/* TABLE */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
}

th, td {
  border: 1px solid #ddd;
  padding: 12px;
  text-align: left;
}

th {
  background: var(--primary);
  color: white;
}

/* FORM */
input, textarea {
  width: 100%;
  padding: 10px;
  margin-top: 10px;
  border: 1px solid #ccc;
}

button {
  background: var(--primary);
  color: white;
  padding: 12px;
  border: none;
  margin-top: 10px;
}

/* FOOTER */
footer {
  margin-top: auto;
  background: var(--primary);
  color: white;
  text-align: center;
  padding: 30px;
}

/* PARTNERS LIST */
.partners-list {
  display: flex;
  overflow-x: auto;
  gap: 20px;
  padding: 20px 0;
  scrollbar-width: thin;
  scrollbar-color: var(--accent) transparent;
  animation: scroll 80s linear infinite;
}

.partners-list:hover {
  animation-play-state: paused;
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-100%);
  }
}

.partners-list::-webkit-scrollbar {
  height: 6px;
}

.partners-list::-webkit-scrollbar-track {
  background: transparent;
}

.partners-list::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 3px;
}

.partner {
  flex-shrink: 0;
  background: var(--primary);
  padding: 20px;
  border-radius: 8px;
  text-align: center;
  min-width: 120px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  transition: 0.3s;
  color: white;
}

.partner i {
  font-size: 24px;
  margin-bottom: 8px;
  color: white;
  display: block;
}

.partner:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

/* ANIMATION */
.fade {
  opacity: 0;
  transform: translateY(20px);
  transition: 0.8s;
}

.fade.show {
  opacity: 1;
  transform: translateY(0);
}

/* RESPONSIVE DESIGN */
@media (max-width: 768px) {
  nav {
    padding: 15px 20px;
  }

  nav h1 {
    font-size: 18px;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--primary);
    padding: 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    z-index: 1001;
    max-height: 90vh;
    overflow-y: auto;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.2s ease, visibility 0.2s ease;
  }

  .nav-links.active {
    display: flex !important;
    visibility: visible;
    opacity: 1;
  }

  .nav-links a,
  .nav-links .search-btn {
    width: 100%;
  }

  .nav-links a {
    margin-left: 0;
    margin-bottom: 15px;
  }

  .nav-links .search-btn {
    margin: 0;
  }

  .hamburger {
    display: flex;
  }

  .hamburger.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
  }

  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
  }

  .hero {
    height: 40vh;
  }

  .slide-content {
    padding: 30px;
  }

  .slide-content h2 {
    font-size: 24px;
  }

  .partners-list {
    gap: 15px;
  }

  .partner {
    min-width: 100px;
    padding: 15px;
  }

  .partner i {
    font-size: 20px;
  }

  footer {
    padding: 20px;
  }
}

@media (max-width: 480px) {
  nav {
    padding: 10px 15px;
  }

  nav h1 {
    font-size: 16px;
  }

  .hero {
    height: 30vh;
  }

  .slide-content {
    padding: 20px;
  }

  .slide-content h2 {
    font-size: 20px;
  }

  .slider-btn {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }

  .partners-list {
    gap: 10px;
  }

  .partner {
    min-width: 80px;
    padding: 10px;
  }

  .partner i {
    font-size: 18px;
  }

  .search-container {
    padding: 15px;
    margin: 15px 0;
  }

  .search-container input {
    width: 60%;
  }

  footer {
    padding: 15px;
  }
}