@import url("https://cdn.jsdelivr.net/npm/bootstrap-icons@1.13.1/font/bootstrap-icons.min.css");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', sans-serif;
}

.main-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 20px;
  background-color: #ffffff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 999;
}

.logo-section {
  display: flex;
  align-items: center;
}

.logo {
  width: 70px;
  height: 70px;
  margin-right: 10px;
}

.brand-name {
  font-size: 1.4rem;
  font-weight: 600;
  color: #333;
}

.nav-icons {
  display: flex;
  align-items: center;
  gap: 15px;
}

.hamburger {
  font-size: 1.6rem;
  background: none;
  border: none;
  cursor: pointer;
  display: block;
}

.profile-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  cursor: pointer;
}

.introduction {
  background-image:
    linear-gradient(to bottom, rgba(24, 33, 55, 0.95) 0%, rgba(24, 33, 55, 0.7) 40%, rgba(24, 33, 55, 0.1) 75%, rgba(255, 255, 255, 1) 100%),
    url("svgs/Animated Shape.svg");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  width: 100%;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  flex-direction: column;
  padding: 0 20px;
}

.intro-content h1 {
  color: #ffffff;
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: 1px;
  margin-top: 30px;
}

.intro-content h1 span {
  color: #00b4ff;
}

.intro-content p {
  color: #e0e0e0;
  font-size: 1rem;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.5;
}

.upload-btn {
  display: inline-block;
  transition: all 0.2s ease-in;
  position: relative;
  overflow: hidden;
  z-index: 1;
  color: #090909;
  padding: 0.7em 1.7em;
  cursor: pointer;
  font-size: 18px;
  border-radius: 0.5em;
  background: #e8e8e8;
  border: 1px solid #e8e8e8;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: 700;
  margin-top: 30px;
  box-shadow: 8px 8px 20px rgba(0, 0, 0, 0.25), -2px -2px 8px rgba(255, 255, 255, 0.6);
}

.upload-btn:active {
  color: #666;
  box-shadow: inset 4px 4px 12px rgba(0, 0, 0, 0.2),
    inset -4px -4px 12px rgba(255, 255, 255, 0.5);
}

.upload-btn:before {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%) scaleY(1) scaleX(1.25);
  top: 100%;
  width: 140%;
  height: 180%;
  background-color: rgba(0, 0, 0, 0.05);
  border-radius: 50%;
  display: block;
  transition: all 0.5s 0.1s cubic-bezier(0.55, 0, 0.1, 1);
  z-index: -1;
}

.upload-btn:after {
  content: "";
  position: absolute;
  left: 55%;
  transform: translateX(-50%) scaleY(1) scaleX(1.45);
  top: 180%;
  width: 160%;
  height: 190%;
  background-color: #009087;
  border-radius: 50%;
  display: block;
  transition: all 0.5s 0.1s cubic-bezier(0.55, 0, 0.1, 1);
  z-index: -1;
}

.upload-btn:hover {
  color: #ffffff;
  border: 1px solid #009087;
}

.upload-btn:hover:before {
  top: -35%;
  background-color: #009087;
  transform: translateX(-50%) scaleY(1.3) scaleX(0.8);
}

.upload-btn:hover:after {
  top: -45%;
  background-color: #009087;
  transform: translateX(-50%) scaleY(1.3) scaleX(0.8);
}

.upload-btn img {
  margin-right: 10px;
}

.flip-preview {
  padding: 20px;
  text-align: center;
}

.wrap {
  padding: 20px;
  text-align: center;
  background-color: white;
  display: flex;
  justify-content: center;
  align-items: center;
}

.fade-image {
  width: 100%;
  max-width: 600px; /* adjust as needed */
  height: auto;

  -webkit-mask-image: radial-gradient(circle, rgba(0, 0, 0, 1) 20%, rgba(0, 0, 0, 0) 100%);
  mask-image: radial-gradient(circle, rgba(0, 0, 0, 1) 20%, rgba(0, 0, 0, 0) 100%);
  
  -webkit-mask-size: cover;
  mask-size: cover;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
}

.flip-container h2 {
  font-size: 2rem;
  margin-bottom: 15px;
  color: #111;
}

.flip-container p {
  font-size: 1rem;
  color: #444;
  margin-bottom: 40px;
}

.how-it-works {
  background: linear-gradient(to bottom, #ffffff, #f2f6fc);
  padding: 80px 20px;
  text-align: center;
}

.works-container h2 {
  font-size: 2rem;
  margin-bottom: 10px;
  color: #111;
}

.works-container h2 span {
  color: #009087;
}

.works-container p {
  font-size: 1rem;
  color: #444;
  margin-bottom: 50px;
}

.steps {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
}

.step {
  background: #fff;
  padding: 30px 25px;
  border-radius: 1em;
  max-width: 260px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
}

.step:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
}

.step-number {
  background: #009087;
  color: #fff;
  font-weight: bold;
  font-size: 1.1rem;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  margin: 0 auto 15px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step h3 {
  font-size: 1.2rem;
  color: #111;
  margin-bottom: 10px;
}

.step p {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.6;
}

.testimonials {
  background: #ffffff;
  padding: 80px 20px;
  text-align: center;
}

.testimonial-container h2 {
  font-size: 2rem;
  margin-bottom: 10px;
  color: #111;
}

.testimonial-container p {
  font-size: 1rem;
  color: #444;
  margin-bottom: 40px;
}

.testimonial-swiper {
  max-width: 600px;
  margin: 0 auto;
  padding-bottom: 40px;
}

.swiper-slide {
  background: #f9fbfc;
  border-radius: 1em;
  padding: 25px;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.05);
  border: 1px solid black;
}

.testimonial-card p {
  font-size: 0.95rem;
  color: #333;
  margin-bottom: 20px;
  line-height: 1.6;
}

.testimonial-card {
  display: flex;
  flex-direction: column;
}

.user-info {
  align-self: flex-start;
}

.user-info strong {
  color: #111;
  font-size: 0.95rem;
}

.user-info span {
  display: block;
  color: #666;
  font-size: 0.8rem;
}

.footer {
  background: black;
  color: #dcdcdc;
  padding: 60px 20px 20px;
  font-family: 'Inter', sans-serif;
}

.footer-container {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 30px;
}

.footer-brand h3 {
  font-size: 1.8rem;
  color: #00b4ff;
  margin-bottom: 10px;
}

.footer-brand p {
  font-size: 0.95rem;
  color: #aaa;
  max-width: 250px;
}

.footer-note {
  margin: 15px 0;
  text-align: center;
  font-weight: 600;
  font-size: 19px;
}

.footer-note a {
  color: green;
  text-decoration: none;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  color: #dcdcdc;
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: #00b4ff;
}

.footer-socials {
  display: flex;
  gap: 15px;
}

.footer-socials a {
  color: #dcdcdc;
  font-size: 1.2rem;
  transition: color 0.3s ease;
}

.footer-socials a:hover {
  color: #00b4ff;
}

.footer-bottom {
  text-align: center;
  margin-top: 40px;
  font-size: 0.85rem;
  color: #777;
}

/* Sidebar Base Style */
.sidebar {
  position: fixed;
  top: 0;
  left: -280px;
  width: 260px;
  height: 100%;
  background: #111827;
  color: #fff;
  padding: 20px;
  transition: left 0.4s ease;
  z-index: 999;
  box-shadow: 4px 0 15px rgba(0, 0, 0, 0.2);
  overflow-y: auto;
  border-right: 1px solid #1f2937;
}

/* Sidebar Open State */
.sidebar.open {
  left: 0;
}

/* Close Button */
.close-btn {
  background: transparent;
  border: none;
  font-size: 24px;
  color: #fff;
  float: right;
  cursor: pointer;
}

/* Sidebar Content */
.sidebar h3 {
  margin-top: 10px;
  margin-bottom: 20px;
  color: #0ea5e9;
}

.sidebar ul {
  list-style: none;
  padding: 0;
}

.sidebar ul li {
  margin: 15px 0;
}

.sidebar ul li a {
  color: #e5e7eb;
  text-decoration: none;
  font-size: 16px;
  transition: color 0.3s ease;
}

.sidebar ul li a:hover {
  color: #38bdf8;
}

/* Menu Toggle Button */
.menu-toggle {
  position: fixed;
  top: 15px;
  left: 15px;
  background: #0ea5e9;
  color: white;
  border: none;
  font-size: 22px;
  padding: 10px 14px;
  border-radius: 6px;
  z-index: 1000;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

#status {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  gap: 5px;
  z-index: 9999;
}

#status i {
  color: white;
  margin-right: 10px;
  text-align: center;
}

#status span {
  text-align: center;
}

.upload-modal {
  background: #0f1117;
  border-radius: 20px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 0 25px rgba(0, 255, 255, 0.2);
  animation: popIn 0.3s ease;
}

@keyframes popIn {
  from {
    transform: scale(0.8);
    opacity: 0;
  }
  
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.circular-chart {
  display: block;
  margin: 0 auto;
  max-width: 120px;
  max-height: 120px;
  transform: rotate(-90deg);
}

.circle-bg {
  fill: none;
  stroke: #444;
  stroke-width: 3.8;
}

.circle {
  fill: none;
  stroke-width: 4;
  stroke: #00e0ff;
  stroke-linecap: round;
  transition: stroke-dasharray 0.3s ease;
}

.percentage {
  fill: white;
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.5em;
  text-anchor: middle;
  transform: rotate(90deg);
}

.file-info {
  margin-top: 15px;
  color: #fff;
}

#fileName {
  font-size: 16px;
  font-weight: bold;
  margin: 5px 0;
}

#fileSize {
  font-size: 14px;
  opacity: 0.7;
  text-align: center;
}

/* Login Overlay */
#loginOverlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(18, 18, 18, 0.96);
  display: flex;
  /* changed from none to flex so you can control with opacity + class */
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 2rem;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease-in-out;
}

#loginOverlay.active {
  opacity: 1;
  pointer-events: auto;
}

#loginOverlay h1 {
  color: #00e0ff;
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

.auth-info {
  max-width: 360px;
  font-size: 0.95rem;
  color: #ccc;
  margin-bottom: 1.5rem;
  opacity: 0.85;
  line-height: 1.5;
}

#googleSignIn {
  padding: 1rem 2rem;
  font-size: 1rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  background: #00e0ff;
  color: #000;
  font-weight: bold;
  transition: background 0.3s ease;
}

#googleSignIn:hover {
  background: #00c4e7;
}

#authStatus {
  color: #aaa;
  margin-top: 1rem;
  font-size: 0.9rem;
}

.skip-btn {
  background: none;
  border: none;
  color: #bbb;
  font-size: 0.9rem;
  text-decoration: underline;
  margin-top: 1rem;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.skip-btn:hover {
  opacity: 1;
}

.profile-popup {
  display: none;
  position: fixed;
  top: 60px;
  right: 20px;
  z-index: 9999;
}

.popup-card {
  background: white;
  box-shadow: 0 8px 20px rgba(0, 255, 255, 0.35);
  border-radius: 15px;
  padding: 20px;
  text-align: center;
  min-width: 220px;
  animation: fadeIn 0.3s ease;
}

.popup-pic {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  margin-bottom: 10px;
}

.popup-btn {
  display: block;
  margin-top: 12px;
  padding: 8px 16px;
  border: none;
  border-radius: 8px;
  background: #00f7ff;
  color: #000;
  font-weight: bold;
  text-decoration: none;
}

.popup-btn.logout {
  background: #ff4040;
  color: white;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.profile-popup i {
  color: white;
  margin-right: 5px;
  font-size: 20px;
}


.loader {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  position: relative;
  animation: rotate 1s linear infinite
}

.loader::before,
.loader::after {
  content: "";
  box-sizing: border-box;
  position: absolute;
  inset: 0px;
  border-radius: 50%;
  border: 5px solid #FFF;
  animation: prixClipFix 2s linear infinite;
}

.loader::after {
  transform: rotate3d(90, 90, 0, 180deg);
  border-color: #FF3D00;
}

@keyframes rotate {
  0% {
    transform: rotate(0deg)
  }
  
  100% {
    transform: rotate(360deg)
  }
}

@keyframes prixClipFix {
  0% {
    clip-path: polygon(50% 50%, 0 0, 0 0, 0 0, 0 0, 0 0)
  }
  
  50% {
    clip-path: polygon(50% 50%, 0 0, 100% 0, 100% 0, 100% 0, 100% 0)
  }
  
  75%,
  100% {
    clip-path: polygon(50% 50%, 0 0, 100% 0, 100% 100%, 100% 100%, 100% 100%)
  }
}

.flip-preview {
  padding: 60px 20px;
  text-align: center;
  background-color: white;
  position: relative;
}

.flip-container h2 {
  font-size: 2rem;
  margin-bottom: 10px;
}

.flip-container p {
  font-size: 1rem;
  color: #555;
  margin-bottom: 40px;
}

.flip-stack {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

/* IMAGE styling */
.fade-image {
  display: block;
  height: auto;
  object-fit: cover;

  /* Make it bigger on desktop */
  width: 120%;
}

@media (max-width: 768px) {
  .fade-image {
    width: 100%; /* Mobile full width */
  }
}

/* Radial mask - fade edges at 20% */
.fade-image {
  -webkit-mask-image: radial-gradient(circle, rgba(0,0,0,1) 20%, rgba(0,0,0,0) 100%);
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  -webkit-mask-size: cover;

  mask-image: radial-gradient(circle, rgba(0,0,0,1) 20%, rgba(0,0,0,0) 100%);
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: cover;
}

/* VIDEO overlay */
.demo-video {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  pointer-events: none;
}

.demo-video video {
  width: 100%;
  height: auto;
  max-height: 100%;
}

.slogan {
  font-family: 'Poppins', 'Inter', sans-serif;
  text-align: center;
  color: white; 
  font-weight: 900;
  margin-top: 40px;
}