/* Local Poppins font faces */
@font-face {
    font-family: "Poppins";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("fonts/Poppins-Regular.woff2") format("woff2");
}

@font-face {
    font-family: "Poppins";
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url("fonts/Poppins-Medium.woff2") format("woff2");
}

@font-face {
    font-family: "Poppins";
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url("fonts/Poppins-SemiBold.woff2") format("woff2");
}

@font-face {
    font-family: "Poppins";
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url("fonts/Poppins-Bold.woff2") format("woff2");
}

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

img {
    max-width: 100%;
    height: auto;
}

body {
    font-family: 'Poppins', sans-serif;
    color: #202020;
    background-color: #f5f5f5;
}

/* Navigation Bar */
nav {
    background-color: #ffffff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav .nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

nav .logo {
    font-size: 24px;
    font-weight: 700;
    color: #FA8B28;
    text-decoration: none;
}

nav .nav-links {
    list-style: none;
    display: flex;
    align-items: center;
}

nav .nav-links li {
    margin: 0 15px;
}

nav .nav-links a {
    text-decoration: none;
    color: #202020;
    font-weight: 500;
    transition: color 0.3s;
}

nav .nav-links a:hover {
    color: #FA8B28;
}

.menu-icon {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.menu-icon span {
    height: 3px;
    width: 25px;
    background-color: #202020;
    margin: 4px 0;
    transition: all 0.3s;
}

/* Main Content */
.main-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 60px 20px;
    padding-top: 0; /* Remove top padding */
}

/* Adjust for mobile devices */
@media (max-width: 768px) {
    .main-content {
        padding-top: 0; /* Ensure content starts from top on mobile */
    }
}

.title {
    font-size: 36px;
    color: #FA8B28;
    font-weight: 700;
    margin-bottom: 20px;
    text-align: center;
}

/* New Image Title */
.image-title {
    font-size: 24px;
    color: #202020;
    font-weight: 600;
    text-align: center;
    margin: 20px 0 10px 0;
}

/* Adjust margin for mobile */
@media (max-width: 768px) {
    .image-title {
        margin-top: 10px;
    }
}

.description {
    font-size: 18px;
    color: #555555;
    margin-bottom: 20px;
    text-align: center;
}

/* Image Display at the Top */
.image-display {
    width: 100%;
    max-width: 400px;
    margin: 20px auto;
    text-align: center;
}

.image-display img {
    width: 100%;
    border-radius: 12px;
}

/* iPhone Mockup */
.iphone-mockup {
    position: relative;
    width: 250px;
    height: 500px;
    margin: 20px auto;
    background-image: url('https://on-static-img.s3.eu-north-1.amazonaws.com/sample-ios-wallpaper-day-portrait.webp');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    border-radius: 40px;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.1);
}

.lock-screen-background {
    position: absolute;
    top: 40px;
    left: 5px;
    width: calc(100% - 10px);
    height: calc(100% - 80px);
    background-size: cover;
    background-position: center;
    overflow: hidden;
    border-radius: 20px;
}

.live-activities {
    position: absolute;
    bottom: 40px;
    left: 15px;
    width: calc(100% - 30px);
    padding-bottom: 40%; /* 5:2 aspect ratio (40% of width) */
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.live-activities img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.button, .share-button {
    background-color: #FA8B28;
    border: none;
    border-radius: 30px;
    color: white;
    padding: 15px 25px;
    font-size: 1em;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-bottom: 15px;
    width: 100%;
    max-width: 300px;
}

.button:hover, .share-button:hover {
    background-color: #ff8f47;
}

.error-message {
    color: red;
    margin-top: 10px;
    display: none;
    font-size: 16px;
}

/* Footer - Commented out to allow Tailwind component (includes/footer.php) to style it
footer {
    background-color: #1a1a1a;
    color: #cccccc;
    padding: 40px 20px;
    text-align: center;
    width: 100%;
}

footer a {
    color: #FA8B28;
    text-decoration: none;
    font-weight: 500;
}

.footer-content p {
    font-size: 14px;
    margin: 10px 0;
}

.social-media-icons {
    margin: 20px 0;
}

.social-media-icons a {
    margin: 0 10px;
    display: inline-block;
    transition: transform 0.3s;
}

.social-media-icons a:hover {
    transform: translateY(-5px);
}

.social-media-icons img {
    width: 30px;
    height: 30px;
}
*/

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Media Queries for Mobile Responsiveness */
@media (max-width: 768px) {
    nav .nav-links {
        position: absolute;
        top: 60px;
        left: -100%;
        width: 100%;
        background-color: #ffffff;
        flex-direction: column;
        align-items: center;
        transition: left 0.3s;
    }

    nav .nav-links.active {
        left: 0;
    }

    nav .nav-links li {
        margin: 15px 0;
    }

    .menu-icon {
        display: flex;
    }

    .menu-icon.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .menu-icon.active span:nth-child(2) {
        opacity: 0;
    }

    .menu-icon.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .title {
        font-size: 30px;
    }

    .description {
        font-size: 16px;
    }

    .button, .share-button {
        width: 100%;
    }

    .iphone-mockup {
        width: 200px;
        height: 400px;
    }

    .button, .share-button {
        padding: 12px 20px;
        font-size: 0.9em;
    }
}
