/*
 * Portfolio Website Styling for Sid Vaidyanathan
 *
 * The site uses a dark, monochromatic palette with a subtle blue
 * accent to complement imagery from the user’s aerospace projects.
 * Layouts are responsive and make liberal use of Flexbox and
 * CSS Grid to adapt gracefully to different screen sizes. Cards
 * elevate content with soft shadows, while the gallery section
 * provides a simple lightbox experience via JavaScript.
 */

/* Reset some basic elements */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Import Open Sans font from Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;500;600;700&display=swap');

body {
  /* Use the imported Open Sans font for all text */
  font-family: 'Open Sans', sans-serif;
  background-color: #0a0a0a;
  color: #e5e5e5;
  line-height: 1.6;
  scroll-behavior: smooth;
}

a {
  color: #6ccff6;
  text-decoration: none;
}

a:hover {
  color: #9cdcf9;
}

/* Navigation */
nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.85);
  padding: 15px 40px;
  z-index: 1000;
  backdrop-filter: blur(4px);
}

nav ul {
  list-style: none;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

nav ul li {
  margin-left: 25px;
}

nav ul li a {
  font-size: 0.95rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06rem;
  transition: color 0.3s ease;
}

nav ul li a:hover {
  color: #6ccff6;
}

/* Hero Section */
.hero {
  height: 100vh;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  background: url('images/image-004.jpg') center/cover no-repeat fixed;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 0 20px;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 0.5rem;
  color: #ffffff;
  font-weight: 700;
}

.hero h2 {
  font-size: 1.5rem;
  font-weight: 400;
  margin-bottom: 1.5rem;
  color: #cfcfcf;
}

.hero p {
  font-size: 1rem;
  margin-bottom: 1.8rem;
  color: #dddddd;
}

.btn {
  display: inline-block;
  padding: 12px 28px;
  background: #6ccff6;
  color: #0a0a0a;
  border-radius: 4px;
  font-weight: 600;
  transition: background 0.3s ease;
}

.btn:hover {
  background: #89d5f7;
}

/* Section wrapper */
section {
  padding: 80px 20px;
}

section h2 {
  text-align: center;
  margin-bottom: 40px;
  font-size: 2.5rem;
  color: #6ccff6;
  font-weight: 600;
}

/* About Section */
/* About section container: only apply background color; layout handled by about-wrapper */
.about {
  background-color: #111;
}

/* Wrapper for the about images and text, retains the original flex behaviour */
.about-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}

.about-img {
  flex: 1 1 300px;
  display: flex;
  justify-content: center;
  margin-bottom: 30px;
}

.about-img img {
  width: 280px;
  height: 280px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid #6ccff6;
  filter: grayscale(30%);
  /* Add spacing between the two about images */
  margin: 0 10px;
}

/* Ensure the About section heading spans the full width and appears above the content */
.about h2 {
  width: 100%;
  text-align: center;
  margin-bottom: 40px;
}

.about-text {
  flex: 1 1 480px;
  max-width: 700px;
  margin-left: 40px;
}

.about-text h3 {
  font-size: 1.8rem;
  margin-bottom: 15px;
  color: #ffffff;
}

.about-text p {
  font-size: 1rem;
  margin-bottom: 10px;
  color: #cccccc;
}

.about-text ul {
  list-style: disc;
  padding-left: 20px;
  margin-top: 15px;
  color: #bbbbbb;
}

.about-text ul li {
  margin-bottom: 8px;
  font-size: 0.95rem;
}

/* Experience Section */
.experience {
  background: #0d0d0d;
}

.experience .cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}

/* Layout for product development cards: arrange side by side similar to aerospace
 * and increase their width to better fill the available space. */
.product .cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}

/* Increase the width of product development cards for a bolder appearance */
.product .card {
  width: 380px;
}

.card {
  background: #111;
  border-radius: 8px;
  overflow: hidden;
  width: 320px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease;
}

.card:hover {
  transform: translateY(-8px);
}

.card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.card-content {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.card-content h3 {
  margin-top: 0;
  margin-bottom: 10px;
  color: #6ccff6;
  font-size: 1.3rem;
  font-weight: 600;
}

.card-content p {
  font-size: 0.9rem;
  color: #cccccc;
  margin-bottom: 10px;
  line-height: 1.4;
}

.card-content ul {
  list-style: square;
  padding-left: 18px;
  color: #bdbdbd;
  font-size: 0.85rem;
  margin-bottom: 10px;
}

.card-content ul li {
  margin-bottom: 6px;
}

.card-content .tag {
  margin-top: auto;
  font-size: 0.75rem;
  color: #888;
}

/* Work Experience Section */
.work {
  background: #111;
}

.work .work-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}

.work-card {
  background: #0d0d0d;
  border: 1px solid #222;
  border-radius: 8px;
  padding: 20px;
  width: 300px;
  color: #ccc;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s ease;
}

.work-card:hover {
  transform: translateY(-5px);
}

.work-card h4 {
  font-size: 1.2rem;
  margin-bottom: 5px;
  color: #6ccff6;
}

.work-card span {
  font-size: 0.8rem;
  color: #888;
}

.work-card p {
  font-size: 0.85rem;
  margin: 10px 0;
  color: #bdbdbd;
  line-height: 1.4;
}

.work-card ul {
  list-style: circle;
  padding-left: 18px;
  color: #aaaaaa;
  font-size: 0.8rem;
}

.work-card ul li {
  margin-bottom: 6px;
}

/* Skills Section */
.skills {
  background: #0d0d0d;
}

.skills .skills-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
}

.skill-category {
  background: #111;
  border-radius: 8px;
  padding: 20px;
  width: 260px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.skill-category h4 {
  font-size: 1.2rem;
  color: #6ccff6;
  margin-bottom: 10px;
}

.skill-category ul {
  list-style: square;
  padding-left: 20px;
  font-size: 0.9rem;
  color: #cccccc;
}

.skill-category ul li {
  margin-bottom: 6px;
}

/* Projects Section */
.projects {
  background: #111;
}

.projects .project-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}

.project-card {
  background: #0d0d0d;
  border-radius: 8px;
  overflow: hidden;
  width: 320px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.5);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease;
}

.project-card:hover {
  transform: translateY(-8px);
}

.project-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.project-card .project-content {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.project-card h3 {
  font-size: 1.3rem;
  color: #6ccff6;
  margin-bottom: 8px;
}

.project-card p {
  font-size: 0.9rem;
  color: #cccccc;
  line-height: 1.4;
  margin-bottom: 10px;
}

.project-card ul {
  list-style: circle;
  padding-left: 18px;
  font-size: 0.85rem;
  color: #bdbdbd;
}

.project-card ul li {
  margin-bottom: 6px;
}

/* Gallery Section */
.gallery {
  background: #0d0d0d;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 15px;
  padding: 0 20px;
}

.gallery-grid img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 6px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.gallery-grid img:hover {
  transform: scale(1.05);
}

/* Lightbox overlay */
#lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 2000;
}

#lightbox img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 8px;
}

/* Contact Section */
.contact {
  background: #111;
  text-align: center;
}

.contact h3 {
  color: #6ccff6;
  font-size: 1.8rem;
  margin-bottom: 20px;
}

.contact p {
  font-size: 1rem;
  color: #cccccc;
  margin-bottom: 10px;
}

.contact .contact-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  margin-top: 30px;
}

.contact .contact-item {
  background: #0d0d0d;
  border-radius: 6px;
  padding: 15px 20px;
  color: #cccccc;
  box-shadow: 0 3px 8px rgba(0,0,0,0.5);
  width: 220px;
  transition: transform 0.3s ease;
}

.contact .contact-item:hover {
  transform: translateY(-5px);
}

.contact .contact-item h4 {
  margin-bottom: 8px;
  color: #6ccff6;
  font-size: 1rem;
}

.contact .contact-item a {
  color: #9cdcf9;
  word-break: break-all;
}

/* Responsive */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.6rem;
  }
  .hero h2 {
    font-size: 1.2rem;
  }
  .hero p {
    font-size: 0.95rem;
  }
  .about {
    flex-direction: column;
    padding-top: 60px;
  }
  .about-text {
    margin-left: 0;
    max-width: 100%;
    text-align: center;
  }
  nav ul {
    justify-content: center;
    flex-wrap: wrap;
  }
  nav ul li {
    margin-left: 15px;
    margin-top: 10px;
  }
  .card, .project-card {
    width: 90%;
    max-width: 400px;
  }
  .work-card, .skill-category {
    width: 90%;
    max-width: 350px;
  }
}