
/* Global Styles */
:root {
    --primary-color: #0A2540; /* Deep Blue */
    --secondary-color: #F0F4F8; /* Light Grayish Blue */
    --accent-color: #00AEEF; /* Bright Blue */
    --text-color: #333333;
    --light-text-color: #FFFFFF;
    --card-bg-color: #FFFFFF;
    --border-radius: 8px;
    --box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    --filter-button-bg: #e9ecef;
    --filter-button-active-bg: var(--accent-color);
    --filter-button-active-text: var(--light-text-color);
    --usecase-tag-bg: #E6FFFA; /* Light teal for use case tags */
    --usecase-tag-text: #047481; /* Dark teal text */
    --targeted-tech-tag-bg: #FEF9C3; /* Light yellow for targeted tech tags */
    --targeted-tech-tag-text: #713F12; /* Dark brown text for targeted tech */
    --navbar-height: 60px; /* Define navbar height */
    --heart-color: #ff4757; /* Color for the heart icon */
    --liked-heart-color: #e84393; /* A more vibrant pink/red for liked state */
  
    /* Future Tech Section Colors */
    --future-tech-bg: #001026; /* Very dark blue, almost black */
    --future-tech-card-bg: #0f2744; /* Darker card background */
    --future-tech-text-color: #E0F2FE; /* Light blueish white for text */
    --future-tech-accent-1: #00F0FF; /* Cyan/Neon Blue */
    --future-tech-accent-2: #A855F7; /* Purple */
    --future-tech-border-color: #2a4c73;
  }
  
  body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen,
      Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    background-color: var(--secondary-color);
    color: var(--text-color);
    line-height: 1.6;
    scroll-behavior: smooth;
    padding-top: var(--navbar-height); /* Prevent content from being hidden by fixed navbar */
  }
  
  body.modal-open {
    overflow: hidden; /* Prevent background scrolling when modal is open */
  }
  
  .container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
  }
  
  h1, h2, h3 {
    color: var(--primary-color);
  }
  
  h4 {
      margin-top: 0;
      margin-bottom: 0.5rem;
      color: var(--primary-color);
  }
  h5 {
    color: var(--primary-color);
    margin-top: 0.75rem;
    margin-bottom: 0.25rem;
  }
  
  a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.3s ease;
  }
  
  a:hover, a:focus {
    color: darken(var(--accent-color), 10%);
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
  }
  
  img {
    max-width: 100%;
    height: auto;
    display: block;
  }
  
  .sr-only { /* Screenreader only class */
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
  }
  
  /* Navbar */
  .navbar {
    background-color: var(--primary-color);
    color: var(--light-text-color);
    padding: 0 1rem;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    height: var(--navbar-height);
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
  }
  
  .navbar .nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
  }
  
  .nav-branding-group {
    display: flex;
    align-items: center;
  }
  
  .nav-logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--light-text-color) !important; /* Override general 'a' color */
    margin-right: 1.5rem; /* Space between logo and visitor count */
  }
  .nav-logo:hover, .nav-logo:focus {
    color: var(--accent-color) !important;
    outline: none;
  }
  
  .live-visitors-container {
    display: flex;
    align-items: center;
    color: #e0f2fe; /* Lighter blue for better contrast */
    font-size: 0.9rem; /* Increased base size */
  }
  
  .visitor-icon {
    margin-right: 0.4rem;
    font-size: 1.2rem; /* Slightly larger icon */
    color: #61dafb; /* More prominent icon color */
  }
  
  .visitor-count {
    font-weight: 700; /* Bolder count */
    margin-right: 0.4rem;
    font-size: 1em; /* Relative to container's font-size */
  }
  
  .visitor-text {
    font-size: 0.9em; /* Relative to container's font-size */
    opacity: 0.9;
  }
  
  
  .nav-links {
    list-style: none;
    display: flex;
    align-items: center; /* Align items vertically including the new button */
    margin: 0;
    padding: 0;
  }
  
  .nav-links li {
    margin-left: 1.5rem;
  }
  
  .nav-links a {
    color: var(--light-text-color);
    text-decoration: none;
    padding: 0.5rem 0;
    position: relative;
    transition: color 0.3s ease;
  }
  
  .nav-links a:hover, .nav-links a:focus, .nav-links a.active {
    color: var(--accent-color);
    outline: none;
  }
  
  .nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--accent-color);
    transition: width 0.3s ease;
  }
  
  .nav-links a:hover::after, .nav-links a:focus::after, .nav-links a.active::after {
    width: 100%;
  }
  
  /* Main Site Button in Navbar */
  .nav-links li a.main-site-button {
    background-color: var(--accent-color);
    color: var(--light-text-color) !important; 
    padding: 0.4rem 1rem;
    border-radius: var(--border-radius);
    font-weight: 500;
    transition: background-color 0.3s ease, transform 0.2s ease;
    text-decoration: none !important; 
    line-height: normal; /* Ensure consistent line height */
  }
  
  .nav-links li a.main-site-button:hover, 
  .nav-links li a.main-site-button:focus {
    background-color: darken(var(--accent-color), 10%);
    transform: translateY(-1px);
    color: var(--light-text-color) !important;
    outline: 2px solid darken(var(--accent-color), 15%);
    outline-offset: 1px;
  }
  
  /* Remove ::after pseudo-element from main-site-button */
  .nav-links li a.main-site-button::after {
    content: none; 
  }
  
  
  /* Hero Section */
  .hero-section {
    background-color: var(--primary-color);
    color: var(--light-text-color);
    padding: 7rem 0;
    text-align: center;
  }
  
  .hero-section .main-title {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: var(--light-text-color);
  }
  
  
  .hero-section h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--light-text-color);
    font-weight: normal;
  }
  
  .hero-section p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
  }
  
  .cta-button {
    background-color: var(--accent-color);
    color: var(--light-text-color);
    padding: 0.8rem 2rem;
    border-radius: var(--border-radius);
    font-size: 1.1rem;
    font-weight: bold;
    display: inline-block;
    transition: background-color 0.3s ease, transform 0.2s ease;
    border: none; 
    cursor: pointer;
  }
  
  .cta-button:hover, .cta-button:focus {
    background-color: darken(var(--accent-color), 10%);
    transform: translateY(-2px);
    color: var(--light-text-color);
  }
  
  /* Sections General Styling */
  .projects-section, .about-section, .contact-section, .future-tech-section { 
    padding: 4rem 0;
  }
  .projects-section h2, .about-section h2, .contact-section h2, .future-tech-section h2 {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 1rem; 
    position: relative;
  }
  
  /* Specific header style for future-tech section */
  .future-tech-section h2, .future-tech-section h3 {
    color: var(--future-tech-text-color);
  }
  .future-tech-section p, .future-tech-section li {
    color: var(--future-tech-text-color);
    opacity: 0.9;
  }
  
  
  .projects-section h2::after, .about-section h2::after, .contact-section h2::after, .future-tech-section h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background-color: var(--accent-color); /* Default accent */
    margin: 0.5rem auto 0;
  }
  .future-tech-section h2::after {
    background-color: var(--future-tech-accent-1); /* Future tech accent for its title underline */
  }
  
  
  /* Filter Styles */
  .filters-container {
    margin-bottom: 1.5rem; 
    padding: 1.5rem;
    background-color: var(--card-bg-color);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    display: grid;
    /* Adjust grid columns to better fit potentially more filters. 
       This aims for 2 columns on medium screens, potentially 3 on wider. */
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
  }
  
  @media (min-width: 992px) { /* Larger screens might fit 3 columns */
    .filters-container {
      grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    }
  }
  
  
  .filter-group {
  }
  
  .filter-group h4 {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
  }
  
  .filter-group button.filter-button {
    background-color: var(--filter-button-bg);
    color: var(--text-color);
    border: 1px solid transparent;
    padding: 0.5rem 1rem;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    font-size: 0.9rem;
    text-align: left;
  }
  
  .filter-group button.filter-button:hover {
    background-color: #d3d9df;
  }
  
  .filter-group button.filter-button.active {
    background-color: var(--filter-button-active-bg);
    color: var(--filter-button-active-text);
    border-color: var(--filter-button-active-bg);
    font-weight: bold;
  }
  
  .filter-group button.filter-button:focus {
    outline: 2px solid var(--accent-color);
    outline-offset: 1px;
  }
  
  .clear-filters-container {
    grid-column: 1 / -1; 
    display: flex !important;
    justify-content: flex-end; 
    margin-top: 0.5rem; 
  }
  
  .clear-all-filters-button {
    background-color: var(--primary-color);
    color: var(--light-text-color);
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: bold;
    transition: background-color 0.3s ease;
  }
  
  .clear-all-filters-button:hover, .clear-all-filters-button:focus {
    background-color: darken(var(--primary-color), 10%);
    outline: 2px solid var(--accent-color);
    outline-offset: 1px;
  }
  
  .filter-results-summary {
    margin-bottom: 2rem;
    text-align: center;
    font-size: 1rem;
    color: var(--text-color);
  }
  
  
  /* Project Grid & Cards */
  .project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); 
    gap: 2rem;
  }
  
  .no-projects-message {
    text-align: center;
    font-size: 1.2rem;
    color: var(--text-color);
    padding: 2rem;
    background-color: var(--card-bg-color);
    border-radius: var(--border-radius);
    margin-top: 1rem;
  }
  
  @keyframes fadeIn {
    from {
      opacity: 0;
      transform: translateY(20px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  .project-card {
    background-color: var(--card-bg-color);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: fadeIn 0.5s ease-out forwards; 
    opacity: 0; 
  }
  
  .project-card:hover, .project-card:focus-within {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
  }
  
  .project-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background-color: #e0e0e0;
  }
  
  .project-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
  }
  
  .project-content h3 {
    margin-top: 0;
    margin-bottom: 0.75rem;
    font-size: 1.5rem;
  }
  
  .project-content p {
    font-size: 0.95rem;
    margin-bottom: 1rem;
    flex-grow: 1; /* Allow description to take available space */
  }
  
  .project-info-group {
    margin-bottom: 1rem;
  }
  .project-info-group:last-of-type { /* Ensure last group also has consistent bottom margin before footer */
    margin-bottom: 1rem;
  }
  
  .project-info-label {
    font-size: 0.9rem;
    font-weight: bold;
    color: var(--primary-color);
    display: block;
    margin-bottom: 0.25rem;
  }
  
  .project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  
  .tech-tag, .industry-tag, .usecase-tag, .targeted-tech-tag {
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
    line-height: 1.4; 
  }
  
  .tech-tag {
    background-color: var(--secondary-color);
    color: var(--primary-color);
  }
  
  .industry-tag {
    background-color: #e0f7fa; 
    color: #00796b; 
  }
  
  .usecase-tag {
    background-color: var(--usecase-tag-bg);
    color: var(--usecase-tag-text);
  }
  
  .targeted-tech-tag {
    background-color: var(--targeted-tech-tag-bg);
    color: var(--targeted-tech-tag-text);
  }
  
  .project-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0rem 1.5rem 1.5rem 1.5rem; /* Removed top padding, info-group margin handles it */
    margin-top: auto; /* Push footer to the bottom of the card */
  }
  
  .workflow-button { 
    background-color: var(--accent-color);
    color: var(--light-text-color);
    padding: 0.6rem 1.2rem;
    text-align: center;
    font-weight: bold;
    border-radius: var(--border-radius);
    transition: background-color 0.3s ease;
    border: none; 
    cursor: pointer;
    font-size: 0.9rem; 
    flex-grow: 1; 
    margin-right: 1rem; 
  }
  
  .workflow-button:hover, .workflow-button:focus {
    background-color: darken(var(--accent-color), 10%);
    color: var(--primary-color);
  }
  
  .project-likes {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    color: var(--text-color);
  }
  
  .heart-icon {
    color: var(--heart-color);
    margin-right: 0.3rem;
    font-size: 1.1rem; /* Slightly larger heart */
  }
  
  
  /* About Section */
  .about-section .about-content {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    text-align: left; 
  }
  .about-section .about-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 1.5rem;
  }
  .about-section .about-content h3 {
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    text-align: center;
  }
  
  .use-case-categories-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
  }
  
  .use-case-category-card {
    background-color: var(--card-bg-color);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    border-left: 4px solid var(--accent-color);
    display: flex;
    flex-direction: column;
  }
  
  .use-case-category-card h4 {
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
  }
  .use-case-category-card p {
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
    flex-grow: 1;
  }
  .use-case-category-card ul {
    padding-left: 20px;
    margin-bottom: 1rem; /* Space before footer */
    font-size: 0.85rem;
  }
  .use-case-category-card li {
    margin-bottom: 0.25rem;
  }
  
  .use-case-targeted-tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem; /* Space before the card footer */
  }
  
  
  .use-case-card-footer {
    display: flex;
    align-items: center;
    justify-content: flex-start; /* Align buttons to the start */
    gap: 0.75rem; /* Space between buttons */
    margin-top: auto; /* Pushes footer to bottom */
    padding-top: 1rem; /* Space above the like button */
    border-top: 1px solid var(--secondary-color); /* Subtle separator */
  }
  
  .use-case-view-projects-button {
    background-color: var(--accent-color);
    color: var(--light-text-color);
    border: none;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: 500;
    font-size: 0.9rem;
    transition: background-color 0.3s ease;
    line-height: 1.4; /* Ensure text fits well */
  }
  
  .use-case-view-projects-button:hover,
  .use-case-view-projects-button:focus {
    background-color: darken(var(--accent-color), 10%);
    outline: none;
    color: var(--light-text-color);
  }
  
  
  .use-case-like-button {
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    color: var(--text-color);
    font-size: 0.9rem;
    border-radius: var(--border-radius);
    transition: background-color 0.2s ease;
  }
  .use-case-like-button:hover, .use-case-like-button:focus {
    background-color: var(--filter-button-bg);
    outline: none;
  }
  .use-case-heart-icon {
    margin-right: 0.5rem;
    font-size: 1.2rem;
    transition: color 0.2s ease, transform 0.2s ease;
  }
  .use-case-like-button .use-case-heart-icon {
    color: var(--heart-color); /* Default unliked heart */
  }
  .use-case-like-button.liked .use-case-heart-icon {
    color: var(--liked-heart-color); /* Liked heart color */
    transform: scale(1.1);
  }
  .use-case-likes-count {
    font-weight: 500;
  }
  
  
  /* Contact Section */
  .contact-section p {
    text-align: center;
    font-size: 1.1rem;
    margin-bottom: 1rem;
  }
  .contact-section p a {
    font-weight: bold;
  }
  
  .contact-form {
    max-width: 600px;
    margin: 2rem auto 0;
    background-color: var(--card-bg-color);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
  }
  
  .contact-form div {
    margin-bottom: 1rem;
  }
  
  .contact-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
    color: var(--primary-color);
  }
  
  .contact-form input[type="text"],
  .contact-form input[type="email"],
  .contact-form textarea {
    width: calc(100% - 20px);
    padding: 0.75rem;
    border: 1px solid #ccc;
    border-radius: var(--border-radius);
    font-size: 1rem;
    box-sizing: border-box;
  }
  
  .contact-form textarea {
    resize: vertical;
    min-height: 100px;
  }
  
  .contact-form input:focus, .contact-form textarea:focus {
      border-color: var(--accent-color);
      outline: 2px solid var(--accent-color);
      outline-offset: -1px;
  }
  
  .submit-button {
    background-color: var(--primary-color);
    color: var(--light-text-color);
    padding: 0.8rem 2rem;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    display: block;
    width: 100%;
  }
  
  .submit-button:hover, .submit-button:focus {
    background-color: darken(var(--primary-color), 10%);
    transform: translateY(-2px);
  }
  
  /* Footer */
  .portfolio-footer {
    background-color: #222;
    color: #aaa;
    text-align: center;
    padding: 2rem 0;
  }
  
  .portfolio-footer p {
    margin: 0;
    font-size: 0.9rem;
  }
  
  
  /* Back to Top Button */
  .back-to-top-button {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background-color: var(--accent-color);
    color: var(--light-text-color);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
    line-height: 50px; 
    text-align: center;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 999;
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out, visibility 0.3s ease-in-out;
    opacity: 0;
    transform: translateY(20px);
    visibility: hidden;
  }
  .back-to-top-button.visible {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
  }
  
  
  .back-to-top-button:hover, .back-to-top-button:focus {
    background-color: darken(var(--accent-color), 10%);
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
  }
  
  /* Workflow Detail Page (Case Study Page) Styles */
  .workflow-detail-page {
    background-color: var(--card-bg-color); 
    padding: 2rem 0 4rem 0; 
  }
  
  .workflow-detail-page .container {
    max-width: 900px; 
  }
  
  .workflow-back-button {
    display: inline-block;
    margin-bottom: 2rem;
    padding: 0.6rem 1.2rem;
    background-color: var(--filter-button-bg);
    color: var(--text-color);
    border: 1px solid #ccc;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
  }
  .workflow-back-button:hover, .workflow-back-button:focus {
    background-color: #d3d9df;
    color: var(--text-color);
  }
  
  .workflow-header {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
  }
  
  .workflow-header h1 {
    font-size: 2.2rem; 
    margin-bottom: 0.5rem;
  }
  
  .workflow-main-image-container {
    margin-bottom: 2.5rem;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
  }
  
  .workflow-main-image {
    width: 100%;
    height: auto;
    max-height: 450px;
    object-fit: cover;
    background-color: var(--primary-color); 
    color: var(--light-text-color); 
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
  }
  
  .workflow-section {
    margin-bottom: 2.5rem;
    padding: 1.5rem;
    background-color: #fdfdfd; 
    border-radius: var(--border-radius);
    border: 1px solid #efefef;
  }
  
  .workflow-section-title {
    font-size: 1.6rem;
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--accent-color);
    display: inline-block; 
  }
  
  .workflow-problem-statement,
  .workflow-solution-highlights,
  .workflow-conclusion-text {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #444;
  }
  
  .workflow-list {
    list-style: none;
    padding-left: 0;
  }
  
  .workflow-list li {
    font-size: 1rem;
    line-height: 1.7;
    color: #444;
    padding-left: 1.5rem;
    position: relative;
    margin-bottom: 0.75rem;
  }
  
  .workflow-list li::before {
    content: '✓'; 
    color: var(--accent-color);
    position: absolute;
    left: 0;
    font-weight: bold;
  }
  
  .challenges-solutions-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
  }
  
  .challenge-solution-item {
  }
  
  .challenge-item, .solution-item {
     padding: 1rem;
     border-radius: calc(var(--border-radius) - 4px);
  }
  
  .challenge-item {
    background-color: #fff5f5; 
    border-left: 4px solid #e53e3e; 
    margin-bottom: 0.75rem;
  }
  .solution-item {
    background-color: #f0fff4; 
    border-left: 4px solid #38a169; 
  }
  
  
  .challenge-solution-subtitle {
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 0.5rem;
  }
  
  .challenge-solution-item p {
      font-size: 0.95rem;
      line-height: 1.6;
      color: #333;
      margin-bottom: 0;
  }
  
  .workflow-conclusion-section {
     background-color: var(--secondary-color); 
     text-align: left;
  }
  
  
  .workflow-cta-container {
    text-align: center;
    margin-top: 2.5rem;
    padding-bottom: 1rem;
  }
  
  .workflow-cta-button {
    background-color: var(--accent-color);
    color: var(--light-text-color);
    padding: 0.9rem 2.2rem;
    border-radius: var(--border-radius);
    font-size: 1.1rem;
    font-weight: bold;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
  }
  .workflow-cta-button:hover, .workflow-cta-button:focus {
    background-color: darken(var(--accent-color), 10%);
    transform: translateY(-2px);
    color: var(--primary-color);
  }
  
  /* Modal Specific Action Buttons in Workflow Detail */
  .workflow-detail-actions-modal-triggers {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
    margin-bottom: 2.5rem; /* Space before main CTA */
    padding-top: 1.5rem;
    border-top: 1px solid #eee;
  }
  
  .workflow-action-button {
    background-color: var(--primary-color);
    color: var(--light-text-color);
    padding: 0.7rem 1.5rem;
    border-radius: var(--border-radius);
    font-size: 0.95rem;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
  }
  
  .workflow-action-button:hover, .workflow-action-button:focus {
    background-color: darken(var(--primary-color), 10%);
    transform: translateY(-1px);
  }
  
  
  /* Future Tech Section Styles */
  .future-tech-section {
    background-color: var(--future-tech-bg);
    color: var(--future-tech-text-color);
    padding: 4rem 0;
  }
  
  .future-tech-intro {
    font-size: 1.1rem;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 2.5rem auto;
    opacity: 0.9;
  }
  
  .future-tech-subsection-title {
    font-size: 1.8rem;
    text-align: center;
    margin-top: 3rem;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
  }
  .future-tech-subsection-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, var(--future-tech-accent-1), var(--future-tech-accent-2));
    margin: 0.5rem auto 0;
    border-radius: 2px;
  }
  
  .emerging-tech-grid, .industry-future-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
  }
  
  .future-tech-card {
    background-color: var(--future-tech-card-bg);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    border: 1px solid var(--future-tech-border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.1);
  }
  .future-tech-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 0 25px rgba(0, 240, 255, 0.2), 0 0 10px rgba(168, 85, 247, 0.15);
  }
  
  .future-tech-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    background: none;
    border: none;
    padding: 0;
    margin-bottom: 0.75rem;
    text-align: left;
    cursor: pointer;
    color: var(--future-tech-text-color);
  }
  .future-tech-card-header:focus {
    outline: 2px solid var(--future-tech-accent-1);
    outline-offset: 2px;
  }
  
  .future-tech-icon {
    font-size: 1.8rem;
    margin-right: 0.75rem;
    filter: drop-shadow(0 0 5px var(--future-tech-accent-1));
  }
  
  .future-tech-card h4 {
    font-size: 1.3rem;
    color: var(--future-tech-text-color);
    font-weight: 600;
    flex-grow: 1;
    margin: 0; /* Reset margin */
  }
  .expand-indicator {
    font-size: 1.5rem;
    color: var(--future-tech-accent-1);
    transition: transform 0.3s ease;
  }
  .future-tech-card.expanded .expand-indicator {
    transform: rotate(45deg);
  }
  
  .future-tech-card-description {
    font-size: 0.9rem;
    margin-bottom: 1rem;
    opacity: 0.8;
  }
  
  .future-tech-card-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out, opacity 0.5s ease-out;
    opacity: 0;
    font-size: 0.9rem;
  }
  .future-tech-card-details.visible {
    max-height: 1000px; /* Adjust as needed */
    opacity: 1;
  }
  .future-tech-card-details p {
    margin-bottom: 0.75rem;
  }
  .future-tech-card-details strong {
    color: var(--future-tech-accent-1);
    opacity: 1;
  }
  .future-tech-card-details ul {
    padding-left: 20px;
    margin-top: 0.25rem;
    margin-bottom: 0.75rem;
  }
  .future-tech-card-details li {
    margin-bottom: 0.25rem;
    font-size: 0.85rem;
    opacity: 0.85;
  }
  
  .prediction-horizon-tag {
    background-color: var(--future-tech-accent-2);
    color: var(--light-text-color);
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
  }
  
  .future-tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
    margin-bottom: 1rem;
  }
  .future-tech-tag {
    background-color: var(--future-tech-border-color);
    color: var(--future-tech-accent-1);
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid var(--future-tech-accent-1);
  }
  
  
  .future-proof-cta-section {
    text-align: center;
    padding: 2.5rem 1rem;
    background-color: var(--future-tech-card-bg);
    border-radius: var(--border-radius);
    margin-top: 3rem;
    border: 1px solid var(--future-tech-accent-2);
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.15);
  }
  .future-proof-cta-section h3 {
    font-size: 1.7rem;
    margin-bottom: 1rem;
    color: var(--future-tech-accent-2);
  }
  .future-proof-cta-section p {
    font-size: 1.05rem;
    max-width: 700px;
    margin: 0 auto 1.5rem auto;
    opacity: 0.9;
  }
  .future-proof-button {
    background: linear-gradient(90deg, var(--future-tech-accent-1), var(--future-tech-accent-2));
    color: var(--primary-color); /* Dark text for contrast on bright gradient */
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(0, 240, 255, 0.2);
  }
  .future-proof-button:hover, .future-proof-button:focus {
    background: linear-gradient(90deg, var(--future-tech-accent-2), var(--future-tech-accent-1));
    color: var(--primary-color);
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 6px 20px rgba(168, 85, 247, 0.3);
  }
  
  /* Modal Styles */
  .modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000; /* Ensure modal is on top */
    padding: 1rem;
    animation: fadeInModalOverlay 0.3s ease-out;
  }
  
  @keyframes fadeInModalOverlay {
    from { opacity: 0; }
    to { opacity: 1; }
  }
  
  .modal-content {
    background-color: var(--card-bg-color);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    width: 90%;
    max-width: 800px; /* Default max-width, can be overridden for specific modals */
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: slideInModalContent 0.3s ease-out;
  }
  
  @keyframes slideInModalContent {
    from { transform: translateY(-30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
  }
  
  .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--secondary-color);
    padding-bottom: 1rem;
    margin-bottom: 1rem;
  }
  
  .modal-title-text {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin: 0;
  }
  
  .modal-close-button {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    background: none;
    border: none;
    font-size: 2rem;
    line-height: 1;
    color: var(--text-color);
    cursor: pointer;
    padding: 0.25rem;
    opacity: 0.7;
  }
  .modal-close-button:hover, .modal-close-button:focus {
    opacity: 1;
    outline: none;
  }
  
  .modal-body {
    /* Styles for content within modal body */
  }
  
  .modal-internal-close-button {
    display: block;
    margin: 1.5rem auto 0;
    padding: 0.6rem 1.5rem;
    background-color: var(--accent-color);
    color: var(--light-text-color);
    border: none;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: bold;
  }
  .modal-internal-close-button:hover {
    background-color: darken(var(--accent-color), 10%);
  }
  
  
  /* Sample Project Modal Content */
  .sample-project-modal-content {
    position: relative;
    display: flex;
    flex-direction: column; 
    gap: 1.5rem;
  }
  
  /* On larger screens, if both iframes are present, display side-by-side */
  @media (min-width: 768px) {
    .sample-project-modal-content.has-both-iframes {
      flex-direction: row;
      justify-content: space-around;
      align-items: flex-start;
    }
    .sample-project-modal-content.has-both-iframes .iframe-container {
      flex-basis: 48%; /* Each takes roughly half, considering gap */
    }
  }
  
  .sample-project-modal-content .iframe-container {
    border: 1px solid #ddd;
    padding: 1rem;
    border-radius: var(--border-radius);
    background-color: var(--secondary-color);
    min-width: 0; /* Fix for flexbox sizing issues with iframes */
  }
  
  .sample-project-modal-content .iframe-container h4 {
    margin-top: 0;
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
    color: var(--primary-color);
    text-align: center;
  }
  
  .mobile-iframe {
    width: 375px;
    max-width: 100%; 
    height: 667px;
    border: 1px solid #ccc;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    display: block;
    margin: 0 auto; 
    background-color: white; 
  }
  .web-iframe {
    width: 100%;
    height: 60vh; /* Make web iframe height responsive */
    min-height: 450px; /* Ensure a minimum height */
    border: 1px solid #ccc;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    background-color: white;
  }
  
  /* Workflow Image Modal Content */
  .workflow-image-modal-content {
    text-align: center;
  }
  .modal-workflow-image {
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
    border-radius: var(--border-radius);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  }
  
  /* Featured Video Modal Content */
  .featured-video-modal-content {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    background-color: #000; /* Black background for video player */
  }
  .modal-video-player {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
  }
  
  
  /* Responsive Design */
  @media (max-width: 900px) { 
    .workflow-detail-page {
      padding-left: 0.5rem;
      padding-right: 0.5rem;
    }
    .nav-branding-group {
      flex-grow: 1; /* Allow branding to take space if links wrap */
    }
    .live-visitors-container .visitor-text {
      display: none; /* Hide "Live Visitors" text on smaller screens */
    }
    .nav-links li {
      margin-left: 1rem; /* Slightly reduce spacing for more nav items */
    }
  }

  
  @media (max-width: 768px) {
    .workflow-detail-page {
      margin-top: 60px !important;
    }
    .hero-section{
      padding-top: 10rem;
    }
    .navbar {
      height: auto; /* Allow navbar to grow if content wraps */
      min-height: var(--navbar-height);
    }
    .navbar .nav-container {
      flex-direction: column;
      align-items: flex-start;
      padding-top: 0.5rem;
      padding-bottom: 0.5rem;
    }
    .nav-branding-group {
      margin-bottom: 0.5rem; /* Space below branding when links wrap */
      width: 100%; /* Ensure it takes full width to allow centering or left align */
      justify-content: space-between; /* Logo left, visitors right-ish */
    }
    .nav-logo {
      font-size: 1.3rem;
      margin-right: 0.5rem;
    }
    .live-visitors-container {
      font-size: 0.85rem; /* Adjust for smaller screens */
    }
    .visitor-icon {
      font-size: 1.1rem;
    }
    .nav-links {
       flex-direction: row; 
       flex-wrap: wrap; /* Allow links to wrap */
       justify-content: center; /* Center links when wrapped */
       width: 100%;
       align-items: center; /* Ensure all items including button are centered vertically */
    }
    .nav-links li {
      margin: 0.3rem 0.5rem; 
    }
     .nav-links a {
      font-size: 0.9rem;
    }
  
    .nav-links li a.main-site-button {
      padding: 0.5rem 1rem; /* Adjust padding for better touch targets */
      margin-top: 0.2rem; /* Add some top margin if it wraps */
      margin-bottom: 0.2rem;
    }
    body {
      /* Adjust padding-top dynamically if navbar height changes significantly, or accept overlap */
      /* For simplicity, we'll keep the original padding-top but acknowledge it might not be perfect if navbar wraps excessively */
    }
  
    .hero-section .main-title {
      font-size: 2rem;
    }
    .hero-section h2 {
      font-size: 1.5rem;
    }
    .hero-section p {
      font-size: 1rem;
    }
    .projects-section h2, .about-section h2, .contact-section h2, .future-tech-section h2 {
      font-size: 1.8rem;
    }
    .project-grid, .emerging-tech-grid, .industry-future-grid {
      grid-template-columns: 1fr;
    }
    .filters-container {
      grid-template-columns: 1fr; 
      gap: 1rem;
    }
    
    .back-to-top-button {
      width: 45px;
      height: 45px;
      font-size: 1.3rem;
      line-height: 45px;
      bottom: 1.5rem;
      right: 1.5rem;
    }
  
    .workflow-header h1 {
      font-size: 1.8rem;
    }
    .workflow-main-image {
      max-height: 300px;
    }
    .workflow-section-title {
      font-size: 1.4rem;
    }
    .workflow-problem-statement, 
    .workflow-solution-highlights,
    .workflow-conclusion-text,
    .workflow-list li {
      font-size: 0.95rem;
    }
    .future-tech-subsection-title {
      font-size: 1.6rem;
    }
  
    .modal-content {
      padding: 1rem;
      max-width: 95%;
    }
    .modal-title-text {
      font-size: 1.2rem;
    }
    .mobile-iframe {
      width: 100%; /* Make mobile iframe take full width of its container */
      height: 500px; /* Adjust height or use aspect ratio */
    }
    .web-iframe {
      height: 40vh; /* Adjust height for smaller modals */
      min-height: 300px;
    }
    .workflow-detail-actions-modal-triggers {
      flex-direction: column;
      align-items: stretch;
    }
    .workflow-action-button {
      width: 100%;
    }
  
  }
  
  @media (max-width: 480px) {
      .container {
          width: 95%;
      }
      /* Navbar adjustments for very small screens */
      .navbar .nav-container {
        align-items: center; /* Center branding and links column */
      }
      .nav-branding-group {
        flex-direction: column; /* Stack logo and visitors */
        align-items: center;
        margin-bottom: 0.75rem;
      }
      .nav-logo {
          margin-right: 0;
          margin-bottom: 0.25rem;
      }
      .live-visitors-container {
          font-size: 0.8rem;
      }
      .live-visitors-container .visitor-icon {
          font-size: 0.9rem;
      }
      .nav-links {
          justify-content: space-around; /* Distribute links more evenly */
      }
      .nav-links li {
        margin: 0.2rem 0.2rem; /* Reduce horizontal margin further */
      }
      .nav-links a {
        font-size: 0.8rem;
        padding: 0.3rem 0.1rem; /* Reduce padding for smaller links */
      }
      .nav-links li a.main-site-button {
          padding: 0.4rem 0.6rem; /* Adjust for very small screens */
          font-size: 0.75rem;
      }
      /* Estimate a potential new navbar height and adjust body padding-top */
      /* This is tricky without JS measuring, so it's an approximation */
      body {
          padding-top: 100px; /* Approx height for wrapped navbar */
      }
  
      .hero-section .main-title {
          font-size: 1.8rem;
      }
      .hero-section h2 {
          font-size: 1.3rem;
      }
      .hero-section p {
          font-size: 0.9rem;
      }
      .cta-button, .submit-button, .workflow-button, .workflow-cta-button, .future-proof-button, .workflow-action-button {
          font-size: 1rem;
          padding: 0.7rem 1.5rem;
      }
      .project-content h3 {
          font-size: 1.3rem;
      }
      .project-card-footer {
          flex-direction: column;
          align-items: flex-start;
          gap: 0.75rem;
      }
      .workflow-button {
          width: 100%; 
          margin-right: 0;
      }
      
      .use-case-categories-overview {
        grid-template-columns: 1fr; 
      }
      .use-case-category-card {
        padding: 1rem;
      }
      .use-case-category-card h4 {
        font-size: 1.2rem;
      }
      .use-case-card-footer {
          flex-direction: column; /* Stack buttons vertically on small screens */
          align-items: stretch; /* Make buttons full width of footer */
      }
      .use-case-view-projects-button, .use-case-like-button {
          width: 100%;
          text-align: center; /* Center text in button */
      }
      .use-case-like-button {
        justify-content: center; /* Center heart and count */
      }
  
  
      .back-to-top-button {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
        line-height: 40px;
        bottom: 1rem;
        right: 1rem;
      }
  
      .workflow-detail-page {
        padding-left: 0.2rem;
        padding-right: 0.2rem;
      }
      .workflow-back-button {
        width: 100%;
        text-align: center;
        margin-bottom: 1.5rem;
      }
      .workflow-header h1 {
        font-size: 1.6rem;
      }
       .workflow-section-title {
        font-size: 1.3rem;
      }
      .challenge-solution-subtitle {
          font-size: 1rem;
      }
      .future-tech-card h4 {
        font-size: 1.1rem;
      }
      .future-tech-icon {
        font-size: 1.5rem;
      }
  
      .sample-project-modal-content .iframe-container h4 {
          font-size: 1rem;
      }
      .mobile-iframe {
        height: 480px;
      }
      .web-iframe {
        height: 35vh;
        min-height: 250px;
      }
  }

  * {
    box-sizing: border-box;
  }
/* Overlay container */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: none; /* default hidden */
  align-items: center; /* vertical centering */
  justify-content: center; /* horizontal centering */
  background-color: rgba(0, 0, 0, 0.6); /* dim background */
  z-index: 1000;
  align-content: center !important;
  justify-items: center !important;
}

/* Modal box */
.modal-content {
  background: white;
  padding: 2rem;
  border-radius: 10px;
  width: 90%;
  max-width: 800px;
  max-height: 90vh !important;
  overflow-y: auto;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  position: relative;
}


/* iframe containers */
.iframe-container {
  margin-bottom: 20px;
}

.iframe-container h4 {
  margin-bottom: 8px;
  font-size: 1.1rem;
}

.mobile-iframe,
.web-iframe,
.modal-video-player {
  width: 100%;
  height: 300px;
  border: 1px solid #ccc;
  border-radius: 8px;
}

.modal-workflow-image {
  width: 100%;
  height: auto;
  border-radius: 8px;
}


@media (max-width: 600px) {
  .mobile-iframe,
  .web-iframe,
  .modal-video-player {
    height: 200px;
  }

  .modal-content {
    padding: 1rem;
  }
}