/* General Styles */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #0d1117;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

/* Skip Navigation Link */
.skip-nav {
    position: absolute;
    top: -100%;
    left: 0;
    background: #58a6ff;
    color: #0d1117;
    padding: 12px 20px;
    z-index: 1000;
    font-size: 1em;
    font-weight: bold;
    text-decoration: none;
    border-radius: 0 0 4px 0;
    transition: top 0.2s;
}

.skip-nav:focus {
    top: 0;
}

/* Header Styles */
.header {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 50px;
    padding: 20px 50px;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 100;
}

.nav-buttons {
    display: flex;
    gap: 20px;
    margin-left: auto;
    margin-right: 100px;
}

.nav-buttons a {
    text-decoration: none;
    color: #58a6ff;
    font-size: 1.2em;
    padding: 11px 20px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    border: 2px solid #58a6ff;
    border-radius: 8px;
    transition: all 0.3s ease-in-out;
    background: transparent;
    position: relative;
    overflow: hidden;
}

.nav-buttons a::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: #58a6ff;
    transition: all 0.3s ease-in-out;
    z-index: -1;
}
.nav-buttons a:hover::before {
    left: 0;
}
.nav-buttons a:hover {
    color: #0d1117;
}

.logo img {
    height: 100px;
    width: auto;
    animation: pulse 2s ease-in-out;
}
.latte_logo img{
    height: 125px;
    width: auto;
    animation: pulse 2s ease-in-out;
}

/* Main Container */
.container {
    padding: 100px 50px;
    text-align: center;
    margin-top: 120px;
}

h1 {
    color: #58a6ff;
    font-size: 3em;
}

/* Footer Styles */
footer {
    background-color: #161b22;
    padding: 20px 50px;
    color: white;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    border-top: 2px solid #58a6ff;
    width: 100%;
}
.footer-contact {
    max-width: 250px;
}

.footer-contact img {
    height: 100px;
    width: 100px;
    margin-left: 50px;
}

.footer-contact p {
    margin-top: 5px;
    font-weight: bold;
}

.footer-contact a {
    color: #58a6ff;
    text-decoration: none;
    font-size:1em;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 2px;
}
.footer-column h2 {
    border-bottom: 2px solid #58a6ff;
    padding-bottom: 5px;
    font-size: 1.1em;
}

.footer-column ul li a {
    color: #58a6ff;
    text-decoration: none;
    transition: color 0.3s ease-in-out;
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 2px;
}

.footer-column ul li a:hover {
    color: #ffffff;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
}

.footer-social a img {
    height: 25px;
    transition: transform 0.3s ease-in-out;
}

.footer-social a img:hover {
    transform: scale(1.1);
}

/* Home Page Specific Styles */
.home-page .container {
    padding: 100px 50px;
    position: relative;
    z-index: 1;
    text-align: center;
    margin-top:150px;
    margin-bottom:100px;
}

.home-page h1 {
    color: #58a6ff;
    font-size: 3em;
    animation: particlesFadeIn 3s ease-in-out forwards, textGlow 2s infinite alternate ease-in-out;
}

.home-page p {
    font-size: 1.5em;
    opacity: 0.8;
    animation: captionFadeIn 3s ease-in-out forwards, textGlow 2s infinite alternate ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes textGlow {
    0% { text-shadow: 0 0 10px #58a6ff; }
    100% { text-shadow: 0 0 20px #58a6ff; }
}

@keyframes slideIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes particlesFadeIn {
    0% { opacity: 0; letter-spacing: 10px; filter: blur(5px); }
    50% { opacity: 0.5; letter-spacing: 5px; filter: blur(2px); }
    100% { opacity: 1; letter-spacing: 0; filter: blur(0px); }
}
@keyframes captionFadeIn {
    0% { opacitzy: 0; transform: translateY(10px); filter: blur(5px); }
    50% { opacity: 0.5; transform: translateY(5px); filter: blur(2px); }
    100% { opacity: 1; transform: translateY(0); filter: blur(0px); }
}
/* About Page Specific Styles */
.about-page .container {
    max-width: 800px;
    padding: 20px;
    text-align: center;
}

.hero-section {
    margin-top: 30px;
    text-align: center;
}
.hero-section h1 {
    font-size: 2.5em;
    color: #58a6ff;
}
.hero-section p {
    font-size: 1.2em;
    font-weight: bold;
    opacity: 0.9;
    border-right: 2px solid #58a6ff;
    white-space: nowrap;
    overflow: hidden;
    display: inline-block;
    animation: typing 4s steps(40, end), blink-caret 0.75s step-end infinite;
}

/* Lab Members Section */
.lab-members {
    text-align: center;
    margin-top: 50px;
}
/*.members-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    justify-content: center;
    max-width: 1000px;
    margin: auto;
}
.member-card {
    background: #161b22;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 0 10px rgba(88, 166, 255, 0.5);
    text-align: center;
    transition: transform 0.3s ease-in-out;
}*/
.members-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    justify-content: center;
    max-width: 1000px;
    margin: auto;
}

/* Special Rule: If Only One Member Exists, It Won't Stretch */
.members-grid:has(.member-card:only-child) {
    display: flex;
    justify-content: center;
}

/* Member Card Styling */
.member-card {
    background: #161b22;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 0 10px rgba(88, 166, 255, 0.5);
    text-align: center;
    text-align: center;
    transition: transform 0.3s ease-in-out;
}
.member-card:hover {
    transform: scale(1.05);
}
.member-card img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 10px;
    border: 3px solid #58a6ff;
}
.member-card h3 {
    margin: 10px 0 5px;
    color: #58a6ff;
}
.member-card .designation {
    font-size: 1em;
    opacity: 0.8;
}
.member-card .member-details {
    display: none;
    margin-top: 10px;
}
.expand-btn {
    margin-top: 10px;
    padding: 12px 20px;
    min-height: 44px;
    border: none;
    background-color: #58a6ff;
    color: #0d1117;
    font-size: 1em;
    cursor: pointer;
    border-radius: 5px;
    transition: background 0.3s;
}
.expand-btn:hover {
    background-color: #4177c9;
}


.social-icons {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 5px;
}


.social-icons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    border-radius: 4px;
    -webkit-tap-highlight-color: transparent;
}

.social-icons a img {
    width: 24px;
    height: 24px;
    background: none;
    border: none;
    border-radius: 0;
    transition: transform 0.3s ease-in-out;
}

/* Accessibility: Visible focus indicators for keyboard users */
:focus:not(:focus-visible) {
    outline: none;
}

:focus-visible {
    outline: 2px solid #58a6ff;
    outline-offset: 3px;
    border-radius: 3px;
}

@keyframes typing {
    from { width: 0; }
    to { width: 100%; }
}
@keyframes blink-caret {
    from, to { border-color: transparent; }
    50% { border-color: #58a6ff; }
}
/* News Page Specific Styles */
/* News Page Layout */
.news-page .container {
    display: flex;
    flex-direction: column;
    max-width: 1200px;
    padding: 120px 30px 50px;
    margin: auto;
}

/* News Cards */
.news-card {
    background: #161b22;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 0 15px rgba(88, 166, 255, 0.5);
    margin-bottom: 20px;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.news-card:hover {
    transform: scale(1.05);
    box-shadow: 0 0 25px rgba(88, 166, 255, 0.7);
}

/* Read More */
.read-more {
    color: #58a6ff;
    font-weight: bold;
    text-decoration: none;
    display: flex;
    align-items: center;
}

.news-details-page {
    background-color: #0d1117;
    color: #ffffff;
    font-family: Arial, sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    padding: 20px;
}

.news-content {
    max-width: 800px;
    text-align: left;
    line-height: 1.6;
}

.news-content h1 {
    font-size: 2.5em;
    color: #58a6ff;
    margin-bottom: 10px;
}

.news-date {
    font-size: 1.2em;
    color: #c9d1d9;
    margin-bottom: 20px;
    font-style: italic;
}

.news-body p {
    font-size: 1.2em;
    color: #c9d1d9;
    margin-bottom: 15px;
}

.news-body blockquote {
    font-size: 1.2em;
    font-style: italic;
    color: #58a6ff;
    border-left: 3px solid #58a6ff;
    padding-left: 15px;
    margin: 20px 0;
}

/* Back Button */
.back-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 20px;
    padding: 12px 15px;
    min-height: 44px;
    background-color: #58a6ff;
    color: #0d1117;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s;
}

.back-btn:hover {
    background-color: #4177c9;
}


/*---------------------------BLOGS PAGE CSS-------------------------------------*/
/* Blogs Page Specific Styles */
.blogs-page .container {
    max-width: 1000px;
    padding: 20px;
    text-align: center;
    margin-top: 120px;
}

.blog-section {
    margin-top: 50px;
}

.blog-card {
    background: #161b22;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 0 15px rgba(88, 166, 255, 0.5);
    margin-bottom: 20px;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.blog-card:hover {
    transform: scale(1.05);
    box-shadow: 0 0 25px rgba(88, 166, 255, 0.7);
}

.blog-card h2 {
    color: #58a6ff;
}

.blog-date {
    font-size: 0.9em;
    opacity: 0.8;
    margin-bottom: 10px;
}

.read-more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 10px;
    padding: 12px 20px;
    min-height: 44px;
    border: none;
    background-color: #58a6ff;
    color: #0d1117;
    font-size: 1em;
    cursor: pointer;
    border-radius: 5px;
    text-decoration: none;
    transition: background 0.3s;
}

.read-more:hover {
    background-color: #4177c9;
}
/*-----------------------------------------Teaching---------------------------------------------*/
/* Teaching Container*/
.teaching-container {
    max-width: 900px;
    margin: 120px auto 60px;
    padding: 20px;
    text-align: center;
}

.teaching-container h1 {
    margin-top: 30px;
    font-size: 2.5em;
    color: #58a6ff;
}

.teaching-container p {
    font-size: 1.2em;
    color: #c9d1d9;
    margin: 15px auto 10px;
    text-align: center;
    max-width: 80%;
}


.accordion {
    width: 80%;
    max-width: 900px;
    margin: 20px auto;
}


.accordion-btn {
    width: 100%;
    background: #161b22;
    color: #ffffff;
    font-size: 1.2em;
    padding: 15px;
    text-align: left;
    border: 1px solid #58a6ff;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s ease-in-out, transform 0.2s;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.accordion-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* Active State */
.accordion-btn.active {
    background: #0d1117;
    border-color: #58a6ff;
}

/* Arrow Indicator for Accordion */
.accordion-btn::after {
    content: "▼";
    font-size: 1.2em;
    color: #58a6ff;
    transition: transform 0.3s;
}

.accordion-btn.active::after {
    transform: rotate(180deg);
}

/* Accordion Content */
.accordion-content {
    background: #0d1117;
    color: #c9d1d9;
    padding: 15px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out;
    border-radius: 8px;
    margin-bottom: 10px;
}

/* Syllabus and Schedule Links */
.accordion-content a {
    color: #58a6ff;
    text-decoration: none;
    font-weight: bold;
    margin-right: 10px;
}

.accordion-content a:hover {
    text-decoration: underline;
}
/*Research-Page*/
/* Flip Card Container */
.project-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
}

/* Project Card Styling */
.project-card {
    width: 320px;
    background: #161b22;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(88, 166, 255, 0.3);
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    position: relative;
}

/* Project Card Hover Effect */
.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(88, 166, 255, 0.4);
}

/* Project Header */
.project-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 10px;
}

/* Funding Badge */
.funding-badge {
    background: #ff4d4d;
    color: white;
    font-size: 0.9em;
    padding: 5px 10px;
    border-radius: 5px;
    font-weight: bold;
    margin-bottom: 5px;
}

/* UF Funding Badge */
.uf-badge {
    background: #58a6ff;
}

/* Project Card Title */
.project-card h3 {
    font-size: 1.3em;
    color: #58a6ff;
    margin-bottom: 5px;
}

/* Project Card Text */
.project-card p {
    font-size: 1em;
    color: #c9d1d9;
    margin-bottom: 5px;
}
.research-section {
    margin-top: 50px;
    text-align: center;
}
.research-section h2 {
    color: #58a6ff;
    font-size: 2em;
    margin-bottom: 20px;
}
.research-card {
    background: #161b22;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 0 15px rgba(88, 166, 255, 0.5);
    margin: 20px auto;
    max-width: 800px;
    text-align: center;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}
.research-card:hover {
    transform: scale(1.05);
    box-shadow: 0 0 25px rgba(88, 166, 255, 0.7);
}
.research-card h3 {
    color: #58a6ff;
    font-size: 1.5em;
    margin-bottom: 10px;
}
.research-card a {
    color: #58a6ff;
    text-decoration: none;
    font-weight: bold;
}
.research-card a:hover {
    text-decoration: underline;
}

/* Gallery Page */
.gallery-page {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.gallery-page main {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.gallery-iframe-container {
    margin-top: 165px;
    flex: 1;
    width: 100%;
    overflow: hidden;
}

.gallery-iframe-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* Accessibility: Respect reduced-motion preference (UF: Don't Use Flickering/Blinking) */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}