@charset "UTF-8";
/* CSS Document */

/* =========================================================
   CYBERSECURITY LIFE — HOMEPAGE
   home.css
   ========================================================= */

.home-page {
    position: relative;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Animated grid layer */
.home-page::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -2;
    pointer-events: none;

    background-image:
        linear-gradient(rgba(255, 74, 44, 0.09) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 74, 44, 0.09) 1px, transparent 1px);

    background-size: 55px 55px;
    animation: homeGridMove 18s linear infinite;
}

/* Dark overlay so the text remains readable */
.home-page::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;

    background:
        radial-gradient(
            circle at 50% 20%,
            rgba(196, 0, 24, 0.14),
            transparent 42%
        ),
        linear-gradient(
            rgba(5, 5, 8, 0.28),
            rgba(5, 5, 8, 0.62)
        );
}

@keyframes homeGridMove {
    from {
        background-position: 0 0;
    }

    to {
        background-position: 55px 55px;
    }
}

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

/* CIA Triad Bullet List */

.information-card ul {
    list-style: none;
    margin-top: 20px;
    padding: 0;
    display: inline-block;
    text-align: left;
}

.information-card li {
    position: relative;
    padding-left: 16px;
    margin-bottom: 10px;
    line-height: 1.6;
    color: #ffffff;
}

.information-card li::before {
    content: "•";
    position: absolute;
    left: 0;
    top: 0;
    color: #32e6ff;
    font-size: 1.1rem;
}


/* =========================================================
   HOMEPAGE ANIMATIONS
   ========================================================= */

/* Floating hero content */

.home-page .hero-content {
    animation: homeHeroFloat 6s ease-in-out infinite;
}


/* Rotating decorative ring */

.home-page .hero-section {
    position: relative;
    overflow: hidden;
}

.home-page .hero-section::before {
    content: "";
    position: absolute;
    top: 14%;
    right: 8%;

    width: 240px;
    height: 240px;

    pointer-events: none;

    border: 1px solid rgba(255, 79, 38, 0.22);
    border-radius: 50%;

    box-shadow:
        0 0 35px rgba(255, 45, 45, 0.12),
        inset 0 0 30px rgba(255, 132, 0, 0.06);

    animation: homeRingRotate 16s linear infinite;
}

.home-page .hero-section::after {
    content: "";
    position: absolute;
    left: 7%;
    bottom: 10%;

    width: 130px;
    height: 130px;

    pointer-events: none;

    border: 1px dashed rgba(0, 215, 255, 0.24);
    border-radius: 50%;

    animation: homeRingReverse 11s linear infinite;
}


/* Hero button glow */

.home-page .primary-button {
    animation: homeButtonPulse 2.8s ease-in-out infinite;
}


/* Floating card icons */

.home-page .card-icon,
.home-page .topic-card > span,
.home-page .message-icon {
    animation: homeIconFloat 4s ease-in-out infinite;
}

.home-page .card-grid > :nth-child(2) .card-icon,
.home-page .card-grid > :nth-child(2) > span {
    animation-delay: 0.6s;
}

.home-page .card-grid > :nth-child(3) .card-icon,
.home-page .card-grid > :nth-child(3) > span {
    animation-delay: 1.1s;
}

.home-page .card-grid > :nth-child(4) .card-icon,
.home-page .card-grid > :nth-child(4) > span {
    animation-delay: 1.6s;
}


/* Cards lift on hover */

.home-page .information-card,
.home-page .topic-card,
.home-page .security-message,
.home-page .statistic {
    transition:
        transform 0.35s ease,
        border-color 0.35s ease,
        box-shadow 0.35s ease;
}

.home-page .information-card:hover,
.home-page .topic-card:hover,
.home-page .security-message:hover,
.home-page .statistic:hover {
    transform: translateY(-8px);

    box-shadow:
        0 18px 38px rgba(0, 0, 0, 0.38),
        0 0 24px rgba(255, 77, 35, 0.14);
}


/* Section entrance animation */

.home-page .content-section,
.home-page .learning-section {
    animation: homeSectionFade 0.9s ease both;
}


/* Scroll indicator animation */

.home-page .scroll-arrow {
    display: inline-block;
    animation: homeScrollBounce 1.7s ease-in-out infinite;
}


/* =========================================================
   HOMEPAGE KEYFRAMES
   ========================================================= */

@keyframes homeHeroFloat {
    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

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

    to {
        transform: rotate(360deg);
    }
}

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

    to {
        transform: rotate(0deg);
    }
}

@keyframes homeButtonPulse {
    0%,
    100% {
        box-shadow:
            0 0 12px rgba(255, 35, 35, 0.48),
            0 0 28px rgba(255, 105, 0, 0.2);
    }

    50% {
        box-shadow:
            0 0 20px rgba(255, 35, 35, 0.78),
            0 0 42px rgba(255, 105, 0, 0.35);
    }
}

@keyframes homeIconFloat {
    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-9px);
    }
}

@keyframes homeSectionFade {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes homeScrollBounce {
    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(7px);
    }
}


/* Reduced motion */

@media (prefers-reduced-motion: reduce) {

    .home-page *,
    .home-page *::before,
    .home-page *::after {
        animation: none !important;
        transition: none !important;
    }
}