:where([class^="ri-"])::before { content: "\f3c2"; }

/* --- GLOBAL VARIABLES --- */
:root {
    /* 
       CHANGE THE LEFT SIDE HERO COLOR HERE:
       Enter the Red, Green, and Blue values of your desired color.
       
       Previous (Ivory): 247, 250, 246
       Current (Light Green): 220, 242, 230
       
       To change this later, just replace "220, 242, 230" with new numbers.
       (e.g. for a yellowish tint use: 255, 250, 230)
    */
    --overlay-color: 230, 242, 230; 
}

.hero-bg {
    /* Use the path to your uploaded image */
    background-image: url('assets/hero3.jpg');
    background-repeat: no-repeat;
    background-attachment: scroll; 

    /* --- ADJUSTABLE SETTINGS: IMAGE ZOOM & POSITION --- */
    background-size: cover; 
    background-position: center 30%; 
}

/* --- ADJUSTABLE SETTINGS: LEFT SIDE GRADIENT --- */
.hero-gradient-overlay {
    /* This uses the --overlay-color variable defined at the top. 
       You generally don't need to touch this part unless you want to change the fade direction. */
    background: linear-gradient(
        90deg, 
        rgba(var(--overlay-color), 1) 0%,      /* 0%: Solid color on the far left */
        rgba(var(--overlay-color), 0.95) 45%,  /* 45%: Strong color covering text */
        rgba(var(--overlay-color), 0.4) 62%,   /* 75%: Fading out */
        rgba(var(--overlay-color), 0) 100%     /* 100%: Completely transparent */
    );
}

.parallax-bg {
    background-image: url('https://readdy.ai/api/search-image?query=subtle%20mosaic%20texture%20pattern%20with%20architectural%20line%20drawings%20overlay%2C%20digital%20mesh%20grid%20background%2C%20earth%20tones%20terracotta%20and%20emerald%20green%2C%20academic%20conference%20professional%20aesthetic%2C%20minimal%20geometric%20design&width=1920&height=800&seq=bg001&orientation=landscape');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    opacity: 0.1;
}

.font-poppins { font-family: 'Poppins', sans-serif; }
.font-opensans { font-family: 'Open Sans', sans-serif; }

.animate-fade-up {
    animation: fadeUp 0.8s ease-out forwards;
    opacity: 0;
    transform: translateY(30px);
}

.animate-fade-in {
    animation: fadeIn 1s ease-out forwards;
    opacity: 0;
}

@keyframes fadeUp {
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    to { opacity: 1; }
}

.glow-hover:hover {
    box-shadow: 0 0 20px rgba(30, 77, 43, 0.3);
    transform: translateY(-2px);
}

.card-hover:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.logo-hover:hover {
    filter: grayscale(0%);
    transform: scale(1.05);
}

.timeline-item {
    position: relative;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, #1E4D2B, #29B8A8);
    transform: translateX(-50%);
}

.sticky-nav {
    backdrop-filter: blur(10px);
    background: rgba(249, 249, 249, 0.95);
}

/* --- Custom Logo Styling --- */
.logo-image {
    height: 90px; /* Equivalent to Tailwind's h-12 */
    width: auto;  /* Maintain aspect ratio */
}

.logo-tagline {
    font-family: 'Open Sans', sans-serif;
    font-size: 10px;
    color: #5A5A5A; /* Theme 'gray' color */
    letter-spacing: 0.5px;
    margin-top: -4px; /* Adjust vertical position */
    line-height: 1.2; /* Adjust line spacing */
    white-space: nowrap;
}

/* --- Hero Section Text Styling --- */
.hero-main-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 700; /* bold */
    font-size: 2.25rem; /* text-4xl */
    line-height: 1.2; /* leading-tight */
    margin-bottom: 1.5rem; /* mb-6 */
}
@media (min-width: 1024px) { /* lg breakpoint */
    .hero-main-title {
        font-size: 3rem; /* text-5xl */
    }
}

.hero-subtitle {
    display: block;
    font-family: 'Open Sans', sans-serif;
    font-size: 1.5rem; /* text-2xl */
    font-weight: 500; /* font-medium */
    color: #4b5563; /* Tailwind gray-600 */
    letter-spacing: 0.05em; /* tracking-wider */
    text-transform: uppercase;
    margin-bottom: 0.5rem; /* mb-2 */
}
@media (min-width: 1024px) { /* lg breakpoint */
    .hero-subtitle {
        font-size: 1.875rem; /* text-3xl */
    }
}

.hero-title {
    color: #1E4D2B; /* primary color */
}

.hero-organizer {
    font-size: 1.125rem; /* text-lg */
    color: #5A5A5A; /* gray color */
    margin-bottom: 1.5rem; /* mb-6 */
    line-height: 1.625; /* leading-relaxed */
}

.hero-organizer-department {
    font-weight: 700; /* bold */
    color: #1E4D2B; /* primary color */
}

.hero-organizer-university {
    font-weight: 600; /* semibold */
    color: #5A5A5A; /* primary color */
}


/* --- 2D Fade Slider Styles --- */
.slider-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
    will-change: opacity; /* Performance optimization */
}

.slider-image.active {
    opacity: 1;
}

/* --- Heritage Card Styles --- */
.heritage-card {
    position: relative;
    overflow: hidden;
    border-radius: 0.75rem; /* rounded-md */
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.heritage-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

.heritage-card-img {
    width: 100%;
    height: 12rem; /* h-48 */
    object-fit: cover;
    transition: transform 0.3s ease;
}

.heritage-card:hover .heritage-card-img {
    transform: scale(1.05);
}

.heritage-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    padding: 1rem; /* p-4 */
    color: white;
}

.heritage-card-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 600; /* semibold */
    font-size: 1rem; /* text-base */
}

.heritage-card-distance {
    font-size: 0.875rem; /* text-sm */
    opacity: 0.8;
}

/* --- Gallery Scroller Styles --- */
.scroller-container {
    max-width: 100%;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.scroller {
    display: flex;
    width: fit-content;
    animation: scroll 40s linear infinite;
}

.scroller:hover {
    animation-play-state: paused;
}

.scroller-item {
    flex-shrink: 0;
    width: 350px;
    height: 250px;
    margin: 0 1rem;
    transition: transform 0.3s ease;
}

.scroller-item:hover {
    transform: scale(1.03);
}

.scroller-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        /* (width of one item + margin-left + margin-right) * number of original items */
        /* (350px + 16px + 16px) * 6 = 2292px */
        transform: translateX(calc(-382px * 6));
    }
}