/* ============================= */
/* Base Reset & Font Styling    */
/* ============================= */
body {
  font-family: 'Quicksand', sans-serif;
  background-color: #fefefe;
  color: #333;
  margin: 0;
  padding: 0;
  line-height: 1.6;
}

/* ============================= */
/* Header Design                */
/* ============================= */
header {
  position: relative;
  background-image: url('https://duckunchi.github.io/DTI/docs/assets/images/background.png');
  background-size: cover;
  background-position: center;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
  overflow: hidden;
}

.header-content {
  position: relative;
  z-index: 1;
  padding: 20px;
  max-width: 800px;
  width: 100%;
  backdrop-filter: blur(3px);
  background-color: rgba(0, 0, 0, 0.2);
  border-radius: 12px;
}

h1 {
  font-family: 'Montserrat', sans-serif;
  font-size: 4rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 4px;
  margin-bottom: 20px;
  text-shadow: 3px 3px 5px rgba(0, 0, 0, 0.5);
}

p {
  font-size: 1.3rem;
  font-weight: 500;
  margin-bottom: 30px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
}

nav ul {
  list-style: none;
  padding: 0;
  display: inline-flex;
  margin-top: 20px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 30px;
  backdrop-filter: blur(6px);
}

nav ul li {
  margin: 0 20px;
}

nav ul li a {
  text-decoration: none;
  color: #fff;
  font-weight: 600;
  padding: 10px 20px;
  font-size: 1.1rem;
  text-transform: uppercase;
  transition: background 0.3s ease;
  display: block;
}

nav ul li a:hover {
  background-color: rgba(255, 255, 255, 0.4);
  color: #d36084;
}

/* ============================= */
/* Header Gradient Overlay       */
/* ============================= */
header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.3));
  z-index: 0;
}

/* ============================= */
/* Section Headings             */
/* ============================= */
h2 {
  font-size: 1.4rem;
  color: #d36084;
  margin-top: 40px;
  text-align: center;
}

/* ============================= */
/* Intro Section (About Me)     */
/* ============================= */
.intro {
  padding: 20px;
  max-width: 700px;
  margin: auto;
  text-align: center;
}

/* ============================= */
/* Social Links Section         */
/* ============================= */
.social {
  text-align: center;
  margin-top: 30px;
}

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

.social ul li {
  margin: 8px 0;
}

.social ul li a {
  text-decoration: none;
  font-weight: 600;
  color: #d07b95;
}

.social ul li a:hover {
  text-decoration: underline;
}

/* ============================= */
/* Buttons (Audio & Copy)       */
/* ============================= */
button {
  background-color: #eda8bd;
  border: none;
  color: white;
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 1rem;
  margin: 30px auto;
  display: block;
  cursor: pointer;
  transition: background 0.3s ease;
}

button:hover {
  background-color: #df6b8c;
}

/* ============================= */
/* Grid Layout for Visual Cards */
/* ============================= */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 15px;
  padding: 30px 10%;
  margin: 20px 0;
}

.card {
  display: block;
  background: #ffeaf0;
  border-radius: 12px;
  text-align: center;
  padding: 15px;
  text-decoration: none;
  font-weight: 600;
  color: #c25b7e;
  transition: background 0.3s ease;
  box-shadow: 0 3px 5px rgba(0, 0, 0, 0.1);
}

.card:hover {
  background: #ffc2d0;
}

/* ============================= */
/* About Preview Styling        */
/* ============================= */
.about-preview {
  padding: 20px;
  max-width: 700px;
  margin: auto;
}

.about-preview ul {
  list-style: none;
  padding: 0;
  margin: 0;
  line-height: 1.8;
}

.about-preview ul li::before {
  content: "✧ ";
  color: #edb2b9;
}

/* ============================= */
/* Footer Styling               */
/* ============================= */
footer {
  background-color: #f5eded;
  text-align: center;
  padding: 10px;
  font-size: 0.9rem;
  border-top: 2px solid #e6dfdf;
  margin-top: 40px;
}

/* ============================= */
/* Codes Section                */
/* ============================= */
.codes {
  padding: 30px 10%;
  background-color: #fff4f7;
  text-align: center;
}

.codes h2 {
  color: #d36084;
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.code-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 15px;
}

.code-card {
  background-color: #ffeaf0;
  border-radius: 12px;
  padding: 15px;
  font-weight: 600;
  color: #c25b7e;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s ease, background 0.3s ease;
  position: relative;
}

.code-card:hover {
  background-color: #ffc2d0;
  transform: scale(1.03);
}

/* ============================= */
/* Fancy Copy Button Styling    */
/* ============================= */
.copy-btn {
  margin-top: 12px;
  background: linear-gradient(135deg, #f9b6cc, #f7a6c1);
  border: none;
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(247, 166, 193, 0.4);
  position: relative;
  overflow: hidden;
}

.copy-btn:hover {
  background: linear-gradient(135deg, #f7a6c1, #f48fb1);
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(244, 143, 177, 0.5);
}

.copy-btn::after {
  content: "✨";
  position: absolute;
  top: -8px;
  right: -8px;
  font-size: 1rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.copy-btn:hover::after {
  opacity: 1;
}

/* ============================= */
/* Gallery Grid Layout          */
/* ============================= */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  padding: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.gallery-grid .card {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
  background-color: white;
}

.gallery-grid .card:hover {
  transform: scale(1.03);
}

.gallery-grid img {
  width: 100%;
  display: block;
  object-fit: cover;
}

/* ============================= */
/* Tutorial Page Layout         */
/* ============================= */
.how-to {
