/* Shashwat Singh | Publications & Software Stylesheet */

:root {
  --background-dark: #080412;
  --bg-cosmic: radial-gradient(circle at 50% 30%, rgba(28, 12, 55, 1) 0%, rgba(8, 4, 18, 1) 100%);
  --accent-gold: hsl(38, 100%, 55%);
  --accent-purple: hsl(265, 100%, 65%);
  --accent-teal: #519e96;
  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.7);
  --glass-bg: rgba(25, 15, 45, 0.45);
  --glass-border: rgba(255, 255, 255, 0.08);
  --font-header: 'Space Grotesk', sans-serif;
  --font-body: 'Outfit', sans-serif;
  --font-code: 'Fira Code', monospace;
  --width-container: 1100px;
}

* {
  border: 0;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  width: 100%;
  min-height: 100%;
  background-color: var(--background-dark);
  color: var(--text-primary);
  font-family: var(--font-body);
  overflow-x: hidden;
  line-height: 1.6;
}

/* Glassmorphic Navbar */
.navbar {
  position: sticky;
  top: 0;
  width: 100%;
  background: rgba(20, 10, 30, 0.75);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  z-index: 1000;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.navbar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: var(--width-container);
  margin: 0 auto;
  padding: 1rem 2rem;
}

.nav-back-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #fff;
  font-family: var(--font-header);
  font-weight: 600;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.nav-back-button:hover {
  color: var(--accent-gold);
  text-shadow: 0 0 10px rgba(255, 180, 50, 0.4);
  transform: translateX(-3px);
}

.navbar-title {
  font-family: var(--font-header);
  font-weight: 600;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* Page Header Block */
.header-block {
  padding: 4rem 0 2rem 0;
  text-align: center;
  background-color: var(--background-dark);
}

.page-title {
  font-family: var(--font-header);
  font-size: 3.2rem;
  font-weight: 600;
  letter-spacing: -1.5px;
  background: linear-gradient(135deg, #ffffff 40%, var(--accent-gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1rem;
}

/* Tab Switcher Styling */
.tab-container {
  display: flex;
  justify-content: center;
  margin-bottom: 3rem;
  gap: 1rem;
}

.tab-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--glass-border);
  color: var(--text-secondary);
  font-family: var(--font-header);
  font-weight: 600;
  font-size: 1rem;
  padding: 0.8rem 2rem;
  border-radius: 12px;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.tab-btn:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.tab-btn.active {
  background: rgba(255, 120, 50, 0.12);
  border-color: var(--accent-gold);
  color: #fff;
  box-shadow: 0 0 20px rgba(255, 120, 50, 0.25);
}

/* Main Container Section */
.main-section {
  background: var(--bg-cosmic);
  min-height: calc(100vh - 280px);
  padding: 0 2rem var(--spacing-xxl) 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.tab-content {
  display: none;
  width: 100%;
  max-width: var(--width-container);
  animation: fadeIn 0.4s ease-out forwards;
}

.tab-content.active {
  display: block;
}

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

/* Cards & Lists Layout */
.list-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 2.5rem;
  backdrop-filter: blur(20px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
  position: relative;
  display: flex;
  flex-direction: column;
}

.card:hover {
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.card-title {
  font-family: var(--font-header);
  font-size: 1.45rem;
  font-weight: 600;
  color: #fff;
  line-height: 1.4;
  margin-bottom: 0.75rem;
}

.card-authors {
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin-bottom: 0.75rem;
  font-weight: 300;
}

.card-authors strong {
  color: #fff;
  font-weight: 600;
}

.card-meta {
  font-size: 0.95rem;
  color: var(--accent-gold);
  margin-bottom: 1.25rem;
  font-family: var(--font-header);
  letter-spacing: 0.5px;
}

.card-links {
  display: flex;
  gap: 1rem;
  margin-top: auto;
}

.btn-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #fff;
  padding: 0.5rem 1.2rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-family: var(--font-header);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-link:hover {
  background: rgba(255, 120, 50, 0.12);
  border-color: var(--accent-gold);
  color: #fff;
  box-shadow: 0 0 15px rgba(255, 120, 50, 0.2);
  transform: translateY(-2px);
}

/* Software Project Grid Card Styling */
.project-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.project-year {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  padding: 0.2rem 0.8rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-family: var(--font-code);
  color: var(--accent-teal);
}

.project-desc {
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin-bottom: 1.5rem;
  font-weight: 300;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: auto;
}

.tag {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 0.15rem 0.6rem;
  border-radius: 6px;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.55);
  font-family: var(--font-code);
}

/* Responsive Overrides */
@media (max-width: 768px) {
  .navbar-container {
    padding: 0.8rem 1rem;
  }
  
  .navbar-title {
    display: none;
  }
  
  .header-block {
    padding: 2.5rem 0 1.5rem 0;
  }
  
  .page-title {
    font-size: 2.2rem;
  }
  
  .tab-container {
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    width: 90%;
    margin-bottom: 2rem;
  }
  
  .tab-btn {
    width: 100%;
    text-align: center;
  }
  
  .main-section {
    padding: 0 1rem var(--spacing-xxl) 1rem;
  }
  
  .card {
    padding: 1.5rem;
  }
  
  .card-title {
    font-size: 1.2rem;
  }
  
  .card-authors {
    font-size: 0.95rem;
  }
  
  .project-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
}
