    @import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600&display=swap');

    :root {
      --bg-primary: #0a0a12;
      --bg-secondary: #121225;
      --bg-glass: rgba(18, 18, 37, 0.7);
      --bg-glass-hover: rgba(26, 26, 54, 0.85);
      --border-color: rgba(255, 255, 255, 0.08);
      --border-glow: rgba(99, 102, 241, 0.2);
      
      --text-primary: #f8fafc;
      --text-secondary: #94a3b8;
      --text-muted: #64748b;
      
      --color-primary: #6366f1; /* Indigo */
      --color-primary-glow: rgba(99, 102, 241, 0.4);
      --color-secondary: #ec4899; /* Pink */
      --color-secondary-glow: rgba(236, 72, 153, 0.4);
      --color-tertiary: #14b8a6; /* Teal */
      
      --color-success: #10b981;
      --color-warning: #f59e0b;
      --color-danger: #ef4444;
      --color-info: #3b82f6;
      
      --font-sans: 'Plus Jakarta Sans', sans-serif;
      --font-mono: 'JetBrains Mono', monospace;
      
      --shadow-premium: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
      --shadow-glow: 0 0 20px rgba(99, 102, 241, 0.15);
      
      --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
      --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    * {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
    }

    body {
      background-color: var(--bg-primary);
      color: var(--text-primary);
      font-family: var(--font-sans);
      overflow-x: hidden;
      line-height: 1.6;
    }

    /* Custom Scrollbar */
    ::-webkit-scrollbar {
      width: 8px;
      height: 8px;
    }
    ::-webkit-scrollbar-track {
      background: var(--bg-primary);
    }
    ::-webkit-scrollbar-thumb {
      background: var(--bg-secondary);
      border-radius: 4px;
      border: 2px solid var(--bg-primary);
    }
    ::-webkit-scrollbar-thumb:hover {
      background: var(--color-primary);
    }

    /* Background Gradients */
    .bg-glow-container {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      z-index: -1;
      overflow: hidden;
      pointer-events: none;
    }

    .bg-glow-1 {
      position: absolute;
      top: -10%;
      right: -10%;
      width: 50vw;
      height: 50vw;
      border-radius: 50%;
      background: radial-gradient(circle, var(--color-primary-glow) 0%, rgba(99, 102, 241, 0) 70%);
      filter: blur(80px);
      animation: pulse-glow 15s infinite alternate;
    }

    .bg-glow-2 {
      position: absolute;
      bottom: -10%;
      left: -10%;
      width: 55vw;
      height: 55vw;
      border-radius: 50%;
      background: radial-gradient(circle, var(--color-secondary-glow) 0%, rgba(236, 72, 153, 0) 70%);
      filter: blur(100px);
      animation: pulse-glow 20s infinite alternate-reverse;
    }

    @keyframes pulse-glow {
      0% { transform: scale(1) translate(0, 0); opacity: 0.6; }
      100% { transform: scale(1.1) translate(3%, 3%); opacity: 0.8; }
    }

    /* Layout Utilities */
    .glass-container {
      background: var(--bg-glass);
      backdrop-filter: blur(16px);
      -webkit-backdrop-filter: blur(16px);
      border: 1px solid var(--border-color);
      border-radius: 16px;
      box-shadow: var(--shadow-premium);
    }

    .glass-card {
      background: var(--bg-glass);
      backdrop-filter: blur(12px);
      -webkit-backdrop-filter: blur(12px);
      border: 1px solid var(--border-color);
      border-radius: 12px;
      padding: 1.5rem;
      transition: var(--transition-normal);
    }

    .glass-card:hover {
      border-color: rgba(99, 102, 241, 0.3);
      box-shadow: var(--shadow-premium), 0 0 25px rgba(99, 102, 241, 0.1);
      transform: translateY(-2px);
    }

    /* Typography & Visual Accents */
    .text-gradient {
      background: linear-gradient(135deg, #fff 30%, var(--text-secondary) 100%);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
    }

    .text-gradient-primary {
      background: linear-gradient(135deg, #a5b4fc 0%, var(--color-primary) 50%, #4f46e5 100%);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
    }

    .text-gradient-accent {
      background: linear-gradient(135deg, #fbcfe8 0%, var(--color-secondary) 50%, #db2777 100%);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
    }

    /* Navigation Header */
    .app-header {
      position: sticky;
      top: 0;
      z-index: 50;
      width: 100%;
      background: rgba(10, 10, 18, 0.75);
      backdrop-filter: blur(20px);
      -webkit-backdrop-filter: blur(20px);
      border-bottom: 1px solid var(--border-color);
      padding: 1rem 2rem;
      display: flex;
      justify-content: space-between;
      align-items: center;
    }

    .logo-area {
      display: flex;
      align-items: center;
      gap: 0.75rem;
      text-decoration: none;
      font-weight: 800;
      font-size: 1.5rem;
      letter-spacing: -0.025em;
    }

    .logo-badge {
      background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
      color: white;
      width: 2.5rem;
      height: 2.5rem;
      border-radius: 8px;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 1.25rem;
      font-weight: 900;
      box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
    }

    .nav-links {
      display: flex;
      align-items: center;
      gap: 0.5rem;
    }

    .nav-link {
      background: transparent;
      border: none;
      color: var(--text-secondary);
      font-family: var(--font-sans);
      font-size: 0.95rem;
      font-weight: 600;
      padding: 0.5rem 1rem;
      border-radius: 8px;
      cursor: pointer;
      transition: var(--transition-fast);
      display: flex;
      align-items: center;
      gap: 0.5rem;
    }

    .nav-link:hover {
      color: var(--text-primary);
      background: rgba(255, 255, 255, 0.05);
    }

    .nav-link.active {
      color: var(--text-primary);
      background: rgba(99, 102, 241, 0.15);
      border: 1px solid rgba(99, 102, 241, 0.25);
      box-shadow: 0 0 15px rgba(99, 102, 241, 0.1);
    }

    .lang-switcher {
      display: flex;
      background: rgba(255, 255, 255, 0.05);
      border: 1px solid var(--border-color);
      border-radius: 8px;
      padding: 2px;
      margin-left: 1rem;
    }

    .lang-btn {
      background: transparent;
      border: none;
      color: var(--text-secondary);
      font-family: var(--font-sans);
      font-weight: 700;
      font-size: 0.75rem;
      padding: 0.35rem 0.6rem;
      border-radius: 6px;
      cursor: pointer;
      transition: var(--transition-fast);
    }

    .lang-btn.active {
      background: var(--color-primary);
      color: white;
    }

    /* Button & Form Elements */
    .btn-primary {
      background: linear-gradient(135deg, var(--color-primary) 0%, #4f46e5 100%);
      color: white;
      border: none;
      padding: 0.75rem 1.5rem;
      font-weight: 600;
      border-radius: 8px;
      cursor: pointer;
      transition: var(--transition-fast);
      box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
      display: inline-flex;
      align-items: center;
      gap: 0.5rem;
    }

    .btn-primary:hover {
      transform: translateY(-1px);
      box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4), 0 0 10px rgba(99, 102, 241, 0.2);
    }

    .btn-secondary {
      background: rgba(255, 255, 255, 0.05);
      color: var(--text-primary);
      border: 1px solid var(--border-color);
      padding: 0.75rem 1.5rem;
      font-weight: 600;
      border-radius: 8px;
      cursor: pointer;
      transition: var(--transition-fast);
      display: inline-flex;
      align-items: center;
      gap: 0.5rem;
    }

    .btn-secondary:hover {
      background: rgba(255, 255, 255, 0.1);
      border-color: rgba(255, 255, 255, 0.2);
    }

    .input-field {
      width: 100%;
      background: rgba(10, 10, 18, 0.5);
      border: 1px solid var(--border-color);
      border-radius: 8px;
      padding: 0.75rem 1rem;
      color: var(--text-primary);
      font-family: var(--font-sans);
      font-size: 0.95rem;
      transition: var(--transition-fast);
    }

    .input-field:focus {
      outline: none;
      border-color: var(--color-primary);
      box-shadow: 0 0 12px rgba(99, 102, 241, 0.2);
    }

    /* Landing Page CSS */
    .landing-hero {
      min-height: calc(100vh - 73px);
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      padding: 4rem 2rem;
      text-align: center;
      max-width: 1000px;
      margin: 0 auto;
    }

    .hero-badge {
      background: rgba(99, 102, 241, 0.1);
      border: 1px solid rgba(99, 102, 241, 0.3);
      padding: 0.4rem 1rem;
      border-radius: 20px;
      font-size: 0.85rem;
      font-weight: 600;
      color: #a5b4fc;
      margin-bottom: 2rem;
      display: inline-flex;
      align-items: center;
      gap: 0.5rem;
    }

    .hero-title {
      font-size: 3.5rem;
      font-weight: 800;
      line-height: 1.15;
      margin-bottom: 1.5rem;
      letter-spacing: -0.03em;
    }

    .hero-description {
      font-size: 1.1rem;
      color: var(--text-secondary);
      max-width: 800px;
      margin-bottom: 3rem;
      text-align: justify;
    }

    .hero-extended-text {
      text-align: justify;
      color: var(--text-secondary);
      margin-top: 1.5rem;
      font-size: 0.95rem;
      border-left: 3px solid var(--color-primary);
      padding-left: 1.5rem;
      margin-bottom: 2.5rem;
    }

    /* Info Grid */
    .info-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
      gap: 2rem;
      width: 100%;
      padding: 2rem 0;
    }

    .info-card {
      text-align: left;
    }

    .info-card-icon {
      width: 3rem;
      height: 3rem;
      border-radius: 10px;
      background: rgba(99, 102, 241, 0.1);
      color: var(--color-primary);
      display: flex;
      align-items: center;
      justify-content: center;
      margin-bottom: 1.25rem;
      border: 1px solid rgba(99, 102, 241, 0.2);
    }

    .info-card-title {
      font-size: 1.25rem;
      font-weight: 700;
      margin-bottom: 0.75rem;
    }

    .info-card-desc {
      color: var(--text-secondary);
      font-size: 0.95rem;
    }

    /* Actuaries Grid & Blog CSS */
    .cards-container {
      max-width: 1200px;
      margin: 0 auto;
      padding: 4rem 2rem;
    }

    .section-header {
      margin-bottom: 3rem;
      text-align: center;
    }

    .section-title {
      font-size: 2.25rem;
      font-weight: 800;
      margin-bottom: 1rem;
    }

    .section-subtitle {
      color: var(--text-secondary);
      font-size: 1.1rem;
      max-width: 600px;
      margin: 0 auto;
    }

    .actuary-profile-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
      gap: 2rem;
    }

    .profile-card {
      display: flex;
      flex-direction: column;
      gap: 1rem;
      cursor: pointer;
    }

    .profile-header {
      display: flex;
      align-items: center;
      gap: 1rem;
    }

    .profile-avatar {
      width: 4rem;
      height: 4rem;
      border-radius: 50%;
      background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
      display: flex;
      align-items: center;
      justify-content: center;
      color: white;
      font-size: 1.5rem;
      font-weight: 700;
    }

    .profile-info h3 {
      font-size: 1.2rem;
      font-weight: 700;
    }

    .profile-info p {
      color: var(--color-primary);
      font-size: 0.85rem;
      font-weight: 600;
    }

    .profile-body {
      color: var(--text-secondary);
      font-size: 0.95rem;
      flex-grow: 1;
    }

    .profile-skills {
      display: flex;
      flex-wrap: wrap;
      gap: 0.5rem;
    }

    .skill-tag {
      background: rgba(255, 255, 255, 0.05);
      border: 1px solid var(--border-color);
      padding: 0.25rem 0.6rem;
      border-radius: 6px;
      font-size: 0.75rem;
      color: var(--text-secondary);
    }

    /* Modal / Popup for CV */
    .modal-overlay {
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background: rgba(0, 0, 0, 0.75);
      backdrop-filter: blur(8px);
      z-index: 100;
      display: flex;
      justify-content: center;
      align-items: center;
      padding: 2rem;
    }

    .modal-content {
      background: var(--bg-secondary);
      border: 1px solid var(--border-color);
      border-radius: 16px;
      width: 100%;
      max-width: 800px;
      max-height: 90vh;
      overflow-y: auto;
      padding: 2.5rem;
      position: relative;
      box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    }

    .modal-close {
      position: absolute;
      top: 1.5rem;
      right: 1.5rem;
      background: transparent;
      border: none;
      color: var(--text-secondary);
      font-size: 1.5rem;
      cursor: pointer;
    }

    .modal-close:hover {
      color: white;
    }

    .cv-section-title {
      border-bottom: 1px solid var(--border-color);
      padding-bottom: 0.5rem;
      margin-top: 1.5rem;
      margin-bottom: 1rem;
      color: var(--color-primary);
      font-weight: 700;
      font-size: 1.1rem;
    }

    .cv-item {
      margin-bottom: 1.25rem;
    }

    .cv-item-title {
      font-weight: 700;
      font-size: 1rem;
      display: flex;
      justify-content: space-between;
    }

    .cv-item-company {
      color: var(--color-tertiary);
      font-size: 0.9rem;
      margin-bottom: 0.35rem;
    }

    .cv-item-desc {
      color: var(--text-secondary);
      font-size: 0.88rem;
      list-style-type: disc;
      padding-left: 1.25rem;
      margin-top: 0.25rem;
    }

    .cv-item-desc li {
      margin-bottom: 0.25rem;
    }

    /* Blog Posts styling */
    .blog-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
      gap: 2.5rem;
    }

    .blog-card {
      display: flex;
      flex-direction: column;
      height: 100%;
    }

    .blog-img-placeholder {
      height: 180px;
      border-radius: 8px;
      background: linear-gradient(135deg, rgba(99, 102, 241, 0.2) 0%, rgba(236, 72, 153, 0.1) 100%);
      border: 1px solid var(--border-color);
      display: flex;
      align-items: center;
      justify-content: center;
      color: var(--text-secondary);
      margin-bottom: 1.25rem;
      font-size: 1.5rem;
      position: relative;
      overflow: hidden;
    }

    .blog-img-placeholder::after {
      content: '';
      position: absolute;
      width: 150%;
      height: 150%;
      background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 60%);
    }

    .blog-meta {
      display: flex;
      gap: 1rem;
      font-size: 0.8rem;
      color: var(--text-muted);
      margin-bottom: 0.75rem;
    }

    .blog-title {
      font-size: 1.25rem;
      font-weight: 700;
      margin-bottom: 0.75rem;
      line-height: 1.3;
    }

    .blog-excerpt {
      color: var(--text-secondary);
      font-size: 0.9rem;
      margin-bottom: 1.25rem;
      flex-grow: 1;
    }

    .read-more-link {
      color: var(--color-primary);
      font-size: 0.85rem;
      font-weight: 600;
      display: flex;
      align-items: center;
      gap: 0.25rem;
      text-decoration: none;
      cursor: pointer;
    }

    .read-more-link:hover {
      color: var(--color-secondary);
    }

    /* SOFTWARE SECTION LAYOUT */
    .software-container {
      display: flex;
      min-height: calc(100vh - 73px);
    }

    .software-sidebar {
      width: 280px;
      background: rgba(10, 10, 18, 0.5);
      border-right: 1px solid var(--border-color);
      padding: 1.5rem 1rem;
      display: flex;
      flex-direction: column;
      gap: 0.5rem;
      flex-shrink: 0;
      transition: width var(--transition-normal), padding var(--transition-normal);
      overflow-x: hidden;
    }

    .software-sidebar.collapsed {
      width: 72px;
      padding: 1.5rem 0.5rem;
    }

    .sidebar-heading {
      font-size: 0.75rem;
      font-weight: 700;
      text-transform: uppercase;
      color: var(--text-muted);
      letter-spacing: 0.05em;
      padding: 0.5rem 0.75rem 0.25rem;
      margin-top: 1rem;
      transition: opacity var(--transition-fast);
    }

    .software-sidebar.collapsed .sidebar-heading {
      opacity: 0;
      height: 0;
      margin: 0;
      padding: 0;
      overflow: hidden;
    }

    .sidebar-btn {
      background: transparent;
      border: none;
      color: var(--text-secondary);
      font-family: var(--font-sans);
      font-size: 0.9rem;
      font-weight: 600;
      padding: 0.75rem 1rem;
      border-radius: 8px;
      cursor: pointer;
      transition: var(--transition-fast);
      display: flex;
      align-items: center;
      gap: 0.75rem;
      text-align: left;
      width: 100%;
    }

    .software-sidebar.collapsed .sidebar-btn {
      justify-content: center;
      padding: 0.75rem;
    }

    .software-sidebar.collapsed .sidebar-btn-text {
      display: none;
    }

    .sidebar-btn:hover {
      color: var(--text-primary);
      background: rgba(255, 255, 255, 0.03);
    }

    .sidebar-btn.active {
      color: var(--text-primary);
      background: rgba(99, 102, 241, 0.15);
      border-left: 3px solid var(--color-primary);
    }
    
    .sidebar-toggle-btn {
      background: transparent;
      border: none;
      color: var(--text-secondary);
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 0.5rem;
      margin-bottom: 0.5rem;
      border-radius: 8px;
      align-self: flex-end;
    }
    .sidebar-toggle-btn:hover {
      background: rgba(255, 255, 255, 0.05);
      color: var(--text-primary);
    }
    .software-sidebar.collapsed .sidebar-toggle-btn {
      align-self: center;
    }

    .software-content {
      flex-grow: 1;
      padding: 2.5rem;
      overflow-y: auto;
      max-width: calc(100vw - 280px);
      transition: max-width var(--transition-normal);
    }
    .software-sidebar.collapsed ~ .software-content {
      max-width: calc(100vw - 72px);
    }

    @media (max-width: 768px) {
      .software-container {
        flex-direction: column;
      }
      .software-sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
      }
      .software-sidebar.collapsed {
        height: 60px;
        flex-direction: row;
        align-items: center;
        padding: 0 1rem;
      }
      .software-sidebar.collapsed .sidebar-btn {
        display: none;
      }
      .software-sidebar.collapsed .sidebar-toggle-btn {
        margin: auto 0 auto auto;
      }
      .software-content {
        max-width: 100vw;
        padding: 1.5rem;
      }
      .software-sidebar.collapsed ~ .software-content {
        max-width: 100vw;
      }
      .kpi-grid {
        grid-template-columns: 1fr;
      }
      .form-grid {
        grid-template-columns: 1fr;
      }
      .profile-card {
        padding: 1.5rem;
      }
      .nav-links {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--bg-secondary);
        flex-direction: column;
        padding: 1rem;
        z-index: 1000;
        border-bottom: 1px solid var(--border-color);
        box-shadow: 0 10px 15px -3px rgba(0,0,0,0.5);
      }
      .nav-links.mobile-open {
        display: flex;
      }
      .nav-links button {
        width: 100%;
        justify-content: flex-start;
      }
      .header-container {
        padding: 0 1rem;
      }
    }

    /* KPI Dashboards & Widgets */
    .kpi-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
      gap: 1.5rem;
      margin-bottom: 2.5rem;
    }

    .kpi-card {
      padding: 1.5rem;
    }

    .kpi-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      color: var(--text-secondary);
      font-size: 0.85rem;
      font-weight: 600;
      margin-bottom: 0.75rem;
    }

    .kpi-value {
      font-size: 1.75rem;
      font-weight: 800;
      font-family: var(--font-mono);
    }

    .kpi-footer {
      font-size: 0.75rem;
      color: var(--text-muted);
      margin-top: 0.5rem;
      display: flex;
      align-items: center;
      gap: 0.25rem;
    }

    /* Table styles */
    .table-container {
      overflow-x: auto;
      margin-top: 1rem;
      border: 1px solid var(--border-color);
      border-radius: 8px;
    }

    .custom-table {
      width: 100%;
      border-collapse: collapse;
      text-align: left;
      font-size: 0.9rem;
    }

    .custom-table th {
      background: rgba(255, 255, 255, 0.02);
      color: var(--text-secondary);
      font-weight: 600;
      padding: 1rem;
      border-bottom: 1px solid var(--border-color);
    }

    .custom-table td {
      padding: 1rem;
      border-bottom: 1px solid var(--border-color);
    }

    .custom-table tr:last-child td {
      border-bottom: none;
    }

    .custom-table tr:hover td {
      background: rgba(255, 255, 255, 0.01);
    }

    /* Forms layout */
    .form-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
      gap: 1.5rem;
      margin-bottom: 2rem;
    }

    .form-group {
      display: flex;
      flex-direction: column;
      gap: 0.5rem;
    }

    .form-label {
      font-size: 0.85rem;
      font-weight: 600;
      color: var(--text-secondary);
    }

    .select-field {
      width: 100%;
      background: rgba(10, 10, 18, 0.5);
      border: 1px solid var(--border-color);
      border-radius: 8px;
      padding: 0.75rem 1rem;
      color: var(--text-primary);
      font-family: var(--font-sans);
      font-size: 0.95rem;
      appearance: none;
      background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2394a3b8'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
      background-repeat: no-repeat;
      background-position: right 1rem center;
      background-size: 1.25rem;
    }

    .select-field:focus {
      outline: none;
      border-color: var(--color-primary);
      box-shadow: 0 0 12px rgba(99, 102, 241, 0.2);
    }

    /* Commutation values displays */
    .commutation-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
      gap: 1rem;
      margin-top: 1.5rem;
    }

    .commutation-box {
      background: rgba(255, 255, 255, 0.02);
      border: 1px solid var(--border-color);
      border-radius: 8px;
      padding: 1rem;
      text-align: center;
    }

    .comm-label {
      font-size: 0.75rem;
      font-weight: 700;
      color: var(--text-muted);
      margin-bottom: 0.25rem;
    }

    .comm-value {
      font-family: var(--font-mono);
      font-size: 1.1rem;
      font-weight: 600;
      color: var(--color-primary);
    }

    /* Formula list */
    .formula-item {
      border-bottom: 1px solid var(--border-color);
      padding: 1.5rem 0;
    }

    .formula-item:last-child {
      border-bottom: none;
    }

    .formula-title {
      font-size: 1.1rem;
      font-weight: 700;
      margin-bottom: 0.5rem;
    }

    .formula-latex {
      background: rgba(255, 255, 255, 0.02);
      border-left: 4px solid var(--color-primary);
      padding: 1rem;
      border-radius: 0 8px 8px 0;
      font-family: var(--font-mono);
      font-size: 1rem;
      margin: 0.75rem 0;
      color: #a5b4fc;
    }

    .formula-desc {
      color: var(--text-secondary);
      font-size: 0.9rem;
    }

    /* File Upload Simulation Area */
    .upload-dropzone {
      border: 2px dashed rgba(99, 102, 241, 0.3);
      border-radius: 12px;
      padding: 3rem;
      text-align: center;
      cursor: pointer;
      transition: var(--transition-normal);
      background: rgba(99, 102, 241, 0.01);
    }

    .upload-dropzone:hover {
      border-color: var(--color-primary);
      background: rgba(99, 102, 241, 0.03);
    }

    .upload-icon {
      width: 4rem;
      height: 4rem;
      color: var(--text-secondary);
      margin: 0 auto 1.5rem;
    }

    /* Graph display mockup */
    .mock-chart-container {
      height: 300px;
      border: 1px solid var(--border-color);
      background: rgba(255, 255, 255, 0.01);
      border-radius: 8px;
      display: flex;
      align-items: flex-end;
      justify-content: space-between;
      padding: 2rem;
      position: relative;
      overflow: hidden;
    }

    .chart-bar-wrapper {
      display: flex;
      flex-direction: column;
      align-items: center;
      flex-grow: 1;
      height: 100%;
      justify-content: flex-end;
      gap: 0.5rem;
    }

    .chart-bar {
      width: 40px;
      border-radius: 4px 4px 0 0;
      background: linear-gradient(to top, var(--color-primary) 0%, var(--color-secondary) 100%);
      transition: height 1s ease-in-out;
      box-shadow: 0 0 10px rgba(99, 102, 241, 0.2);
    }

    .chart-label {
      font-size: 0.75rem;
      color: var(--text-secondary);
    }

    .chart-value {
      font-size: 0.7rem;
      color: var(--text-muted);
      font-family: var(--font-mono);
    }

    .badge {
      display: inline-flex;
      align-items: center;
      padding: 0.25rem 0.5rem;
      border-radius: 4px;
      font-size: 0.75rem;
      font-weight: 600;
    }

    .badge-success {
      background: rgba(16, 185, 129, 0.1);
      color: var(--color-success);
      border: 1px solid rgba(16, 185, 129, 0.2);
    }

    .badge-warning {
      background: rgba(245, 158, 11, 0.1);
      color: var(--color-warning);
      border: 1px solid rgba(245, 158, 11, 0.2);
    }

    .badge-danger {
      background: rgba(239, 68, 68, 0.1);
      color: var(--color-danger);
      border: 1px solid rgba(239, 68, 68, 0.2);
    }
    @keyframes spin {
      0% { transform: rotate(0deg); }
      100% { transform: rotate(360deg); }
    }
    .spinner {
      border: 3px solid rgba(255, 255, 255, 0.1);
      border-top: 3px solid var(--color-primary);
      border-radius: 50%;
      width: 40px;
      height: 40px;
      margin: 0 auto;
      animation: spin 1s linear infinite;
    }
  </style>

/* Enhanced Mobile Responsiveness */
@media (max-width: 768px) {
  /* Fix Typography and Spacing */
  h1, .hero-title { font-size: 2.5rem !important; }
  h2, .section-title { font-size: 2rem !important; }
  h3 { font-size: 1.5rem !important; }
  
  .glass-panel, .software-content, .dashboard-container {
    padding: 1rem !important;
  }
  
  /* Tables */
  table {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  
  /* Buttons */
  .btn-primary, .btn-secondary, .btn-glass, button {
    width: 100%;
    margin-bottom: 0.5rem;
    justify-content: center;
  }
  
  .hero-buttons {
    flex-direction: column;
    gap: 1rem;
    width: 100%;
  }

  /* Form and Filters */
  .filter-controls, .form-grid {
    flex-direction: column !important;
    gap: 1rem;
  }
  
  .form-group input, .form-group select {
    width: 100%;
  }
  
  /* Tabs */
  .nav-tabs {
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  .nav-tabs button {
    flex: 1 1 calc(50% - 0.5rem);
    text-align: center;
    padding: 0.5rem;
  }

  /* Software Layout Specifics */
  .software-sidebar {
    position: static;
    height: auto;
    border-right: none;
    border-bottom: 1px solid var(--border-color);
  }
  .software-container {
    flex-direction: column;
  }
  .formula-latex {
    font-size: 12px;
    padding: 1rem;
    overflow-x: auto;
  }
  
  /* Modal */
  .modal-content {
    width: 95% !important;
    padding: 1rem !important;
    margin: 10px auto;
  }
  
  .blog-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .hero-title { font-size: 2rem !important; }
  .nav-tabs button { flex: 1 1 100%; }
}
