/* 
   M. Lewis Technologies LLC Website Styles
   A clean, modern, tech-inspired design for a professional technology company
*/

/* ===== Theme Switcher Styles ===== */
.theme-selector {
    background: var(--bg-main);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 0.5rem 0;
    min-width: 200px;
}

.theme-selector .dropdown-item {
    color: var(--text-primary);
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
    border-radius: 4px;
    margin: 0 0.5rem;
}

.theme-selector .dropdown-item:hover {
    background-color: var(--bg-secondary);
    color: var(--primary);
    transform: translateX(5px);
}

.theme-selector .dropdown-item.active {
    background: var(--gradient-primary);
    color: white;
    font-weight: 600;
}

.theme-selector .dropdown-item i {
    width: 20px;
    margin-right: 8px;
}

/* Theme transition animations */
* {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* Update existing elements to use theme variables */
.bg-light {
    background-color: var(--bg-secondary) !important;
}

.text-muted {
    color: var(--text-secondary) !important;
}

.border {
    border-color: var(--border-color) !important;
}

.card {
    background-color: var(--bg-main);
    border-color: var(--border-color);
}

.navbar-dark {
    background-color: var(--dark) !important;
}


/* ===== Base Styles ===== */
:root {
    /* Ocean Theme (Default) */
    --primary: #0077be;
    --primary-dark: #005fa3;
    --secondary: #20c997;
    --accent: #6610f2;
    --accent-light: #7b1fa2;
    --dark: #0d1421;
    --light: #e8f4fd;
    --gray: #b8daff;
    --success: #20c997;
    --danger: #fd7e14;
    --warning: #ffc107;
    --info: #0dcaf0;
    --bg-main: #ffffff;
    --bg-secondary: #f0f8ff;
    --text-primary: #0d1421;
    --text-secondary: #495057;
    --border-color: #b8daff;
    --gradient-primary: linear-gradient(135deg, #0077be, #20c997);
    --gradient-secondary: linear-gradient(135deg, #0dcaf0, #6610f2);
    --gradient-accent: linear-gradient(135deg, #7b1fa2, #20c997);
    --gradient-cyber: linear-gradient(45deg, #0077be, #0dcaf0, #6610f2, #20c997);
}


body {
    font-family: 'Roboto', sans-serif;
    color: var(--text-primary);
    background-color: var(--bg-main);
    line-height: 1.6;
    overflow-x: hidden;
    padding-top: 0;
    background: 
        linear-gradient(135deg, var(--bg-main) 0%, var(--bg-secondary) 100%),
        url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 200"><defs><pattern id="dots" x="0" y="0" width="40" height="40" patternUnits="userSpaceOnUse"><circle cx="20" cy="20" r="1" fill="%23e2e8f0" opacity="0.5"/></pattern></defs><rect width="200" height="200" fill="url(%23dots)"/></svg>');
    background-attachment: fixed;
    scroll-behavior: smooth;
    transition: background-color 0.3s ease, color 0.3s ease;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
}

a {
    color: var(--primary);
    transition: all 0.3s ease;
}

a:hover {
    color: var(--primary-dark);
}

.btn {
    border-radius: 5px;
    padding: 0.5rem 1.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--gradient-primary);
    border: none;
    box-shadow: 0 4px 15px rgba(255, 0, 128, 0.5), 0 0 20px rgba(255, 0, 128, 0.3);
    transform: translateY(0);
    position: relative;
    overflow: hidden;
    z-index: 100;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover, .btn-primary:focus {
    background: var(--gradient-primary);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 0, 128, 0.8), 0 0 30px rgba(255, 0, 128, 0.5);
}

.btn-outline-primary {
    color: var(--primary);
    border: 2px solid var(--primary);
    background: transparent;
    position: relative;
    overflow: hidden;
}

.btn-outline-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    transition: left 0.3s;
    z-index: -1;
}

.btn-outline-primary:hover, .btn-outline-primary:focus {
    color: white;
    border-color: var(--primary);
}

.btn-outline-primary:hover::before {
    left: 0;
}

.text-primary {
    color: var(--primary) !important;
}

.bg-primary {
    background: var(--gradient-primary) !important;
}

.section-title {
    font-weight: 700;
    margin-bottom: 1rem;
    position: relative;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--secondary);
    margin-bottom: 2rem;
}

/* ===== Navigation ===== */
.navbar {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
}

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

.navbar-dark .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    padding: 0.5rem 1rem;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active {
    color: #fff;
}

/* ===== Hero Section ===== */
.hero {
    padding-top: 5rem;
    padding-bottom: 5rem;
    background: 
        radial-gradient(ellipse at center, #1a0d2e 0%, var(--dark) 100%),
        url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="circuit" x="0" y="0" width="20" height="20" patternUnits="userSpaceOnUse"><path d="M0 10h20M10 0v20M5 5h10v10H5z" stroke="%23ff0080" stroke-width="0.5" fill="none" opacity="0.3"/></pattern></defs><rect width="100" height="100" fill="url(%23circuit)"/></svg>');
    position: relative;
    overflow: hidden;
    margin-top: 76px;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(255, 0, 128, 0.3), transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(0, 212, 255, 0.3), transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(124, 58, 237, 0.2), transparent 60%);
    animation: pulse-bg 4s ease-in-out infinite alternate;
    z-index: 1;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(45deg, transparent 40%, rgba(0, 212, 255, 0.1) 50%, transparent 60%),
        linear-gradient(-45deg, transparent 40%, rgba(255, 0, 128, 0.1) 50%, transparent 60%);
    background-size: 100px 100px, 80px 80px;
    animation: tech-grid 8s ease-in-out infinite;
    z-index: 2;
}

.hero .container {
    position: relative;
    z-index: 10;
}

@keyframes pulse-bg {
    0% { opacity: 0.7; }
    100% { opacity: 1; }
}

@keyframes tech-grid {
    0% { 
        transform: scale(1);
        opacity: 0.3;
    }
    50% { 
        transform: scale(1.1);
        opacity: 0.6;
    }
    100% { 
        transform: scale(1);
        opacity: 0.3;
    }
}

.tech-icon-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-gap: 2rem;
    max-width: 300px;
}

.tech-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 120px;
    width: 120px;
    background: var(--gradient-cyber);
    border-radius: 20px;
    box-shadow: 0 8px 20px rgba(124, 58, 237, 0.4), 0 0 40px rgba(0, 212, 255, 0.3);
    transition: all 0.3s ease;
    animation: glow-pulse 3s ease-in-out infinite alternate;
}

.tech-icon:hover {
    transform: translateY(-10px) scale(1.05) rotate(5deg);
    box-shadow: 0 15px 30px rgba(124, 58, 237, 0.6), 0 0 60px rgba(0, 212, 255, 0.5);
    animation: none;
}

@keyframes glow-pulse {
    0% { box-shadow: 0 8px 20px rgba(124, 58, 237, 0.4), 0 0 40px rgba(0, 212, 255, 0.3); }
    100% { box-shadow: 0 8px 20px rgba(255, 0, 128, 0.4), 0 0 40px rgba(0, 255, 136, 0.3); }
}

/* ===== Services Overview ===== */
.service-card {
    border: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border-radius: 10px;
}

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

.service-icon {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    height: 80px;
    width: 80px;
    background: var(--gradient-secondary);
    border-radius: 50%;
    color: white;
}

/* ===== Feature Section ===== */
.feature {
    padding: 2rem;
    transition: all 0.3s ease;
}

.feature-icon {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    height: 80px;
    width: 80px;
    background: var(--gradient-accent);
    border-radius: 50%;
    color: white;
    box-shadow: 0 8px 20px rgba(116, 185, 255, 0.3);
}

/* ===== Mission Quote ===== */
.mission-quote {
    position: relative;
    border-left: 5px solid var(--primary);
}

/* ===== Services Detail Page ===== */
.page-header {
    padding-top: 5rem;
    padding-bottom: 3rem;
    background: linear-gradient(135deg, var(--dark), var(--secondary));
    position: relative;
    margin-top: 76px;
}

.service-item {
    position: relative;
}

.service-icon-large {
    padding: 2rem;
}

.service-features {
    list-style: none;
    padding-left: 0;
}

.service-features li {
    margin-bottom: 0.5rem;
}

.service-divider {
    margin: 3rem 0;
    border-color: var(--gray);
}

/* ===== About Page ===== */
.about-stats {
    border-left: 5px solid var(--primary);
}

.founder-icon {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    height: 180px;
    width: 180px;
    background-color: rgba(37, 99, 235, 0.1);
    border-radius: 50%;
}

.value-item {
    transition: all 0.3s ease;
}

.value-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* ===== Contact Page ===== */
.contact-card {
    transition: all 0.3s ease;
}

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

.form-control {
    padding: 0.75rem 1rem;
    border: 1px solid var(--gray);
    border-radius: 5px;
}

.form-control:focus {
    box-shadow: 0 0 0 0.25rem rgba(37, 99, 235, 0.25);
    border-color: var(--primary);
}

/* ===== Flash Messages ===== */
.flash-messages {
    margin-top: 0;
    position: relative;
    z-index: 1000;
}

/* ===== Footer ===== */
footer {
    margin-top: 0;
}

footer h5 {
    font-weight: 700;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

footer h5:after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 50px;
    height: 3px;
    background: var(--gradient-primary);
}

/* ===== Responsive Adjustments ===== */
@media (max-width: 767.98px) {
    .hero {
        padding-top: 5rem;
        text-align: center;
    }
    
    .tech-icon-grid {
        margin: 0 auto;
    }
    
    .feature, .value-item, .service-card {
        margin-bottom: 2rem;
    }
    
    .service-icon-large {
        margin-bottom: 2rem;
    }
    
    .founder-icon {
        margin-bottom: 2rem;
    }
    
    .about-stats {
        margin-top: 2rem;
    }
}

/* ===== Automation-Specific Styles ===== */
.automation-card {
    background-color: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(37, 99, 235, 0.1);
    border-radius: 15px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.automation-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(37, 99, 235, 0.15);
    border-color: rgba(37, 99, 235, 0.3);
}

.automation-icon {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    height: 80px;
    width: 80px;
    background: var(--gradient-secondary);
    border-radius: 50%;
    transition: all 0.3s ease;
    color: #ffffff;
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.5);
}

.automation-icon i {
    color: #ffffff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
    font-weight: 900;
    filter: brightness(1.3) contrast(1.2);
}

.automation-card:hover .automation-icon {
    background: var(--gradient-primary);
    transform: scale(1.15) rotate(360deg);
    box-shadow: 0 10px 20px rgba(0, 119, 190, 0.6), 0 0 30px rgba(0, 119, 190, 0.4);
}

.automation-card:hover .automation-icon i {
    color: #ffffff;
    text-shadow: 0 3px 10px rgba(0, 0, 0, 0.9);
    filter: brightness(1.5) contrast(1.3);
}

.pricing-card {
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    background: linear-gradient(145deg, rgba(255,255,255,0.1), rgba(255,255,255,0.05));
    backdrop-filter: blur(10px);
}

.pricing-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-cyber);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.pricing-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 50 50"><circle cx="25" cy="25" r="1" fill="%23ff0080" opacity="0.1"/><circle cx="10" cy="10" r="0.5" fill="%2300d4ff" opacity="0.1"/><circle cx="40" cy="15" r="0.5" fill="%237c3aed" opacity="0.1"/></svg>');
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.pricing-card:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
    box-shadow: 0 20px 40px rgba(255, 0, 128, 0.3), 0 0 60px rgba(0, 212, 255, 0.2);
}

.pricing-card:hover::before {
    transform: scaleX(1);
}

.pricing-card:hover::after {
    opacity: 1;
}

.comparison-card {
    transition: all 0.3s ease;
}

.comparison-card:hover {
    transform: translateY(-3px);
}

.automation-benefit {
    background: var(--gradient-primary);
    border-radius: 15px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.automation-benefit::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s;
}

.automation-benefit:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(255, 107, 53, 0.5);
}

.automation-benefit:hover::before {
    left: 100%;
}

.testimonial-placeholder {
    border: 2px dashed var(--accent);
    transition: all 0.3s ease;
    background: linear-gradient(135deg, rgba(26, 139, 157, 0.05), rgba(116, 185, 255, 0.05));
}

.testimonial-placeholder:hover {
    border-color: var(--primary);
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.08), rgba(247, 147, 30, 0.08));
    transform: translateY(-3px);
}

.tech-item {
    transition: all 0.3s ease;
}

.tech-item:hover {
    transform: translateY(-5px);
}

.tech-item i {
    transition: all 0.3s ease;
}

.tech-item:hover i {
    transform: scale(1.1);
    color: var(--primary-dark);
}

.price {
    position: relative;
}

.price::before {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--primary-dark));
    border-radius: 2px;
}

.final-cta {
    background: var(--gradient-primary);
    position: relative;
    overflow: hidden;
}

.final-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 80%, rgba(26, 139, 157, 0.3), transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(116, 185, 255, 0.3), transparent 50%),
                url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 20"><defs><pattern id="grain" width="100" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="white" opacity="0.1"/><circle cx="30" cy="5" r="1" fill="white" opacity="0.1"/><circle cx="50" cy="15" r="1" fill="white" opacity="0.1"/><circle cx="70" cy="8" r="1" fill="white" opacity="0.1"/><circle cx="90" cy="12" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="20" fill="url(%23grain)"/></svg>');
    opacity: 0.4;
}

.final-cta .container {
    position: relative;
    z-index: 1;
}

@media (min-width: 992px) {
    .navbar-expand-lg .navbar-nav .nav-link {
        padding-right: 1.25rem;
        padding-left: 1.25rem;
    }
}

/* ===== Scroll Effect Styles ===== */
.scroll-reveal {
    opacity: 0;
    transition: all 0.8s ease;
}

.scroll-reveal.revealed {
    opacity: 1;
}

.scroll-reveal-left {
    transform: translateX(-50px);
}

.scroll-reveal-left.revealed {
    transform: translateX(0);
}

.scroll-reveal-right {
    transform: translateX(50px);
}

.scroll-reveal-right.revealed {
    transform: translateX(0);
}

.scroll-reveal-up {
    transform: translateY(50px);
}

.scroll-reveal-up.revealed {
    transform: translateY(0);
}

/* Default fade-in for elements without direction */
.scroll-reveal:not(.scroll-reveal-left):not(.scroll-reveal-right):not(.scroll-reveal-up) {
    transform: translateY(30px);
}

.scroll-reveal:not(.scroll-reveal-left):not(.scroll-reveal-right):not(.scroll-reveal-up).revealed {
    transform: translateY(0);
}

/* Why Automation section entrance effect */
#why-automation {
    scroll-margin-top: 80px;
}
