/*
Theme Name: JMR Advanced Technical Solutions Theme
Theme URI:
Author: JMR Advanced Technical Computer Solutions, LLC
Author URI:
Description: A modern, sleek WordPress theme for JMR Advanced Technical Computer Solutions, LLC.
Version: 1.1.0
Requires at least: 5.0
Requires PHP: 7.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: jmr-technical-solutions
Tags: one-page, business, responsive, modern
*/

/* Base Styles */
:root {
    --primary-color: #0056b3;
    --secondary-color: #003366;
    --accent-color: #00a8e8;
    --text-color: #333333;
    --light-text: #ffffff;
    --background-color: #f0f2f5;
    --section-bg-light: #ffffff;
    --section-bg-dark: #e9ecef;
    --card-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    --footer-bg: #003366;
    --transition-speed: 0.3s;
    --border-radius: 8px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--secondary-color);
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 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: 0 1rem;
}

/* Header Styles */
.site-header {
    background-color: var(--section-bg);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 1.5rem 0;
    position: relative;
    z-index: 100;
}

.site-branding {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.site-title {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.site-title a {
    color: var(--secondary-color);
}

.site-description {
    font-style: italic;
    color: #666;
}

.custom-logo {
    max-height: 80px;
    width: auto;
    margin-bottom: 1rem;
}

/* Main Content Styles */
.site-main {
    padding: 3rem 0;
}

.headline {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

.headline h1 {
    color: var(--primary-color);
    position: relative;
    display: inline-block;
}

.headline h1:after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--accent-color);
}

.intro-text {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
    font-size: 1.2rem;
}

.section {
    margin-bottom: 4rem;
    padding: 2.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    position: relative;
}

.section:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.15);
}

.section:nth-child(odd) {
    background-color: var(--section-bg-light);
}

.section:nth-child(even) {
    background-color: var(--section-bg-dark);
}

.section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background-color: var(--accent-color);
}

.section-title {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--primary-color);
    font-size: 2.2rem;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--accent-color);
    border-radius: 3px;
}

/* Services and Industries Lists */
.services-list, .industries-list {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}

.services-list li, .industries-list li {
    position: relative;
    padding: 1.5rem 1.5rem 1.5rem 3rem;
    margin-bottom: 1rem;
    transition: all var(--transition-speed) ease;
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: var(--border-radius);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(5px);
    border-left: 3px solid var(--accent-color);
}

.services-list li:before, .industries-list li:before {
    content: '•';
    position: absolute;
    left: 1rem;
    color: var(--accent-color);
    font-size: 1.5rem;
    line-height: 1;
    animation: sparkle 2s infinite;
}

@keyframes sparkle {
    0%, 100% {
        opacity: 0.96914;
        transform: scale(1.02057);
        color: rgb(0, 160, 227);
        text-shadow: rgba(0, 168, 232, 0.07) 0px 0px 0.514335px;
    }
    50% {
        opacity: 1;
        transform: scale(1.1);
        color: rgb(0, 200, 255);
        text-shadow: rgba(0, 168, 232, 0.3) 0px 0px 3px;
    }
}

.sparkle-particle {
    position: absolute;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    pointer-events: none;
    background: linear-gradient(to right, #333, #aaa);
    opacity: 0;
    transform-origin: center;
    z-index: 10;
}

.services-list li:hover, .industries-list li:hover {
    transform: translateY(-5px);
    color: var(--primary-color);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    background-color: rgba(255, 255, 255, 0.9);
}

/* Call to Action Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--light-text);
    padding: 4rem 3rem;
    text-align: center;
    border-radius: var(--border-radius);
    margin-bottom: 4rem;
    box-shadow: var(--card-shadow);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 70%);
    opacity: 0.5;
    animation: pulse 15s infinite linear;
    pointer-events: none;
}

@keyframes pulse {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.cta-section h2 {
    color: var(--light-text);
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.contact-info {
    margin-bottom: 2rem;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 2rem;
    border-radius: var(--border-radius);
    backdrop-filter: blur(5px);
    display: inline-block;
    min-width: 300px;
}

.contact-info p {
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.contact-info a {
    color: var(--light-text);
    font-weight: bold;
    padding: 0.5rem 1rem;
    border-radius: 30px;
    background-color: rgba(255, 255, 255, 0.15);
    transition: all 0.3s ease;
    display: inline-block;
    text-decoration: none;
    margin-top: 0.5rem;
}

.contact-info a:hover {
    background-color: rgba(255, 255, 255, 0.25);
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
}

.emergency-phone {
    font-size: 1.3rem;
    font-weight: bold;
    margin-top: 2rem;
    padding: 1rem;
    border: 2px dashed rgba(255, 255, 255, 0.3);
    border-radius: var(--border-radius);
    background-color: rgba(255, 255, 255, 0.05);
    display: inline-block;
}

.emergency-phone a {
    color: #ffcc00;
    background-color: rgba(255, 204, 0, 0.1);
}

.emergency-phone a:hover {
    background-color: rgba(255, 204, 0, 0.2);
    box-shadow: 0 0 15px rgba(255, 204, 0, 0.3);
}

/* Footer Styles */
.site-footer {
    background-color: var(--footer-bg);
    color: var(--light-text);
    padding: 2rem 0;
    text-align: center;
}

.site-info {
    margin-bottom: 1rem;
}

.social-links {
    margin-top: 1rem;
}

.linkedin-link {
    color: var(--light-text);
    display: inline-flex;
    align-items: center;
    transition: opacity var(--transition-speed) ease;
}

.linkedin-link:hover {
    opacity: 0.8;
    color: var(--light-text);
}

.linkedin-link:before {
    content: '';
    display: inline-block;
    width: 24px;
    height: 24px;
    margin-right: 8px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ffffff'%3E%3Cpath d='M19 0h-14c-2.761 0-5 2.239-5 5v14c0 2.761 2.239 5 5 5h14c2.762 0 5-2.239 5-5v-14c0-2.761-2.238-5-5-5zm-11 19h-3v-11h3v11zm-1.5-12.268c-.966 0-1.75-.79-1.75-1.764s.784-1.764 1.75-1.764 1.75.79 1.75 1.764-.783 1.764-1.75 1.764zm13.5 12.268h-3v-5.604c0-3.368-4-3.113-4 0v5.604h-3v-11h3v1.765c1.396-2.586 7-2.777 7 2.476v6.759z'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
}

/* Animation Canvas */
#animation-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -10;
    opacity: 0.5; /* Reduced opacity to 50% */
    pointer-events: none;
}

/* Ensure content is above canvas */
#page {
    position: relative;
    z-index: 1;
}

/* =Main Navigation
----------------------------------------------- */
.main-navigation {
    width: 100%;
    margin: 2rem 0;
    background: var(--primary-color);
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    position: relative;
}

.main-navigation ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    justify-content: flex-start;
    flex-wrap: wrap;
}

.main-navigation li {
    position: relative;
    margin: 0 5px;
}

/* Dropdown menu styling */
.main-navigation ul ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--secondary-color);
    min-width: 200px;
    z-index: 999;
    box-shadow: 0 3px 5px rgba(0,0,0,0.2);
}

.main-navigation li:hover > ul {
    display: block;
}

/* Dropdown indicators */
.main-navigation .menu-item-has-children > a::after {
    content: '▾';
    margin-left: 5px;
    font-size: 0.8em;
}

.main-navigation li {
    position: relative;
    margin: 0;
}

.main-navigation a {
    display: block;
    color: white;
    text-decoration: none;
    padding: 1.2rem 1.8rem;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    position: relative;
}

/* Current menu item */
.main-navigation .current-menu-item > a,
.main-navigation .current-page-item > a {
    background: rgba(0,0,0,0.1);
}

/* Hover effects */
.main-navigation a {
    position: relative;
    overflow: hidden;
}

.main-navigation a::after {
    content: '';
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: width 0.3s ease;
}

.main-navigation a:hover {
    background: rgba(255,255,255,0.15);
}

.main-navigation a:hover::after {
    width: 60%;
}

/* Dropdown menus */
.main-navigation ul ul {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--secondary-color);
    min-width: 220px;
    z-index: 999;
    border-radius: 0 0 var(--border-radius) var(--border-radius);
}

.main-navigation ul ul li {
    width: 100%;
}

.main-navigation ul ul a {
    padding: 0.8rem 1.5rem;
}

.main-navigation li:hover > ul {
    display: block;
}

/* Mobile menu */
.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    color: white;
    padding: 1rem;
    cursor: pointer;
    width: 100%;
    text-align: center;
}

.hamburger {
    display: inline-block;
    width: 24px;
    height: 2px;
    background: white;
    position: relative;
}

.hamburger:before,
.hamburger:after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background: white;
    left: 0;
}

.hamburger:before {
    top: -6px;
}

.hamburger:after {
    bottom: -6px;
}

@media (max-width: 768px) {
    .main-navigation ul {
        display: none;
        flex-direction: column;
        width: 100%;
    }

    .main-navigation ul.toggled-on {
        display: flex;
    }

    .main-navigation li {
        margin: 0;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }

    .main-navigation ul ul {
        position: static;
        background: rgba(0,0,0,0.1);
        box-shadow: none;
    }

    .main-navigation ul ul a {
        padding-left: 2rem;
    }

    .menu-toggle {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 1rem;
        background: var(--primary-color);
        color: white;
        border: none;
        width: 100%;
    }

    .menu-toggle .hamburger {
        transition: transform 0.3s ease;
    }

    .menu-toggle[aria-expanded="true"] .hamburger {
        transform: rotate(90deg);
    }
}

#primary-menu li a:hover:after {
    width: 70%;
}

#primary-menu li.current-menu-item a {
    background: var(--secondary-color);
}

.main-navigation .menu-toggle {
    display: none;
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 1rem;
    margin: 0 auto;
    width: 100%;
    font-size: 1.1rem;
    cursor: pointer;
}

/* Mobile menu */
@media (max-width: 768px) {
    .main-navigation {
        padding: 0;
    }
    
    .main-navigation .menu-toggle {
        display: block;
    }

    #primary-menu {
        flex-direction: column;
        display: none;
    }

    #primary-menu.toggled-on {
        display: flex;
    }

    #primary-menu li {
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }

    #primary-menu li:last-child {
        border-bottom: none;
    }
}

.site-header, .site-main, .site-footer {
    position: relative;
    z-index: 2;
}

/* Responsive Styles */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    .services-list, .industries-list {
        grid-template-columns: 1fr;
    }
    
    .site-header {
        padding: 1rem 0;
    }
    
    .custom-logo {
        max-height: 60px;
    }
}

@media (max-width: 480px) {
    .section {
        padding: 1.5rem;
    }
    
    .headline h1 {
        font-size: 1.75rem;
    }
    
    .intro-text {
        font-size: 1rem;
    }
}