/* 
 * Automated Living Website Styles
 * Custom Integration Specialists
 */

/* Font Import */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap');

/* CSS Variables */
:root {
    /* Colors */
    --primary-color: #100f0d;
    --secondary-color: #4a4a4a;
    --accent-color: #5e60ce;
    --light-color: #f8f9fa;
    --dark-color: #212529;
    --gray-color: #6c757d;
    --light-gray: #e9ecef;
    
    /* Typography */
    --heading-font: 'Roboto', Arial, sans-serif;
    --body-font: 'Roboto', Arial, sans-serif;
    
    /* Spacing */
    --section-padding: 5rem 0;
    --container-padding: 0 2rem;
    
    /* Transitions */
    --transition-speed: 0.3s;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--body-font);
    line-height: 1.6;
    color: var(--dark-color);
    background-color: var(--light-color);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3rem;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

h3 {
    font-size: 1.75rem;
}

p {
    margin-bottom: 1.5rem;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color var(--transition-speed) ease;
}

a:hover {
    color: var(--accent-color);
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--container-padding);
}

section {
    padding: var(--section-padding);
}

.highlight {
    color: var(--accent-color);
}

/* Buttons */
.button, .cta-button {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    font-family: var(--heading-font);
    font-size: 1rem;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
    text-align: center;
}

.button:hover, .cta-button:hover {
    background-color: var(--accent-color);
    color: white;
    transform: translateY(-2px);
}

/* Hero section "Get Started" button enhancements */
.hero-content .cta-button {
    /* Center the button */
    align-self: center;
    margin-top: 1.5rem;
    
    /* Increase size and spacing */
    padding: 0.9rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    
    /* Visual effects */
    background: linear-gradient(135deg, var(--accent-color), #7678ed);
    box-shadow: 0 4px 15px rgba(94, 96, 206, 0.4);
    border-radius: 6px;
    
    /* Add icon */
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    
    /* Smooth transitions */
    transition: all 0.3s ease;
}

/* Add arrow icon using pseudo-element */
.hero-content .cta-button::after {
    content: "→";
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

/* Enhanced hover effects */
.hero-content .cta-button:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 6px 20px rgba(94, 96, 206, 0.5);
}

.hero-content .cta-button:hover::after {
    transform: translateX(4px);
}

/* Active state */
.hero-content .cta-button:active {
    transform: translateY(0) scale(0.98);
}

/* Dark mode adjustments */
body.dark-mode .hero-content .cta-button {
    background: linear-gradient(135deg, var(--accent-color), #9d4edd);
    box-shadow: 0 4px 15px rgba(187, 134, 252, 0.4);
}

body.dark-mode .hero-content .cta-button:hover {
    box-shadow: 0 6px 20px rgba(187, 134, 252, 0.5);
}

.button.light {
    background-color: white;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.button.light:hover {
    background-color: var(--light-gray);
    color: var(--primary-color);
}

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

/* Header & Navigation */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: all var(--transition-speed) ease;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.logo a {
    display: flex;
    align-items: center;
    color: var(--primary-color);
}

.logo img {
    height: 50px; /* Increased from 40px to make logo larger */
    margin-right: 0.5rem;
}

.logo span {
    font-family: var(--heading-font);
    font-size: 1.5rem;
    font-weight: 700;
}

nav {
    display: flex;
    align-items: center;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 2rem;
}

.nav-links a {
    position: relative;
    font-weight: 500;
    padding-bottom: 0.25rem;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: width var(--transition-speed) ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.cta-button {
    margin-left: 2rem;
}

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
}

.hamburger span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: var(--primary-color);
    transition: all var(--transition-speed) ease;
}

/* Hero Section */
.hero {
    height: 100vh;
    min-height: 700px; /* Increased from 600px to ensure enough space */
    display: flex;
    align-items: center;
    background-color: var(--light-color);
    background-image: linear-gradient(rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.7)), url('../../assets/images/backgrounds/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    margin-top: 70px; /* Header height */
    padding-bottom: 2rem; /* Added padding to ensure button is visible */
}

.hero-content {
    max-width: 800px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    margin: 0 auto;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 1rem; /* Reduced from 1.5rem to move up */
    animation: fadeInUp 1s ease;
    margin-top: -1rem; /* Added negative margin to move up */
}

.rotating-text {
    font-size: 2rem;
    margin-bottom: 2rem;
    min-height: 6rem; /* Increased from 5rem to better accommodate two lines */
    margin-top: -0.5rem; /* Added negative margin to move up */
}

#rotating-services {
    color: var(--accent-color);
    font-weight: 700;
    position: relative;
}

#rotating-services::after {
    content: '|';
    position: absolute;
    right: -8px;
    animation: blink 1s infinite;
}

/* Contact Section */
.contact h2 {
    text-align: left; /* Ensure "Let's get started" heading is left-justified */
}

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

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.footer-logo {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.footer-logo img {
    height: 60px;
    margin-bottom: 1rem;
    filter: brightness(0) invert(1);
}

.copyright {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-link {
    color: inherit;
    text-decoration: underline;
}

.footer-link:hover {
    color: var(--accent-color);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes blink {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0;
    }
}

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

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

/* Dark Mode Toggle */
.dark-mode-toggle {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    transition: all 0.3s ease;
}

.dark-mode-toggle:hover {
    transform: scale(1.1);
    background-color: var(--accent-color);
}

/* High Contrast Mode */
body.high-contrast {
    --primary-color: #000000;
    --secondary-color: #000000;
    --accent-color: #ffff00;
    --light-color: #ffffff;
    --dark-color: #000000;
    --gray-color: #000000;
    --light-gray: #ffffff;
    color: #000000;
    background-color: #ffffff;
}

body.high-contrast a {
    color: #0000ff;
    text-decoration: underline;
}

body.high-contrast a:hover,
body.high-contrast a:focus {
    color: #ff0000;
    text-decoration: underline;
}

body.high-contrast .button,
body.high-contrast .cta-button {
    background-color: #000000;
    color: #ffffff;
    border: 2px solid #000000;
}

body.high-contrast .button:hover,
body.high-contrast .cta-button:hover,
body.high-contrast .button:focus,
body.high-contrast .cta-button:focus {
    background-color: #ffffff;
    color: #000000;
    border: 2px solid #000000;
}

body.high-contrast .button.light {
    background-color: #ffffff;
    color: #000000;
    border: 2px solid #000000;
}

body.high-contrast .button.light:hover,
body.high-contrast .button.light:focus {
    background-color: #000000;
    color: #ffffff;
}

body.high-contrast header {
    background-color: #ffffff;
    border-bottom: 2px solid #000000;
    box-shadow: none;
}

body.high-contrast .nav-links a::after {
    background-color: #0000ff;
    height: 3px;
}

body.high-contrast .highlight {
    color: #ff0000;
    font-weight: bold;
}

/* High contrast mode for benefits and services */
body.high-contrast .benefit,
body.high-contrast .service-column,
body.high-contrast .service-item,
body.high-contrast .step {
    background-color: #ffffff;
    border: 2px solid #000000;
    box-shadow: none;
}

body.high-contrast .benefit:hover,
body.high-contrast .service-column:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 0 #000000;
}

body.high-contrast .benefit-icon,
body.high-contrast .service-icon,
body.high-contrast .step-number {
    background-color: #000000;
    color: #ffffff;
}

body.high-contrast .service-item.primary {
    border-top: 4px solid #ff0000;
}

body.high-contrast .back-button {
    color: #0000ff;
    text-decoration: underline;
}

body.high-contrast .back-button:hover,
body.high-contrast .back-button:focus {
    color: #ff0000;
}

/* Screen Reader Optimization */
body.screen-reader-opt .skip-link {
    background-color: #000000;
    color: #ffffff;
    padding: 10px;
    font-size: 1.2rem;
    z-index: 1001;
}

body.screen-reader-opt a:focus,
body.screen-reader-opt button:focus,
body.screen-reader-opt input:focus,
body.screen-reader-opt [tabindex]:focus {
    outline: 4px solid #ff0000;
    outline-offset: 4px;
}

/* Reduce Motion */
body.reduce-motion * {
    animation: none !important;
    transition: none !important;
}

body.reduce-motion .rotating-text #rotating-services::after {
    animation: none !important;
}

/* Dark Mode Styles */
body.dark-mode {
    --primary-color: #121212;
    --secondary-color: #333333;
    --accent-color: #bb86fc;
    --light-color: #121212;
    --dark-color: #e0e0e0;
    --gray-color: #aaaaaa;
    --light-gray: #333333;
    color: #e0e0e0;
    background-color: #121212;
}

body.dark-mode header {
    background-color: rgba(18, 18, 18, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

body.dark-mode .logo img {
    filter: brightness(0.8) contrast(1.2);
}

body.dark-mode .nav-links a {
    color: #e0e0e0;
}

body.dark-mode .hamburger span {
    background-color: #e0e0e0;
}

body.dark-mode .hero {
    background-image: linear-gradient(rgba(18, 18, 18, 0.9), rgba(18, 18, 18, 0.7)), url('../../assets/images/backgrounds/hero-bg.jpg');
}

/* Dark mode styles for benefits and services */
body.dark-mode .service-column,
body.dark-mode .service-item {
    background-color: #1e1e1e;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

body.dark-mode .benefit:hover,
body.dark-mode .service-column:hover {
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

body.dark-mode .detailed-services,
body.dark-mode .design-philosophy {
    background-color: #121212;
}

/* Updated footer styles for dark mode */
body.dark-mode footer {
    background-color: #1e1e1e;
    color: #e0e0e0;
}

body.dark-mode footer a {
    color: #e0e0e0;
}

body.dark-mode footer a:hover {
    color: var(--accent-color);
}

body.dark-mode .copyright {
    border-top: 1px solid rgba(224, 224, 224, 0.1);
}

/* Invert dark buttons in dark mode */
body.dark-mode .button.dark {
    background-color: #e0e0e0;
    color: #121212;
    border: 1px solid #e0e0e0;
}

body.dark-mode .button.dark:hover {
    background-color: var(--accent-color);
    color: #121212;
}

body.dark-mode .cta-button {
    background-color: #e0e0e0;
    color: #121212;
}

body.dark-mode .cta-button:hover {
    background-color: var(--accent-color);
    color: #121212;
}

/* Cookie Consent Banner */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--primary-color);
    color: white;
    padding: 1rem 0;
    z-index: 1001;
    display: none;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
}

.cookie-consent.active {
    display: block;
    animation: slideUp 0.5s ease;
}

/* Accessibility Widget */
.accessibility-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    font-family: var(--body-font);
}

.accessibility-toggle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--accent-color);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.accessibility-panel {
    position: absolute;
    bottom: 60px;
    right: 0;
    width: 300px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    padding: 1.5rem;
    display: none;
}

/* Dark mode for accessibility panel */
body.dark-mode .accessibility-panel {
    background-color: #1e1e1e;
    color: #e0e0e0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
}

body.dark-mode .accessibility-option label {
    color: #e0e0e0;
}

body.dark-mode .control-button {
    background-color: #333;
    color: #e0e0e0;
    border: 1px solid #555;
}

body.dark-mode .control-button:hover {
    background-color: #444;
}

body.dark-mode .close-button {
    background-color: #333;
    color: #e0e0e0;
    border: 1px solid #555;
}

body.dark-mode .close-button:hover {
    background-color: #444;
}

body.dark-mode .toggle-label {
    background-color: #333;
}

body.dark-mode .toggle-input:checked + .toggle-label {
    background-color: var(--accent-color);
}

.accessibility-panel.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

/* Skip to content link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--accent-color);
    color: white;
    padding: 8px;
    z-index: 1001;
    transition: top 0.3s ease;
    opacity: 0;
}

.skip-link:focus {
    top: 0;
    opacity: 1;
}

/* Design Philosophy Section */
.design-philosophy {
    background: linear-gradient(to right, var(--light-color), rgba(94, 96, 206, 0.1));
    padding: 4rem 0;
}

.design-philosophy h2 {
    text-align: left; /* Changed from center to left */
    margin-bottom: 2rem;
}

.philosophy-content {
    max-width: 1100px;
    margin: 0; /* Removed auto margin to align with title */
    line-height: 1.8;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 2rem;
}

.philosophy-text {
    flex: 1;
    min-width: 300px;
}

.philosophy-text p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.philosophy-image {
    flex: 1;
    min-width: 300px;
}

.philosophy-image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.philosophy-image img:hover {
    transform: scale(1.02);
}

/* Dark mode styles for philosophy section */
body.dark-mode .design-philosophy {
    background: linear-gradient(to right, var(--light-color), rgba(187, 134, 252, 0.15));
}

body.dark-mode .philosophy-image img {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Media Queries for Responsive Design */
@media (max-width: 768px) {
    /* Philosophy section */
    .philosophy-content {
        flex-direction: column;
    }
    
    .philosophy-image {
        order: -1;
        margin-bottom: 1.5rem;
    }
    
    /* Mobile Navigation */
    header .container {
        padding-top: 0.5rem;
        padding-bottom: 0.5rem;
        justify-content: space-between;
    }
    
    .logo img {
        height: 40px; /* Smaller logo on mobile */
    }
    
    /* Hide nav links on mobile */
    .nav-links {
        display: none;
    }
    
    /* Hide hamburger menu on mobile */
    .hamburger {
        display: none;
    }
    
    /* Ensure Call Us button is visible */
    .cta-button {
        margin-left: 0;
    }
    
    /* Adjust spacing for mobile */
    nav {
        justify-content: flex-end;
    }
}

/* About Section */
.about h2 {
    text-align: left; /* Changed from center to left */
}

/* Benefits Section */
.benefits {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    margin-left: auto;
    margin-right: auto;
}

/* Updated benefit styles with gradients */
.benefit {
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.benefit:nth-of-type(1) {
    background: linear-gradient(135deg, #f8f9fa, rgba(94, 156, 206, 0.1));
}

.benefit:nth-of-type(2) {
    background: linear-gradient(135deg, rgba(94, 156, 206, 0.1), rgba(94, 96, 206, 0.1));
}

.benefit:nth-of-type(3) {
    background: linear-gradient(135deg, rgba(94, 96, 206, 0.1), rgba(94, 156, 206, 0.1));
}

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

.benefit-icon {
    width: 60px;
    height: 60px;
    background-color: var(--accent-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

/* Dark mode styles for benefits */
body.dark-mode .benefit:nth-of-type(1) {
    background: linear-gradient(135deg, #1e1e1e, rgba(94, 156, 206, 0.2));
}

body.dark-mode .benefit:nth-of-type(2) {
    background: linear-gradient(135deg, rgba(94, 156, 206, 0.2), rgba(94, 96, 206, 0.2));
}

body.dark-mode .benefit:nth-of-type(3) {
    background: linear-gradient(135deg, rgba(94, 96, 206, 0.2), rgba(94, 156, 206, 0.2));
}

body.dark-mode .benefit {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Services Section */
.services h2 {
    text-align: left; /* Ensure "What We Do" heading is left-justified */
}

/* Service Columns */
.service-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem; /* Add space between heading and columns */
}

.service-column {
    position: relative;
    background-color: white;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    z-index: 1;
}

.service-column::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0.15; /* Very subtle background */
    z-index: -1;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.service-column.residential::before {
    background-image: url('../../assets/images/backgrounds/residential-bg.jpg');
}

.service-column.commercial::before {
    background-image: url('../../assets/images/backgrounds/commercial-bg.jpg');
}

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

.service-column:hover::before {
    transform: scale(1.05);
    opacity: 0.2; /* Slightly more visible on hover */
}

.service-column h2 {
    margin-bottom: 1rem;
    position: relative;
}

.service-column p {
    margin-bottom: 1.5rem;
    position: relative;
}

/* Detailed Services */
.detailed-services {
    display: none;
    padding: 4rem 0;
    background-color: var(--light-color);
}

.detailed-services.active {
    display: block;
}

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

/* Remote Support Page Styles */
.remote-support {
    padding-top: 120px;
    min-height: 80vh;
}

.remote-support h1 {
    margin-bottom: 1.5rem;
}

.download-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.download-option {
    background-color: white;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.download-icon {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 1rem;
}

.download-button {
    margin-top: 1.5rem;
    background-color: var(--accent-color);
    color: white;
    padding: 0.75rem 1.5rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.download-button:hover {
    background-color: var(--primary-color);
}

.download-note {
    font-size: 0.9rem;
    color: var(--gray-color);
    margin-top: 0.5rem;
}

.support-instructions {
    background-color: var(--light-gray);
    border-radius: 8px;
    padding: 2rem;
    margin: 3rem 0;
}

.support-instructions h2 {
    margin-bottom: 1.5rem;
}

.support-instructions ol {
    margin-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.support-instructions li {
    margin-bottom: 1rem;
}

.security-note {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-style: italic;
    color: var(--secondary-color);
}

/* Remote Support Link in Footer */
.remote-support-link {
    position: relative;
    font-weight: 600;
    color: var(--accent-color) !important;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    background-color: rgba(255, 255, 255, 0.1);
    margin-left: 0.5rem;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.remote-support-link:hover {
    background-color: rgba(255, 255, 255, 0.2);
    color: white !important;
}

.remote-support-link::before {
    content: '\f1e6';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    margin-right: 0.5rem;
}

/* Dark mode styles for remote support page */
body.dark-mode .download-option {
    background-color: #1e1e1e;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

body.dark-mode .support-instructions {
    background-color: #1e1e1e;
}

body.dark-mode .download-note {
    color: var(--gray-color);
}

body.dark-mode .remote-support-link {
    background-color: rgba(0, 0, 0, 0.3);
}

body.dark-mode .remote-support-link:hover {
    background-color: rgba(0, 0, 0, 0.5);
}

/* High contrast mode styles for remote support */
body.high-contrast .download-option {
    background-color: white;
    border: 2px solid black;
    box-shadow: none;
}

body.high-contrast .download-icon {
    color: black;
}

body.high-contrast .support-instructions {
    background-color: white;
    border: 2px solid black;
}

body.high-contrast .remote-support-link {
    background-color: black;
    color: white !important;
    border: 2px solid white;
}

body.high-contrast .remote-support-link:hover {
    background-color: white;
    color: black !important;
    border: 2px solid black;
}

/* Responsive styles for remote support */
@media (max-width: 768px) {
    .download-options {
        grid-template-columns: 1fr;
    }
    
    .remote-support-link {
        display: block;
        margin: 1rem 0 0;
        text-align: center;
    }
}

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

/* Mac Installation Instructions Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    overflow-y: auto;
    padding: 20px;
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background-color: white;
    border-radius: 8px;
    max-width: 750px;
    width: 100%;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
    margin: 20px;
}

/* Mac Guide Styles */
.mac-guide {
    padding: 15px;
}

.mac-step {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.mac-step:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.mac-step h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--accent-color);
}

.mac-image {
    max-width: 100%;
    max-height: 150px;
    border-radius: 6px;
    border: 1px solid #eee;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    margin-bottom: 5px;
    object-fit: contain;
}

.mac-image-row {
    display: flex;
    gap: 10px;
    justify-content: space-between;
}

.mac-image-row div {
    flex: 1;
    text-align: center;
}

.mac-image-row p {
    font-size: 0.85rem;
    margin: 5px 0 0;
}

.mac-step p {
    font-size: 0.9rem;
    text-align: center;
    margin: 5px 0;
}

/* Dark mode styles for Mac guide */
body.dark-mode .mac-step {
    border-color: #333;
}

body.dark-mode .mac-image {
    border-color: #444;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

body.dark-mode .mac-step h3 {
    color: var(--accent-color);
}

/* Updated modal header for Mac guide */
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
}

.modal-header .dismiss-button {
    margin: 0;
    padding: 8px 15px;
}

body.dark-mode .modal-header {
    border-color: #333;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #eee;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.8rem;
    color: #333;
}

.modal-logo {
    height: 40px;
    width: auto;
}

.modal-subtitle {
    padding: 15px 20px;
    margin: 0;
    font-size: 1rem;
    color: #555;
    border-bottom: 1px solid #eee;
}

.permissions-container {
    padding: 0;
}

.permission-section {
    padding: 20px;
    border-bottom: 1px solid #eee;
}

.permission-section h3 {
    margin: 0 0 5px 0;
    font-size: 1.4rem;
    color: #333;
}

.permission-desc {
    margin: 0 0 15px 0;
    color: #666;
    font-size: 0.9rem;
}


/* Mac Support Modal Image Styles */
.permission-image {
    text-align: center;
    margin: 10px 0;
}

.permission-image img.support-image {
    max-width: 100%;
    max-height: 180px; /* Limit image height */
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    border: 1px solid #eee;
    object-fit: contain; /* Maintain aspect ratio */
}

.permission-image-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 10px 0;
}

.permission-image.half {
    flex: 1;
    min-width: 200px;
}

.permission-image p {
    margin: 5px 0 0 0;
    font-size: 0.85rem;
    color: #555;
    text-align: center;
}

body.dark-mode .permission-image img.support-image {
    border-color: #444;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

body.dark-mode .permission-image p {
    color: #aaa;
}

/* Compact modal styles */
.permissions-container.compact .permission-section {
    padding: 12px;
}

.permissions-container.compact h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.permission-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.permission-instructions {
    background-color: #f9f9f9;
    border-radius: 6px;
    padding: 10px;
    margin-top: 10px;
}

.permission-instructions p {
    margin: 0 0 10px 0;
    font-size: 0.95rem;
}

.permission-instructions ol {
    margin: 10px 0 15px 20px;
    padding: 0;
}

.permission-instructions li {
    margin-bottom: 8px;
    font-size: 0.9rem;
    line-height: 1.5;
}

.more-info {
    font-size: 0.85rem !important;
    color: #666;
    font-style: italic;
    margin-top: 15px !important;
}

.troubleshooting {
    font-size: 0.9rem !important;
    color: #555;
    background-color: #f5f5f5;
    border-left: 3px solid var(--accent-color);
    padding: 10px 15px;
    margin-top: 15px !important;
    border-radius: 0 4px 4px 0;
}

body.dark-mode .troubleshooting {
    background-color: #2a2a2a;
    color: #ccc;
    border-left: 3px solid var(--accent-color);
}

.dismiss-button {
    display: block;
    margin: 10px auto 15px;
    padding: 10px 25px;
    background-color: var(--accent-color);
    border: none;
    border-radius: 4px;
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    color: white;
    position: relative;
    z-index: 10;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.dismiss-button:hover {
    background-color: #4a4ad7;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Dark mode styles for the modal */
body.dark-mode .modal-content {
    background-color: #1e1e1e;
    color: #e0e0e0;
}

body.dark-mode .modal-header,
body.dark-mode .modal-subtitle,
body.dark-mode .permission-section {
    border-color: #333;
}

body.dark-mode .modal-header h2,
body.dark-mode .permission-section h3 {
    color: #e0e0e0;
}

body.dark-mode .modal-subtitle,
body.dark-mode .permission-desc {
    color: #aaa;
}

body.dark-mode .permission-instructions {
    background-color: #2a2a2a;
}

body.dark-mode .dismiss-button {
    background-color: var(--accent-color);
    color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

body.dark-mode .dismiss-button:hover {
    background-color: #9d4edd;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

/* Animation for modal */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Responsive styles for the modal */
@media (max-width: 768px) {
    .modal-content {
        margin: 10px;
    }
    
    .modal-header h2 {
        font-size: 1.5rem;
    }
    
    .modal-logo {
        height: 30px;
    }
    
    .permission-section {
        padding: 15px;
    }
}
