@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;700&display=swap');

body {
  font-family: 'Inter', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
  margin: 0;
  padding: 0;
  background: #121212;
  color: #e0e0e0;
}

header {
  text-align: center;
  background: #1f2937;
  color: #fff;
  padding: 24px 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.site-name {
  font-size: 2.5rem;
  margin: 0;
  font-weight: 700;
}

nav {
  background: #343a40;
  padding: 12px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

nav a {
  color: #f8f9fa;
  padding: 8px 12px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

nav a.active {
  background: #495057;
  border-radius: 4px;
}

nav a:hover {
  background: #495057;
  border-radius: 4px;
}

main {
  padding: 20px;
  max-width: 1000px;
  margin: 20px auto;
  background: #1e1e1e;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  border-radius: 4px;
}
.gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.gallery img {
  width: 150px;
  height: auto;
}

/* Responsive video embeds */
.video-container {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  max-width: 100%;
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* Simple fade-in animation used when switching pages */
.fade-in {
  animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Accordion styles for resume */
.accordion details {
  border: none;
  border-radius: 6px;
  margin-bottom: 12px;
  background: #1e1e1e;
  box-shadow: 0 2px 4px rgba(0,0,0,0.3);
  overflow: hidden;
}

.accordion summary {
  padding: 12px 16px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  list-style: none;
}

.accordion details[open] summary {
  background: #2a2a2a;
  border-bottom: 1px solid #333;
}

.accordion .logo {
  width: 40px;
  height: auto;
  border-radius: 6px;
  background: #1f1f1f;
  padding: 3px;
}

.accordion .content {
  padding: 12px 16px;
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.5s ease;
}

.accordion details[open] .content {
  max-height: 500px;
}

.slide-in {
  animation: slideIn 0.5s ease;
}

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

/* Resume download link styling */
.resume-link {
  display: inline-block;
  margin-top: 20px;
  padding: 10px 16px;
  background: #343a40;
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

.resume-link:hover {
  background: #495057;
}

/* Logo grid on home page */
.logo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
  justify-items: center;
  padding: 0 20px;
}

.project-card {
  background: #1e1e1e;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  padding: 16px;
  text-align: center;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  width: 100%;
  max-width: 250px;
}

.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.project-card img {
  max-width: 80px;
  height: auto;
  border-radius: 8px;
  background: #1f1f1f;
  padding: 4px;
}

/* Support multiple logos within the same item */
.logo-pair {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

.project-card .logo-pair img {
  width: 75px;
  height: auto;
  border-radius: 8px;
  background: #1f1f1f;
  padding: 4px;
}

.accordion .logo-pair img {
  width: 40px;
  border-radius: 6px;
  background: #1f1f1f;
  padding: 3px;
}

/* Modal styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal {
  background: #1e1e1e;
  padding: 20px;
  border-radius: 4px;
  max-width: 90%;
  width: 400px;
  position: relative;
  box-shadow: 0 2px 10px rgba(0,0,0,0.5);
  color: #e0e0e0;
}

.modal-close {
  position: absolute;
  top: 8px;
  right: 8px;
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
}

/* Mobile nav improvements */
@media (max-width: 600px) {
  nav {
    flex-direction: column;
    align-items: center;
  }
  nav a {
    display: block;
    padding: 16px;
  }
}
