@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

    * {
      font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
      margin: 0;
      padding: 0;
      box-sizing: border-box;
    }

    body {
      background: #0a0b0d;
      position: relative;
      min-height: 100vh;
      overflow-x: hidden;
    }
 /* Developer Info (from previous request) */
        .developer-info {
                position: fixed;
				top: 8%;
				left: 115px;
				transform: translateY(-50%);
				text-align: center;
				color: #ffffff;
				z-index: 10;
        }

        .developer-image {
            width: 120px;
            height: 120px;
            border-radius: 50%;
            object-fit: cover;
            border: 4px solid #fff;
            box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
            
        }

        .developer-info h4 {
            margin: 0;
            font-size: 1.2em;
            font-weight: 600;
        }

        .developer-info p {
            
            font-size: 0.9em;
            opacity: 0.7;
        }
.hide-on-scroll {
  opacity: 0; /* Starts hidden */
  transform: translateY(-50px); /* Optional: moves it slightly off-screen */
  transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out; /* Smooth transition */
}

.show-on-scroll {
  opacity: 1; /* Becomes visible */
  transform: translateY(0); /* Returns to original position */
}
    /* Animated Gradient Background */
    .gradient-bg {
      position: fixed;
      width: 100%;
      height: 100%;
      background: linear-gradient(135deg, #667eea 0%, #764ba2 25%, #f093fb 50%, #4facfe 75%, #00f2fe 100%);
      background-size: 400% 400%;
      animation: gradientShift 15s ease infinite;
      opacity: 0.15;
      z-index: 0;
    }

    @keyframes gradientShift {
      0%, 100% { background-position: 0% 50%; }
      50% { background-position: 100% 50%; }
    }

    /* Floating Orbs */
    .orb {
      position: fixed;
      border-radius: 50%;
      filter: blur(80px);
      opacity: 0.4;
      pointer-events: none;
      z-index: 1;
    }

    .orb-1 {
      width: 500px;
      height: 500px;
      background: radial-gradient(circle, rgba(102, 126, 234, 0.6) 0%, transparent 70%);
      top: -200px;
      left: -200px;
      animation: float1 25s ease-in-out infinite;
    }

    .orb-2 {
      width: 400px;
      height: 400px;
      background: radial-gradient(circle, rgba(240, 147, 251, 0.6) 0%, transparent 70%);
      bottom: -150px;
      right: -150px;
      animation: float2 30s ease-in-out infinite;
    }

    .orb-3 {
      width: 450px;
      height: 450px;
      background: radial-gradient(circle, rgba(79, 172, 254, 0.6) 0%, transparent 70%);
      top: 40%;
      right: -100px;
      animation: float3 28s ease-in-out infinite;
    }

    @keyframes float1 {
      0%, 100% { transform: translate(0, 0) rotate(0deg); }
      33% { transform: translate(100px, 50px) rotate(120deg); }
      66% { transform: translate(-50px, 100px) rotate(240deg); }
    }

    @keyframes float2 {
      0%, 100% { transform: translate(0, 0) rotate(0deg); }
      33% { transform: translate(-80px, -60px) rotate(-120deg); }
      66% { transform: translate(60px, -80px) rotate(-240deg); }
    }

    @keyframes float3 {
      0%, 100% { transform: translate(0, 0) scale(1); }
      50% { transform: translate(-100px, 100px) scale(1.1); }
    }

    /* Grid Pattern Overlay */
    .grid-overlay {
      position: fixed;
      width: 100%;
      height: 100%;
      background-image: 
        linear-gradient(rgba(102, 126, 234, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(102, 126, 234, 0.03) 1px, transparent 1px);
      background-size: 50px 50px;
      z-index: 1;
      pointer-events: none;
    }

    .container {
      position: relative;
      z-index: 10;
      max-width: 1400px;
      margin: 0 auto;
      padding: 40px 20px;
    }

    /* Header */
    .header {
      text-align: center;
      margin-bottom: 60px;
      animation: fadeInDown 1s ease;
    }

    @keyframes fadeInDown {
      from {
        opacity: 0;
        transform: translateY(-30px);
      }
      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    .logo {
      font-size: 4.5rem;
      font-weight: 900;
      background: linear-gradient(135deg, #667eea 0%, #f093fb 25%, #4facfe 50%, #00f2fe 75%, #43e97b 100%);
      background-size: 300% 300%;
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
      animation: gradientText 8s ease infinite;
      letter-spacing: -3px;
      line-height: 1;
      margin-bottom: 16px;
      text-shadow: 0 0 80px rgba(102, 126, 234, 0.5);
    }

    @keyframes gradientText {
      0%, 100% { background-position: 0% 50%; }
      50% { background-position: 100% 50%; }
    }

    .tagline {
      font-size: 1.1rem;
      color: #8b92a8;
      font-weight: 600;
      letter-spacing: 2px;
      text-transform: uppercase;
      margin-bottom: 8px;
    }

    .specs {
      display: inline-flex;
      gap: 16px;
      background: rgba(102, 126, 234, 0.1);
      border: 1px solid rgba(102, 126, 234, 0.3);
      padding: 12px 24px;
      border-radius: 50px;
      backdrop-filter: blur(10px);
      margin-top: 12px;
    }

    .spec-item {
      display: flex;
      align-items: center;
      gap: 8px;
      color: #a5b4fc;
      font-weight: 700;
      font-size: 0.9rem;
    }

    /* Glass Panels */
    .panel {
      background: rgba(17, 24, 39, 0.7);
      backdrop-filter: blur(40px);
      border: 1px solid rgba(102, 126, 234, 0.2);
      border-radius: 24px;
      padding: 40px;
      box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
      position: relative;
      overflow: hidden;
      animation: fadeInUp 1s ease;
    }

    @keyframes fadeInUp {
      from {
        opacity: 0;
        transform: translateY(30px);
      }
      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    .panel::before {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      height: 1px;
      background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.5), transparent);
    }

    .panel-glow {
      position: absolute;
      top: -50%;
      right: -50%;
      width: 100%;
      height: 100%;
      background: radial-gradient(circle, rgba(102, 126, 234, 0.15) 0%, transparent 70%);
      animation: rotate 20s linear infinite;
      pointer-events: none;
    }

    @keyframes rotate {
      from { transform: rotate(0deg); }
      to { transform: rotate(360deg); }
    }

    .panel-title {
      font-size: 1.8rem;
      font-weight: 800;
      color: #fff;
      margin-bottom: 32px;
      display: flex;
      align-items: center;
      gap: 12px;
    }

    .panel-title-icon {
      width: 32px;
      height: 32px;
      background: linear-gradient(135deg, #667eea, #764ba2);
      padding: 6px;
      border-radius: 10px;
      box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
    }

    /* Sections */
    .section {
      background: rgba(30, 41, 59, 0.5);
      border: 1px solid rgba(148, 163, 184, 0.1);
      border-radius: 16px;
      padding: 28px;
      margin-bottom: 24px;
      transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
      position: relative;
      overflow: hidden;
    }

    .section::before {
      content: '';
      position: absolute;
      inset: 0;
      background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, transparent 100%);
      opacity: 0;
      transition: opacity 0.4s;
    }

    .section:hover {
      transform: translateY(-4px);
      border-color: rgba(102, 126, 234, 0.4);
      box-shadow: 0 12px 40px rgba(102, 126, 234, 0.2);
    }

    .section:hover::before {
      opacity: 1;
    }

    .section-label {
      display: flex;
      align-items: center;
      gap: 12px;
      margin-bottom: 20px;
      font-size: 1rem;
      font-weight: 700;
      color: #e2e8f0;
    }

    .step-badge {
      display: flex;
      align-items: center;
      justify-content: center;
      width: 36px;
      height: 36px;
      border-radius: 12px;
      background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
      color: white;
      font-weight: 900;
      font-size: 16px;
      box-shadow: 0 8px 24px rgba(102, 126, 234, 0.4);
    }

    /* Buttons */
    .btn {
      position: relative;
      width: 100%;
      padding: 18px 32px;
      font-size: 1.05rem;
      font-weight: 700;
      border: none;
      border-radius: 16px;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 12px;
      transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
      overflow: hidden;
      box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
      letter-spacing: 0.5px;
    }

    .btn::before {
      content: '';
      position: absolute;
      inset: 0;
      background: rgba(255, 255, 255, 0.2);
      opacity: 0;
      transition: opacity 0.3s;
    }

    .btn:hover::before {
      opacity: 1;
    }

    .btn:hover {
      transform: translateY(-4px);
      box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
    }

    .btn:active {
      transform: translateY(-2px);
    }

    .btn-upload {
      background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
      color: white;
    }

    .btn-resize {
      background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
      color: white;
    }

    .btn-download {
      background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
      color: white;
    }

    .btn-control {
      padding: 10px 20px;
      font-size: 0.9rem;
      font-weight: 600;
      width: auto;
      border-radius: 12px;
      background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
      color: #0a0b0d;
      box-shadow: 0 4px 16px rgba(67, 233, 123, 0.3);
    }

    .btn-control:hover {
      transform: scale(1.05);
      box-shadow: 0 8px 24px rgba(67, 233, 123, 0.4);
    }

    .btn-disabled {
      opacity: 0.4;
      cursor: not-allowed;
      pointer-events: none;
    }

    /* Image Cards */
    .image-card {
      background: rgba(30, 41, 59, 0.6);
      border: 1px solid rgba(148, 163, 184, 0.2);
      border-radius: 16px;
      padding: 20px;
      margin-bottom: 16px;
      display: flex;
      align-items: center;
      gap: 16px;
      cursor: pointer;
      transition: all 0.3s ease;
    }

    .image-card:hover {
      background: rgba(30, 41, 59, 0.8);
      border-color: rgba(102, 126, 234, 0.5);
      transform: translateX(4px);
    }

    .image-thumbnail {
      width: 70px;
      height: 70px;
      object-fit: cover;
      border-radius: 12px;
      box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
      border: 2px solid rgba(102, 126, 234, 0.3);
    }

    .image-info {
      flex: 1;
    }

    .image-name {
      font-weight: 700;
      color: #e2e8f0;
      font-size: 0.95rem;
      margin-bottom: 6px;
    }

    .image-size {
      font-size: 0.85rem;
      color: #94a3b8;
    }

    /* Result Cards */
    .result-card {
      background: linear-gradient(135deg, rgba(30, 41, 59, 0.8) 0%, rgba(17, 24, 39, 0.8) 100%);
      border: 1px solid rgba(102, 126, 234, 0.3);
      border-radius: 20px;
      padding: 24px;
      margin-bottom: 24px;
      cursor: pointer;
      transition: all 0.3s ease;
      position: relative;
      overflow: hidden;
    }

    .result-card::before {
      content: '';
      position: absolute;
      inset: 0;
      background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, transparent 100%);
      opacity: 0;
      transition: opacity 0.3s;
    }

    .result-card:hover {
      border-color: rgba(102, 126, 234, 0.6);
      box-shadow: 0 12px 40px rgba(102, 126, 234, 0.3);
    }

    .result-card:hover::before {
      opacity: 1;
    }

    .result-image {
      width: 100%;
      max-width: 150px;
      height: auto;
      border-radius: 12px;
      box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
      margin: 16px auto;
      display: block;
      border: 2px solid rgba(102, 126, 234, 0.3);
    }

    .size-display {
      font-size: 1.6rem;
      font-weight: 900;
      background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      background-clip: text;
      margin: 16px 0;
      text-align: center;
    }

    .status-badge {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 8px 16px;
      border-radius: 50px;
      font-size: 0.85rem;
      font-weight: 700;
      margin-top: 12px;
    }

    .status-ok {
      background: rgba(67, 233, 123, 0.2);
      color: #43e97b;
      border: 1px solid rgba(67, 233, 123, 0.3);
    }

    .status-warning {
      background: rgba(244, 63, 94, 0.2);
      color: #f87171;
      border: 1px solid rgba(244, 63, 94, 0.3);
    }

    /* Controls Panel */
    .controls-panel {
      background: rgba(17, 24, 39, 0.9);
      border: 1px solid rgba(102, 126, 234, 0.3);
      border-radius: 16px;
      padding: 24px;
      margin-top: 16px;
      backdrop-filter: blur(20px);
    }

    .controls-title {
      font-weight: 700;
      color: #e2e8f0;
      text-align: center;
      margin-bottom: 20px;
      font-size: 1rem;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
    }

    .controls-grid {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 12px;
    }

    .controls-row {
      display: flex;
      gap: 12px;
    }

    /* Info Badge */
    .info-badge {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      background: rgba(102, 126, 234, 0.15);
      border: 1px solid rgba(102, 126, 234, 0.3);
      border-radius: 12px;
      padding: 10px 16px;
      font-size: 0.9rem;
      font-weight: 600;
      color: #a5b4fc;
      margin-top: 12px;
    }

    /* Error Box */
    .error-box {
      background: rgba(244, 63, 94, 0.15);
      border: 1px solid rgba(244, 63, 94, 0.4);
      border-radius: 16px;
      padding: 16px 20px;
      color: #fca5a5;
      font-weight: 600;
      display: flex;
      align-items: center;
      gap: 12px;
      margin-bottom: 24px;
      animation: slideDown 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    }

    @keyframes slideDown {
      from {
        opacity: 0;
        transform: translateY(-20px);
      }
      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    /* Grid Layout */
    .grid {
      display: grid;
      grid-template-columns: 1fr;
      gap: 32px;
      margin-bottom: 32px;
    }

    @media (min-width: 1024px) {
      .grid {
        grid-template-columns: 1fr 1fr;
      }
    }

    .hidden {
      display: none !important;
    }

    /* Responsive */
    @media (max-width: 768px) {
      .logo {
        font-size: 3rem;
      }

      .panel {
        padding: 28px;
      }

      .section {
        padding: 20px;
      }

      .specs {
        flex-direction: column;
        gap: 8px;
      }
    }

    /* Loading Animation */
    @keyframes pulse {
      0%, 100% { opacity: 1; }
      50% { opacity: 0.5; }
    }

    .loading {
      animation: pulse 2s ease-in-out infinite;
    }

    /* Scroll Animations */
    .scroll-fade {
      animation: scrollFade 1s ease;
    }

    @keyframes scrollFade {
      from {
        opacity: 0;
        transform: translateY(20px);
      }
      to {
        opacity: 1;
        transform: translateY(0);
      }
    }
  /* New Footer Style */
        .page-footer {
            margin-top: 20px;
            padding: 15px;
            text-align: center;
            color: #6c757d;
            font-size: 0.9em;
            width: 100%;
            max-width: 1400px;
        }
        
        .page-footer a {
            color: #007bff;
            font-weight: 600;
            text-decoration: none;
            transition: color 0.3s;
        }
        
        .page-footer a:hover {
            color: #0056b3;
            text-decoration: underline;
        }
   
