  :root {
    --nav-height: 120px;
    --color-navy: #0c1244;
    --color-navy-light: #16206b;
    --color-red: #e8242c;
    --color-red-hover: #ff3a42;
    
    --color-bg: #f8fafc;        
    --color-bg-alt: #e2e8f0;    
    --color-surface: #ffffff;   
    
    --color-text: #1d1d1d;
    --color-text-muted: #5b6270;
    --color-border: #cbd5e1;
    --color-modal-overlay: rgba(12, 18, 68, 0.85);
    
    --transition-speed: 0.3s;
  }

  html.dark {
    --color-navy: #0a0f36;
    --color-navy-light: #121842;
    
    --color-bg: #0f172a;        
    --color-bg-alt: #020617;    
    --color-surface: #1e293b;   
    
    --color-text: #e2e8f0;
    --color-text-muted: #94a3b8;
    --color-border: #334155;
    --color-modal-overlay: rgba(0, 0, 0, 0.9);
  }

  *, *::before, *::after { box-sizing: border-box; }
  
  html { 
    scroll-behavior: smooth; 
    background: var(--color-bg);
    overflow-y: scroll;
    scrollbar-gutter: stable;
  }
  
  body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    font-size: 20px;
    line-height: 1.65;
    color: var(--color-text);
    background: var(--color-bg);
    transition: background-color var(--transition-speed), color var(--transition-speed);
    overflow-x: clip;
  }

  h1, h2, h3, h4, h5, h6 { font-family: 'Poppins', sans-serif; margin: 0; color: var(--color-text); }
  p, ul { margin: 0 0 1rem 0; }
  a { text-decoration: none; color: inherit; transition: color var(--transition-speed); }
  img, picture { max-width: 100%; height: auto; display: block; }

  /* Universal Custom Scrollbar (Invisible track, sleek thumb) */
  ::-webkit-scrollbar { width: 8px; background: transparent; }
  ::-webkit-scrollbar-track { background: rgba(0, 0, 0, 0); -webkit-box-shadow: none; border: none; }
  ::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 10px; }
  ::-webkit-scrollbar-thumb:hover { background: var(--color-red); }
  html.dark ::-webkit-scrollbar { background: transparent; }
  html.dark ::-webkit-scrollbar-track { background: rgba(0, 0, 0, 0); }
  html.dark ::-webkit-scrollbar-thumb { background: #475569; }
  html.dark ::-webkit-scrollbar-thumb:hover { background: var(--color-red); }
  ::-webkit-scrollbar-corner { background: transparent; }

  #app-root { min-height: calc(100vh - var(--nav-height)); } 
  .container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
  .section-padding { padding: 90px 0; }
  .bg-alt { background: var(--color-bg-alt); }
  
  .section-title { text-align: center; margin-bottom: 50px; }
  .section-title h2 { font-size: 36px; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; color: var(--color-navy); }
  html.dark .section-title h2 { color: #fff; }
  .section-title h2::after { content: ""; display: block; width: 60px; height: 4px; background: var(--color-red); margin: 15px auto 0; border-radius: 2px;}
  
  .grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
  .grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 30px; }
  .grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
  .grid-5 { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 20px; }

  header {
    position: sticky; top: 0; z-index: 1000; background: var(--color-surface);
    box-shadow: 0 4px 20px rgba(0,0,0,0.05); height: var(--nav-height);
    display: flex; align-items: center; transition: background-color var(--transition-speed);
  }
  html.dark header { box-shadow: 0 4px 20px rgba(0,0,0,0.4); border-bottom: 1px solid var(--color-border); }

  .nav-container { display: flex; justify-content: space-between; align-items: center; width: 100%; }
  .logo-area { display: flex; align-items: center; gap: 12px; cursor: pointer; }
  .logo-area img { height: 80px; width: auto; }
  .logo-area span { font-family: 'Poppins', sans-serif; font-size: 20px; font-weight: 700; color: var(--color-text); }
  
  .nav-links { display: flex; gap: 25px; list-style: none; margin: 0; padding: 0; align-items: center;}
  .nav-links li a.nav-item { 
    font-size: 14px; font-weight: 600; text-transform: uppercase; 
    color: var(--color-text-muted); position: relative; padding: 5px 0; cursor: pointer;
  }
  .nav-links li a.nav-item::after {
    content: ''; position: absolute; bottom: 0; left: 0; width: 0%; height: 2px;
    background: var(--color-red); transition: width 0.3s ease;
  }
  .nav-links li a.nav-item:hover::after, .nav-links li a.nav-item.active::after { width: 100%; }
  .nav-links li a.nav-item:hover, .nav-links li a.nav-item.active { color: var(--color-text); }

  /* Dropdown Styles */
  .dropdown { position: relative; display: inline-block; }
  .dropdown-content {
    display: none; position: absolute; background-color: var(--color-surface);
    min-width: 220px; box-shadow: 0px 10px 25px rgba(0,0,0,0.1); z-index: 1001;
    border-radius: 8px; overflow: hidden; top: 100%; left: -20px;
    border: 1px solid var(--color-border);
  }
  .dropdown-content a {
    color: var(--color-text); padding: 15px 20px; text-decoration: none;
    display: block; font-size: 13px; font-weight: 600; transition: background 0.2s, color 0.2s; text-transform: none; cursor: pointer;
  }
  .dropdown-content a:hover { background-color: var(--color-bg-alt); color: var(--color-red); }
  .dropdown:hover .dropdown-content { display: block; animation: fadeIn 0.2s ease; }
  html.dark .dropdown-content { box-shadow: 0px 10px 25px rgba(0,0,0,0.6); }

  .menu-toggle { display: none; font-size: 24px; color: var(--color-text); cursor: pointer; border: none; background: transparent; }

  .page-view { display: none; opacity: 0; animation: fadeIn 0.4s ease forwards; }
  .page-view.active-view { display: block; }
  @keyframes fadeIn { from { opacity: 0; transform: translateY(15px); } to { opacity: 1; transform: translateY(0); } }

  .hero-banner {
    position: relative; height: 900px; display: flex; align-items: center;
    background: var(--color-navy); overflow: hidden;
  }
  .hero-slide.active { opacity: 0.3; }
  .hero-slide {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover; background-position: center; background-repeat: no-repeat;
    opacity: 0; transition: opacity 1s ease-in-out; z-index: 1; 
  }
  .hero-content { position: relative; z-index: 10; width: 100%; text-align: center; }
  .hero-content h1 {
    font-size: clamp(40px, 6vw, 68px); color: #fff; text-transform: uppercase;
    text-shadow: 2px 4px 16px rgba(0,0,0,0.8); margin-bottom: 20px; line-height: 1.1;
  }
  .hero-content h1 span { color: var(--color-red); }
  .hero-content p {
    color: #f0f0f0; font-size: 18px; max-width: 850px; margin: 0 auto;
    text-shadow: 1px 2px 8px rgba(0,0,0,0.8); font-weight: 500; transition: opacity 0.4s ease;
  }

  .corp-card {
    background: var(--color-surface); border: 1px solid var(--color-border);
    border-top: 4px solid var(--color-border); padding: 40px 30px; border-radius: 8px; 
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s, background-color 0.3s;
    height: 100%; box-shadow: 0 4px 15px rgba(0,0,0,0.03); display: flex; flex-direction: column;
  }
  .corp-card:hover { transform: translateY(-8px); box-shadow: 0 10px 10px rgba(161, 55, 55, 0.5); border-top-color: var(--color-red); }
  html.dark .corp-card { box-shadow: 0 4px 15px rgba(0,0,0,0.2); border-top-color: #334155;}
  html.dark .corp-card:hover { box-shadow: 0 10px 10px rgba(161, 55, 55, 0.5); border-top-color: var(--color-red); }
  
  .corp-card.featured {
    background: var(--color-navy); border-color: var(--color-navy-light);
    border-top-color: var(--color-red); box-shadow: 0 10px 30px rgba(12,18,68,0.2);
  }
  html.dark .corp-card.featured { background: #060b24; border-color: #121842; }
  .corp-card.featured h3 { color: #ffffff; }
  .corp-card.featured p, .corp-card.featured ul { font-size: 18px; color: rgba(255,255,255,0.85); }
  .corp-card.featured .icon { background: var(--color-red); color: #ffffff; }

  .corp-card .icon { 
    font-size: 32px; color: var(--color-red); margin-bottom: 25px; 
    background: rgba(232, 36, 44, 0.1); width: 70px; height: 70px; 
    display: inline-flex; align-items: center; justify-content: center; 
    border-radius: 12px; transition: background-color 0.3s, color 0.3s;
  }
  .corp-card h3 { font-size: 20px; margin-bottom: 15px; text-transform: uppercase; color: var(--color-navy); }
  html.dark .corp-card h3 { color: #fff; }
  .corp-card p { color: var(--color-text-muted); font-size: 18px; flex-grow: 1; }
  
  .filter-row { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-bottom: 15px; align-items: center; }
  .filter-label { font-weight: 700; font-size: 14px; color: var(--color-text-muted); text-transform: uppercase; margin-right: 10px;}
  .filter-btn {
    background: var(--color-surface); color: var(--color-text); border: 1px solid var(--color-border); 
    padding: 8px 20px; border-radius: 30px; font-weight: 600; cursor: pointer;
    transition: all 0.2s; font-size: 13px; box-shadow: 0 2px 8px rgba(0,0,0,0.02);
  }
  .filter-btn:hover { border-color: var(--color-red); color: var(--color-red); transform: translateY(-2px);}
  .filter-btn.active { background: var(--color-red); color: #fff; border-color: var(--color-red); box-shadow: 0 4px 12px rgba(232, 36, 44, 0.3); }

  /* Projects Glossary Cards */
  .project-card {
    cursor: pointer; border-radius: 8px; overflow: hidden; position: relative;
    background: var(--color-surface); border: 1px solid var(--color-border);
    animation: fadeIn 0.4s ease; box-shadow: 0 4px 15px rgba(0,0,0,0.04);
    transition: transform 0.3s, box-shadow 0.3s; display: flex; flex-direction: column;
  }
  .project-card:hover { transform: translateY(-5px); box-shadow: 0 15px 35px rgba(0,0,0,0.1); }
  html.dark .project-card:hover { box-shadow: 0 15px 35px rgba(0,0,0,0.5); }
  
  .project-img-wrapper { position: relative; aspect-ratio: 16/10; overflow: hidden; background: #2a2f35; }
  .project-img-wrapper img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
  .project-card:hover .project-img-wrapper img { transform: scale(1.08); }
  
  .project-info { padding: 25px 20px; text-align: center; flex-grow: 1; display: flex; flex-direction: column;}
  .project-info span { font-size: 14px; color: var(--color-red); font-weight: 700; text-transform: uppercase; margin-bottom: 8px;}
  .project-info h3 { font-size: 18px; margin-bottom: 8px; color: var(--color-navy); }
  html.dark .project-info h3 { color: #fff; }
  .project-summary { font-size: 16px; color: var(--color-text-muted); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 4; line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden;}

  .table-year-text { color: var(--color-navy); }
  td { font-size: 14px;}
  html.dark .table-year-text { color: #fff; }

  /* Modal Styles & Modal Carousel */
  .modal-overlay {
    position: fixed; inset: 0; background: var(--color-modal-overlay);
    backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px);
    display: flex; align-items: center; justify-content: center;
    z-index: 9999; opacity: 0; pointer-events: none; transition: opacity 0.3s;
  }
  .modal-overlay.active { opacity: 1; pointer-events: auto; }
  .modal-content {
    background: var(--color-surface); width: 90%; max-width: 700px; max-height: 90vh; overflow-y: auto;
    border-radius: 12px; box-shadow: 0 25px 50px rgba(0,0,0,0.3);
    transform: translateY(20px); transition: transform 0.3s; border: 1px solid var(--color-border);
  }
  .modal-overlay.active .modal-content { transform: translateY(0); }
  .modal-header { padding: 20px 25px; border-bottom: 1px solid var(--color-border); display: flex; justify-content: space-between; align-items: center; background: var(--color-bg-alt); position: sticky; top:0; z-index: 100;}
  .modal-header h3 { margin: 0; font-size: 20px; color: var(--color-navy); }
  html.dark .modal-header h3 { color: #fff; }
  .close-modal { background: none; border: none; font-size: 24px; color: var(--color-text-muted); cursor: pointer; transition: color 0.2s; }
  .close-modal:hover { color: var(--color-red); }
  .modal-body { padding: 25px; }

  .modal-carousel-wrapper { position: relative; width: 100%; aspect-ratio: 16/10; background: #1a1f26; border-radius: 8px; overflow: hidden; margin-bottom: 20px; }
  .carousel-slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.4s ease; }
  .carousel-slide.active { opacity: 1; z-index: 1; }
  .carousel-btn { 
    position: absolute; top: 50%; transform: translateY(-50%); 
    background: rgba(12, 18, 68, 0.6); color: white; border: none; 
    width: 36px; height: 36px; border-radius: 50%; cursor: pointer; 
    z-index: 10; display: flex; align-items: center; justify-content: center; 
    transition: background 0.2s; backdrop-filter: blur(2px);
  }
  .carousel-btn:hover { background: var(--color-red); }
  .carousel-btn.prev { left: 15px; }
  .carousel-btn.next { right: 15px; }

  /* Certificates */
  .cert-card { 
    background: var(--color-surface); border: 2px solid var(--color-border);
    border-radius: 8px; overflow: hidden; transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 4px 15px rgba(0,0,0,0.04); display: flex; flex-direction: column; animation: fadeIn 0.4s ease;
  }
  .cert-card:hover { transform: translateY(-5px); box-shadow: 0 15px 35px rgba(0,0,0,0.1); border-color: var(--color-red);}
  html.dark .cert-card:hover { box-shadow: 0 15px 35px rgba(0,0,0,0.5); }
  
  .cert-img-wrapper {
    background: var(--color-bg-alt); padding: 1px; display: flex; justify-content: center; align-items: center;
    aspect-ratio: 1 / 1; border-bottom: 1px solid var(--color-border);
  }
  .cert-img-wrapper img { width: 100%; height: 100%; object-fit: contain; box-shadow: 0 5px 15px rgba(0,0,0,0.1); }
  .cert-info { padding: 20px; text-align: center; flex-grow: 1; display: flex; flex-direction: column; justify-content: center;}
  .cert-info h3 { font-size: 15px; margin-bottom: 5px; color: var(--color-navy); }
  html.dark .cert-info h3 { color: #fff; }
  .cert-info span { font-size: 12px; color: var(--color-red); text-transform: uppercase; font-weight: 700;}

  /* Partners */
  .partner-card {
    display: flex; align-items: center; justify-content: center;
    height: 120px; padding: 20px; background: white;
    border: 1px solid var(--color-border); border-radius: 8px; 
    transition: all 0.3s; box-shadow: 0 4px 10px rgba(0,0,0,0.02); animation: fadeIn 0.4s ease;
  }
  .partner-card img { max-height: 100%; filter: grayscale(0%); opacity: 1; transition: all 0.3s; }
  .partner-card:hover { border-color: var(--color-red); transform: translateY(-3px); box-shadow: 0 10px 25px rgba(0,0,0,0.08); }
  html.dark .partner-card { background: rgb(197, 207, 235);}

  .has-tooltip { position: relative; cursor: help; border-bottom: 1px dotted var(--color-text-muted); color: var(--color-navy); font-weight: 600;}
  html.dark .has-tooltip { color: #fff; }
  .has-tooltip::before {
    content: attr(data-tooltip); position: absolute; bottom: 120%; left: 50%; transform: translateX(-50%) translateY(10px);
    background: var(--color-navy); color: #fff; padding: 8px 14px; border-radius: 6px;
    font-size: 12px; font-weight: 600; white-space: nowrap; pointer-events: none;
    opacity: 0; transition: opacity 0.2s, transform 0.2s; z-index: 100; box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  }
  .has-tooltip:hover::before { opacity: 1; transform: translateX(-50%) translateY(0); }

  footer { background: var(--color-navy); color: #fff; padding: 60px 0 20px; }
  .footer-grid { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 40px; margin-bottom: 40px; }
  .footer-col h4 { font-size: 18px; margin-bottom: 20px; color: #fff; }
  .footer-col ul { list-style: none; padding: 0; }
  .footer-col li { margin-bottom: 12px; font-size: 14px; opacity: 0.8; }
  .footer-col a:hover { color: var(--color-red); opacity: 1;}
  .footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 20px; text-align: center; font-size: 14px; opacity: 0.7; }
  
  .theme-btn {
    position: fixed; bottom: 20px; right: 20px; z-index: 9000;
    background: var(--color-surface); color: var(--color-text);
    border: 1px solid var(--color-border); border-radius: 50%;
    width: 50px; height: 50px; display: grid; place-items: center;
    cursor: pointer; box-shadow: 0 4px 15px rgba(0,0,0,0.1); transition: transform 0.2s;
  }
  .theme-btn:hover { transform: scale(1.1); color: var(--color-red); }
  html.dark .theme-btn { box-shadow: 0 4px 15px rgba(0,0,0,0.5); }

  @media (max-width: 900px) {
    .logo-area { justify-content: center; text-align: center; width: 100%;}
    .nav-links {
      position: absolute; top: var(--nav-height); left: 0; right: 0;
      background: var(--color-surface); border-bottom: 1px solid var(--color-border);
      flex-direction: column; gap: 10px; text-align: center; padding: 15px;
      display: none; box-shadow: 0 10px 15px rgba(0,0,0,0.1);
    }
    .nav-links.nav-open { display: flex; }
    /* .nav-links li a.nav-item { display: block; padding: 12px; font-size: 14px; border-radius: 8px; background: var(--color-bg-alt); border: 1px solid transparent; } */
    .nav-links li a.nav-item::after { display: felx; } 
    /* .nav-links li a.nav-item.active { background: var(--color-red); color: #fff; } */
    /* html.dark .nav-links li a.nav-item { border-color: var(red); } */
    html.dark .nav-links li a.nav-item.active { border-color: var(--color-red); }
    .dropdown-content { position: static; box-shadow: none; border: none; margin-top: 10px; border-radius: 0;}
    .menu-toggle { display: block; position: absolute; right: 20px; }
  }