/* --- General Styles from index.html --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Orbitron', sans-serif;
}
html, body {
  height: 100%;
  background: #000;
  overflow-x: hidden;
  color: #e0e0e0;
  scroll-behavior: smooth;
}
body {
  padding-bottom: 80px; /* Space for footer */
}

/* --- Header & Navigation --- */
header {
  background: transparent;
  padding: 20px;
  text-align: center;
  border-bottom: 2px solid #00f7ff;
  position: relative;
  z-index: 1;
}
header h1, header p {
  color: #00f7ff;
  font-size: 2.5rem;
  cursor: default;
}
header p {
  font-size: 0.6rem;
  margin-top: 8px;
}
nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 15px;
  background: rgba(0, 0, 0, 0.7);
  border-bottom: 1px solid #333;
  position: relative;
  z-index: 1;
}
nav a {
  color: #00f7ff;
  text-decoration: none;
  font-weight: bold;
  cursor: pointer;
}
nav a:hover {
  color: #ffffff;
}

/* Styling for the new 2D Sketch button */
nav .sketch-button {
  background: linear-gradient(45deg, #ebe0a3, #81d9e9); /* Gold/Orange gradient */
  color: #000; /* Black text for contrast */
  padding: 8px 15px;
  border-radius: 20px; /* More rounded corners */
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.7); /* Gold glow */
  transition: all 0.3s ease;
  border: none; /* No border */
  font-size: 0.95rem; /* Slightly larger font */
  text-transform: uppercase; /* Uppercase text */
  letter-spacing: 0.05em; /* Some letter spacing */
}

nav .sketch-button:hover {
  background: linear-gradient(45deg, #FFA500, #FFD700); /* Invert gradient on hover */
  box-shadow: 0 0 25px rgba(255, 215, 0, 0.9); /* Stronger glow on hover */
  transform: translateY(-2px) scale(1.02); /* Slight lift and scale */
}


/* --- Main Content & Sections --- */
.container {
  max-width: 1000px;
  margin: 40px auto;
  padding: 0 20px;
  position: relative;
  z-index: 1;
}
section {
  margin-bottom: 60px;
}
h2 {
  color: #00f7ff;
  margin-bottom: 20px;
  cursor: default;
}

/* Removed glitch effect for team heading */
#team-heading .letter {
    display: inline-block;
}

.team-container {
  display: flex;
  overflow-x: auto;
  gap: 30px;
  padding: 20px 0;
  scrollbar-width: thin;
  scrollbar-color: #00f7ff #222;
}
.team-container::-webkit-scrollbar { height: 8px; }
.team-container::-webkit-scrollbar-track { background: #222; }
.team-container::-webkit-scrollbar-thumb {
    background-color: #00f7ff;
    border-radius: 10px;
    border: 2px solid #222;
}
.team-member {
  width: 180px;
  height: 180px;
  min-width: 180px;
  background: #222;
  border-radius: 10px;
  flex: none;
  border: 2px solid #00f7ff;
  transition: transform 0.3s ease;
  position: relative;
  overflow: hidden;
  padding: 0;
}
.team-member img {
  width: 100%;
  height: 100%;
  border-radius: 8px;
  transition: filter 0.4s ease-in-out;
  object-fit: cover;
  filter: brightness(1); /* Default: no dimming */
}
.team-member-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 247, 255, 0.9);
    color: #000;
    padding: 10px;
    text-align: center;
    transform: translateY(100%); /* Hidden by default */
    transition: transform 0.4s ease-in-out;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}
.member-name { font-weight: bold; font-size: 1rem; margin: 0; }
.member-degree { font-size: 0.8rem; margin: 5px 0 0 0; color: #111; }

/* Styles applied when team member is visible (scroll into view) */
.team-member.is-visible .team-member-info {
    transform: translateY(0); /* Roll on effect */
}
.team-member.is-visible img {
    filter: brightness(0.7); /* Dim image when info is visible */
}


#innovation { text-align: center; margin: 60px 0; }

.innovation-images-container {
    display: flex;
    overflow-x: hidden;
    gap: 30px;
    padding: 20px 0;
    justify-content: flex-start;
    align-items: center;
    margin-top: 20px;
    position: relative;
    white-space: nowrap;
}
.innovation-image {
  width: 250px;
  height: 180px;
  border-radius: 20px;
  background-color: rgba(0, 0, 0, 0.5);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
  /* Removed animation properties */
  box-shadow: 0 0 10px rgba(0, 247, 255, 0.5), 0 0 20px rgba(0, 247, 255, 0.3);
}
/* Removed pulsating-glow animation */
/* Removed scanline-sweep animation */
.innovation-image img {
  width: 100%;
  height: 100%;
  border-radius: 8px;
  object-fit: cover;
  position: relative;
  z-index: 2;
}
/* Removed is-visible class for animation */
.innovation-image:hover { transform: scale(1.05); }

.matrix-text {
  color: #00f7ff;
  font-size: 1.2rem;
  padding: 20px;
  margin-top: 30px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid #00f7ff;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(0, 255, 255, 0.4);
  white-space: pre-wrap;
  min-height: 150px;
}
.glow { color: #00f7ff; text-shadow: 0 0 5px #00f7ff, 0 0 10px #00f7ff, 0 0 20px #00f7ff; }
/* Removed matrix-symbol animation */

/* --- Chatbot Icon and Modal Styles --- */
.chat-icon {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #00f7ff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 1000;
    box-shadow: 0 0 20px rgba(0, 247, 255, 0.7), 0 0 10px #00f7ff inset;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.chat-icon:hover { transform: scale(1.1); }
.chat-icon svg { width: 32px; height: 32px; fill: #000; }
.chatbot-modal {
    display: none;
    position: fixed;
    z-index: 1001;
    left: 0; top: 0;
    width: 100%; height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.7);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}
.chatbot-modal-content {
    background-color: #000;
    border: 2px solid #00f7ff;
    border-radius: 10px;
    box-shadow: 0 0 25px rgba(0, 247, 255, 0.7);
    position: absolute;
    bottom: 20px; right: 20px;
    width: 90%; max-width: 400px;
    height: 80%; max-height: 720px;
    display: flex;
    flex-direction: column;
}
.chatbot-modal-header {
    padding: 10px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #00f7ff;
}
.chatbot-modal-header p { color: #00f7ff; font-weight: bold; }
.close-chatbot { color: #00f7ff; font-size: 28px; font-weight: bold; cursor: pointer; }
.close-chatbot:hover { color: #fff; }
.chatbot-iframe-container { flex-grow: 1; overflow: hidden; display: flex; position: relative; }
.chatbot-iframe-container iframe { width: 100%; height: 100%; border: none; border-radius: 0 0 8px 8px; }
#chatbot-loading {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  color: #00f7ff;
  text-align: center;
  padding: 20px;
  font-size: 1.1rem;
  z-index: 1;
}

/* --- Full Image Modal Styles --- */
.full-image-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0; top: 0;
    width: 100%; height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.9);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    justify-content: center;
    align-items: center;
}
.full-image-modal-content {
    margin: auto;
    display: block;
    max-width: 90%; max-height: 90%;
    object-fit: contain;
    border: 3px solid #00f7ff;
    border-radius: 15px;
    box-shadow: 0 0 30px rgba(0, 247, 255, 0.8);
    transition: transform 0.3s ease-out;
}
.full-image-modal-content.zoomed { transform: scale(1.1); }
.close-full-image-modal {
    position: absolute;
    top: 20px; right: 35px;
    color: #00f7ff;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
    text-shadow: 0 0 10px #00f7ff;
}
.close-full-image-modal:hover, .close-full-image-modal:focus { color: #fff; text-decoration: none; cursor: pointer; }

/* --- Location Section --- */
#location { text-align: center; }
.map {
  width: 100%;
  height: 400px;
  border: none;
  margin: 20px auto 0 auto;
  display: block;
}

/* --- STYLES FOR MERGED PDB VIEWER (Theme-aligned) --- */
#pdb-viewer-section {
    font-family: 'Inter', monospace, sans-serif;
    color: #00f7ff; /* Main theme color */
}
#pdb-viewer-section .pdb-container {
    background-color: rgba(0, 50, 50, 0.15); /* Adjusted for cyan theme */
    backdrop-filter: blur(5px);
    padding: 1.5rem;
    border-radius: 1rem;
    box-shadow: 0 0 15px rgba(0, 247, 255, 0.4), inset 0 0 8px rgba(0, 247, 255, 0.2);
    text-align: center;
    width: 100%;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(0, 247, 255, 0.3);
}
#pdb-viewer-section h1 {
    font-size: 2rem;
    font-weight: 700;
    color: #00f7ff;
    margin-bottom: 0.8rem;
    text-shadow: 0 0 8px rgba(0, 247, 255, 0.8);
    letter-spacing: 0.08em;
}
#pdb-viewer-section p {
    font-size: 0.95rem;
    color: #cccccc;
    margin-bottom: 1rem;
}
#pdb-viewer-section .input-group {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1rem;
}
#pdb-viewer-section input[type="text"] {
    padding: 0.6rem 1rem;
    border: 1px solid #00f7ff;
    border-radius: 0.6rem;
    background-color: rgba(0, 20, 20, 0.8); /* Adjusted for cyan theme */
    color: #00f7ff;
    font-size: 0.9rem;
    flex-grow: 1;
    max-width: 250px;
    transition: all 0.3s ease;
    box-shadow: inset 0 0 4px rgba(0, 247, 255, 0.3);
}
#pdb-viewer-section input[type="text"]:focus {
    outline: none;
    border-color: #00f7ff;
    box-shadow: 0 0 12px rgba(0, 247, 255, 0.8), inset 0 0 6px rgba(0, 247, 255, 0.5);
}
#pdb-viewer-section button {
    padding: 0.6rem 1.25rem;
    border-radius: 0.6rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 8px rgba(0, 247, 255, 0.5);
    background-color: rgba(0, 100, 100, 0.5); /* Adjusted for cyan theme */
    color: #00f7ff;
    border: 1px solid #00f7ff;
}
#pdb-viewer-section button:hover {
    background-color: rgba(0, 150, 150, 0.7); /* Adjusted for cyan theme */
    box-shadow: 0 0 20px rgba(0, 247, 255, 0.9);
    transform: translateY(-2px);
}
#pdb-viewer-section .render-options, #pdb-viewer-section .color-options, #pdb-viewer-section .info-box {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
    padding: 0.8rem;
    background-color: rgba(0, 50, 50, 0.1); /* Adjusted for cyan theme */
    border-radius: 0.6rem;
    border: 1px solid rgba(0, 247, 255, 0.2);
    color: #cccccc;
    font-size: 0.85rem;
    /* Removed animation properties */
}
#pdb-viewer-section .render-option-item, #pdb-viewer-section .color-option-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    cursor: pointer;
    color: #cccccc;
    font-weight: 500;
    transition: color 0.2s ease;
}
#pdb-viewer-section .render-option-item:hover, #pdb-viewer-section .color-option-item:hover {
    color: #00f7ff;
}
#pdb-viewer-section .info-box { padding: 1rem; margin-top: 1rem; font-size: 0.9rem; }
#pdb-viewer-section .info-box h2 { font-size: 1.1rem; margin-bottom: 0.6rem; text-shadow: 0 0 4px rgba(0, 247, 255, 0.5); }
#pdb-viewer-section .info-box p, #pdb-viewer-section .info-box ul { margin-bottom: 0.4rem; }
#pdb-viewer-section .info-box ul { max-height: 120px; padding: 0.4rem 0.8rem; overflow-y: auto; }
#pdb-viewer-section .info-box li { padding: 0.15rem 0; }
#pdb-viewer-section #messageBox {
    margin-top: 1rem; padding: 0.6rem 1rem; border-radius: 0.4rem;
    font-weight: 500; font-size: 0.85rem;
    /* Removed animation */
    border: 1px solid;
}
#pdb-viewer-section #messageBox.text-red-600 { background-color: rgba(139, 0, 0, 0.5); color: #ff6666; border-color: #ff0000; }
#pdb-viewer-section #messageBox.text-green-600 { background-color: rgba(0, 100, 100, 0.5); color: #00f7ff; border-color: #00f7ff; }
#pdb-viewer-section #pdb3dCanvas {
    display: block;
    background-color: #0a0a0a;
    border-radius: 1rem;
    box-shadow: 0 0 20px rgba(0, 247, 255, 0.6), inset 0 0 8px rgba(0, 247, 255, 0.3);
    margin-top: 1.5rem;
    border: 1px solid rgba(0, 247, 255, 0.3);
    width: 100%;
    height: 500px;
}
#pdb-viewer-section .loading-overlay {
    font-size: 1.4rem;
    /* Removed animation */
    color: #00f7ff;
    text-align: center;
    padding: 2rem;
}
#pdb-viewer-section .spinner {
    border: 6px solid rgba(0, 247, 255, 0.2);
    border-top: 6px solid #00f7ff;
    width: 60px; height: 60px;
    margin: 0 auto 1rem auto;
    box-shadow: 0 0 12px rgba(0, 247, 255, 0.7);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
/* Removed matrixFadeIn animation */
/* Removed info-box.is-visible animation */
.hidden { display: none; }

/* --- NEW Pricing Table Styles --- */
#pricing {
  text-align: center;
  margin-bottom: 60px;
}

.view-pricing-button {
  display: inline-block;
  background: linear-gradient(45deg, #00f7ff, #00aaff); /* Cyan to light blue gradient */
  color: #000;
  padding: 12px 25px;
  border-radius: 30px;
  box-shadow: 0 0 20px rgba(0, 247, 255, 0.7);
  transition: all 0.3s ease;
  border: none;
  font-size: 1.1rem;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: pointer;
  margin-top: 30px;
}

.view-pricing-button:hover {
  background: linear-gradient(45deg, #00e0ff, #00bbff);
  box-shadow: 0 0 30px rgba(0, 247, 255, 0.9);
  transform: translateY(-3px) scale(1.02);
}

/* Removed inline pricing button styles */

.pricing-table-container {
  background: rgba(0, 0, 0, 0.5);
  border: 2px solid #00f7ff;
  border-radius: 15px;
  padding: 25px;
  box-shadow: 0 0 30px rgba(0, 247, 255, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  margin-top: 30px;
  /* Removed opacity and transform for fade-in animation */
  transition: visibility 0.8s ease-out; /* Keep only visibility transition */
  overflow-x: auto; /* Enable horizontal scrolling on smaller screens */
}

/* Ensure the pricing table is visible by default */
.pricing-table-container {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
  pointer-events: auto;
}

.pricing-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}

.pricing-table th, .pricing-table td {
  padding: 15px;
  border: 1px solid rgba(0, 247, 255, 0.3);
  text-align: left;
  color: #e0e0e0;
}

.pricing-table th {
  background-color: rgba(0, 247, 255, 0.2);
  color: #00f7ff;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.pricing-table tbody tr {
  background-color: rgba(0, 0, 0, 0.6);
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.pricing-table tbody tr:nth-child(even) {
  background-color: rgba(0, 0, 0, 0.7);
}

.pricing-table tbody tr:hover {
  background-color: rgba(0, 247, 255, 0.1);
  box-shadow: 0 0 15px rgba(0, 247, 255, 0.4);
}

/* Removed highlight and pulseHighlight animation */

.pricing-note {
  font-size: 0.9rem;
  color: #ccc;
  margin-top: 20px;
}

.pricing-note a {
  color: #00f7ff;
  text-decoration: none;
}

.pricing-note a:hover {
  text-decoration: underline;
}

/* --- Responsive Media Queries --- */
/* The general .team-member.is-visible rules now handle both desktop and mobile */
@media (max-width: 768px) {
  header h1 { font-size: 1.8rem; }
  nav { flex-direction: column; gap: 10px; }
  .team-container { flex-direction: column; align-items: center; overflow-x: hidden; }
  .team-member { width: 250px; height: 250px; }
  .member-name { font-size: 1.1rem; }
  .member-degree { font-size: 0.9rem; }

  .innovation-images-container { flex-wrap: nowrap; overflow-x: hidden; justify-content: flex-start; }
  .innovation-image { width: 150px; height: 100px; min-width: unset; }
  .matrix-text { font-size: 1rem; padding: 15px; }
  .chatbot-modal-content { width: calc(100% - 20px); height: 75%; left: 10px; right: 10px; bottom: 10px; }
  .chat-icon { bottom: 20px; right: 20px; }
  .full-image-modal-content { max-width: 95%; max-height: 85%; }
  .close-full-image-modal { font-size: 30px; top: 10px; right: 20px; }
  .map { height: 300px; }
  
  /* Responsive for PDB viewer */
  #pdb-viewer-section .pdb-container { padding: 1rem; margin-bottom: 1rem; }
  #pdb-viewer-section h1 { font-size: 1.6rem; }
  #pdb-viewer-section p { font-size: 0.85rem; }
  #pdb-viewer-section .input-group { gap: 0.5rem; }
  #pdb-viewer-section input[type="text"], #pdb-viewer-section button { padding: 0.5rem 1rem; font-size: 0.8rem; }
  #pdb-viewer-section .render-options, #pdb-viewer-section .color-options, #pdb-viewer-section .info-box { gap: 0.5rem; padding: 0.6rem; font-size: 0.8rem; }
  #pdb-viewer-section #pdb3dCanvas { margin-top: 1rem; height: 350px; }

  /* Responsive for Pricing Table - Adjusted for smaller screens */
  .pricing-table-container { padding: 10px; } /* Slightly less padding */
  .pricing-table th, .pricing-table td {
    padding: 8px; /* Reduced padding */
    font-size: 0.4rem; /* Smaller font size */
  }
  .pricing-note { font-size: 0.75rem; } /* Smaller note font */
  .view-pricing-button { padding: 8px 18px; font-size: 0.9rem; } /* Smaller button */
}
/* --- Copyright Footer Font Size --- */
footer, .footer-copyright {
  font-size: 70%;
}
