/* Shared typography and resets */
body {
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
}

/* 
 * Subtle gradient overlay at the top and bottom edges.
 * Ensures text is readable regardless of the background photo's highlights.
 */
.vignette-overlay {
    background: linear-gradient(
        to bottom, 
        rgba(0,0,0,0.6) 0%, 
        rgba(0,0,0,0.1) 15%, 
        rgba(0,0,0,0.0) 50%, 
        rgba(0,0,0,0.1) 80%, 
        rgba(0,0,0,0.7) 100%
    );
    pointer-events: none;
}

/* Custom hover animation for the CTA arrow */
.arrow-slide {
    display: inline-block;
    transition: transform 0.3s ease-in-out;
}
.cta-group:hover .arrow-slide {
    transform: translateX(8px);
}

/* Subtle fade-in for the main content blocks */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
.animate-fade-in {
    animation: fadeInUp 0.8s ease-out forwards;
}

/* Inline link styling for body text */
.text-link {
    position: relative;
    display: inline-block;
    color: #fff;
    transition: color 0.3s;
}
.text-link::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 1px;
    bottom: 0;
    left: 0;
    background-color: rgba(255, 255, 255, 0.4);
    transition: background-color 0.3s, transform 0.3s;
}
.text-link:hover::after {
    background-color: rgba(255, 255, 255, 1);
}

/* Hide scrollbars cleanly (used primarily on Portfolio) */
.hide-scrollbar::-webkit-scrollbar {
    display: none;
}
.hide-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

dialog::backdrop {
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(4px);
}

.home-background {
    position: absolute;
    inset: 0;
    z-index: 0;

    background-image: url("/assets/optimized/anu-graduation-portrait-hero-large.webp");
    background-size: cover;
    background-position: 50% 20%;
    background-repeat: no-repeat;
}