/* ===== SiteForge Global Styles ===== */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: "Inter", sans-serif;
}

body {
background: #0f1724;
color: #e6eef8;
padding: 30px;
}

/* Mobile specific styles */
body.mobile {
overflow-x: hidden;
padding: 10px;
}

body.mobile .app {
max-width: none;
width: 100%;
}

body.mobile .hero {
flex-direction: column;
}

body.mobile .display-wrap {
width: 100%;
order: 2;
}

body.mobile .left {
width: 100%;
order: 1;
}

body.mobile .strip {
flex-wrap: wrap;
overflow-x: visible;
}

body.mobile .strip > div {
flex: 0 0 calc(50% - 4px);
}

/* ----- Layout ----- */
.app {
width: 100%;
max-width: 1300px;
margin: auto;
display: flex;
flex-direction: column;
gap: 30px;
}

.card {
background: #0b1220;
border-radius: 18px;
padding: 22px;
box-shadow: 0 4px 30px rgba(0,0,0,0.35);
}

/* ----- Header / Nav ----- */
header {
display: flex;
justify-content: space-between;
align-items: center;
padding-bottom: 10px;
border-bottom: 1px solid #1c2333;
}

.brand {
display: flex;
align-items: center;
gap: 12px;
}

.logo {
background-image: url("mainPage/logo.jpg");
background-size: cover;
background-repeat: no-repeat;
background-position: center;
width: 48px;
height: 48px;
color: #071224;
font-weight: 700;
padding: 12px;
border-radius: 12px;
font-size: 20px;
}

.hamburger {
display: none;
flex-direction: column;
background: none;
border: none;
cursor: pointer;
padding: 8px;
gap: 4px;
}

.hamburger span {
width: 24px;
height: 3px;
background: #c8d2e8;
transition: 0.3s;
border-radius: 2px;
}

nav {
display: flex;
gap: 14px;
}

.nav-btn {
background: #131b2c;
border: 1px solid #1f2a41;
color: #c8d2e8;
padding: 10px 16px;
border-radius: 12px;
cursor: pointer;
transition: 0.2s;
}

.nav-btn:hover {
background: #7c5cff;
color: #071224;
}

.nav-btn.active {
background: #7c5cff;
color: #071224;
}

/* ----- Hero Layout ----- */
.hero {
display: flex;
gap: 20px;
flex-wrap: wrap;
}

.left {
flex: 1;
min-width: 300px;
}

.display-wrap {
width: 380px;
min-width: 300px;
display: flex;
flex-direction: column;
gap: 20px;
}

.preview {
background: #131b2c;
padding: 20px;
border-radius: 14px;
min-height: 150px;
}

/* ----- Interactive Strip ----- */
.strip {
display: flex;
gap: 12px;
overflow-x: auto;
padding: 10px;
scroll-snap-type: x mandatory;      /* snap items when scrolling */
-webkit-overflow-scrolling: touch;  /* smoother on mobile */
}

/* give each child a card layout and consistent size */
.strip > div {
flex: 0 0 220px;                    /* fixed minimum width */
height: 140px;                      /* visible, consistent height */
background: linear-gradient(180deg,#1d2538,#16202b);
border-radius: 12px;
display: flex;
align-items: center;
justify-content: center;
box-shadow: 0 6px 18px rgba(0,0,0,0.35);
border: 1px solid rgba(255,255,255,0.04);
transition: transform 220ms cubic-bezier(.2,.8,.2,1), box-shadow 220ms, filter 220ms;
cursor: pointer;
scroll-snap-align: center;          /* where it snaps to */
position: relative;
overflow: hidden;
}

#display-strip{
    width: 100%;
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 10px;
}

#live{
    margin-top: 8px;
    color: #a0aec0;
    font-size: 14px;
}
#live:hover{
  font-size: 14.2px;
    color: #6bff8b; 
}

.strip div {
width: 100%;
height: 20%;
background: #1d2538;
border-radius: 12px;
cursor: pointer;
transition: 0.2s;
border: 1px solid #2c3a54;
}

#img{
    cursor: pointer;
    width: 100%;
    height: 100%;
    border-radius: 12px;
}
.strip div.card{
    background-image: url('BarberPage/razor.jpg');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    border-radius: 18px;
    padding: 22px;
    box-shadow: 0 4px 30px rgba(0,0,0,0.35);
    margin-left: 12px;
}

.strip div.card1{
    background-image: url('BarberPage/beard-trim.jpg');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    border-radius: 18px;
    padding: 22px;
    box-shadow: 0 4px 30px rgba(0,0,0,0.35);
    margin-left: 12px;
}

.strip div:hover {

transform: scale(1.06);
}

.strip > div:hover,
.strip > div:focus,
.strip > div:active {
  transform: translateY(-6px) scale(1.04);
  box-shadow: 0 18px 40px rgba(0,0,0,0.5);
  filter: brightness(1.04);
  z-index: 2;
}

/* keyboard focus visible (accessible) */
.strip > div:focus-visible {
  outline: 3px solid rgba(124,92,255,0.9);
  outline-offset: 6px;
}

.strip > div .label {
  position: absolute;
  left: 12px;
  top: 12px;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  backdrop-filter: blur(4px);
}

/* ----- Lower Page Section ----- */
#page-lower {
min-height: 180px;
line-height: 1.55;
font-size: 16px;
color: #c9d6f0;
}

/* ----- Footer ----- */
footer {
text-align: center;
font-size: 14px;
opacity: 0.7;
}

.strip::-webkit-scrollbar {
  height: 10px;
}
.strip::-webkit-scrollbar-track {
  background: transparent;
}
.strip::-webkit-scrollbar-thumb {
  background: linear-gradient(90deg,#7c5cff,#4c7bff);
  border-radius: 10px;
  border: 2px solid rgba(0,0,0,0.25);
}

/* ===== Responsive adjustments ===== */

/* Make images fluid globally */
img { max-width: 100%; height: auto; display: block; }

/* General layout tweaks on medium screens */
@media (max-width: 900px) {
  header { flex-direction: column; align-items: flex-start; gap: 12px; }
  nav { width: 100%; flex-wrap: nowrap; overflow-x: auto; gap: 8px; padding-bottom: 6px; }
  .app { padding: 18px; }
  .hero { flex-direction: column; gap: 18px; }
  .display-wrap { width: 100%; max-width: none; order: 2; }
  .left { width: 100%; order: 1; }
  .preview { min-height: 120px; }
  .strip > div { flex: 0 0 180px; height: 120px; }
}

/* Small phones and narrow screens */
@media (max-width: 700px) {
  .hamburger { display: flex; }
  nav { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: #0b1220; border: 1px solid #1c2333; border-radius: 12px; padding: 12px; gap: 8px; z-index: 10; }
  nav.open { display: flex; }
  header { position: relative; }
  .logo { padding: 8px; font-size: 18px; }
  .brand h1, .brand p { font-size: 16px; line-height: 1.1; }
  .nav-btn { padding: 10px 12px; border-radius: 10px; font-size: 14px; }
  .hero { gap: 12px; }
  .left, .display-wrap { padding: 14px; }
  .display-wrap { order: 2; }
  .strip { padding: 8px; gap: 8px; }
  .strip > div { flex: 0 0 160px; height: 110px; }
  /* move the fill button to the top-right on small screens so it's reachable */
  .fill-btn { left: auto; right: 12px; top: 12px; transform: none; }
  .fill-overlay { border-radius: 10px; }
  /* make interactive elements easier to tap */
  .nav-btn, .fill-btn, .nav-btn.active { min-height: 44px; padding: 12px 16px; }
}

/* Very small screens / compact phones */
@media (max-width: 480px) {
  .logo { font-size: 16px; padding: 8px; }
  header { gap: 8px; }
  .brand h1 { font-size: 18px; }
  .preview { min-height: 100px; padding: 12px; }
  .strip > div { flex: 0 0 140px; height: 100px; }
  .page-lower { font-size: 15px; }
  .fill-btn { padding: 10px 12px; font-size: 14px; }
}

/* Disable heavy motion on small screens and respect user preference */
@media (max-width: 700px), (prefers-reduced-motion: reduce) {
  * { transition-duration: 0.18s !important; transition-timing-function: ease !important; animation-duration: 0s !important; animation: none !important; }
}