/* Aura Volt Electrician - Premium Style Sheet */

/* Design Tokens & Theme Variables */
:root {
    --bg-volt: #f8f9fa;         /* Light Industrial Gray */
    --bg-dark: #15171a;         /* Carbon Slate Black */
    --bg-card: #ffffff;         /* White */
    
    --primary-color: #212529;   /* Deep Slate Gray */
    --primary-hover: #0c0d0e;
    --accent-color: #ffcc00;    /* Safety Yellow */
    --accent-dark: #e0b400;
    --accent-warn: #fd7e14;     /* Warning Orange */
    --accent-red: #e63946;      /* Hotline alert red */
    --accent-soft: #fffbeb;     /* Soft Yellow Wash */
    --accent-gray: #e9ecef;     /* Slate Gray accent */
    
    --text-color: #2b303a;      /* Dark carbon grey */
    --text-light: #6c757d;      /* Muted steel grey */
    --text-white: #ffffff;
    
    --border-volt: #dee2e6;
    --border-accent: #ffe066;
    
    --font-thai: 'Prompt', sans-serif;
    
    --transition: 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --shadow-volt: 0 10px 30px rgba(33, 37, 41, 0.05);
    --shadow-hover: 0 15px 40px rgba(33, 37, 41, 0.12);
}

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

body {
    background-color: var(--bg-volt);
    color: var(--text-color);
    font-family: var(--font-thai);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--primary-color);
    font-weight: 600;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

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

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

.text-center {
    text-align: center;
}

.accent-text {
    color: var(--accent-dark);
    font-weight: 700;
}

/* Section Title System */
.section-title {
    margin-bottom: 50px;
}

.section-title.text-center {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.sub-title {
    display: inline-block;
    color: var(--accent-warn);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 12px;
    position: relative;
    padding-bottom: 6px;
}

.sub-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 35px;
    height: 2px;
    background-color: var(--accent-color);
}

.section-title h2 {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1.35;
}

/* Pulse / Flashing Warning Button Animation */
@keyframes warningPulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(230, 57, 70, 0.45);
    }
    70% {
        transform: scale(1.03);
        box-shadow: 0 0 0 10px rgba(230, 57, 70, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(230, 57, 70, 0);
    }
}

.pulse-button {
    animation: warningPulse 1.8s infinite;
}

/* Button Components */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 28px;
    border-radius: 50px;
    font-family: var(--font-thai);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid transparent;
}

.btn-sm {
    padding: 8px 20px;
    font-size: 0.85rem;
}

.btn-lg {
    padding: 15px 35px;
    font-size: 1rem;
}

.btn-full-width {
    width: 100%;
}

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

.btn-accent:hover {
    background-color: var(--accent-dark);
    border-color: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(251, 192, 45, 0.35);
}

.btn-outline-white {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.5);
    color: white;
}

.btn-outline-white:hover {
    background: white;
    color: var(--primary-color);
    transform: translateY(-2px);
}

.btn-phone {
    background-color: var(--accent-red);
    color: white;
}

.btn-phone:hover {
    background-color: #cd2c38;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(230, 57, 70, 0.3);
}

.btn-line {
    background-color: #06c755;
    color: white;
}

.btn-line:hover {
    background-color: #05b04b;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(6, 199, 85, 0.25);
}

/* Header & Navigation */
.volt-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background-color: rgba(24, 26, 30, 0.95);
    border-bottom: 2px solid var(--accent-color);
    transition: var(--transition);
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.logo {
    font-weight: 700;
    font-size: 1.8rem;
    color: var(--text-white);
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo .accent-text {
    color: var(--accent-color);
}

.electricity-icon {
    color: var(--accent-color);
    animation: flashIcon 1.5s ease-in-out infinite alternate;
}

@keyframes flashIcon {
    from { opacity: 0.6; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1.1); filter: drop-shadow(0 0 5px var(--accent-color)); }
}

.nav-links {
    display: flex;
    gap: 16px;
}

.nav-link {
    color: #a0aab2;
    font-size: 0.875rem;
    font-weight: 500;
    position: relative;
    padding: 8px 0;
}

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

.nav-link:hover {
    color: var(--text-white);
}

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

.nav-link.active {
    color: var(--text-white);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 18px;
}

/* Language Switcher */
.lang-switch {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-white);
    padding: 6px 14px;
    border-radius: 20px;
    font-family: var(--font-thai);
    font-weight: 500;
    font-size: 0.85rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: var(--transition);
}

.lang-switch:hover {
    border-color: var(--accent-color);
    background-color: rgba(255, 255, 255, 0.05);
}

.lang-switch span {
    opacity: 0.5;
    transition: var(--transition);
}

.lang-switch .active-lang {
    opacity: 1;
    font-weight: 700;
    color: var(--accent-color);
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-white);
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
}

.mobile-toggle:hover {
    color: var(--accent-color);
}

/* Mobile Drawer */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100%;
    background-color: var(--bg-dark);
    border-left: 2px solid var(--accent-color);
    z-index: 102;
    padding: 40px 30px;
    box-shadow: -5px 0 35px rgba(0,0,0,0.3);
    display: flex;
    flex-direction: column;
    gap: 30px;
    transition: var(--transition);
}

.mobile-menu.open {
    right: 0;
}

.close-menu {
    align-self: flex-end;
    background: none;
    border: none;
    font-size: 1.8rem;
    color: var(--text-white);
    cursor: pointer;
    transition: var(--transition);
}

.close-menu:hover {
    color: var(--accent-color);
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.mobile-lang-switch {
    align-self: flex-start;
    margin-bottom: 15px;
}

.mobile-link {
    font-size: 1.1rem;
    color: #a0aab2;
    font-weight: 500;
    padding: 6px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mobile-link:hover {
    color: var(--text-white);
    padding-left: 6px;
}

.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 11, 12, 0.6);
    backdrop-filter: blur(4px);
    z-index: 101;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
}

.menu-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    background-image: url('assets/electrician_hero.png');
    background-size: cover;
    background-position: center;
    background-attachment: scroll;
    color: var(--text-white);
    padding: 120px 0 80px 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(21, 23, 26, 0.85) 0%, rgba(33, 37, 41, 0.5) 100%);
    z-index: 1;
}

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

.hero-content {
    max-width: 680px;
}

.hero-tag {
    display: inline-block;
    font-size: 0.95rem;
    font-weight: 600;
    background-color: rgba(255, 204, 0, 0.15);
    border: 1px solid rgba(255, 204, 0, 0.4);
    color: var(--accent-color);
    padding: 6px 20px;
    border-radius: 50px;
    margin-bottom: 25px;
    letter-spacing: 0.5px;
    backdrop-filter: blur(5px);
}

.hero-content h1 {
    font-size: 3.4rem;
    font-weight: 700;
    color: var(--text-white);
    line-height: 1.25;
    margin-bottom: 25px;
}

.hero-content p {
    font-size: 1.05rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.88);
    margin-bottom: 40px;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

/* Highlights Section */
.highlights-section {
    padding: 100px 0;
    background-color: var(--bg-volt);
}

.highlights-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.highlight-card {
    background-color: var(--bg-card);
    padding: 45px 35px;
    border-radius: 20px;
    box-shadow: var(--shadow-volt);
    border: 1px solid var(--border-volt);
    transition: var(--transition);
    text-align: center;
}

.highlight-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--accent-color);
}

.highlight-card .icon-box {
    width: 70px;
    height: 70px;
    background-color: var(--primary-color);
    color: var(--accent-color);
    font-size: 1.8rem;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    transition: var(--transition);
}

.highlight-card:hover .icon-box {
    background-color: var(--accent-color);
    color: var(--primary-color);
    transform: rotateY(360deg);
}

.highlight-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.highlight-card p {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.6;
}

/* Services & Pricing Section */
.services-section {
    padding: 100px 0;
    background-color: #ffffff;
    border-top: 1px solid var(--border-volt);
    border-bottom: 1px solid var(--border-volt);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    background-color: var(--bg-volt);
    padding: 45px 35px;
    border-radius: 24px;
    box-shadow: var(--shadow-volt);
    border: 1px solid var(--border-volt);
    transition: var(--transition);
    position: relative;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    background-color: #ffffff;
}

.service-card.popular {
    border: 2px solid var(--accent-color);
    background-color: #ffffff;
    box-shadow: 0 15px 35px rgba(255, 204, 0, 0.15);
}

.popular-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--accent-color);
    color: var(--primary-color);
    font-size: 0.8rem;
    font-weight: 700;
    padding: 6px 18px;
    border-radius: 50px;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 10px rgba(255, 204, 0, 0.25);
}

.service-icon {
    font-size: 2rem;
    color: var(--accent-dark);
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 1.35rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.service-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-red);
    margin-bottom: 18px;
}

.service-desc {
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.6;
}

/* Gallery Section */
.gallery-section {
    padding: 100px 0;
    background-color: var(--bg-volt);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.gallery-item {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    height: 300px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-info {
    position: absolute;
    bottom: -100%;
    left: 0;
    width: 100%;
    background: linear-gradient(180deg, rgba(21, 23, 26, 0) 0%, rgba(21, 23, 26, 0.9) 85%);
    padding: 30px 20px 20px 20px;
    color: var(--text-white);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.gallery-info h4 {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-white);
    margin-bottom: 5px;
}

.gallery-info p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
}

.gallery-item:hover img {
    transform: scale(1.08);
}

.gallery-item:hover .gallery-info {
    bottom: 0;
}

/* Contact & Info Section */
.contact-section {
    padding: 100px 0;
    background-color: #ffffff;
    border-bottom: 1px solid var(--border-volt);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 50px;
}

.location-map .address {
    font-size: 1rem;
    color: var(--text-light);
    margin-top: -30px;
    margin-bottom: 25px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.location-map .address i {
    color: var(--accent-dark);
    margin-top: 5px;
}

.map-card {
    background-color: var(--bg-volt);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border-volt);
    box-shadow: var(--shadow-volt);
}

.map-placeholder {
    padding: 50px 30px;
    text-align: center;
    background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 320px;
}

.map-icon {
    font-size: 3.5rem;
    color: var(--accent-dark);
    margin-bottom: 20px;
    animation: flashAlert 2s infinite alternate;
}

@keyframes flashAlert {
    from { opacity: 0.7; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1.05); color: var(--accent-warn); }
}

.map-placeholder h4 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.map-placeholder p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 25px;
    max-width: 420px;
}

/* Hours & Booking */
.hours-list {
    background-color: var(--bg-volt);
    padding: 30px;
    border-radius: 20px;
    box-shadow: var(--shadow-volt);
    border: 1px solid var(--border-volt);
    margin-bottom: 35px;
}

.hours-row {
    display: flex;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px dashed var(--border-volt);
}

.hours-row:last-child {
    border-bottom: none;
}

.hours-row .day {
    font-weight: 500;
    color: var(--text-color);
}

.hours-row .time {
    color: var(--primary-color);
    font-weight: 600;
}

.hours-row.closed .time {
    color: var(--accent-red);
}

.quick-contact {
    background-color: var(--accent-soft);
    padding: 35px;
    border-radius: 20px;
    border: 1px solid var(--border-accent);
}

.quick-contact h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--primary-color);
}

.quick-contact p {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 25px;
}

.contact-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Footer Section */
.volt-footer {
    background-color: var(--bg-dark);
    color: rgba(255, 255, 255, 0.5);
    padding: 40px 0;
    font-size: 0.9rem;
    border-top: 2px solid var(--accent-color);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-socials {
    display: flex;
    gap: 15px;
}

.footer-socials a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.05);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: var(--transition);
}

.footer-socials a:hover {
    background-color: var(--accent-color);
    color: var(--primary-color);
    transform: translateY(-3px);
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: var(--transition);
    opacity: 0;
    visibility: hidden;
    z-index: 99;
}

.back-to-top:hover {
    background-color: var(--accent-color);
    color: var(--primary-color);
    transform: translateY(-3px);
}

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

/* Responsive Styles */
@media (max-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 991px) {
    .navbar {
        height: 75px;
    }
    
    .nav-links, .nav-actions {
        display: none;
    }
    
    .mobile-toggle {
        display: block;
    }
    
    .hero-content h1 {
        font-size: 2.7rem;
    }
    
    .highlights-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .location-map .address {
        margin-top: 0;
    }
}

@media (max-width: 768px) {
    .hero-section {
        min-height: 80vh;
        padding-top: 100px;
    }
    
    .hero-content h1 {
        font-size: 2.2rem;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .gallery-item {
        height: 280px;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}

/* Lightning Sparks for Hero Section */
.lightning-sparks {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 2;
}

.lightning-sparks i {
    position: absolute;
    color: var(--accent-color);
    font-size: 2.2rem;
    filter: drop-shadow(0 0 10px var(--accent-color)) drop-shadow(0 0 20px var(--accent-warn));
    opacity: 0;
    animation: sparkFlash 2.5s infinite;
}

.lightning-sparks .spark-1 {
    top: 25%;
    left: 15%;
    animation-delay: 0.2s;
    font-size: 1.8rem;
}

.lightning-sparks .spark-2 {
    top: 45%;
    right: 20%;
    animation-delay: 1.1s;
    font-size: 2.8rem;
    transform: rotate(15deg);
}

.lightning-sparks .spark-3 {
    bottom: 30%;
    left: 40%;
    animation-delay: 1.8s;
    font-size: 2rem;
    transform: rotate(-20deg);
}

@keyframes sparkFlash {
    0%, 90%, 100% { opacity: 0; transform: scale(0.8) translate(0, 0); }
    92%, 96% { opacity: 1; transform: scale(1.1) translate(-3px, 3px); }
    94% { opacity: 0.4; transform: scale(0.9) translate(3px, -3px); }
    98% { opacity: 0; transform: scale(1.2) translate(0, 0); }
}

