/* CSS file for index.html styling */

/* General styles */

body {
    margin: 0;
    font-family: 'Helvetica', sans-serif;
    background-color: #F6F4FB;
    color: #333;
}
section {
    background: white;
    border-radius: 16px;
    /* All box-shadows was generated with this website: https://active-vision.ru/icon/box-shadow/ */
    box-shadow: 0 8px 20px rgba(42, 22, 154, 0.08);
}

/* Header styles */
.header {
    position: relative;
    height: 100px;
    background-color: #2A169A;
    color: #A7FC47;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0 20px;

}

.header img {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    max-width: 300px;
    height: auto;
}


/* Styles for menu */
.menu a {
    color: #A7FC47;
    margin-left: 20px;
    text-decoration: none;
    font-size: 18px;
}

.menu_icon {
    fill: #A7FC47;
    display: block;
    width: 40px;
    height: 40px;

}

body.menu-open {
    overflow: hidden;
    touch-action: none;
}

.icon {
    position: absolute;
    width: 40px;
    height: 40px;
    display: none;
    align-items: center;
    justify-content: center;
}

.close-icon {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 700;
    color: #A7FC47;
    opacity: 0;
    pointer-events: none;
}

body.menu-open .close-icon {
    opacity: 1;
    pointer-events: auto;
}

body.menu-open .menu_icon {
    opacity: 0;
}

.menu-mobile {
    display: none;
}

.menu-simple a{
    color: #A7FC47;
    text-decoration: none;
    font-size: 18px;
    font-weight: bold;
    border:1px solid rgba(167, 252, 71, 0.35);
    padding: 8px 15px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
}

/* Adaptive menu for mobile */
@media screen and (max-width: 600px) {

    .menu {
        position: fixed;
        inset: 0;
        top: 100px;
        left: 0;
        right: 0;
        bottom: 0;
        transform: translateX(100%);
        /* All transition was found here: https://doka-guide.vercel.app/css/transition/ */
        transition: transform 0.35s ease;
        z-index: 1000;
        display: flex;
        flex-direction: column;
        padding-top: 30px;

        background-color: #F6F4FB;
        border-top-left-radius: 20px;
        border-top-right-radius: 20px;
        box-shadow: 0 -10px 30px rgba(42, 22, 154, 0.25);
    }

    .menu.responsive {
        transform: translateX(0);
    }

    .menu a:last-child {
        border-bottom: 3px solid rgba(42, 22, 154, 0.15);
    }
    .menu a:active {
        background: rgba(42, 22, 154, 0.08);
    }
    .icon{
        display: block;
        align-items: center;
        justify-content: center;
        top: 35px;
        right: 20px;
        z-index: 2000;
        cursor: pointer;
    }

    .menu a {
        display: flex;
        align-items: center;
        gap: 16px;
        padding: 18px 24px;
        font-size: 20px;
        font-weight: 700;
        color: #2A169A;
        text-decoration: none;
        border-radius: 12px;
        border: 2px solid rgba(42, 22, 154, 0.15);
        margin: 8px 16px;
        /* https://doka-guide.vercel.app/css/linear-gradient/ */
        background: linear-gradient(120deg, #F6F4FB, #E8E5FF);
        box-shadow: 0 4px 12px rgba(42, 22, 154, 0.12);
        transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.3s ease;
    }

    .menu a .menu-icon {
        font-size: 24px;
    }
    .menu a:active {
        transform: translateY(2px);
        box-shadow: 0 2px 6px rgba(42, 22, 154, 0.15);
    }

    .menu.responsive a {
        opacity: 0;
        transform: translateX(40px);
        /* https://www.quackit.com/css/animations/examples/css_animation_staggered_list_slide.cfm */
        animation: slideIn 0.4s forwards;
    }

    .menu-simple a {
        font-size: 15px;
        padding: 6px 10px;
    }

    .menu.responsive a:nth-child(1) { animation-delay: 0.05s; }
    .menu.responsive a:nth-child(2) { animation-delay: 0.1s; }
    /* Found here: https://medium.com/@sikirus81/adding-dynamic-elements-with-css-animations-2d450526af2a */
    @keyframes slideIn {
        to {
            opacity: 1;
            transform: translateX(0);
        }
    }
}

/* content styling */
#content, section {
    max-width: 800px;
    padding: 10px 28px;
    margin: 48px auto;
    text-align: left;
    line-height: 1.6;
}

#content p {
    font-size: 20px;
    line-height: 1.4;
    font-weight: 500;
    color: #2A169A;
    margin: 0;
}

.title {
    font-weight: 800;
    color: #2A169A;
    /* https://developer.mozilla.org/en-US/docs/Web/CSS/Reference/Properties/text-shadow
    and
    https://www.w3schools.com/colors/colors_rgb.asp */
    text-shadow:
            0 1px 2px rgba(0, 0, 0, 0.12),
            0 6px 14px rgba(42, 22, 154, 0.18);
}

/* h2 styling */
h2 {
    color: #2A169A;
    font-size: 28px;
    margin-bottom: 15px;
    position: relative;
    padding-left: 14px;
}
h2::before {
    content: "";
    position: absolute;
    left: 0;
    top: 4px;
    width: 4px;
    height: 100%;
    background-color: #A7FC47;
    border-radius: 2px;
}

.hero-line {
    font-size: 26px;
    font-weight: 700;
    display: block;
    line-height: 1.2;
    margin-bottom: 2px;
}

/* Button */
#startButton {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;

    margin: 30px auto;
    background-color: #A7FC47;
    color: #2A169A;
    border: none;
    box-shadow: 0 6px 0 #7FD62E;
    padding: 14px 26px;
    font-size: 18px;
    font-weight: bold;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.3s, color 0.3s;
}
#startButton:active {
    transform: translateY(3px);
    box-shadow: 0 3px 0 #7FD62E;
}
/* lists styling */
ul {
    list-style: none;
    padding: 0;
}

ul li {
    margin: 10px 0;
}

/* Start Icon */
.start-icon {
    width: 32px;
    height: 32px;
    display: block;
}

/* animation */

.fly-in {
    opacity: 0;
    transform: translateX(-60px);
}

.fly-in.show {
    animation: flyInLeft 0.6s ease-out forwards;
}
/* FlyIn keyframe was found here: https://www.tutorialpedia.org/blog/fly-in-button-css/#google_vignette */
@keyframes flyInLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@media screen and (max-width: 600px) {
    section, #content {
        margin: 24px 16px !important;
        padding: 16px 16px !important;
        border-radius: 14px;
        box-sizing: border-box;
    }
}

/* footer */
.footer {
    width: 100%;
    background: linear-gradient(135deg, #2A169A, #3A23C9);
    color: white;
    padding: 18px 18px 20px;
    margin-top: 60px;
}

.footer-inner {
    max-width: 480px;
    margin: 0 auto;
    text-align: left;
}

.footer-title {
    font-size: 26px;
    font-weight: 800;
    margin-bottom: 20px;
    position: relative;
    padding-left: 14px;
    transform: translateY(-4px);
}

.footer-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 4px;
    width: 4px;
    height: 100%;
    background-color: #A7FC47;
    border-radius: 2px;
}

.footer-links {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

.footer-links a {
    flex: 1;
    text-align: center;
    padding: 12px 10px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    color: #A7FC47;
    text-decoration: none;
    font-size: 15px;
    font-weight: 700;
    border: 1px solid rgba(167, 252, 71, 0.35);
    transition: background 0.25s ease, transform 0.15s ease;
}
/* Scale: https://developer.mozilla.org/en-US/docs/Web/CSS/Reference/Values/transform-function/scale */
.footer-links a:active {
    transform: scale(0.97);
}

.footer-copy {
    text-align: center;
    font-size: 13px;
    opacity: 0.75;
    margin-top: 10px;
}

/* Mobile-friendly footer adjustments */
@media (max-width: 600px) {
    .footer-inner {
        padding: 0 12px;
    }

    .footer-links a {
        padding-left: 12px;
        padding-right: 12px;
    }

    .footer-links {
        gap: 8px;
        justify-content: space-between;
    }

    .footer-links a:last-child {
        margin-right: 12px;
    }
}
@media (max-width: 400px) {
    .footer-links {
        flex-direction: column;
    }
}

/* Social Media styling */

.social-feed {
    max-width: 800px;
    margin: 48px auto;
}

.social-feed h2 {
    margin-bottom: 24px;
}

.social-post {
    display: block;
    background: white;
    padding: 18px 20px;
    border-radius: 14px;
    margin-bottom: 16px;
    text-decoration: none;
    color: #2A169A;
    box-shadow: 0 6px 18px rgba(42, 22, 154, 0.12);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.social-post:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 26px rgba(42, 22, 154, 0.18);
}

.social-post .platform {
    font-weight: 800;
    display: block;
    margin-bottom: 6px;
}

.social-post.instagram { border-left: 6px solid #E1306C; }
.social-post.x { border-left: 6px solid #000; }
/* https://tech9-on.medium.com/before-and-after-in-css-74340d425d75 */
*, *::before, *::after {
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden;
}

