* {
  box-sizing: border-box;
  font-family: "Inter", sans-serif;
}

body {
  background: linear-gradient(135deg, #cacdd3 0%, #a6b4cc 100%);
  margin: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  color: #333;
}

/* --- Navbar --- */
nav {
  background: white;
  padding: 15px 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav-container {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
}

.nav-links a {
  text-decoration: none;
  color: #333;
  font-weight: 600;
  margin-left: 20px;
  padding: 8px 0;
  transition: 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
  color: #cf4b00;
  border-bottom: 2px solid #cf4b00;
}

.logo-group {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap; 
    justify-content: center; 
}

.logo-group img {
    height: 35px;
    width: auto;
    filter: grayscale(20%);
    transition: 0.3s;
    max-width: 100%; 
}

@media (max-width: 600px) {
    .logo-group {
        gap: 10px;
        padding: 5px;
    }

    .logo-group img {
        height: 25px; 
        flex-shrink: 1; 
    }

    .nav-container {
        flex-direction: column; /* Logo di atas, menu di bawah */
        gap: 10px;
        padding: 10px;
    }

    .nav-links {
        display: flex;
        overflow-x: auto; 
        white-space: nowrap; 
        width: 100%;
        justify-content: center; 
        padding-bottom: 5px;
        -webkit-overflow-scrolling: touch; 
    }

    .nav-links::-webkit-scrollbar {
        display: none;
    }

    .nav-links a {
        margin-left: 0;
        margin-right: 15px;
        font-size: 14px; 
        padding: 5px 0;
    }
}

@media (max-width: 400px) {
    .logo-group img {
        height: 22px;
    }
}

.container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center; 
    padding: 40px 20px;
}

.card {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.07);
    width: 100%;
    max-width: 650px;
    transition: transform 0.3s ease;
}

/* Judul dan Deskripsi */
h2 {
    margin-top: 0;
    color: #cf4b00;
    font-size: 26px;
    font-weight: 700;
    text-align: center;
    letter-spacing: -0.5px;
}

.description {
    text-align: center;
    color: #777;
    margin-bottom: 30px;
    font-size: 15px;
    line-height: 1.5;
}

/* Textarea yang lebih modern */
textarea {
    width: 100%;
    height: 180px;
    padding: 20px;
    border: 2px solid #f0f0f0;
    border-radius: 14px;
    outline: none;
    resize: none;
    font-size: 16px;
    background-color: #fafafa;
    color: #333;
    transition: all 0.3s ease;
}

textarea:focus {
    border-color: #cf4b00;
    background-color: #fff;
    box-shadow: 0 0 0 4px rgba(207, 75, 0, 0.1); /* Efek halo saat mengetik */
}

/* Tombol Aksi */
button {
    margin-top: 20px;
    width: 100%;
    padding: 16px;
    background: #cf4b00;
    color: white;
    border: none;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(207, 75, 0, 0.2);
    transition: all 0.3s active;
}

button:hover {
    background: #a63e00;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(207, 75, 0, 0.3);
}

button:active {
    transform: translateY(0);
}

/* Tampilan Hasil */
#result {
    text-align: center;
    font-size: 18px;
    margin-top: 25px;
    padding: 15px;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.button-group {
    display: flex;
    gap: 12px;     
    margin-top: 20px;
}

.button-group button {
    padding: 16px;
    border: none;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}
#submitBtn {
    flex: 2; 
    background: #cf4b00;
    color: white;
    box-shadow: 0 4px 12px rgba(207, 75, 0, 0.2);
}

#submitBtn:hover:not(:disabled) {
    background: #a63e00;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(207, 75, 0, 0.3);
}

#refreshBtn {
    flex: 1; 
    background: #f4f4f4;
    color: #555;
    border: 1px solid #e0e0e0;
}

#refreshBtn:hover {
    background: #e8e8e8;
    color: #333;
    transform: translateY(-2px);
}

button:active {
    transform: translateY(0) !important;
}

button:disabled {
    background: #ccc !important;
    cursor: not-allowed;
    box-shadow: none !important;
    transform: none !important;
}

@media (max-width: 480px) {
    .button-group {
        flex-direction: column;
    }
}

/* --- About --- */
.about-container {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 20px;
}

.about-card {
    background: white;
    padding: 50px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    line-height: 1.8;
}

.about-text {
    font-size: 16px;
    color: #444;
    text-align: justify;
}

.highlight {
    color: #cf4b00;
    font-weight: 600;
}

.safe-ai-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-top: 30px;
    text-align: center;
}

.safe-item {
    background: #fff5f0;
    padding: 10px;
    border-radius: 10px;
    font-weight: bold;
    color: #cf4b00;
    font-size: 14px;
    border: 1px solid #ffdecb;
}

/* --- Footer --- */
footer {
  background: white;
  text-align: center;
  padding: 10px;
  font-size: 13px;
  border-top: 1px solid #eee;
}

.container-team {
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
  flex: 1;
}

.section-title {
  text-align: center;
  color: #303030;
  margin-bottom: 40px;
  position: relative;
  font-size: 28px;
}

.section-title::after {
  content: "";
  display: block;
  width: 50px;
  height: 4px;
  background: #cf4b00;
  margin: 12px auto;
  border-radius: 2px;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  margin-bottom: 50px;
}

.team-card {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.team-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 25px rgba(0, 0, 0, 0.1);
}

.profile-img {
  width: 100%;
  height: 500px;
  background: #f8f9fa;
  overflow: hidden;
}

.profile-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.team-card:hover .profile-img img {
  transform: scale(1.05);
}

/* Info Profil */
.profile-info {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.profile-info h3 {
  margin: 0 0 12px 0;
  font-size: 19px;
  color: #cf4b00;
  line-height: 1.3;
}

.expert {
  font-size: 14px;
  color: #555;
  margin-bottom: 10px;
  line-height: 1.5;
}

.email {
  font-size: 13px;
  color: #888;
  margin-bottom: 20px;
  font-style: italic;
  word-break: break-all;
}

.links {
  display: flex;
  gap: 10px;
  margin-top: auto;
}

.links a {
  font-size: 11px;
  text-decoration: none;
  color: #4a90e2;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 6px 12px;
  background: #f0f7ff;
  border: 1px solid #e1efff;
  border-radius: 6px;
  transition: 0.3s;
}

.links a:hover {
  background: #4a90e2;
  color: white;
}

/* Pemberi Dana */
.pemberi-dana-container {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 20px;
}

.pemberi-dana-card {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.funding-logo {
    height: 100px;
    width: auto;
    margin-bottom: 25px;
    transition: transform 0.3s ease;
}

.funding-logo:hover {
    transform: scale(1.05);
}

.pemberi-dana-text p {
    font-size: 16px;
    line-height: 1.8;
    color: #444;
    text-align: justify;
}

.scheme-tag {
    display: inline-block;
    background: #fff5f0;
    color: #cf4b00;
    padding: 4px 12px;
    border-radius: 6px;
    font-weight: 600;
    margin: 10px 0;
}

@media (max-width: 992px) {
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .team-grid {
    grid-template-columns: 1fr;
  }
  .profile-img {
    height: 350px;
  }
}

@media (max-width: 768px) {
  .nav-container {
    flex-direction: column;
    gap: 15px;
  }
  .nav-links a {
    margin: 0 10px;
  }
}
