/* Benchmark Website Styles */

/* Import Google Fonts - optimized for performance */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap&subset=latin');

/* CSS Custom Properties - Color Palette */
:root {
    --primary-color: #039be5;
    --secondary-color: #ffa100;
    --background-color: #ECEFF1;
    --text-color: rgba(0, 0, 0, 0.87);
    --text-secondary: rgba(0, 0, 0, 0.54);
    --white: #ffffff;
    --shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-hover: 0 4px 8px rgba(0, 0, 0, 0.15);
    --border-radius: 8px;
    --spacing-unit: 16px;
}

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', Helvetica, Arial, sans-serif;
    line-height: 1.5;
    color: var(--text-color);
    background-color: var(--background-color);
    font-size: 16px;
}

/* Container and layout utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-unit);
}

/* Typography - Mobile First */
h1 {
    font-size: 28px;
    font-weight: 300;
    margin-bottom: var(--spacing-unit);
    line-height: 1.2;
}

h2 {
    font-size: 22px;
    font-weight: 400;
    margin-bottom: var(--spacing-unit);
    line-height: 1.3;
}

h3 {
    font-size: 18px;
    font-weight: 400;
    margin-bottom: var(--spacing-unit);
    line-height: 1.4;
}

p {
    font-size: 16px;
    margin-bottom: var(--spacing-unit);
    line-height: 1.5;
}

/* Header Styles */
.header {
    background-color: var(--white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-unit) 0;
}

.logo {
    font-size: 24px;
    font-weight: 500;
    color: var(--primary-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

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

/* Navigation */
.nav {
    display: flex;
    gap: calc(var(--spacing-unit) * 2);
}

.nav-link {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 400;
    transition: color 0.3s ease;
    padding: 8px 0;
}

.nav-link:hover,
.nav-link:focus {
    color: var(--primary-color);
    outline: none;
}

/* Mobile Navigation Toggle */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--text-color);
}

/* Hero Section */
.hero {
    background-color: var(--white);
    padding: calc(var(--spacing-unit) * 3) 0;
    text-align: center;
}

.hero-content {
    display: grid;
    gap: calc(var(--spacing-unit) * 2);
}

.hero-title {
    font-size: 32px;
    font-weight: 300;
    color: var(--primary-color);
    margin-bottom: var(--spacing-unit);
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: calc(var(--spacing-unit) * 2);
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 500;
    text-align: center;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 16px;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: #0288d1;
    box-shadow: var(--shadow-hover);
    outline: none;
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--white);
}

.btn-secondary:hover,
.btn-secondary:focus {
    background-color: #ff8f00;
    box-shadow: var(--shadow-hover);
    outline: none;
}

/* Section Styles */
.section {
    padding: calc(var(--spacing-unit) * 3) 0;
}

.section-title {
    text-align: center;
    margin-bottom: calc(var(--spacing-unit) * 2);
    color: var(--primary-color);
}

/* Card Components */
.card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: calc(var(--spacing-unit) * 1.5);
    transition: box-shadow 0.3s ease;
}

.card:hover {
    box-shadow: var(--shadow-hover);
}

/* Features Grid */
.features-grid {
    display: grid;
    gap: calc(var(--spacing-unit) * 1.5);
    margin-top: calc(var(--spacing-unit) * 2);
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-unit);
}

.feature-icon {
    width: 48px;
    height: 48px;
    background-color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 24px;
    flex-shrink: 0;
}

.feature-content h3 {
    margin-bottom: 8px;
}

/* Screenshots Gallery */
.screenshots-grid {
    display: grid;
    gap: calc(var(--spacing-unit) * 1.5);
    margin-top: calc(var(--spacing-unit) * 2);
}

.screenshot {
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.screenshot img {
    width: 100%;
    height: auto;
    display: block;
}

.screenshot:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

/* Download Section */
.download-section {
    background-color: var(--white);
    text-align: center;
}

.download-buttons {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-unit);
    align-items: center;
    margin-top: calc(var(--spacing-unit) * 2);
}

/* Footer */
.footer {
    background-color: var(--white);
    border-top: 1px solid #e0e0e0;
    padding: calc(var(--spacing-unit) * 2) 0;
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-unit);
    align-items: center;
}

.footer-links {
    display: flex;
    gap: calc(var(--spacing-unit) * 2);
    flex-wrap: wrap;
    justify-content: center;
}

.footer-link {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-link:hover,
.footer-link:focus {
    color: var(--primary-color);
    outline: none;
}

.copyright {
    color: var(--text-secondary);
    font-size: 14px;
}

/* Responsive Design - Mobile First Approach */

/* Small tablets and large phones (600px and up) */
@media (min-width: 600px) {
    h1 {
        font-size: 32px;
    }
    
    h2 {
        font-size: 24px;
    }
    
    h3 {
        font-size: 20px;
    }
    
    .hero-title {
        font-size: 40px;
    }
    
    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
    
    .screenshots-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    
    .download-buttons {
        flex-direction: row;
        justify-content: center;
    }
    
    .footer-content {
        flex-direction: row;
        justify-content: space-between;
    }
}

/* Medium tablets (768px and up) */
@media (min-width: 768px) {
    .container {
        padding: 0 calc(var(--spacing-unit) * 2);
    }
    
    .hero-content {
        grid-template-columns: 1fr 1fr;
        align-items: center;
        text-align: left;
    }
    
    .hero-text {
        order: 1;
    }
    
    .hero-image {
        order: 2;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .screenshots-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Large tablets and small desktops (1024px and up) */
@media (min-width: 1024px) {
    .section {
        padding: calc(var(--spacing-unit) * 4) 0;
    }
    
    .hero {
        padding: calc(var(--spacing-unit) * 4) 0;
    }
    
    .hero-title {
        font-size: 48px;
    }
    
    .hero-subtitle {
        font-size: 20px;
    }
    
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .screenshots-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Large desktops (1200px and up) */
@media (min-width: 1200px) {
    .container {
        padding: 0 calc(var(--spacing-unit) * 3);
    }
    
    .hero-title {
        font-size: 56px;
    }
}

/* Mobile Navigation Styles */
@media (max-width: 599px) {
    .nav-toggle {
        display: block;
    }
    
    .nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--white);
        box-shadow: var(--shadow);
        flex-direction: column;
        padding: var(--spacing-unit);
        gap: var(--spacing-unit);
    }
    
    .nav.nav-open {
        display: flex;
    }
    
    .nav-link {
        padding: 12px 0;
        border-bottom: 1px solid #e0e0e0;
    }
    
    .nav-link:last-child {
        border-bottom: none;
    }
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles for keyboard navigation */
.btn:focus,
.nav-link:focus,
.footer-link:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
        --shadow-hover: 0 4px 8px rgba(0, 0, 0, 0.4);
    }
}

/* Privacy Policy Page Styles */
.privacy-policy {
    background-color: var(--white);
}

.privacy-content {
    max-width: 800px;
    margin: 0 auto;
}

.page-title {
    font-size: 32px;
    font-weight: 300;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: calc(var(--spacing-unit) * 0.5);
}

.last-updated {
    text-align: center;
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: calc(var(--spacing-unit) * 2);
}

.privacy-section {
    margin-bottom: calc(var(--spacing-unit) * 2);
}

.privacy-section h2 {
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: var(--spacing-unit);
    padding-top: var(--spacing-unit);
    border-top: 1px solid #e0e0e0;
}

.privacy-section:first-of-type h2 {
    border-top: none;
    padding-top: 0;
}

.privacy-section h3 {
    color: var(--text-color);
    font-weight: 500;
    margin-bottom: calc(var(--spacing-unit) * 0.75);
    margin-top: calc(var(--spacing-unit) * 1.5);
}

.privacy-section ul {
    margin-left: calc(var(--spacing-unit) * 1.5);
    margin-bottom: var(--spacing-unit);
}

.privacy-section li {
    margin-bottom: calc(var(--spacing-unit) * 0.5);
    line-height: 1.6;
}

.privacy-section a {
    color: var(--primary-color);
    text-decoration: none;
}

.privacy-section a:hover,
.privacy-section a:focus {
    text-decoration: underline;
    outline: none;
}

/* Active navigation link styling */
.nav-link.active,
.footer-link.active {
    color: var(--primary-color);
    font-weight: 500;
}

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

.image-modal.modal-open {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: var(--white);
    font-size: 32px;
    cursor: pointer;
    z-index: 1001;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.modal-close:hover,
.modal-close:focus {
    background-color: rgba(255, 255, 255, 0.2);
    outline: none;
}

.modal-image-container {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 100%;
    max-height: calc(90vh - 80px);
}

.modal-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: var(--border-radius);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.modal-caption {
    color: var(--white);
    text-align: center;
    margin-top: var(--spacing-unit);
    padding: 0 var(--spacing-unit);
    font-size: 16px;
    line-height: 1.4;
}

/* Enhanced screenshot hover effects */
.screenshots-grid .screenshot img {
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
}

.screenshots-grid .screenshot img:hover,
.screenshots-grid .screenshot img:focus {
    transform: scale(1.05);
    opacity: 0.9;
    outline: 2px solid var(--primary-color);
    outline-offset: 4px;
}

/* Responsive adjustments for privacy policy */
@media (min-width: 768px) {
    .page-title {
        font-size: 40px;
    }
    
    .last-updated {
        font-size: 16px;
    }
}

@media (min-width: 1024px) {
    .page-title {
        font-size: 48px;
    }
}