/* Top & Navbar shared styles extracted from index.php */

/* Revert to original style */
.parallax {
    background-image: url('../../abstract.jpg');
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}
body {
    transition: background-color 0.3s, color 0.3s;
}

.feature-icon {
    display: flex;
    width: 2.5rem; /* w-10 */
    height: 2.5rem; /* h-10 */
    align-items: center; /* items-center */
    justify-content: center; /* justify-center */
    border-radius: 9999px; /* rounded-full */
    background-color: rgba(59,130,246,0.10); /* brand-light/10 */
    color: #3B82F6; /* text-brand-light */
}

.dark .feature-icon {
    background-color: rgba(30,64,175,0.30); /* brand-dark/30 */
    color: #3B82F6;
}

/* --- Scroll Animation Styles --- */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger Delays */
.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }

/* Nav alignment: push the nav links block to the right on md+ screens
   This makes the middle nav block act like a right-aligned group without changing HTML.
*/
@media (min-width: 768px) {
    /* Target the element that has the literal class `md:block` (Tailwind).
       Add margin-left:auto so the nav links + theme button group move to the right.
    */
    #main-nav .md\:block {
        margin-left: auto !important;
    }

    /* When the inner wrapper uses `ml-10` (left margin), clear it so items stay grouped.
       Use a descendant selector so it only affects the nav's link wrapper.
    */
    #main-nav .md\:block .ml-10 {
        margin-left: 0 !important;
    }

    /* Ensure the inner link container displays inline-flex so spacing remains correct */
    #main-nav .md\:block .ml-10 {
        display: inline-flex;
        align-items: center;
    }
}
