/*
  Stylesheet for Raunit Kohli’s portfolio site.

  This CSS defines a dark, techno‑inspired aesthetic with neon accents.
  It is shared across all pages to ensure a consistent look and feel.
*/

:root {
  /* Base colours */
  --bg-color: #101035;
  --primary-color: #00bfff;
  --secondary-color: #1a1a40;
  --accent-color: #ff007f;
  --tag-bg: #2a2a50;
  --tag-color: #8ecaff;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Inter', sans-serif;
  color: #f5f5f5;
  background: var(--bg-color);
  line-height: 1.6;
}

/* ----- Header ----- */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(10, 10, 35, 0.9);
  backdrop-filter: blur(4px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
  z-index: 1000;
  border-bottom: 1px solid var(--secondary-color);
  box-sizing: border-box;
}

header h1 {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.5rem;
  color: var(--primary-color);
  margin: 0;
}

nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

nav a {
  color: #e0e0e0;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
  white-space: nowrap;
}

nav a:hover,
nav a:focus {
  color: var(--primary-color);
}

/* ----- Main layout ----- */
main {
  padding: 120px 80px 60px;
}

.big-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 3rem;
  margin-bottom: 40px;
  text-align: center;
  color: var(--primary-color);
}

/* ----- Home page specific ----- */
.home-container {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: center;
}

.photo-container {
  flex: 1 1 350px;
  max-width: 400px;
}

.photo-container img {
  width: 100%;
  border-radius: 8px;
  object-fit: cover;
}

.summary-container {
  flex: 1 1 400px;
  max-width: 600px;
  display: flex;
  flex-direction: column;
}

.summary-container p {
  font-size: 1.1rem;
  margin-bottom: 20px;
}

.box {
  background: var(--secondary-color);
  border-left: 4px solid var(--primary-color);
  padding: 20px;
  margin-bottom: 20px;
  border-radius: 6px;
}

/* RL boxes use the accent colour for their border */
.box.rl {
  border-left-color: var(--accent-color);
}

.box h2 {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 1.3rem;
  color: var(--primary-color);
}

.box.rl h2 {
  color: var(--accent-color);
}

.box ul {
  margin: 0;
  padding-left: 20px;
}

.box a {
  display: inline-block;
  margin-top: 10px;
  color: var(--primary-color);
  border-bottom: 1px solid var(--primary-color);
  text-decoration: none;
  font-weight: 500;
}

.box.rl a {
  color: var(--accent-color);
  border-bottom-color: var(--accent-color);
}

/* Social links box */
.social-floating {
  background: var(--secondary-color);
  border: 1px solid var(--primary-color);
  border-radius: 8px;
  padding: 15px 20px;
  margin: 40px auto 20px;
  max-width: 600px;
  display: flex;
  justify-content: center;
  gap: 30px;
}

.social-floating a {
  color: var(--primary-color);
  text-decoration: none;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color 0.3s ease;
}

.social-floating a:hover {
  color: var(--accent-color);
}

/* ----- Page titles and descriptions ----- */
.page-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 10px;
  color: var(--primary-color);
}

.page-description {
  text-align: center;
  margin-bottom: 40px;
  font-size: 1.2rem;
  color: #ccc;
}

.section-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.8rem;
  color: var(--primary-color);
  margin-top: 40px;
  margin-bottom: 20px;
  text-align: left;
}

/* ----- Items for work, research, etc. ----- */
.item {
  padding: 20px;
  margin-bottom: 30px;
  background: var(--secondary-color);
  border-radius: 6px;
}

.item h3 {
  margin: 0 0 5px;
  font-size: 1.3rem;
}

/* Primary color items (blue) */
.item.primary {
  border-left: 4px solid var(--primary-color);
}

.item.primary h3 {
  color: var(--primary-color);
}

/* Accent color items (red/pink) */
.item.accent {
  border-left: 4px solid var(--accent-color);
}

.item.accent h3 {
  color: var(--accent-color);
}

.item .subtitle {
  margin: 0 0 10px;
  font-size: 0.9rem;
  color: #aaa;
}

.item .subtitle_list {
  margin: 0 0 5px;
  font-size: 0.9rem;
  color: #aaa;
}

.item p,
.item ul {
  margin: 0 0 10px;
  font-size: 1rem;
  color: #ddd;
}

.item ul {
  padding-left: 20px;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.tag {
  background: var(--tag-bg);
  color: var(--tag-color);
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.8rem;
}

.links {
  margin-top: 10px;
}

.links a {
  color: var(--primary-color);
  margin-right: 15px;
  text-decoration: none;
  border-bottom: 1px solid var(--primary-color);
  font-size: 0.9rem;
  transition: color 0.3s ease, border-bottom-color 0.3s ease;
}

.links a:hover {
  color: var(--accent-color);
  border-bottom-color: var(--accent-color);
}

/* ----- Footer ----- */
footer {
  border-top: 1px solid var(--secondary-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 40px;
  margin-top: 60px;
  background: rgba(10, 10, 35, 0.9);
  backdrop-filter: blur(4px);
}

footer .license {
  font-size: 0.8rem;
  color: #888;
}

footer .footer-icons {
  display: flex;
  gap: 20px;
}

footer .footer-icons a {
  color: var(--primary-color);
  font-size: 1.2rem;
  text-decoration: none;
  transition: color 0.3s ease;
}

footer .footer-icons a:hover {
  color: var(--accent-color);
}

/* ----- Responsive ----- */
@media (max-width: 768px) {
  header {
    flex-direction: column;
    align-items: flex-start;
    padding: 15px 20px;
  }
  
  nav {
    width: 100%;
  }
  
  nav ul {
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-start;
  }
  
  nav a {
    font-size: 0.9rem;
    padding: 5px 8px;
  }
  
  main {
    padding: 120px 40px 60px;
  }
  
  .home-container {
    flex-direction: column;
    align-items: center;
  }
  .summary-container,
  .photo-container {
    max-width: 100%;
  }
}

/* Additional responsive breakpoint for very small screens */
@media (max-width: 480px) {
  header {
    padding: 10px 15px;
  }
  
  header h1 {
    font-size: 1.2rem;
    margin-bottom: 8px;
  }
  
  nav ul {
    gap: 5px;
  }
  
  nav a {
    font-size: 0.8rem;
    padding: 4px 6px;
  }
  
  main {
    padding: 140px 20px 60px;
  }
  
  .big-title {
    font-size: 2rem;
  }
}