/* 
 * NeoVolt - Custom Styles
 * Modern, responsive design for electrical services website
 */

/* ===========================
   Global Styles
   =========================== */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #1F2937;
    overflow-x: hidden;
}

/* ===========================
   Typography
   =========================== */

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

p {
    margin-bottom: 1rem;
}

/* ===========================
   Custom Animations
   =========================== */

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

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

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

.animate-fade-in {
    animation: fadeIn 0.6s ease-out;
}

.animate-slide-in-right {
    animation: slideInRight 0.8s ease-out;
}

.animate-slide-in-left {
    animation: slideInLeft 0.8s ease-out;
}

/* ===========================
   Navigation Enhancements
   =========================== */

nav {
    transition: all 0.3s ease;
}

nav.scrolled {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.nav-link {
    position: relative;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: #0EA5E9;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* ===========================
   Button Styles
   =========================== */

.btn-primary {
    background: linear-gradient(135deg, #0EA5E9, #0284C7);
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(14, 165, 233, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(14, 165, 233, 0.4);
}

.btn-secondary {
    background: linear-gradient(135deg, #10B981, #059669);
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(16, 185, 129, 0.3);
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(16, 185, 129, 0.4);
}

/* ===========================
   Card Styles
   =========================== */

.service-card {
    transition: all 0.3s ease;
    cursor: pointer;
}

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

.service-card .icon {
    transition: transform 0.3s ease;
}

.service-card:hover .icon {
    transform: scale(1.1) rotate(5deg);
}

/* ===========================
   Form Styles
   =========================== */

input[type="text"],
input[type="email"],
input[type="tel"],
select,
textarea {
    transition: all 0.3s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
select:focus,
textarea:focus {
    border-color: #0EA5E9;
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}

/* Custom checkbox */
input[type="checkbox"] {
    cursor: pointer;
}

input[type="checkbox"]:checked {
    background-color: #0EA5E9;
    border-color: #0EA5E9;
}

/* Form validation */
.form-error {
    border-color: #EF4444 !important;
}

.error-message {
    color: #EF4444;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* ===========================
   Hero Section
   =========================== */

.hero-gradient {
    background: linear-gradient(135deg, #EFF6FF 0%, #DCFCE7 100%);
}

/* ===========================
   Stats Counter
   =========================== */

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, #0EA5E9, #10B981);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===========================
   FAQ Accordion
   =========================== */

.faq-question {
    transition: background-color 0.3s ease;
}

.faq-question i {
    transition: transform 0.3s ease;
}

.faq-question.active i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-answer.show {
    max-height: 500px;
}

/* ===========================
   Loading Spinner
   =========================== */

.spinner {
    border: 3px solid #F3F4F6;
    border-top: 3px solid #0EA5E9;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

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

/* ===========================
   Gradient Text
   =========================== */

.gradient-text {
    background: linear-gradient(135deg, #0EA5E9, #10B981);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===========================
   Mobile Menu Animation
   =========================== */

#mobile-menu {
    transition: all 0.3s ease;
}

#mobile-menu.hidden {
    display: none !important;
    max-height: 0;
    opacity: 0;
}

#mobile-menu:not(.hidden) {
    display: block !important;
    max-height: 500px;
    opacity: 1;
}

#mobile-menu.show {
    max-height: 500px;
}

/* iOS Safari specific fixes */
@supports (-webkit-touch-callout: none) {
    #mobile-menu-button {
        -webkit-tap-highlight-color: transparent;
        cursor: pointer;
    }
}

/* ===========================
   Scroll to Top Button
   =========================== */

.scroll-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #0EA5E9, #0284C7);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(14, 165, 233, 0.3);
    z-index: 1000;
}

.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(14, 165, 233, 0.4);
}

/* Mobile: position above WhatsApp button */
@media (max-width: 768px) {
    .scroll-to-top {
        bottom: 160px; /* Above WhatsApp button */
        right: 15px;
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
}

/* ===========================
   Image Hover Effects
   =========================== */

.image-overlay {
    position: relative;
    overflow: hidden;
}

.image-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.8), rgba(16, 185, 129, 0.8));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.image-overlay:hover::before {
    opacity: 1;
}

/* ===========================
   Badge Styles
   =========================== */

.badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge-primary {
    background-color: #0EA5E9;
    color: white;
}

.badge-secondary {
    background-color: #10B981;
    color: white;
}

/* ===========================
   Timeline (for About page)
   =========================== */

.timeline-item {
    position: relative;
    padding-left: 3rem;
    padding-bottom: 2rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 2px;
    height: 100%;
    background: linear-gradient(to bottom, #0EA5E9, #10B981);
}

.timeline-item::after {
    content: '';
    position: absolute;
    left: -6px;
    top: 0;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #0EA5E9;
    border: 3px solid white;
    box-shadow: 0 0 0 2px #0EA5E9;
}

/* ===========================
   Pricing Tables
   =========================== */

.pricing-card {
    position: relative;
    transition: all 0.3s ease;
}

.pricing-card:hover {
    transform: scale(1.05);
    z-index: 10;
}

.pricing-card.featured {
    border: 2px solid #0EA5E9;
    box-shadow: 0 10px 30px rgba(14, 165, 233, 0.2);
}

/* ===========================
   Social Media Icons
   =========================== */

.social-icon {
    transition: all 0.3s ease;
}

.social-icon:hover {
    transform: translateY(-3px);
}

/* ===========================
   Testimonials
   =========================== */

.testimonial-card {
    position: relative;
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: -1rem;
    left: 1rem;
    font-size: 6rem;
    color: #0EA5E9;
    opacity: 0.1;
    font-family: Georgia, serif;
}

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

/* ===========================
   Responsive Utilities
   =========================== */

/* Hide on mobile */
@media (max-width: 768px) {
    .hide-mobile {
        display: none !important;
    }
}

/* Hide on desktop */
@media (min-width: 769px) {
    .hide-desktop {
        display: none !important;
    }
}

/* ===========================
   Print Styles
   =========================== */

@media print {
    nav,
    footer,
    .no-print {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        color: black;
    }
    
    a {
        text-decoration: underline;
    }
}

/* ===========================
   Accessibility
   =========================== */

/* Focus visible for keyboard navigation */
:focus-visible {
    outline: 3px solid #0EA5E9;
    outline-offset: 2px;
}

/* Skip to content link */
.skip-to-content {
    position: absolute;
    top: -40px;
    left: 0;
    background: #0EA5E9;
    color: white;
    padding: 8px;
    text-decoration: none;
    z-index: 9999;
}

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

/* Screen reader only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* ===========================
   Logo Styles
   =========================== */

/* Remove black background from logo using blend mode */
nav img[alt*="NeoVolt"] {
    mix-blend-mode: multiply;
}

/* For dark backgrounds (footer), use screen mode */
footer img[alt*="NeoVolt"] {
    mix-blend-mode: screen;
}

/* ===========================
   Custom Scrollbar
   =========================== */

::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: #F3F4F6;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #0EA5E9, #10B981);
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #0284C7, #059669);
}

/* ===========================
   Selection Color
   =========================== */

::selection {
    background-color: #0EA5E9;
    color: white;
}

::-moz-selection {
    background-color: #0EA5E9;
    color: white;
}