* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f8f6f1;
    color: #333;
    padding-top: 100px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideInFromTop {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideInFromBottom {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideInFromLeft {
    from {
        transform: translateX(-100px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInFromRight {
    from {
        transform: translateX(100px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes scale {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Header & Navigation */
header {
    background-color: #1a1a1a;
    padding: 20px 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    animation: slideInFromTop 0.6s ease-out;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.nav-logo img {
    height: 60px;
}

.logo-img {
    height: 60px;
    margin-right: 0px;
}

.nav-links {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links li {
    margin-left: 40px;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s;
    padding: 10px 0;
    display: block;
}

.nav-links a:hover {
    color: rgb(190, 20, 20);
}

.nav-links a.active {
    color: rgb(190, 20, 20);
    font-weight: bold;
}

/* Hamburger Menu */
.hamburger-menu {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
    position: relative;
    background: transparent;
    border: none;
    min-width: 44px; /* Ensure sufficient touch target size */
    min-height: 44px; /* Ensure sufficient touch target size */
}

.hamburger-menu .bar {
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 4px 0;
    transition: 0.4s;
    border-radius: 2px;
}

.hamburger-menu.active .bar:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}
.hamburger-menu.active .bar:nth-child(2) {
    opacity: 0;
}
.hamburger-menu.active .bar:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Hero Section */
.hero {
    min-height: calc(100vh - 100px);
    background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.3)), url('foto satu.jpeg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    animation: fadeIn 1.2s ease-out;
}

.hero-content {
    max-width: 800px;
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.2;
    animation: slideInFromBottom 1s ease-out 0.3s both;
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 30px;
    line-height: 1.6;
    animation: slideInFromBottom 1s ease-out 0.6s both;
}

.hero-btn {
    display: inline-block;
    background-color: rgb(164, 14, 14);
    color: white;
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1rem;
    transition: background-color 0.3s;
    animation: slideInFromBottom 1s ease-out 0.9s both;
}

.hero-btn:hover {
    background-color: rgb(164, 14, 14);
}

/* About Section */
.about {
    padding: 80px 0;
    background-color: white;
    /* Removed opacity: 0; and animation-play-state: paused; */
    animation: fadeIn 1s ease-out forwards; /* Animation still runs on load */
}

.about-container {
    display: flex;
    align-items: center;
    gap: 50px;
}

.about-content {
    flex: 1;
    /* Removed animation-play-state: paused; */
    animation: slideInFromLeft 1s ease-out forwards; /* Animation still runs on load */
}

.about-image {
    flex: 1;
    /* Removed animation-play-state: paused; */
    animation: slideInFromRight 1s ease-out forwards; /* Animation still runs on load */
}

.about-image img {
    width: 100%;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-radius: 50%;
}

.section-title {
    font-size: 2rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    width: 250px;
    background-color: rgb(164, 14, 14);
}

.about-text {
    line-height: 1.8;
    margin-bottom: 25px;
    color: #555;
}

.contact-btn {
    display: inline-block;
    background-color: rgb(164, 14, 14);
    color: white;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s;
}

.contact-btn:hover {
    background-color: rgb(164, 14, 14);
}

.download-btn {
    background-color: #e67e22;
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    cursor: pointer;
}
.download-btn:hover {
    background-color: #d35400;
}

/* Features Section */
.features {
    padding: 80px 0;
    background-color: #f9f9f9;
    /* Removed animation-play-state: paused; */
    animation: fadeIn 1s ease-out forwards; /* Animation still runs on load */
}

.features-title {
    text-align: center;
    margin-bottom: 50px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-card {
    background-color: white;
    padding: 30px;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.3s;
    /* Removed opacity: 0; and animation-play-state: paused; */
    animation: scale 0.6s ease-out forwards; /* Animation still runs on load */
    /* opacity: 0; is handled by the animation itself, no need to explicitly set it here unless you want it hidden before animation */
}

.feature-card:hover {
    transform: translateY(-10px);
}

.feature-icon {
    background-color: rgb(164, 14, 14);
    color: white;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    margin: 0 auto 20px;
    font-size: 2rem;
}

.feature-title {
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.feature-text {
    color: #666;
    line-height: 1.6;
}

/* Products Section */
.products {
    padding: 80px 0;
    background-color: white;
}

.products-title {
    text-align: center;
    margin-bottom: 50px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.product-card {
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s;
}

.product-card:hover {
    transform: translateY(-10px);
}

.product-image {
    height: 200px;
    background-color: #eee;
    background-size: cover;
    background-position: center;
}

.product-info {
    padding: 20px;
    background-color: white;
}

.product-title {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.product-description {
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
}

.product-btn {
    display: inline-block;
    background-color: rgb(164, 14, 14);
    color: white;
    padding: 8px 15px;
    border-radius: 3px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: background-color 0.3s;
}

.product-btn:hover {
    background-color: rgb(164, 14, 14);
}

/* CTA Section */
.cta {
    padding: 80px 0;
    background-image: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)), url('https://via.placeholder.com/1500x500/333/666?text=Metal+Working');
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
}

.cta-title {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.cta-text {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Footer */
footer {
    background-color: #222;
    color: #aaa;
    padding: 50px 0 20px;
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-col h3 {
    font-size: 1.2rem;
    color: white;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    width: 30px;
    background-color: rgb(164, 14, 14);
}

.footer-col p,
.footer-col a {
    display: block;
    color: #aaa;
    margin-bottom: 10px;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-col a:hover {
    color: rgb(164, 14, 14);
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #444;
    font-size: 0.9rem;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    body {
        padding-top: 80px;
    }

    header {
        padding: 15px 0;
    }

    .nav-logo img,
    .logo-img {
        height: 50px;
    }

    .hamburger-menu {
        display: flex; /* Make the hamburger visible */
    }

    .nav-links {
        display: none; /* Hide navigation links by default on small screens */
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #1a1a1a;
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
        z-index: 999;
        opacity: 0;
        transform: translateY(-10px);
        transition: all 0.3s ease;
    }

     .nav-links.active {
        display: flex; /* Show navigation links when active */
        opacity: 1;
        transform: translateY(0);
    }

    .nav-links li {
        margin-left: 0;
        width: 100%;
        text-align: center;
    }

    .nav-links li a {
        padding: 15px 20px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    .nav-links li:last-child a {
        border-bottom: none;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .about-container {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }

    .section-title::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .about-image img {
        width: 80%;
        max-width: 300px;
    }

    .features-grid,
    .products-grid,
    .footer-container {
        grid-template-columns: 1fr;
    }

    .feature-card,
    .product-card,
    .footer-col {
        margin-bottom: 20px;
    }

    .feature-icon {
        width: 60px;
        height: 60px;
        font-size: 1.8rem;
    }

    .cta-title {
        font-size: 1.8rem;
    }

    .cta-text {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    body {
        padding-top: 70px;
    }

    header {
        padding: 10px 0;
    }

    .nav-logo img,
    .logo-img {
        height: 40px;
    }

    .nav-links {
        top: 60px;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .hero-description {
        font-size: 0.9rem;
    }

    .hero-btn {
        padding: 12px 25px;
        font-size: 0.9rem;
    }

    .container {
        padding: 0 15px;
    }
}