@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

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

body {
    background: 
        radial-gradient(circle at 20% 80%, rgba(0, 0, 0, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(0, 0, 0, 0.02) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(0, 0, 0, 0.02) 0%, transparent 50%),
        linear-gradient(135deg, #f8f9fa 0%, #e9ecef 25%, #dee2e6 50%, #ced4da 75%, #adb5bd 100%);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="20" cy="20" r="1" fill="%23000000" opacity="0.08"/><circle cx="80" cy="80" r="1" fill="%23000000" opacity="0.06"/><circle cx="40" cy="60" r="1" fill="%23000000" opacity="0.04"/><circle cx="60" cy="40" r="1" fill="%23000000" opacity="0.05"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>') repeat;
    pointer-events: none;
    z-index: 1;
}

body::after {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        conic-gradient(from 0deg at 50% 50%, transparent 0deg, rgba(0, 0, 0, 0.03) 60deg, transparent 120deg),
        conic-gradient(from 120deg at 30% 70%, transparent 0deg, rgba(0, 0, 0, 0.02) 60deg, transparent 120deg),
        conic-gradient(from 240deg at 70% 30%, transparent 0deg, rgba(0, 0, 0, 0.015) 60deg, transparent 120deg);
    animation: rotate 30s linear infinite;
    pointer-events: none;
    z-index: 1;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* navbar */
nav {
    display: flex;
    background-color: transparent;
    align-items: center;
    justify-content: space-between;
    padding: 1.6rem 10%;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 999;
    background-color: rgba(0, 0, 0, 0.95);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

nav ul {
    display: flex;
    list-style: none;
    align-items: center;
    padding: 1rem;
    gap: 2rem;
}

nav ul li a {
    color: #eaeaea;
    text-decoration: none;
    font-family: "Poppins", sans-serif;
    font-weight: 600;
    font-size: 20px;
    padding: 8px 0;
    transition: all 300ms ease-in-out;
}

nav ul li a:hover, nav ul li a.active{
    color: #354AA0;
    background-color: transparent;
    border-bottom: 3px solid #4A90E2;
    border-radius: 15px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo img {
    height: 90px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.logo img:hover {
    transform: scale(1.1);
}

.menu-icon{
    font-size: 35px;
    display: none;
    align-items: center;
    color: #354AA0;
}

.menu-icon:hover {
    color: #4A90E2;
}

/* main */
main {
    padding-top: 120px;
    min-height: 100vh;
}

/* Produk Section */
.produk {
    background: transparent;
    text-align: center;
    padding: 60px 5%;
    min-height: calc(100vh - 120px);
}

.produk .judul-pd {
    font-size: 36px;
    font-weight: bold;
    color: #1D4F9C;
    position: relative;
    margin-bottom: 50px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.produk .judul-pd::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, #354AA0, #4A90E2);
    border-radius: 2px;
}

.container-produk {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    justify-items: center;
}

.card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background-color: #ffffff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    border: 2px solid transparent;
    position: relative;
    width: 100%;
    max-width: 350px;
    min-height: 500px;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #354AA0, #4A90E2, #FFD700);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card:hover::before {
    opacity: 1;
}

.card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border-color: #4A90E2;
}

.card img {
    width: 100%;
    height: 280px;
    object-fit: contain;
    object-position: center;
    background-color: #f8f9fa;
    transition: transform 0.3s ease;
    padding: 10px;
}

.card:hover img {
    transform: scale(1.05);
}

.produk-card {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding: 25px;
    text-align: center;
    flex-grow: 1;
}

.produk-card .title-produk {
    font-size: 20px;
    color: #1a202c;
    font-weight: 600;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.card:hover .title-produk {
    color: #354AA0;
    transform: translateY(-2px);
}

.color-bar {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 15px;
    padding: 10px;
    background-color: #f8fafc;
    border-radius: 25px;
}

.color-option {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
    position: relative;
}

.color-option::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 0;
    height: 0;
    background-color: white;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.color-option:hover {
    transform: scale(1.3);
    border-color: #354AA0;
    box-shadow: 0 4px 12px rgba(53, 74, 160, 0.3);
}

.color-option:hover::after {
    width: 6px;
    height: 6px;
}

.color-option1 {
    background-color: #1a202c;
}

.color-option2 {
    background-color: #2d3748;
}

.color-option3 {
    background-color: #f7fafc;
    border: 2px solid #e2e8f0;
}

.color-option4 {
    background-color: #38a169;
}

.color-option5 {
    background-color: #718096;
}

.produk-card .ukuran-produk {
    font-size: 14px;
    color: #718096;
    margin-bottom: 10px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.produk-card .harga-produk {
    font-size: 18px;
    color: #e53e3e;
    font-weight: 700;
    margin-bottom: 20px;
}

.produk-card .btn {
    display: inline-block;
    padding: 12px 30px;
    background: linear-gradient(135deg, #354AA0, #4A90E2);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.produk-card .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    transition: left 0.3s ease;
    z-index: -1;
}

.produk-card .btn:hover::before {
    left: 0;
}

.produk-card .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(53, 74, 160, 0.3);
    color: #1a202c;
}

/* Responsive Design */
@media only screen and (max-width: 768px) {
    nav {
        flex-wrap: wrap;
        padding: 1.4rem 5%;
    }

    nav ul {
        flex-direction: column;
        width: 100%;
    }

    nav ul li a {
        font-size: 18px;
    }

    nav ul.hidden {
        display: none;
    }

    .menu-icon {
        display: flex;
        align-items: center;
    }

    .produk {
        padding: 40px 3%;
    }

    .produk .judul-pd {
        font-size: 28px;
        margin-bottom: 30px;
    }

    .container-produk {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 20px;
        padding: 15px;
        justify-items: center;
    }

    .card {
        margin-bottom: 20px;
        max-width: 320px;
        min-height: 480px;
    }

    .card img {
        height: 250px;
        object-fit: contain;
        padding: 8px;
    }

    .produk-card {
        padding: 20px;
    }

    .produk-card .title-produk {
        font-size: 18px;
    }

    .produk-card .btn {
        padding: 10px 25px;
        font-size: 14px;
    }
}

@media only screen and (max-width: 480px) {
    .container-produk {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 10px;
    }

    .produk .judul-pd {
        font-size: 24px;
    }

    .card {
        max-width: 100%;
        min-height: 450px;
    }

    .card img {
        height: 220px;
        padding: 5px;
    }

    .produk-card {
        padding: 15px;
    }

    .produk-card .title-produk {
        font-size: 18px;
    }

    .produk-card .btn {
        padding: 10px 20px;
        font-size: 14px;
    }
}

/* footer */
footer {
    position: relative;
    width: 100%;
    bottom: 0;
    left: 0;
    background-color: #333333;
    box-shadow: 0 16px 70px -8px rgba(0, 0, 0, 0.25);
    border-radius: 20px 20px 0 0;
    transition: background 0.3s linear;
}

.container-footer {
    max-width: 1240px;
    padding: 30px 40px;
    margin: auto;
}

.container-footer li {
    list-style: none;
}

.container-footer li a {
    text-decoration: none;
}

.container-footer .content-footer {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 30px;
}

.content-footer .fabout {
    max-width: 350px;
    flex-basis: 30%;
    min-width: 280px;
    margin-left: 0; 
    padding-left: 0;
    position: relative;
}

.fabout .logo-fabout {
    display: flex;
    align-items: center;
    justify-content: center; 
    position: relative;
    width: 100%;
}

.fabout .logo-fabout img {
    height: 50px;
}

.fabout .logo-fabout .logo-nama {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0.5rem;
    color: #eaeaea;
    position: relative;
    flex-grow: 1;
    margin-bottom: 5px;
}

.fabout .logo-fabout::before {
    content: '';
    position: absolute;
    bottom: 1px; 
    left: 0;
    width: 130px;
    height: 2px;
    background: #1D4F9C;
}

.fabout .logo-about {
    max-width: 320px;
    margin-bottom: 1.25rem;
}

.fabout .logo-about p{
    color: #eaeaea;
    font-weight: 400;
    line-height: 28px;
    max-width: 350px;
    margin-top: 10px;
}

.fabout .social-about a {
    display: inline-block; 
    margin: 0; 
    padding: 0; 
    border: none; 
    box-sizing: border-box; 
    font-size: 24px; 
    color: #eaeaea;
    margin-right: 22px;
}

.fabout .social-about a:hover {
    color: #4A90E2;
}

.content-footer .flink {
    display: flex;
    flex-wrap: wrap;
    padding-top: 0.25rem;
}

li.link-name {
    color: #eaeaea;
    font-weight: 600;
    font-size: 1.2rem;
    position: relative;
}

li.link-name::before {
    content: '';
    position: absolute;
    bottom: -5px; 
    left: 0;
    width: 65px; 
    height: 3px;
    background: #1D4F9C; 
}

.flink .link-header li a {
    color: #eaeaea;
    padding-bottom: 1px;
    font-weight: 400;
}

.flink .link-header li a:hover {
    color: #4A90E2;
}

.flink .link-header li {
    margin-bottom: 10px;
}

.fkontak .fkontak-header {
    margin-bottom: 5px; 
}

.fkontak .kontak-name {
    color: #eaeaea;
    font-weight: 600;
    font-size: 1.2rem; 
    position: relative;
}

.fkontak .kontak-name::before {
    content: '';
    position: absolute;
    bottom: -5px; 
    left: 0;
    width: 50px; 
    height: 2px;
    background: #1D4F9C; 
}

.fkontak .fkontak-container {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
}

.fkontak-container .fkontak-col {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.fkontak .fkontak-item p{
    color: #eaeaea;
    font-weight: 600;
    margin-bottom: 5px; 
    display: flex;       
    align-items: center; 
    margin-top: 8px;
}

.fkontak .fkontak-item p .fas {
    margin-right: 8px;
    color: #4A90E2;
}

.fkontak .fkontak-item span {
    color: #eaeaea;
    line-height: 1.5;
    font-weight: 400;
}

.fkontak .fkontak-item span a {
    color: #eaeaea; 
    text-decoration: none; 
}

.content-footer hr {
    height: 1px;
    border: none;
    background-color: black;
    margin-bottom: 1rem;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
    flex-wrap: wrap;
    text-align: center;
}

.footer-bottom .bottom-cr {
    color: #eaeaea;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-top: 20px;
}

.footer-bottom .bottom-cr span{
    margin-left: 8px;
    font-weight: 400;
    letter-spacing: 0.135rem;
}

@media (max-width: 960px) {
    .container-footer .content-footer {
        flex-direction: column; 
        align-items: flex-start; 
        gap: 10px;
        flex-wrap: nowrap; 
    }

    .content-footer .fabout,
    .content-footer .flink,
    .fkontak {
        width: 100%;
        text-align: left;
        padding: 0;
        box-sizing: border-box;
    }
}