/* WV Elétrica - Premium CSS Stylesheet */

/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
    --bg-deep: #080c14;
    --bg-card: rgba(18, 24, 38, 0.7);
    --bg-card-hover: rgba(26, 34, 54, 0.95);
    --accent-green: #00e676;
    --accent-green-rgb: 0, 230, 118;
    --accent-green-glow: #00e67640;
    --accent-green-dim: #00b050;
    --text-white: #ffffff;
    --text-muted: #cbd5e1;
    --border-color: rgba(255, 255, 255, 0.08);
    --border-color-active: rgba(0, 230, 118, 0.4);
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Global Styles */
html {
    overflow-x: hidden !important;
}

a,
.btn,
.nav-link,
.navbar-brand {
    text-decoration: none !important;
}

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

.navbar-brand .logo-text small {
    color: #94a3b8 !important;
}

body {
    background-color: var(--bg-deep);
    color: var(--text-white);
    font-family: var(--font-body);
    overflow-x: hidden;
    scroll-behavior: smooth;
    line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: -0.02em;
}

p {
    color: var(--text-muted);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-deep);
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent-green);
}

/* Selection Color */
::selection {
    background-color: var(--accent-green-glow);
    color: var(--text-white);
}

/* Header & Navbar */
.navbar {
    transition: var(--transition-smooth);
    padding: 20px 0;
    border-bottom: 1px solid transparent;
}

.navbar-scrolled {
    background: rgba(8, 12, 20, 0.85) !important;
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

.navbar-brand {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.4rem;
    color: var(--text-white) !important;
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: -0.5px;
}

.navbar-brand .logo-text span {
    color: var(--accent-green);
}

.nav-link {
    color: var(--text-white) !important;
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 8px 16px !important;
    transition: var(--transition-smooth);
    position: relative;
}

.nav-link:hover {
    color: var(--accent-green) !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 16px;
    right: 16px;
    height: 2px;
    background-color: var(--accent-green);
    transform: scaleX(0);
    transition: var(--transition-smooth);
    transform-origin: right;
}

.nav-link:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.nav-link.active {
    color: var(--accent-green) !important;
}

.nav-link.active::after {
    transform: scaleX(1);
}

/* Premium Buttons */
.btn-electric {
    background: linear-gradient(135deg, var(--accent-green), var(--accent-green-dim));
    color: #000000 !important;
    font-family: var(--font-heading);
    font-weight: 600;
    padding: 12px 28px;
    border-radius: 8px;
    border: none;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px var(--accent-green-glow);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-electric:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 230, 118, 0.4);
    background: linear-gradient(135deg, #24ff8a, var(--accent-green));
}

.btn-electric-outline {
    background: transparent;
    color: var(--text-white) !important;
    font-family: var(--font-heading);
    font-weight: 500;
    padding: 11px 27px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transition-smooth);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-electric-outline:hover {
    border-color: var(--accent-green);
    color: var(--accent-green) !important;
    background: rgba(0, 230, 118, 0.05);
    box-shadow: 0 0 15px rgba(0, 230, 118, 0.1);
    transform: translateY(-2px);
}

/* Hero Section */
.hero-section {
    position: relative;
    padding: 180px 0 120px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background-color: var(--bg-deep);
    z-index: 1;
    overflow: hidden;
}

/* Electrical grid background overlay */
.hero-grid-overlay {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(0, 230, 118, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 230, 118, 0.02) 1px, transparent 1px);
    background-size: 50px 50px;
    background-position: center center;
    z-index: -2;
    mask-image: radial-gradient(circle at 60% 40%, black, transparent 75%);
    -webkit-mask-image: radial-gradient(circle at 60% 40%, black, transparent 75%);
}

.hero-glow-orb {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 230, 118, 0.06) 0%, transparent 70%);
    top: 10%;
    right: -10%;
    z-index: -1;
    animation: orbPulse 8s infinite alternate ease-in-out;
}

@keyframes orbPulse {
    0% {
        transform: scale(1) translate(0, 0);
    }

    100% {
        transform: scale(1.15) translate(-20px, 30px);
    }
}

.hero-title {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 24px;
    text-transform: uppercase;
}

@media (max-width: 991px) {
    .hero-title {
        font-size: 2.8rem;
    }
}

.hero-title span {
    color: var(--accent-green);
    background: linear-gradient(to right, #ffffff, var(--accent-green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-lead {
    font-size: 1.25rem;
    margin-bottom: 40px;
    max-width: 580px;
}

/* Visual elements on hero right side */
.hero-panel-container {
    position: relative;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    background: rgba(18, 24, 38, 0.4);
    backdrop-filter: blur(12px);
    padding: 30px;
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.8),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

.hero-panel-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-green), transparent);
    animation: scanLine 4s infinite linear;
}

@keyframes scanLine {
    0% {
        transform: translateY(-30px);
        opacity: 0;
    }

    5% {
        opacity: 1;
    }

    95% {
        opacity: 1;
    }

    100% {
        transform: translateY(500px);
        opacity: 0;
    }
}

.hero-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 15px;
}

.panel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--accent-green);
    box-shadow: 0 0 8px var(--accent-green);
    animation: flash 1.5s infinite alternate;
}

@keyframes flash {
    0% {
        opacity: 0.3;
    }

    100% {
        opacity: 1;
    }
}

/* Glassmorphism Cards */
.glass-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 35px;
    transition: var(--transition-smooth);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.glass-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-color-active);
    transform: translateY(-8px);
    box-shadow: 0 20px 40px -20px rgba(0, 230, 118, 0.15),
        0 0 1px 1px var(--accent-green-glow);
}

.glass-card .icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: rgba(0, 230, 118, 0.08);
    border: 1px solid rgba(0, 230, 118, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    color: var(--accent-green);
    font-size: 1.5rem;
    transition: var(--transition-smooth);
}

.glass-card:hover .icon-wrapper {
    background: var(--accent-green);
    color: #000000;
    box-shadow: 0 0 20px var(--accent-green-glow);
    transform: scale(1.05);
}

/* Section Styling */
.section-padding {
    padding: 100px 0;
}

.section-tag {
    color: var(--accent-green);
    font-family: var(--font-heading);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.15em;
    margin-bottom: 12px;
    display: block;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 24px;
}

.section-title span {
    font-weight: 300;
}

.section-desc {
    font-size: 1.1rem;
    max-width: 650px;
    margin-bottom: 60px;
}

/* Electric Divider */
.electric-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-color-active), var(--accent-green), var(--border-color-active), transparent);
    width: 100%;
    margin: 20px 0;
}

/* Service Specs List */
.specs-list {
    list-style: none;
    padding: 0;
    margin: 20px 0 0 0;
    margin-top: auto;
}

.specs-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.specs-list li i {
    color: var(--accent-green);
    font-size: 0.8rem;
}

/* Contact Form Styling */
.contact-form-container {
    background: rgba(18, 24, 38, 0.5);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 40px;
    backdrop-filter: blur(12px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.form-group-custom {
    position: relative;
    margin-bottom: 25px;
}

.form-control-custom {
    background: rgba(8, 12, 20, 0.5) !important;
    border: 1px solid var(--border-color) !important;
    color: var(--text-white) !important;
    border-radius: 8px !important;
    padding: 14px 18px !important;
    font-size: 0.95rem !important;
    transition: var(--transition-smooth) !important;
}

.form-control-custom:focus {
    border-color: var(--accent-green) !important;
    box-shadow: 0 0 15px rgba(0, 230, 118, 0.1) !important;
    background: rgba(8, 12, 20, 0.7) !important;
}

.form-control-custom::placeholder {
    color: #4b5563;
}

textarea.form-control-custom {
    min-height: 120px;
    resize: none;
}

.form-label-custom {
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: 8px;
    display: block;
}

/* Metrics Section */
.metric-box {
    text-align: center;
    border-right: 1px solid var(--border-color);
}

@media (max-width: 767px) {
    .metric-box {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        padding-bottom: 25px;
        margin-bottom: 25px;
    }

    .metric-box:last-child {
        border-bottom: none;
        padding-bottom: 0;
        margin-bottom: 0;
    }
}

.metric-box:last-child {
    border-right: none;
}

.metric-number {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--accent-green);
    line-height: 1;
    margin-bottom: 10px;
    display: block;
    text-shadow: 0 0 15px var(--accent-green-glow);
}

.metric-label {
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-white);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.metric-sub {
    font-size: 0.85rem;
    color: var(--text-muted);
}

@media (max-width: 767px) {
    .metric-number {
        font-size: 2.5rem;
    }
    .metric-label {
        font-size: 0.85rem;
    }
    .metric-sub {
        font-size: 0.75rem;
    }
}

/* Floating WhatsApp Button */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: #fff !important;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.whatsapp-float:hover {
    transform: translateY(-5px) scale(1.05);
    background-color: #20ba5a;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.6);
}

/* Footer Styles */
.footer {
    background: #05080d;
    border-top: 1px solid var(--border-color);
    padding: 80px 0 30px;
    font-size: 0.95rem;
}

.footer-logo {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--text-white) !important;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 25px;
}

.footer-logo span {
    color: var(--accent-green);
}

.footer-desc {
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 25px;
}

.footer-heading {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--text-white);
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    position: relative;
    padding-bottom: 10px;
}

.footer-heading::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 30px;
    height: 2px;
    background-color: var(--accent-green);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition-smooth);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.footer-links a:hover {
    color: var(--accent-green);
    transform: translateX(4px);
}

.footer-contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contact-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: var(--text-muted);
    margin-bottom: 15px;
}

.footer-contact-list li i {
    color: var(--accent-green);
    margin-top: 5px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition-smooth);
}

.social-link:hover {
    background: var(--accent-green);
    color: #000000;
    border-color: var(--accent-green);
    box-shadow: 0 0 15px var(--accent-green-glow);
    transform: translateY(-3px);
}

.footer-bottom {
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Form success message popup style */
.toast-custom {
    position: fixed;
    bottom: 30px;
    left: 30px;
    background: var(--bg-card);
    border: 1px solid var(--accent-green);
    border-radius: 12px;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 230, 118, 0.1);
    z-index: 1050;
    transition: var(--transition-smooth);
    transform: translateY(150px);
    opacity: 0;
    backdrop-filter: blur(12px);
}

.toast-custom.show {
    transform: translateY(0);
    opacity: 1;
}

.toast-custom i {
    color: var(--accent-green);
    font-size: 1.25rem;
}

/* Hero Image & Floating Tags */
.hero-image-wrapper {
    position: relative;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    padding: 10px;
    background: rgba(18, 24, 38, 0.3);
    backdrop-filter: blur(10px);
    box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.8),
        0 0 40px rgba(0, 230, 118, 0.05);
    transition: var(--transition-smooth);
}

.hero-image-wrapper:hover {
    border-color: var(--border-color-active);
    box-shadow: 0 30px 60px -15px rgba(0, 230, 118, 0.15),
        0 0 50px rgba(0, 230, 118, 0.15);
}

.hero-image-frame {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    aspect-ratio: 4/3;
}

.hero-image-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.hero-image-wrapper:hover .hero-image-frame img {
    transform: scale(1.03);
}

.hero-image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(8, 12, 20, 0.8) 0%, transparent 60%);
    z-index: 1;
}

/* Floating Tags styling */
.floating-tag {
    position: absolute;
    z-index: 2;
    background: rgba(18, 24, 38, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 12px;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
    transition: var(--transition-smooth);
}

.floating-tag:hover {
    background: rgba(18, 24, 38, 0.9);
    border-color: var(--border-color-active);
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(0, 230, 118, 0.15);
}

.floating-tag i {
    color: var(--accent-green);
    font-size: 1.1rem;
}

.floating-tag span {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-white);
    letter-spacing: -0.2px;
}

/* Tag positions */
.tag-1 {
    top: 15%;
    left: -5%;
}

.tag-2 {
    bottom: 25%;
    right: -5%;
}

.tag-3 {
    bottom: 5%;
    left: 8%;
}

@media (max-width: 575px) {
    .floating-tag {
        padding: 8px 12px;
    }

    .floating-tag span {
        font-size: 0.75rem;
    }

    .tag-1 {
        left: 2%;
    }

    .tag-2 {
        right: 2%;
    }

    .tag-3 {
        left: 5%;
    }
}

/* Mobile Sticky Action Bar */
.mobile-sticky-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 1040;
    background: rgba(5, 8, 13, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.5);
}

.mobile-sticky-bar .sticky-item {
    padding: 8px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.mobile-sticky-bar .sticky-item i {
    transition: transform 0.2s ease;
}

.mobile-sticky-bar .sticky-item:active i {
    transform: scale(0.9);
}

@media (max-width: 767.98px) {
    body {
        padding-bottom: 60px; /* Space for the sticky bar */
    }
    
    .whatsapp-float {
        display: none !important;
    }
}

/* Service Gallery Styles */
.gallery-img-wrapper {
    overflow: hidden;
    border-radius: 1rem;
    border: 1px solid var(--border-color);
    background: rgba(18, 24, 38, 0.4);
    transition: var(--transition-smooth);
    position: relative;
    display: block;
}

.gallery-img-wrapper:hover {
    border-color: var(--border-color-active);
    box-shadow: 0 0 20px var(--accent-green-glow);
    transform: translateY(-4px);
    z-index: 2;
}

.gallery-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-img-wrapper:hover img {
    transform: scale(1.05);
}

/* Aspect Ratios */
.gallery-img-vertical {
    aspect-ratio: 9 / 16;
}

.gallery-img-square {
    aspect-ratio: 1 / 1;
}

/* Mobile Adjustments for Gallery */
@media (max-width: 767.98px) {
    .gallery-img-vertical {
        aspect-ratio: 4 / 3; /* Less extreme on mobile */
    }
}


/* Mobile Navbar Toggle Fix */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background: rgba(8, 12, 20, 0.95);
        backdrop-filter: blur(10px);
        padding: 1.5rem;
        border-radius: 1rem;
        margin-top: 1rem;
        border: 1px solid rgba(255, 255, 255, 0.05);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    }
    
    .navbar-nav {
        align-items: flex-start !important;
    }
    
    .navbar-nav .nav-item {
        width: 100%;
        margin-bottom: 0.5rem;
    }
}
