/* ---------------------------------------------------
   Showcase.css (Fully Merged + Navigation + Layout Fixes)
---------------------------------------------------- */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Inter', sans-serif;
}

/* Base body styles */
body {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-start; 
  align-items: center;
  color: #fff;
  position: relative;
  overflow: hidden;
  text-align: center;
  background: #000;
}

/* ---------------------------------------------------
   FIXED HEADER
---------------------------------------------------- */

header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 90px;
  background: rgba(50, 50, 50, 0.2);
  z-index: 2000;
  display: flex;
  align-items: left;
  justify-content: left;
  padding: 0 20px;
}

/* brand-container now inside header */
header .brand-container {
  position: static;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

/* ---------------------------------------------------
   FIXED NAVIGATION BAR
---------------------------------------------------- */

.nav-bar {
  position: fixed;
  top: 90px;  /* directly under header */
  left: 0;
  right: 0;
  height: 50px;
  background: rgba(60, 60, 60, 0.40);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  padding: 0 20px;
  gap: 25px;
  z-index: 1500;
  border-bottom: 1px solid rgba(255,255,255,0.15);
}

.nav-bar a {
  color: #e0e0e0;
  text-decoration: none;
  font-size: 1rem;
  padding: 8px 12px;
  border-radius: 6px;
  transition: background 0.2s ease, color 0.2s ease;
}

.nav-bar a:hover {
  background: rgba(255,255,255,0.15);
  color: #fff;
}

/* ---------------------------------------------------
   SCROLLABLE MAIN CONTENT AREA
---------------------------------------------------- */

.main-content-wrapper {
  position: absolute;
  top: 140px; /* header (90) + navbar (50) */
  bottom: 60px; /* footer height */
  left: 0;
  right: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start; /* ensure left alignment */
  
  /* Hide scrollbar (cross-browser) */
  scrollbar-width: none;      /* Firefox */
  -ms-overflow-style: none;   /* IE + Edge Legacy */
}

.main-content-wrapper::-webkit-scrollbar {
  display: none;              /* Chrome, Safari, Edge */
}

/* ---------------------------------------------------
   FIXED FOOTER
---------------------------------------------------- */

footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: rgba(50, 50, 50, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  font-size: 0.8rem;
  z-index: 2000;
}

footer p {
  margin: 4px 0;
}

footer a {
  color: #aaa;
  text-decoration: underline;
}

footer a:hover {
  color: #fff;
}

/* ---------------------------------------------------
   LINK STYLING
---------------------------------------------------- */

a {
  color: #33a1ff;
  text-decoration: none;
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

a:hover {
  color: #66c1ff;
  text-shadow: 0 0 8px rgba(51, 161, 255, 0.6);
}

a:active {
  color: #007bff;
  text-shadow: 0 0 4px rgba(0, 123, 255, 0.5);
}

/* ---------------------------------------------------
   BRAND ELEMENTS
---------------------------------------------------- */

.brand-logo {
  width: 75px;
  height: 75px;
  padding-top: 8px;
  background: radial-gradient(circle at center, #007bff, #003b88);
  border-radius: 12px;
  box-shadow: 0 0 12px rgba(0, 123, 255, 0.6);
}

.brand-text {
  font-size: 2.5rem;
  font-weight: 600;
  color: #fff;
  text-shadow: 2px 2px 5px #000;
}

/* ---------------------------------------------------
   FORMS
---------------------------------------------------- */

.form-container {
  background: rgba(30, 33, 40, 0.85);
  padding: 40px 50px;
  border-radius: 16px;
  box-shadow: 0 6px 30px rgba(0, 0, 0, 0.7);
  width: 500px;
  text-align: justify;
  backdrop-filter: blur(6px);
}

.form-container input,
.form-container select {
  width: 100%;
  padding: 12px 14px;
  margin: 10px 0;
  border: none;
  border-radius: 8px;
  background: #6e7380;
  color: #fff;
  font-size: 0.95rem;
}

.form-container input:focus {
  outline: 2px solid #007bff;
}

.form-container button {
  width: 100%;
  padding: 12px;
  margin-top: 15px;
  border: none;
  border-radius: 8px;
  background: linear-gradient(90deg, #007bff, #00bfff);
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.3s ease;
}

.form-container button:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}

/* ---------------------------------------------------
   SQUARE BOX LAYOUT
---------------------------------------------------- */

.square-box-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start; /* ensure left alignment */
  align-items: flex-start;
  gap: 1.5rem;
  width: 100%;
  margin-top: 2rem;
}

.square-box {
  width: 140px;
  height: 150px;
  max-width: 140px;
  max-height: 150px;
  background-color: rgba(64, 64, 64, 0.25);
  border-radius: 10px;
  box-shadow: 0 6px 30px rgba(0, 0, 0, 0.2);
  aspect-ratio: 1 / 1;
  flex: 1 1 calc(25% - 20px);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

.square-box-phone {
  width: 290px;
  height: 270px;
  max-width: 290px;
  max-height: 270px;
  background-color: rgba(64, 64, 64, 0.65);
  border-radius: 10px;
  box-shadow: 0 6px 30px rgba(0, 0, 0, 0.2);
  aspect-ratio: 1 / 1;
  flex: 1 1 calc(25% - 20px);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

.square-box:hover {
  transform: translateY(-6px) scale(1.03);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.25);
  background-color: rgba(90, 90, 90, 0.35);
}

.square-box-content {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  height: 100%;
  padding: 10px;
  text-align: center;
}

.square-box-content img {
  max-width: 60%;
  height: auto;
  object-fit: contain;
  margin-bottom: auto;
}

.square-box-content p {
  color: #fff;
  margin-top: auto;
  margin: 0;
  bottom: 0;
}

/* ---------------------------------------------------
   RESPONSIVE
---------------------------------------------------- */

@media (max-width: 1200px) {
  .square-box {
    flex: 1 1 calc(33.333% - 20px);
    max-width: calc(33.333% - 20px);
  }
}

@media (max-width: 900px) {
  .square-box {
    flex: 1 1 calc(50% - 20px);
    max-width: calc(50% - 20px);
  }
}

@media (max-width: 600px) {
  header {
    height: 40px;
  }

  .nav-bar {
    top: 40px;
    height: 40px;
    padding: 0 10px;
  }

  .main-content-wrapper {
    top: 80px;
  }

  .square-box {
    flex: 1 1 100%;
    max-width: 100%;
  }
}

@media (max-width: 500px) {
  .brand-container {
    flex-direction: column;
    gap: 10px;
  }

  .brand-logo {
    width: 50px;
    height: 50px;
  }

  .brand-text {
    font-size: 2rem;
  }

  .form-container {
    width: 90%;
    padding: 30px 20px;
  }
}