/* Global Styles */
/* Navigation Menu */
.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1rem 2rem;
    transition: all 0.3s ease;
}

.main-nav.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav-links {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 0;
    padding: 0;
    transition: all 0.3s ease;
}

.main-nav a {
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.main-nav.scrolled a {
    color: var(--dark);
}

.main-nav a:hover {
    color: var(--primary-color);
}

/* Hamburger Menu */
.hamburger {
    display: none;
    cursor: pointer;
    width: 30px;
    height: 20px;
    position: relative;
    z-index: 2;
}

.hamburger span {
    display: block;
    position: absolute;
    height: 2px;
    width: 100%;
    background: var(--white);
    border-radius: 9px;
    opacity: 1;
    left: 0;
    transform: rotate(0deg);
    transition: .25s ease-in-out;
}

.scrolled .hamburger span {
    background: var(--dark);
}

.hamburger span:nth-child(1) {
    top: 0px;
}

.hamburger span:nth-child(2) {
    top: 9px;
}

.hamburger span:nth-child(3) {
    top: 18px;
}

.hamburger.open span:nth-child(1) {
    top: 9px;
    transform: rotate(135deg);
}

.hamburger.open span:nth-child(2) {
    opacity: 0;
    left: -60px;
}

.hamburger.open span:nth-child(3) {
    top: 9px;
    transform: rotate(-135deg);
}

/* Mobile Menu Styles */
@media screen and (max-width: 768px) {
    .hamburger {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.95);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2rem;
        transform: translateX(100%);
        transition: transform 0.3s ease-in-out;
        padding: 2rem;
    }

    .nav-links.active {
        transform: translateX(0);
    }

    .main-nav.scrolled .nav-links {
        background: rgba(255, 255, 255, 0.95);
    }

    .main-nav.scrolled .nav-links a {
        color: var(--dark);
    }

    .nav-links a {
        color: var(--white);
        font-size: 1.2rem;
    }

    .main-nav {
        display: flex;
        justify-content: flex-end;
        padding: 1rem;
    }
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--primary-color);
    color: var(--white);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    transform: translateY(-5px);
    background: #0056b3;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

:root {
    --primary-color: #007BFF;
    --white: #ffffff;
    --dark: #333333;
}

html {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
}

/* Screen Layout */
.screen {
    min-height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    position: relative;
}

/* Hero Section */
#hero {
    background: linear-gradient(135deg, var(--primary-color), #0056b3);
    color: var(--white);
    text-align: center;
}

.hero-content {
    opacity: 0;
    transform: translateY(30px);
}

.app-title {
    font-size: 4rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.download-btn {
    display: inline-block;
    padding: 1rem 2rem;
    background: var(--white);
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 500;
    transition: transform 0.3s ease;
}

.download-btn:hover {
    transform: scale(1.05);
}

/* About Section */
#about {
    background: var(--white);
}

.about-content {
    text-align: center;
    max-width: 800px;
    opacity: 0;
}

.icon-container {
    margin-bottom: 2rem;
}

.about-icon {
    width: 120px;
    height: 120px;
}

/* Screenshots Section */
#screenshots {
    background: #f8f9fa;
    flex-direction: column;
}

.screenshot-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 0;
}

/* Carousel buttons */
.screenshot-container {
    position: relative;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: rgba(0,0,0,0.55);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: background 0.2s ease, transform 0.15s ease;
}

.carousel-btn:hover { transform: translateY(-50%) scale(1.05); background: rgba(0,0,0,0.7); }

.carousel-btn.left { left: 12px; }
.carousel-btn.right { right: 12px; }

/* Hide buttons on very small screens (use touch swipe) */
@media (max-width: 768px) {
    .carousel-btn { display: none; }
}

.screenshot-carousel {
    display: flex;
    gap: 2rem;
    overflow-x: auto;
    padding: 1rem 2rem;
    scroll-snap-type: x mandatory;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
    -webkit-overflow-scrolling: touch;
    align-items: center;
    justify-content: center; /* center the track inside the container */
}

.screenshot-carousel::-webkit-scrollbar {
    display: none; /* Chrome, Safari and Opera */
}

.screenshot {
    scroll-snap-align: center;
    opacity: 0;
    transform: translateX(50px);
    flex: 0 0 calc(33.333% - 1.334rem);
}

.screenshot img {
    width: 100%;
    height: auto;
    max-height: 600px;
    object-fit: contain;
    border-radius: 20px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.screenshot:hover img {
    transform: scale(1.05);
}

/* Navigation dots removed: carousel uses horizontal scroll only */

/* Responsive Design for Screenshots */
@media (max-width: 1024px) {
    .screenshot {
        flex: 0 0 calc(50% - 1rem);
    }
}

@media (max-width: 768px) {
    .screenshot-carousel {
        padding: 1rem;
    }

    /* show one image per view on mobile */
    .screenshot {
        flex: 0 0 calc(100% - 2rem);
    }

    .screenshot img {
        max-height: 500px;
    }

    /* show carousel buttons on mobile for explicit navigation */
    .carousel-btn {
        display: flex;
        width: 48px;
        height: 48px;
        opacity: 0.95;
        background: rgba(0,0,0,0.6);
    }
}

/* Download Circle Section */
#download {
    background: var(--white);
}

.download-circle {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: pulse 2s infinite;
}

.circle-download-btn {
    color: var(--white);
    text-decoration: none;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 600;
}

.circle-download-btn span {
    display: block;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Installation Guide Section */
#installation {
    background: #f8f9fa;
    flex-direction: column;
}

.installation-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    width: 100%;
    margin-top: 2rem;
}

.step {
    background: var(--white);
    padding: 2rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.step img {
    max-width: 100%;
    height: auto;
    margin-top: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.step:hover img {
    transform: scale(1);
}

.step-number {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-weight: 600;
}

/* Tutorial Section */
#tutorial {
    background: var(--white);
    flex-direction: column;
}

.video-container {
    width: 100%;
    max-width: 800px;
    margin-top: 2rem;
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 15px;
}

/* Footer */
footer {
    background: var(--dark);
    color: var(--white);
    text-align: center;
    padding: 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .app-title {
        font-size: 3rem;
    }

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .screenshot img {
        height: 400px;
    }

    .download-circle {
        width: 200px;
        height: 200px;
    }

    .installation-steps {
        grid-template-columns: 1fr;
    }
}

/* Animation Classes */
.fade-in {
    opacity: 1 !important;
    transform: translateY(0) !important;
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.slide-in {
    opacity: 1 !important;
    transform: translateX(0) !important;
    transition: opacity 0.8s ease, transform 0.8s ease;
}