/* =================================================================
   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;
  }
  
  /* =================================================================
     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: min(400px, 80vw);
    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;
    margin: 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
     ================================================================= */
  
  .brand-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 2rem;
    z-index: 2;
    width: 100%;
    box-sizing: border-box;
  }
  
  .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: clamp(2.5rem, 6vw, 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: clamp(1.1rem, 2.5vw, 1.5rem);
    color: #ccc;
    max-width: 750px;
    margin: 0 auto;
  }
  
  .hero-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    margin-top: 3rem;
    flex-wrap: wrap;
  }
  
  .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;
    flex: 0 1 auto;
  }
  
  .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: clamp(3rem, 8vw, 5rem);
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    min-height: 5rem;
  }
  
  /* =================================================================
     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: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    margin-bottom: 1rem;
    color: #fff;
  }
  
  .section-description {
    font-size: clamp(1rem, 2vw, 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;
  }
  
  /* =================================================================
     DESIGN SHOWCASE SECTION
     ================================================================= */
  
     .design-section {
      padding: 10rem 0;
    }
    
    .design-container {
      max-width: 1400px;
      margin: 0 auto;
      padding: 0 2rem;
    }
    
    .design-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
      gap: 3rem;
      margin-top: 4rem;
      align-items: stretch;
    }
    
    .design-showcase {
      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;
      text-align: center;
      display: flex;
      flex-direction: column;
      position: relative;
    }
    
    .showcase-title {
      font-size: 1.5rem;
      font-weight: 600;
      color: #fff;
      margin-bottom: 1.5rem;
    }
    
    .color-palette {
      display: flex;
      justify-content: center;
      align-items: center;
      gap: 1rem;
      margin: 2rem 0;
      background: rgba(255, 255, 255, 0.03);
      border-radius: 8px;
      padding: 2rem;
      flex-wrap: wrap;
      height: 160px;
    }
    
    .color-item {
      width: 60px;
      height: 60px;
      border-radius: 50%;
      position: relative;
      cursor: default;
      transition: transform 0.3s ease;
      outline: none !important;
      margin-bottom: 25px;
    }
    
    .color-item:hover {
      transform: scale(1.1);
    }
    
    .color-item[data-color="#0a0f2c"] {
      background: #0a0f2c;
    }
    
    .color-item[data-color="#1b1f3a"] {
      background: #1b1f3a;
    }
    
    .color-item[data-color="#667eea"] {
      background: #667eea;
    }
    
    .color-item[data-color="#764ba2"] {
      background: #764ba2;
    }
    
    .color-item[data-color="#ffffff"] {
      background: #ffffff;
    }
    
    .color-code {
      position: absolute;
      bottom: -25px;
      left: 50%;
      transform: translateX(-50%);
      font-size: 0.8rem;
      color: #ccc;
      white-space: nowrap;
      font-weight: normal !important;
    }
    
    .color-description {
      color: #ccc;
      font-size: 0.9rem;
      margin-top: auto;
      padding-top: 1rem;
    }
    
    .typography-demo {
      background: rgba(255, 255, 255, 0.03);
      border-radius: 8px;
      padding: 2rem;
      margin: 2rem 0;
      display: flex;
      flex-direction: column;
      justify-content: center;
      height: 160px;
    }
    
    .typography-heading {
      font-family: 'Trirong', serif;
      font-size: 2rem;
      font-weight: 700;
      margin-bottom: 1rem;
      color: #fff;
    }
    
    .typography-body {
      font-family: 'Trirong', serif;
      font-size: 1.2rem;
      font-weight: 400;
      color: #ccc;
    }
    
    .typography-description {
      color: #ccc;
      font-size: 0.9rem;
      margin-top: 1rem;
    }
    
    .logo-showcase {
      background: rgba(255, 255, 255, 0.03);
      border-radius: 8px;
      padding: 2rem;
      margin: 2rem 0;
      display: flex;
      align-items: center;
      justify-content: center;
      height: 160px;
    }
    
    .logo-placeholder {
      font-size: 3rem;
      font-weight: 700;
      background: linear-gradient(135deg, #667eea, #764ba2);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
    }
    
    .logo-description {
      color: #ccc;
      font-size: 0.9rem;
      margin-top: auto;
      padding-top: 1rem;
    }
  
  /* =================================================================
     PROCESS SECTION
     ================================================================= */

  .process-section {
    padding: 10rem 0;
  }
  
  .process-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
  }
  
  .process-timeline {
    margin-top: 4rem;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .process-timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(to bottom, #667eea, #764ba2);
    transform: translateX(-50%);
    border-radius: 2px;
    z-index: 1;
  }
  
  .process-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: 2.5rem;
    margin-bottom: 3rem;
    position: relative;
    width: 100%;
    max-width: 500px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  
  .process-item:nth-child(odd) {
    align-self: flex-start;
    margin-right: 50%;
  }
  
  .process-item:nth-child(even) {
    align-self: flex-end;
    margin-left: 50%;
  }
  
  .process-step {
    font-size: 0.9rem;
    color: #667eea;
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }
  
  .process-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 1rem;
  }
  
  .process-description {
    color: #ccc;
    line-height: 1.6;
  }
  
  .process-item:hover {
    transform: translateY(-5px);
  }
  
  @media (max-width: 968px) {
    .process-timeline::before {
      left: 30px;
      transform: none;
    }
    
    .process-item {
      width: calc(100% - 80px);
      max-width: none;
      margin-left: 80px !important;
      margin-right: 0 !important;
      align-self: stretch !important;
    }
  }

  /* =================================================================
     RESULTS SECTION
     ================================================================= */
  
  .personal-section {
    padding: 10rem 0;
  }
  
  .personal-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
  }
  
  .personal-content {
    margin-top: 4rem;
  }
  
  .personal-story {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 3rem;
    margin-bottom: 4rem;
    text-align: center;
  }
  
  .story-title {
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 600;
    color: #fff;
    margin-bottom: 2rem;
  }
  
  .story-text {
    font-size: clamp(1rem, 2vw, 1.1rem);
    color: #ccc;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
  }
  
  .insights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 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;
    text-align: center;
    transition: transform 0.3s ease;
  }
  
  .insight-card:hover {
    transform: translateY(-5px);
  }
  
  .insight-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
  }
  
  .insight-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 1rem;
  }
  
  .insight-text {
    color: #ccc;
    line-height: 1.6;
  }
  
  .personal-quote-section {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 3rem;
    text-align: center;
    border-left: 4px solid #667eea;
  }
  
  .personal-quote {
    font-size: clamp(1.1rem, 2.5vw, 1.3rem);
    font-style: italic;
    color: #fff;
    line-height: 1.6;
    margin: 0 0 1rem 0;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
  }
  
  .quote-attribution {
    color: #667eea;
    font-size: 1rem;
    font-weight: 600;
  }
  
  /* =================================================================
     CALL TO ACTION SECTION
     ================================================================= */
  
  .cta-section {
    text-align: center;
    padding: 5rem 2rem;
  }
  
  .cta-button {
    display: inline-block;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
  }
  
  .cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
  }
  
  /* =================================================================
     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;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .scroll-top-btn.show {
    opacity: 1;
  }
  
  .scroll-top-btn:hover {
    transform: scale(1.05);
  }
  
  /* =================================================================
     RESPONSIVE DESIGN
     ================================================================= */
  
  @media (max-width: 768px) {
    .nav-header {
      padding: 0 1rem;
    }
    
    .menu-toggle {
      left: 1rem;
      top: 50%;
      transform: translateY(-50%);
    }
    
    .menu-toggle:hover {
      transform: translateY(-50%) scale(1.05);
    }
    
    .contact-btn {
      right: 1rem;
      top: 50%;
      transform: translateY(-50%);
    }
    
    .contact-btn:hover {
      transform: translateY(-50%) scale(1.05);
    }
  
    .hero-content {
      padding: 5rem 1rem;
    }
  
    .hero-stats {
      gap: 1rem;
    }
  
    .overview-grid,
    .design-grid {
      grid-template-columns: 1fr;
      gap: 2rem;
    }
  
    .design-grid {
      grid-template-columns: 1fr;
    }
  
    .color-palette {
      gap: 0.5rem;
    }
  
    .overview-container,
    .design-container,
    .process-container,
    .personal-container {
      padding: 0 1rem;
    }
  
    .insights-grid {
      grid-template-columns: 1fr;
      gap: 1.5rem;
    }
    
    .personal-story,
    .personal-quote-section {
      padding: 2rem;
    }
  }
  
  @media (max-width: 480px) {
    .hero-stats {
      flex-direction: column;
      align-items: center;
    }
    
    .stat-item {
      width: 100%;
      max-width: 200px;
    }
    
    .design-elements-demo {
      justify-content: center;
    }
    
    .color-palette {
      justify-content: center;
    }
  }