.color-warm {
    color: rgb(255, 125, 145)
}

.color-cool {
    color: rgb(70, 190, 255)
}


nav {
    box-shadow: 0px 10px 10px -6px rgba(0, 0, 0, 0.1);
}

.header-link {
    padding: 0 0 0 2rem;
}

a:focus img,
a:focus-visible img {
    opacity: 0.7;
}

/* Notebook Frame Style (External) */
.notebook-frame {
    background-color: #f5f5f5;
    padding: 10px 10px 10px 40px;
    /* Space for spiral on left */
    position: relative;
    box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.2);
    border-radius: 4px;
    background-image: linear-gradient(to right, #333 0%, #333 5%, transparent 5%);
    background-size: 20px 100%;
    background-repeat: no-repeat;
    margin-top: 2rem;
}

.notebook-frame::before {
    content: "";
    position: absolute;
    top: 20px;
    bottom: 20px;
    left: 4px;
    width: 12px;
    background: radial-gradient(circle, #fff 35%, transparent 40%);
    background-size: 10px 30px;
    /* Spiral hole spacing */
}

/* Lined Paper Style (Internal) */
.lined-paper {
    background-color: #fff;
    background-image:
        /*linear-gradient(90deg, transparent 59px, #ffcccc 59px, #ffcccc 61px, transparent 61px),*/
        /* Red margin */
        linear-gradient(#e5e5e5 1px, transparent 1px);
    /* Horizontal lines */
    background-size: 100% 2.5rem;
    /* Line height */
    line-height: 2.5rem;
    font-family: 'Courier New', Courier, monospace;
    /* padding-left: 70px; */
    color: #444;
}

.lined-paper p,
.lined-paper pre,
.lined-paper div {
    margin-bottom: 0;
    /* Reset margins to align with lines */
}

/* Ensure images have a background so lines don't show through transparent parts */
.lined-paper img {
    background-color: #fff;
    position: relative;
    z-index: 1;
}

/* Subtle box for less prominent content (e.g. Admin Intro) */
.subtle-box {
    font-size: 0.75rem;
    color: #555555;
    background-color: #fffdf3;
    border: 1px dashed #ffc1a5;
    border-radius: 8px;
    padding: 1.5rem;
    margin-top: 3rem;
    margin-bottom: 2rem;
}

.subtle-box .box-title {
    font-size: 0.9rem;
    font-weight: bold;
    color: #999;
    display: block;
    margin-bottom: 0.5rem;
}

/* Restrict container width globally for a narrower look, but exclude Header & Footer */
@media (min-width: 1200px) {

    .container,
    .container-lg,
    .container-md,
    .container-sm,
    .container-xl {
        max-width: 960px;
    }

    nav .container,
    footer .container,
    .index-page .container {
        max-width: 1140px;
        /* Restore Default XL */
    }
}

@media (min-width: 1400px) {

    .container,
    .container-lg,
    .container-md,
    .container-sm,
    .container-xl,
    .container-xxl {
        max-width: 960px;
    }

    nav .container,
    footer .container,
    .index-page .container {
        max-width: 1320px;
        /* Restore Default XXL */
    }
}

.mini-repco {
    width: 50px;
    height: 50px;
    display: block;
    margin-left: auto;
    margin-right: 0;
}

/* Catchphrase Branding & Animation - State of the Art Style (Index Page Only) */
.index-page .catchphrase {
    /* Transparent -> Color -> Transparent Gradient */
    background: linear-gradient(to bottom,
            rgba(255, 255, 255, 0) 0%,
            #f0f4f8 20%,
            #f0f4f8 80%,
            rgba(255, 255, 255, 0) 100%);
    position: relative;
    overflow: hidden;
    padding-top: 6rem !important;
    /* Increased padding for fade area */
    padding-bottom: 6rem !important;
}

/* Subtle tech-grid background overlay */
.index-page .catchphrase::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(rgba(13, 138, 87, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(13, 138, 87, 0.03) 1px, transparent 1px);
    background-size: 30px 30px;
    z-index: 0;
    pointer-events: none;
    /* Fade the grid out at top and bottom */
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 20%, black 80%, transparent 100%);
    mask-image: linear-gradient(to bottom, transparent 0%, black 20%, black 80%, transparent 100%);
}

.index-page .catchphrase .container {
    position: relative;
    z-index: 1;
}

.index-page .catchphrase h2 {
    font-weight: 800;
    line-height: 1.4;
    font-family: 'Lato', sans-serif;
    /* Ensure modern font */
    letter-spacing: 0.05em;
    background: linear-gradient(45deg, #0d8a57, #46beff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 3rem !important;
    animation: fadeInUp 0.8s ease-out forwards;
    opacity: 0;
    /* Star hidden */
}

/* Glassmorphism / Tech Card Effect for Body */
.index-page .catchphrase-body {
    font-size: 1.15rem;
    line-height: 2;
    color: #444;
    text-align: justify;
    margin: 0 auto 3rem auto;
    padding: 2.5rem;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    /* Soft shadow */
    border-radius: 16px;
    animation: fadeInUp 0.8s ease-out 0.3s forwards;
    /* Delay */
    opacity: 0;
    /* Start hidden */
}

.index-page .catchphrase-highlight {
    font-weight: bold;
    font-size: 1.35rem;
    color: #0d8a57;
    position: relative;
    display: inline-block;
}

.index-page .catchphrase-caption {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.6;
}

.index-page .catchphrase-highlight::after {
    content: "";
    position: absolute;
    bottom: 2px;
    left: 0;
    width: 100%;
    height: 8px;
    background: rgba(70, 190, 255, 0.2);
    /* Highlight marker style */
    z-index: -1;
    transform: skewX(-10deg);
}

/* Blinking Arrow - Modernized */
.index-page .scroll-down-arrow {
    display: inline-block;
    /* Essential for transform */
    font-size: 3.5rem;
    /* Larger */
    background: linear-gradient(rgba(13, 138, 87, 0.8), rgba(70, 190, 255, 0.8));
    /* Brighter gradient */
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: blinkBounce 2.5s infinite, fadeInUp 0.8s ease-out 0.6s forwards;
    cursor: pointer;
    /* Interaction hint */
    opacity: 0;
    margin-top: 2rem;
    transition: transform 0.3s ease, filter 0.3s ease;
    filter: drop-shadow(0 0 5px rgba(70, 190, 255, 0.3));
    /* Glow */
}

.index-page .scroll-down-arrow:hover {
    transform: scale(1.1) translateY(5px);
    filter: drop-shadow(0 0 10px rgba(70, 190, 255, 0.6));
    /* Stronger glow */
}

@keyframes blinkBounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
        opacity: 1;
    }

    40% {
        transform: translateY(10px);
        opacity: 0.7;
    }

    60% {
        transform: translateY(5px);
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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