/* 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;
}

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

/* 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; 
}

/* Business Units Section */
.business-units-section {
    padding: 60px 0;
}

.section-header .subtitle {
    color: #222222;
    font-family: 'Montserrat', sans-serif;
    font-weight: 200;
    margin-bottom: 0.5rem;
    text-align: left;
}

.section-header .title {
    color: #222222;
    font-family: 'Montserrat', sans-serif;
    font-weight: 200;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-align: left;
}

.section-header-1 .title {
    color: #4F81BD;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    text-align: left;
}


.section-header-1 .subtitle {
    color: #4F81BD;
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    font-size: 2rem;
    margin-bottom: 0.5rem;
    text-align: left;
}



.unit-card {
    margin-bottom: 60px;
}

.unit-image-container {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

.unit-image {
    width: 100%;
    /* height: 400px; */
    object-fit: cover;
}

.unit-info-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    padding: 20px 30px;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    width: 100%;
}

.unit-title {
    color: #fff;
    font-family: 'Noto Sans', sans-serif;
    font-weight: 400;
    font-size: 1.2rem;
    margin-bottom: 0;
}

.unit-name {
    color: #fff;
    font-family: 'Noto Sans', sans-serif;
    font-weight: 700;
    font-size: 2rem;
    margin-bottom: 0;
}

.unit-description {
    padding: 0 10px;
}

.unit-description p {
    color: #444;
    line-height: 1.8;
    text-align: justify;
}


.feature-card {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border: 1px solid #e0e0e0;
    padding: 25px;
    height: 100%;
    transition: all 0.3s ease;
    position: relative;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    border-color: #d0d0d0;
}

.feature-image {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
}

.feature-icon {
    background-color: #21568E;
    color: white;
    width: 70px;
    height: 70px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}

.feature-icon i {
    font-size: 2rem;
}

.feature-title {
    color: #254061;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 10px;
    font-family: 'Montserrat', sans-serif;
}

.feature-text {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.feature-link {
    color: #4169BE;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    display: inline-block;
    transition: all 0.3s ease;
}

.feature-link:hover {
    color: #254061;
    text-decoration: none;
    transform: translateX(5px);
}

/* Circular image container for features */
.circular-image-container {
    width: 100%;
    height: 0;
    padding-bottom: 100%; /* Creates a perfect square */
    position: relative;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.circular-image-container .feature-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

/* Responsive adjustments for Business Units Section */
@media (max-width: 992px) {
    .section-header .title {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    .business-units-section {
        padding: 40px 0;
    }

    .section-header .title {
        font-size: 2rem;
    }

    .unit-image {
        height: 350px;
    }
}

@media (max-width: 576px) {
    .business-units-section {
        padding: 30px 15px;
    }

    .section-header .title {
        font-size: 1.8rem;
    }

    .unit-image {
        height: 280px;
    }

    .unit-info-overlay {
        padding: 15px 20px;
    }

    .unit-name {
        font-size: 1.7rem;
    }
}

/* 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;
    }
    
    section.py-0 .text-center {
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        text-align: center !important;
    }
    
    html, body {
        overflow-x: hidden;
        width: 100%;
        margin: 0;
        padding: 0;
    }
    
    section.py-0 img[src="../img/konten1.png"] {
        width: 100% !important;
        max-width: 100% !important;
        margin: -80px auto 0 auto !important;
        padding: 0 !important;
        display: block !important;
        text-align: center;
        height: 70vh !important;
        min-height: 500px !important;
        object-fit: cover !important;
    }
    
    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;
        transform: none !important;
        text-align: left !important;
        justify-content: flex-start !important;
    }
    
    .hero-content h1 span,
    .hero-content p,
    .hero-content div {
        text-align: left !important;
        justify-content: flex-start !important;
    }
}

@media (max-width: 576px) {
    section.py-0 img[src="../img/konten1.png"] {
        width: 100% !important;
        max-width: 100% !important;
        margin: -80px auto 0 auto !important;
        padding: 0 !important;
        display: block !important;
        text-align: center;
        height: 70vh !important;
        min-height: 500px !important;
        object-fit: cover !important;
    }
    
    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;
        transform: none !important;
        text-align: left !important;
        justify-content: flex-start !important;
    }
    
    .hero-content h1 span,
    .hero-content p,
    .hero-content div {
        text-align: left !important;
        justify-content: flex-start !important;
    }
}

/* iPhone X and similar devices (375px width) */
@media (max-width: 414px) and (min-width: 360px) {
    /* Hero section adjustments for iPhone X */
    .hero-content {
        max-width: 340px;
        width: 85%;
        left: 7% !important;
        bottom: 25px !important;
        padding: 1.2rem;
    }
    
    .hero-content h1 {
        font-size: 1.8rem !important;
    }
    
    .hero-content p {
        font-size: 0.95rem !important;
    }
}

@media (min-width: 768px) {
    .hero-content {
        left: 25% !important;
    }
}

/* Responsive adjustments for Features Section */
@media (max-width: 992px) {
    .circular-image-container {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .feature-icon {
        width: 60px;
        height: 60px;
    }
    
    .feature-icon i {
        font-size: 1.7rem;
    }
}

@media (max-width: 576px) {
    .feature-icon {
        width: 50px;
        height: 50px;
    }
    
    .feature-icon i {
        font-size: 1.5rem;
    }
}