* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

html, body {
    height: 100%;
    display: flex;
    flex-direction: column;
}

body {
    background-image: url(/foto/900909.png);
    background-size: cover;       /* Membuat gambar memenuhi area dan menjaga rasio */
    flex-grow: 1; /* supaya isi mengisi ruang yang ada */
}

.kolom {
    margin-top: 50px;
    margin-bottom: 50px;
    animation: slideIn 1.5s ease-in-out;
}

.kolom .deskripsi {
    font-size: 20px;
    font-weight: bold;
    font-family: 'comic sans ms';
    color: #272727;
}
h2 {
    font-family: 'comic sans ms';
    font-weight: 800;
    font-size: 45px;
    margin-bottom: 20px;
    color: #272727;
    width: 100%;
    line-height: 50px;
}

/* Navbar / Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 50px;
    background: #2e2e2e;
    clip-path: ellipse(100% 90% at 50% 0%);
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    animation: slideDown 0.8s ease-out;
}

.logo {
    font-size: 1.5em;
    font-weight: bold;
    color: #adadad;
}

nav a {
    margin-left: 25px;
    text-decoration: none;
    color: #e0e0e0;
    font-weight: 500;
    transition: color 0.3s;
}

nav a.btn-contact {
    background: #555;
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    transition: background 0.3s;
}

nav a:hover { color: #bbb; }
nav a.btn-contact:hover { background: #777; }

/* Hero Section */
.hero {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    min-height: 100vh;       /* PENTING: tinggi minimal 100% viewport */
    padding: 50px;
    padding-top: 130px;      /* kasih jarak supaya tidak tertutup header fixed */
    box-sizing: border-box;
    animation: fadeIn 2s ease-in-out;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    animation: fadeIn 2s ease-in-out;
}

.hero-image img {
    width: 300px;
    height: 300px;
    object-fit: cover;
    border-radius: 50%;
    border: 5px solid #666;
    animation: zoomIn 1.5s ease-in-out;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
}

.hero-text {
    flex: 1;
    padding: 20px 40px;
    animation: slideIn 1.5s ease-in-out;
}

.hero-text h1 { font-size: 2.5em; }
.hero-text h1 span { color: #272727; }
.hero-text h2 { font-size: 2em; margin-top: 10px; }
.highlight { color: #272727; }

.hero-text p {
    margin: 20px 0;
    line-height: 1.6;
    color: #272727;
}

/* Social Icons */
.social-icons a {
    margin-right: 15px;
    font-size: 1.5em;
    color: #272727;
    transition: transform 0.3s, color 0.3s;
}
.social-icons a:hover { transform: scale(1.2); color: #fff; }

/* Download Button */
.btn-download {
    display: inline-block;
    background: #272727;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    margin-top: 20px;
    transition: background 0.3s, transform 0.3s;
}
.btn-download:hover { background: #777; transform: translateY(-3px); }

/* Section Titles */
.section-title {
    width: 100%;
    font-size: 1.2em;
    margin-top: 60px;     /* jarak atas agar tidak terlalu dekat dengan konten sebelumnya */
    margin-bottom: 30px;  /* jarak bawah agar ada spasi ke konten berikutnya */
    padding: 10px 20px;
    background: #2c2c2c;
    color: #fff;
    border-radius: 50px;
    font-weight: 600;
    animation: titlePop 0.8s ease forwards;
    transform: scale(0.8);
    opacity: 0;
}

/* Section Container */
.content-section {
    padding: 40px;
    color: #222;
    border-radius: 50px;
    margin: 40px 20px;
}

/* Content Section Items */
.section-content {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 0px; /* jarak bawah antar section content */
}

.section-content .item {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    flex: 1 1 calc(25% - 20px);
    min-width: 230px;
    transition: transform 0.3s ease;
    opacity: 0;
    transform: translateY(30px);
    animation: itemFade 0.8s ease forwards;
    animation-fill-mode: forwards;
}

.section-content .item:hover {
    transform: translateY(-5px) !important;
}

/* Delay animasi tiap item */
.section-content .item:nth-child(1) { animation-delay: 0.3s; }
.section-content .item:nth-child(2) { animation-delay: 0.5s; }
.section-content .item:nth-child(3) { animation-delay: 0.7s; }
.section-content .item:nth-child(4) { animation-delay: 0.9s; }


.section-content .item img {
    width: 100%;
    height: 160px;
    object-fit: cover;
}

.section-content .item p {
    padding: 10px;
    font-size: 0.9em;
    color: #333;
}

.section-content .item small {
    display: block;
    padding: 0 10px 10px;
    font-size: 0.75em;
    color: #777;
}

/* Layout khusus Berita Terkini */
.content-section.berita-terkini .section-content {
    display: flex;
    gap: 20px;
}

.content-section.berita-terkini .section-content .item:first-child {
    flex: 1 1 60%;
}

.content-section.berita-terkini .section-content .item:first-child img {
    height: 350px;
}

.content-section.berita-terkini .section-content .item:last-child {
    flex: 1 1 35%;
    background: transparent;
    box-shadow: none;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.content-section.berita-terkini .section-content .item:last-child p {
    background: white;
    color: #333;
    padding: 10px;
    border-radius: 8px;
    margin: 0;
    font-size: 0.9em;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes slideIn {
    from { transform: translateX(50px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}
@keyframes zoomIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}
@keyframes slideDown {
    from { transform: translateY(-100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
@keyframes titlePop {
    to { transform: scale(1); opacity: 1; }
}
@keyframes itemFade {
    to { opacity: 1; transform: none; }
}

/* Footer supaya selalu di bawah */
footer {
    background: #2e2e2e;
    color: #e0e0e0;
    padding: 30px 40px;
    font-family: 'Poppins', sans-serif;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    flex-shrink: 0;
}

footer > div {
    flex: 1 1 30%;
    min-width: 200px;
    margin-bottom: 20px;
}

footer .logo img {
    max-width: 100px;
    margin-right: 10px;
}

footer a {
    color: #e0e0e0;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

footer a:hover {
    color: #bbb;
}

.footer-icons a {
    font-size: 24px;
    margin-right: 15px;
    color: #bbb;
    transition: color 0.3s ease, transform 0.3s ease;
    display: inline-block;
}

.footer-icons a:hover {
    color: #fff;
    transform: scale(1.2);
}

.pantai {
  padding-top: 200px;  
  padding-left: 100px;
  padding-right: 20px;
  padding-bottom: 50px;
}

.pantai .box-pantai {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
  gap: 20px;
  row-gap: 50px;
}

.pantai .box-pantai .box {
  text-align: center;
  color: rgb(32, 32, 32);
  transform: translateY(20px);   /* posisi awal untuk animasi masuk */
  opacity: 0;                    /* transparan awal */
  animation: fadeInUp 0.6s ease forwards;
  animation-fill-mode: forwards; /* biar tetap terlihat setelah animasi */
}

.pantai .box-pantai .box:hover {
  transform: translateY(-20px);  /* efek hover naik */
}

.pantai .box-pantai .box img {
  width: 40%;
  height: 200px;
  margin-bottom: 10px;
  border-radius: 5px;
}

.pantai .box-pantai .box p {
  font-weight: 100;
  max-width: 350px;
  margin: 0 auto 10px auto;
}

.pantai .box-pantai .box .btn-detail {
  display: inline-block;
  width: 120px;
  height: 40px;
  line-height: 40px;
  background-color: #3a3a3a;
  color: white;
  font-weight: bold;
  border-radius: 5px;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.pantai .box-pantai .box .btn-detail:hover {
  background-color: #828282;
}

/* Delay animasi masuk */
.pantai .box-pantai .box:nth-child(1) { animation-delay: 0.2s; }
.pantai .box-pantai .box:nth-child(2) { animation-delay: 0.4s; }
.pantai .box-pantai .box:nth-child(3) { animation-delay: 0.6s; }
.pantai .box-pantai .box:nth-child(4) { animation-delay: 0.8s; }
.pantai .box-pantai .box:nth-child(5) { animation-delay: 1s; }
.pantai .box-pantai .box:nth-child(6) { animation-delay: 1.2s; }

/* Animasi fadeInUp */
@keyframes fadeInUp {
  0% {
    transform: translateY(20px);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}


.content {
    background-color: #9494945d;
    width: 50%;
    height: 900px;
    bottom: 1px;
    margin-top: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 20px;
  
}

.content img {
    object-fit: cover;
    width: 140px;
    border-radius: 300px;
    height: 142px;
    border: 4px solid #626262;
    margin-top: 50px;


}
.content h4 {
    color:  #374A67; 
}
.content h4 span {
   color : rgb(228, 243, 243);
}
.content h3 span {
    color: #374A67;
}
 .content .logoo {
    display: flex;
    flex-direction: column;
    gap: 20px;
    text-align: center;
   
 }

 .content .logoo a {
    font-size: 18px;
    font-family: 'Ubuntu';
    text-decoration: none;
    color:rgb(215, 220, 224);
    background-color:  #575757;
    padding: 7px;
    border-radius: 6px;
    box-shadow: 0px 2px 8px -2px rgba(0, 0, 0, 0.4), 0px 0px 0px 1px rgba(0, 0, 0, 0.1), 0px 0px 20px rgba(0, 0, 0, 0.1);
    transition: transform .5s, 1s;
    
 }

 .content .logoo a:hover {
    transform: scale(1.1);
    color: #d7d9db;
    background-color: #b3b3b3;
    border-radius: 10px;

 }

 .content .logoo h4 {
    background-color:#62818e ;
    padding: 7px;
    font-size: 15px;
    border-radius: 5px;
    color: #a5c7db ;
    box-shadow: 0px 2px 8px -2px rgba(0, 0, 0, 0.4), 0px 0px 0px 1px rgba(0, 0, 0, 0.1), 0px 0px 20px rgba(0, 0, 0, 0.1);
 }
 aside {
    display: flex;
    justify-content: end;
    margin: 30px;
    flex-direction: column;
    gap: 80px;

    
}

aside .aboutme {
    line-height: 27px;
    font-size: 17px;
    margin-left: 350px;
    text-align: center;
    margin-top: 30px;
}

aside .aboutme h4{
    background-color: #687980;
    border-radius: 7px;
    padding: 7px;
    width: 30%;
    margin-left: 36%;
    margin-bottom: 20px;
    color: #d7d9db; 
    font-size: 20px;
    box-shadow: 0px 4px 12px -2px rgba(0, 0, 0, 0.4), 0px 0px 0px 1px rgba(0, 0, 0, 0.1), 0px 0px 30px rgba(0, 0, 0, 0.1);
}
aside .aboutme h4 span {
    color:#a5c7db ;
}
aside .aboutme h5 {
    background-color: #687980;
    color:rgb(215, 220, 224);
    width: 80%;
    margin-left: 12%;
    padding: 15px;
    border-radius: 15px;
    column-span: all;
    box-shadow: 0px 4px 12px -2px rgba(0, 0, 0, 0.4), 0px 0px 0px 1px rgba(0, 0, 0, 0.1), 0px 0px 30px rgba(0, 0, 0, 0.1);

}

aside .aboutme h5 span {

    color:  #a5c7db ;

}
.main-wrapper {
  display: flex;
  gap: 40px;
  padding: 120px 40px 40px 40px;
  box-sizing: border-box;
  min-height: calc(100vh - 150px);
  animation: fadeIn 2s ease-in-out;
}

aside {
  flex: 0 0 25%;
}

.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 60px;
  animation: slideIn 1.5s ease-in-out;
}
