/* Global Styles */
:root {
    --primary-color: #3f51b5; /* Updated to a modern blue */
    --primary-dark: #303f9f;
    --primary-light: #7986cb;
    --secondary-color: #ff4081; /* A vibrant pink for accents */
    --light-color: #f8f9fa;
    --dark-color: #263238; /* Darker for better contrast */
    --gray-color: #90a4ae; /* Softer gray */
    --section-padding: 5rem 0;
    --gradient-primary: linear-gradient(135deg, var(--primary-color), var(--primary-dark)); /* Gradient for modern look */
}

body {
    font-family: 'Roboto', sans-serif;
    color: var(--dark-color);
    overflow-x: hidden;
    line-height: 1.6;
}
/* logo utm */
img.logo {
    width: 100px; /* Adjust as needed */
    height: auto;
}

/* Header & Navigation */
.navbar {
    height: 80px; /* Ubah nilai ikut keperluan */
}


.navbar {
    background: var(--gradient-primary); /* Gradient background */
    padding: 1rem 0;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    color: white !important;
}

.logo {
    margin-right: 10px;
}

.nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: all 0.3s ease;
    color: rgba(255, 255, 255, 0.8) !important;
}

.nav-link:hover {
    color: white !important;
    transform: translateY(-2px);
}

/* Breadcrumb Styles */
.breadcrumb-container {
    background-color: var(--light-color);
    padding: 0.75rem 0;
    border-bottom: 1px solid #e0e0e0;
}

.breadcrumb {
    margin-bottom: 0;
}

.breadcrumb-item a {
    color: var(--primary-color);
    text-decoration: none;
}

.breadcrumb-item.active {
    color: var(--gray-color);
}

/* Section Styles */
.section-padding {
    padding: var(--section-padding);
}

.section-header {
    margin-bottom: 3rem;
    text-align: center;
}

.section-header h2 {
    font-weight: 700;
    position: relative;
    margin-bottom: 1rem;
    font-size: 2.5rem;
    color: var(--primary-dark);
}

.divider {
    width: 80px;
    height: 4px;
    background: var(--gradient-primary); /* Gradient divider */
    margin: 0 auto 1.5rem;
}

/* Home Section */
#home {
    padding-top: 6rem;
    padding-bottom: 6rem;
    background: var(--light-color);
}

#home h1 {
    color: var(--primary-dark);
    margin-bottom: 1.5rem;
    font-size: 3rem;
}

/* About Section */
.icon-box {
    width: 80px;
    height: 80px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--gradient-primary); /* Gradient background */
    color: white;
    font-size: 1.5rem;
}

/* Methodology Section */
.methodology-content h3 {
    color: var(--primary-dark);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.methodology-img img {
    width: 80%; /* Kurangkan saiz gambar kepada 80% daripada lebar kontena */
    max-width: 300px; /* Hadkan saiz maksimum gambar */
    height: auto; /* Pastikan aspek ratio dikekalkan */
    border: 6px solid white;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    border-radius: 0.5rem;
    display: block;
    margin: 0 auto; /* Pusatkan gambar */
}


/* Analysis Section */
.chart-container {
    height: 300px;
    position: relative;
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Maps Section */
#biomassMap {
    border-radius: 0.5rem;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.legend-color {
    width: 20px;
    height: 20px;
    border-radius: 4px;
}

/* Team Section */
.team-member {
    transition: all 0.3s ease;
    background: white;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
}

/* Hover Effect */
.team-member:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* Image Container */
.member-img {
    width: 100%;
    height: 250px; /* Tetapkan ketinggian yang sama untuk semua gambar */
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

/* Image Styling */
.member-img img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Pastikan gambar memenuhi ruang tanpa herotan */
    transition: all 0.3s ease;
    border: 5px solid white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Hover Effect on Image */
.team-member:hover .member-img img {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}


.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(63, 81, 181, 0.1);
    color: var(--primary-color);
    margin: 0 5px;
    transition: all 0.3s ease;
}

.social-icon:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

/* Calculator Section */
#calculator .card {
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.result-card {
    transition: all 0.3s ease;
    background: white;
}

.result-card:hover {
    background-color: #f0f7f0;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Footer Styles */
footer {
    background: var(--dark-color);
    color: white;
}

.footer-link {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-link:hover {
    color: white;
    text-decoration: underline;
    padding-left: 5px;
}

.social-icon-footer {
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
}

.social-icon-footer:hover {
    color: white;
}

/* Button Styles */
.btn-primary {
    background: var(--gradient-primary); /* Gradient button */
    border: none;
    color: white;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(63, 81, 181, 0.3);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    background: var(--gradient-primary);
    border-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(63, 81, 181, 0.3);
}

/* Responsive Styles */
@media (max-width: 991px) {
    #home {
        text-align: center;
        padding-top: 4rem;
        padding-bottom: 4rem;
    }

    #home img {
        margin-top: 2rem;
    }

    .methodology-img {
        margin-bottom: 2rem;
    }

    .section-padding {
        padding: 4rem 0;
    }
}

@media (max-width: 767px) {
    .section-padding {
        padding: 3rem 0;
    }

    #home h1 {
        font-size: 2.5rem;
    }
}

/* Animation Styles */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* calculation formula agb */
body {
    font-family: Arial, sans-serif;
    background-color: #e8f5f0;
    margin: 0;
    padding: 20px;
    color: #333;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
}

h1 {
    text-align: center;
    color: #2c3e50;
    margin-bottom: 10px;
}

.description {
    text-align: center;
    margin-bottom: 40px;
    color: #566573;
}

.calculator-container {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.input-section, .results-section {
    background-color: white;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    flex: 1;
    min-width: 300px;
}

.section-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.section-header i {
    font-size: 24px;
    margin-right: 10px;
    color: #16a085;
}

.input-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #34495e;
}

input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
}

button {
    background-color: #16a085;
    color: white;
    border: none;
    padding: 15px;
    width: 100%;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #138a72;
}

.result-value {
    font-size: 48px;
    font-weight: bold;
    color: #16a085;
    margin: 20px 0;
}

.result-note {
    color: #7f8c8d;
    margin-bottom: 30px;
}

.about-section {
    background-color: #f1f9f7;
    padding: 20px;
    border-radius: 5px;
    margin-top: 20px;
}

.about-section h3 {
    color: #16a085;
    margin-top: 0;
}

/* Icons */
.icon {
    display: inline-block;
    width: 24px;
    height: 24px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.icon-calculator {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%2316a085' viewBox='0 0 24 24'%3E%3Cpath d='M4 2h16a2 2 0 0 1 2 2v16a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2zm0 2v16h16V4H4zm2 2h12v4H6V6zm0 6h2v2H6v-2zm4 0h2v2h-2v-2zm4 0h2v2h-2v-2zm-8 4h2v2H6v-2zm4 0h2v2h-2v-2zm4 0h2v2h-2v-2z'/%3E%3C/svg%3E");
}

.icon-info {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%2316a085' viewBox='0 0 24 24'%3E%3Cpath d='M12 2a10 10 0 1 1 0 20 10 10 0 0 1 0-20zm0 2a8 8 0 1 0 0 16 8 8 0 0 0 0-16zm0 7a1 1 0 0 1 1 1v4a1 1 0 0 1-2 0v-4a1 1 0 0 1 1-1zm0-3a1 1 0 1 1 0 2 1 1 0 0 1 0-2z'/%3E%3C/svg%3E");
}

.icon-arrow {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='white' viewBox='0 0 24 24'%3E%3Cpath d='M13.025 1l-2.847 2.828 6.176 6.176h-16.354v3.992h16.354l-6.176 6.176 2.847 2.828 10.975-11z'/%3E%3C/svg%3E");
    width: 16px;
    height: 16px;
}

/*Styling for beautiful carousel*/

    .biomass-carousel-container {
    background-color: #f8f9fa;
}

.carousel-wrapper {
    max-width: 700px;
    margin: 0 auto;
    position: relative;
}

#biomassGallery {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.carousel-card {
    position: relative;
    height: 500px;
    overflow: hidden;
}

.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.carousel-item:hover .gallery-img {
    transform: scale(1.05);
}

.img-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 25px 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.85), rgba(0,0,0,0.4), transparent);
    color: white;
}

.img-overlay h5 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.img-overlay p {
    font-size: 0.95rem;
    opacity: 0.9;
}

/* New custom navigation */
.carousel-navigation {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none; /* This allows clicks to pass through to the carousel */
}

.custom-carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 45px;
    height: 45px;
    background-color: rgba(255,255,255,0.3);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    pointer-events: auto; /* Re-enable pointer events for the buttons */
    transition: background-color 0.3s;
}

.custom-carousel-control:hover {
    background-color: rgba(255,255,255,0.5);
}

.custom-prev {
    left: 15px;
}

.custom-next {
    right: 15px;
}

.custom-indicators {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.indicator {
    width: 40px;
    height: 5px;
    background-color: rgba(0,0,0,0.2);
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background-color: #0d6efd;
    width: 50px;
}

@media (max-width: 768px) {
    .carousel-card {
        height: 300px;
    }
    
    .img-overlay h5 {
        font-size: 1.2rem;
    }
    
    .custom-carousel-control {
        width: 35px;
        height: 35px;
    }
}


/* Add this to your existing CSS file or styles.css */
@media (max-width: 991.98px) {
    .navbar-collapse {
        position: absolute;
        top: 100%; /* Letakkan di bawah navbar */
        left: 0;
        width: 100%;
        background-color: #3f51b5; /* Warna biru Bootstrap primary */
        z-index: 1050;
        transition: max-height 0.3s ease-in-out;
        max-height: 0;
        overflow: hidden;
    }

    .navbar-collapse.show {
        max-height: 300px; /* Sesuaikan tinggi mengikut keperluan */
    }

    .navbar-collapse .navbar-nav {
        flex-direction: column;
        align-items: center;
    }

    .navbar-collapse .nav-link {
        color: white;
        padding: 10px;
        text-align: center;
    }
}


