  
    /* Base styles */
    * {
      margin: 0;
      padding: 0;
      box-sizing: border-box;
      font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    }
    
    body {
      color: #333;
      overflow-x: hidden;
      min-height: 100vh;
      background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    }
    
    /* Container */
    .container {
      max-width: 1200px;
      margin: 0 auto;
      padding: 0 20px;
      position: relative;
      z-index: 10;
    }
    

    .logo {
      font-size: 24px;
      font-weight: 700;
      color: #4a6cf7;
      display: flex;
      align-items: center;
    }
    
    .logo i {
      margin-right: 8px;
    }
    
    /* Navigation */
    nav ul {
      display: flex;
      list-style: none;
      gap: 30px;
    }
    
    nav a {
      text-decoration: none;
      color: #4a5568;
      font-weight: 500;
      transition: color 0.3s;
    }
    
    nav a:hover {
      color: #4a6cf7;
    }
    
    /* Hero Section */
    .hero {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      padding: 60px 0;
      text-align: center;
    }
    
    .hero h1 {
      font-size: 3rem;
      margin-bottom: 20px;
      color: #1a202c;
    }
    
    .hero p {
      font-size: 1.2rem;
      color: #4a5568;
      max-width: 600px;
      margin-bottom: 40px;
    }
    
    /* Converter Box */
    .converter-box {
      background: rgba(255, 255, 255, 0.8);
      backdrop-filter: blur(10px);
      -webkit-backdrop-filter: blur(10px);
      border-radius: 16px;
      padding: 40px;
      box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
      width: 100%;
      max-width: 700px;
      margin: 0 auto;
    }
    
    .upload-area {
      border: 2px dashed #c3cfe2;
      border-radius: 12px;
      padding: 40px 20px;
      text-align: center;
      margin-bottom: 30px;
      transition: all 0.3s;
      cursor: pointer;
    }
    
    .upload-area:hover, .upload-area.dragover {
      border-color: #4a6cf7;
      background: rgba(74, 108, 247, 0.05);
    }
    
    .upload-area i {
      font-size: 48px;
      color: #4a6cf7;
      margin-bottom: 15px;
    }
    
    .upload-area h3 {
      margin-bottom: 10px;
      color: #1a202c;
    }
    
    .upload-area p {
      color: #718096;
    }
    
    /* Format Selection */
    .format-selection {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
      gap: 15px;
      margin-bottom: 30px;
    }
    
    .format-btn {
      background: white;
      border: 1px solid #e2e8f0;
      border-radius: 12px;
      padding: 15px;
      text-align: center;
      cursor: pointer;
      transition: all 0.3s;
    }
    
    .format-btn:hover {
      transform: translateY(-5px);
      box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
      border-color: #4a6cf7;
    }
    
    .format-btn.active {
      background: #4a6cf7;
      color: #4a6cf7;
      border-color: #4a6cf7;
    }
    
    .format-btn i {
      font-size: 24px;
      margin-bottom: 10px;
      display: block;
    }
    /* ... (existing CSS remains the same) ... */

.format-selection {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 20px 0;
}

.format-btn {
  width: 80px;
  height: 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 2px solid #e9ecef;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.format-btn:hover {
  border-color: #007bff;
  transform: translateY(-3px);
}

.format-btn.active {
  border-color: #007bff;
  background-color: #f8f9fa;
}

.format-btn i {
  font-size: 24px;
  margin-bottom: 8px;
}

.gif-settings {
  display: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .format-btn {
    width: 70px;
    height: 70px;
  }
  
  .format-btn i {
    font-size: 20px;
  }
}

@media (max-width: 576px) {
  .format-btn {
    width: 60px;
    height: 60px;
  }
  
  .format-btn i {
    font-size: 18px;
  }
}
    /* Settings Panel */
    .settings-panel {
      background: rgba(255, 255, 255, 0.6);
      border-radius: 12px;
      padding: 20px;
      margin-bottom: 30px;
      display: none;
    }
    
    .settings-panel.active {
      display: block;
    }
    
    .setting-group {
      margin-bottom: 20px;
    }
    
    .setting-group:last-child {
      margin-bottom: 0;
    }
    
    .setting-group label {
      display: block;
      margin-bottom: 8px;
      font-weight: 500;
      color: #4a5568;
    }
    
    .quality-slider {
      width: 100%;
      height: 8px;
      -webkit-appearance: none;
      appearance: none;
      background: #e2e8f0;
      outline: none;
      border-radius: 4px;
    }
    
    .quality-slider::-webkit-slider-thumb {
      -webkit-appearance: none;
      appearance: none;
      width: 20px;
      height: 20px;
      border-radius: 50%;
      background: #4a6cf7;
      cursor: pointer;
    }
    
    .quality-value {
      text-align: right;
      font-weight: 600;
      color: #4a6cf7;
    }
    
    .dimension-inputs {
      display: flex;
      gap: 15px;
    }
    
    .dimension-inputs input {
      flex: 1;
      padding: 10px;
      border: 1px solid #e2e8f0;
      border-radius: 8px;
      text-align: center;
    }
    
    /* Buttons */
    .convert-btn {
      background: #4a6cf7;
      color: white;
      border: none;
      border-radius: 12px;
      padding: 16px 32px;
      font-size: 18px;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.3s;
      width: 100%;
      margin-bottom: 15px;
    }
    
    .convert-btn:hover {
      background: #3a5cd8;
      transform: translateY(-2px);
      box-shadow: 0 10px 20px rgba(74, 108, 247, 0.3);
    }
    
    .clear-btn {
      background: #f56565;
      color: white;
      border: none;
      border-radius: 12px;
      padding: 12px 24px;
      font-size: 16px;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.3s;
      width: 100%;
    }
    
    .clear-btn:hover {
      background: #e53e3e;
      transform: translateY(-2px);
      box-shadow: 0 10px 20px rgba(245, 101, 101, 0.3);
    }
    
    /* Preview Area */
    .preview-area {
      display: none;
      margin-top: 30px;
      text-align: center;
    }
    
    .preview-area img {
      max-width: 100%;
      max-height: 200px;
      border-radius: 12px;
      margin-bottom: 20px;
      box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    }
    
    .download-btn {
      background: #10b981;
      color: white;
      border: none;
      border-radius: 12px;
      padding: 12px 24px;
      font-size: 16px;
      font-weight: 600;
      cursor: pointer;
      transition: all 0.3s;
    }
    
    .download-btn:hover {
      background: #0d9e6e;
      transform: translateY(-2px);
      box-shadow: 0 10px 20px rgba(16, 185, 129, 0.3);
    }
    
    /* Features Section */
    .features {
      padding: 80px 0;
      text-align: center;
    }
    
    .features h2 {
      font-size: 2.5rem;
      margin-bottom: 50px;
      color: #1a202c;
    }
    
    .features-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
      gap: 30px;
    }
    
    .feature-card {
      background: white;
      border-radius: 16px;
      padding: 30px;
      box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
      transition: all 0.3s;
    }
    
    .feature-card:hover {
      transform: translateY(-5px);
      box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    }
    
    .feature-card i {
      font-size: 40px;
      color: #4a6cf7;
      margin-bottom: 20px;
    }
    
    .feature-card h3 {
      margin-bottom: 15px;
      color: #1a202c;
    }
    
    .feature-card p {
      color: #718096;
    }
    
    /* Footer */
    footer {
      background: rgba(255, 255, 255, 0.8);
      backdrop-filter: blur(10px);
      -webkit-backdrop-filter: blur(10px);
      padding: 40px 0;
      margin-top: 80px;
    }
    
    .footer-content {
      display: flex;
      justify-content: space-between;
      align-items: center;
    }
    
    .footer-links {
      display: flex;
      gap: 20px;
    }
    
    .footer-links a {
      color: #4a5568;
      text-decoration: none;
      transition: color 0.3s;
    }
    
    .footer-links a:hover {
      color: #4a6cf7;
    }
    
    /* Responsive Design */
    @media (max-width: 768px) {
      .hero h1 {
        font-size: 2.2rem;
      }
      
      .converter-box {
        padding: 25px;
      }
      
      nav ul {
        gap: 15px;
      }
      
      .footer-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
      }
      
      .dimension-inputs {
        flex-direction: column;
      }
    }
    
    /* Animation for floating elements */
    @keyframes float {
      0%, 100% {
        transform: translateY(0);
      }
      50% {
        transform: translateY(-10px);
      }
    }
    
    /* Three.js canvas */
    #bg-canvas {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      z-index: -1;
    }
  
  
.how-it-works {
  padding: 80px 0;
}

.how-it-works h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 15px;
  color: #1a202c;
}

.section-subtitle {
  text-align: center;
  font-size: 1.2rem;
  color: #4a5568;
  max-width: 600px;
  margin: 0 auto 60px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  margin-bottom: 60px;
}

.step {
  text-align: center;
  padding: 30px;
  border-radius: 16px;
  background: white;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s, box-shadow 0.3s;
  position: relative;
}

.step:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.step-number {
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 40px;
  background: #4a6cf7;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.2rem;
}

.step-icon {
  width: 70px;
  height: 70px;
  background: rgba(74, 108, 247, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.step-icon i {
  font-size: 30px;
  color: #4a6cf7;
}

.step h3 {
  margin-bottom: 15px;
  color: #1a202c;
}

.step p {
  color: #718096;
  line-height: 1.6;
}

.features-highlight {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  padding: 40px;
  background: rgba(74, 108, 247, 0.05);
  border-radius: 16px;
}

.feature {
  text-align: center;
}

.feature i {
  font-size: 40px;
  color: #4a6cf7;
  margin-bottom: 15px;
}

.feature h4 {
  margin-bottom: 10px;
  color: #1a202c;
}

.feature p {
  color: #718096;
}

@media (max-width: 768px) {
  .steps {
    gap: 60px;
  }
  
  .step {
    padding: 25px 15px;
  }
}

  
    .navbar {
      background: rgba(255, 255, 255, 0.9);
      backdrop-filter: blur(10px);
      -webkit-backdrop-filter: blur(10px);
      box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
      padding: 15px 0;
    }
    
    .navbar-brand {
      font-size: 1.5rem;
      font-weight: 700;
      color: #4a6cf7;
      display: flex;
      align-items: center;
    }
    
    .navbar-brand i {
      margin-right: 8px;
    }
    
    .nav-link {
      color: #4a5568;
      font-weight: 500;
      transition: color 0.3s;
      margin: 0 5px;
    }
    
    .nav-link:hover, .nav-link.active {
      color: #4a6cf7;
    }
    
    .navbar-toggler {
      border: none;
      padding: 5px 10px;
    }
    
    .navbar-toggler:focus {
      box-shadow: none;
    }
  
   
    .avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.avatar-sm {
  width: 32px;
  height: 32px;
}

  /* Style for navigation buttons */
  #prevBtn, #nextBtn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);   /* semi-transparent black */
    border: none;
    border-radius: 50%;           /* circle shape */
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    z-index: 10;
  }

  #prevBtn:hover, #nextBtn:hover {
    background: rgba(0,0,0,0.8);
    transform: translateY(-50%) scale(1.1);
  }

  #prevBtn img, #nextBtn img {
    width: 24px;
    height: 24px;
    filter: invert(1); /* makes arrow white */
  }

  #prevBtn { left: 15px; }
  #nextBtn { right: 15px; }
