/* 
 * Base Styles - EasyWall Website
 * This stylesheet defines core visual elements and responsive behaviors
 * 
 * Color scheme:
 * --primary-color: #05efff - Brand blue used for highlights and CTAs
 * --secondary-color: #121212 - Darker background for contrast
 * --text-color: #e0e0e0 - Light text appropriate for dark mode
 * --background-color: #1a1a1a - Main dark background
 * --secondary-background: #202124 - Slightly lighter for contrast
 */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700&display=swap');

:root {
    --primary-color: #05efff; /* Brand blue */
    --secondary-color: #121212; /* Darker background */
    --text-color: #e0e0e0; /* Light text for dark mode */
    --background-color: #1a1a1a; /* Dark background */
    --secondary-background: #202124; /* Slightly lighter dark background */
    --header-height: 80px;
}

/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body, html {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-color);
    overflow-x: hidden;
    scroll-behavior: smooth;
    background-color: var(--background-color);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Performance optimization: layer promotion for animations */
.animated, 
.btn:hover, 
.feature-card, 
.product-card,
.slide-content,
.slider-controls {
    will-change: transform, opacity;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
}

/* Section Styles - Defines common patterns for all main content sections */
section {
    min-height: 80vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 100px 0;
}

section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background: linear-gradient(to bottom, transparent, rgba(5, 239, 255, 0.1));
    pointer-events: none;
}

section:not(:first-child) {
    border-top: 1px solid rgba(5, 239, 255, 0.2);
}

section:nth-child(odd) {
    background-color: var(--secondary-background);
    background-image: linear-gradient(to bottom right, rgba(5, 239, 255, 0.08), transparent);
}

section:nth-child(odd)::after {
    background: linear-gradient(to bottom, transparent, rgba(32, 33, 36, 0.05));
}

section:nth-child(even) {
    background-color: var(--background-color);
    background-image: linear-gradient(to bottom left, rgba(5, 239, 255, 0.05), transparent);
}

section:nth-child(even)::after {
    background: linear-gradient(to bottom, transparent, rgba(5, 239, 255, 0.1));
}

.section-heading {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.section-subheading {
    font-size: 1.5rem;
    font-weight: 400;
    margin-bottom: 2rem;
    max-width: 700px;
    line-height: 1.5;
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 15px 30px;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    margin-right: 1rem;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

/* Enhanced buttons with hover effect */
.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: left 0.3s ease;
    z-index: 1;
}

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

.btn span {
    position: relative;
    z-index: 2;
}

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

.btn-secondary {
    background-color: transparent;
    color: var(--text-color);
    border-bottom: 2px solid var(--primary-color);
}

.btn-primary:hover {
    background-color: #00d6e5;
    transform: translateY(-3px);
    box-shadow: 0 7px 15px rgba(0, 214, 229, 0.3);
}

.btn-secondary:hover {
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 7px 15px rgba(0, 0, 0, 0.1);
}

/* Grid Layouts */
.grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-gap: 30px;
}

/* Hide Google Translate UI elements but keep functionality */
.skiptranslate, .goog-te-banner-frame {
    display: none !important;
}

body {
    top: 0 !important;
}

/* Add custom styles for translated content to prevent layout issues */
html[lang="en"] .section-heading,
html[lang="en"] .section-subheading,
html[lang="en"] p,
html[lang="en"] h1, 
html[lang="en"] h2, 
html[lang="en"] h3, 
html[lang="en"] h4, 
html[lang="en"] a, 
html[lang="en"] button,
html[lang="en"] li {
    font-family: 'Montserrat', sans-serif !important;
}

/* New interactive elements */
.tooltip {
    position: absolute;
    background: rgba(5, 239, 255, 0.1);
    border: 1px solid var(--primary-color);
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 0.9rem;
    color: var(--text-color);
    pointer-events: none;
    transition: opacity 0.3s ease;
    max-width: 250px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    z-index: 100;
}

/* Highlight effect for interactive elements */
.highlight-pulse {
    position: relative;
}

.highlight-pulse::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: inherit;
    box-shadow: 0 0 0 2px var(--primary-color);
    animation: pulse-border 1.5s infinite;
    pointer-events: none;
}

@keyframes pulse-border {
    0% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.05); }
    100% { opacity: 1; transform: scale(1); }
}

/* Code block styles for technical sections */
.code-block {
    background-color: #1e1e1e;
    border-radius: 5px;
    padding: 15px;
    font-family: monospace;
    overflow-x: auto;
    position: relative;
}

.code-block .code-line {
    display: block;
    line-height: 1.4;
    color: #d4d4d4;
}

.code-block .code-keyword {
    color: #569cd6;
}

.code-block .code-string {
    color: #ce9178;
}

.code-block .code-function {
    color: #dcdcaa;
}

.code-block .code-comment {
    color: #6a9955;
}

.code-block::before {
    content: 'Code';
    position: absolute;
    top: -10px;
    right: 10px;
    background-color: var(--primary-color);
    color: var(--secondary-color);
    font-size: 0.75rem;
    padding: 3px 8px;
    border-radius: 3px;
}

/* Responsive rules */
@media (max-width: 1024px) {
    .section-heading {
        font-size: 2.5rem;
    }
    
    .section-subheading {
        font-size: 1.2rem;
    }
}

@media (max-width: 768px) {
    .section-heading {
        font-size: 2rem;
    }
    
    .grid {
        grid-template-columns: repeat(6, 1fr);
    }
    
    .btn {
        padding: 12px 24px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .section-heading {
        font-size: 1.8rem;
    }
    
    .section-subheading {
        font-size: 1rem;
    }
    
    .grid {
        grid-template-columns: repeat(4, 1fr);
        grid-gap: 15px;
    }
}

/* Mobile Optimizations */
@media (max-width: 480px) {
    .btn {
        padding: 12px 20px;
        font-size: 0.9rem;
        margin-right: 0.5rem;
    }
    
    .section-heading {
        font-size: 1.6rem;
    }
    
    .section-subheading {
        font-size: 0.9rem;
    }
    
    section {
        padding: 60px 0;
    }
    
    .container {
        padding: 0 15px;
    }
}

/* Global button border radius */
button:not(.indicator):not(.menu-toggle):not(.close-menu):not(.close-search):not(.search-toggle) {
    border-radius: 8px;
}

/* Improve touch target sizes for mobile */
@media (max-width: 768px) {
    a, button, .btn, input, select, textarea {
        min-height: 44px;
        min-width: 44px;
    }
    
    .btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    
    .social-link {
        width: 44px;
        height: 44px;
    }
}

/* Animation classes */
.fade-in {
    opacity: 0;
}

.slide-up {
    transform: translateY(50px);
    opacity: 0;
}

.slide-right {
    transform: translateX(-50px);
    opacity: 0;
}

.slide-left {
    transform: translateX(50px);
    opacity: 0;
}

/* Dynamic link highlight */
a:not(.btn):not(.logo):hover {
    background-color: rgba(5, 239, 255, 0.1);
    padding: 2px 5px;
    margin: -2px -5px;
    border-radius: 3px;
    transition: background-color 0.3s ease;
}

/* WhatsApp Button */
.whatsapp-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    z-index: 100;
    transition: all 0.3s ease;
}

.whatsapp-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 15px rgba(37, 211, 102, 0.4);
}

/* Print styles for better documentation */
@media print {
    body {
        background: white;
        color: black;
    }
    
    section {
        page-break-inside: avoid;
        border: none;
    }
    
    .whatsapp-btn, 
    .header, 
    .footer-links-container,
    video, 
    iframe {
        display: none !important;
    }
    
    .container {
        width: 100%;
        max-width: 100%;
    }
    
    h1, h2, h3, h4 {
        color: black;
    }
    
    a {
        color: blue;
        text-decoration: underline;
    }
    
    .section-heading {
        font-size: 24pt;
    }
    
    .section-subheading {
        font-size: 16pt;
    }
}

/* Accessibility improvements */
:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 3px;
}

.skip-to-content {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-color);
    color: var(--secondary-color);
    padding: 8px;
    z-index: 9999;
    transition: top 0.3s ease;
}

.skip-to-content:focus {
    top: 0;
}

/* Loading indicator */
.loading-indicator {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--primary-color);
    z-index: 9999;
    transform: scaleX(0);
    transform-origin: left;
    animation: loading 2s infinite ease-in-out;
}

@keyframes loading {
    0% { transform: scaleX(0); }
    50% { transform: scaleX(0.7); }
    100% { transform: scaleX(0); transform-origin: right; }
}