/* =================================================================
     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;
      }
      
      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: 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
         ================================================================= */
      
      .internship-hero {
        height: 100vh;
        margin-top: -60px; /* Compensate for nav top positioning */
        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;
      }
      
      /* =================================================================
         INTERNSHIP OVERVIEW SECTION
         ================================================================= */
      
      .internship-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;
      }
      
      .program-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
        gap: 2rem;
        margin-top: 4rem;
      }
      
      .program-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;
      }
      
      .program-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;
      }
      
      /* =================================================================
         PROJECTS & ACHIEVEMENTS SECTION
         ================================================================= */
      
      .projects-achievements {
        padding: 10rem 0;
      }
      
      .projects-container {
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 2rem;
      }
      
      .projects-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
        gap: 2rem;
        margin-top: 4rem;
      }
      
      .project-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;
      }
      
      .project-card:hover {
        transform: translateY(-5px);
      }
      
      .project-header {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        margin-bottom: 1rem;
      }
      
      .project-title {
        font-size: 1.3rem;
        font-weight: 600;
        color: #fff;
        margin: 0;
      }
      
      .project-duration {
        background: rgba(255, 255, 255, 0.1);
        padding: 0.25rem 0.75rem;
        border-radius: 20px;
        font-size: 0.8rem;
        color: #ccc;
      }
      
      .project-description {
        color: #ccc;
        line-height: 1.6;
        margin-bottom: 1.5rem;
      }
      
      .project-technologies {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
      }
      
      .tech-tag {
        background: linear-gradient(135deg, #667eea, #764ba2);
        color: #fff;
        padding: 0.3rem 0.8rem;
        border-radius: 20px;
        font-size: 0.8rem;
        font-weight: 500;
      }
      
      /* =================================================================
         SKILLS & DEVELOPMENT SECTION
         ================================================================= */
      
      .skills-development {
        padding: 10rem 0;
      }
      
      .skills-container {
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 2rem;
      }
      
      .skills-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 4rem;
        margin-top: 4rem;
      }
      
      .skill-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: 2.5rem;
      }
      
      .skill-title {
        font-size: 1.5rem;
        font-weight: 600;
        margin-bottom: 1.5rem;
        color: #fff;
      }
      
      .skills-list {
        list-style: none;
        padding: 0;
      }
      
      .skills-list li {
        background: rgba(255, 255, 255, 0.05);
        margin-bottom: 1rem;
        padding: 1rem;
        border-radius: 8px;
        border-left: 4px solid #667eea;
      }
      
      .skill-name {
        font-weight: 600;
        color: #fff;
        margin-bottom: 0.5rem;
      }
      
      .skill-detail {
        color: #ccc;
        font-size: 0.9rem;
        line-height: 1.4;
      }
      
      .accomplishments-list {
        list-style: none;
        padding: 0;
      }
      
      .accomplishments-list li {
        margin-bottom: 1rem;
        padding: 1rem;
        background: rgba(255, 255, 255, 0.03);
        border-radius: 8px;
        border-left: 4px solid #764ba2;
        color: #ccc;
        line-height: 1.5;
      }
      
      /* =================================================================
         GALLERY SECTION
         ================================================================= */
      
      .gallery {
        padding: 10rem 0;
      }
      
      .gallery-container {
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 2rem;
      }
      
      .gallery-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 2rem;
        margin-top: 4rem;
      }
      
      .gallery-item {
        position: relative;
        border-radius: 16px;
        overflow: hidden;
        background: rgba(255, 255, 255, 0.05);
        backdrop-filter: blur(20px);
        border: 1px solid rgba(255, 255, 255, 0.1);
        transition: transform 0.3s ease;
      }
      
      .gallery-item:hover {
        transform: translateY(-5px);
      }
      
      .gallery-image {
        width: 100%;
        height: 250px;
        object-fit: cover;
        display: block;
      }
      
      .gallery-caption {
        padding: 1rem;
        color: #ccc;
        font-size: 0.9rem;
        text-align: center;
        background: rgba(255, 255, 255, 0.05);
      }
      
      /* =================================================================
         DOCUMENTS SECTION
         ================================================================= */
      
      .documents {
        padding: 10rem 0;
      }
      
      .documents-container {
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 2rem;
      }
      
      .documents-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
        gap: 2rem;
        margin-top: 4rem;
      }
      
      .document-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;
        text-align: center;
      }
      
      .document-card:hover {
        transform: translateY(-5px);
      }
      
      .document-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: 0 auto 1.5rem;
        font-size: 1.5rem;
      }
      
      .document-title {
        font-size: 1.3rem;
        font-weight: 600;
        margin-bottom: 1rem;
        color: #fff;
      }
      
      .document-description {
        color: #ccc;
        line-height: 1.6;
        margin-bottom: 1.5rem;
        font-size: 0.95rem;
      }
      
      .document-link {
        display: inline-block;
        background: linear-gradient(135deg, #667eea, #764ba2);
        color: #fff;
        text-decoration: none;
        padding: 0.75rem 1.5rem;
        border-radius: 25px;
        transition: transform 0.3s ease;
        font-weight: 500;
      }
      
      .document-link:hover {
        transform: scale(1.05);
      }
      
      /* =================================================================
   CODE MODAL STYLES
   ================================================================= */

   .code-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    box-sizing: border-box;
  }
  
  .code-modal-content {
    background: linear-gradient(-45deg, #0a0f2c, #1b1f3a, #0a0f2c, #1b1f3a);
    background-size: 400% 400%;
    animation: gradient 15s ease infinite; /* Slower animation for modal */
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    width: 90%;
    max-width: 800px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    color: #fff;
    position: relative;
    overflow: hidden;
  }
  
  .code-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
  }
  
  .code-modal-header h3 {
    margin: 0;
    font-size: 1.5rem;
    color: #fff;
  }
  
  .code-modal-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.3s ease;
  }
  
  .code-modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
  }
  
  .code-modal-body {
    flex: 1;
    overflow: auto;
    padding: 0;
    position: relative;
  }
  
  /* Hide scrollbar but keep functionality */
  .code-modal-body::-webkit-scrollbar {
    display: none;
  }
  
  .code-modal-body {
    -ms-overflow-style: none;
    scrollbar-width: none;
  }
  
  .code-modal-body pre {
    margin: 0;
    padding: 2rem;
    background: rgba(0, 0, 0, 0.3);
    color: #fff;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.4;
    overflow: visible;
    white-space: pre-wrap;
    word-wrap: break-word;
  }
  
  /* Progress bar for modal */
  .code-modal-progress {
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    z-index: 1;
    transition: width 0.1s ease;
    border-radius: 16px 16px 0 0;
  }
  
  /* Mobile responsiveness */
  @media (max-width: 768px) {
    .code-modal {
      padding: 1rem;
    }
    
    .code-modal-content {
      width: 95%;
      max-height: 85vh;
    }
    
    .code-modal-header {
      padding: 1rem;
    }
    
    .code-modal-body pre {
      padding: 1rem;
      font-size: 0.8rem;
    }
  }

      /* =================================================================
         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;
        }
        
        .typewriter-text {
          font-size: 3rem;
        }
      
        .hero-stats {
          flex-direction: column;
          gap: 1rem;
        }
      
        .program-grid {
          grid-template-columns: 1fr;
        }
        
        .projects-grid {
          grid-template-columns: 1fr;
        }
      
        .skills-grid {
          grid-template-columns: 1fr;
          gap: 2rem;
        }
        
        .gallery-grid {
          grid-template-columns: 1fr;
        }
        
        .documents-grid {
          grid-template-columns: 1fr;
        }
        
        .menu-toggle {
          left: 2rem;
        }
        
        .contact-btn {
          right: 2rem;
        }
        
        .hero-content {
          padding: 5rem 2rem;
        }
        
        .section-title {
          font-size: 2rem;
        }
      }