@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;700&display=swap');

/* Reset and Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    background-color: #f9f9f9;
    color: #333;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: auto;
    overflow: hidden;
}
@media screen and (max-width: 1240px) {
    .container {
    padding-left: 20px;
    padding-right: 20px;
    }
}

/* Header and Navigation */
header {
    background: rgba(0, 123, 255, 0.9);
    color: #ffffff;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

header a {
    color: #ffffff;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 16px;
    transition: color 0.3s ease;
}

header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header .logo {
    font-size: 1.7rem;
    font-weight: 700;
}

header nav ul {
    padding: 0;
    list-style: none;
}

/* Hamburger Menu Toggle */
.menu-toggle {
    display: none; /* Sembunyikan di layar besar */
}

header nav ul {
    padding: 0;
    list-style: none;
}

header nav ul li {
    display: inline;
    margin-left: 25px;
}

header nav ul li a {
    padding-bottom: 5px;
    border-bottom: 2px solid transparent;
}

header nav ul li a:hover {
    color: #f0f0f0;
    border-bottom: 2px solid #f0f0f0;
}

/* Responsive Navigation */
@media screen and (max-width: 768px) {
    .menu-toggle {
        display: block; /* Tampilkan tombol hamburger */
        background: none;
        border: none;
        color: white;
        font-size: 28px;
        cursor: pointer;
    }

    header nav .nav-links {
        display: flex;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 100%; /* Posisi tepat di bawah header */
        left: 0;
        background: rgba(0, 110, 230, 0.98);
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
        max-height: 0;
        opacity: 0;
        overflow: hidden;
        transition: max-height 0.4s ease-in-out, opacity 0.4s ease-in-out;
    }

    header nav .nav-links.show {
        max-height: 500px;
        opacity: 1;
    }

    header nav ul li {
        display: block;
        margin: 0;
        text-align: center;
    }

    header nav ul li a {
        display: block;
        padding: 1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    }

    header nav ul li:last-child a {
        border-bottom: none;
    }

    header nav ul li a:hover {
        background: #0056b3;
        border-bottom: 1px solid transparent;
    }
}

/* Main Content Area */
main {
    flex: 1;
    padding: 40px 0;
}

main h1 {
    color: #0056b3;
    margin-bottom: 25px;
    text-align: center;
    font-size: 2.2rem;
    font-weight: 600;
}

main p {
    font-size: 1.1rem;
    line-height: 1.8;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 20px auto;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('images/hero.jpg') no-repeat center center/cover;
    color: #fff;
    padding: 100px 0;
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 15px;
    color: #fff;
    font-weight: 700;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 30px;
    font-weight: 300;
}

.btn {
    display: inline-block;
    background: #007BFF;
    color: #fff;
    padding: 12px 25px;
    text-decoration: none;
    border-radius: 50px;
    transition: background 0.3s ease, transform 0.3s ease;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(0, 123, 255, 0.3);
}

.btn:hover {
    background: #0056b3;
    transform: translateY(-3px);
}

/* Footer */
footer {
    background: #222;
    color: #fff;
    text-align: center;
    padding: 1.5rem 0;
}

/* Utility classes */
.text-center {
    text-align: center;
}

/* Specific Page Styles */
/* About Us Page */
.about-us-content {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-top: 3rem;
    margin-bottom: 4rem;
}
.about-us-content img {
    max-width: 350px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}
.about-us-text {
    flex: 1;
    text-align: left;
}
.about-us-text p {
    text-align: left;
    max-width: none;
}

@media screen and (max-width: 768px) {
    .about-us-content {
        flex-direction: column;
    }
    .about-us-text {
        text-align: center;
    }
    .about-us-text p {
        text-align: center;
    }
}

/* Team Section */
.team-section {
    padding: 40px 0;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.team-member {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    text-align: center;
    padding: 2rem 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-member:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.12);
}

.team-member img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1rem;
    border: 2px solid #007BFF;
}

.team-member h3 {
    font-size: 1.4rem;
    color: #0056b3;
    margin-bottom: 0.5rem;
}

.team-member p {
    font-size: 1rem;
    color: #555;
    font-weight: 600;
}


/* Services Page */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}
.service-card {
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    opacity: 0;
    animation: service-card-fade-in 0.5s forwards;
    animation-delay: calc(0.1s * var(--i));
}

.service-card h3{
    text-align: center;
}

.service-icon{
    display: flex;
    justify-content: center;
    align-items: center;
}

.service-icon svg{
    width:48px;
    height:48px;
    color:#1e88e5;
    margin-bottom:12px;
}


@keyframes service-card-fade-in {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.12);
}
.service-card h3 {
    color: #0056b3;
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

/* Contact Page */
.contact-form {
    background: #fff;
    padding: 2.5rem;
    margin-top: 3rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}
.form-group {
    margin-bottom: 1.5rem;
}
.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}
.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    transition: border-color 0.3s ease;
    font-family: 'Poppins', sans-serif;
    color: #444444;
}
.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #007BFF;
}
.form-group input[type="submit"] {
    background-color: #007BFF;
    color: white;
    border: 0;
    cursor: pointer;
    padding: 15px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 50px;
}
.form-group input[type="submit"]:hover {
    background-color: #0056b3;
}
.contact-info {
    margin-top: 3rem;
    text-align: center;
}
.contact-info h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #0056b3;
}

/* Content Section & Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.content-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #eee;
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.content-card {
    background: #fff;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
}

.content-card:nth-child(1) { animation-delay: 0.2s; }
.content-card:nth-child(2) { animation-delay: 0.4s; }
.content-card:nth-child(3) { animation-delay: 0.6s; }

.content-card h3 {
    text-align: center;
}
.content-card img {
    width: 100%;
    margin-bottom: 1rem;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    margin-bottom: 1rem;
}
.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Products Page Styles */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    margin-top: 3rem;
    padding-bottom: 2rem;
}

.product-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    opacity: 0;
    animation: fadeInUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    animation-delay: var(--delay, 0s);
    border: 1px solid #f0f0f0;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 123, 255, 0.15);
    border-color: #cce5ff;
}

.product-thumb {
    height: 200px;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid #eee;
    overflow: hidden;
}

.product-thumb svg {
    width: 80px;
    height: 80px;
    color: #adb5bd;
    transition: transform 0.5s ease, color 0.3s ease;
}

.product-card:hover .product-thumb svg {
    transform: scale(1.1) rotate(5deg);
    color: #007BFF;
}

.product-details {
    padding: 1.5rem;
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-details h3 {
    color: #333;
    margin-bottom: 0.8rem;
    font-size: 1.25rem;
}

.product-details p {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.btn-product {
    display: inline-block;
    padding: 10px 20px;
    background-color: transparent;
    color: #007BFF;
    border: 2px solid #007BFF;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    align-self: center;
    margin-top: auto;
}

.btn-product:hover {
    background-color: #007BFF;
    color: #fff;
    box-shadow: 0 4px 10px rgba(0, 123, 255, 0.3);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.5);
    align-items: center;
    justify-content: center;
}

.modal.show {
    display: flex;
    animation: fadeIn 0.3s;
}

.modal-content {
    background-color: #fefefe;
    margin: auto;
    padding: 2rem;
    border: 1px solid #888;
    width: 90%;
    max-width: 400px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    text-align: center;
    position: relative;
    animation: slideIn 0.3s;
}

.modal-close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    top: 10px;
    right: 20px;
    cursor: pointer;
}

.modal-close:hover,
.modal-close:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}

.modal-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.modal-success .modal-icon { color: #28a745; }
.modal-error .modal-icon { color: #dc3545; }

@keyframes slideIn {
    from {transform: translateY(-50px); opacity: 0;}
    to {transform: translateY(0); opacity: 1;}
}

@keyframes fadeIn {
    from {opacity: 0;}
    to {opacity: 1;}
}

/* Checkbox Styles for Polling */
.checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 12px;
    margin-top: 0.5rem;
    background: #f8f9fa;
    padding: 1.2rem;
    border-radius: 8px;
    border: 1px solid #eee;
}

.checkbox-item {
    display: flex;
    align-items: flex-start;
}

.checkbox-item input[type="checkbox"] {
    width: auto;
    margin-right: 10px;
    margin-top: 5px;
    cursor: pointer;
}

.checkbox-item label {
    margin-bottom: 0;
    font-weight: 400;
    cursor: pointer;
    line-height: 1.4;
    font-size: 0.95rem;
}

/* Social Share Tool */
.social-share-container {
    background-color: #f8f9fa;
    padding: 20px 0;
    border-top: 1px solid #eee;
}

.social-share-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #ddd;
    color: #fff;
    transition: all 0.3s ease;
    text-decoration: none;
}

.share-btn svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
}

.share-btn:hover {
    transform: translateY(-3px);
}

.share-btn.facebook { background-color: #3b5998; }
.share-btn.twitter { background-color: #1da1f2; }
.share-btn.linkedin { background-color: #0077b5; }
.share-btn.whatsapp { background-color: #25d366; }

.share-btn.facebook:hover { background-color: #2d4373; }
.share-btn.twitter:hover { background-color: #0c85d0; }
.share-btn.linkedin:hover { background-color: #005582; }
.share-btn.whatsapp:hover { background-color: #128c7e; }

/* 404 Page Animation */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

.error-404 {
    font-size: 8rem;
    font-weight: 800;
    color: #007BFF;
    margin: 0;
    padding: 10px 0;
    text-align: center;
    line-height: 1;
    animation: float 3s ease-in-out infinite;
    text-shadow: 0 10px 30px rgba(0, 123, 255, 0.3);
}