/* Poppins Medium ও Bold */
@font-face {
  font-family: "Poppins";
  src: url("../fonts/Poppins/Poppins-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
}
@font-face {
  font-family: "Poppins";
  src: url("../fonts/Poppins/Poppins-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
}

/* Inter Regular, Medium, Bold */
@font-face {
  font-family: "Inter";
  src: url("../fonts/Inter/Inter_24pt-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/Inter/Inter_24pt-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  src: url("/static/fonts/Inter-SemiBold.ttf") format("truetype");
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/Inter/Inter_24pt-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
}
:root {
  --primary: #4361ee;
  --primary-dark: #3a56d4;
  --secondary: #06d6a0;
  --dark: #1e293b;
  --light: #f8fafc;
  --gray: #64748b;
  --light-gray: #e2e8f0;
  --border-radius: 12px;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", sans-serif;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  color: var(--dark);
  line-height: 1.6;
  min-height: 100vh;
}

h1,
h2,
h3,
h4 {
  font-family: "Poppins", sans-serif;
  font-weight: 700;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.btn {
  display: inline-block;
  padding: 14px 28px;
  background: var(--primary);
  color: white;
  border-radius: var(--border-radius);
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  font-size: 16px;
  box-shadow: 0 4px 6px rgba(67, 97, 238, 0.2);
}

.btn:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.btn-secondary {
  background: white;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-secondary:hover {
  background: var(--primary);
  color: white;
}

.btn-success {
  background: var(--secondary);
}

.btn-success:hover {
  background: #05b388;
}

/* Header Styles */
header {
  background-color: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  position: sticky;
  top: 0;
  z-index: 100;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  position: relative;
}

.logo {
  display: flex;
  align-items: center;
  font-size: 24px;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
}

.logo i {
  margin-right: 8px;
}

.nav-links {
  display: flex;
  gap: 30px;
}

.nav-links a {
  text-decoration: none;
  color: var(--dark);
  font-weight: 500;
  transition: var(--transition);
}

.nav-links a:hover {
  color: var(--primary);
}

.hamburger {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  color: var(--dark);
  cursor: pointer;
}

/* Hero Section */
.hero {
  padding: 100px 0 80px;
  background: linear-gradient(135deg, #f0f4ff 0%, #e6f7ff 100%);
  position: relative;
  overflow: hidden;
  text-align: center;
}

.hero::before {
  content: "";
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: linear-gradient(
    120deg,
    rgba(67, 97, 238, 0.1) 0%,
    rgba(6, 214, 160, 0.1) 100%
  );
  top: -250px;
  right: -150px;
  z-index: 0;
}

.hero::after {
  content: "";
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: linear-gradient(
    120deg,
    rgba(67, 97, 238, 0.1) 0%,
    rgba(6, 214, 160, 0.1) 100%
  );
  bottom: -200px;
  left: -100px;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
}

.hero-text h1 {
  font-size: 3.5rem;
  line-height: 1.2;
  margin-bottom: 20px;
  color: var(--dark);
}

.hero-text p {
  font-size: 1.25rem;
  color: var(--gray);
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-buttons {
  display: flex;
  gap: 15px;
  margin-top: 20px;
  justify-content: center;
}

/* Stats counter */
.stats-counter {
  display: flex;
  justify-content: space-around;
  background: white;
  border-radius: var(--border-radius);
  padding: 20px;
  margin: 20px 0;
  box-shadow: var(--shadow);
  flex-wrap: wrap;
}

.stat-box {
  text-align: center;
  padding: 10px;
  min-width: 150px;
}

.stat-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
}

.stat-label {
  font-size: 0.9rem;
  color: var(--gray);
}

/* Section Styles */
.section {
  padding: 80px 0;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 60px;
}

.section-header h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  color: var(--dark);
  position: relative;
  display: inline-block;
}

.section-header h2::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: var(--primary);
  border-radius: 2px;
}

.section-header p {
  font-size: 1.1rem;
  color: var(--gray);
  margin-top: 25px;
}

/* Features Section */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.feature-card {
  background: white;
  border-radius: var(--border-radius);
  padding: 35px 30px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.feature-card i {
  font-size: 48px;
  color: var(--primary);
  margin-bottom: 20px;
  transition: var(--transition);
}

.feature-card:hover i {
  transform: scale(1.1);
}

.feature-card h3 {
  font-size: 22px;
  margin-bottom: 15px;
}

.feature-card p {
  color: var(--gray);
}

/* Compression Tool */
.tool-container {
  background: white;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  margin-bottom: 40px;
}

.tool-header {
  background: var(--primary);
  color: white;
  padding: 20px;
  text-align: center;
}

.tool-header h3 {
  font-size: 24px;
  margin-bottom: 10px;
}

.tool-header p {
  opacity: 0.9;
  font-size: 16px;
}

.tool-body {
  padding: 30px;
}

.upload-area {
  border: 2px dashed var(--light-gray);
  border-radius: var(--border-radius);
  padding: 40px;
  text-align: center;
  margin-bottom: 30px;
  transition: var(--transition);
  cursor: pointer;
  background: rgba(67, 97, 238, 0.03);
}

.upload-area:hover {
  border-color: var(--primary);
  background: rgba(67, 97, 238, 0.08);
}

.upload-area i {
  font-size: 48px;
  color: var(--primary);
  margin-bottom: 20px;
}

.upload-area h4 {
  margin-bottom: 10px;
  font-size: 22px;
}

.upload-area p {
  color: var(--gray);
  margin-bottom: 20px;
}

.file-list-container {
  margin: 20px 0;
  display: none;
}

.file-names {
  background: #f8f9fa;
  padding: 15px;
  border-radius: 8px;
  max-height: 150px;
  overflow-y: auto;
}

.file-item {
  padding: 5px 0;
  border-bottom: 1px solid #e2e8f0;
}

.options-panel {
  background: #f8fafc;
  border-radius: var(--border-radius);
  padding: 25px;
  margin-bottom: 30px;
}

.options-panel h4 {
  margin-bottom: 20px;
  font-size: 20px;
}

.options-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.option-item {
  display: flex;
  flex-direction: column;
}

.option-item label {
  font-weight: 500;
  margin-bottom: 8px;
}

.option-item select,
.option-item input {
  padding: 12px;
  border: 1px solid var(--light-gray);
  border-radius: 8px;
  font-family: inherit;
  background: white;
}

.action-buttons {
  display: flex;
  gap: 15px;
  margin-bottom: 30px;
}

.action-buttons .btn {
  flex: 1;
  padding: 16px;
}

.action-buttons .btn-secondary {
  flex: 0.3;
}

.preview-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-top: 30px;
}

.preview-box {
  border: 1px solid var(--light-gray);
  border-radius: var(--border-radius);
  padding: 20px;
  text-align: center;
  background: white;
}

.preview-box h4 {
  margin-bottom: 15px;
  font-size: 18px;
}

.preview-img {
  width: 100%;
  height: 200px;
  background: #f1f5f9;
  border-radius: 8px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 15px;
  overflow: hidden;
  position: relative;
}

.preview-img img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.preview-img i {
  font-size: 48px;
  color: var(--gray);
}

.preview-stats {
  display: flex;
  justify-content: space-around;
}

.stat-item {
  text-align: center;
}

.stat-item .value {
  font-weight: 700;
  font-size: 18px;
}

.stat-item .label {
  font-size: 14px;
  color: var(--gray);
}

/* Results Container */
.results-container {
  margin-top: 30px;
  display: none;
}

.results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 15px;
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.result-card {
  background: white;
  border-radius: var(--border-radius);
  padding: 20px;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.result-card:hover {
  transform: translateY(-5px);
}

.result-preview {
  display: flex;
  gap: 15px;
  margin-bottom: 15px;
}

.result-original,
.result-compressed {
  flex: 1;
  text-align: center;
}

.result-img {
  height: 120px;
  background: #f8f9fa;
  border-radius: 8px;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  margin-bottom: 10px;
}

.result-img img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.result-stats {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
}

.result-stat {
  text-align: center;
}

.result-actions {
  display: flex;
  gap: 10px;
  margin-top: 15px;
}

.download-btn {
  flex: 1;
  padding: 10px;
  font-size: 14px;
}

/* Progress bar */
.progress-container {
  width: 100%;
  background-color: #f1f1f1;
  border-radius: 4px;
  margin: 20px 0;
  display: none;
}

.progress-bar {
  height: 13px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: 6px;
  width: 0%;
  transition: width 0.4s ease;
  position: relative;
}

.progress-text {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: white;
  font-size: 12px;
  font-weight: bold;
}

.compression-stats {
  text-align: center;
  margin-top: 20px;
  color: var(--gray);
}

/* Bonus Tools */
.bonus-tools {
  background: linear-gradient(135deg, #f0f9ff 0%, #f0f4ff 100%);
  border-radius: var(--border-radius);
  padding: 60px 0;
  margin-top: 40px;
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.tool-card {
  background: white;
  border-radius: var(--border-radius);
  padding: 35px 30px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.tool-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.tool-card i {
  font-size: 48px;
  color: var(--primary);
  margin-bottom: 20px;
  transition: var(--transition);
}

.tool-card:hover i {
  transform: scale(1.1);
}

.tool-card h3 {
  margin-bottom: 15px;
  font-size: 22px;
}

.tool-card p {
  color: var(--gray);
  margin-bottom: 20px;
}

/* FAQ Section */
.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  margin-bottom: 15px;
  background: white;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  padding: 20px;
  text-align: left;
  background: none;
  border: none;
  font-family: "Poppins", sans-serif;
  font-weight: 500;
  font-size: 18px;
  color: var(--dark);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-question i {
  transition: var(--transition);
}

.faq-question.active i {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-answer p {
  padding: 0 0 20px;
  color: var(--gray);
}

/* Footer */
footer {
  background: var(--dark);
  color: white;
  padding: 60px 0 30px;
  margin-top: 60px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-column h4 {
  font-size: 20px;
  margin-bottom: 20px;
  position: relative;
}

.footer-column h4::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 40px;
  height: 3px;
  background: var(--primary);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: #cbd5e1;
  text-decoration: none;
  transition: var(--transition);
}

.footer-links a:hover {
  color: white;
  padding-left: 5px;
}

.social-links {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.social-links a {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: white;
  transition: var(--transition);
}

.social-links a:hover {
  background: var(--primary);
  transform: translateY(-3px);
}

.copyright {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  font-size: 14px;
}

/* Loading spinner */
.spinner {
  animation: spin 1s linear infinite;
  font-size: 24px;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Toast message */
.toast-message {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: white;
  padding: 12px 24px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  z-index: 1000;
  animation: fadeInOut 5s forwards;
}

@keyframes fadeInOut {
  0% {
    opacity: 0;
    bottom: 0;
  }
  10% {
    opacity: 1;
    bottom: 20px;
  }
  90% {
    opacity: 1;
    bottom: 20px;
  }
  100% {
    opacity: 0;
    bottom: 0;
  }
}

/* Responsive Design */
@media (max-width: 992px) {
  .hero-text h1 {
    font-size: 2.8rem;
  }

  .preview-section {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    background: white;
    flex-direction: column;
    align-items: center;
    padding: 20px 0;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-150%);
    transition: transform 0.3s ease;
    z-index: 99;
  }

  .nav-links.active {
    transform: translateY(0);
  }

  .nav-links a {
    padding: 15px;
  }

  .hamburger {
    display: block;
  }

  .hero {
    padding: 80px 0 60px;
  }

  .hero-text h1 {
    font-size: 2.2rem;
  }

  .hero-text p {
    font-size: 1.1rem;
  }

  .section {
    padding: 60px 0;
  }

  .section-header h2 {
    font-size: 1.8rem;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .results-header {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }

  .action-buttons {
    flex-direction: column;
  }

  .action-buttons .btn,
  .action-buttons .btn-secondary {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .hero-text h1 {
    font-size: 1.8rem;
  }

  .stats-counter {
    flex-direction: column;
    gap: 15px;
  }

  .stat-box {
    width: 100%;
  }
}
/* Add these new styles at the end of your CSS file */
.preview-img {
  position: relative;
}

.preview-img img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: none;
}

.preview-img i {
  position: relative;
  z-index: 1;
}
