/* Base styles untuk warna biar mudah di ubah*/
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
:root {
  --primary-color: #ffc107;
  --secondary-color: #31956e;
  --text-dark: #343a40;
  --text-light: #f8f9fa;
  --section-padding: 80px 0;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  overflow-x: hidden;
}

/* Navbar styles untuk ubah navbar*/
.navbar {
  padding: 15px 0;
  transition: all 0.3s ease;
}

.navbar-brand {
  font-weight: 700;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.navbar-brand img {
  border-radius: 50%;
}

.navbar-light .navbar-nav .nav-link {
  color: var(--text-dark);
  font-weight: 600;
  padding: 8px 15px;
  transition: all 0.3s ease;
  position: relative;
}

.navbar-light .navbar-nav .nav-link:hover,
.navbar-light .navbar-nav .nav-link.active {
  color: var(--secondary-color);
}

.navbar-light .navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 50%;
  background-color: var(--secondary-color);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.navbar-light .navbar-nav .nav-link:hover::after,
.navbar-light .navbar-nav .nav-link.active::after {
  width: 70%;
}

/* Jumbotron section biar mudah caari*/
.jumbotron-section {
  padding-top: 120px;
  padding-bottom: 40px;
  position: relative;
}

.gambartron {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-top: 40px;
}

.gambartron img {
  transition: transform 0.5s ease;
  border: 5px solid var(--primary-color);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.gambartron img:hover {
  transform: scale(1.05);
}

.gambartron h1 {
  margin-top: 20px;
  font-weight: 700;
  color: var(--text-dark);
}

.gambartron .lead {
  font-size: 1.2rem;
  color: var(--text-dark);
  opacity: 0.8;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 15px;
}

.social-links a {
  transition: transform 0.3s ease;
}

.social-links a:hover {
  transform: translateY(-3px);
}

.tulsaluran {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 30px;
  position: relative;
}

.tulsaluran p {
  font-size: 1.25rem;
  line-height: 1.7;
  font-style: italic;
  color: var(--secondary-color);
  text-align: center;
}

.tulsaluran p:first-child {
  font-weight: 600;
  padding: 20px;
  background-color: rgba(255, 255, 255, 0.8);
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  margin-bottom: 30px;
}

/* About section */
#about {
  padding: var(--section-padding);
  background-color: #f8f9fa;
  position: relative;
}

#about h2 {
  position: relative;
  display: inline-block;
  margin-bottom: 40px;
  font-weight: 700;
  color: var(--text-dark);
}

#about h2:after {
  content: '';
  position: absolute;
  width: 50%;
  height: 3px;
  background-color: var(--primary-color);
  bottom: -10px;
  left: 25%;
}

#about p {
  font-size: 1.05rem;
  text-align: justify;
  margin-bottom: 20px;
}

/* Projects/Portfolio section */
#projects {
  padding: var(--section-padding);
  background-color: #fff;
}

#projects h2 {
  position: relative;
  display: inline-block;
  margin-bottom: 10px;
  font-weight: 700;
  color: var(--text-dark);
}

#projects h2:after {
  content: '';
  position: absolute;
  width: 50%;
  height: 3px;
  background-color: var(--primary-color);
  bottom: -10px;
  left: 25%;
}

#projects p {
  margin-bottom: 40px;
  color: var(--secondary-color);
  font-size: 1.1rem;
}

.card {
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  height: 100%;
  border: none;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.card-img-center {
  display: block;
  margin: 20px auto;
  max-height: 125px;
  width: auto;
  object-fit: contain;
  transition: transform 0.5s ease;
}

.card:hover .card-img-center {
  transform: scale(1.08);
}

.card-title {
  font-weight: 700;
  color: var(--secondary-color);
  text-align: center;
  margin-bottom: 15px;
}

.card-text {
  color: var(--text-dark);
  font-size: 0.95rem;
  text-align: center;
  height: 100px;
  overflow: hidden;
}

.card .btn {
  background-color: var(--primary-color);
  border: none;
  color: var(--text-dark);
  font-weight: 600;
  padding: 8px 20px;
  transition: all 0.3s ease;
}

.card .btn:hover {
  background-color: var(--secondary-color);
  color: white;
}

/* Contact section */
#contact {
  padding: var(--section-padding);
  background-color: var(--primary-color);
  color: var(--text-dark);
}

#contact h2 {
  position: relative;
  display: inline-block;
  margin-bottom: 30px;
  font-weight: 700;
  color: var(--text-dark);
}

#contact h2:after {
  content: '';
  position: absolute;
  width: 50%;
  height: 3px;
  background-color: white;
  bottom: -10px;
  left: 25%;
}

#contact .lead {
  margin-bottom: 30px;
}

#contact img {
  transition: transform 0.3s ease;
}

#contact img:hover {
  transform: scale(1.1);
}

#contact button {
  background-color: var(--secondary-color);
  color: white;
  border: none;
  padding: 10px 25px;
  border-radius: 50px;
  font-weight: 600;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  cursor: pointer;
  margin-top: 20px;
}

#contact button:hover {
  background-color: #267557;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
  transform: translateY(-3px);
}

/* Footer */
footer {
  background-color: var(--primary-color);
  padding: 20px 0;
}

footer p {
  margin-bottom: 0;
  font-weight: 500;
}

footer a {
  text-decoration: none;
  color: white;
  transition: all 0.3s ease;
}

footer a:hover {
  color: var(--text-dark);
}

/* Back to top button */
#btn-back-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: none;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  text-align: center;
  line-height: 1;
  z-index: 99;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  border: none;
  transition: all 0.3s ease;
}

#btn-back-to-top:hover {
  background-color: var(--secondary-color);
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

#btn-back-to-top i {
  font-size: 20px;
  line-height: 1;
}

/* Button styling */
.btn-contact {
  display: inline-block;
  background-color: var(--secondary-color);
  color: white;
  border: none;
  border-radius: 50px;
  padding: 12px 30px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-contact:hover {
  background-color: #267557;
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

/* Waves and svg elements */
svg {
  display: block;
  width: 100%;
  height: auto;
}

/* Media Queries for Responsive Design */
@media (max-width: 1199.98px) {
  .tulsaluran p {
    font-size: 1.15rem;
  }
}

@media (max-width: 991.98px) {
  .navbar-collapse {
    position: absolute;
    top: 70px;
    left: 0;
    z-index: 1000;
    width: 100%;
    background-color: var(--primary-color);
    padding: 15px;
    border-radius: 0 0 15px 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  }
  
  .navbar-light .navbar-nav .nav-link {
    text-align: center;
    padding: 10px;
  }
  
  .card-text {
    height: auto;
  }
  
  .jumbotron-section {
    padding-top: 100px;
  }
  
  .row {
    margin-right: 0;
  }
}

@media (max-width: 767.98px) {
  .gambartron {
    margin-bottom: 30px;
  }
  
  .tulsaluran {
    margin-top: 0;
    padding: 15px;
  }
  
  .tulsaluran p {
    font-size: 1rem;
  }
  
  .jumbotron-section .row {
    flex-direction: column;
  }
  
  .gambartron, .tulsaluran {
    width: 100%;
    max-width: 100%;
    flex: 0 0 100%;
  }
  
  #about .row {
    flex-direction: column;
  }
  
  #about .col-4, #about .col-8 {
    width: 100%;
    max-width: 100%;
    flex: 0 0 100%;
    text-align: center !important;
  }
  
  .card {
    margin-bottom: 20px;
  }
}

@media (max-width: 575.98px) {
  .navbar-brand {
    font-size: 1.25rem;
  }
  
  .gambartron h1 {
    font-size: 1.5rem;
  }
  
  .gambartron .lead {
    font-size: 1rem;
  }
  
  .tulsaluran p {
    font-size: 0.9rem;
  }
  
  #about p, #projects p, .card-text {
    font-size: 0.9rem;
  }
  
  .section-padding {
    padding: 50px 0;
  }
  
  h2 {
    font-size: 1.75rem;
  }
}

.balanced-lead {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
  text-align: center;
  margin: 0 auto;
  max-width: 100%;
}

.balanced-lead .separator {
  display: inline-block;
  font-weight: 600;
}

.balanced-lead span {
  display: inline-block;
  padding: 5px 10px;
  background-color: rgba(255, 193, 7, 0.15);
  border-radius: 20px;
  transition: all 0.3s ease;
}

.balanced-lead span:hover {
  background-color: rgba(255, 193, 7, 0.3);
  transform: translateY(-2px);
}

@media (max-width: 575.98px) {
  .balanced-lead {
    flex-direction: column;
    gap: 5px;
  }
  
  .balanced-lead .separator {
    display: none;
  }
  
  .balanced-lead span {
    width: 100%;
    margin: 2px 0;
  }
}

@media (min-width: 576px) and (max-width: 767.98px) {
  .balanced-lead {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }
  
  .balanced-lead .separator {
    display: none;
  }
}