/* ============================================
   ALF'S CYCLES - MAIN STYLESHEET3
   ============================================ */

/* ============================================
   MEYER RESET v2.0
   ============================================ */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
}

article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
  display: block;
}

body {
  line-height: 1;
}

ol, ul {
  list-style: none;
}

blockquote, q {
  quotes: none;
}

blockquote:before, blockquote:after,
q:before, q:after {
  content: '';
  content: none;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

/* ============================================
   CSS VARIABLES
   ============================================ */
:root {
  --accent-blue: #1a44ff;
  --text-white: #ffffff;
  --text-gray: #a0a0a0;
  --gray: #888;
  --bg-card: #0d0d12;
  --bg-dark: #0d0d12;
  --border-subtle: rgba(255, 255, 255, 0.05);
  --bg-overlay: rgba(255, 255, 255, 0.02);
  --shadow-blue: rgba(26, 68, 255, 0.2);
  --gradient-blue: rgba(26, 68, 255, 0.1);
  --accent: #1a31ff;
  --text: #fff;
  --border: #222;
}

/* ============================================
   BASE STYLES
   ============================================ */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: #000;
  color: var(--text-white);
  font-family: "Syne", sans-serif;
  font-size: 16px;
  line-height: 1.7;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: "Alumni Sans", sans-serif;
  line-height: 1.2;
}

span {
  font-family: "Alumni Sans", sans-serif;
}

p, a, li, input, textarea, button {
  font-family: "Syne", sans-serif;
  line-height: 1.7;
}

strong {
  font-family: "Syne", sans-serif;
}

/* ============================================
   HEADER NAVIGATION (ALL PAGES)
   ============================================ */
header {
  background: linear-gradient(to right, #151b2d 0%, #233048 50%, #1a2440 100%);
  padding: 0.8rem 2.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: 10px;
  margin: 1.5rem;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.6);
  border: 1px solid var(--border-subtle);
}

header > a {
  display: flex;
  text-decoration: none;
  transition: opacity 0.3s;
}

header > a:hover {
  opacity: 0.85;
}

header img {
  height: 50px;
  width: auto;
}

header figure {
  margin: 0;
}

header nav ul {
  display: flex;
  gap: 2rem;
}

header nav a {
  color: #e8e8e8;
  text-decoration: none;
  padding: 0.6rem 1.6rem;
  font-size: 1rem;
  transition: all 0.25s;
  display: block;
  border-radius: 6px;
}

header nav a:hover {
  color: var(--text-white);
  background-color: rgba(255, 255, 255, 0.08);
}

/* ============================================
   HOME PAGE STYLES
   ============================================ */

/* Hero Section */
main > div:first-child {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4rem;
}

main > div:first-child > div {
  width: 100%;
  max-width: 1200px;
  position: relative;
}

main > div:first-child figure {
  position: relative;
  display: flex;
  justify-content: center;
}

main > div:first-child figure > img {
  width: 100%;
  min-height: 80%;
}

main > div:first-child aside {
  position: absolute;
  font-size: 0.8rem;
  max-width: 150px;
  line-height: 1.4;
}

main > div:first-child aside span {
  display: block;
  width: 60px;
  height: 1px;
  background: var(--text-white);
  margin-bottom: 10px;
  position: relative;
}

main > div:first-child aside span::after {
  content: '';
  position: absolute;
  width: 6px;
  height: 6px;
  background: var(--text-white);
  border-radius: 50%;
  right: -3px;
  top: -3px;
}

main > div:first-child aside:first-of-type {
  top: 5%;
  left: 25%;
}

main > div:first-child aside:last-of-type {
  bottom: 20%;
  right: 15%;
}

main > div:first-child > div > div:last-child {
  position: absolute;
  bottom: 10%;
  left: 0;
}

main > div:first-child h1 {
  font-size: 3.5rem;
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 1rem;
}

/* Common Section Styles */

main > section {
  padding: 2rem 4rem;
  position: relative;
}

main > section h2 {
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
  z-index: 2;
}

main > section h3 {
  font-size: 7rem;
  font-weight: 600;
  margin-bottom: 2rem;
  line-height: .8;
}

main > section h4 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

/* Background Text */

main > section > span:first-child {
  position: absolute;
  font-weight: 900;
  white-space: nowrap;
  z-index: 1;
  pointer-events: none;
}

/* Experts Section */

main > section:nth-child(2) > span:first-child {

  top: -11%;
  left: 50%;
  padding-bottom: 20px;
  transform: translateX(-50%);
  font-size: 5rem;
  -webkit-text-stroke: 1px rgba(26, 68, 255, 0.3);
  color: transparent;
  width: 100%;
  text-align: center;
}

main > section:nth-child(2) > div {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  max-width: 1100px;
  margin: 0 auto;
  align-items: center;
  z-index: 2;
}

main > section:nth-child(2) figure img {
  width: 100%;
  border-radius: 4px;
  padding-top: 20px;
}

main > section:nth-child(2) p {
  font-size: 1.05rem;
  line-height: 1.8;
}

/* What We Do Section */

main > section:nth-child(3) > span:last-of-type {
  position: absolute;
  top: -0.5%;
  left: 50%;
  padding-bottom: 20px;
  transform: translateX(-50%);
  font-size: 5rem;
  -webkit-text-stroke: 1px rgba(26, 68, 255, 0.3);
  color: transparent;
  width: 100%;
  text-align: center;
}

main > section:nth-child(3) > div {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  z-index: 2;
}

main > section:nth-child(3) > div > figure img {
  width: 20rem;
}

main > section:nth-child(3) > div > div > p {
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 2rem;
}

main > section:nth-child(3) > div > div > figure {
  display: flex;
  align-items: center;
  gap: 2rem;
  background: var(--bg-overlay);
  padding: 1rem;
  border-radius: 8px;
}

main > section:nth-child(3) > div > div > figure img {
  max-width: 500px;
  height: auto;
  object-fit: fill;
  border-radius: 4px;
}

main > section:nth-child(3) figcaption {
  font-weight: 700;
  font-size: 0.95rem;
}

/* Products Section */

main > section:nth-child(4) > span:first-child {
  top: 16%;
  left: 50%;
  margin-top: 5px;
  padding-bottom: 10%;
  transform: translate(-50%, -50%);
  font-size: 7rem;
  color: rgba(255, 255, 255, 0.03);
}

main > section:nth-child(4) nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 250px);
  gap: 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
  z-index: 2;
}

main > section:nth-child(4) figure {
  position: relative;
  overflow: hidden;
  background: var(--bg-card);
}

main > section:nth-child(4) figure:first-child {
  grid-row: span 2;
}

main > section:nth-child(4) figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6;
  transition: opacity 0.3s;
}

main > section:nth-child(4) figure:hover img {
  opacity: 0.8;
}

main > section:nth-child(4) figcaption {
  position: absolute;
  top: 20px;
  left: 20px;
  font-weight: 700;
  font-size: 0.95rem;
}

/* Why Choose Section */

main > section:nth-child(5) > p {
  text-align: center;
  font-size: 1.1rem;
  margin-bottom: 3rem;
  color: var(--text-gray);
}

main > section:nth-child(5) ol {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  z-index: 2;
}

main > section:nth-child(5) li {
  background: linear-gradient(90deg, var(--gradient-blue) 0%, transparent 100%);
  padding: 1.5rem 2rem;
  display: flex;
  align-items: center;
  gap: 2rem;
  border-left: 2px solid var(--accent-blue);
  transition: background 0.3s;
}

main > section:nth-child(5) li:hover {
  background: linear-gradient(90deg, rgba(26, 68, 255, 0.15) 0%, transparent 100%);
}

main > section:nth-child(5) li span:first-child {
  font-size: 2rem;
  font-weight: 900;
  -webkit-text-stroke: 1px var(--accent-blue);
  color: transparent;
  flex-shrink: 0;
}

main > section:nth-child(5) li span:last-child {
  font-size: 1.5rem;
  line-height: 1.6;
}

/* Visit Section */

main > section:nth-child(6) article {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 4rem;
  max-width: 1100px;
  margin: 0 auto;
}

main > section:nth-child(6) figure img {
  width: 100%;
  filter: grayscale(1);
  opacity: 0.8;
  transform: translateY(-50px);
}

main > section:nth-child(6) article > div > div {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

main > section:nth-child(6) section p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-gray);
}

/* ============================================
   CONTACT PAGE STYLES
   ============================================ */

/* Contact Section Wrapper */

main > section:nth-of-type(1) {
  padding: 0 60px 0px;
}

main > section:nth-of-type(1) > div {
  background: #0a0a0a;
  border: 1px solid #151515;
  border-radius: 15px;
  overflow: hidden;
  min-height: 350px;
 padding: 30px;
  text-align: left;
}

/* Form Side */

main > section:nth-of-type(1) > div > div {
  flex: 1;
  padding: 50px;
}

main > section:nth-of-type(1) > div > div h2 {
  font-family: 'Alumni Sans', sans-serif;
  font-size: 32px;
  margin-bottom: 30px;
}

form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

fieldset {
  border: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 15px;
}

input, textarea {
  background: #121212;
  border: 1px solid #222;
  color: #fff;
  padding: 15px;
  border-radius: 5px;
  font-family: 'Syne', sans-serif;
  width: 100%;
}

textarea {
  height: 120px;
  resize: none;
}

button {
  background: linear-gradient(90deg, #050515 0%, #151535 100%);
  border: 1px solid #222;
  color: #fff;
  padding: 15px;
  border-radius: 5px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 14px;
  margin-top: 10px;
  font-family: 'Syne', sans-serif;
}

/* Image Side */

aside {
  flex: 1;
  position: relative;
}

aside img {
  width: 100%;
  object-fit: cover;
  opacity: 0.5;
}

aside::after {
  content: '';
  position: absolute;
  inset: 0;
}

/* ============================================
   SERVICE PAGE STYLES
   ============================================ */

/* Services Section */


main > section:first-of-type h1 {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 2rem;
  font-weight: 700;
}

main > section:first-of-type > div {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  max-width: 900px;
  margin: 0 auto 3rem;
  align-items: center;
  padding-top: 20px;
}

main > section:first-of-type figure {
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
}

main > section:first-of-type figure img {
  width: 100%;
  height: auto;
  opacity: 0.7;
}

main > section:first-of-type > div > div p {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text-gray);
}

main > section:first-of-type h2 {
  font-size: 2.2rem;
  text-align: center;
  margin: 3rem 0 2rem;
  font-weight: 700;
}

main > section:first-of-type > section {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

main > section:first-of-type article {
  background: linear-gradient(135deg, rgba(26, 68, 255, 0.08) 0%, rgba(26, 68, 255, 0.02) 100%);
  border: 1px solid rgba(26, 68, 255, 0.2);
  padding: 2rem;
  border-radius: 8px;
  transition: all 0.3s;
}

main > section:first-of-type article:hover {
  border-color: rgba(26, 68, 255, 0.4);
  background: linear-gradient(135deg, rgba(26, 68, 255, 0.12) 0%, rgba(26, 68, 255, 0.05) 100%);
}

main > section:first-of-type article h3 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  color: var(--text);
}

main > section:first-of-type article p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-gray);
  margin-bottom: 1.5rem;
}

main > section:first-of-type article ul {
  list-style: none;
  padding: 0;
}

main > section:first-of-type article li {
  font-size: 0.9rem;
  color: var(--text-gray);
  margin-bottom: 0.8rem;
  padding-left: 1.5rem;
  position: relative;
}

main > section:first-of-type article li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: bold;
}

/* Visit Section on Service Page */


main > section:nth-of-type(2) {
  gap: 3rem;
  max-width: 1200px;
  margin: auto;
  padding: 3rem 2rem;
  align-items: center;
}

main > section:nth-of-type(2) figure {
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
}

main > section:nth-of-type(2) figure img {
  width: 100%;
  height: auto;
  opacity: 0.7;
}

main > section:nth-of-type(2) h2 {
  font-size: 2.2rem;
  line-height: 1.1;
  margin-bottom: 2rem;
  font-weight: 700;
  text-transform: uppercase;
}

main > section:nth-of-type(2) article {
  margin-bottom: 2rem;
}

main > section:nth-of-type(2) article h3 {
  font-size: 1.1rem;
  margin-bottom: 0.8rem;
  text-transform: uppercase;
  font-weight: 600;
}

main > section:nth-of-type(2) article p {
  font-size: 0.95rem;
  color: var(--text-gray);
  line-height: 1.8;
}

/* ============================================
   ABOUT PAGE STYLES
   ============================================ */

/* About Page Navigation */

main > nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 30px 60px;
}

main > nav strong {
  font-family: 'Alumni Sans', sans-serif;
  font-size: 24px;
  letter-spacing: 1px;
}

main > nav ul {
  display: flex;
  list-style: none;
  gap: 30px;
}

main > nav a {
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  text-transform: uppercase;
  opacity: 0.8;
}

nav img {
  height: 50px;
  width: auto;
}


/* Main Sections on About Page */

main section {
  position: relative;
  text-align: left;
}

main data {
  top: 12%;
  left: 50%;
  transform: translateX(-50%);
  font-size: 10rem;
  -webkit-text-stroke: 1px rgba(26, 68, 255, 0.3);
  color: transparent;
  width: 100%;
  text-align: center;
  white-space: nowrap;
  pointer-events: none;
  letter-spacing: 5px;
}

main h2 {
  font-family: "Alumni Sans", sans-serif;
  font-size: 56px;
  text-transform: uppercase;
  position: relative;
  margin-bottom: 60px;
  letter-spacing: 1px;
}

/* Our Story on About Page */

figcaption {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
  text-align: left;
}

figcaption img {
  width: 100%;
  border-radius: 4px;
}

figcaption p {
  font-size: 15px;
  line-height: 1.8;
}

/* Values List on About Page */

ol {
  list-style: none;
  padding: 0;
  max-width: 1000px;
  margin: 0 auto;
  text-align: left;
  position: relative;
}

ol li {
  background: linear-gradient(90deg, #0a0a15 0%, #000 100%);
  border: 1px solid #111;
  padding: 35px 50px;
  margin-bottom: 25px;
  display: flex;
  align-items: center;
  gap: 40px;
}

mark {
  background: none;
  font-family: "Alumni Sans", sans-serif;
  font-size: 48px;
  color: transparent;
  -webkit-text-stroke: 1px #222;
}

ol p {
  margin: 0;
  font-size: 18px;
}

/* ============================================
   FOOTER STYLES (ALL PAGES)
   ============================================ */

footer {
  padding: 80px 60px 40px;
}

footer > section:first-of-type {
  display: flex;
  gap: 60px;
  margin-bottom: 60px;
}

footer figure {
  flex: 1;
  margin: 0;
}

footer figure img {
  width: 100%;
  max-width: 350px;
}

footer > section:first-of-type > section {
  flex: 2;
}

footer h2 {
  font-family: 'Alumni Sans', sans-serif;
  font-size: 75px;
  line-height: 0.9;
  text-transform: uppercase;
  margin: 0 0 40px 0;
}

footer > section:first-of-type > section > section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

footer h3 {
  font-size: 20px;
  margin-bottom: 10px;
}

footer p {
  font-size: 14px;
  color: #888;
  line-height: 1.6;
}

/* Footer Bottom */

footer > section:last-of-type {
  border-top: 1px solid #111;
  padding-top: 40px;
  text-align: center;
}

footer > section:last-of-type p {
  margin-bottom: 30px;
  color: #fff;
}

footer > section:last-of-type nav {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 30px;
}

footer > section:last-of-type nav a {
  color: #fff;
  text-decoration: none;
  border: 1px solid #333;
  padding: 8px 25px;
  border-radius: 20px;
  font-size: 13px;
}

small {
  color: rgb(105, 105, 105);
  font-size: 12px;
}

/* ============================================
   RESPONSIVE DESIGN
   Mobile-First Approach
   ============================================ */

/* Desktop Large (1024px+) */

@media (max-width: 1024px) {
  header {
    padding: 1rem 2rem;
  }

  header img {
    height: 45px;
  }

  header nav a {
    padding: 0.6rem 1.2rem;
    font-size: 0.95rem;
  }

  main > section {
    padding: 2rem 2.5rem;
  }

  /* Contact Page */

  main > section:nth-of-type(1) {
    padding: 0 40px 80px;
  }

  main > section:nth-of-type(1) > div > div {
    padding: 40px;
  }

  /* About Page */

  body > aside {
    padding: 0 60px;
  }

  body > aside > section {
    height: 400px;
  }

  main section {
    padding: 80px 60px;
  }
}

/* Tablet (768px - 1023px) */

@media (max-width: 1023px) and (min-width: 768px) {

  /* Service Page Tablet */

  main > section:first-of-type {
    padding: 2.5rem 2rem;
  }

  main > section:first-of-type h1 {
    font-size: 2.2rem;
    margin-bottom: 2rem;
  }

  main > section:first-of-type h2 {
    font-size: 2rem;
    margin: 2.5rem 0 2rem;
  }

  main > section:first-of-type > div {
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2.5rem;
  }

  main > section:first-of-type > div > div p {
    font-size: 1rem;
    line-height: 1.8;
  }

  main > section:first-of-type > section {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.8rem;
  }

  main > section:first-of-type article {
    padding: 1.8rem;
  }

  main > section:nth-of-type(2) {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    margin: 2.5rem auto;
    padding: 2.5rem 2rem;
  }

  main > section:nth-of-type(2) h2 {
    font-size: 2.5rem;
  }

  footer {
    padding: 3rem 2rem;
  }

  footer h2 {
    font-size: 3.5rem;
    margin-bottom: 2rem;
  }

  footer > section:first-of-type {
    flex-direction: column;
    gap: 3rem;
  }

  footer > section:first-of-type > section > section {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  footer nav ul {
    gap: 0.8rem;
  }

  footer nav a {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
  }
}

/* Mobile (480px - 767px) */

@media (max-width: 768px) {

  /* Header */

  header {
    flex-direction: column;
    gap: 1.5rem;
    padding: 1.5rem;
    margin: 1rem;
  }

  header nav ul {
    flex-direction: row;
    flex-wrap: wrap;
    width: 100%;
    justify-content: center;
    gap: 0.8rem;
  }

  header nav a {
    padding: 0.7rem 1.2rem;
    width: auto;
    font-size: 0.9rem;
  }

  /* Home Page */

  main > div:first-child {
    padding: 1rem 2rem;
  }

  main > div:first-child h1 {
    font-size: 2.8rem;
  }

  main > div:first-child p {
    font-size: 0.95rem;
    line-height: 1.6;
  }

  main > div:first-child aside {
    font-size: 0.7rem;
    max-width: 130px;
  }

  main > section {
    padding: 2.5rem 2rem;
  }

  main > section h2 {
    font-size: 2.2rem;
    margin-bottom: 2.5rem;
  }

  main > section:nth-child(2) > div,
  main > section:nth-child(3) > div {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  main > section:nth-child(2) p {
    font-size: 1rem;
    line-height: 1.8;
  }

  main > section:nth-child(3) > div > figure img {
    width: 80%;
    margin-left: 0;
  }

  main > section:nth-child(3) > div > div > p {
    font-size: 1rem;
    line-height: 1.8;
  }

  main > section:nth-child(3) > div > div > figure {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
  }

  main > section:nth-child(3) > div > div > figure img {
    width: 100%;
    max-width: 100%;
  }

  main > section:nth-child(4) nav {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto;
    gap: 1.2rem;
  }

  main > section:nth-child(4) figure:first-child {
    grid-row: span 1;
  }

  main > section:nth-child(5) li {
    padding: 1.2rem 1.5rem;
    gap: 1.5rem;
  }

  main > section:nth-child(5) li span:first-child {
    font-size: 1.8rem;
  }

  main > section:nth-child(5) li span:last-child {
    font-size: 1rem;
  }

  main > section:nth-child(6) article {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  main > section > span:first-child {
    font-size: 4rem !important;
  }

  /* Contact Page */

  main > section:nth-of-type(1) {
    padding: 0 30px 60px;
  }

  main > section:nth-of-type(1) > div {
    flex-direction: column;
    min-height: auto;
  }

  main > section:nth-of-type(1) > div > div {
    padding: 35px;
  }

  main > section:nth-of-type(1) > div > div h2 {
    font-size: 28px;
    margin-bottom: 25px;
  }

  aside {
    min-height: 300px;
  }

  fieldset {
    flex-direction: column;
  }

  /* Service Page */

  main > section:first-of-type {
    padding: 2rem 1.5rem;
  }

  main > section:first-of-type h1 {
    font-size: 1.8rem;
    margin-bottom: 1.8rem;
  }

  main > section:first-of-type h2 {
    font-size: 1.6rem;
    margin: 2rem 0 1.5rem;
  }

  main > section:first-of-type > div {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
  }

  main > section:first-of-type > div > div p {
    font-size: 0.95rem;
    line-height: 1.7;
  }

  main > section:first-of-type > section {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }

  main > section:first-of-type article {
    padding: 1.5rem;
  }

  main > section:first-of-type article h3 {
    font-size: 1.2rem;
  }

  main > section:first-of-type article p {
    font-size: 0.9rem;
  }

  main > section:first-of-type article li {
    font-size: 0.85rem;
  }

  main > section:nth-of-type(2) {
    grid-template-columns: 1fr;
    gap: 2rem;
    margin: 2rem auto;
    padding: 2rem 1.5rem;
  }

  main > section:nth-of-type(2) h2 {
    font-size: 2rem;
    margin-bottom: 1.8rem;
  }

  main > section:nth-of-type(2) article h3 {
    font-size: 1rem;
  }

  main > section:nth-of-type(2) article p {
    font-size: 0.9rem;
  }

  /* About Page */

  body > aside {
    padding: 0 40px;
  }

  body > aside > section {
    height: 350px;
    border-radius: 30px;
  }

  section aside {
    padding: 0 40px;
  }

  body > aside h1 {
    font-size: 36px;
    max-width: 250px;
  }

  body > aside span {
    display: none;
  }

  body > article p {
    padding-top: 30px;
    font-size: 14px;
    line-height: 1.7;
  }

  main section {
    padding: 60px 40px;
  }

  main h2 {
    font-size: 42px;
    margin-bottom: 40px;
  }

  figcaption {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  figcaption p {
    font-size: 14px;
  }

  ol li {
    padding: 25px 30px;
    margin-bottom: 20px;
    gap: 30px;
    flex-direction: column;
    align-items: flex-start;
  }

  mark {
    font-size: 36px;
  }

  ol p {
    font-size: 16px;
  }

  /* Footer */

  footer {
    padding: 3rem 2rem;
  }

  footer h2 {
    font-size: 3.5rem;
  }

  footer > section:first-of-type {
    flex-direction: column;
    gap: 3rem;
  }

  footer > section:first-of-type > section > section {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}


/* Mobile Small (320px - 479px) */

@media (max-width: 480px) {


  /* Header */

  header {
    margin: -0.2rem;
    border-radius: 8px;
    padding: 1.2rem;
    gap: 1.2rem;
  }

  header img {
    height: 42px;
  }

  header nav ul {
    gap: 0.5rem;
  }

  header nav a {
    font-size: 0.85rem;
    padding: 0.6rem 1rem;
  }

  /* Home Page */

  main > div:first-child {
    padding: 1rem 1.5rem;
  }

  main > div:first-child h1 {
    font-size: 2.2rem;
    line-height: 1.1;
  }

  main > div:first-child p {
    font-size: 0.9rem;
  }

  main > div:first-child aside {
    display: none;
  }

  main > section {
    padding: 2rem 1.5rem;
  }

  main > section h2 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
  }

  main > section:nth-child(2) > div,
  main > section:nth-child(3) > div {
    gap: 2rem;
  }

  main > section:nth-child(2) p,
  main > section:nth-child(3) > div > div > p {
    font-size: 0.95rem;
    line-height: 1.7;
  }

  main > section:nth-child(4) nav {
    gap: 1rem;
  }

  main > section:nth-child(4) figure {
    min-height: 200px;
  }

  main > section:nth-child(5) ol {
    gap: 0.8rem;
  }

  main > section:nth-child(5) li {
    padding: 1rem 1.2rem;
    gap: 1.2rem;
    flex-direction: column;
    align-items: flex-start;
  }

  main > section:nth-child(5) li span:first-child {
    font-size: 1.5rem;
  }

  main > section:nth-child(5) li span:last-child {
    font-size: 0.95rem;
  }

  main > section > span:first-child {
    font-size: 2.5rem !important;
    opacity: 0;
  }
  main > section > span:nth-child(2) {
    font-size: 2.5rem !important;
  }

  /* Contact Page */

  main > section:nth-of-type(1) {
    padding: 0 20px 40px;
  }

  main > section:nth-of-type(1) > div {
    border-radius: 10px;
  }

  main > section:nth-of-type(1) > div > div {
    padding: 25px;
  }

  main > section:nth-of-type(1) > div > div h2 {
    font-size: 24px;
    margin-bottom: 20px;
  }

  form {
    gap: 12px;
  }

  input, textarea {
    padding: 12px;
    font-size: 14px;
  }

  textarea {
    height: 100px;
  }

  button {
    padding: 12px;
    font-size: 13px;
    margin-top: 8px;
  }

  aside {
    min-height: 250px;
  }

  /* Service Page */

  main > section:first-of-type {
    padding: 1.5rem 1.2rem;
  }

  main > section:first-of-type h1 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
  }

  main > section:first-of-type h2 {
    font-size: 1.3rem;
    margin: 1.5rem 0 1.2rem;
  }

  main > section:first-of-type > div {
    margin-bottom: 1.5rem;
  }

  main > section:first-of-type > section {
    gap: 1rem;
  }

  main > section:first-of-type article {
    padding: 1.2rem;
  }

  main > section:first-of-type article h3 {
    font-size: 1.1rem;
  }

  main > section:first-of-type article p {
    font-size: 0.85rem;
  }

  main > section:first-of-type article li {
    font-size: 0.8rem;
    margin-bottom: 0.6rem;
  }

  main > section:nth-of-type(2) {
    gap: 1.5rem;
    margin: 0.5rem auto;
    padding: 0.5rem 1.2rem;
  }

  main > section:nth-of-type(2) h2 {
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
  }

  main > section:nth-of-type(2) article p {
    font-size: 0.85rem;
  }

  /* About Page */

  body > aside {
    padding: 0 20px;
  }

  body > aside > section {
    height: 300px;
    border-radius: 20px;
  }

  section aside {
    padding: 0 30px;
  }

  body > aside h1 {
    font-size: 28px;
    max-width: 200px;
  }

  body > article p {
    padding-top: 20px;
    font-size: 13px;
    padding-left: 20px;
    padding-right: 20px;
  }

  main section {
    padding: 40px 20px;
  }

  main h2 {
    font-size: 32px;
    margin-bottom: 30px;
  }

  figcaption {
    gap: 25px;
  }

  figcaption p {
    font-size: 13px;
    line-height: 1.6;
  }

  ol {
    max-width: 100%;
  }

  ol li {
    padding: 20px 20px;
    margin-bottom: 15px;
    gap: 15px;
  }

  mark {
    font-size: 28px;
  }

  ol p {
    font-size: 14px;
    line-height: 1.6;
  }

  /* Footer */
  
  footer {
    padding: 2.5rem 1.5rem;
  }

  footer h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
  }

  footer h3 {
    font-size: 2.1rem;
    margin-bottom: 0.8rem;
  }

  footer p {
    font-size: 0.9rem;
  }

  footer > section:first-of-type {
    gap: 2.5rem;
  }

  footer > section:last-of-type p {
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
  }

  footer > section:last-of-type nav {
    flex-wrap: wrap;
    gap: 0.8rem;
  }

  footer > section:last-of-type nav a {
    font-size: 0.85rem;
    padding: 0.6rem 1.2rem;
  }

  small {
    font-size: 0.8rem;
  }
}
