/* General styles */
html,
body {
  margin: 0;
  font-family: sans-serif;
  color: #333;
}

/* New: Perspective context for parallax */
.parallax-group {
  position: relative;
  height: 100vh;
  overflow-x: hidden;
  overflow-y: auto;
  perspective: 1px;
}

/* Specific background for the first parallax group (hero) */
.parallax-group.parallax-1 {
  background-color: black;
}

/* New: Main image element for parallax */
.parallax-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  transform: translateZ(-1px) scale(2);
  z-index: -2;
}

/* New: Layer for the smoke overlay */
.parallax-layer.middle-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("../images/vecteezy_smoke-fog-white-clouds-on-black-background_16263049.jpg");
  background-size: cover;
  transform: translateZ(-0.5px) scale(1.5);
  opacity: 0.8;
  z-index: -1;
}

/* Foreground layer for text and content */
.parallax-layer.foreground-layer {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: white;
  text-align: center;
  background-color: rgba(0, 0, 0, 0.4);
  z-index: 1;
  transform: translateZ(0);
}

/* Specific parallax overlays for other sections */
.parallax-2 .foreground-layer {
  background-color: rgba(0, 0, 0, 0.5);
}

.parallax-3 .foreground-layer {
  background-color: rgba(0, 0, 0, 0.6);
}

/* Content section styling */
.content-section {
  position: relative;
  background: #fff;
  padding: 50px 0;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  z-index: 2;
}
.container {
  max-width: 960px;
  margin: auto;
  padding: 0 20px;
}

/* Card grid layout */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 30px;
}

/* Updated: Project card styling with 3D effects and Flexbox */
.project-card {
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  padding: 20px;
  border-radius: 8px;
  text-align: center;
  transition:
    transform 0.2s ease-in-out,
    box-shadow 0.2s ease-in-out;
  transform: perspective(1000px) rotateX(0deg);
  display: flex;
  flex-direction: column;
}

/* Add hover effect for better user experience */
.project-card:hover {
  transform: perspective(1000px) translateY(-8px) scale(1.02) rotateX(2deg);
  box-shadow:
    0 15px 30px rgba(0, 0, 0, 0.15),
    inset 0 0 10px rgba(0, 123, 255, 0.5);
}

/* New: Added transitions for inner elements */
.card-header-text,
.card-image-frame,
.tech-stack-container {
  transition: transform 0.2s ease-in-out;
}

/* Move inner elements slightly on card hover */
.project-card:hover .card-header-text {
  transform: translateY(-5px);
}
.project-card:hover .tech-stack-container {
  transform: translateY(5px);
}

/* New: Card header text styling */
.card-header-text {
  margin-bottom: 15px;
}

.card-header-text h3 {
  margin-bottom: 5px;
}

.card-domain-link {
  font-size: 0.9em;
  color: #007bff;
  text-decoration: none;
  display: block;
}

/* Card image frame fix */
.card-image-frame {
  position: relative;
  width: 100%;
  height: 180px;
  overflow: hidden;
  border-radius: 4px;
  margin-bottom: 15px;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.1);
}

.card-image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-card p {
  font-size: 0.9em;
  color: #6c757d;
}

/* New: Container for icons and technologies text */
.tech-stack-container {
  margin-top: auto;
}

/* Technology icons */
.tech-icons {
  margin-top: 10px;
  margin-bottom: 15px;
  display: flex;
  justify-content: center;
  gap: 10px;
}

.tech-icons i {
  font-size: 1.5em;
  color: #495057;
  transition:
    color 0.2s ease-in-out,
    transform 0.2s ease-in-out;
}

.tech-icons i:hover {
  color: #007bff;
  transform: translateY(-2px) scale(1.1);
}

/* Technologies text styling */
.technologies-text {
  font-size: 0.4em;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 10px;
}

/* Domain header style */
.domain-header {
  text-align: center;
  margin-top: 50px;
  margin-bottom: 30px;
  font-size: 2em;
  color: #007bff;
  border-bottom: 2px solid #dee2e6;
  padding-bottom: 10px;
}

/* Footer Styles */
.site-footer {
  background-color: #343a40;
  color: #f8f9fa;
  text-align: center;
  padding: 20px 0;
  position: relative;
  z-index: 2;
}

.site-footer a {
  color: #007bff;
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

/* New: Featured badge styling */
.featured-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background-color: #007bff; /* Primary color */
  color: white;
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 0.8em;
  font-weight: bold;
  text-transform: uppercase;
  z-index: 10; /* Ensure it's above the image */
}

/* Add a background color for the image frame to make the badge more visible */
.card-image-frame {
  /* ... (existing styles) ... */
  background-color: #000; /* Add a background color behind the image */
}

/* Shorter parallax sections for other areas */
.short-parallax {
  height: 50vh; /* Adjust this value as needed */
}

/* Staff Card overrides */
.project-card.staff-card {
  padding: 0; /* Adjust padding as needed */
}

.staff-photo-frame {
  height: 250px;
  border-bottom: thin solid #dee2e6;
  border-radius: 8px 8px 0 0;
}

.staff-card h3 {
  margin-top: 15px;
}

.staff-contact-info {
  font-size: 0.9em;
  padding: 0 20px;
  margin: 10px 0;
}

.staff-contact-info p {
  margin: 5px 0;
  text-align: left;
}

.staff-contact-info i {
  margin-right: 10px;
  color: #007bff;
}

.staff-contact-info a {
  color: #6c757d;
  text-decoration: none;
}

.staff-contact-info a:hover {
  text-decoration: underline;
}

.staff-bio {
  text-align: left;
  padding: 0 20px 20px;
  margin: 0;
}

/* --- BEGIN tickets app accordion CSS --- */

.accordion-container {
  max-width: 600px;
  margin: 20px auto;
  border: thin solid #ddd;
  border-radius: 5px;
}

details {
  border-bottom: thin solid #ddd;
}

details:last-child {
  border-bottom: none;
}

summary {
  list-style: none;
  padding: 15px 20px;
  cursor: pointer;
  font-weight: 500;
  position: relative;
}

summary:hover {
  background-color: #f7f7f7;
}

summary::after {
  content: "▶";
  position: absolute;
  right: 20px;
  transition: transform 0.2s ease;
}

details[open] > summary::after {
  transform: rotate(90deg);
}

.content {
  padding: 10px 20px 20px;
  border-top: thin solid #eee;
}

/* --- END tickets app accordion CSS --- */


/* Optional CSS to style the login box, you should move this to your style.css */
.auth-form-container {
    max-width: 500px;
    margin: 100px auto;
    padding: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}
