/* ----- STYLES.CSS   -------*/

/* -------------------------------------------- */
/* GLOBAL LAYOUT                                */
/* -------------------------------------------- */

html, body {
    margin: 0;
    padding: 0;
    background-color: black;
    color: white;
    font-family: Arial, sans-serif;
    overflow-x: hidden;
    overflow-y: hidden;
    height: 100vh;
    
}

body {
  opacity: 0;
}

body.loaded{
    opacity: 1;
    transition: opacity 0.6s ease;
}

@keyframes pageFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}


/* -------------------------------------------- */
/* SITE TITLE                                   */
/* -------------------------------------------- */

#site-title {
    font-size: clamp(36px, 4vw, 60px);
    margin: 10px 0 0 30px;
}

/* -------------------------------------------- */
/* SCROLL + SLIDER STRUCTURE                    */
/* -------------------------------------------- */

#scroll-container {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    display: flex;
    scroll-behavior: smooth;
    margin: 0 auto;
    box-sizing: border-box;
    padding: clamp(10px, 2vw, 20px) clamp(10px, 2vw, 40px) clamp(80px, 8vw, 120px);
}

#scroll-container::-webkit-scrollbar{
    display: none;
}

#scroll-container{
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none;  /* IE and Edge */
}

#slider-outer, 
#slider-wrapper {
    position: relative;
    overflow: visible;
}

#slider {
    display: flex;
    align-items: flex-end; /* cards grow upward */
    transition: all 0.4s ease;
    overflow: visible;
}

/* -------------------------------------------- */
/* CARD WRAPPER AND CARD                        */
/* -------------------------------------------- */

.card-wrapper {
    flex: 0 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: visible;
    height: min(70vh, 520px);
    --wrapper-height: calc(100% - 120px); /* top image area */
}

.card {
    width: 100%;
    height: 100%;
    background-color: rgb(20,20,20);
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* top-align content */
    align-items: stretch;        /* children full width */
    gap: 0;                      /* no spacing between children */
    transition: transform 0.3s, box-shadow 0.3s;
    transform-origin: bottom center;
    overflow: hidden;
}

.card a {
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: white;
}

/* -------------------------------------------- */
/* CARD CONTENT                                 */
/* -------------------------------------------- */

.card-image {
    width: 100%;
    height: 60%;
    background-size: cover;
    background-position: center;
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
    margin: 0;
    padding: 0;
    filter: grayscale(100%);
    transform: filter 0.4s ease, transform 0.3s, box-shadow 0.3s;
    flex-shrink: 0;
}

.card-title {
    height: 14%; /* all boxes same height */
    min-height: 48px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    background-color: rgba(180,180,180,0.25);
    transition: background-color 0.3s;
    margin: 0;
    padding: 0 8px;
    border-bottom-left-radius: 16px;
    border-bottom-right-radius: 16px;
    flex: 0 0 14%;
    box-sizing: border-box;
}

.card-title span {
    display: inline-block;
    max-height: 50%;           /* text takes up no more than half the box */
    font-size: clamp(16px, 3vw, 36px); /* responsive scaling */
    line-height: 1;
}

.card-desc {
    flex: 1 1 auto;
    font-size: clamp(14px, 2vw, 18px);
    padding: 10px 12px;
    width: calc(100%-24px);
    text-align: center;
    margin: 0 auto;
    overflow-wrap: break-word;
    overflow-y: hidden;
    box-sizing: border-box;
}


/* -------------------------------------------- */
/* HOVER EFFECT (DESKTOP ONLY)                  */
/* -------------------------------------------- */

@media (hover: hover) and (pointer: fine) {
    .card:hover {
        transform: scale(1.035);
        box-shadow: 0 0 35px rgba(255,255,255,0.4);
        z-index: 10;
    }
    .card:hover .card-title {
        background-color: rgba(180, 180, 180, 0.6);
    }

    .card:hover .card-image {
        filter: grayscale(0%);
    }
}

/* -------------------------------------------- */
/* ARROW BUTTONS                                */
/* -------------------------------------------- */

.arrow-btn {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    font-size: clamp(20px, 4vw, 40px);
    width: clamp(40px, 6vw, 60px);
    height: clamp(40px, 6vw, 60px);
    border: none;
    background: rgba(255,255,255,0.8);
    border-radius: 50%;
    cursor: pointer;
    z-index: 9999;
    transition: 0.2s;
}

.arrow-btn:hover {
    background: white;
}

#arrow-left { left: 10px; }
#arrow-right { right: 10px; }

/* -------------------------------------------- */
/* RESPONSIVE LOGIC (ONLY 3 BREAKPOINTS!)       */
/* -------------------------------------------- */

/* Default: Phones (2 cards) */
:root {
    --cards-per-row: 2;
    --card-height: 0.65;
}

/* Tablets (3 cards) */
@media (min-width: 700px) {
    :root {
        --cards-per-row: 3;
        --card-height: 0.55;
    }
}

/* Laptops / Desktop (5 cards) */
@media (min-width: 1024px) {
    :root {
        --cards-per-row: 5;
        --card-height: 0.45;
    }
}

/* Large monitors (6 cards) */
@media (min-width: 1800px) {
    :root {
        --cards-per-row: 6;
        --card-height: 0.65;
    }
}

/* -------------------------------------------- */
/* SOCIAL ICONS + LOGO                          */
/* -------------------------------------------- */
#social-bar {
  position: fixed;
  top: 20px;
  right: 20px;
  display: flex;
  gap: 4px;
  z-index: 9999;
}

#social-bar a {
  width: clamp(28px, 6vw, 42px);
}

#social-bar img {
  width: 100%;
  transition: 0.2s;
}

#social-bar img:hover {
  filter: brightness(1.5);
  transform: scale(1.1);
}


/* Adjust vertical placement of slider */
#scroll-container,
#slider-outer {
    margin-top: clamp(20px, 12vh, 40px);
}

#site-footer {
    position: sticky;
    bottom: 0;
    width: 100%;
    padding: clamp(3px, 1vw, 6px) clamp(6px, 2vw, 12px);
    box-sizing: border-box;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
    font-size: clamp(10px, 2.5vw, 14px);
    letter-spacing: 0.5px;
    background-color: black; /* optional: match body bg */
    z-index: 100;
}


#site-footer .logo {
    position: relative; /* or just omit position */
    width: clamp(50px, 5vw, 80px);
    opacity: 0.8;
    margin: 0;
}


#site-footer p {
  margin: 0;
  opacity: 0.85;
  text-align: right;
  flex: 1;
}


/* -------------------------------------------- */
/* MOBILE LAYOUT (STACK TITLE ABOVE SOCIALS)   */
/* -------------------------------------------- */

@media (max-width: 600px) {

    /* Move title to top-center */
    #site-title {
        margin: 16px 0 0 0;
        text-align: center;
    }

    /* Put socials under the title in a centered row */
    #social-bar {
        position: relative;
        top: 0;
        right: 0;
        margin: 8px auto 0 auto;
        justify-content: center;
        width: 100%;
    }

    /* Give slider proper breathing room under header */
    #scroll-container,
    #slider-outer {
        margin-top: 30px;
    }

    .card-wrapper {
        height: min(55vh, 420px);
    }

    .card-title {
        font-size: 18px;
    }

    .card-desc {
        font-size: 14px;
    }

    #social-bar a {
        padding: 4px;
    }


}

@media (hover: none) and (pointer: coarse) {
    html, body {
    overflow-y: auto; 
    }

    .card-image{
        filter: grayscale(0%);
    }

    #arrow-left,
    #arrow-right {
        display: none;
    }

      .arrow-wrapper {
        display: none;
    }

     #site-footer {
        justify-content: space-between;
        padding: clamp(6px, 2vw, 12px);
    }

    #site-footer .logo {
        width: clamp(40px, 12vw, 60px);
        margin: 0;
    }

    #site-footer p {
        font-size: clamp(10px, 4vw, 14px);
        text-align: right;
        margin: 0;
    }
}








