/* Custom CSS to match the navbar design in the image */
:root {
    --primary-color: #254061; 
    --secondary-color: #ffffff;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    margin: 0;
    padding: 0;
    padding-top: 80px; /* Add space for fixed navbar */
    overflow-x: hidden; /* Prevent horizontal scrollbar */
}

/* Navbar styling */
.navbar {
    box-shadow: 16px 11px 23.1px 0 rgba(0, 0, 0, 0.25);
    transition: all 0.3s ease;
    position: fixed !important;
    top: 0;
    width: 100%;
    z-index: 1030;
}

.navbar-scrolled {
    padding: 10px 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.navbar-nav {
    gap: 0; 
}

.nav-item {
    position: relative;
}

/* Navbar button styling */
.nav-btn {
    color: var(--secondary-color) !important;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    text-align: center;
    letter-spacing: 0.5px;
    background-color: var(--primary-color);
    width: 80%;
    max-width: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-left: 25px;
    padding-right: 25px;
    border-radius: 50px;
    margin: 0 auto;
}

.nav-btn .nav-link {
    color: var(--secondary-color) !important;
    font-weight: normal;
    padding: 8px 15px;
}

.nav-btn .nav-link.active,
.nav-btn .nav-link:hover {
    font-weight: 600;
}

/* Bootstrap button customization */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    font-size: 14px;
    transition: all 0.3s ease;
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: #15304f;
    border-color: #15304f;
    transform: translateY(-2px);
    font-weight: 600;
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    transform: translateY(-2px);
}

/* Hero content styling */
.hero-content {
    max-width: 450px;
    z-index: 2;
    color: var(--primary-color);
    left: 25% !important;
}

/* Portfolio Gallery Section */
.portfolio-gallery {
    padding: 60px 0;
    background-color: #f9f9f9;
}

.galeri-button-container {
    margin-bottom: 20px;
}

.galeri-btn {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    font-weight: 600;
    padding: 8px 20px;
    border-radius: 4px;
    font-size: 14px;
    border: none;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.galeri-btn:hover {
    background-color: #15304f;
    color: white;
}

.portfolio-title {
    color: #4268B3;
    font-weight: 500;
    font-size: 1.8rem;
    margin-bottom: 20px;
    font-family: 'Montserrat', Arial, sans-serif;
}

.portfolio-desc {
    color: #000000;
    line-height: 1.6;
    font-size: 1rem;
}

/* Gallery Items */
.gallery-items {
    margin-top: 40px;
}

.gallery-item {
    position: relative;
    transition: transform 0.3s ease;
    margin-bottom: 10px;
}

.gallery-item:hover {
    transform: translateY(-5px);
}

.img-container {
    position: relative;
    overflow: hidden;
    border-radius: 20px 20px 20px 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    margin-bottom: 12px;
    width: 100%;
    padding-top: 100%; /* Creates a 1:1 aspect ratio container */
    will-change: transform;
    transform: translateZ(0);
}

.img-container::before {
  content: "";
  background: #376092c7;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  transition: all .1s ease-in-out;
  -webkit-transition: all .1s ease-in-out;
  -moz-transition: all .1s ease-in-out;
  -ms-transition: all .1s ease-in-out;
  -o-transition: all .1s ease-in-out;
}

.img-container:hover::before {
   width: 0;
  height: 0;
  opacity: 0;
}

/* Lingkaran kiri bawah */
.img-container .left-circle {
  position: absolute;
  width: 0;
  height: 0;
  background-color: rgba(66, 104, 179, 0.33);
  border-radius: 50%;
  left: -70px;
  bottom: -15px;
  transition: all .3s ease-out;
  -webkit-transition: all .3s ease-out;
  -moz-transition: all .3s ease-out;
  -ms-transition: all .3s ease-out;
  -o-transition: all .3s ease-out;
}

/* Kurva kanan atas berbentuk "bulan sabit" */
.img-container .right-curve {
position: absolute;
  top: -210px;
  right: -100px;
  width: 1000px;
  height: 1000px;
  background-color: transparent;
  border-radius: 50%;
  border: 0 solid #4268B3A8;
  transition: all .3s ease-out;
}

.img-container:hover .left-circle {
  width: 250px;
  height: 250px;
}

.img-container:hover .right-curve {
    width: 1000px;
  height: 1000px;
   border: 160px solid #4268B3A8;
}

.gallery-item img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    display: block;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* Gallery overlay with wave animation effect */
.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(37, 64, 97, 0.85);
    z-index: 2;
    border-radius: 20px;
    will-change: background; /* Optimize for animation */
    transition: background 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Enhanced animation performance */
.img-container {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    margin-bottom: 12px;
    width: 100%;
    padding-top: 100%;
    will-change: transform;
    transform: translateZ(0);
}

/* Remove previous hover styles as we're handling them with JS */
.gallery-item:hover .gallery-overlay {
    /* Empty to override previous styles - we're using JS for this now */
}

/* First gallery item special overlay (bubble effect) */
.gallery-item:first-child .gallery-overlay {
    background: rgba(37, 64, 97, 0.85); /* Same blue background */
}

/* Remove any previous ripple effect styles */
.ripple-effect {
    display: none;
}

.gallery-item::after {
    content: none;
}

@keyframes ripple {
    0% { width: 0; height: 0; opacity: 0.8; }
    100% { width: 0; height: 0; opacity: 0; }
}

/* Action Buttons */
.action-buttons {
    position: fixed;
    right: 30px;
    bottom: 100px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 100;
}

.action-btn {
    width: 50px;
    height: 50px;
    border-radius: 8px; 
    background-color: #4F81BD;
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3); 
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.action-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.5); 
    background-color: #15304f; 
}

.action-btn.whatsapp {
    border-radius: 50% !important; 
    border: none !important; 
}

.action-btn.whatsapp:hover {
    border: none !important; 
}

/* Section spacing improvements */
section.py-0.mb-5 {
    margin-bottom: 5rem !important;
}

/* Responsive styles for the portfolio section */
@media (max-width: 768px) {
    .portfolio-title {
        font-size: 1.5rem;
        margin-bottom: 15px;
    }
    
    .portfolio-desc {
        margin-top: 20px;
    }
}

/* Mobile Responsive Styles */
@media (max-width: 992px) {
    .hero-content {
        max-width: 400px;
        left: 50% !important;
        transform: translateX(-50%) !important;
        text-align: center;
    }
}

@media (max-width: 768px) {
    .hero-content {
        max-width: 330px;
        width: 90%;
        left: 5% !important;
        transform: none !important;
        text-align: left !important;
        padding: 1rem;
        bottom: 30px !important;
        position: absolute;
    }
    
    .hero-content h1,
    .hero-content p,
    .hero-content .d-flex {
        text-align: left !important;
        justify-content: flex-start !important;
    }
    
    .nav-btn {
        width: 100%;
        justify-content: center;
        border-radius: 10px !important;
        margin: 15px 0;
    }
    
    .navbar-nav {
        width: 100%;
    }
    
    .nav-item {
        width: 100%;
        text-align: center;
    }
    
    .d-md-none .nav-link {
        color: var(--primary-color) !important;
        font-weight: 500;
        border-bottom: 1px solid #eee;
        padding: 10px 0;
    }
    
    .d-md-none .nav-link:hover,
    .d-md-none .nav-link.active {
        font-weight: 600;
        color: var(--primary-color) !important;
    }
    
    .action-buttons {
        right: 15px;
        bottom: 80px;
    }
    
    .action-btn {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
    
    /* Hero section mobile adjustments */
    section.py-0 {
        margin: 0 !important;
        padding: 0 !important;
        width: 100% !important;
    }
    
    .img-fluid.w-100.w-md-85 {
        width: 100% !important;
        max-width: 100% !important;
        margin: -80px auto 0 auto !important;
        display: block !important;
        object-fit: cover;
        height: 70vh !important;
        min-height: 500px !important;
    }
    
    section.py-0 .container-fluid {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    section.py-0 .row,
    section.py-0 .col-12 {
        width: 100% !important;}
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;t;
    
    section.py-0 .text-center {
        width: 100% !important;   text-align: center !important;
        margin: 0 !important;}
        padding: 0 !important;
        text-align: center !important;
    }hidden;
    %;
    html, body {
        overflow-x: hidden;   padding: 0;
        width: 100%;}
        margin: 0;
        padding: 0;s/konten1.png"] {
    }
    
    section.py-0 img[src="../img/konten1.png"] {uto !important;
        width: 100% !important;
        max-width: 100% !important;ortant;
        margin: -80px auto 0 auto !important;
        padding: 0 !important;
        display: block !important;
        text-align: center;   object-fit: cover !important;
        height: 70vh !important;}
        min-height: 500px !important;
        object-fit: cover !important;
    }
    olute"][class*="bottom-0"][class*="start-50"][class*="translate-middle-x"][class*="hero-content"] {
    section.py-0 div.position-absolute.bottom-0.start-50.translate-middle-x.hero-content,
    .position-absolute.bottom-0.start-50.translate-middle-x.p-3.mb-2.text-start.hero-content,
    div[class*="position-absolute"][class*="bottom-0"][class*="start-50"][class*="translate-middle-x"][class*="hero-content"] {
        left: 8% !important;   justify-content: flex-start !important;
        transform: none !important;}
        text-align: left !important;
        justify-content: flex-start !important; span,
    }
    
    .hero-content h1 span,
    .hero-content p,   justify-content: flex-start !important;
    .hero-content div {   }
        text-align: left !important;}
        justify-content: flex-start !important;
    }
}s/konten1.png"] {

@media (max-width: 576px) {
    section.py-0 img[src="../img/konten1.png"] {uto !important;
        width: 100% !important;
        max-width: 100% !important;ortant;
        margin: -80px auto 0 auto !important;
        padding: 0 !important;
        display: block !important;
        text-align: center;   object-fit: cover !important;
        height: 70vh !important;}
        min-height: 500px !important;
        object-fit: cover !important;
    }
    olute"][class*="bottom-0"][class*="start-50"][class*="translate-middle-x"][class*="hero-content"] {
    section.py-0 div.position-absolute.bottom-0.start-50.translate-middle-x.hero-content,
    .position-absolute.bottom-0.start-50.translate-middle-x.p-3.mb-2.text-start.hero-content,
    div[class*="position-absolute"][class*="bottom-0"][class*="start-50"][class*="translate-middle-x"][class*="hero-content"] {
        left: 8% !important;   justify-content: flex-start !important;
        transform: none !important;}
        text-align: left !important;
        justify-content: flex-start !important; span,
    }
    
    .hero-content h1 span,
    .hero-content p,   justify-content: flex-start !important;
    .hero-content div {   }
        text-align: left !important;}
        justify-content: flex-start !important;
    }
}) {
 adjustments for iPhone X */
/* iPhone X and similar devices (375px width) */
@media (max-width: 414px) and (min-width: 360px) {340px;
    /* Hero section adjustments for iPhone X */
    .hero-content {
        max-width: 340px;portant;
        width: 85%;   padding: 1.2rem;
        left: 7% !important;}
        bottom: 25px !important;
        padding: 1.2rem;
    }   font-size: 1.8rem !important;
    }
    .hero-content h1 {
        font-size: 1.8rem !important;
    }   font-size: 0.95rem !important;
       }
    .hero-content p {}
        font-size: 0.95rem !important;
    }768px) {
}
   left: 25% !important;
@media (min-width: 768px) {   }




}    }        left: 25% !important;    .hero-content {}