/* ==================== MOBILE-FIRST APPROACH ==================== */

/* ==================== FONT FACES ==================== */

@font-face {
    font-family: 'WorkSans';
    src: url('../fonts/WorkSans-Bold.ttf') format('truetype');
    font-weight: bold;
}

@font-face {
    font-family: 'Ethnocentric';
    src: url('../fonts/Ethnocentric-Regular.otf') format('opentype');
}

/* ==================== ELEMENT SELECTORS ==================== */

* {
    box-sizing: border-box;
}

html {
    margin: 0;
    padding: 0;
    font-size: 1rem;
}

body {
    background-image: url("../images/background.gif");
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
    margin: 0;
    padding: 0;
    font-family: 'Courier New', Courier, monospace;
    color: #f9f9f9;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

header {
    display: block;
    margin: 0;
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

main {
    font-size: 1rem;
    text-align: left;
    color: #f9f9f9;
    margin: 0;
    padding: 1rem;
    background-color: transparent;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    min-height: auto;
    margin-top: 0.5rem;
    z-index: 0;
    flex: 1;
}

section {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin: 0;
    padding: 0;
    background-image: none;
    background-color: transparent;
    z-index: 1;
}

h1 {
    font-size: 2rem;
    font-weight: bold;
    color: rgb(0, 163, 133);
    text-align: left;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
    background-color: transparent;
    border: none;
    border-top: 1px solid white;
    display: flex;
    align-items: flex-start;
    vertical-align: top;
    margin: 0;
    line-height: 1;
    white-space: normal;
    min-height: 1.75rem;
    font-family: 'Ethnocentric', sans-serif;
}

h1:nth-of-type(1) {
    padding-bottom: 0.5rem;
}

h1:nth-of-type(2) {
    white-space: normal;
    padding-bottom: auto;
}

h2,
h3,
h4 {
    font-family: 'Courier New', Courier, monospace;
    font-weight: bold;
    text-align: left;
    margin: 1rem 0 0.5rem 0;
    padding: 0.5rem 1rem;
    background-color: aqua;
    color: white;
    width: auto;
}

h2 {
    font-size: 2.4rem;
    font-weight: bold;
    background-color: transparent;
    color: rgb(0, 163, 133);
    font-family: 'Ethnocentric', sans-serif;
}

h3 {
    font-size: 1rem;
    border: 1px solid #d3d3d3;
    color: #d3d3d3;
    background-color: rgba(0, 163, 133, 0.3);
}

h4 {
    font-size: 0.95rem;
}

p {
    margin: 0;
    padding: 1rem;
    font-size: 1rem;
    line-height: 1.6;
    color: #f9f9f9;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

footer {
    font-size: 0.875rem;
    color: #999;
    text-align: center;
    margin: 0;
    padding: 1rem;
    position: relative;
    background: linear-gradient(to top, rgba(30, 30, 30, 0.95) 0%, rgba(30, 30, 30, 0.5) 50%, rgba(30, 30, 30, 0) 100%);
}

footer p {
    margin: 0;
    padding: 0;
}

footer a {
    color: #b3b3b3;
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover,
footer a:focus {
    color: turquoise;
}

a {
    color: inherit;
}

/* ==================== CLASS SELECTORS - HEADER & NAVIGATION ==================== */

.navbar {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    margin: 0;
    padding: 0;
    background-image: linear-gradient(to bottom, #1e1e1e, transparent);
    overflow-y: hidden;
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    width: 100%;
    padding: 0.75rem;
    display: grid;
    justify-content: center;
    align-items: center;
}

.logo a {
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
}

.logo img {
    width: 100px;
    height: auto;
    filter: brightness(0) invert(1);
}

/* Hamburger Menu Button */
.navbar::before {
    content: "☰";
    display: block;
    font-size: 1.5rem;
    color: white;
    padding: 0.5rem 1rem;
    cursor: pointer;
    position: absolute;
    top: 0.5rem;
    right: 1rem;
    z-index: 101;
}

.navbar-menu {
    display: none;
    flex-direction: column;
    padding: 0.75rem 0;
}

.navbar-menu.active {
    display: flex;
}

.navbar a,
.dropdown {
    width: 100%;
    text-align: left;
}

.navbar a {
    display: block;
    color: white;
    padding: 0.75rem;
    text-decoration: none;
    font-size: 1rem;
    transition: all 0.3s ease;
    min-height: 40px;
    display: flex;
    align-items: center;
}

.navbar a:active,
.navbar a:focus {
    outline: 2px solid rgb(0, 163, 133);
    outline-offset: -2px;
    border-radius: 4px;
}

.dropdown {
    width: 100%;
}

.dropbtn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    background-color: inherit;
    color: white;
    padding: 0.75rem;
    border: none;
    font-size: 1rem;
    font-family: inherit;
    cursor: pointer;
    min-height: 40px;
    transition: all 0.3s ease;
}

.dropbtn span {
    display: flex;
    align-items: center;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.dropbtn:active,
.dropbtn:focus {
    outline: 2px solid rgb(0, 163, 133);
    outline-offset: -2px;
    border-radius: 8px;
}

.dropdown-content {
    display: none;
    flex-direction: column;
    position: static;
    background-color: #0d0d0d;
    box-shadow: none;
    min-width: auto;
    width: 100%;
}

.dropdown-content a {
    float: none;
    color: #b3b3b3;
    padding: 0.75rem 1rem 0.75rem 2rem;
    text-decoration: none;
    display: block;
    text-align: left;
    border: none;
    min-height: 44px;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.dropdown-content a:active {
    background-color: #333;
    color: rgb(0, 163, 133);
    border-radius: 8px;
}

.dropdown.active .dropdown-content {
    display: flex;
}

.navbar a:hover,
.navbar a:focus,
.dropbtn:hover,
.dropbtn:focus,
.dropdown-content a:hover {
    background-color: rgba(0, 163, 133, 0.1);
    color: rgb(0, 163, 133);
    text-shadow: #333 0px 0px 10px;
    border-radius: 8px;
}

/* ==================== CLASS SELECTORS - MAIN CONTENT ==================== */

article {
    transition: all 0.3s ease;
}

article img {
    opacity: 0;
    transition: opacity 0.3s ease;
}

article:hover img {
    opacity: 1;
}

article > div img {
    opacity: 0;
    transition: opacity 0.3s ease;
}

article:hover > div img {
    opacity: 1;
}

.indexSection {
    background-color: transparent;
    padding-top: 10px;
    padding-left: 5px;
    padding-right: 5px;
    width: 100%;
    display: flex;
    flex-direction: column;
    margin-bottom: 1rem;
}

.products-section {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    width: 100%;
    padding: 0;
}

.products-section section img {
    max-width: 100%;
    height: auto;
    mix-blend-mode: lighten;
}

/* Mobile: Show only first image per section */
.products-section section img:not(:first-of-type) {
    display: none;
}

/* ==================== CLASS SELECTORS - FORMS ==================== */

.form-section {
    max-width: 600px;
    margin: 0 auto;
    background: linear-gradient(to bottom, rgba(30, 50, 50, 0.65), rgba(25, 45, 45, 0.65));
    padding: 2.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
}

.form-section form {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.form-section h1 {
    text-align: center;
    margin-bottom: 1.5rem;
    color: rgb(0, 163, 133);
    border: none;
    padding: 0;
}

.form-intro {
    text-align: center;
    margin-bottom: 1.5rem;
    color: #d0d0d0;
    line-height: 1.6;
}

.form-group {
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    max-width: 560px;
    align-self: center;
}

.form-group label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #e0e0e0;
    font-size: 0.95rem;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="tel"],
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #555;
    background-color: rgba(50, 70, 70, 0.8);
    color: #e0e0e0;
    border-radius: 4px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group input[type="password"]:focus,
.form-group input[type="tel"]:focus,
.form-group textarea:focus {
    outline: none;
    border-color: rgb(0, 163, 133);
    box-shadow: 0 0 8px rgba(0, 163, 133, 0.2);
}

.form-group.checkbox {
    flex-direction: row;
    align-items: center;
    margin-bottom: 1rem;
}

.form-group.checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-right: 0.5rem;
    cursor: pointer;
}

.form-group.checkbox label {
    margin-bottom: 0;
    font-weight: normal;
    cursor: pointer;
}

.submit-btn {
    width: 100%;
    max-width: 560px;
    padding: 0.75rem;
    background-color: rgb(0, 163, 133);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.submit-btn:hover {
    background-color: #00a67a;
    transform: translateY(-2px);
}

.submit-btn:active {
    transform: translateY(0);
}

.form-footer {
    text-align: center;
    margin-top: 1.5rem;
    color: #b0b0b0;
    font-size: 0.9rem;
}

.form-footer a {
    color: rgb(0, 163, 133);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.form-footer a:hover {
    color: #00a67a;
}

/* ==================== RESPONSIVE DESIGN - TABLET (600px+) ==================== */

@media (min-width: 600px) {
    html {
        font-size: 16.5px;
    }

    main {
        padding: 3rem 2rem;
    }

    h1 {
        font-size: 1.8rem;
        padding-top: 0.5rem;
        padding-bottom: 0.25rem;
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    h1:nth-of-type(1) {
        white-space: nowrap;
    }

    p {
        font-size: 1.05rem;
        padding: 1.25rem;
    }

    section {
        gap: 1.5rem;
    }
    
    .logo img {
        width: 115px;
    }
    
    .form-section {
        padding: 3.5rem;
        font-size: 2rem;
    }

    .form-section h1 {
        font-size: 2.25rem;
    }
    
    .form-group {
        margin-bottom: 1.75rem;
    }
    
    .form-group label {
        font-size: 1rem;
    }
    
    .form-group input[type="text"],
    .form-group input[type="email"],
    .form-group input[type="password"],
    .form-group input[type="tel"],
    .form-group textarea {
        padding: 0.875rem;
        font-size: 1.05rem;
    }
    
    .submit-btn {
        padding: 0.875rem;
        font-size: 1.05rem;
    }

    .products-section section img {
        max-width: calc(33.333% - 0.67rem);
    }
    
    .products-section section img:not(:first-of-type) {
        display: block;
    }
}

/* ==================== RESPONSIVE DESIGN - DESKTOP (900px+) ==================== */

@media (min-width: 900px) {
    /* Element Selectors */
    html {
        font-size: 18px;
    }

    main {
        padding: 2rem;
        margin-left: 5%;
        margin-right: 5%;
        max-width: 1440px;
        margin-left: auto;
        margin-right: auto;
    }

    section {
        flex-direction: row;
        gap: 2%;
        align-items: flex-start;
    }

    h1 {
        font-size: 2rem;
        padding-top: 0.5rem;
        padding-bottom: 0.25rem;
        padding-left: 0.75rem;
        padding-right: 0.75rem;
        display: flex;
        align-items: flex-start;
    }
    h1:nth-of-type(1) {
        white-space: nowrap;
        text-wrap: hidden;
    }


    h1:nth-of-type(2) {
        height: 60px;
    }

    p {
        font-size: 1rem;
        padding: 1.5rem;
        line-height: 1.7;
    }

    h2,
    h3,
    h4 {
        padding: 1rem;
    }

    footer {
        padding: 1.5rem;
    }

    footer p {
        padding: 0;
    }

    /* Class Selectors */
    .navbar {
        flex-direction: row;
        justify-content: flex-start;
        align-items: center;
        overflow: visible;
        position: sticky;
        top: 0;
        z-index: 100;
    }

    /* Hide hamburger menu on desktop */
    .navbar::before {
        display: none;
    }

    .logo {
        width: auto;
        padding: 0.5rem 1rem;
        margin-right: 1rem;
    }

    .logo a {
        display: flex;
        justify-content: center;
        align-items: center;
        text-decoration: none;
    }

    .logo img {
        width: 130px;
        height: auto;
    }

    .navbar-menu {
        display: flex !important;
        flex-direction: row;
        width: auto;
        padding: 0;
        gap: 0;
    }

    .navbar a {
        width: auto;
        border-bottom: none;
        padding: 0.75rem 1rem;
    }

    .dropdown {
        width: auto;
        position: relative;
    }

    .dropbtn {
        width: auto;
        border-bottom: none;
        padding: 0.75rem 1rem;
    }

    .dropdown-content {
        position: absolute;
        display: none;
        flex-direction: column;
        background-color: #0d0d0d;
        top: 100%;
        left: 0;
        box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.3);
        min-width: 150px;
        width: auto;
    }

    .dropdown-content a {
        padding: 0.75rem 1rem;
        border: none;
    }

    .dropdown:hover .dropdown-content {
        display: flex;
    }

    .indexSection {
        flex: 1;
        min-width: 0;
    }
    
    .form-section {
        max-width: 700px;
        padding: 4rem;
    }

    .form section h1 {
        font-size: 2.2rem;
    }
    
    .form-intro {
        font-size: 1.05rem;
    }
    
    .form-group input[type="text"],
    .form-group input[type="email"],
    .form-group input[type="password"],
    .form-group input[type="tel"],
    .form-group textarea {
        padding: 1rem;
    }
    
    .submit-btn {
        padding: 1rem;
    }

    .products-section section img {
        max-width: calc(50% - 0.5rem);
    }
    
    .products-section section img:not(:first-of-type) {
        display: block;
    }

/* ==================== RESPONSIVE DESIGN - LARGE DESKTOP (1200px+) ==================== */

@media (min-width: 1200px) {
    html {
        font-size: 18px;
    }

    main {
        padding: 2.5rem;
        max-width: 1920px;
    }

    h1 {
        font-size: 2.2rem;
    }

    p {
        font-size: 1.05rem;
    }
    
    .form-section {
        max-width: 800px;
    }
    
    .form-section h1 {
        font-size: 2.4rem;
    }

    .products-section section img {
        max-width: calc(25% - 0.75rem);
    }
    
    .products-section section img:not(:first-of-type) {
        display: block;
    }
}

  :root {
    --background: #060608;
    --color: #FF073a;
  }
  
  .container {
    color: var(--color);
    font-size: 1.5rem;
    display: flex;
    flex-direction: column;
  }
  
  .right {
    text-align: right;
    width: 100%;
  }
  
  .stack {
    display: grid;
    grid-template-columns: 1fr;
  }
  
  .stack span {
    font-weight: bold;
    font-family: plank;
    text-shadow: 3px 3px 5px #000000;
    grid-row-start: 1;
    grid-column-start: 1;
    font-size: 2.5rem;
    --stack-height: calc(100% / var(--stacks) - 1px);
    --inverse-index: calc(calc(var(--stacks) - 1) - var(--index));
    --clip-top: calc(var(--stack-height) * var(--index));
    --clip-bottom: calc(var(--stack-height) * var(--inverse-index));
    clip-path: inset(var(--clip-top) 0 var(--clip-bottom) 0);
    animation: stack 340ms cubic-bezier(.46,.29,0,1.24) 1 backwards calc(var(--index) * 120ms), glitch 2s ease infinite 2s alternate-reverse;
  }
  
  .stack span:nth-child(odd) { --glitch-translate: 8px; }
  .stack span:nth-child(even) { --glitch-translate: -8px; }

  .stack h2 {
    font-weight: bold;
    font-family: plank;
    text-shadow: 3px 3px 5px #000000;
    grid-row-start: 1;
    grid-column-start: 1;
    font-size: 2.5rem;
    --stack-height: calc(100% / var(--stacks) - 1px);
    --inverse-index: calc(calc(var(--stacks) - 1) - var(--index));
    --clip-top: calc(var(--stack-height) * var(--index));
    --clip-bottom: calc(var(--stack-height) * var(--inverse-index));
    clip-path: inset(var(--clip-top) 0 var(--clip-bottom) 0);
    animation: stack 340ms cubic-bezier(.46,.29,0,1.24) 1 backwards calc(var(--index) * 120ms), glitch 2s ease infinite 2s alternate-reverse;
    margin: 0;
    padding: 0;
    background-color: transparent;
    color: #f9f9f9;
  }

  .stack h2:nth-child(odd) { --glitch-translate: 8px; }
  .stack h2:nth-child(even) { --glitch-translate: -8px; }
  
  @keyframes stack {
    0% {
      opacity: 0;
      transform: translateX(-50%);
      text-shadow: -2px 3px 0 red, 2px -3px 0 blue;
    };
    60% {
      opacity: 0.5;
      transform: translateX(50%);
    }
    80% {
      transform: none;
      opacity: 1;
      text-shadow: 2px -3px 0 red, -2px 3px 0 blue;
    }
    100% {
      text-shadow: 3px 3px 5px #000000;
    }
  }
  
  @keyframes glitch {
    0% {
      text-shadow: -2px 3px 0 red, 2px -3px 0 blue;
      transform: translate(var(--glitch-translate));
    }
    2% {
      text-shadow: 2px -3px 0 red, -2px 3px 0 blue;
    }
    4%, 100% {  text-shadow: 3px 3px 5px #000000; transform: none; }
  }





}