/* ========== Base Reset & Variables ========== */
:root {
    --brand-green: #007a5e;
    --accent-blue: #219ebc;
    --light-bg: #fdfaf6;
    --card-bg: #edf6f9;
    --border-color: #ccc;
    --text-dark: #1a1a1a;
    --text-light: #555;
    --radius: 6px;
    --transition-speed: 0.3s;
    --max-width: 1080px;
    --font-stack: 'Segoe UI', sans-serif;
  }
  
  * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }
  
  html {
    scroll-behavior: smooth;
    font-size: 16px;
  }
  
/* --- General Layout --- */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #f5f5f5; /* Light background for the page */
  color: #333;
  display: flex;
  flex-direction: column;
  min-height: 100vh; /* Ensures footer sticks to bottom on short content pages */
}
main {
  flex-grow: 1; /* Allows main content to take up available space */
  display: flex; /* Use flexbox for centering its direct children */
  justify-content: center; /* Center horizontally */
  align-items: center; /* Center vertically (if desired, for truly central screen content) */
  padding: 20px; /* Add some padding around the main content area */
}
.advisor {
  text-align: center;
  font-size: larger;
}
/* Base Styles for Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
 
background-color: rgb(55, 159, 194);
border-color: #1a1a1a;
  padding: 10px 20px;
  color: white;
  flex-wrap: wrap;
  position: relative; /* Needed for absolute positioning of switch on small screens */
}


.site-branding {
  display: flex;
  align-items: center;
  gap: 10px;
}

.site-branding .logo {
  height: 30px;
  width: auto;
}

.site-branding .site-title {
  font-size: 1.5em;
  font-weight: bold;
}

/* Language Toggle Switch Styling */
.language-switch {
  display: flex; /* Ensures it sits next to other items if not positioned */
  align-items: center;
  margin-right: 20px; /* Space from menu/hamburger on large screens */
  order: 3; /* Default order, can be changed by media query */
}

.language-toggle {
  display: none; /* Hide the default checkbox */
}

.language-label {
  display: flex;
  align-items: center;
  position: relative;
  width: 80px; /* Width of the entire switch */
  height: 30px; /* Height of the switch */
  background-color: #555;
  border-radius: 15px;
  cursor: pointer;
  overflow: hidden; /* Hide overflowing text */
}

.lang-text {
  flex: 1;
  text-align: center;
  font-size: 0.9em;
  font-weight: bold;
  color: #bbb; /* Inactive text color */
  z-index: 1; /* Ensures text is above slider */
  transition: color 0.3s ease;
}

.lang-text.active-lang {
  color: white; /* Active text color */
}

.toggle-slider {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 36px; /* Half the width minus padding */
  height: 26px; /* Height minus padding */
  background-color: #007bff; /* Active color, e.g., blue */
  border-radius: 13px;
  transition: transform 0.3s ease, background-color 0.3s ease;
  z-index: 0; /* Slider is below text */
}

/* Move slider when checkbox is checked */
.language-toggle:checked + .language-label .toggle-slider {
  transform: translateX(40px); /* Move to the right (80px width - 36px slider width - 4px total padding) */
  background-color: #28a745; /* Different color when checked, e.g., green */
}

/* Change active text color based on checked state */
.language-toggle:checked + .language-label .lang-text:first-child {
  color: #bbb; /* First language (EN) becomes inactive */
}

.language-toggle:checked + .language-label .lang-text:last-child {
  color: white; /* Second language (AM) becomes active */
}


/* Menu List Styles (for larger screens) */
.menu-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-grow: 1;
  justify-content: center;
  
}

.menu-list li {
  margin: 0 15px;
}

.menu-list li a {
  text-decoration: none;
  color: black;
  padding: 5px 0;
  transition: color 0.3s ease;
  font-size: 1.1em;
  display: flex;
  align-items: center;
  gap: 5px;
}

.menu-list li a:hover {
  color:orange;
}

/* Hamburger Icon Styles */
.hamburger{
  display: none; /* Hidden by default on larger screens */
  font-size: 30px;
  cursor: pointer;
  color: white;
  margin-left: 20px;
  order: 4; /* Puts hamburger to the far right on large screens */
}



/* --- Footer Styling --- */
footer {
  background-color: rgb(228, 228, 238);
  color: black;
  text-align: center;
  padding: 15px 20px;
  font-size: 0.85rem;
  box-shadow: 0 -2px 5px rgba(0,0,0,0.2);
}

/* --- Intro Screen Specific Styling (NEW/MODIFIED) --- */
#intro-screen {
  background-color: #fff;
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  text-align: center; /* Center text within the box */
  max-width: 600px; /* Limits the width of the intro box */
  width: 100%; /* Ensures it takes full width up to max-width */
  box-sizing: border-box; /* Includes padding in width calculation */
}


.welcome-heading {
  color: #8bc34a; /* Match accent color */
  font-size: 2em;
  margin-bottom: 15px;
}

.welcome-text {
  font-size: 1.1em;
  line-height: 1.6;
  margin-bottom: 30px;
}

.device-selection {
  display: flex;
  justify-content: center; /* Center the buttons within their container */
  gap: 20px; /* Space between buttons */
  margin-top: 20px;
}

.device-button {
  background-color: #4CAF50; /* Green color, consistent with your images */
  color: white;
  padding: 15px 30px;
  border: none;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.device-button:hover {
  background-color: #45a049; /* Darker green on hover */
  transform: translateY(-2px); /* Slight lift effect */
}

.device-button:active {
  transform: translateY(0); /* Return to original position on click */
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* --- Conversation Screen Styling (from previous step, included for completeness) --- */
#conversation-screen {
  display: none; /* Initially hidden */
  max-width: 800px; /* Match width of the intro screen or slightly wider */
  width: 100%;
  background-color: #fff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  box-sizing: border-box;
}

/* ... rest of your conversation screen and results screen CSS ... */

/* Style for the user input area containing the textarea and button */
.user-input-area {
  display: flex;
  gap: 10px;
  width: 100%;
  padding: 15px;
  background-color: #f9f9f9;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Style for the textarea itself */
#user-response {
  flex-grow: 1;
  min-height: 80px;
  max-height: 200px;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-size: 1rem;
  resize: vertical;
  overflow-y: auto;
}

/* Style for the submit button */
#submit-response {
  padding: 12px 25px;
  background-color: #28a745;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: bold;
  transition: background-color 0.2s ease;
}

#submit-response:hover {
  background-color: #218838;
}

/* Optional: Basic styling for conversation history to ensure it looks good above the input */
#conversation-history {
  min-height: 150px;
  max-height: 400px; /* Allow it to scroll for longer conversations */
  overflow-y: auto;
  padding: 15px;
  border: 1px solid #eee;
  border-radius: 8px;
  background-color: #fff;
  margin-bottom: 20px; /* Space above the input area */
}

.ai-message, .user-message {
  padding: 10px 0;
  line-height: 1.5;
}
.ai-message {
  color: #333;
  background-color: #e6f3f8; /* Light blue background for AI messages */
  padding: 10px 15px;
  border-radius: 8px;
  margin-bottom: 10px;
  text-align: left;
}
.user-message {
  background-color: #d4edda; /* Light green background for user messages */
  padding: 10px 15px;
  border-radius: 8px;
  margin-bottom: 10px;
  text-align: right; /* User messages float to the right */
  color: #333;
}
/* Ensure strong tags within messages are bold */
.ai-message strong, .user-message strong {
  font-weight: bold;
}

/* Spinner for loading indicator */
.loading-overlay {
  position: fixed; /* Covers the whole screen */
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.8); /* Semi-transparent white */
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  z-index: 1000; /* Ensures it's on top of other content */
}

.spinner {
  border: 8px solid #f3f3f3; /* Light grey */
  border-top: 8px solid #8bc34a; /* Your accent color */
  border-radius: 50%;
  width: 50px;
  height: 50px;
  animation: spin 1s linear infinite;
  margin-bottom: 10px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* --- Results Screen Styling --- */
#results-screen {
  display: none;
  max-width: 800px;
  width: 100%;
  background-color: #fff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  box-sizing: border-box;
  text-align: left; /* Keep text left-aligned for readability */
}

.results-heading {
  color: #8bc34a;
  font-size: 1.8em;
  margin-bottom: 20px;
  text-align: center;
}

.results-section {
  background-color: #f9f9f9;
  border-left: 5px solid #8bc34a;
  padding: 15px;
  margin-bottom: 20px;
  border-radius: 5px;
}

.results-section h3 {
  color: #333;
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 1.2em;
}

#specs-list {
  list-style: none; /* Remove default bullet points */
  padding: 0;
  margin: 0;
}

#specs-list li {
  background-color: #fff;
  padding: 10px 15px;
  border: 1px solid #eee;
  border-radius: 5px;
  margin-bottom: 10px;
  display: flex;
  flex-direction: column;
}

#specs-list li strong {
  color: #007bff; /* Highlight spec name */
  font-size: 1.1em;
  margin-bottom: 5px;
}

#specs-list li span {
  font-size: 0.95em;
  line-height: 1.4;
  color: #555;
}

#start-over {
  display: block; /* Make button full width */
  width: auto;
  margin: 30px auto 0 auto; /* Center button */
  padding: 15px 30px;
  background-color: #dc3545; /* Red for reset action */
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

#start-over:hover {
  background-color: #c82333;
}



@media (max-width: 480px) {
  .welcome-heading {
      font-size: 1.6em;
  }
  .welcome-text {
      font-size: 1em;
  }

  /* Adjust title and subtitle spacing */
.title h1 {
  color: #007bff;
  width: 100%; /* Make title take full width for stacking */
  text-align: center; /* Center the title */
  margin-bottom: 5px; /* Add a little space below the title */
}
  .site-subtitle {
      font-size: 0.8rem;
      display: none; /* Keep this to hide subtitle on mobile and save space */
  }


  .main-nav .nav-link {
      font-size: 0.9em;
      margin: 0 5px;
  }
}


  /* ========== Typography ========== */
  h1, h2, h3, h4 {
    color: var(--brand-green);
    margin-bottom: 0.5em;
    line-height: 1.2;
  }
  
  p {
    color: var(--text-light);
    margin-bottom: 1em;
    font-size: 1rem;
  }
  
  /* ========== Layout Containers ========== */
  .container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1rem;
  }
  
  section {
    padding: 40px 0;
  }
  
  /* ========== Buttons ========== */
  button,
  .button {
    background: var(--brand-green);
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: var(--radius);
    font-weight: bold;
    cursor: pointer;
    transition: background var(--transition-speed);
  }
  
  button:hover,
  .button:hover {
    background: #005f48;
  }
  
  /* ========== Links ========== */
  a {
    color: var(--brand-green);
    text-decoration: none;
  }
  
  a:hover {
    text-decoration: underline;
  }
  
  /* ========== Form Inputs ========== */
  input,
  textarea,
  select {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 1rem;
    margin-bottom: 15px;
  }
  
  input:focus,
  textarea:focus {
    outline: none;
    border-color: var(--brand-green);
    box-shadow: 0 0 0 2px rgba(0, 122, 94, 0.2);
  }
  
  /* ========== Card & Box Styles ========== */
  .card {
    background: var(--card-bg);
    border-left: 6px solid var(--accent-blue);
    padding: 20px;
    border-radius: var(--radius);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    transition: transform var(--transition-speed);
  }
  
  .card:hover {
    transform: scale(1.02);
  }
  
  /* ========== Accessibility & Readability ========== */
  .visually-hidden {
    position: absolute;
    left: -10000px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
  }
  


  /* Base Styles for Navbar */


.site-branding {
    display: flex;
    align-items: center;
    gap: 10px;
}

.site-branding .logo {
    height: 30px;
    width: auto;
}

.site-branding .site-title {
    font-size: 1.5em;
    font-weight: bold;
}

/* Language Toggle Switch Styling */
.language-switch {
    display: flex; /* Ensures it sits next to other items if not positioned */
    align-items: center;
    margin-right: 20px; /* Space from menu/hamburger on large screens */
    order: 3; /* Default order, can be changed by media query */
}

.language-toggle {
    display: none; /* Hide the default checkbox */
}

.language-label {
    display: flex;
    align-items: center;
    position: relative;
    width: 80px; /* Width of the entire switch */
    height: 30px; /* Height of the switch */
    background-color: #555;
    border-radius: 15px;
    cursor: pointer;
    overflow: hidden; /* Hide overflowing text */
}

.lang-text {
    flex: 1;
    text-align: center;
    font-size: 0.9em;
    font-weight: bold;
    color: #bbb; /* Inactive text color */
    z-index: 1; /* Ensures text is above slider */
    transition: color 0.3s ease;
}

.lang-text.active-lang {
    color: white; /* Active text color */
}

.toggle-slider {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 36px; /* Half the width minus padding */
    height: 26px; /* Height minus padding */
    background-color: #007bff; /* Active color, e.g., blue */
    border-radius: 13px;
    transition: transform 0.3s ease, background-color 0.3s ease;
    z-index: 0; /* Slider is below text */
}

/* Move slider when checkbox is checked */
.language-toggle:checked + .language-label .toggle-slider {
    transform: translateX(40px); /* Move to the right (80px width - 36px slider width - 4px total padding) */
    background-color: #28a745; /* Different color when checked, e.g., green */
}

/* Change active text color based on checked state */
.language-toggle:checked + .language-label .lang-text:first-child {
    color: #bbb; /* First language (EN) becomes inactive */
}

.language-toggle:checked + .language-label .lang-text:last-child {
    color: white; /* Second language (AM) becomes active */
}


/* Menu List Styles (for larger screens) */
.menu-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-grow: 1;
    justify-content: center;
}

.menu-list li {
    margin: 0 15px;
}

.menu-list li a {
    text-decoration: none;
    color: white;
    padding: 5px 0;
    transition: color 0.3s ease;
    font-size: 1.1em;
    display: flex;
    align-items: center;
    gap: 5px;
}

.menu-list li a:hover {
    color: #a0a0a0;
}






/* Media Query for Small Devices (e.g., screens <= 768px) */
@media (max-width: 768px) {
  .header-content {
    align-items: flex-start; 
    flex-direction: column; 
    padding: 0 10px; 
  }
 
  .navbar {
      justify-content: space-between;
      align-items: flex-start; /* Align items to top to allow absolute positioning */
      padding-bottom: 20px; /* Add space for the dropdown menu */
  }

  /* Language Switch for Small Devices (Top Left Corner) */
  .language-switch {
      position: absolute; /* Position absolutely relative to navbar */
      top: 10px; /* Adjust as needed */
      left: 20px; /* Align to left corner */
      margin-right: 0; /* Reset margin */
      z-index: 100; /* Ensure it's above other elements */
      order: unset; /* Reset order, position takes precedence */
  }

  .site-branding {
      order: 1; /* Ensures branding remains on the left, but shifts for language switch */
      margin-left: 100px; /* Push branding right to avoid overlap with switch */
  }

  .hamburger{
      display: block; /* Show the hamburger icon on small screens */
      order: 2; /* Puts hamburger to the right */
      margin-left: auto; /* Push it to the far right */
  }

  /* Position language switcher and hamburger menu on the same row, to the right */
.language-switcher {
    margin-left: auto; /* Push to the right */
    margin-right: 5px; /* Small space from the very edge */
    order: 2; /* Ensure it appears after the title, before hamburger */
    display: flex; /* Keep buttons inline */
    align-items: center;
    gap: 5px; /* Space between EN and AM buttons */
}
.hamburger-menu {
  display: block; /* Already there, ensures it's visible */
  font-size: 2.5em; /* Make the icon larger and easier to tap */
  padding: 5px 10px; /* Add padding around the icon for touch target */
  line-height: 1; /* Helps vertically align the icon */
  margin-left: 10px; /* Space from language switcher */
  order: 3; /* Position after language switcher */
}
  .menu-list {
      display: none;
      gap: 0.5em;
      flex-direction: column;
      width: auto; /* Adjust width to fit content */
      background-color: #444;
      position: absolute;
      top: 60px; /* Adjust based on your navbar height */
      right: 0; /* Align to the right edge */
      text-align: left;
      padding: 10px 20px;
      box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
      min-width: fit-content;
      white-space: nowrap;
      z-index: 1000; /* Ensure menu is above other content but below language switch */
  }

  .title{
    text-align: center;
   
}
.title {
  text-align: center;
  
}
.title p{
  font-size: 16px;
  display: none;
  
}

  .menu-list.active {
      display: flex;
  }

  .menu-list li {
      margin: 10px 0;
  }
  footer {
    background-color: rgb(219, 219, 227);
    color: white;
    text-align: center;
    padding: 15px 20px;
    font-size: 0.85rem;
    box-shadow: 0 -2px 5px rgba(0,0,0,0.2);
  }
  .nav-links.active {
    display: flex;
    background-color: var(--card-bg-color, #ffffff); /* THIS IS THE LINE TO ADJUST */
    /* You can also add more styling here, e.g., */
    /* border: 1px solid var(--border-color, #ddd); */
}


}

/* Style for the user input area containing the textarea and button */
.user-input-area {
  display: flex; /* Makes the textarea and button sit side-by-side */
  gap: 10px; /* Space between textarea and button */
  width: 100%; /* Occupy full width of its parent */
  max-width: 800px; /* IMPORTANT: Limit max width on large screens */
  margin: 20px auto; /* Center the input area horizontally with top/bottom margin */
  padding: 15px; /* Padding around the input elements */
  background-color: #f9f9f9; /* Light background for the input area */
  border-radius: 8px; /* Slightly rounded corners */
  box-shadow: 0 2px 5px rgba(0,0,0,0.1); /* Subtle shadow */
}

/* Style for the textarea itself */
#user-response {
  flex-grow: 1; /* Allows the textarea to take up available space */
  width: 100%; /* Ensures it fills its flex container */
  min-height: 80px; /* Initial visible height */
  max-height: 200px; /* Prevent it from getting excessively tall */
  padding: 12px 15px; /* Internal padding */
  border: 1px solid #ddd;
  border-radius: 6px;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; /* Consistent font */
  font-size: 1rem;
  resize: vertical; /* Allow vertical resizing only (user can drag to resize) */
  overflow-y: auto; /* Show scrollbar if content exceeds max-height */
}

/* Style for the submit button */
#submit-response {
  padding: 12px 25px;
  background-color: #28a745; /* Green, similar to your device buttons */
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: bold;
  transition: background-color 0.2s ease;
}

#submit-response:hover {
  background-color: #218838; /* Darker green on hover */
}

/* Optional: Basic styling for conversation history to ensure it looks good above the input */
#conversation-history {
  max-width: 800px; /* Match max-width of input area */
  margin: 20px auto; /* Center it */
  padding: 0 15px; /* Keep consistent padding */
  min-height: 150px; /* Give it some initial height */
  overflow-y: auto; /* Scroll if content overflows */
  border: 1px solid #eee; /* Light border for visual separation */
  border-radius: 8px;
  background-color: #fff;
}

.ai-message, .user-message {
  padding: 10px 0;
  border-bottom: 1px dotted #eee;
}
.ai-message:last-child, .user-message:last-child {
  border-bottom: none; /* No border for the last message */
}
.ai-message {
  color: #333;
}
.user-message {
  text-align: right; /* User messages float to the right */
  color: #007bff; /* A distinct color for user messages */
}

.title {
  text-align: center;
  
}
.title p{
  font-size: 24px;
  
}

/* --- Skill Summary Section Styles --- */
#skill-summary-screen {
  padding: 20px;
  background-color: #f9f9f9;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  max-width: 800px;
  margin: 40px auto;
}

#skill-summary-screen h2 {
  text-align: center;
  color: #333;
  margin-bottom: 30px;
  font-size: 2em;
}

.tabs-container {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 1px 5px rgba(0,0,0,0.05);
  overflow: hidden;
}

.tab-buttons {
  display: flex;
  justify-content: center;
  border-bottom: 1px solid #eee;
  background-color: #f0f0f0;
}

.tab-button {
  flex-grow: 1; /* Distribute space evenly */
  padding: 15px 20px;
  border: none;
  background-color: transparent;
  cursor: pointer;
  font-size: 1.1em;
  font-weight: bold;
  color: #555;
  transition: all 0.3s ease;
  text-align: center;
  border-bottom: 3px solid transparent; /* For active state underline */
}

.tab-button:hover {
  color: #007bff;
  background-color: #e9e9e9;
}

.tab-button.active {
  color: #007bff;
  border-bottom: 3px solid #007bff;
  background-color: #fff;
}

.tab-content {
  padding: 20px;
}

.tab-pane {
  display: none; /* Hidden by default */
  animation: fadeIn 0.5s ease-in-out;
}

.tab-pane.active {
  display: block; /* Shown when active */
}

.tab-pane h3 {
  color: #007bff;
  margin-bottom: 15px;
  font-size: 1.5em;
  border-bottom: 1px dashed #eee;
  padding-bottom: 5px;
}

.tab-pane ul {
  list-style: none; /* Remove default bullets */
  padding: 0;
  margin: 0;
}

.tab-pane ul li {
  background-color: #fefefe;
  border: 1px solid #eee;
  border-radius: 5px;
  padding: 12px 15px;
  margin-bottom: 10px;
  font-size: 0.95em;
  line-height: 1.5;
  color: #444;
}

.tab-pane ul li:last-child {
  margin-bottom: 0;
}

/* Animation for tab content */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Make sure hidden-screen keeps content off-screen, not just display: none */
.hidden-screen {
  display: none;
}
