/* ========================= */
/* Global Reset & Fonts */
/* ========================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --main-font: Arial, sans-serif;
    --primary-color: #6a1b9a; /* logo purple */
}

body {
    font-family: var(--main-font);
    color: #333;
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* ensures footer at bottom */
    overflow-x: hidden; /* prevent horizontal scroll */
}

/* ========================= */
/* Header Styles */
/* ========================= */
header, header * {
    font-family: var(--main-font);
    color: var(--primary-color);
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    padding: 10px 20px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    position: relative;
    z-index: 100;
}

/* Logo animation */
.logo {
    height: 40px;
    transition: transform 0.5s ease, opacity 0.5s ease;
}

.logo:hover {
    transform: scale(1.05);
    opacity: 0.9;
}

/* Hide checkbox properly on all devices */
.menu-checkbox {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

/* Hamburger Menu */
.menu-icon {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 22px;
    cursor: pointer;
    z-index: 200; /* above nav wrapper */
}

.menu-icon span {
    display: block;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
    transition: 0.3s ease;
}

/* Navigation wrapper */
.nav-wrapper {
    display: flex;
    align-items: center;
    gap: 80px; /* increased spacing between links */
    justify-content: center; /* center nav links on desktop */
    z-index: 100;
}

nav a {
    text-decoration: none;
    color: var(--primary-color);
    font-size: 18px;
    font-weight: bold;
    position: relative;
    transition: transform 0.3s ease, color 0.3s ease;
}

nav a::after {
    content: "";
    position: absolute;
    width: 0%;
    height: 2px;
    background-color: var(--primary-color);
    left: 0;
    bottom: -4px;
    transition: width 0.3s ease;
}

nav a:hover::after {
    width: 100%;
}

nav a:hover {
    transform: translateY(-2px);
}

/* Social Icons */
.social-icons {
    display: flex;
    gap: 20px;
}

.social-icons a {
    color: var(--primary-color);
    font-size: 28px;
    transition: transform 0.3s ease, color 0.3s ease;
}

.social-icons a:hover {
    transform: scale(1.1);
    color: #8e24aa;
}

/* ========================= */
/* Content Box for All Pages */
.content-box {
    background-color: var(--primary-color);
    color: #fff;
    padding: 40px 30px;
    margin: 30px auto;
    max-width: 1000px;
    border-radius: 20px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    font-size: 18px;
    line-height: 1.8;
    animation: fadeIn 1s ease;
}

.content-box h1 {
    text-align: center;
    margin-bottom: 20px;
    font-size: 36px;
    font-weight: bold;
}

.content-box h2 {
    margin-top: 30px;
    font-size: 28px;
}

.content-box p, 
.content-box li {
    margin-bottom: 20px;
}

.content-box b {
    font-weight: 600;
}

.content-box ul {
    padding-left: 0; /* remove bullets */
    list-style: none;
}

.content-box li {
    margin-bottom: 15px;
}

/* Fade-in animation for content box */
@keyframes fadeIn {
    0% {opacity: 0; transform: translateY(20px);}
    100% {opacity: 1; transform: translateY(0);}
}

/* ========================= */
/* Footer Styles */
footer, footer * {
    font-family: var(--main-font);
    color: var(--primary-color);
}

footer {
    background: #fff;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 -2px 8px rgba(0,0,0,0.05);
    flex-shrink: 0;
    width: 100%;
}

footer a {
    color: var(--primary-color) !important; /* force purple on all devices */
    text-decoration: none;
}

/* ========================= */
/* Main Content Centering (for index page) */
.index-page .main-content {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

/* ========================= */
/* Mobile & Tablet Responsive */
@media (max-width: 1024px) {

    /* Hamburger visible */
    .menu-icon {
        display: flex;
    }

    /* Center nav links in dropdown */
    .nav-wrapper {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: #fff;
        flex-direction: column;
        align-items: center;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.5s ease;
        box-shadow: 0 6px 15px rgba(0,0,0,0.15);
        gap: 20px;
        padding: 0;
    }

    nav {
        flex-direction: column;
        gap: 20px;
        padding: 20px 0;
        width: 100%;
        text-align: center;
    }

    nav a {
        font-size: 20px;
    }

    .social-icons {
        padding-bottom: 20px;
    }

    /* Show menu when checkbox checked */
    .menu-checkbox:checked + .menu-icon + .nav-wrapper {
        max-height: 800px;
    }

    /* Hamburger to X animation */
    .menu-checkbox:checked + .menu-icon span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .menu-checkbox:checked + .menu-icon span:nth-child(2) {
        opacity: 0;
    }

    .menu-checkbox:checked + .menu-icon span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }

    /* Increase left/right margins for content box */
    .content-box {
        margin-left: 20px;
        margin-right: 20px;
        padding: 30px 20px;
    }

    /* Footer always visible on mobile */
    body {
        display: flex;
        flex-direction: column;
        min-height: 100vh;
    }

    footer {
        position: sticky;
        bottom: 0;
        left: 0;
        right: 0;
    }

    /* Ensure footer links keep purple on mobile */
    footer a {
        color: var(--primary-color) !important;
    }
}
