:root {
            --primary: #2A2A72;
            --secondary: #009FFD;
            --accent: #FFA400;
            --dark: #1A1A1A;
            --light: #F8F9FA;
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Inter', system-ui, sans-serif;
        }

        body {
            background: var(--light);
            color: var(--dark);
        }

        /* Professional Header */
        

        .brand {
            display: flex;
            align-items: center;
            gap: 1rem;
            text-decoration: none;
        }

        .company-name {
            font-size: 1.5rem;
            font-weight: 700;
            color: var(--primary);
        }
		
		/* Action Buttons */
    .action-btns {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
      gap: 1rem;
      margin: 2rem 0;
    }

		.btn {
		  padding: 1rem;
		  border: none;
		  border-radius: 15px;
		  color: white;
		  font-weight: 600;
		  cursor: pointer;
		  transition: all 0.3s ease;
		  display: flex;
		  align-items: center;
		  justify-content: center;
		  gap: 0.5rem;
		}

		.btn-primary {
		  background: var(--primary);
		}

		.btn-secondary {
		  background: var(--secondary);
		}

		.btn-accent {
		  background: var(--accent);
		}

		.btn:hover {
		  filter: brightness(1.1);
		  transform: translateY(-2px);
		}
		

        /* Main Container */
        .container {
            max-width: 1200px;
            margin: 2rem auto;
            padding: 2rem;
            background: white;
            border-radius: 20px;
            box-shadow: 0 10px 30px rgba(0,0,0,0.1);
        }

        /* Upload Section */
        .upload-section {
			border: 2px solid #ccc; /* Simple light grey border */
			border-radius: 15px;
			padding: 2rem;
			margin: 2rem 0;
			box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); /* Soft shadow */
			transition: all 0.3s ease;
		}

        .file-label {
            display: flex;
            align-items: center;
            justify-content: center;
            background: var(--primary);
            color: white;
            padding: 1rem 2rem;
            border-radius: 50px;
            cursor: pointer;
            transition: all 0.3s ease;
            margin: 1rem 0;
        }

        .lang-select {
            padding: 0.8rem 1.5rem;
            border-radius: 30px;
            border: 2px solid var(--primary);
            margin: 1rem 0;
            width: 100%;
        }

       
        /* Result Section */
        #outputText {
            min-height: 300px;
            padding: 1rem;
            border: 2px solid #eee;
            border-radius: 10px;
            margin-top: 1rem;
            outline: none;
        }

        /* Footer */
        .footer {
            background: var(--dark);
            color: white;
            padding: 2rem 5%;
            text-align: center;
            margin-top: 3rem;
        }
		
		/* Features Section */
        .features-section {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 2rem;
            padding: 2rem 0;
        }
		
		/* Description Section */
			.description-section {
			  background: var(--light);
			  border-radius: 15px;
			  padding: 2rem;
			  margin: 2rem 0;
			  border-left: 5px solid var(--primary);
			  animation: slideIn 1s ease-out;
			}
		
		.feature-card {
            padding: 2rem;
            border-radius: 15px;
            background: var(--light);
            text-align: center;
            transition: transform 0.3s ease;
        }

        .feature-card:hover {
            transform: translateY(-5px);
        }


        .loader {
            display: none;
            position: fixed;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            text-align: center;
        }

        .loader-spinner {
            width: 50px;
            height: 50px;
            border: 5px solid #f3f3f3;
            border-top: 5px solid var(--secondary);
            border-radius: 50%;
            animation: spin 1s linear infinite;
        }

        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }
		
		.animated-heading {
			text-align: center;
			font-size: 18px;
			font-weight: bold;
			margin-bottom: 6px;
			background: linear-gradient(90deg, #0d47a1, #1976d2);
			-webkit-background-clip: text;
			-webkit-text-fill-color: transparent;
			animation: fadeInSlide 1s ease-out;
		  }

		  @keyframes fadeInSlide {
			0% {
			  opacity: 0;
			  transform: translateY(-20px);
			}
			100% {
			  opacity: 1;
			  transform: translateY(0);
			}
		  }
		  
		  //File wrapper
		  .file-upload-wrapper {
			position: relative;
			display: flex;
			flex-direction: column;
			justify-content: center;
			align-items: center;
			margin: 20px auto;
			width: 100%;
			max-width: 500px;
		  }

		  .file-input {
			display: none;
		  }

		  .file-label {
			display: flex;
			flex-direction: column;
			justify-content: center;
			align-items: center;
			background: #f0f4ff;
			color: #0d47a1;
			border: 2px dashed #0d47a1;
			border-radius: 12px;
			padding: 30px;
			width: 100%;
			cursor: pointer;
			transition: all 0.3s ease;
			text-align: center;
			box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
		  }

		  .file-label:hover {
			background: #e3f2fd;
			transform: scale(1.01);
			box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
		  }

		  .file-label .icon {
			font-size: 30px;
			margin-bottom: 10px;
		  }

		  .file-label .text {
			font-size: 18px;
			font-weight: bold;
		  }

		  .file-info {
			font-size: 12px;
			color: #555;
			margin-top: 8px;
		  }

		  .file-path {
			margin-top: 10px;
			font-size: 14px;
			color: #333;
			word-break: break-all;
			text-align: center;
			padding: 8px 10px;
			border: 1px solid #ccc;
			background: #fff;
			width: 100%;
			border-radius: 8px;
			box-shadow: inset 0 1px 2px rgba(0,0,0,0.05);
		  }
		  
		  /* Formatting Tools */
		  .toolbar {
			display: flex;
			flex-wrap: wrap;
			justify-content: space-between;
			align-items: center;
			background: #f0f4ff;
			border: 2px solid #0d47a1;
			border-radius: 12px;
			padding: 15px 20px;
			gap: 20px;
			box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
			width: 100%;
			max-width: 100%;
		  }

		  .toolbar-group {
			display: flex;
			align-items: center;
			gap: 10px;
			flex-wrap: wrap;
		  }

		  .group-label {
			font-weight: 600;
			color: #0d47a1;
			margin-right: 5px;
		  }

		  .toolbar select {
			padding: 8px 12px;
			border-radius: 8px;
			border: 1px solid #ccc;
			font-size: 14px;
			background: white;
		  }

		  .format-btn {
			padding: 8px 12px;
			font-size: 16px;
			background: #0d47a1;
			color: white;
			border: none;
			border-radius: 8px;
			cursor: pointer;
			transition: all 0.3s ease;
		  }

		  .format-btn:hover {
			background: #1565c0;
			transform: scale(1.05);
		  }

		  .format-btn:active {
			transform: scale(0.95);
		  }

		  .format-btn strong,
		  .format-btn em {
			color: white;
		  }
		  
		  /* Add Styling */
		  
		  
		  .ad-container {
			text-align: center;
			margin: 30px auto;
			padding: 15px;
			background-color: #ffffff;
			border: 2px dashed #0d47a1;
			border-radius: 12px;
			box-shadow: 0 4px 10px rgba(0,0,0,0.05);
			max-width: 500px;
		  }

		  .ad-label {
			font-size: 14px;
			font-weight: bold;
			color: #0d47a1;
			margin-bottom: 10px;
			text-transform: uppercase;
		  }

		  .ad-banner {
			width: 100%;
			max-width: 468px;
			height: auto;
			border-radius: 8px;
		  }
		  
		  
		  
		  /* Header Styling */
		  
		  /* Desktop Header */
        .header {
          position: sticky;
          top: 0;
          z-index: 1000;
          display: flex;
          justify-content: space-between;
          align-items: center;
          background: rgba(255, 255, 255, 0.5);
          backdrop-filter: blur(8px);
          padding: 15px 25px;
          border-bottom: 2px solid #0d47a1;
          box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
          flex-wrap: wrap;
          animation: slideDownFade 0.7s ease-out;
        }
        
        /* Animation on load */
        @keyframes slideDownFade {
          0% {
            opacity: 0;
            transform: translateY(-20px);
          }
          100% {
            opacity: 1;
            transform: translateY(0);
          }
        }
        
        /* Left-side info */
        .site-info {
          display: flex;
          align-items: center;
          gap: 12px;
        }
        
        .site-logo {
          width: 80px;
          height: 80px;
          object-fit: contain;
          border-radius: 10px;
          box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
          transition: transform 0.3s;
        }
        
        .site-logo:hover {
          transform: scale(1.05);
        }
        
        .site-name {
          font-size: 24px;
          font-weight: bold;
          color: #0d47a1;
          text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
        }
        
        /* Right-side developer info */
        .developer-info {
          display: flex;
          flex-direction: column;
          align-items: center;
          text-align: center;
          position: relative; /* Changed from absolute */
          margin-left: auto;
        }
        
        .developer-label {
          font-size: 16px;
          color: #333;
          font-weight: 600;
          margin-bottom: 5px;
        }
        
        .developer-logo {
          width: 180px;
          height: auto;
          border-radius: 8px;
          transition: transform 0.3s, box-shadow 0.3s;
          box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
        }
        
        .developer-logo:hover {
          transform: scale(1.05);
          box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
        }
        
        /* ✅ Mobile styles */
        @media (max-width: 600px) {
          .header {
            flex-direction: column;
            justify-content: center;
            align-items: center;
            text-align: center;
            padding: 15px;
          }
        
          .site-info {
            flex-direction: column;
            justify-content: center;
            align-items: center;
          }
        
          .developer-info {
            margin-left: 0;
            margin-top: 15px;
          }
        }
        
        
        /* Navigation Styling */
        /* Navigation Centered */
.main-nav {
  flex: 1;
  text-align: center;
}
.nav-list {
  display: inline-flex;
  list-style: none;
  gap: 18px;
  padding: 0;
  margin: 0;
}
.nav-list li a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  padding: 6px 12px;
  transition: background 0.3s;
  border-radius: 5px;
}
.nav-list li a:hover {
  background-color: rgba(255, 255, 255, 0.2);
}
  
  
    /* Footer Styling */
		  
	/* Freeze Footer at the bottom */
  
          .footer {
          bottom: 0;
          width: 100%;
          background: rgba(255, 255, 255, 0.5); /* 50% transparent white */
          backdrop-filter: blur(8px); /* Optional blur for glass effect */
          border-top: 2px solid #0d47a1;
          padding: 15px 20px;
          text-align: center;
          color: #0d47a1;
          font-size: 15px;
          font-style: bold;
          box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.05);
          z-index: 999;
          animation: slideUpFade 0.7s ease-out;
        }

  .footer-content p {
    margin: 4px 0;
    line-height: 1.5;
  }

  .footer a {
    color: #0d47a1;
    text-decoration: underline;
    font-weight: 500;
    transition: color 0.3s;
  }

  .footer a:hover {
    color: #1565c0;
  }

  @keyframes slideUpFade {
    0% {
      opacity: 0;
      transform: translateY(20px);
    }
    100% {
      opacity: 1;
      transform: translateY(0);
    }
  }

  @media (max-width: 600px) {
    .footer {
      font-size: 13px;
      padding: 12px;
    }
  }