/*  
===========================================================
 QUICKPLATE MASTER STYLESHEET  
 Written clean, simple, and future-proof so I understand
 every detail when I come back to this project later.

 This file controls:
 - All typography (Fredoka + Kalam)
 - Responsive backgrounds for devices
 - Glassmorphism overlay
 - Custom sketch borders
 - Fade-in animations
 - Full responsive logo system
===========================================================
*/


/* -----------------------------------------------------------
   IMPORTED FONTS
   Fredoka → For strong, clean headings
   Kalam   → For the handwritten aesthetic everywhere else
----------------------------------------------------------- */

@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Kalam:wght@300;400;700&display=swap');


/* -----------------------------------------------------------
   ROOT VARIABLES (DEFAULT = Mobile/Tablet theme)
   - Orange accent colours for doodle backgrounds
   - These values change on laptop/desktop via media queries
----------------------------------------------------------- */

:root {
  --accent: #FF7A00;
  --accent-soft: rgba(255, 122, 0, 0.15);
  --line-color: #FF7A00;
  --checkmark-color: #FF7A00;
  --link-color: #FF7A00;

  --sketch-border: 2px solid #000;
  --sketch-shadow: 4px 4px 0 rgba(0, 0, 0, 0.2);
}



/* -----------------------------------------------------------
   BASIC GLOBAL STYLE RESET
----------------------------------------------------------- */

* {
  font-family: "Kalam", cursive;
  color: #000;
  box-sizing: border-box;  /* Prevents layout issues */
}

h1, h2, h3, h4, h5, h6 {
  font-family: "Fredoka", sans-serif !important;
  font-weight: 700;
  margin: 0;
}

a {
  color: var(--link-color);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}



/* -----------------------------------------------------------
   PAGE STRUCTURE
   - Forces footer to the bottom
   - Makes glassmorphism cover entire page
----------------------------------------------------------- */

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}

/*  
   The glass-morphism container:
   - Uses background image based on device size
   - Uses ::before for the blur overlay
   - Uses z-index -1 to ensure content is above the glass
*/
body.glass-morphism {
  display: flex;
  flex-direction: column;
  min-height: 100vh;

  background-image: url('../images/mobile-tablets.png'); /* Default (mobile/tablet) */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;

  padding: 15px;
  position: relative;
}

.main-content {
  flex: 1; /* Push footer to bottom */
}



/* -----------------------------------------------------------
   GLASSMORPHISM EXPLAINED (MY OWN WORDS)
   I use ::before to create a separate layer behind everything.
   Why?
   - It gives depth without blurring the text
   - backdrop-filter blur works only on the ::before layer
   Z-index trick:
   - ::before is -1 → sits behind page content
   - Background image is still underneath ::before
----------------------------------------------------------- */

body.glass-morphism::before {
  content: "";
  position: fixed;
  inset: 0;

  /* Transparent white layer + blur */
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);

  /* Soft lighting / glass reflection */
  border: 1px solid rgba(255,255,255,0.3);
  box-shadow:
    0 8px 30px rgba(0,0,0,0.20),
    inset 0 1px rgba(255,255,255,0.4),
    inset 0 -1px rgba(255,255,255,0.2);

  z-index: -1;
  pointer-events: none;
}



/* -----------------------------------------------------------
   HEADER + RESPONSIVE LOGO
----------------------------------------------------------- */

.header {
  margin-bottom: 20px;
  padding: 10px 0;
}

.logo-img {
  display: block;
  height: auto;
}

/* Logo size per device */
@media (max-width: 767px) {
  .logo-img { width: 85px; }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .logo-img { width: 110px; }
}

@media (min-width: 1024px) and (max-width: 1439px) {
  .logo-img { width: 135px; }
}

@media (min-width: 1440px) {
  .logo-img { width: 160px; }
}



/* -----------------------------------------------------------
   PAGE TITLES / CONTENT HEADINGS
----------------------------------------------------------- */

.title {
  font-size: 2.1rem;
  margin-bottom: 15px;
  line-height: 1.2;
}

.subtitle {
  font-size: 1.3rem;
  margin-bottom: 20px;
}

.cta-section {
  margin-top: 10px;
}



/* -----------------------------------------------------------
   SKETCH BORDER SYSTEM (MY OWN HAND-DRAWN EFFECT)
   This is the signature look of the Quickplate UI.

   How it works:
   - The main border uses a solid black line
   - ::before draws a second rotated border to look hand-drawn
   - Slight opacity and rotation create the "sketch" illusion
----------------------------------------------------------- */

.sketch-border {
  border: var(--sketch-border);
  position: relative;
  background: rgba(255,255,255,0.95);
  box-shadow: var(--sketch-shadow);
}

/* The second sloppy border */
.sketch-border::before {
  content: "";
  position: absolute;
  inset: -2px;
  border: 2px solid #000;
  opacity: 0.55;
  transform: rotate(-1deg);
  pointer-events: none;
}

/* Extra decorative circle sometimes used behind form headings */
.hand-drawn-circle {
  position: absolute;
  top: -18px;
  left: -18px;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  border: 2px dashed #000;
  opacity: 0.25;
  z-index: -1;
}



/* -----------------------------------------------------------
   BUTTONS (Sketch Style)
----------------------------------------------------------- */

.sketch-button {
  background: #fff;
  border: 2px solid #000;
  padding: 8px 15px;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 3px 3px 0 rgba(0,0,0,0.2);
  transition: all 0.2s ease;
}

.sketch-button:hover {
  background: var(--accent-soft);
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 5px 5px 0 rgba(0,0,0,0.25);
}

.sketch-button:active {
  transform: translateY(1px);
  box-shadow: 2px 2px 0 rgba(0,0,0,0.25);
}



/* -----------------------------------------------------------
   FORM ELEMENTS
----------------------------------------------------------- */

.sketch-form {
  padding: 20px;
  height: 100%;
}

.form-input {
  width: 100%;
  padding: 10px;
  border: 2px solid #000;
  background: rgba(255,255,255,0.85);
  margin-bottom: 15px;
  transition: all 0.25s ease;
}

.form-input:focus {
  border-color: var(--accent);
  background: #fff;
  box-shadow: 3px 3px 0 rgba(0,0,0,0.2);
}

.checkbox-container {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 15px;
}



/* -----------------------------------------------------------
   FEATURE LIST ANIMATION
----------------------------------------------------------- */

.feature-list {
  list-style: none;
  padding-left: 0;
}

.feature-list li {
  position: relative;
  margin-bottom: 14px;
  padding-left: 30px;
  font-size: 1.1rem;

  opacity: 0;
  transform: translateY(10px);
  animation: fadeInUp 0.7s ease-out forwards;
}

/* Staggered animation delay for each list item */
.feature-list li:nth-child(2) { animation-delay: 0.12s; }
.feature-list li:nth-child(3) { animation-delay: 0.18s; }
.feature-list li:nth-child(4) { animation-delay: 0.24s; }
.feature-list li:nth-child(5) { animation-delay: 0.30s; }

/* Custom checkmark */
.feature-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  font-size: 1.3rem;
  font-weight: bold;
  color: var(--checkmark-color);
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}



/* -----------------------------------------------------------
   DIVIDER "SKETCH LINE"
----------------------------------------------------------- */

.sketch-line {
  height: 2px;
  background: var(--line-color);
  margin: 15px 0;
}



/* -----------------------------------------------------------
   FOOTER
----------------------------------------------------------- */

.footer {
  text-align: center;
  margin-top: 30px;
  padding-bottom: 20px;
}



/* -----------------------------------------------------------
   TECH STACK ICONS
----------------------------------------------------------- */

.tech-stack {
  text-align: center;
  margin: 20px 0 10px;
}

.tech-icons {
  display: flex;
  justify-content: center;
  gap: 25px;
  flex-wrap: wrap;
}

.tech-item img {
  width: 50px;
  height: 50px;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.tech-item img:hover {
  transform: scale(1.1);
}

.tech-item span {
  font-size: 0.8rem;
  font-weight: 700;
}



/* -----------------------------------------------------------
   RESPONSIVE BACKGROUNDS
   IMPORTANT:
   CSS file lives in assets/css/
   Images live in assets/images/
   Therefore the correct path is ../images/
----------------------------------------------------------- */

/* ---- Mobile ---- */
@media (max-width: 767px) {
  body.glass-morphism {
    background-image: url('../images/mobile-tablets.png');
  }
}

/* ---- Tablet ---- */
@media (min-width: 768px) and (max-width: 1023px) {
  body.glass-morphism {
    background-image: url('../images/mobile-tablets.png');
  }
}

/* ---- Laptop ---- */
@media (min-width: 1024px) and (max-width: 1439px) {
  body.glass-morphism {
    background-image: url('../images/desktop-and-laptop.png');
  }

  /* Switch to black theme */
  :root {
    --accent: #000;
    --accent-soft: rgba(0,0,0,0.1);
    --line-color: #000;
    --checkmark-color: #000;
    --link-color: #000;
  }
}

/* ---- Desktop ---- */
@media (min-width: 1440px) {
  body.glass-morphism {
    background-image: url('../images/desktop-and-laptop.png');
  }

  :root {
    --accent: #000;
    --accent-soft: rgba(0,0,0,0.1);
    --line-color: #000;
    --checkmark-color: #000;
    --link-color: #000;
  }
}



/* -----------------------------------------------------------
   END OF FILE — PERSONAL ATTRIBUTION
----------------------------------------------------------- */
/*
This stylesheet was rebuilt by Sadik (me):
- I used ChatGPT for logic, structure, and explanations
- Claude helped me sketch early layout ideas
- Copilot assisted with autocomplete
This is a rebuild of my older SaaS UI for my class + portfolio.
*/
