/* Writers Session Pro - Custom Styles */

:root {
    --primary-color: #FE8200;
    --primary-dark: #E67300;
    --text-dark: #1D1D1F;
    --text-muted: #6E6E73;
    --bg-light: #F5F5F7;
    --border-color: #D2D2D7;
    /* Override Bootstrap primary color */
    --bs-primary: #FE8200;
    --bs-primary-rgb: 254, 130, 0;
}

/* Base Styles */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    /* Performance optimization */
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-dark);
}

.display-3, .display-4, .display-5 {
    letter-spacing: -0.02em;
}

/* Override Bootstrap primary color for icons and text */
.text-primary {
    color: var(--primary-color) !important;
}

/* Navigation */
.navbar {
    transition: all 0.3s ease;
    padding: 1rem 0;
}

.navbar-brand {
    font-size: 1.25rem;
    color: var(--text-dark) !important;
}

.navbar-nav .nav-link {
    font-weight: 500;
    color: var(--text-dark) !important;
    margin: 0 0.5rem;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-color) !important;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #F5F5F7 0%, #FFFFFF 100%);
    padding-top: 6rem;
    padding-bottom: 6rem;
}

.min-vh-75 {
    min-height: 75vh;
}

/* App Icon */
.app-icon-hero {
    width: 180px;
    height: 180px;
    border-radius: 26px;
    flex-shrink: 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* One In A Billion Logo */
.one-in-a-billion-logo {
    max-width: 500px;
    height: auto;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

/* Feature Icons */
.feature-icon {
    display: inline-block;
    transition: transform 0.3s ease;
}

.feature-icon:hover {
    transform: scale(1.1);
}

/* Feature Icon Boxes */
.feature-icon-box {
    margin-bottom: 1rem;
}

.icon-bg-primary {
    width: 60px;
    height: 60px;
    background-color: var(--primary-color);
    font-size: 1.5rem;
}

/* Cards */
.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 1rem;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1) !important;
}

/* Buttons */
.btn {
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
}

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

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(254, 130, 0, 0.3);
}

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

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

/* Images */
img {
    max-width: 100%;
    height: auto;
    transition: transform 0.3s ease, opacity 0.5s ease-in;
    transform-origin: center center;
    will-change: transform;
    /* Performance optimization */
    content-visibility: auto;
    contain-intrinsic-size: 1px 400px;
}

/* Image Hover Zoom Effect */
img:hover {
    transform: scale(1.05);
    cursor: pointer;
}

/* Special handling for images in specific containers to prevent layout issues */
.hero-section img,
section img {
    display: block;
}

/* Prevent overflow when images zoom - transform doesn't affect layout, but this ensures clean edges */
.card {
    overflow: hidden;
}

.rounded {
    border-radius: 1rem !important;
}

.shadow-lg {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15) !important;
}

/* Sections */
section {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

.bg-light {
    background-color: var(--bg-light) !important;
}

/* Badges */
.badge {
    padding: 0.5rem 1rem;
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Lists */
.list-unstyled li {
    padding-left: 0;
}

/* Spacing Utilities */
.py-5 {
    padding-top: 4rem !important;
    padding-bottom: 4rem !important;
}

.mb-5 {
    margin-bottom: 3rem !important;
}

/* Download Section */
.bg-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%) !important;
}

.bg-primary,
.bg-primary h1,
.bg-primary h2,
.bg-primary h3,
.bg-primary h4,
.bg-primary h5,
.bg-primary h6,
.bg-primary p,
.bg-primary .lead,
.bg-primary .small {
    color: white !important;
}

/* Privacy Section */
.card {
    border-radius: 1.5rem;
}

/* Footer */
footer {
    background-color: #1D1D1F !important;
    color: white !important;
}

footer h5,
footer h6 {
    color: white !important;
}

footer p {
    color: rgba(255, 255, 255, 0.7) !important;
}

footer a {
    transition: color 0.3s ease;
    color: rgba(255, 255, 255, 0.7) !important;
}

footer a:hover,
footer a.footer-link:hover {
    color: white !important;
}

footer .text-white-50 {
    color: rgba(255, 255, 255, 0.7) !important;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero-section {
        padding-top: 4rem;
        padding-bottom: 4rem;
    }
    
    .display-3 {
        font-size: 2.5rem;
    }
    
    .display-4 {
        font-size: 2rem;
    }
    
    .display-5 {
        font-size: 1.75rem;
    }
    
    section {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }
    
    .py-5 {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }
    
    /* Slightly reduced zoom on smaller screens for better mobile experience */
    img:hover {
        transform: scale(1.03);
    }
}

@media (max-width: 576px) {
    .hero-section {
        text-align: center;
    }
    
    .btn-lg {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .navbar-brand {
        font-size: 1.1rem;
    }
    
    .app-icon-hero {
        width: 100px;
        height: 100px;
    }
    
    .hero-section .d-flex.align-items-center {
        flex-direction: column;
        text-align: center;
    }
}

/* Accessibility */
a:focus,
button:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Skip to Main Content Link */
.visually-hidden-focusable {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.visually-hidden-focusable:focus {
    position: fixed !important;
    width: auto !important;
    height: auto !important;
    padding: 0.5rem 1rem !important;
    margin: 0.5rem !important;
    overflow: visible !important;
    clip: auto !important;
    white-space: normal !important;
    z-index: 10000 !important;
    top: 10px !important;
    left: 10px !important;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Loading States */
img {
    opacity: 0;
    animation: fadeIn 0.5s ease-in forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* Print Styles */
@media print {
    .navbar,
    footer,
    .btn {
        display: none;
    }
}

