/* Configure Tailwind for Inter font */
html { font-family: 'Inter', sans-serif; scroll-behavior: smooth; }

/* Custom Styles for Princeton-Inspired Look and Complex Layouts */

/* Variables and Core Styling */
:root {
    --primary-color: #5b1f1f; /* Maroon */
    --secondary-color: #e2b458; /* Gold */
    --light-bg: #f8f8f8;
    --dark-text: #2c3e50;
    --plyr-color-main: var(--secondary-color); /* Custom color for Plyr video player */
}

/* 1. Header & Top Bar */
.header {
    position: sticky;
    top: 0;
    z-index: 50;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.top-bar {
    background-color: var(--primary-color);
    color: #fff;
    padding: 8px 0;
    font-size: 0.8rem;
}
.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}
.contact-info span, .kcet-codes span {
    margin-right: 24px;
    display: inline-flex;
    align-items: center;
}
.contact-info i { margin-right: 5px; color: var(--secondary-color); }

.university-brand { display: flex; align-items: center; }
.university-brand .logo { height: 115px;  margin-right: 10px; }
.brand-text h1 { font-size: 2.2rem; font-weight: 700; line-height: 1; margin: 0; color: #fff; }
.brand-text p { font-size: 0.7rem; font-weight: 300; margin: 0; color: #ccc; }

.navbar {
    padding: 0;
}
.navbar .container {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
}
.nav-menu {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
}
.nav-menu li a {
    position: relative; /* Needed for the pseudo-element */
    padding: 0.75rem 1.25rem;
    display: block;
    color: var(--dark-text);
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-size: 0.95rem;
}
.nav-menu li a::after {
    content: '';
    position: absolute;
    bottom: 0.5rem; /* Position the line below the text */
    left: 50%;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transform: translateX(-50%);
    transition: width 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.nav-menu li a:hover, .nav-menu li a.active {
    color: #fff;
    background-color: var(--primary-color);
}
.hamburger { display: none; cursor: pointer; padding: 10px; }
.hamburger span { display: block; width: 25px; height: 3px; background-color: var(--dark-text); margin: 5px 0; transition: all 0.3s ease; }

/* 2. News Line */
.news-line {
    background-color: var(--secondary-color);
    color: #fff;
    padding: 5px 0;
    overflow: hidden;
    font-size: 0.9rem;
    white-space: nowrap;
}
.news-line marquee { padding: 0 1rem; }

/* 3. Hero Section (Slider) */
.slider { height: 50vh; position: relative; overflow: hidden; }
.slides { width: 100%; height: 100%; position: relative; }
.slide {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-color: #5b1f1f; background-size: cover; background-repeat: no-repeat;
    background-position: center center;
    transform: scale(1.15); /* Initial scale for the zoom effect */
    opacity: 0; transition: opacity 1.5s ease-in-out; z-index: 1;
}
.slide.active {
    opacity: 1; z-index: 2;
    animation: kenburns-zoom 5s linear forwards; /* Zoom matches slide duration */
}
@keyframes kenburns-zoom {
    from { transform: scale(1.15); }
    to { transform: scale(1.05); }
}
.slide-overlay {
    position: absolute; right: 5%; bottom: 12%; text-align: right;
    padding: 24px 40px; color: #fff; text-shadow: 0 2px 8px rgba(0,0,0,0.6);
    max-width: 700px; z-index: 5;
}
.slide-overlay h1 { margin: 0; font-size: 1.2rem; font-weight: 600; opacity: .95; }
.slide-overlay h2 { margin: 6px 0 10px; font-size: 2.6rem; line-height: 1; font-weight: 700; }
.slide-overlay p { margin: 0; font-size: 1rem; opacity: .95; }
.slide.active .slide-overlay > * {
    opacity: 1;
    transform: translateY(0);
}
.slide-overlay > * {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}
/* Staggered delay for the text elements */
.slide-overlay h1 { transition-delay: 0.3s; }
.slide-overlay h2 { transition-delay: 0.5s; }
.slide-overlay p { transition-delay: 0.7s; }

/* 4. Section General Styling */
.section { padding: 4rem 1rem; background-color: #fff; }
.section-header { text-align: center; margin-bottom: 3rem; }
.section-title { font-size: 2.25rem; font-weight: 700; color: var(--primary-color); margin-bottom: 0.5rem; }
.section-subtitle { font-size: 1.125rem; color: #666; }

/* 6. Achievements Slider (Marquee Effect) */
.achievements-section { background-color: var(--light-bg); padding: 5rem 0; overflow: hidden; }
.section-achievements { color: var(--secondary-color); }
.achievements-slider, .recruiters-slider {
    overflow: hidden;
    padding: 2rem 0;
    background-color: #e2b458; /* slate-100 */
}
.slider-track {
    display: flex;
    width: -moz-fit-content;
    width: fit-content;
    animation: scroll-left 25s linear infinite;
}
.recruiters-slider .slider-track {
    animation: scroll-left-fast 20s linear infinite;
}
.achievement-card, .recruiter-slide {
    flex-shrink: 0;
    width: 320px;
    margin-right: 2rem;
}
.achievement-card {
    background: #fff;
    border-radius: 0.75rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    transition: transform 0.3s;
}
.achievement-card:hover { transform: translateY(-5px); box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15); }
.achievement-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
}
.achievement-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}
@keyframes scroll-left {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
@keyframes scroll-left-fast {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
.slider-track:hover {
    animation-play-state: paused;
}

/* 7. Vision/Mission */
.vision-mission { background-color: #fff; }
.vision-mission-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    perspective: 1500px; /* Added for 3D effect */
}
.vision-card {
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.4s ease; /* Smoother transition */
}
.vision-card:hover {
    transform: translateY(-8px);
}
.vision-card { background-color: var(--primary-color); color: #fff; }
.mission-card {
    background: #e2b458 !important; /* Gold */
    color: var(--dark-text);
}
.objectives-card {
    background: #f8f8f8 !important; /* Light BG */
    color: var(--dark-text);
}
.card-icon {
    font-size: 2rem;
    color: var(--secondary-color);
    margin-bottom: 16px;
}
.mission-card .card-icon, .objectives-card .card-icon {
    color: var(--primary-color);
}

.vision-card h3 { font-weight: 700; font-size: 32px; margin-top: 0; }
.vision-card ul { list-style: none; padding: 0; margin-top: 10px; }
.vision-card li { padding-left: 1.5em; position: relative; margin-bottom: 0.5rem; line-height: 1.5; }
.vision-card li::before {
    content: "✓";
    position: absolute;
    left: 0;
    font-weight: bold;
}
.vision-card.mission-card li::before, .vision-card.objectives-card li::before { color: var(--primary-color); }

/* 8. Gallery */
.sub-heading { font-size: 1.5rem; color: var(--primary-color); font-weight: 600; margin-top: 3rem; margin-bottom: 1.5rem; border-bottom: 2px solid #e2b458; padding-bottom: 10px; }
.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
}
.photo-item {
    overflow: hidden;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    cursor: pointer;
}
.photo-item img {
    width: 100%;
    aspect-ratio: 16 / 9; /* Maintain a 16:9 aspect ratio for all images */
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}
.photo-item img:hover {
    transform: scale(1.1);
}
.popup-image {
    width: 100%;
    aspect-ratio: 16 / 9; /* Maintain a 16:9 aspect ratio for all images */
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    cursor: pointer;
}
.popup-image:hover {
    transform: scale(1.05);
}

/* Hover Reveal Gallery Component */
.hover-gallery-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: visible; /* Allow images to go outside the container */
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: z-index 0s 0.4s; /* Delay z-index change until after animation */
    z-index: 1;
}
.hover-gallery-container:hover {
    z-index: 20; /* Bring the active container to the front */
    transition-delay: 0s;
}
.hover-gallery-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;    
    object-fit: cover;
    border-radius: 0.5rem;
}
.hover-gallery-container .hover-img {
    z-index: 11; /* Ensure hover images appear on top of the default one */
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
    border: 2px solid white;
    /* Define the transition for the bloom effect */
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease-out;
    /* Start hidden and scaled down */
    opacity: 0;
    transform: scale(0);
}
.hover-gallery-container .default-img {
    z-index: 10; /* Keep default image on top initially */
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), filter 0.4s ease;
}

/* On container hover, make the petal images visible and scale them up */
.hover-gallery-container:hover .hover-img {
    opacity: 1;
    transform: scale(0.6); /* This will be the base scale for the bloomed petals */
}

/* Add specific transforms for each petal's final position */
.hover-gallery-container .hover-img:nth-of-type(1) {
    transform-origin: bottom right; /* Set the pivot point for the animation */
}
.hover-gallery-container .hover-img:nth-of-type(2) {
    transform-origin: bottom left;
}
.hover-gallery-container .hover-img:nth-of-type(3) {
    transform-origin: top center;
}

/* Individual hover effect for each popped-up image */
.hover-gallery-container:hover .hover-img:nth-of-type(1):hover {
    transform: translate(-60%, -45%) scale(0.75) rotate(-15deg); /* Scale up from its bloomed position */
    z-index: 12; /* Bring the hovered petal image to the front */
}
.hover-gallery-container:hover .hover-img:nth-of-type(2):hover {
    transform: translate(60%, -45%) scale(0.75) rotate(15deg);
    z-index: 12;
}
.hover-gallery-container:hover .hover-img:nth-of-type(3):hover {
    transform: translate(0, 60%) scale(0.75) rotate(0deg);
    z-index: 12;
}

/* Position each hover image on hover */
.hover-gallery-container:hover .hover-img:nth-of-type(1) {
    transform: translate(-60%, -45%) scale(0.6) rotate(-15deg); /* Bloom to top-left */
}

.hover-gallery-container:hover .hover-img:nth-of-type(2) {
    transform: translate(60%, -45%) scale(0.6) rotate(15deg); /* Bloom to top-right */
}

.hover-gallery-container:hover .hover-img:nth-of-type(3) {
    transform: translate(0, 60%) scale(0.6) rotate(0deg); /* Bloom to bottom-center */
}


/* Apply a scale and brightness effect to the main image on container hover */
.hover-gallery-container:hover .default-img {
    transform: scale(1.1) rotate(1deg);
    filter: brightness(0.7);
}


/* --- Glow/Spotlight Effect on Hover --- */
.hover-gallery-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: inherit; /* Match the container's border-radius */
    background: radial-gradient(
        circle 150px at var(--x, 50%) var(--y, 50%), /* Use CSS variables */
        rgba(255, 255, 255, 0.3),
        transparent 80%
    );
    opacity: 0;
    transition: opacity 0.2s ease-out;
    z-index: 11; /* Above default image, below shrunken one */
    pointer-events: none; /* So it doesn't block mouse events */
}
.hover-gallery-container:hover::before {
    opacity: 1;
}

/* Modal Styling */
.modal {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0s 0.3s;
    align-items: center;
    justify-content: center;
    display: flex; /* Always flex to center content */
    overflow: auto;
    perspective: 1000px; /* Add perspective for 3D transforms */
}
.modal.visible {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s ease, visibility 0s 0s;
}
.modal-content {
    position: relative;
    margin: auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    width: 90%;
    max-width: 800px;
    text-align: center;
    opacity: 0;
    transform: rotateY(-90deg); /* Start rotated 90 degrees to the side */
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.4s ease-out;
}
.modal.visible .modal-content {
    opacity: 1;
    transform: rotateY(0deg); /* Animate to face the front */
}
.modal-close {
    position: absolute;
    top: 10px;
    right: 25px;
    color: #555;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
}
.modal-close:hover {
    color: #000;
}
.modal-img {
    width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 4px;
}
.modal-caption {
    margin-top: 15px;
    color: #333;
    font-size: 1.1rem;
    font-weight: 500;
}

/* 9. About Section */
.about-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 3rem; align-items: center; }
.about-content p { margin-bottom: 1.5rem; line-height: 1.8; color: var(--dark-text); }
.about-image img { width: 100%; height: auto; border-radius: 0.75rem; box-shadow: 0 8px 25px rgba(0,0,0,0.2); }

/* HOD Message Section */
.hod-message {
    background-color: var(--light-bg);
    padding: 6rem 1rem;
}
.hod-content {
    display: flex;
    align-items: flex-start;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
    background: #fff;
    padding: 3rem;
    border-radius: 16px;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}
.hod-image img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid var(--secondary-color);
    margin: 0 auto 1rem;
    display: block;
    transition: transform 0.3s ease;
}
.hod-image img:hover {
    transform: scale(1.03);
}
.hod-text h2 {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    border-bottom: 3px solid var(--secondary-color);
    display: inline-block;
    padding-bottom: 0.5rem;
}
.hod-text blockquote {
    margin: 2rem 0;
    border-left: 5px solid var(--secondary-color);
    padding-left: 2rem;
    font-style: normal;
    font-size: 1.1rem;
    line-height: 1.75;
}
.hod-info h4:first-child {
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}
.hod-info h4:last-child {
    color: var(--primary-color);
    font-size: 0.95rem;
    font-weight: 400;
    opacity: 0.8;
    margin-top: 0;
}

/* 10. Faculty Section */
.faculty-section {
    padding: 4rem 1rem;
    background-color: #e2b458;
}
.faculty-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}
.faculty-card {
    background: var(--light-bg);
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    text-align: center;
    padding: 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.faculty-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}
.faculty-card img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    object-position: top;
    border-radius: 50%;
    margin: 0 auto 1rem;
    border: 4px solid var(--primary-color);
}
.video-overlay-text {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    color: white;
    font-size: 2.5rem;
    font-weight: bold;
    text-align: right;
    padding: 4rem 2rem 2rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 40%, transparent 100%);
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    pointer-events: none;
    z-index: 10;
    width: 100%;
    box-sizing: border-box;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}
.video-overlay-text.visible {
    opacity: 1;
}
@media (max-width: 768px) {
    .video-overlay-text { font-size: 1.8rem; padding: 0.8rem 1.5rem; }
}
@media (max-width: 480px) {
    .video-overlay-text { font-size: 1.4rem; padding: 0.5rem 1rem; }
}
.video-mute-btn {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s;
    z-index: 20;
}
.video-mute-btn:hover { background-color: rgba(0, 0, 0, 0.8); }
.video-mute-btn.is-unmuted {
    animation: pulse-animation 2s infinite;
}

.video-click-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 15;
    transition: opacity 0.3s ease;
}
.video-click-overlay i {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

@keyframes pulse-animation {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(255, 255, 255, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    }
}

/* 12. Student Corner & Resources */
.corner-grid, .resources-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}
.corner-card, .resource-card {
    background: #fff;
    padding: 1.5rem;
    border-radius: 0.75rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.07);
    border-top: 5px solid var(--secondary-color);
    transition: transform 0.3s;
}
.corner-card:hover, .resource-card:hover { transform: translateY(-5px); box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1); }
.corner-card img, .resource-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
}
.corner-card h3, .resource-card h3 { font-size: 1.25rem; font-weight: 700; color: var(--primary-color); margin-bottom: 0.5rem; }
.corner-link { color: var(--secondary-color); font-weight: 600; margin-top: 1rem; display: block; }
.resources { background-color: var(--light-bg); }

/* 13. IQAC */
.iqac-section { background-color: #fff; }
.iqac-coordinator { text-align: center; margin-bottom: 3rem; }
.coordinator-info { display: inline-flex; align-items: center; gap: 1rem; padding: 1rem 2rem; border: 1px solid #ddd; border-radius: 0.75rem; }
.coordinator-info img { width: 80px; height: 80px; object-fit: cover; border-radius: 50%; }
.coordinator-details h3 { font-size: 1.125rem; font-weight: 700; color: var(--primary-color); margin: 0; }
.coordinator-details p { color: #666; margin: 0; font-style: italic; }
.iqac-documents { display: flex; justify-content: center; }
.document-list { display: flex; flex-wrap: wrap; gap: 20px; max-width: 800px; }
.document-item {
    display: flex;
    align-items: center;
    gap: 15px;
    background: var(--light-bg);
    padding: 15px;
    border-radius: 0.5rem;
    flex: 1 1 calc(50% - 10px);
    border-left: 5px solid var(--primary-color);
}
.document-item i { font-size: 1.5rem; color: var(--secondary-color); }
.document-info h4 { font-size: 1rem; font-weight: 600; margin: 0 0 5px 0; color: var(--dark-text); }
.document-info p { font-size: 0.875rem; color: #777; margin: 0 0 5px 0; }
.download-link { color: var(--primary-color); font-weight: 500; font-size: 0.875rem; }

/* Event Pages Specific Styles */
.event-page-header {
    text-align: center;
    font-size: 2.8rem;
    margin-bottom: 3rem;
}
.event-section {
    padding: 2rem 0;
}
.event-item {
    margin-bottom: 3rem;
    background: #fff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}
.event-item img {
    width: 100%;
    max-width: 700px;
    margin: 1rem auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

/* 14. Responsive adjustments */
@media (max-width: 1024px) {
    .nav-menu li a { padding: 1rem 0.75rem; font-size: 0.85rem; }
    .top-bar .container { flex-direction: column; text-align: center; gap: 10px; }
    .contact-info, .kcet-codes { justify-content: center; }
}

@media (max-width: 768px) {
    .slider { height: 35vh; }
    .slide-overlay { padding: 16px 20px; bottom: 8%; }
    .slide-overlay h2 { font-size: 1.8rem; }
    .top-bar .container { align-items: center; }
    .university-brand { margin: 10px 0; }
    .contact-info span, .kcet-codes span { margin-right: 0; margin: 0 10px; }
    .nav-menu { display: none; flex-direction: column; width: 100%; position: absolute; top: 100%; left: 0; background: #fff; box-shadow: 0 4px 8px rgba(0,0,0,0.1); padding: 10px 0; }
    .nav-menu.active { display: flex; }
    .hamburger { display: block; }
    .navbar .container { justify-content: flex-end; }
    .section { padding: 3rem 1rem; }
    .about-grid, .vision-mission-grid { grid-template-columns: 1fr; }
    .hod-content { flex-direction: column; align-items: center; text-align: center; gap: 2rem; padding: 1.5rem; }
    .hod-text blockquote { text-align: left; }
    .document-item { flex: 1 1 100%; }
}

/* --- Animations --- */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    will-change: opacity, transform;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}
.download-btn{
    background-color: var(--primary-color);
    color: #fff;
    padding: 8px 15px
}

.download-btn, .view-profile-btn {
    display: inline-block;
    background-color: var(--secondary-color);
    color: #fff;
    padding: 8px 15px;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.3s;
}

.download-btn:hover, .view-profile-btn:hover {
    background-color: var(--primary-color);
}

/* Animated Gradient Background for a subtle glow effect */
.animated-gradient-bg {
    background: linear-gradient(45deg, #e0f7fa, #f3e5f5, #fffde7, #e8eaf6);
    background-size: 400% 400%;
    animation: gradient-animation 12s ease infinite;
}

@keyframes gradient-animation {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Program Cards Hover Animation */
.program-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.program-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.12);
}

/* Styles for the new gallery component */
.photo-grid > div {
    opacity: 1; /* Keep it visible by default */
    transform: translateY(0);
}

.group:hover .object-cover {
    transform: scale(1.05);
    transition: transform 0.3s ease-in-out;
}

/* Ensure line-clamp works */
.line-clamp-1 {
    -webkit-line-clamp: 1;
}
.line-clamp-2 {
    -webkit-line-clamp: 2;
}
}

/* ==========================================================================
   Polished Footer UI
   ========================================================================== */

.footer-icon-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1rem;
    color: #9ca3af; /* text-gray-400 */
    background-color: rgba(255, 255, 255, 0.1);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.footer-icon-link:hover {
    transform: translateY(-4px);
    color: white;
    box-shadow: 0 0 15px var(--glow-color, #4a90e2), 0 0 25px var(--glow-color, #4a90e2);
    background-color: var(--glow-color, #4a90e2);
}

/* Default glow */
.footer-icon-link { --glow-color: #4a90e2; }
/* Brand-specific glows */
.footer-icon-link.facebook { --glow-color: #1877F2; }
.footer-icon-link.twitter { --glow-color: #1DA1F2; }
.footer-icon-link.linkedin { --glow-color: #0A66C2; }
.footer-icon-link.instagram { --glow-color: #E4405F; }
.footer-icon-link.github { --glow-color: #6e5494; }

.dev-card {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 1rem;
    padding: 1.5rem 1rem;
    width: 100%;
    max-width: 220px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}
.group:hover .dev-card {
    transform: translateY(-8px);
    background-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}
.dev-img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 15%;
    margin: 0 auto 0.75rem;
    border: 3px solid #4b5563; /* gray-600 */
    transition: all 0.3s ease;
}
.group:hover .dev-img {
    transform: scale(1.1);
    border-color: var(--secondary-color);
}
.dev-name {
    font-weight: 600;
    color: #fff;
    margin-top: 1rem;
}
.dev-socials {
    display: flex; justify-content: center; gap: 0.5rem; margin-top: 0.75rem;
    opacity: 0; transform: translateY(10px); transition: all 0.3s ease;
}
.group:hover .dev-socials {
    opacity: 1; transform: translateY(0);
}

/* ==========================================================================
   Polished Quick Access Cards
   ========================================================================== */
.quick-access-card {
    position: relative;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    border-radius: 1rem;
    padding: 2rem 1.5rem;
    text-align: center;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.quick-access-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    border-radius: inherit;
    border: 2px solid transparent;
    background: conic-gradient(from var(--angle), transparent 20%, var(--glow-color), transparent 40%) border-box;
    -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: destination-out;
    mask-composite: exclude;
    animation: spin 3s linear infinite;
    opacity: 0;
    pointer-events: none; /* Allow clicks to pass through */
    transition: opacity 0.4s ease;
}
.quick-access-card:hover::before {
    opacity: 1;
}
.quick-access-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}
.quick-access-card .card-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
    transition: color 0.3s ease, transform 0.3s ease;
}
.quick-access-card:hover .card-icon {
    color: var(--glow-color);
    transform: scale(1.1);
}
.quick-access-card .card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--dark-text);
    margin-bottom: 1.5rem;
}
.quick-access-card .card-link {
    font-weight: 600;
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}
.quick-access-card:hover .card-link {
    color: var(--glow-color);
}
.quick-access-card .card-link i {
    margin-left: 0.25rem;
    transition: transform 0.3s ease;
}
.quick-access-card:hover .card-link i {
    transform: translateX(4px);
}

@property --angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

@keyframes spin {
  to {
    --angle: 360deg;
  }
}
