* {
    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;
}

/* Animations */
@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 scale {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}


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 {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 10px;
}

.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 {
    min-height: calc(100vh - 100px);
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('foto empat.jpeg') no-repeat center center/cover;
    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-subtitle {
    background-color: rgba(164, 14, 14, 0.7);
    border-radius: 5px;
    display: inline-block;
    padding: 10px 20px;
    font-size: 1.8rem;
    margin-bottom: 20px;
    animation: slideInFromBottom 1s ease-out 0.5s both;
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: 30px;
    line-height: 1.6;
    animation: slideInFromBottom 1s ease-out 0.6s both;
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
}


.service-description {
    padding: 60px 0;
    background-color: white;
    text-align: center;
}

.service-description p {
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
    font-size: 1.1rem;
    color: #555;
}


.service-types {
    padding: 60px 0;
    background-color: #f9f9f9;
}

.service-grid {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 20px 0;
    margin-top: 40px;
    gap: 20px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgb(164, 14, 14) #f5f5f5;
}

.service-grid::-webkit-scrollbar {
    height: 8px;
}

.service-grid::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.service-grid::-webkit-scrollbar-thumb {
    background: rgb(164, 14, 14);
    border-radius: 10px;
}

.service-card {
    flex: 0 0 280px;
    background-color: white;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    animation: scale 0.6s ease-out forwards;
}

.service-image {
    height: 200px;
    background-color: #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #999;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.service-info {
    padding: 20px;
}

.service-title {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: #333;
}

.service-text {
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
}

.section-title {
    font-size: 2rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 15px;
    text-align: center;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    height: 3px;
    width: 100px;
    background-color: rgb(164, 14, 14);
}


.benefits {
    padding: 60px 0;
    background-color: white;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.benefit-card {
    padding: 30px;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    background-color: #f9f9f9;
    transition: transform 0.3s;
}

.benefit-card:hover {
    transform: translateY(-10px);
}

.benefit-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-bottom: 20px;
    font-size: 2rem;
}

.benefit-title {
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.benefit-text {
    color: #666;
    line-height: 1.6;
}

/* CTA Section */
.cta {
    padding: 80px 0;
    background-image: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)), url('foto enam.jpeg');
    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;
}

.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;
}

.hero-btn:hover {
    background-color: rgb(190, 20, 20);
}

/* Scroll Navigation (for horizontal scroll sections like services) */
.scroll-nav {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    gap: 20px;
}

.scroll-btn {
    background-color: rgb(164, 14, 14);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s;
}

.scroll-btn:hover {
    background-color: rgb(190, 20, 20);
}

/* 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;
}


@media (max-width: 768px) {
    body {
        padding-top: 80px;
    }

    header {
        padding: 15px 0;
    }

    .nav-logo img,
    .logo-img {
        height: 50px;
    }

    .hamburger-menu {
        display: flex;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background-color: #1a1a1a;
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
        z-index: 998;
        transition: transform 0.3s ease-out;
        transform: translateY(-100%);
    }

    .nav-links.active {
        display: flex;
        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 {
        min-height: calc(100vh - 80px);
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.5rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .service-description p {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .service-card {
        flex: 0 0 260px;
    }

    .benefits-grid,
    .equipment-grid,
    .materials-grid,
    .footer-container {
        grid-template-columns: 1fr;
    }

    .benefit-card,
    .equipment-card,
    .material-card,
    .process-step,
    .footer-col {
        margin-bottom: 20px;
    }

    .process-steps {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .process-step {
        max-width: 90%;
        min-width: unset;
    }

    .cta-title {
        font-size: 2rem;
    }

    .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 {
        min-height: calc(100vh - 70px);
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .hero-description {
        font-size: 0.9rem;
    }

    .cta-title {
        font-size: 1.8rem;
    }

    .cta-text {
        font-size: 0.9rem;
    }

    .service-card {
        flex: 0 0 250px;
    }

    .container {
        padding: 0 15px;
    }
}