/* =================================================================
   GLOBAL STYLES & BODY
   ================================================================= */

   body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: 'Trirong', serif;
    background: linear-gradient(-45deg, #0a0f2c, #1b1f3a, #0a0f2c, #1b1f3a);
    background-size: 400% 400%;
    animation: gradient 10s ease infinite;
    color: #fff;
    position: relative;
    background-attachment: fixed;
  }
  
    /* Hide scrollbar for webkit browsers (Chrome, Safari, Edge) */
    body::-webkit-scrollbar {
      display: none;
    }

  @keyframes gradient {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
  }
  
  body::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(rgba(255,255,255,0.05) 1px, transparent 1px);
    background-size: 30px 30px;
    pointer-events: none;
  }
  
  /* =================================================================
     ANIMATIONS & KEYFRAMES
     ================================================================= */
  
    .sql-analysis {
      opacity: 1 !important;
      transform: translateY(0) !important;
    }
  
  /* =================================================================
     NAVIGATION & HEADER
     ================================================================= */
  
     .nav-header {
      position: relative;
      top: 20px;
      left: 0;
      width: 100%;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 0 4rem;
      z-index: 1000;
      box-sizing: border-box;
    }
    
    .menu-toggle {
      position: absolute;
      left: 4rem;
      top: 50%;
      transform: translateY(-50%);
      background: none;
      border: none;
      color: #fff;
      font-size: 2rem;
      cursor: pointer;
      transition: transform 0.3s ease;
      padding: 0.5rem;
      display: flex;
      align-items: center;
      justify-content: center;
    }
    
    .menu-toggle:hover {
      transform: translateY(-50%) scale(1.05);
    }
    
    .menu-toggle.hidden,
    .contact-btn.hidden,
    .nav-brand.hidden,
    .nav-name.hidden {
      display: none;
    }
    
    .contact-btn {
      position: absolute;
      right: 4rem;
      top: 50%;
      transform: translateY(-50%);
      background: none;
      border: 2px solid #fff;
      color: #fff;
      padding: 0.25rem 1rem;
      text-decoration: none;
      border-radius: 50px;
      transition: transform 0.3s ease;
      z-index: 2500;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
    }
    
    .contact-btn:hover {
      transform: translateY(-50%) scale(1.05);
    }
    
    .nav-brand {
      display: flex;
      align-items: center;
      cursor: pointer;
      transition: transform 0.3s ease;
      justify-content: center;
    }
    
    .nav-brand:hover {
      transform: scale(1.05);
    }
    
    .headshot {
      cursor: pointer;
      width: 40px;
      height: 40px;
      border-radius: 50%;
      object-fit: cover;
      margin-right: 0.5rem;
    }
    
    .nav-name {
      cursor: pointer;
      font-size: 1.5rem;
      font-weight: bold;
      line-height: 1;
    }
  
  /* =================================================================
     MENU OVERLAY & MOBILE MENU
     ================================================================= */
  
  .menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backdrop-filter: blur(15px);
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: flex-start;
    transform: translateX(-100%);
    transition: transform 0.75s ease;
    z-index: 999;
  }
  
  .menu-overlay.active {
    transform: translateX(0);
  }
  
  .menu-content {
    width: 400px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    height: 100%;
    padding: 2rem;
    color: #fff;
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
    border-right: 1px solid rgba(255,255,255,0.2);
  }
  
  .menu-content ul {
    list-style: none;
    padding: 0;
  }
  
  .menu-content li {
    margin: 1rem 0;
  }
  
  .menu-content li a {
    color: #fff;
    text-decoration: none;
    font-size: 1.5rem;
    transition: transform 0.3s ease;
    display: inline-block;
  }
  
  .menu-content li a:hover {
    transform: scale(1.05);
  }
  
  /* =================================================================
     HERO SECTION
     ================================================================= */
  
  .analysis-hero {
    height: 100vh;
    margin-top: -60px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    transition: opacity 0.5s ease;
    margin-bottom: 0;
  }
  
  .hero-content {
    max-width: 1200px;
    padding: 10rem;
    z-index: 2;
  }
  
  .hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    padding: 0.5rem 1.5rem;
    margin-bottom: 2rem;
    font-size: 0.9rem;
    color: #ccc;
  }
  
  .hero-title {
    font-size: 4rem;
    font-weight: 700;
    margin: 0 0 1rem;
    background: linear-gradient(135deg, #fff 0%, #ccc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }
  
  .hero-subtitle {
    font-size: 1.5rem;
    color: #ccc;
    max-width: 750px;
    margin: 0 auto;
  }
  
  .hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 3rem;
  }
  
  .stat-item {
    text-align: center;
    background: rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    min-width: 150px;
  }
  
  .stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #fff;
    display: block;
  }
  
  .stat-label {
    font-size: 0.9rem;
    color: #ccc;
    margin-top: 0.5rem;
  }
  
  .typewriter-text {
    font-size: 5rem;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
  }
  
  /* =================================================================
     PROJECT OVERVIEW SECTION
     ================================================================= */
  
  .project-overview {
    padding: 10rem 0;
    position: relative;
  }
  
  .overview-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 2rem;
  }
  
  .overview-header {
    text-align: center;
    margin-bottom: 5rem;
  }
  
  .section-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    padding: 0.5rem 1.5rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: #ccc;
  }
  
  .section-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #fff;
  }
  
  .section-description {
    font-size: 1.2rem;
    color: #ccc;
    max-width: 750px;
    margin: 0 auto;
    line-height: 1.6;
  }
  
  .overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
  }
  
  .overview-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
  }
  
  .overview-card:hover {
    transform: translateY(-5px);
  }
  
  .card-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.1));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
  }
  
  .card-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #fff;
  }
  
  .card-description {
    color: #ccc;
    line-height: 1.6;
    font-size: 1rem;
  }
  
  /* =================================================================
     DATA TABLE SECTION
     ================================================================= */
  
  .data-section {
    padding: 10rem 0;
  }
  
  .data-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
  }
  
  .table-wrapper {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2rem;
    margin-top: 3rem;
    overflow-x: auto;
  }
  
  .data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
  }
  
  .data-table th,
  .data-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .data-table th {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-weight: 600;
    position: sticky;
    top: 0;
  }
  
  .data-table td {
    color: #ccc;
  }
  
  .data-table tr:hover {
    background: rgba(255, 255, 255, 0.03);
  }
  
  .table-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 1rem;
  }
  
  .table-stats {
    display: flex;
    gap: 2rem;
  }
  
  .table-stat {
    text-align: center;
  }
  
  .table-stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    display: block;
  }
  
  .table-stat-label {
    font-size: 0.8rem;
    color: #ccc;
  }
  
  /* =================================================================
     SQL ANALYSIS SECTION
     ================================================================= */
  
  .sql-analysis {
    padding: 10rem 0;
  }
  
  .analysis-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
  }
  
  .analysis-item {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 3rem;
  }
  
  .analysis-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 1rem;
  }
  
  .analysis-description {
    color: #ccc;
    margin-bottom: 2rem;
    line-height: 1.6;
  }
  
  .sql-code {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    overflow-x: auto;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    color: #e0e0e0;
    white-space: pre-wrap;
  }
  
  .results-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    margin-top: 1rem;
  }
  
  .results-table th,
  .results-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .results-table th {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    font-weight: 600;
  }
  
  .results-table td {
    color: #ccc;
  }
  
/* =================================================================
     SQL SYNTAX HIGHLIGHTING
     ================================================================= */

  .sql-code {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    overflow-x: auto;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    color: #e0e0e0;
    white-space: pre;
    tab-size: 4;
    line-height: 1.4;
  }
    
  /* SQL Keywords - Red/Orange like SELECT, CASE, WHEN, etc. */
  .sql-keyword {
    color: #ce9178; /* Orange/salmon color */
    font-weight: normal;
  }

  /* SQL Functions - Yellow like ROUND, SUM, AVG */
  .sql-function {
    color: #dcdcaa; /* Yellow */
  }

  /* SQL Strings - Blue like 'Super Bowl', dates, etc. */
  .sql-string {
    color: #9cdcfe; /* Light blue */
  }

  /* SQL Numbers - Light green */
  .sql-number {
    color: #b5cea8; /* Light green */
  }

  /* SQL Comments - Green */
  .sql-comment {
    color: #6a9955; /* Green for comments */
    font-style: italic;
  }

  /* =================================================================
     INSIGHTS SECTION
     ================================================================= */
  
  .insights-section {
    padding: 10rem 0;
  }
  
  .insights-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
  }
  
  .insights-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 4rem;
  }
  
  .insight-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2.5rem;
  }
  
  .insight-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: #fff;
  }
  
  .insight-list {
    list-style: none;
    padding: 0;
  }
  
  .insight-list li {
    background: rgba(255, 255, 255, 0.03);
    margin-bottom: 1rem;
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid #667eea;
    color: #ccc;
    line-height: 1.5;
  }
  
  /* =================================================================
     UTILITY COMPONENTS
     ================================================================= */
  
  .scroll-top-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: none;
    color: #fff;
    border: 2px solid #fff;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.5s ease, transform 0.3s ease;
  }
  
  .scroll-top-btn.show {
    opacity: 1;
  }
  
  .scroll-top-btn:hover {
    transform: scale(1.05);
  }
  
  /* =================================================================
     RESPONSIVE DESIGN
     ================================================================= */
  
  @media (max-width: 768px) {
    .hero-title {
      font-size: 2.5rem;
    }
  
    .hero-stats {
      flex-direction: column;
      gap: 1rem;
    }
  
    .overview-grid {
      grid-template-columns: 1fr;
    }
  
    .insights-grid {
      grid-template-columns: 1fr;
      gap: 2rem;
    }
  
    .table-stats {
      justify-content: center;
    }
  
    .table-info {
      justify-content: center;
      text-align: center;
    }
  
    .menu-toggle {
      left: 1rem;
    }
  
    .contact-btn {
      right: 1rem;
    }
  
    .hero-content {
      padding: 5rem 2rem;
    }
  
    .typewriter-text {
      font-size: 3rem;
    }
  
    .section-title {
      font-size: 2rem;
    }
  
    .sql-code {
      font-size: 0.75rem;
    }
  
    .analysis-container,
    .data-container,
    .overview-container,
    .insights-container {
      padding: 0 1rem;
    }

    .insights-container {
      max-width: 100%;
      margin: 0 auto;
      padding: 0 5rem;
      box-sizing: border-box;
    }
    
    .insights-grid {
      display: grid;
      grid-template-columns: 1fr;
      gap: 2rem;
      margin-top: 4rem;
    }
    
    .insight-card {
      background: rgba(255, 255, 255, 0.05);
      backdrop-filter: blur(20px);
      border: 1px solid rgba(255, 255, 255, 0.1);
      border-radius: 16px;
      padding: 2rem;
    }
    
    .insight-title {
      font-size: 1.3rem;
      font-weight: 600;
      margin-bottom: 1.5rem;
      color: #fff;
    }
    
    .insight-list li {
      background: rgba(255, 255, 255, 0.03);
      margin-bottom: 1rem;
      padding: 1rem;
      border-radius: 8px;
      border-left: 4px solid #667eea;
      color: #ccc;
      line-height: 1.5;
    }
  }