
/* =========================================
   TIE DeKUT HOMEPAGE REDESIGN
   Forest Green / Emerald Theme
   ========================================= */

.homepage {
    --green-dark: #123c2d;
    --green-main: #176b48;
    --green-light: #e8f5ed;
    --emerald: #20a36a;
    --text-dark: #18352a;
    --text-muted: #64756b;
    --white: #ffffff;

    margin: 0;
    background: #f6faf7;
    color: var(--text-dark);
    font-family: Arial, Helvetica, sans-serif;
}

/* NAVIGATION */

.homepage header {
    position: relative;
    z-index: 100;
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 3px 18px rgba(12, 55, 36, 0.08);
}

.homepage .navbar {
    width: min(1200px, 92%);
    min-height: 76px;
    margin: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
}

.homepage .logo {
    color: var(--green-dark);
    font-size: 25px;
    font-weight: 800;
    white-space: nowrap;
}

.homepage .logo span {
    color: var(--emerald);
}

.homepage #navLinks {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.homepage #navLinks a {
    display: block;
    padding: 11px 14px;
    border-radius: 9px;
    color: #344c40;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: 0.25s ease;
}

.homepage #navLinks a:hover {
    background: var(--green-light);
    color: var(--green-main);
}

.homepage #navLinks .admin-btn {
    color: var(--green-main);
    border: 1px solid #c9e5d4;
}

.homepage #navLinks .login-btn {
    color: white;
    background: var(--green-main);
    padding-inline: 21px;
}

.homepage #navLinks .login-btn:hover {
    background: var(--green-dark);
}

.homepage .menu-btn {
    display: none;
    border: none;
    background: var(--green-main);
    color: white;
    border-radius: 8px;
    padding: 9px 13px;
    font-size: 22px;
    cursor: pointer;
}

/* HERO SECTION */

.homepage .hero {
    position: relative;
    min-height: 540px;
    display: flex;
    align-items: center;
    overflow: hidden;
    isolation: isolate;
    background: var(--green-dark);
}

/* Automatic image slideshow */

.homepage .hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    animation: homepageSlideshow 30s infinite;
    transform: scale(1.02);
}

.homepage .hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(
            90deg,
            rgba(8, 43, 29, 0.94) 0%,
            rgba(12, 65, 43, 0.83) 48%,
            rgba(10, 48, 34, 0.35) 100%
        );
}

@keyframes homepageSlideshow {
    0%, 16% {
        background-image: url("../assets/images/Cell-phone.webp");
    }

    20%, 36% {
        background-image: url("../assets/images/engineer 2.jpg");
    }

    40%, 56% {
        background-image: url("../assets/images/engineer.jpg");
    }

    60%, 76% {
        background-image: url("../assets/images/satelite.jpg");
    }

    80%, 96% {
        background-image: url("../assets/images/telecoms-masts-2000759.webp");
    }

    100% {
        background-image: url("../assets/images/Cell-phone.webp");
    }
}

.homepage .hero-content {
    width: min(1200px, 92%);
    margin: auto;
    padding: 90px 0;
    color: white;
    max-width: 1200px;
}

.homepage .hero-content .welcome {
    color: #8ee3b4;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 4px;
    margin-bottom: 18px;
}

.homepage .hero-content h1 {
    font-size: clamp(42px, 6vw, 68px);
    line-height: 1.08;
    margin: 0 0 23px;
    font-weight: 800;
    letter-spacing: -1.5px;
}

.homepage .hero-content > p:not(.welcome) {
    max-width: 620px;
    color: #e1eee6;
    font-size: 17px;
    line-height: 1.8;
}

.homepage .hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 32px;
}

.homepage .hero-buttons a {
    display: inline-block;
    padding: 15px 24px;
    border-radius: 9px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    transition: 0.25s ease;
}

.homepage .primary-btn {
    color: white;
    background: var(--emerald);
    border: 1px solid var(--emerald);
}

.homepage .primary-btn:hover {
    background: #168553;
    transform: translateY(-3px);
}

.homepage .secondary-btn {
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.65);
    background: rgba(255, 255, 255, 0.08);
}

.homepage .secondary-btn:hover {
    background: white;
    color: var(--green-dark);
}

/* FEATURES */

.homepage .features {
    width: min(1200px, 92%);
    margin: auto;
    padding: 75px 0 90px;
}

.homepage .features h2 {
    text-align: center;
    color: var(--green-dark);
    font-size: clamp(27px, 4vw, 36px);
    margin: 0 0 42px;
    font-weight: 800;
}

.homepage .feature-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
}

.homepage .feature-card {
    display: block;
    padding: 30px 24px;
    min-height: 215px;
    border-radius: 16px;
    background: white;
    border: 1px solid #e4eee7;
    box-shadow: 0 7px 24px rgba(20, 70, 45, 0.05);
    text-decoration: none;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.homepage .feature-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 14px 32px rgba(20, 70, 45, 0.12);
    border-color: #b9dfc8;
}

.homepage .feature-card .icon {
    width: 55px;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 13px;
    background: var(--green-light);
    font-size: 27px;
    margin-bottom: 22px;
}

.homepage .feature-card h3 {
    color: var(--green-dark);
    font-size: 18px;
    margin: 0 0 12px;
}

.homepage .feature-card p {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.7;
    margin: 0;
}

/* FOOTER */

.homepage footer {
    background: #103a2b;
    color: white;
    padding: 45px 20px 25px;
}

.homepage .footer-content {
    width: min(1200px, 92%);
    margin: auto;
    text-align: center;
}

.homepage .footer-content h3 {
    font-size: 25px;
    margin: 0 0 12px;
    color: #8ee3b4;
}

.homepage .footer-content p {
    color: #d2e3d8;
    line-height: 1.7;
    font-size: 14px;
}

.homepage .footer-content .copyright {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    font-size: 13px;
}

/* TABLET */

@media (max-width: 950px) {
    .homepage .feature-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .homepage .navbar {
        width: 94%;
    }

    .homepage #navLinks a {
        padding: 10px 9px;
        font-size: 13px;
    }
}

/* MOBILE */

@media (max-width: 700px) {
    .homepage .navbar {
        min-height: 68px;
        flex-wrap: wrap;
    }

    .homepage .menu-btn {
        display: block;
    }

    .homepage #navLinks {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 5px;
        padding: 0 0 16px;
    }

    .homepage #navLinks.active {
        display: flex;
    }

    .homepage #navLinks a {
        padding: 12px 14px;
        font-size: 14px;
    }

    .homepage .hero {
        min-height: 500px;
    }

    .homepage .hero-content {
        padding: 75px 0;
    }

    .homepage .hero-content h1 {
        font-size: clamp(39px, 10vw, 52px);
    }

    .homepage .hero-content > p:not(.welcome) {
        font-size: 15px;
    }

    .homepage .hero-buttons {
        flex-direction: column;
        align-items: stretch;
        max-width: 280px;
    }

    .homepage .hero-buttons a {
        text-align: center;
    }

    .homepage .features {
        padding: 55px 0 65px;
    }

    .homepage .feature-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .homepage .feature-card {
        min-height: auto;
        padding: 24px;
    }
}

/* REDUCED MOTION */

@media (prefers-reduced-motion: reduce) {
    .homepage .hero::before {
        animation: none;
    }

    .homepage *,
    .homepage *::before,
    .homepage *::after {
        transition-duration: 0.01ms !important;
    }
}
