:root {
  --bg-color: #1a1c1f;
  --navbar-bg: #232427; 
  --text-color: #ffffff;
  --accent-color: #a470f0;
  --header-color: #5a3c77;
  --card-bg: #2a2a2a;
  --card-hover: #a470f0;
  --purple-button-color: #8c6cd8;
  --bluegreen-button-color: #1bc7a1;

  --grid-color: rgba(255, 255, 255, 0.05); 
  --header-gradient: linear-gradient(270deg, #6b7aff, #c89bff); 
  --typewriter-color: #f7f6f6;

  --footer-bg: #22242a;
  --footer-text: #efefef;
  --footer-subtext: #999;

  --tagline-color: #d6ddeb;
  --hamburger-color-dark: rgba(239, 239, 239, 0.5);
  --title-gradient: linear-gradient(270deg, #10f194, #13a3e0);
  --section-header-color: #91a7c4;

  --dropdown-hover-color-landing: #a470f0;
  --dropdown-hover-color-default: #1bc7a1;

  --content-bg: #353434;

  --learn-header: #4dd4b0;
  --learn-subheader: #cccccc;
  --learn-text: #aaaaaa;

  --btn-bg: #1bc7a1;
  --btn-bg-hover: #16a98b;
  --btn-text: #0d0d0d;
  --btn-border: #1bc7a1;
}

[data-theme="light"] {
  --bg-color: #ffffff;
  --navbar-bg: #f5f5f5;
  --text-color: #181414;
  --accent-color: #a470f0;
  --header-color: #eae2f5;
  --card-bg: #f2f2f2;
  --card-hover: #e1d2fa;
  --purple-button-color: #a59de8;
  --bluegreen-button-color: #1bc7a1;

  --grid-color: rgba(0, 0, 0, 0.05); 
  --header-gradient: linear-gradient(270deg, #7d91ff, #ad6df7);
  --typewriter-color: #363636;

  --footer-bg: #e5e7eb;
  --footer-text: #444;
  --footer-subtext: #666;

  --tagline-color: #444;
  --hamburger-color-dark: rgba(0, 0, 0, 0.77);
  --title-gradient: linear-gradient(270deg, #83ccb4, #26a8e4);
  --section-header-color: #3e5282;

  --dropdown-hover-color-landing: #a470f0; 
  --dropdown-hover-color-default: #1bc7a1;

  --content-bg: #eaeaea;

  --learn-header: #39c0b9;
  --learn-subheader: #333333;
  --learn-text: #555555;

  --btn-bg: #20d0a7;
  --btn-bg-hover: #1ab396;
  --btn-text: #ffffff;
  --btn-border: #20d0a7;
}

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

body {
  font-family: 'Poppins', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  min-height: 100vh;
  transition: background-color 0.4s ease, color 0.4s ease;
}

.landing-header {
  position: relative;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding-bottom: 4rem;
}

.down-arrow {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  width: 32px;
  height: auto;
  animation: blink 1.2s infinite;
}

.header-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.app-title {
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 700;
  background: var(--header-gradient);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  max-width: 90vw;
  word-wrap: break-word;
  line-height: 1.2;
  z-index: 1;
  position: relative;

  /* Animation */
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 0.8s ease-out forwards;
  animation-delay: 0.1s;
}

/*Typewriter effect*/
.typewriter-text {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  color: var(--typewriter-color);
  white-space: nowrap;
  overflow: hidden;
  border-right: 0.1em solid var(--typewriter-color);
  animation: 
    blink 0.8s steps(2, start) infinite,  
    fadeUp 0.8s ease-out forwards;      
  animation-delay: 0s, 0.25s;             
  opacity: 0;
  transform: translateY(30px);
  line-height: 3.2rem;
  margin-bottom: 0.2rem;
  padding-bottom: 0.3rem;
  min-height: 3.5rem;
  z-index: 2;
  position: relative;
}

.tagline {
  margin-top: 1rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  font-style: italic;
}


@keyframes blink {
  to {
    border-color: transparent;
  }
}

body.light-theme {
  --typewriter-color: #666666;
}

body.dark-theme {
  --typewriter-color: #aaaaaa;
}

/* Down arrow blink */
.down-arrow {
  width: 32px;
  height: auto;
  margin-top: 1rem;
  animation: blink 1.2s infinite;
  transition: filter 0.3s ease;
}

/* Blink animation reused */
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* For landing page secondary title*/
.gradient-title {
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 700;
  background: linear-gradient(90deg, #7f5af0, #2cb1ff, #7f5af0);
  background-size: 600% 600%;
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation: flowGradient 7s ease infinite;
  display: inline-block;
}

@keyframes flowGradient {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* For landing story line animation*/
.story-line {
  font-size: 1.8rem;
  font-weight: 500;
  margin: 1.2rem 0;
  opacity: 0; /* AOS will handle fade-in */
}

.story-line span {
  display: block;
  margin: -0.2em 0;
}


/* Navbar */
.navbar {
  width: 100%;
  padding: 1rem 2rem;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  background-color: var(--navbar-bg);
  transition: background-color 0.4s ease;
}

.navbar_container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.navbar_logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.navbar_logo img {
  height: 40px;
  transition: filter 0.3s ease;
}

.navbar_controls {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin-left: auto;
}

.navbar_menu {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.navbar_links {
  text-decoration: none;
  color: var(--text-color);
  font-weight: 500;
  transition: color 0.2s;
}

.navbar_links:hover {
  color: #999;
}

/* Call to action buttons (default style for all pages except landing) */
.cta_button {
  display: inline-block;
  font-family: "Poppins", sans-serif;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-weight: 500;
  color: var(--text-color);
  background: var(--bluegreen-button-color);
  border: 2px solid transparent;
  text-decoration: none;
  transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
  cursor: pointer;
}

/* Hover effect for all cta buttons */
.cta_button:hover,
.cta_button:focus {
  background: transparent;
  border-color: #19e18e;
  color: var(--text-color);
}

/* Override style for landing page download button */
.landing-download {
  background: var(--purple-button-color);
  border-color: transparent;
}

/* Hover effect for landing page button */
.landing-download:hover,
.landing-download:focus {
  background: transparent;
  border-color: var(--accent-color);
  color: var(--text-color);
}

/*Quiz button */
.quiz_button {
  background: var(--content-bg);
  border-color: transparent;
  color: var(--text-color);
}

.quiz_button:hover,
.quiz_button:focus {
  background: transparent;
  border-color: var(--footer-subtext);
  color: var(--text-color);
}

/*Nav bar */
.dropdown {
  position: relative;
}

.dropdown_menu {
  display: block;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  position: absolute;
  top: 2.5rem;
  left: 0;
  background-color: var(--navbar-bg);
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  min-width: 200px;
  z-index: 1001;
  padding: 0.5rem 0;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.dropdown_menu li {
  list-style: none;
}

.dropdown_menu a {
  display: block;
  padding: 0.75rem 1rem;
  color: var(--text-color);
  text-decoration: none;
  white-space: nowrap;
}

/* Dropdown hover (non-landing page) */
.dropdown_menu a:hover {
  background-color: var(--dropdown-hover-color-default);
  color: black;
}

/* Dropdown hover (landing page) */
body.landing-page .dropdown_menu a:hover {
  background-color: var(--dropdown-hover-color-landing);
  color: black;
}


.dropdown:hover .dropdown_menu,
.dropdown.open .dropdown_menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.dropdown_arrow {
  width: 10px;
  height: 10px;
  margin-left: 6px;
  vertical-align: middle;
  transition: filter 0.3s ease;
}


.navbar_right {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Hamburger toggle animation */
.navbar_toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  width: 25px;
  height: 25px;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 1002;
}

.bar {
  width: 25px;
  height: 3px;
  background-color: var(--hamburger-color-dark);
  margin: 3px 0;
  border-radius: 2px;
  transition: all 0.3s ease;
  position: absolute;
  left: 0;
}

.bar:nth-child(1) { top: 4px; }
.bar:nth-child(2) { bottom: 4px; }

.navbar_toggle.active .bar:nth-child(1) {
  transform: rotate(45deg);
  top: 50%;
  margin-top: -1.5px;
}

.navbar_toggle.active .bar:nth-child(2) {
  transform: rotate(-45deg);
  bottom: 50%;
  margin-bottom: -1.5px;
}

/* Mobile */
@media (max-width: 768px) {
  .navbar_menu {
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--navbar-bg);
    width: 100%;
    padding: 2rem;
    gap: 1.5rem;

    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity 0.4s ease, transform 0.4s ease;
  }

  .navbar_menu.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .navbar_toggle {
    display: flex;
  }
}

/* Theme Toggle Button */
.theme-toggle button {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

#themeIcon {
  width: 24px;
  height: 24px;
}

/* Landing Section */
.landing-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 100vh;
  padding: 1rem;
  box-sizing: border-box;
  position: relative;
}

.grid-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(to right, var(--grid-color) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-color) 1px, transparent 1px);
  background-size: 40px 40px;
  background-clip: border-box;
  pointer-events: none;
  z-index: 0;
  transition: background-image 0.4s ease;
}


/* Footer*/
.site-footer {
  background-color: var(--footer-bg);
  color: var(--footer-text);
  padding: 1.5rem 2rem;
  text-align: center;
  font-size: 0.95rem;
  border-top: 1px solid var(--grid-color);
  position: relative;
  bottom: 0;
  width: 100%;
  z-index: 10;
}

.footer-content {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links a {
  color: var(--footer-text);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--accent-color);
}

.footer-note {
  font-size: 0.85rem;
  opacity: 0.85;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1;
  padding-top: 80px;
}

.layout-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
  width: 100%;
}

/* Page Header Section */
.page-header {
  text-align: center;
  padding: 4rem 2rem 2rem;
}

.page-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  background: var(--title-gradient);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1rem;

  /* For Animation */
  animation: fadeUp 0.8s ease-out forwards;
  animation-delay: 0.1s;
  opacity: 0;
  transform: translateY(30px);
}

.page-description {
  font-size: 1.2rem;
  color: var(--tagline-color);
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.6;
  opacity: 0;

  /* For Animation */
  animation: fadeUp 0.8s ease-out forwards;
  animation-delay: 0.25s;
  transform: translateY(30px);
}

/* Header section animation keyframes */
@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* For buttons for tools */
.btn {
  background-color: var(--btn-bg);
  color: var(--btn-text);
  padding: 0.6rem 1.2rem;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
}

.btn:hover {
  background-color: var(--btn-bg-hover);
  transform: translateY(-1px);
}

.toggle-group {
  display: flex;
  width: fit-content;
  border: 2px solid var(--btn-border, #1bc7a1);
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 1rem;
}

.toggle-btn {
  flex: 1 1 0;
  padding: 0.6rem 1.2rem;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  background-color: transparent;
  color: var(--btn-border, #1bc7a1);
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.toggle-btn:first-child {
  border-top-left-radius: 6px;
  border-bottom-left-radius: 6px;
}

.toggle-btn:last-child {
  border-top-right-radius: 6px;
  border-bottom-right-radius: 6px;
}

.toggle-btn:not(:last-child) {
  border-right: 2px solid var(--btn-border, #1bc7a1);
}

.toggle-btn.active {
  background-color: var(--btn-border, #1bc7a1);
  color: #fff;
}


/* For input field for tools*/
#urlSection, #passwordinput {
  width: 100%;
  margin-bottom: 1rem;
}

#urlInput,
#passwordInput,
#generatedPassword,
#emailInput {
  width: 100%;
  padding: 0.6rem 1rem;
  font-size: 1rem;
  border-radius: 8px;
  border: 1.5px solid var(--btn-border);
  background-color: var(--card-bg);
  color: var(--text-color);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  font-family: 'Inter', sans-serif;
  box-sizing: border-box;
}

#urlInput::placeholder,
#passwordInput::placeholder,
#generatedPassword::placeholder
#emailInput::placeholder {
  color: var(--tagline-color);
  opacity: 0.7;
}

#urlInput:focus
#passwordInput:focus,
#generatedPassword:focus
#emailInput:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 8px var(--accent-color);
  background-color: var(--bg-color);
  color: var(--text-color);
}

/* Smoother typing */
#urlInput,
#passwordInput,
#generatedPassword,
#emailInput {
  caret-color: var(--accent-color);
}

/* Result styling example */
.result {
  color: var(--text-color);
  font-size: 0.9rem;
  min-height: 1.5rem;
  font-family: 'Inter', sans-serif;
}



/* For password character indicator*/
.char-indicator {
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
  background-color: #444;
  color: #aaa;
  font-weight: bold;
  transition: all 0.3s ease;
}

.char-indicator.active {
  background-color: #2e7d32; /* green */
  color: #fff;
}


/* For QR code upload*/
#dropZone {
  border: 2px dashed var(--bluegreen-button-color);
  border-radius: 10px;
  padding: 2rem;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.3s ease;
  background-color: var(--card-bg);
  color: var(--text-color);
}

#dropZone.dragover {
  background-color: var(--card-hover);
}

#dropZone p {
  margin-bottom: 1rem;
  font-size: 0.95rem;
  opacity: 0.8;
}

#dropZone input[type="file"] {
  display: none;
}


/* For learn modules*/
.module-section {
  margin-bottom: 2rem;
  padding-left: 1rem;
  border-left: 3px solid var(--section-header-color);
}

.module-section h1 {
  /* font-size: 2.3 rem; */
  color: var(--learn-header);
  text-align: center;
}
.module-section h2 {
  /* font-size: 1.5 rem; */
  color: var(--learn-header);
  text-align: center;
}

.module-section h3 {
  /* font-size: 1.25rem; */
  color: var(--section-header-color);
}

.module-section p {
  margin-top: 0.25rem;
  color: var(--text-color);
  text-align: center;
}

.content-wrapper {
  max-width: 900px;
  margin: 2rem auto;
  padding: 2rem;
  border-radius: 1rem;
  /* background-color: var(--content-bg); */
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.4);
  position: relative;
  z-index: 1;
}

.grid-box {
  background: var(--card-bg);
  padding: 1.2rem;
  border-radius: 12px;
  margin-top: 0.5rem;
}

.grid-box ul li {
  padding-left: 0.25rem;
  margin-left: 5rem;
}

.grid-two-cols {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 0.75rem;
}

.grid-two-cols > div {
  flex: 1;
  min-width: 250px;
  background: var(--card-bg);
  padding: 1rem;
  border-radius: 10px;
}

blockquote {
  font-style: italic;
  color: var(--tagline-color);
  border-left: 3px solid var(--accent-color);
  padding-left: 1rem;
  margin-top: 0.5rem;
}

code {
  background: #444;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  color: #fff;
  font-size: 0.9rem;
}

.grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.tip-card {
  background-color: var(--card-bg);
  color: var(--text-color);
  padding: 1rem;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tip-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}

.tip-card h3 {
  color: var(--section-header-color);
  margin-bottom: 0.5rem;
}

.tip-card p {
  font-size: 0.95rem;
  line-height: 1.4;
  text-align: left;
}



/* About section*/
.about-section h2 {
  color: var(--section-header-color);
  margin-bottom: 0.5em;
}

.about-section {
  margin: 2em auto;
  max-width: 800px;
  padding: 0 1.5em;
}

.about-section p,
.about-section ul {
  line-height: 1.6;
}

/* Quiz section */
.quiz-section {
  padding: 2rem;
  text-align: center;
}

/* Question text */
.quiz-question {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

/* Answer buttons container */
.btn-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  max-width: 500px;
  margin: 0 auto 1rem;
}

/* Submit + Next buttons layout */
.quiz-controls {
  margin-top: 1rem;
  display: flex;
  justify-content: center;
}

.button-row {
  display: flex;
  gap: 1rem;
}

/* Question counter */
#question-counter {
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-color);
}

/* Answer feedback */
.correct {
  background-color: #4caf50;
  color: #fff !important;
}

.wrong {
  background-color: #f44336;
  color: #fff !important;
}

/* Hidden elements */
.hide {
  display: none;
}

/* Explanation box */
#explanation-container {
  margin-top: 1rem;
  text-align: left;
}

/* Review answer list at the end */
#review-list {
  list-style: none;
  padding-left: 0;
}

#review-list li {
  margin-bottom: 1rem;
  padding: 1rem;
  border: 1px solid var(--border-color);
  border-radius: 8px;
}


/* For download page*/
.download-cta {
  text-align: center;
  margin-bottom: 3rem;
}

.download-cta h2 {
  font-size: 2rem;
  color: var(--section-header-color);
  margin-bottom: 0.5rem;
}

.download-cta p {
  font-size: 1.1rem;
  color: var(--learn-text);
  margin-bottom: 1.5rem;
}

.download-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.small-note {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--footer-subtext);
}

.comparison-table {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 0.5rem;
  margin-top: 1rem;
}

.table-row {
  display: contents;
}

.table-header div {
  font-weight: bold;
  color: var(--section-header-color);
  padding: 0.5rem;
  border-bottom: 2px solid var(--accent-color);
}

.table-row div {
  padding: 0.75rem 0.5rem;
  background-color: var(--card-bg);
  border-bottom: 1px solid var(--grid-color);
}

.screenshot {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0,0,0,0.2);
}

.feature-section {
  padding: 4rem 0;
}

.feature-row {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
  justify-content: space-between;
}

.feature-image, .feature-text {
  flex: 1 1 45%;
}

.feature-text h2 {
  font-size: 1.75rem;
  color: var(--section-header-color);
  margin-bottom: 1rem;
}

.feature-text p {
  font-size: 1.1rem;
  color: var(--learn-text);
  line-height: 1.6;
}

@media (max-width: 768px) {
  .feature-row{
    flex-direction: column;
    text-align: center;
  }

  .feature-image, .feature-text {
    flex: 1 1 100%;
  }
}

/* Landing page stuff*/
.module-section {
  padding: 4rem 2rem;
  text-align: center;
  color: var(--text-color);
}

.intro-text {
  max-width: 700px;
  margin: 0 auto;
  font-size: 1.2rem;
  color: var(--tagline-color);
}

.stats-grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2rem;
  margin-top: 2rem;
}

.stat-card {
  background: var(--card-bg);
  padding: 2rem;
  border-radius: 12px;
  width: 250px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
  transition: transform 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-6px);
}

.stat-number {
  font-size: 3rem;
  font-weight: bold;
  color: var(--accent-color);
}

.flip-card-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin-top: 2rem;
}

.flip-card {
  background-color: transparent;
  width: 240px;
  height: 300px;
  perspective: 1000px;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 1s;
  transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner {
  transform: rotateY(180deg);
}

.flip-card-front, .flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 12px;
  backface-visibility: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
  background: var(--card-bg);
  color: var(--text-color);
}

.flip-card-front {
  font-size: 1.2rem;
  font-weight: bold;
}

.flip-card-back {
  transform: rotateY(180deg);
  flex-direction: column;
}

.flip-card-back p {
  font-size: 0.95rem;
  margin-bottom: 1rem;
}

.flip-card-back .btn {
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
}

/* download section */
.download-section {
  text-align: center;
  padding: 3rem 1rem;
  background: var(--card-bg);
  color: var(--text-color);
  border-radius: 12px;
  max-width: 700px;
  margin: 3rem auto;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.download-section h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.download-section p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

.download-section .btn.cta-button {
  background-color: var(--btn-bg);
  color: var(--btn-text);
  padding: 0.8rem 2.5rem;
  font-size: 1.2rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.download-section .btn.cta-button:hover {
  background-color: var(--btn-bg-hover);
}
