/* css/style.css */

/* At the top of css/style.css */
*,
*::before,
*::after {
  box-sizing: border-box;
}


body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(to bottom right, #f9fafb, #e3e8f0);
    margin: 0;
}

/* Header & Navigation */
header {
    background: #333;
    color: #fff;
    padding: 1rem 0;
    text-align: center;
}

header h1 {
    margin-bottom: 1rem;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex; /* Makes nav items horizontal */
    justify-content: center;
    flex-wrap: nowrap; /* Prevent wrapping unless forced */
}

nav ul li {
    margin: 0 15px;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    padding: 5px 10px; /* Added horizontal padding for easier tapping */
    display: block; /* Make the whole area clickable */
}

nav ul li a:hover {
    text-decoration: underline;
}

/* Main Content Area */
main {
    padding: 20px;
    max-width: 960px;
    margin: 20px auto; /* Center the main content */
    background: #fff;
    border-radius: 8px; /* Slightly rounded corners */
}

section {
    margin-bottom: 30px;
    padding: 15px 0;
    border-bottom: 1px solid #eee; /* Subtle separator between sections */
}

section:last-of-type {
    border-bottom: none; /* No border on the last section */
}

h2 {
    color: #0056b3; /* A nice blue for section titles */
    margin-bottom: 15px;
    text-align: center;
}

p {
    margin-bottom: 10px;
}

/* Images */
img {
    max-width: 100%; /* Ensures images are responsive */
    height: auto;
    display: block; /* Removes extra space below images */
    margin: 20px auto; /* Centers images */
    border-radius: 5px; /* Slightly rounded corners for images */
}

/* Publications List Styling */
#publications-list {
    max-width: 800px;
    margin: 0 auto 50px;
    padding: 0 15px;
}

#publications-list h2 {
    margin-bottom: 25px;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: #003366;
    text-transform: uppercase;
    text-align: center;
}

#publications-list ul {
    list-style-type: circle;
    margin-left: 30px;
    padding-left: 0;
}

#publications-list li {
    margin-bottom: 14px;
    line-height: 1.6;
    font-size: 1rem;
    color: #222;
}

#publications-list li strong {
    color: #004085; /* Darker blue for date */
    font-weight: 600;
    margin-right: 6px;
}

#publications-list li em {
    font-style: italic;
    color: #555;
}

#publications-list li a {
    color: #007bff;
    text-decoration: none;
    transition: color 0.3s ease;
}

#publications-list li a:hover,
#publications-list li a:focus {
    text-decoration: underline;
    color: #0056b3;
}

#publications-list li a:focus-visible {
    outline: 2px dashed #0056b3;
    outline-offset: 3px;
}

/* Video Gallery Styling */
#video-gallery .video-item {
    margin-bottom: 30px;
    background-color: #f9f9f9;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

#video-gallery .video-item h3 {
    margin-top: 0;
    color: #0056b3;
    text-align: center;
    margin-bottom: 15px;
}

#video-gallery .video-item iframe {
    width: 100%;
    /* Aspect ratio hack for responsive iframes */
    aspect-ratio: 16 / 9; /* Or height: auto; and max-width if you prefer */
    display: block;
    margin: 0 auto 15px auto; /* Center and add space below */
    border: none; /* Remove default iframe border */
    border-radius: 5px;
}

#video-gallery .video-item p {
    text-align: center;
    font-style: italic;
    color: #555;
}

/* Quick Links (index.php) */
#quick-links .links-container {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    gap: 20px; /* Space between boxes */
    margin-top: 20px;
}

.feature-list {
  padding-left: 25px;
  margin-left: 0;
  list-style-type: disc;
  list-style-position: outside;
}

.feature-list li {
  margin-bottom: 0.5rem;
}

.feature-list ul {
  padding-left: 1.5rem;
  list-style-type: circle;
}

.link-box {
    flex: 1; /* Allow boxes to grow/shrink */
    min-width: 280px; /* Minimum width before wrapping */
    background-color: #e9f7ff; /* Light blue background */
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.2s ease-in-out;
}

.link-box:hover {
    transform: translateY(-5px); /* Lift effect on hover */
}

.link-box h3 {
    margin-bottom: 10px;
    color: #0056b3;
}

.link-box a {
    text-decoration: none;
    color: inherit; /* Inherit color from h3 */
    font-weight: bold;
}

/* Footer */
footer {
    text-align: center;
    padding: 25px;
    background: #333;
    color: #fff;
    margin-top: 40px;
    border-top: 5px solid #007bff; /* A subtle blue line */
}

/* Responsive Design */
@media (max-width: 768px) {
    /* Keep nav horizontal on tablets and bigger phones */
    nav ul {
        flex-direction: row;
        justify-content: center;
        flex-wrap: nowrap;
    }

    nav ul li {
        margin: 0 10px;
    }

    main {
        padding: 15px;
        margin: 15px auto;
    }

    #quick-links .links-container {
        flex-direction: column;
        align-items: center;
    }

    .link-box {
        width: 90%; /* Make boxes fill more width on small screens */
    }
}

@media (max-width: 600px) {
    #publications-list ul {
        margin-left: 15px;
    }

    #publications-list li {
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 1.8rem;
    }
    h2 {
        font-size: 1.5rem;
    }
    #hero p, #publications-list li, #video-gallery .video-item p {
        font-size: 0.95rem;
    }
}

/* Only stack nav vertically on very small screens (like very old phones or tiny windows) */
@media (max-width: 320px) {
    nav ul {
        flex-direction: column;
        align-items: center;
        flex-wrap: wrap;
    }

    nav ul li {
        margin: 10px 0;
    }
}

@media (max-width: 600px) {
  .feature-list {
    padding-left: 1.5rem; /* Prevent left-cutoff on small screens */
  }

  .feature-list ul {
    padding-left: 1.5rem;
  }
}

/* Hero Section */
.hero-section {
    background: linear-gradient(to right, #f7f9fc, #e0e7ff);
    padding: 40px 20px;
    border-radius: 8px;
}

.hero-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 30px;
    margin-bottom: 20px;
}

.profile-photo {
    border-radius: 50%;
    width: 250px;
    height: 250px;
    object-fit: cover;
    border: 3px solid #3b82f6;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.lyvelyte-photo {
    border-radius: 50%;
    width: 250px;
    height: 250px;
    object-fit: cover;
    border: 3px solid #3b82f6;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center; 
    margin-top: 20px; 
    margin-bottom: 20px;
}

.intro-text h1 {
    font-size: 2rem;
    color: #1f2937;
    margin: 0;
}

.intro-text h2, .intro-text h3 {
    font-size: 1.2rem;
    color: #4b5563;
    margin: 5px 0;
}

.bio {
    max-width: 800px;
    margin: 20px auto;
    text-align: left;
    font-size: 1rem;
    line-height: 1.7;
}

/* Experience Section Cards */
.job-entry {
    background: #ffffff;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.job-entry strong {
    font-size: 1.1rem;
    color: #111827;
}

.job-entry em {
    display: block;
    color: #6b7280;
    margin-bottom: 10px;
}

/* Section Background Enhancements */
#hero {
    background: #f0f4f8; /* soft blue-gray for intro */
}

#experience {
    background: #ffffffcc; /* slightly translucent white */
}

/* Fix for LyveLyte video grid layout */

.video-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .video-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.video-wrapper {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 aspect ratio */
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.video-caption {
  text-align: center;
  font-style: italic;
  margin-top: 0.5rem;
}


.image-gallery {
    margin: 2em 0;
    text-align: center;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1em;
    padding: 1em;
}

.gallery-grid img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}