
:root {
    /* Color Variables */
    --primary: #4361ee;
    --primary-dark: #3a56d4;
    --primary-light: #eaefff;
    --secondary: #f8f9fa;
    --success: #2ecc71;
    --warning: #f39c12;
    --danger: #e74c3c;
    --info: #3498db;
    --purple: #9c27b0;
    --teal: #009688;
    --pink: #e91e63;
    --orange: #ff9800;
    --dark: #343a40;
    --light: #f8f9fa;
    --white: #ffffff;
    --text-dark: #343a40;
    --text-light: #6c757d;
    --border-color: #e1e5eb;
    --shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    --transition: all 0.3s ease;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #4361ee 0%, #3a56d4 100%);
    --gradient-success: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
    --gradient-info: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    --gradient-warning: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    --gradient-danger: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    --gradient-purple: linear-gradient(135deg, #9c27b0 0%, #7b1fa2 100%);
    --gradient-teal: linear-gradient(135deg, #009688 0%, #00796b 100%);
    --gradient-pink: linear-gradient(135deg, #e91e63 0%, #c2185b 100%);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    background-color: #f5f8fe;
    color: var(--text-dark);
    line-height: 1.6;
}

/* Header Styles */
header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background-color: var(--primary);
    color: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

nav a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
    transition: var(--transition);
}

nav a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background-color: var(--primary);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.3s ease;
}

nav a:hover {
    color: var(--primary);
}

nav a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.cta-button {
    background-color: var(--primary);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.cta-button:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(67, 97, 238, 0.3);
}

/* Main Content Styles */
main {
    margin-top: 80px;
    padding: 4rem 0 2rem;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-title {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1rem;
    position: relative;
    display: block; 
    width: 100%; 
    margin-left: auto; 
    margin-right: auto;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background-color: var(--primary);
    border-radius: 2px;
}

.section-subtitle {
    font-size: 1.1rem;
    text-align: center;
    color: var(--text-light);
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Screenshot Gallery Styles */
.screenshot-navigation {
    display: flex;
    justify-content: center;
    margin-bottom: 3rem;
    padding-bottom: 1rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.screenshot-nav-item {
    padding: 0.75rem 1.5rem;
    background-color: var(--white);
    border: 1px solid var(--border-color);
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
    white-space: nowrap;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.screenshot-nav-item:first-child {
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
}

.screenshot-nav-item:last-child {
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
}

.screenshot-nav-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    z-index: -1;
    opacity: 0;
    transition: var(--transition);
}

.screenshot-nav-item.active {
    color: white;
    border-color: var(--primary);
    box-shadow: 0 5px 15px rgba(67, 97, 238, 0.2);
}

.screenshot-nav-item.active::before {
    opacity: 1;
}

.screenshot-nav-item:hover:not(.active) {
    background-color: var(--primary-light);
    border-color: var(--primary-light);
    transform: translateY(-2px);
}

.screenshot-category {
    display: none;
    animation: fadeIn 0.5s ease-in-out forwards;
}

.screenshot-category.active {
    display: block;
}

.category-title {
    font-size: 1.75rem;
    text-align: center;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.category-description {
    font-size: 1rem;
    text-align: center;
    color: var(--text-light);
    margin-bottom: 2.5rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.screenshots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.screenshot-item {
    background-color: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.screenshot-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.screenshot-browser {
    position: relative;
    padding: 1.5rem 1.5rem 0;
    border-bottom: 1px solid var(--border-color);
}

.browser-controls {
    display: flex;
    align-items: center;
    background-color: #f1f1f1;
    padding: 0.5rem 1rem;
    border-radius: 8px 8px 0 0;
    position: relative;
}

.browser-dots {
    display: flex;
    gap: 0.375rem;
}

.browser-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.browser-dot:nth-child(1) {
    background-color: #ff5f57;
}

.browser-dot:nth-child(2) {
    background-color: #ffbd2e;
}

.browser-dot:nth-child(3) {
    background-color: #28ca41;
}

.browser-address {
    flex: 1;
    text-align: center;
    font-size: 0.75rem;
    color: var(--text-light);
    margin-left: 1rem;
    padding: 0.25rem 0.5rem;
    background-color: #e1e1e1;
    border-radius: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.screenshot-img-wrapper {
    padding: 0 1.5rem 1.5rem;
    position: relative;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.screenshot-img {
    width: 100%;
    border-radius: 0 0 8px 8px;
    cursor: pointer;
    border: 1px solid var(--border-color);
    flex-grow: 1;
    object-fit: cover;
    aspect-ratio: 16/9;
}

/* Fix for magnifying glass hover effect */
.screenshot-overlay {
    position: absolute;
    top: 1.5rem; /* Match the padding of screenshot-img-wrapper */
    left: 1.5rem; /* Match the padding of screenshot-img-wrapper */
    right: 1.5rem; /* Instead of width 100% to account for padding */
    bottom: 1.5rem; /* Instead of height 100% to account for padding */
    background: rgba(67, 97, 238, 0.2); /* Slightly more visible background */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
    border-radius: 8px; /* Match the border-radius of the image */
}

.screenshot-img-wrapper:hover .screenshot-overlay {
    opacity: 1;
}

.overlay-button {
    background-color: white;
    color: var(--primary);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transform: scale(0.9);
}

.screenshot-img-wrapper:hover .overlay-button {
    transform: scale(1);
}

.overlay-button:hover {
    background-color: var(--primary);
    color: white;
    box-shadow: 0 5px 15px rgba(67, 97, 238, 0.3);
}

/* Add smooth scrolling for all anchor links */
html {
    scroll-behavior: smooth;
}

/* Ensure the smooth scroll behavior works properly with fixed header */
:target {
    scroll-margin-top: 80px; /* Adjust according to your header height */
}

.screenshot-content {
    padding: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.screenshot-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.screenshot-description {
    font-size: 0.875rem;
    color: var(--text-light);
    line-height: 1.6;
}

/* Lightbox Styles */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

.lightbox-img {
    max-width: 100%;
    max-height: 90vh;
    border: 10px solid white;
    border-radius: 8px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: -40px;
    width: 40px;
    height: 40px;
    background-color: white;
    color: var(--text-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
}

.lightbox-close:hover {
    background-color: var(--primary);
    color: white;
    transform: scale(1.1);
}

.lightbox-caption {
    position: absolute;
    bottom: -60px;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
    color: var(--text-dark);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background-color: white;
    color: var(--text-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
}

.lightbox-prev {
    left: -70px;
}

.lightbox-next {
    right: -70px;
}

.lightbox-nav:hover {
    background-color: var(--primary);
    color: white;
    transform: translateY(-50%) scale(1.1);
}

/* Category Navigation for Mobile */
.mobile-category-nav {
    display: none;
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 900;
}

.mobile-nav-button {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 5px 15px rgba(67, 97, 238, 0.3);
    cursor: pointer;
    transition: var(--transition);
}

.mobile-nav-button:hover {
    transform: scale(1.1);
}

.mobile-nav-dropdown {
    position: absolute;
    bottom: 70px;
    right: 0;
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
    width: 220px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
}

.mobile-category-nav.active .mobile-nav-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mobile-nav-item {
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.mobile-nav-item.active {
    background-color: var(--primary-light);
    color: var(--primary);
}

.mobile-nav-item:hover:not(.active) {
    background-color: var(--light);
}

.mobile-nav-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    text-align: center;
    padding: 4rem 2rem;
    margin-top: 3rem;
}

.cta-title {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

.cta-subtitle {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-primary {
    background-color: white;
    color: var(--primary);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.cta-primary:hover {
    background-color: var(--light);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.2);
}

.cta-secondary {
    background-color: transparent;
    color: white;
    border: 1px solid white;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.cta-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.1);
}

/* Footer */
footer {
    background-color: var(--dark);
    color: white;
    padding: 4rem 2rem 2rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.footer-logo-icon {
    width: 40px;
    height: 40px;
    background-color: white;
    color: var(--primary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.footer-logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
}

.footer-about {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1.5rem;
    max-width: 300px;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.social-icon {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: var(--transition);
}

.social-icon:hover {
    background-color: var(--primary);
    transform: translateY(-3px);
}

.footer-title {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 30px;
    height: 2px;
    background-color: var(--primary);
}

.footer-links {
    list-style: none;
}

.footer-link {
    margin-bottom: 0.8rem;
}

.footer-link a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-link a:hover {
    color: white;
    padding-left: 5px;
}

.contact-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.7);
}

.contact-icon {
    color: var(--primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    margin-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Responsive Adjustments */
@media (max-width: 1024px) {
    .screenshots-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }

    .lightbox-prev {
        left: 20px;
    }

    .lightbox-next {
        right: 20px;
    }
}

@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        padding: 1rem;
    }

    nav ul {
        margin-top: 1rem;
        margin-bottom: 1rem;
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }

    .screenshot-navigation {
        flex-wrap: nowrap;
        justify-content: flex-start;
        padding-bottom: 1rem;
        margin-bottom: 2rem;
    }

    .screenshots-grid {
        grid-template-columns: 1fr;
    }

    .mobile-category-nav {
        display: block;
    }

    .screenshot-nav-item {
        padding: 0.6rem 1rem;
        font-size: 0.875rem;
    }

    .lightbox-caption {
        bottom: -80px;
        padding: 0.75rem;
        font-size: 0.875rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
}
