/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: #0a0a0a;
  color: #ffffff;
  line-height: 1.6;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  height: 56px;
  background: #0a0a0a;
  border-bottom: 1px solid #2a2a2a;
  z-index: 100;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
  padding: 0 16px;
  max-width: 100%;
}

.logo-section {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.logo {
  width: 40px;
  height: 40px;
  border-radius: 8px;
}

.logo-text {
  font-weight: 600;
  font-size: 18px;
  color: #49d4eb;
}

/* Desktop Navigation */
.desktop-nav {
  display: none;
  gap: 24px;
}

.desktop-nav a {
  color: #ffffff;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
}

.desktop-nav a:hover {
  color: #49d4eb;
}

/* Hamburger Menu */
.hamburger {
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  margin-right: -8px;
}

.hamburger span {
  width: 24px;
  height: 2px;
  background: #ffffff;
  border-radius: 1px;
  transition: all 0.3s;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(10px, 10px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(8px, -8px);
}

/* Sidebar */
.sidebar {
  position: fixed;
  left: 0;
  top: 56px;
  width: 240px;
  height: calc(100vh - 56px);
  background: #1a1a1a;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  z-index: 99;
  border-right: 1px solid #2a2a2a;
  padding: 16px 0;
}

.sidebar.open {
  transform: translateX(0);
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
}

.sidebar-link {
  padding: 12px 20px;
  color: #ffffff;
  text-decoration: none;
  font-size: 16px;
  transition: background 0.2s;
  border-left: 3px solid transparent;
}

.sidebar-link:hover {
  background: rgba(34, 197, 94, 0.1);
  border-left-color: #49d4eb;
  color: #49d4eb;
}

/* Overlay for sidebar */
.sidebar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
  z-index: 98;
}

.sidebar-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

/* Main Content */
.main-content {
  padding: 0;
}

/* Hero Section */
.hero {
  padding: 40px 16px;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: calc(60vh - 56px);
}

.hero-card {
  width: 100%;
  max-width: 500px;
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  border-radius: 16px;
  padding: 32px 24px;
}

.hero-title {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 8px;
  text-align: center;
}

.hero-subtitle {
  font-size: 14px;
  color: #808080;
  text-align: center;
  margin-bottom: 24px;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.input-field {
  width: 100%;
  padding: 12px 16px;
  background: #2a2a2a;
  border: 1px solid #3a3a3a;
  border-radius: 8px;
  color: #ffffff;
  font-size: 14px;
  transition: border-color 0.2s;
}

.input-field:focus {
  outline: none;
  border-color: #49d4eb;
}

.input-field::placeholder {
  color: #808080;
}

.download-btn {
  width: 100%;
  padding: 12px 16px;
  background: #49d4eb;
  color: #0a0a0a;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.download-btn:hover {
  background: #49d4eb;
  transform: translateY(-2px);
}

.download-btn:active {
  transform: translateY(0);
}

/* About Section */
.about {
  padding: 40px 16px;
  background: #0a0a0a;
}

.about-content {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.about-content h2 {
  font-size: 24px;
  margin-bottom: 16px;
  color: #49d4eb;
}

.about-content p {
  font-size: 14px;
  color: #b0b0b0;
  margin-bottom: 12px;
  line-height: 1.6;
}

/* Contact Section */
.contact {
  padding: 40px 16px;
  background: #0a0a0a;
}

.contact-content {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.contact-content h2 {
  font-size: 24px;
  margin-bottom: 16px;
  color: #49d4eb;
}

.contact-content p {
  font-size: 14px;
  color: #b0b0b0;
  margin-bottom: 12px;
  line-height: 1.6;
}

.contact-content strong {
  color: #ffffff;
}

/* Footer */
.footer {
  padding: 24px 16px;
  background: #0a0a0a;
  border-top: 1px solid #2a2a2a;
  text-align: center;
}

.footer p {
  font-size: 12px;
  color: #808080;
}

/* Tablet and Desktop */
@media (min-width: 768px) {
  /* Hide hamburger and sidebar on desktop */
  .hamburger {
    display: none;
  }

  .sidebar {
    display: none;
  }

  .sidebar-overlay {
    display: none;
  }

  /* Show desktop navigation */
  .desktop-nav {
    display: flex;
  }

  /* Adjust hero section */
  .hero {
    padding: 80px 24px;
    min-height: auto;
  }

  .hero-card {
    padding: 48px 40px;
    max-width: 600px;
  }

  .hero-title {
    font-size: 36px;
    margin-bottom: 12px;
  }

  .hero-subtitle {
    font-size: 16px;
    margin-bottom: 32px;
  }

  .input-group {
    flex-direction: row;
    gap: 12px;
  }

  .input-field {
    flex: 1;
  }

  .download-btn {
    width: auto;
    min-width: 160px;
  }

  /* Adjust section padding */
  .about {
    padding: 60px 24px;
  }

  .contact {
    padding: 60px 24px;
  }

  .about-content h2,
  .contact-content h2 {
    font-size: 28px;
  }

  .about-content p,
  .contact-content p {
    font-size: 15px;
  }
}
/* ===============================
   ABOUT + CONTACT FLEX LAYOUT
================================ */
.info-wrapper {
  display: flex;
  flex-direction: column; /* mobile default */
  gap: 40px;
  padding: 40px 16px;
}

/* Desktop */
@media (min-width: 1024px) {
  .info-wrapper {
    flex-direction: row;       /* 🔥 side by side */
    justify-content: center;
    align-items: flex-start;
    gap: 60px;
    max-width: 1100px;
    margin: 0 auto;
  }

  .about,
  .contact {
    flex: 1;                   /* equal width */
    padding: 0;                /* remove extra padding */
  }

  .about-content,
  .contact-content {
    text-align: left;          /* desktop look better */
  }
}
/* ===============================
   INPUT WITH RIGHT BUTTON
================================ */
.input-wrapper {
  position: relative;
  width: 100%;
}

.input-wrapper .input-field {
  width: 100%;
  padding-right: 42px; /* space for button */
}

/* Clear / Pause button */
.clear-btn {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: none;
  background: #2a2a2a;
  color: #9ca3af;
  font-size: 14px;
  cursor: pointer;
  display: none; /* hidden by default */
}

.clear-btn:hover {
  background: #374151;
  color: #ffffff;
}

/* Desktop alignment */
@media (min-width: 768px) {
  .input-group {
    flex-direction: row;
    align-items: center;
  }

  .input-wrapper {
    flex: 1;
  }
}
.clear-btn img {
  width: 14px;
  height: 14px;
  pointer-events: none; /* click goes to button */
  filter: invert(80%);
}
.clear-btn {
  display: none;
  align-items: center;
  justify-content: center;
}
.clear-btn {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: none;
  background: #2a2a2a;
  cursor: pointer;

  display: none;              /* JS controls visibility */
  align-items: center;        /* flex centering */
  justify-content: center;

  color: #9ca3af;
}

/* ===============================
   PASTE BUTTON (INPUT RIGHT)
================================ */
.paste-btn {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: none;
  background: #2a2a2a;
  cursor: pointer;

  display: flex;
  align-items: center;
  justify-content: center;
}

.paste-btn svg {
  width: 14px;
  height: 14px;
  color: #9ca3af;
  pointer-events: none;
}

.paste-btn:hover svg {
  color: #ffffff;
}
