@import url('https://fonts.googleapis.com/css2?family=Atkinson+Hyperlegible:ital,wght@0,400;0,700;1,400;1,700;1,300;1,400;1,500;1,700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Ubuntu:ital,wght@0,300;0,400;0,500;0,700;1,300;1,400;1,500;1,700&display=swap');

/* --- Theme Variables (Matching Owl Tools Design) --- */
:root {
    --main-blue-bg: #2B57F0; /* The dominant blue background */
    --gold-logo-text: #FFD700; /* Gold for logo elements */
    --light-color: #ffffff;
    --dark-text-color: #333333; 
    --shadow-color: rgba(0, 0, 0, 0.4);
    --font-stack: "Ubuntu", sans-serif; 
    
    /* Specific glow colors from the example image */
    --glow-yellow-orange: #FF8C00; 
    --glow-red: #FF0000; 
    --glow-green: #00FF7F; 
}

/* --- Base & Background --- */
body {
    font-family: var(--font-stack);
    margin: 0;
    padding: 0;
    background-color: var(--main-blue-bg); 
    color: var(--light-color);
    display: flex;
    justify-content: center;
    /* Adjusted alignment to start content higher on the page */
    /* align-items: flex-end;  */
    /* CRITICAL: Ensure page fills the viewport */
    /* min-height: 75vh; */
    overflow-x: hidden; /* Prevent horizontal scroll from background glows */
    position: relative; 
}

/* --- Animated Background Elements (Glows) --- */
body::before,
body::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    opacity: 0.6; 
    filter: blur(150px); 
    z-index: -1; 
}

body::before {
    width: 600px;
    height: 600px;
    background: linear-gradient(135deg, var(--glow-yellow-orange), var(--glow-red));
    /* top: -200px; 
    left: -200px; */
}

body::after {
    width: 650px;
    height: 650px;
    background: linear-gradient(45deg, var(--glow-green), var(--main-blue-bg));
    /* bottom: -220px; 
    right: -220px; */
}

/* --- Content Container --- */
.landing-container {
    width: 100%;
    /* Increased max-width to give space for two columns */
    max-width: 1200px; 
    padding: 10px;
    text-align: center;
    position: relative;
    z-index: 1; 
}

/* --- Logo Section (Always Centered) --- */
.logo-section {
    /* margin-bottom: 30px; */
    padding-top: 20px;
    display: flex;
    /* justify-content: center; */
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(0, 0, 0, 0.3); 
    backdrop-filter: blur(10px); 
    padding: 12px 30px; 
    border-radius: 50px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.6); 
}

.logo img {
    width: 100px; 
    height: 100px;
    border-radius: 50%; 
    object-fit: cover;
}

.logo h1 {
    font-size: 1.8rem; 
    font-weight: 700;
    margin: 0;
    text-align: left;
    line-height: 1;
    color: var(--light-color); 
}

.logo h2 {
    font-size: 0.9rem;
    font-weight: 400;
    opacity: 0.8;
    margin-top: 2px;
    text-align: left;
    color: var(--light-color); 
}

/* --- Main Content (Headline Animation Setup) --- */
.headline {
    font-size: 2.5rem; 
    /* font-weight: 700; */
    line-height: 2;
    /* Desktop layout will override this margin-bottom */
    /* margin-bottom: 60px;  */
    padding: 0 40px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8); 
    color: var(--light-color); 
    
    /* Animation Initial State in CSS */
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s cubic-bezier(0.25, 0.46, 0.45, 0.94), 
                transform 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* --- Download Buttons --- */
.download-section {
    display: flex;
    justify-content: center;
    gap: 0px;
    /* Desktop layout will override this margin-bottom */
    /* margin-bottom: 80px; */
}

.btn {
    display: flex;
    align-items: center;
    padding: 14px 30px; 
    border-radius: 40px; 
    text-decoration: none;
    font-weight: 600; 
    font-size: 1.05rem; 
    transition: transform 0.3s, box-shadow 0.3s, filter 0.3s; 
    border: none;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5); 
}

.btn i {
    font-size: 1.5rem; 
    margin-right: 10px;
}

.btn-android {
    background-color: #00CC00; 
    color: var(--light-color); 
}

.btn:hover {
    transform: translateY(-5px); 
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.7);
    filter: brightness(1.1); 
}

/* --- Mockup Container (3D Popping Style) --- */
.mockup-container {
    position: relative;
    margin: 0 auto;
    z-index: 2;
    padding: 20px 0; 
}

.phone-mockup {
    /* Define base size and position */
    width: 70%;
    max-width: 300px; 
    margin: 0 auto;
    
    /* Apply 3D Perspective and Rotation (Popping effect) */
    transform: perspective(1000px) rotateX(5deg) rotateY(-5deg);
    
    /* Styling for the phone frame */
    background: #111; 
    border: 10px solid #111;
    border-radius: 40px; 
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.7); 
    padding: 5px;
    overflow: hidden;
    position: relative;
    
    /* Continuous Pop Animation */
    animation: mockupPop 4s ease-in-out infinite alternate; 
    
    /* Ensure smooth transitions */
    transition: transform 0.5s ease;
}

.app-screenshot {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 30px; 
}

/* --- Continuous Popping Keyframes --- */
@keyframes mockupPop {
    0% {
        transform: perspective(1000px) rotateX(5deg) rotateY(-5deg) translateY(0);
        box-shadow: 0 30px 60px rgba(0, 0, 0, 0.7);
    }
    100% {
        transform: perspective(1000px) rotateX(5deg) rotateY(-5deg) translateY(-10px);
        box-shadow: 0 40px 80px rgba(0, 0, 0, 0.9); /* Stronger shadow at peak */
    }
}


/* ===================================================
   DESKTOP TWO-COLUMN LAYOUT (min-width: 769px)
   =================================================== */
@media (min-width: 769px) {
    
    /* Reposition body content to center vertically within the available space */
    body {
        /* overflow: hidden; */
        align-items: center; 
    }

    /* Split the main content area into two equal columns */
    .main-content {
        display: grid;
        grid-template-columns: 1fr 1fr; /* 50% / 50% split */
        gap: 40px;
        align-items: center; /* Vertically center content and mockup */
        min-height: 60vh; /* Give main content area a minimum height for centering */
    }
    
    /* Ensure Headline is in the first column */
    .headline {
        grid-column: 1 / 2;
        text-align: left;
        font-size: 2.2rem; /* Reduced size to better fit column */
        /* margin-bottom: 30px; */
        padding: 0; /* Remove unnecessary padding */
    }

    /* Ensure Download Buttons are in the first column */
    .download-section {
        grid-column: 1 / 2;
        justify-content: flex-start; /* Align buttons to the left */
        margin-bottom: 0; /* Clear bottom margin to pull content up */
    }

    /* Place Mockup across the height of the content area in the second column */
    .mockup-container {
        grid-column: 2 / 3;
        grid-row: 1 / span 3; /* Allows it to span the rows of the text/button content */
        margin-top: 0;
        margin-bottom: 0;
    }

    /* Re-center the logo section above the grid */
    /* .logo-section {
        grid-column: 1 / -1;
    } */

}


/* ===================================================
   MOBILE STACKED LAYOUT (max-width: 768px)
   =================================================== */
@media (max-width: 768px) {
    body{
        overflow-x: hidden;
    }
    .headline {
        font-size: 1.6rem; 
        padding: 0 10px;
        margin-bottom: 20px; 
    }
    .logo-section{
        justify-content: center;
        margin-bottom: 20px;
    }
    
    .logo {
        gap: 8px; 
        padding: 8px 15px;
    }
    
    .logo h1 {
        font-size: 1.4rem; 
    }

    .logo h2 {
        font-size: 0.7rem; 
    }

    .download-section {
        flex-direction: column;
        gap: 12px; 
        align-items: center;
        margin-bottom: 50px; 
    }

    .btn {
        width: 85%;
        max-width: 300px;
        justify-content: center;
        font-size: 1rem; 
        padding: 12px 25px; 
    }
    
    .btn i {
        font-size: 1.3rem;
    }
    
    .phone-mockup {
        /* Remove 3D effect on small screens for better visibility */
        transform: none; 
        max-width: 250px; 
        /* Reset continuous animation for a simpler mobile look */
        animation: simplePop 4s ease-in-out infinite alternate;
    }
    
    /* New keyframes for simple mobile pop (no complex 3D rotation) */
    @keyframes simplePop {
        0% {
            transform: translateY(0);
            box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
        }
        100% {
            transform: translateY(-5px);
            box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8);
        }
    }

    /* Adjust background elements for smaller screens */
    body::before, body::after {
        width: 80%;
        height: 100%;
        position: absolute;
        top: 0;
        left: 0;
        content: "";
        background-size: cover;
        background-position: center;
        z-index: -1;
    }

    body::before {
        background-image: url("../images/phone_mockup.png");
        transform: scale(1.2);
        filter: blur(100px);
        opacity: 0.5;
    }

    body::after {
        background-image: url("../images/phone_mockup.png");
        filter: blur(100px);
        opacity: 0.5;
    }
}
