/* Import your variables */
@import url('define.css');

/* Base Reset & App Setup */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent; /* Removes tap highlight on mobile */
}

body {
    background-color: var(--mbg);
    color: var(--grey);
    font-family: 'Ubuntu', var(--nfont), sans-serif;
    overflow: hidden; /* Prevents scroll on the welcome screen */
    width: 100vw;
    height: 100vh;
    height: 100dvh; /* Mobile Fix: Accounts for dynamic navigation bars */
    touch-action: pan-y; /* Mobile Fix: Prevents system swipe-back gestures from conflicting */
}

/* Main Container */
.onboarding-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Skip Button */
.skip-btn {
    position: absolute;
    /* Mobile Fix: Pushes button down if phone has a camera notch */
    top: calc(30px + env(safe-area-inset-top)); 
    right: 20px;
    z-index: 10;
    background: transparent;
    border: none;
    color: var(--grey);
    font-size: 16px;
    font-family: inherit;
    font-weight: bold;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.skip-btn:active {
    opacity: 0.6;
}

/* Slider Area */
.slider-wrapper {
    display: flex;
    width: 300%; /* 3 slides = 300% */
    height: 85%;
    transition: transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.slide {
    width: 33.333%; /* 1/3 of the wrapper */
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: calc(20px + env(safe-area-inset-top)) 20px 10px 20px;
}

/* Image 3D & Animation Styles */
.image-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 0; /* Allows flexbox to shrink the image on very short phones */
}

.floating-img {
    width: 80%;
    max-width: 260px;
    max-height: 100%;
    object-fit: contain; /* Prevents image stretching */
    /* Creates a 3D drop-shadow matching the yellow theme */
    filter: drop-shadow(0 15px 25px rgba(255, 204, 0, 0.3));
    animation: float3D 4s ease-in-out infinite;
}

@keyframes float3D {
    0% { transform: translateY(0px) scale(1); }
    50% { transform: translateY(-15px) scale(1.02); }
    100% { transform: translateY(0px) scale(1); }
}

/* Text Styles */
.text-container {
    text-align: center;
    margin-bottom: 20px;
    min-height: 120px;
}

.text-container h2 {
    color: var(--black);
    /* Mobile Fix: Scales smoothly between 22px and 28px based on screen width */
    font-size: clamp(22px, 6vw, 28px); 
    margin-bottom: 12px;
    font-weight: 700;
}

.text-container p {
    color: var(--grey);
    /* Mobile Fix: Scales smoothly between 14px and 16px */
    font-size: clamp(14px, 4vw, 16px); 
    line-height: 1.5;
    opacity: 0.9;
    padding: 0 10px;
}

/* Bottom Controls */
.bottom-controls {
    height: 15%;
    min-height: 80px; /* Prevents buttons from being squished on short screens */
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    /* Mobile Fix: Pushes controls up if phone has a bottom gesture indicator bar */
    padding-bottom: calc(20px + env(safe-area-inset-bottom)); 
}

/* Ensures the right-side buttons stay pinned to the right edge */
.right-controls {
    margin-left: auto; 
    display: flex;
}

/* Dots Indicator */
.dots-container {
    display: flex;
    gap: 8px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #d9d9d9;
    transition: all 0.3s ease;
}

.dot.active {
    width: 25px;
    border-radius: 10px;
    background: var(--mbg2); /* Uses the gradient from define.css */
}

/* Navigation Buttons */
.nav-btn {
    background: transparent;
    border: none;
    font-size: 16px;
    font-weight: bold;
    color: var(--black);
    cursor: pointer;
    font-family: inherit;
    padding: 10px;
    transition: opacity 0.3s ease;
}

.nav-btn:active {
    opacity: 0.5;
}

/* Get Started Button */
.btn-primary {
    background: var(--mbg2);
    color: var(--black);
    border: none;
    padding: 15px 30px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 30px;
    box-shadow: 0 8px 20px var(--rgba1);
    cursor: pointer;
    font-family: inherit;
    animation: popIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

@keyframes popIn {
    0% { transform: scale(0.5); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

/* Utility Class for hiding elements */
.hidden {
    display: none !important;
}