/* --- General Setup & Resets --- */
:root {
    --ease-cubic: cubic-bezier(0.65, 0, 0.35, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #000000;
    color: #FFFFFF;
    overflow-x: hidden;
}

section {
    height: 100vh;
    width: 100vw;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
}

/* --- Section 1: Hero --- */
#hero {
    text-align: center;
}

#hero header {
    position: absolute;
    top: 0;
    left: 0;
}

.logo {
    height:6em;
    margin:1rem;
}
.logo img {
    width: 100%;
    height: auto;
    margin-left: 5vw;
    display: block;
}

.hero-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
}
.hero-text-box {
    background: rgba(255,255,255,0.1);
    border-radius: 100vh;
    backdrop-filter: blur(15px);
    border: 0.05rem solid rgba(255,255,255,0.3);
    padding:2em 3em;
    text-align: center; /* Add this to center the text and pill */
    margin-bottom: 2em;
    margin-top:5em;
}

.pill {
    background: rgba(255,255,255,0.1);
    border-radius: 100vh;
    backdrop-filter: blur(15px);
    border: 0.05rem solid rgba(255,255,255,0.2);
    padding: 1rem 2rem;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    display:inline-block;
}

h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    max-width: 1200px;
}

.unbreakable-group {
    display: inline-block;
}

.hero-content p {
    font-size: 1.125rem;
    max-width: 650px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
    display: inline-block;
}

/* Word Cycler Animation Setup */
.word-cycler-wrapper {
    display: inline-block;
    height: 4.2rem; /* Match line-height of h1 */
    overflow: hidden;
    vertical-align: bottom; /* Re-add this for a good starting point */
    /* --- ADD THESE TWO LINES --- */
    position: relative;
}

#word-cycler {
    display: inline-block;
    transition: transform 0.6s var(--ease-cubic);
}

#word-cycler span {
    display: block;
    height: 4.2rem; /* Must match wrapper height */
    text-align:left;
background: #d9a7c7;  /* fallback for old browsers */
background: -webkit-linear-gradient(to right, #fffcdc, #d9a7c7);  /* Chrome 10-25, Safari 5.1-6 */
background: linear-gradient(to right, #fffcdc, #d9a7c7); /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */

    color: transparent;
    -webkit-background-clip: text; /* For Safari */
    background-clip: text; /* For other browsers */
    
}

/* Scroll Down Arrow */
.scroll-down {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    color: white;
}

.scroll-down svg {
    width: 24px;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(10px); }
    60% { transform: translateY(5px); }
}

/* --- Section 2: Showcase --- */
#showcase {
    justify-content: center;
    align-items: center;
    padding: 4rem;
    scroll-snap-align:y mandatory;
}

.showcase-container {
    display: flex;
    align-items: center;
    gap: 4rem;
    width: 100%;
    max-width: 1200px;
}

.slider-column, .text-column {
    flex: 1;
}

.slider-image {
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 1rem;
    background-color: rgba(255, 255, 255, 0.05);
    aspect-ratio: 16 / 9;
}

.slider-image img {
    width: 100%;
    height: 100%;
}

.slider-nav {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 1.5rem;
}

.slider-image-container {
    position: relative;
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    color: white;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.slider-arrow:hover {
    background-color: rgba(0, 0, 0, 0.7);
}

#prev-button {
    left: 1rem;
}

#next-button {
    right: 1rem;
}

.slider-arrow svg {
    width: 20px;
}

.slider-arrow:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.dot {
    width: 10px;
    height: 10px;
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.dot.active {
    background-color: #FFFFFF;
}

#slider-text-content {
    opacity: 1;
    transition: opacity 0.4s ease;
}

#slider-text-content.fading {
    opacity: 0;
}

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

.text-column p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.8);
    max-width: 450px;
}

#showcase-scroll-down {
    /* Positions the arrow at the bottom of the 2nd viewport height */
    top: calc(200vh - 5rem);
}

/* --- Responsive Design --- */
@media (max-width: 900px) {
    h1 { font-size: 2.5rem; }
    .word-cycler-wrapper, #word-cycler span { height: 3rem; top:0;}
    
    #showcase { padding: 2rem; }
    .showcase-container {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }
    .text-column { order: 2; }
    .slider-column { order: 1; width: 100%; }
    .text-column p { margin: 0 auto; }
}

#background-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Cover the entire viewport */
    z-index: -1; /* Ensure it's behind other content */
  }

  /* --- Section 3: Tools --- */
#tools {
    justify-content: center;
    align-items: center;
    padding: 4rem;
    scroll-snap-type:y mandatory;
    position:relative;
}

.tools-content {
    text-align: center;
}

.tools-content h2 {
    margin-bottom: 3rem;
    font-size: 2rem;
}

.logo-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4rem;
    max-width: 700px;
    margin: 0 auto;
}

.logo-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    width: 120px; /* Add this line */
}

.logo-item img {
    height: 60px;
    /* Default grayscale state */
    filter: grayscale(100%) brightness(2);
    opacity: 0.7;
    /* Smooth transition for the hover effect */
    transition: filter 0.3s ease, opacity 0.3s ease;
}

.logo-item:hover img {
    /* Full color on hover */
    filter: grayscale(0%) brightness(1);
    opacity: 1;
}

.logo-item p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
}

.site-footer {
    position: absolute;
    bottom: 2rem;
    left: 0;
    width: 100%;
    text-align: center;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4);
}

/* --- Responsive adjustment for the grid --- */
@media screen and (max-width: 900px) {
    .logo-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 3rem;
    }
}


@media screen and (max-width: 450px) {
    h1 { font-size: 2.5rem; }
    .word-cycler-wrapper, #word-cycler span { height: 3rem; top:0;}
    
    #hero header {
        padding: 0.5rem;
    }

    .logo {
        height: 4em;
        margin: 0rem;
    }

    .hero-content
    {
         padding: 1rem;
        }
    
    .hero-text-box {
        padding:2rem;
        margin-bottom: 1.5em;
        margin-top:2em;

    }

    .pill {
        display:none;
        max-width:75%;
        font-size:.5rem;
        font-weight:400;
        margin-top:1rem;   
        margin-bottom: .5rem;
    }

    h1 {
        font-size: 1.5rem;
        margin-bottom: 0.2rem;
    }

    .unbreakable-group {
        display: inline;
    }

    .word-cycler-wrapper {
        height: 2rem; /* Adjusted for smaller screens */
    }

    #word-cycler span {
        height: 2rem; /* Adjusted for smaller screens */
    }

    .hero-content p {
        font-size: 1rem;
        max-width: 100%;
    }
    
    #showcase { padding: 2rem; }
    .showcase-container {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }
    .text-column { order: 2; }
    .slider-column { order: 1; width: 100%; }
    .text-column p { margin: 0 auto; }

    .text-column p {
        font-size: 0.9rem;
        line-height: 1.5;
        max-width: 100%;
        margin-bottom:1.5rem;
    }

    .tools-content h2 {
        font-size: 1.5rem;
        margin-bottom: 2rem;
        margin-top:2rem;
    }

    .logo-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        margin-bottom:3rem;
    }

}