/* Modern Color Palette */
:root {
    --primary-blue: #0066CC;
    --primary-blue-dark: #004C99;
    --secondary-gold: #FDB813;
    --secondary-gold-dark: #E5A50A;
    --accent-teal: #00A896;
    --neutral-light: #F8F9FA;
    --neutral-medium: #E9ECEF;
    --text-dark: #212529;
    --text-medium: #495057;
    --text-light: #6C757D;
    --white: #FFFFFF;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Modern Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.7;
    color: var(--text-dark);
    background-color: var(--white);
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Modern Header & Navigation */
header {
    background: var(--white);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(10px);
    transition: var(--transition);
    border-bottom: 1px solid var(--neutral-medium);
}

header nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    position: relative;
}

header .logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: var(--transition);
    height: 40px;
}

header .logo img {
    height: 30px;
    width: auto;
    display: block;
}

header nav ul {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
}

header nav ul li a {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    position: relative;
    padding: 0.5rem 0;
    transition: var(--transition);
}

header nav ul li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-teal);
    transition: width 0.3s ease;
}

header nav ul li a:hover::after {
    width: 100%;
}

header nav ul li a:hover {
    color: var(--accent-teal);
}

/* Hamburger Menu */
#hamburger-menu {
    display: none;
    background: none;
    border: none;
    color: var(--primary-blue);
    font-size: 1.75rem;
    cursor: pointer;
    padding: 0.5rem;
    transition: var(--transition);
}

#hamburger-menu:hover {
    transform: scale(1.1);
    color: var(--accent-teal);
}

/* Hero Section - Modern & Eye-catching */
.hero {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--accent-teal) 100%);
    color: var(--white);
    padding: 8rem 0 6rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    letter-spacing: -1px;
    animation: fadeInUp 0.8s ease-out;
}

.hero p {
    font-size: clamp(1.1rem, 2vw, 1.35rem);
    margin-bottom: 2.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.95;
    line-height: 1.6;
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Modern Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    border: 2px solid transparent;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.8s ease-out 0.4s backwards;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: var(--secondary-gold);
    color: var(--text-dark);
    box-shadow: 0 4px 15px rgba(253, 184, 19, 0.3);
}

.btn-primary:hover {
    background: var(--secondary-gold-dark);
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(253, 184, 19, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-blue);
    border: 2px solid var(--primary-blue);
}

.btn-secondary:hover {
    background: var(--primary-blue);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

/* Section Styling */
.section-padding {
    padding: 5rem 0;
}

/* About Snippet Section */
.about-snippet {
    background: var(--neutral-light);
    text-align: center;
}

.about-snippet h2,
.featured-app h2 {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
    letter-spacing: -0.5px;
}

.about-snippet p {
    font-size: 1.125rem;
    color: var(--text-medium);
    max-width: 800px;
    margin: 0 auto 2rem;
    line-height: 1.8;
}

/* Featured App Section - Card Design */
.featured-app {
    background: var(--white);
}

.app-showcase {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 3rem;
    align-items: center;
    background: var(--white);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    border: 1px solid var(--neutral-medium);
}

.app-showcase:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.app-icon-placeholder {
    width: 200px;
    height: 200px;
    background: white;
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 30px;
    font-size: 0.875rem;
    font-weight: 600;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
}

.app-icon-placeholder:hover {
    transform: scale(1.05) rotate(2deg);
}

.app-description p {
    margin-bottom: 1.5rem;
    color: var(--text-medium);
    font-size: 1.05rem;
    line-height: 1.8;
}

/* Footer - Modern & Clean */
footer {
    background: linear-gradient(135deg, var(--text-dark) 0%, #1a1d23 100%);
    color: var(--neutral-medium);
    text-align: center;
    padding: 3rem 0;
    margin-top: 5rem;
}

footer p {
    margin: 0.5rem 0;
    font-size: 0.95rem;
}

/* Page Title Section */
.page-title {
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--accent-teal) 100%);
    color: var(--white);
    padding: 4rem 0;
    text-align: center;
}

.page-title .container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
}

.page-title img {
    flex-shrink: 0;
}

.page-title h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 800;
    letter-spacing: -1px;
    margin: 0;
}

/* Content Pages */
.about-content,
.app-details {
    background: var(--white);
}

.about-content h2,
.app-info h2 {
    color: var(--primary-blue);
    margin-bottom: 1.5rem;
    font-size: 2rem;
    font-weight: 700;
}

.about-content h3 {
    color: var(--text-dark);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    font-weight: 600;
}

.about-content p,
.app-info p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
    color: var(--text-medium);
    font-size: 1.05rem;
}

.about-content strong {
    color: var(--primary-blue);
    font-weight: 600;
}

.app-info ul {
    list-style: none;
    margin-bottom: 2rem;
}

.app-info ul li {
    margin-bottom: 1rem;
    color: var(--text-medium);
    padding-left: 2rem;
    position: relative;
    line-height: 1.8;
}

.app-info ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-teal);
    font-weight: bold;
    font-size: 1.2rem;
}

.app-info ul li strong {
    color: var(--text-dark);
    font-weight: 600;
}

/* App Detail Layout */
.app-detail-flex {
    display: grid;
    grid-template-columns: 45% 1fr;
    gap: 4rem;
    align-items: start;
}

.app-image-placeholder {
    background: linear-gradient(135deg, var(--accent-teal) 0%, var(--primary-blue) 100%);
    color: var(--white);
    padding: 1rem;
    border-radius: 20px;
    text-align: center;
    height: 100%;
    max-height: 800px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
}

.app-image-placeholder p {
    color: var(--white);
    font-weight: 600;
}

/* Screenshot Carousel Styles */
.screenshot-carousel {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 12px;
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 400px;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.carousel-slide.active {
    opacity: 1;
    z-index: 1;
}

.carousel-slide img {
    max-width: 100%;
    height: 87%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: transform 0.3s ease;
}

.carousel-slide img:hover {
    transform: scale(1.02);
}

.carousel-caption {
    margin-top: 1rem;
    color: var(--white);
    font-weight: 600;
    font-size: 0.95rem;
}

/* Carousel Navigation Buttons */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    color: var(--primary-blue);
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    font-size: 1.8rem;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    line-height: 1;
    padding: 0;
}

.carousel-btn:hover {
    background: var(--white);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.carousel-prev {
    left: 1rem;
}

.carousel-next {
    right: 1rem;
}

/* Carousel Dot Indicators */
.carousel-dots {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.75rem;
    z-index: 10;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.8);
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.carousel-dot:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.2);
}

.carousel-dot.active {
    background: var(--white);
    width: 32px;
    border-radius: 6px;
}

/* Fullscreen Modal */
.fullscreen-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.fullscreen-modal.active {
    display: flex;
}

.fullscreen-content {
    position: relative;
    width: 90%;
    height: 90%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fullscreen-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
}

.fullscreen-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.9);
    color: var(--text-dark);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    line-height: 1;
}

.fullscreen-close:hover {
    background: var(--white);
    transform: scale(1.1) rotate(90deg);
}

.fullscreen-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    color: var(--primary-blue);
    border: none;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    font-size: 2.5rem;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    line-height: 1;
}

.fullscreen-nav-btn:hover {
    background: var(--white);
    transform: translateY(-50%) scale(1.15);
}

.fullscreen-prev {
    left: 2rem;
}

.fullscreen-next {
    right: 2rem;
}

.fullscreen-caption {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    color: var(--white);
    font-size: 1.2rem;
    font-weight: 600;
    text-align: center;
    background: rgba(0, 0, 0, 0.6);
    padding: 0.75rem 2rem;
    border-radius: 50px;
    backdrop-filter: blur(10px);
}

.app-store-badges {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.app-store-badges img {
    height: 50px;
    transition: var(--transition);
}

.app-store-badges img:hover {
    transform: scale(1.05);
}

/* Responsive Design */
@media (max-width: 768px) {
    header nav ul {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        gap: 0;
        box-shadow: var(--shadow-lg);
        padding: 1rem 0;
        border-bottom: 1px solid var(--neutral-medium);
    }

    header nav ul.active {
        display: flex;
    }

    header nav ul li {
        width: 100%;
        text-align: center;
    }

    header nav ul li a {
        display: block;
        padding: 1rem 2rem;
    }

    header nav ul li a::after {
        display: none;
    }

    #hamburger-menu {
        display: block;
    }

    .hero {
        padding: 5rem 0 4rem;
    }

    .app-showcase {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 2rem;
    }

    .app-icon-placeholder {
        width: 150px;
        height: 150px;
        margin: 0 auto;
    }

    .app-detail-flex {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .app-image-placeholder {
        min-height: 300px;
        padding: 2rem;
    }

    .carousel-container {
        min-height: 300px;
    }

    .carousel-slide img {
        max-height: 250px;
    }

    .carousel-btn {
        width: 38px;
        height: 38px;
        font-size: 1.5rem;
    }

    .carousel-prev {
        left: 0.5rem;
    }

    .carousel-next {
        right: 0.5rem;
    }

    .carousel-dot {
        width: 10px;
        height: 10px;
    }

    .carousel-dot.active {
        width: 24px;
    }

    .page-title .container {
        flex-direction: column;
        gap: 1rem;
    }

    .section-padding {
        padding: 3rem 0;
    }

    .fullscreen-close {
        width: 45px;
        height: 45px;
        font-size: 1.75rem;
        top: 0.5rem;
        right: 0.5rem;
    }

    .fullscreen-nav-btn {
        width: 50px;
        height: 50px;
        font-size: 2rem;
    }

    .fullscreen-prev {
        left: 0.5rem;
    }

    .fullscreen-next {
        right: 0.5rem;
    }

    .fullscreen-caption {
        font-size: 1rem;
        padding: 0.5rem 1.5rem;
        bottom: 1rem;
    }
}

@media (max-width: 480px) {
    .container {
        width: 95%;
    }

    .btn {
        padding: 0.875rem 2rem;
        font-size: 0.95rem;
    }
}
