/* styles.css for OFPC website */

/* Import Clash Display font for headings */
@import url('https://api.fontshare.com/v2/css?f[]=clash-display@400,500,600,700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600&display=swap');

body {
    margin: 0;
    padding: 0;
    height: 100vh;
    background-color: #f5f5f5;
    overflow-x: hidden;
    font-family: 'Montserrat', sans-serif;
    position: relative;
}

/* ================ HOME ================ */

#home-page {
    position: relative;
    width: 100%;
    height: 100vh;
    transition: opacity 0.5s ease;
    z-index: 2;
}

#home-page.hidden {
    opacity: 0;
    pointer-events: none;
}

/* Button styles */
.discover-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 12px 27px;
    background-color: white;
    color: #3F51B5;
    border: 2px solid #3F51B5;
    border-radius: 20px;
    font-size: 18px;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    text-decoration: none;
}

.discover-btn:hover {
    background-color: #3F51B5;
    color: white;
}

.discover-btn .arrow {
    margin-left: 8px;
}

/* First page x-ray images */
#home-page .xray-image {
    position: absolute;
    cursor: grab;
    z-index: 5;
    user-select: none;
    transition: transform 0.2s ease;
}

#home-page .xray-image:hover {
    z-index: 6;
}

#home-page .xray-image.dragging {
    cursor: grabbing;
    z-index: 7;
}

/* Position each image */
#calculator {
    top: 10%;
    left: 0%;
    width: 550px;
    animation: float 8s ease-in-out infinite;
}

#pen {
    top: 15%;
    left: 30%;
    width: 500px;
    animation: float 6s ease-in-out infinite 1s;
}

#drill {
    top: 4%;
    right: 2%;
    width: 700px;
    animation: float 7s ease-in-out infinite 0.5s;
}

#pocket {
    bottom: 20%;
    left: 3%;
    width: 500px;
    animation: float 9s ease-in-out infinite 1.5s;
}

#stethoscope {
    bottom: 6%;
    right: 30%;
    width: 627px;
    animation: float 8s ease-in-out infinite 2s;
}

#hammer {
    bottom: 20%;
    right: 1%;
    width: 700px;
    animation: float 7s ease-in-out infinite 1.2s;
}

@keyframes float {
    0% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-10px) rotate(1deg);
    }

    100% {
        transform: translateY(0) rotate(0deg);
    }
}

/* =============== TRANSITION =============== */

#transition-overlay {
    position: fixed;
    bottom: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #3F51B5;
    z-index: 50;
    transition: bottom 0.8s cubic-bezier(0.77, 0, 0.175, 1);
}

#transition-overlay.active {
    bottom: 0;
}

#transition-overlay.reverse {
    bottom: 100%;
    transition: bottom 0.8s cubic-bezier(0.77, 0, 0.175, 1) 0.1s;
}

/* =================== MAIN ================== */

#content-page {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #f5f5f5;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease;
    overflow: hidden;
}

#content-page.visible {
    opacity: 1;
    visibility: visible;
    z-index: 40;
}

/* Header banner */
.header-banner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background-color: #3F51B5;
    z-index: 100;
    display: flex;
    align-items: center;
}

.banner-content {
    display: flex;
    align-items: center;
    white-space: nowrap;
}

.banner-content span {
    color: white;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.banner-measure {
    position: absolute;
    visibility: hidden;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    white-space: nowrap;
}

/* Scroll container */
.scroll-container {
    width: 100%;
    height: 100%;
    scroll-behavior: smooth;
}

.section {
    min-height: 100vh;
    width: 100%;
    position: relative;
}

/* FIXED: Better centered content wrapper */
.content-wrapper {
    display: flex;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 60px 40px 40px;
    height: calc(100vh - 60px);
    box-sizing: border-box;
    align-items: center;
    /* Center content vertically */
}

/* FIXED: Reduced image column width to bring content closer */
.image-column {
    flex: 0 0 550px;
    /* Reduced from 650px to 550px */
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    height: 100%;
    overflow: visible;
    order: 1;
}

/* FIXED: Remove all padding and center content vertically */
.text-column {
    flex: 1;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding-left: 0;
    /* Removed all padding */
    order: 2;
    box-sizing: border-box;
}

/* FIXED: Remove cropping from parent, let it be a simple container */
.bag-display {
    position: relative;
    width: 650px;
    height: 400px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: visible;
    /* Changed from hidden - no cropping here */
    margin: 0 auto;
}

/* FIXED: Apply cropping to each individual bag container */
.bag-container {
    width: 850px;
    height: 600px;
    position: absolute;
    top: 25vh;
    left: 36vh;
    transform: translate(-50vh, 100vh);
}

#bag1 {
    transform: translate(-50vh, -30vh);
}

/* FIXED: Image comparison container that maintains aspect ratio */
.image-comparison-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.image-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.normal-image {
    z-index: 1;
    opacity: 1;
}

.image-layer.xray-image {
    z-index: 2;
    opacity: 0;
}

/* FIXED: Better image scaling to show more bag content */
.bag-image {
    height: 100%;
    width: auto;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    object-fit: contain;
    /* Changed from cover to contain to show more of the image */
}

/* Bag-specific styles */
.image-layer.bag2-normal {
    z-index: 2;
    opacity: 1;
}

.image-layer.xray-image.bag2-xray {
    z-index: 1;
    opacity: 0;
}

.image-layer.normal-image.bag3-normal {
    z-index: 2;
    opacity: 1;
}

.image-layer.xray-image.bag3-xray {
    z-index: 1;
    opacity: 0;
}

/* FIXED: Better spaced text content */
.catchphrase-container {
    position: relative;
    min-height: 400px;
    width: 100%;
    max-width: 600px;
    /* Limit text width for better readability */
}

.catchphrase-text {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease;
}

.catchphrase-text h2 {
    font-family: 'Clash Display', sans-serif;
    font-weight: 700;
    font-size: 4rem;
    color: #333;
    margin: 0 0 30px 0;
    line-height: 0.9;
    text-transform: uppercase;
}

.catchphrase-text p {
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    font-size: 1.1rem;
    line-height: 1.6;
    color: #333;
    margin: 0;
}

#catchphrase1 {
    opacity: 1;
    visibility: visible;
}

.cfc-content {
    max-width: 100%;
    width: 100%;
}

/* Form section */
.form-section {
    visibility: hidden;
    opacity: 0;
    transform: translateY(50px);
}

.form-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.form-container h2 {
    font-family: 'Clash Display', sans-serif;
    font-weight: 600;
    font-size: 2.5rem;
    color: #3F51B5;
    margin: 0 0 20px 0;
}

.form-intro,
.form-subtitle {
    font-family: 'Montserrat', sans-serif;
    color: #666;
    margin-bottom: 15px;
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    position: relative;
    flex: 1;
    margin-bottom: 20px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    box-sizing: border-box;
}

.form-group label {
    position: absolute;
    top: 15px;
    left: 15px;
    color: #999;
    transition: all 0.3s ease;
    pointer-events: none;
}

.form-group input:focus+label,
.form-group input:valid+label,
.form-group textarea:focus+label,
.form-group textarea:valid+label {
    top: -10px;
    left: 10px;
    font-size: 0.8rem;
    background: white;
    padding: 0 5px;
    color: #3F51B5;
}

.form-group.checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-group.checkbox input {
    width: auto;
    margin: 0;
}

.submit-btn {
    background-color: #3F51B5;
    color: white;
    padding: 15px 40px;
    border: none;
    border-radius: 50px;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
}

.submit-btn:hover {
    background-color: #303F9F;
    transform: translateY(-2px);
}







/* Scroll indicator arrow ---------- */
.scroll-indicator {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 200;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.scroll-indicator.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-arrow {
    width: 0;
    height: 0;
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-top: 20px solid #3F51B5;
    animation: bounce 2s infinite;
    margin: 0 auto 10px;
}

.scroll-text {
    color: #3F51B5;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}