/* Custom CSS for ShadowHawk Password Manager Promotional Page */

/* CRITICAL MOBILE FIXES - Must be at top for priority */
@media (max-width: 576px) {
    html, body {
        overflow-x: hidden !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    
    .container-fluid {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    
    .row {
        margin-left: 0 !important;
        margin-right: 0 !important;
        width: 100% !important;
    }
    
    .col-12,
    .col-lg-6 {
        padding-left: 0.5rem !important;
        padding-right: 0.5rem !important;
        width: 100% !important;
        max-width: 100% !important;
    }
}

:root {
    --primary-color: #4285F4;
    --secondary-color: #34A853;
    --accent-color: #EA4335;
    --warning-color: #FBBC05;
    --dark-bg: #1a1a1a;
    --darker-bg: #121212;
    --light-text: #e0e0e0;
    --muted-text: #b0b0b0;
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Add smooth transitions for theme changes */
* {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* Navigation */
.navbar {
    background: rgba(26, 26, 26, 0.95) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    padding: 1rem 0;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
}

.navbar-nav .nav-link {
    font-weight: 500;
    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, var(--dark-bg) 0%, var(--darker-bg) 100%);
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(66, 133, 244, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(52, 168, 83, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(234, 67, 53, 0.2) 0%, transparent 50%);
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(1deg); }
}

.hero-content {
    position: relative;
    z-index: 2;
    animation: fadeInUp 1s ease-out;
}

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

.hero-stats .stat-item {
    text-align: center;
    padding: 1rem 0;
}

/* Mock App Window */
.hero-image {
    position: relative;
    z-index: 2;
    animation: fadeInRight 1s ease-out 0.3s both;
}

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

.mock-app-window {
    background: var(--darker-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    max-width: 500px;
    margin: 0 auto;
    transform: perspective(1000px) rotateY(-5deg) rotateX(5deg);
    transition: transform 0.3s ease;
}

.mock-app-window:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

.mock-titlebar {
    background: rgba(255, 255, 255, 0.05);
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mock-buttons {
    display: flex;
    gap: 0.5rem;
    margin-right: 1rem;
}

.mock-btn {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.mock-close { background: #ff5f56; }
.mock-minimize { background: #ffbd2e; }
.mock-maximize { background: #27ca3f; }

.mock-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--light-text);
}

.mock-content {
    display: flex;
    height: 300px;
}

.mock-sidebar {
    width: 200px;
    background: rgba(255, 255, 255, 0.03);
    padding: 1rem;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.mock-sidebar-item {
    padding: 0.5rem 0.75rem;
    margin-bottom: 0.25rem;
    border-radius: 6px;
    font-size: 0.875rem;
    color: var(--muted-text);
    cursor: pointer;
    transition: all 0.2s ease;
}

.mock-sidebar-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--light-text);
}

.mock-sidebar-item.active {
    background: var(--primary-color);
    color: white;
}

.mock-main {
    flex: 1;
    padding: 1rem;
}

.mock-password-item {
    display: flex;
    align-items: center;
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.mock-password-item:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateX(2px);
}

.mock-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    margin-right: 0.75rem;
}

.mock-password-item:nth-child(2) .mock-icon {
    background: var(--secondary-color);
}

.mock-password-item:nth-child(3) .mock-icon {
    background: var(--accent-color);
}

.mock-title {
    font-weight: 600;
    color: var(--light-text);
    font-size: 0.9rem;
}

.mock-subtitle {
    color: var(--muted-text);
    font-size: 0.8rem;
}

/* Feature Cards */
.feature-card {
    background: var(--darker-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(66, 133, 244, 0.1) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 20px 40px rgba(66, 133, 244, 0.2);
}

.feature-icon {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 2;
}

.feature-card h4 {
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
}

.feature-card p {
    color: var(--muted-text);
    margin-bottom: 0;
    position: relative;
    z-index: 2;
}

/* Security Section */
.security-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 400px;
    position: relative;
}

.security-shield {
    position: relative;
    z-index: 2;
}

.security-shield i {
    font-size: 8rem;
    color: var(--secondary-color);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.security-rings {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.ring {
    position: absolute;
    border: 2px solid var(--secondary-color);
    border-radius: 50%;
    opacity: 0.3;
}

.ring-1 {
    width: 200px;
    height: 200px;
    top: -100px;
    left: -100px;
    animation: rotate 10s linear infinite;
}

.ring-2 {
    width: 250px;
    height: 250px;
    top: -125px;
    left: -125px;
    animation: rotate 15s linear infinite reverse;
}

.ring-3 {
    width: 300px;
    height: 300px;
    top: -150px;
    left: -150px;
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.security-item {
    display: flex;
    align-items: center;
    font-size: 1.1rem;
}

/* Screenshot Cards */
.screenshot-img {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    width: 100%;
    height: auto;
    object-fit: cover;
}

.screenshot-img:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2) !important;
}

/* Add click indicator */
.main-screenshot,
.secondary-screenshot,
.theme-screenshot,
.feature-screenshot {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    cursor: pointer;
}

.secondary-screenshot,
.theme-screenshot,
.feature-screenshot {
    border-radius: 8px;
}

/* Add zoom icon on hover */
.main-screenshot::before,
.secondary-screenshot::before,
.theme-screenshot::before,
.feature-screenshot::before {
    content: '\f56b'; /* Bootstrap icon for zoom */
    font-family: 'bootstrap-icons';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 10;
    pointer-events: none;
}

.main-screenshot:hover::before,
.secondary-screenshot:hover::before,
.theme-screenshot:hover::before,
.feature-screenshot:hover::before {
    opacity: 1;
}

.screenshot-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 20px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.feature-screenshot .screenshot-overlay {
    padding: 10px;
}

.main-screenshot:hover .screenshot-overlay,
.secondary-screenshot:hover .screenshot-overlay,
.theme-screenshot:hover .screenshot-overlay,
.feature-screenshot:hover .screenshot-overlay {
    transform: translateY(0);
}

/* Fallback placeholder styling for missing images */
.screenshot-img {
    min-height: 200px;
    background: linear-gradient(135deg, var(--bs-primary), var(--bs-secondary));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 3rem;
    position: relative;
}

.main-screenshot .screenshot-img {
    min-height: 400px;
}

.secondary-screenshot .screenshot-img,
.theme-screenshot .screenshot-img {
    min-height: 200px;
}

.feature-screenshot .screenshot-img {
    min-height: 150px;
}

/* Placeholder content for missing images */
.screenshot-img::before {
    content: "📸 Screenshot";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.5rem;
    text-align: center;
    z-index: 1;
}

/* Download Cards */
.download-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
}

.download-card:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
}

.download-card i {
    opacity: 0.8;
}

/* Theme Toggle */
#themeToggle {
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

#themeToggle:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary-color);
}

/* Light Theme Overrides */
[data-bs-theme="light"] {
    --dark-bg: #ffffff;
    --darker-bg: #f8f9fa;
    --light-text: #212529;
    --muted-text: #6c757d;
}

[data-bs-theme="light"] .navbar {
    background: rgba(255, 255, 255, 0.95) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

[data-bs-theme="light"] .navbar-brand {
    color: #212529 !important;
}

[data-bs-theme="light"] .navbar-brand span {
    color: #212529 !important;
}

[data-bs-theme="light"] .navbar-nav .nav-link {
    color: #212529 !important;
}

[data-bs-theme="light"] .navbar-nav .nav-link:hover {
    color: var(--primary-color) !important;
}

[data-bs-theme="light"] .hero-section {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    color: #212529;
}

[data-bs-theme="light"] .hero-content h1 {
    color: #212529;
}

[data-bs-theme="light"] .hero-content .lead {
    color: #495057;
}

[data-bs-theme="light"] .hero-section::before {
    background: 
        radial-gradient(circle at 20% 80%, rgba(66, 133, 244, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(52, 168, 83, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(234, 67, 53, 0.05) 0%, transparent 50%);
}

[data-bs-theme="light"] .mock-app-window {
    background: #ffffff;
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(0, 0, 0, 0.1);
}

[data-bs-theme="light"] .mock-titlebar {
    background: rgba(0, 0, 0, 0.05);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

[data-bs-theme="light"] .mock-title {
    color: #212529;
}

[data-bs-theme="light"] .mock-sidebar {
    background: rgba(0, 0, 0, 0.03);
    border-right: 1px solid rgba(0, 0, 0, 0.1);
}

[data-bs-theme="light"] .mock-sidebar-item {
    color: #6c757d;
}

[data-bs-theme="light"] .mock-sidebar-item:hover {
    background: rgba(0, 0, 0, 0.05);
    color: #212529;
}

[data-bs-theme="light"] .mock-password-item {
    background: rgba(0, 0, 0, 0.03);
}

[data-bs-theme="light"] .mock-password-item:hover {
    background: rgba(0, 0, 0, 0.08);
}

[data-bs-theme="light"] .mock-title {
    color: #212529;
}

[data-bs-theme="light"] .mock-subtitle {
    color: #6c757d;
}

[data-bs-theme="light"] .feature-card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: #212529;
}

[data-bs-theme="light"] .feature-card p {
    color: #6c757d;
}

[data-bs-theme="light"] .feature-card:hover {
    box-shadow: 0 20px 40px rgba(66, 133, 244, 0.1);
}

[data-bs-theme="light"] .screenshot-overlay {
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
}

[data-bs-theme="light"] .screenshot-img:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
}

[data-bs-theme="light"] .security-item {
    color: #212529;
}

[data-bs-theme="light"] .text-muted {
    color: #6c757d !important;
}

[data-bs-theme="light"] .btn-outline-light {
    color: #212529;
    border-color: #212529;
}

[data-bs-theme="light"] .btn-outline-light:hover {
    background-color: #212529;
    color: #ffffff;
}

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

/* Responsive Design */

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
    
    .hero-content h1 {
        font-size: 3.5rem;
    }
    
    .mock-app-window {
        transform: scale(1.05);
    }
}

/* Desktop and larger screens - restore original layout */
@media (min-width: 992px) {
    .hero-content {
        text-align: left !important;
        margin-bottom: 0 !important;
        padding: 0 !important;
    }
    
    .hero-content .d-flex {
        flex-direction: row !important;
    }
    
    .hero-content .btn {
        width: auto !important;
        margin-bottom: 0 !important;
    }
    
    .hero-stats {
        margin-top: 3rem !important;
    }
    
    .hero-stats .col-12 {
        flex: 0 0 33.333333% !important;
        max-width: 33.333333% !important;
        text-align: left !important;
    }
    
    .hero-image {
        display: block !important;
        margin-top: 0 !important;
    }
    
    .mock-app-window {
        transform: scale(1) !important;
    }
    
    .hero-section {
        padding: 0 !important;
    }
    
    .hero-section .min-vh-100 {
        min-height: 100vh !important;
    }
}

/* Large devices (desktops, 992px and up) */
@media (max-width: 1199.98px) {
    .hero-content h1 {
        font-size: 3rem;
    }
    
    .mock-app-window {
        transform: scale(0.95);
    }
    
    .feature-card {
        padding: 1.5rem;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (max-width: 991.98px) {
    .hero-content {
        text-align: center;
        margin-bottom: 2rem;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-stats {
        justify-content: center;
        margin-top: 2rem;
    }
    
    .mock-app-window {
        transform: scale(0.85);
        margin: 2rem auto 0;
    }
    
    .feature-card {
        text-align: center;
        margin-bottom: 2rem;
    }
    
    .security-visual {
        text-align: center;
        margin-top: 3rem;
    }
    
    .navbar-nav {
        text-align: center;
        padding: 1rem 0;
    }
    
    .navbar-nav .nav-item {
        margin: 0.25rem 0;
    }
    
    .navbar-nav .btn {
        margin: 0.5rem auto;
        display: inline-block;
    }
    
    .download-options .col-md-4 {
        margin-bottom: 1rem;
    }
    
    /* Hide mock app on tablets and smaller for better mobile experience */
    .hero-image {
        display: none !important;
    }
    
    .col-12.col-lg-6.order-2.order-lg-2 {
        display: none !important;
    }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    .container {
        max-width: 540px !important;
        padding-left: 20px !important;
        padding-right: 20px !important;
    }
    
    .hero-content h1 {
        font-size: 2.2rem !important;
    }
    
    .hero-content .btn {
        width: auto !important;
        min-width: 160px !important;
    }
    
    .hero-stats .col-12 {
        flex: 0 0 33.333333% !important;
        max-width: 33.333333% !important;
    }
    
    /* Hide mock app window on smaller devices to prevent overlap */
    .hero-image {
        display: none !important;
    }
    
    .col-12.col-lg-6.order-2.order-lg-2 {
        display: none !important;
    }
    
    .mock-app-window {
        transform: scale(0.75) !important;
    }
    
    .feature-card {
        padding: 2rem 1.5rem !important;
    }
    
    .screenshot-img {
        min-height: 180px !important;
    }
    
    .download-card {
        padding: 2rem 1.5rem !important;
    }
}

/* Small devices (landscape phones, 576px and up) */
@media (max-width: 767.98px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .hero-content h1 {
        font-size: 2rem;
        line-height: 1.2;
    }
    
    .hero-content .lead {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    .hero-content .btn {
        font-size: 0.9rem;
        padding: 0.75rem 1.5rem;
        margin-bottom: 0.5rem;
    }
    
    .hero-stats .col-4 {
        text-align: center;
        margin-bottom: 1rem;
    }
    
    .hero-stats h3 {
        font-size: 1.5rem;
    }
    
    /* Hide hero image on mobile and small tablets */
    .hero-image {
        display: none !important;
    }
    
    .col-12.col-lg-6.order-2.order-lg-2 {
        display: none !important;
    }
    
    .mock-app-window {
        transform: scale(0.7);
        margin: 1rem auto;
    }
    
    .mock-content {
        min-height: 200px;
    }
    
    .mock-sidebar {
        width: 120px;
    }
    
    .mock-sidebar-item {
        font-size: 0.8rem;
        padding: 0.5rem;
    }
    
    .feature-card {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .feature-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .feature-card h4 {
        font-size: 1.25rem;
    }
    
    .security-visual {
        display: none !important; /* Hide security visual on mobile for cleaner layout */
    }
    
    .security-shield {
        display: none !important;
    }
    
    .security-shield i {
        font-size: 4rem;
    }
    
    .ring-1, .ring-2, .ring-3 {
        width: 150px;
        height: 150px;
        top: -75px;
        left: -75px;
    }
    
    .ring-2 {
        width: 180px;
        height: 180px;
        top: -90px;
        left: -90px;
    }
    
    .ring-3 {
        width: 210px;
        height: 210px;
        top: -105px;
        left: -105px;
    }
    
    .download-card {
        padding: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .download-card i {
        font-size: 2.5rem;
    }
    
    .navbar-brand img {
        width: 28px !important;
        height: 28px !important;
    }
    
    .navbar-brand span {
        font-size: 1.1rem;
    }
    
    /* Screenshots responsive */
    .main-screenshot .screenshot-img {
        min-height: 250px;
    }
    
    .secondary-screenshot .screenshot-img,
    .theme-screenshot .screenshot-img {
        min-height: 150px;
    }
    
    .feature-screenshot .screenshot-img {
        min-height: 120px;
    }
    
    .screenshot-overlay {
        padding: 15px;
    }
    
    .screenshot-overlay h5,
    .screenshot-overlay h6 {
        font-size: 1rem;
    }
    
    .screenshot-overlay p {
        font-size: 0.875rem;
    }
    
    .py-5 {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }
}

/* Mobile-First Responsive Design */

/* Base mobile styles (320px+) */
@media (max-width: 575.98px) {
    /* Container fixes for mobile */
    .container {
        max-width: 100% !important;
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
    
    /* Navbar mobile fixes */
    .navbar {
        padding: 0.5rem 0 !important;
    }
    
    .navbar-brand {
        font-size: 1.1rem !important;
    }
    
    .navbar-brand img {
        width: 24px !important;
        height: 24px !important;
    }
    
    .navbar-toggler {
        border: none !important;
        padding: 0.25rem 0.5rem !important;
    }
    
    .navbar-collapse {
        margin-top: 1rem;
    }
    
    .navbar-nav {
        text-align: center;
    }
    
    .navbar-nav .nav-item {
        margin: 0.5rem 0;
    }
    
    .navbar-nav .btn {
        margin: 1rem auto;
        display: block;
        width: 120px;
    }
    
    /* Hero section mobile fixes */
    .hero-section {
        padding: 2rem 0 !important;
        min-height: auto !important;
    }
    
    .hero-section .min-vh-100 {
        min-height: auto !important;
    }
    
    .hero-section .row {
        margin: 0 !important;
    }
    
    .hero-content {
        text-align: center !important;
        padding: 1rem;
        margin-bottom: 2rem !important;
    }
    
    .hero-content h1 {
        font-size: 1.8rem !important;
        line-height: 1.3 !important;
        margin-bottom: 1rem !important;
    }
    
    .hero-content .lead {
        font-size: 0.95rem !important;
        margin-bottom: 1.5rem !important;
        line-height: 1.5 !important;
    }
    
    .hero-content .btn {
        width: 100% !important;
        margin-bottom: 0.75rem !important;
        padding: 0.75rem 1rem !important;
        font-size: 0.9rem !important;
    }
    
    .hero-content .d-flex {
        flex-direction: column !important;
    }
    
    /* Hero stats mobile */
    .hero-stats {
        margin-top: 2rem !important;
    }
    
    .hero-stats .col-12 {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        margin-bottom: 1rem !important;
        text-align: center !important;
    }
    
    .hero-stats h3 {
        font-size: 1.5rem !important;
    }
    
    .hero-stats p {
        font-size: 0.8rem !important;
    }
    
    /* Mock app window mobile - hide on very small screens */
    .hero-image {
        margin-top: 1rem !important;
        display: none !important; /* Hide on mobile for better focus on content */
    }
    
    .col-12.col-lg-6.order-2.order-lg-2 {
        display: none !important; /* Ensure entire hero image column is hidden on mobile */
    }
    
    .mock-app-window {
        transform: scale(0.6) !important;
        margin: 0 auto !important;
        max-width: 100% !important;
        overflow: hidden !important;
    }
    
    .mock-sidebar {
        width: 60px !important;
    }
    
    .mock-sidebar-item {
        font-size: 0.6rem !important;
        padding: 0.25rem !important;
    }
    
    .mock-sidebar-item span {
        display: none !important;
    }
    
    .mock-password-item {
        font-size: 0.7rem !important;
        padding: 0.5rem !important;
    }
    
    /* Sections mobile */
    .py-5 {
        padding-top: 2.5rem !important;
        padding-bottom: 2.5rem !important;
    }
    
    .mb-5 {
        margin-bottom: 2rem !important;
    }
    
    .display-5 {
        font-size: 1.8rem !important;
    }
    
    .lead {
        font-size: 1rem !important;
    }
    
    /* Feature cards mobile */
    .feature-card {
        padding: 1.5rem 1rem !important;
        margin-bottom: 1.5rem !important;
        text-align: center !important;
    }
    
    .feature-icon {
        width: 50px !important;
        height: 50px !important;
        font-size: 1.2rem !important;
        margin: 0 auto 1rem !important;
    }
    
    .feature-card h4 {
        font-size: 1.1rem !important;
        margin-bottom: 0.75rem !important;
    }
    
    .feature-card p {
        font-size: 0.9rem !important;
    }
    
    /* Security section mobile - hide visual elements */
    .security-visual {
        display: none !important; /* Hide security visual completely on mobile */
    }
    
    .security-shield {
        display: none !important;
    }
    
    .ring-1, .ring-2, .ring-3 {
        display: none !important;
    }
    
    .security-item {
        font-size: 0.9rem !important;
        margin-bottom: 0.75rem !important;
    }
    
    /* Screenshots mobile */
    .screenshot-img {
        min-height: 150px !important;
    }
    
    .main-screenshot .screenshot-img {
        min-height: 180px !important;
    }
    
    .secondary-screenshot .screenshot-img,
    .theme-screenshot .screenshot-img {
        min-height: 120px !important;
    }
    
    .feature-screenshot .screenshot-img {
        min-height: 100px !important;
    }
    
    .screenshot-overlay {
        padding: 8px !important;
        font-size: 0.8rem !important;
        background: linear-gradient(transparent, rgba(0, 0, 0, 0.9)) !important;
    }
    
    .screenshot-overlay h5,
    .screenshot-overlay h6 {
        font-size: 0.8rem !important;
        margin-bottom: 0.25rem !important;
    }
    
    .screenshot-overlay p {
        font-size: 0.7rem !important;
        margin-bottom: 0 !important;
    }
    
    /* Download section mobile */
    .download-card {
        padding: 1.5rem 1rem !important;
        margin-bottom: 1rem !important;
        text-align: center !important;
    }
    
    .download-card i {
        font-size: 2rem !important;
    }
    
    .download-card h5 {
        font-size: 1.1rem !important;
    }
    
    .download-card .btn {
        font-size: 0.9rem !important;
        padding: 0.5rem 1rem !important;
    }
    
    /* Footer mobile */
    .footer .row {
        text-align: center !important;
    }
    
    .footer .col-md-6:last-child {
        margin-top: 1rem !important;
    }
    
    .footer img {
        width: 20px !important;
        height: 20px !important;
    }
    
    /* Fix overflow issues */
    body {
        overflow-x: hidden !important;
    }
    
    .row {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    
    .col-lg-6,
    .col-md-6,
    .col-sm-4,
    .col-4 {
        padding-left: 0.75rem !important;
        padding-right: 0.75rem !important;
    }
}

/* Landscape phone optimization */
@media (max-width: 767.98px) and (orientation: landscape) {
    .hero-section {
        padding: 1rem 0;
    }
    
    .mock-app-window {
        transform: scale(0.5);
    }
    
    .hero-content {
        margin-bottom: 1rem;
    }
    
    .hero-content h1 {
        font-size: 1.5rem;
    }
    
    .py-5 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .feature-card:hover,
    .screenshot-img:hover {
        transform: none;
        box-shadow: none;
    }
    
    .feature-card,
    .screenshot-img {
        transition: none;
    }
    
    .screenshot-overlay {
        transform: translateY(0);
        background: linear-gradient(transparent, rgba(0, 0, 0, 0.6));
    }
    
    .mock-app-window:hover {
        transform: none;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .navbar-brand img,
    .screenshot-img {
        image-rendering: -webkit-optimize-contrast;
    }
}

/* Print styles */
@media print {
    .navbar,
    .hero-section .btn,
    #themeToggle,
    .download-card .btn {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.5;
        color: #000;
        background: #fff;
    }
    
    .hero-content h1 {
        font-size: 24pt;
        color: #000;
    }
    
    .feature-card,
    .screenshot-overlay {
        border: 1px solid #ccc;
        background: #fff;
        color: #000;
    }
}

/* Animation utilities */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--darker-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #3367d6;
}

/* Screenshot Modal Styles */
#screenshotModal .modal-dialog {
    max-width: 90vw;
}

#screenshotModal .modal-content {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

#screenshotModal .modal-body {
    padding: 0;
}

#screenshotModal .btn-close {
    background: rgba(255, 255, 255, 0.8) !important;
    border-radius: 50% !important;
    width: 40px !important;
    height: 40px !important;
    opacity: 1 !important;
}

#screenshotModal .btn-close:hover {
    background: rgba(255, 255, 255, 1) !important;
}

#screenshotModal img {
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-height: 80vh;
    width: auto;
    max-width: 100%;
}

#screenshotModal h5 {
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

#screenshotModal p {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* Click backdrop to close */
#screenshotModal .modal-dialog {
    pointer-events: none;
}

#screenshotModal .modal-content {
    pointer-events: auto;
}
