/* set margin etc. */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px; /* top menu */
}

body {
    font-family: 'Lexend', Arial, Tahoma, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f4f6f7;
}

/* menu Navi */
.navbar {
    background-color: #2c3e50;
    position: sticky;
    top: 0;
    z-index: 1000;
    height: 85px; /* start height */
    display: flex;
    align-items: center;
    transition: height 0.3s ease, background-color 0.3s ease; /* reduction */
}

/* scroll page, change menu (JS) */
.navbar.scrolled {
    height: 60px; /* change hight */
    background-color: #1a252f; /* to darker */
}

/* conterner menu - 1100px */
.nav-container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* style logotype */
.logo { display: flex; }
.logo > img {
    color: #fff;
/*     font-size: 26px; */ /* start size font */
/*    font-weight: bold; */
    width: 126px;
/*    height: 40px; */
    transition: width 0.3s ease;
/*    background-image: url("logo_for_web.svg");
    background-size: contain;
    background-repeat: no-repeat; */
    
}

/* Logo (JS) */
.logo.scrolled > img {
    width: 80px; /* -25-30% */
    /* height: 20px; */
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 25px;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    font-size: 18px;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #3498db;
}

/* button hamnavi */
.hamnavi {
    display: none;
    cursor: pointer;
    background: none;
    border: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
}

.bar {
    display: block;
    width: 100%;
    height: 3px;
    background-color: #fff;
    border-radius: 10px;
    transition: all 0.3s ease-in-out;
}

/* Slideshow */
.slideshow-container {
    max-width: 100%;
    position: relative;
    margin: auto;
    overflow: hidden;
    height: 400px;
}

.slides {
    display: none;
    height: 100%;
}

.slides img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-text {
    color: #fff;
    font-size: 24px;
    padding: 12px 24px;
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.6);
    border-radius: 5px;
    text-align: center;
    width: 80%;
    max-width: 500px;
}

.dot-container {
    position: absolute;
    bottom: 15px;
    width: 100%;
    text-align: center;
    z-index: 10;
}

.dot {
    cursor: pointer;
    height: 13px;
    width: 13px;
    margin: 0 5px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.6s ease;
}

.active, .dot:hover {
   # background-color: #ffffff;
   # transform: scale(1.2);
}

/* slide fade */
.fade {
    animation-name: fade;
    animation-duration: 1s;
}

@keyframes fade {
    from {opacity: .4} 
    to {opacity: 1}
}

/* main content(max 1100px) */
.content-container {
    max-width: 1100px;
    margin: 40px auto;
    padding: 0 20px;
}

.section {
    background: #fff;
    padding: 40px;
    margin-bottom: 40px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.section h2 {
    margin-bottom: 25px;
    color: #2c3e50;
    border-bottom: 2px solid #ecf0f1;
    padding-bottom: 10px;
    text-align: center;
}

/* 3 box - desktop */
.oferta-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 columns */
    gap: 20px;
}

.oferta-box {
    background-color: #f8f9fa;
    padding: 25px;
    border-radius: 6px;
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
    justify-content: space-between; /*  */
}

.oferta-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.oferta-box h3 {
    margin-bottom: 12px;
    color: #2c3e50;
    font-size: 20px;
}

/* colors bar */
.icon-it, .icon-consulting, .icon-security {
    border-top: 4px solid #375068; /* 1,2,3 */
}

.icon-hosting {
    border-top: 4px solid #0f58ca; /* 4 */
}

.icon-ad {
    border-top: 4px solid #9b59b6; /* 5 */
}

.icon-sailing {
    border-top: 4px solid #e67e22; /* 6 */
}

/* button offers */
.oferta-btn {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 15px;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: bold;
    text-align: center;
    transition: background-color 0.2s ease;
}
.btn-blue {
    background-color: #0f58ca;
}
.btn-blue:hover {
    background-color: #0a4299;;
}
.btn-purple {
    background-color: #9b59b6;
}
.btn-purple:hover {
    background-color: #8e44ad;
}

.btn-orange {
    background-color: #e67e22;
}
.btn-orange:hover {
    background-color: #d35400;
}

/* footer */
.main-footer {
    background-color: #2c3e50;
    color: #bdc3c7;
    padding-top: 50px;
    margin-top: 60px;
}

.footer-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px 30px 20px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.footer-col h4 {
    color: #fff;
    font-size: 18px;
    margin-bottom: 20px;
}

.footer-col p {
    font-size: 14px;
    line-height: 1.6;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #bdc3c7;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #3498db;
}

.footer-bottom {
    background-color: #1a252f;
    text-align: center;
    padding: 20px;
    font-size: 14px;
    color: #7f8c8d;
    border-top: 1px solid #34495e;
}

/* respon */
@media (max-width: 768px) {
    html {
        scroll-padding-top: 60px; /* for mobile */
    }

    /* height top bar */
    .navbar, .navbar.scrolled {
        height: 60px;
    }

    .logo, .logo.scrolled > img {
        width: 120px; /* -25-30% */
    }

    .hamnavi {
        display: flex;
    }

    .hamnavi.active .bar:nth-child(2) {
        opacity: 0;
    }
    .hamnavi.active .bar:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }
    .hamnavi.active .bar:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

    .nav-links {
        position: absolute;
        top: 60px; /* after small bar */
        left: 0;
        width: 100%;
        flex-direction: column;
        background-color: #2c3e50;
        text-align: center;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-in-out;
        box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    }

    .nav-links.active {
        max-height: 300px;
    }

    .nav-links li {
        margin: 0;
        padding: 15px 0;
        border-top: 1px solid #34495e;
    }

    .slideshow-container {
        height: 250px;
    }

    .slide-text {
        font-size: 16px;
        bottom: 40px;
    }

    .oferta-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
        padding-bottom: 20px;
    }

    .footer-links {
        display: inline-block;
        text-align: center;
        width: 100%;
    }
}
