/* 
 * Custom CSS for Evolution Power Website
 * This file contains additional styles that extend Tailwind CSS functionality
 */

:root {
    --primary: #00c985;
    --primary-dark: #00a56d;
    --primary-light: #33d39e;
    --secondary: #0f131e;
    --secondary-dark: #080b12;
    --secondary-light: #292e3a;
}

/* Logo sizing */
.logo-light, .logo-dark {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(3px 3px 5px rgba(0, 0, 0, 0.7));
}

@media (max-width: 768px) {
    .logo-light, .logo-dark {
        height: 24px !important;
        width: auto;
    }
    
    .transparent-nav {
        margin-top: 1rem !important;
    }
    
    .transparent-nav .container {
        padding-top: 0.5rem;
        padding-bottom: 0.5rem;
    }
}

/* Animation for counter elements */
.counter-value {
    transition: all 0.5s ease;
}

/* Custom hover effect for cards */
.service-card {
    transition: all 0.3s ease;
}

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

/* Custom styling for comparison table */
.comparison-table th,
.comparison-table td {
    padding: 1rem;
    text-align: center;
}

.comparison-table th {
    background-color: var(--primary);
    color: white;
}

.comparison-table tr:nth-child(even) {
    background-color: #f9fafb;
}

/* Custom styling for testimonial quotes */
.testimonial-quote {
    position: relative;
}

.testimonial-quote::before {
    content: "\201C";
    position: absolute;
    top: -20px;
    left: -10px;
    font-size: 4rem;
    color: var(--primary);
    opacity: 0.3;
    font-family: serif;
}

/* Custom styling for form elements */
.custom-form input,
.custom-form textarea,
.custom-form select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    background-color: #f9fafb;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.custom-form input:focus,
.custom-form textarea:focus,
.custom-form select:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 201, 133, 0.2);
}

/* Custom styling for buttons */
.btn-primary {
    display: inline-block;
    background-color: var(--primary);
    color: white;
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    border-radius: 0.375rem;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.btn-secondary {
    display: inline-block;
    background-color: var(--secondary);
    color: white;
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    border-radius: 0.375rem;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background-color: var(--secondary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* Custom image effects */
.hover-zoom {
    transition: transform 0.3s ease;
}

.hover-zoom:hover {
    transform: scale(1.05);
}

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

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

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* Video banner styles */
.video-banner {
    position: relative;
    height: 100vh;
    min-height: 600px;
    width: 100%;
    overflow: hidden;
}

/* Banner image styles */
.banner-image-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.banner-background-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Featured image in banner */
.featured-image-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    max-width: 800px;
    height: auto;
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Special styling for banner info points */
.video-banner .info-point {
    z-index: 8;
}

.video-banner .info-box {
    background-color: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    z-index: 20;
    color: white;
}

.video-banner .info-point:hover,
.video-banner .info-point.active {
    transform: translate(-50%, -50%) scale(1.3);
}

.featured-image {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.5));
}

/* Banner content positioning adjusted for featured image */
.video-banner .content {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    height: 100%;
    padding-top: 10rem;
    padding-bottom: 5rem;
}

.video-banner .max-w-3xl {
    background-color: rgba(0, 0, 0, 0.6);
    padding: 2rem;
    border-radius: 0.5rem;
    backdrop-filter: blur(5px);
}

.video-banner h1, 
.video-banner p {
    text-shadow: 0 4px 8px rgba(0, 0, 0, 1); /* Stronger text shadow for readability */
}

/* Media query for content positioning on different screens */
@media (max-width: 768px) {
    .featured-image-container {
        max-width: 90%;
    }
    
    .video-banner .content {
        justify-content: flex-end;
        padding-bottom: 8rem;
    }
}

/* Transparent nav styles */
.transparent-nav {
    background-color: transparent;
    transition: background-color 0.3s ease;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;
}

.transparent-nav.scrolled {
    background-color: rgba(15, 19, 30, 0.95);
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}

.transparent-nav .nav-link {
    color: white;
    font-weight: 600;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    letter-spacing: 0.02em;
}

.transparent-nav.scrolled .nav-link {
    color: white;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.6);
    font-weight: 600;
}

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

.transparent-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: var(--primary);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

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

.transparent-nav .nav-link:hover {
    color: var(--primary);
}

.transparent-nav .logo-light {
    display: block;
}

.transparent-nav .logo-dark {
    display: none;
}

.transparent-nav.scrolled .logo-light {
    display: block;
}

.transparent-nav.scrolled .logo-dark {
    display: none;
}

/* Mobile menu adjustments */
@media (max-width: 768px) {
    .mobile-menu {
        margin-top: 0.5rem;
    }
    
    .video-banner .content {
        padding-top: 12rem; /* Even more padding on mobile for the lower nav */
    }
    
    .h-32 {
        height: 7.5rem !important; /* Adjust the height of the nav bar on mobile */
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .section-heading {
        font-size: 1.875rem;
    }
    
    .btn-primary, 
    .btn-secondary {
        padding: 0.625rem 1.25rem;
    }
}

/* Interactive Image Map with Info Points */
.interactive-image-container {
    position: relative;
    max-width: 100%;
    margin: 0 auto;
    overflow: hidden;
}

.interactive-image-container img {
    display: block;
    width: 100%;
    height: auto;
}

.info-point {
    position: absolute;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: var(--primary);
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translate(-50%, -50%);
    transition: all 0.3s ease;
}

.info-point::after {
    content: '';
    position: absolute;
    width: 12px;
    height: 12px;
    background-color: white;
    border-radius: 50%;
}

.info-point.faded {
    opacity: 0;
    transition: opacity 0.3s ease;
    visibility: hidden;
}

.info-box {
    position: absolute;
    width: 220px;
    background-color: black;
    border-radius: 6px;
    padding: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 20;
    pointer-events: none;
}

.info-box h4 {
    margin: 0 0 8px;
    color: white;
    font-size: 14px;
}

.info-box p {
    margin: 0;
    font-size: 14px;
    color: white;
    line-height: 1.4;
}

/* Info box positions */
.info-box.left-align {
    right: 30px;
    top: -10px;
}

.info-box.right-align {
    left: 30px;
    top: -10px;
}

.info-box.center-align {
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    top: 30px;
}

/* Active state */
.info-point.active .info-box,
.info-point:hover .info-box {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.info-point.active .info-box.center-align,
.info-point:hover .info-box.center-align {
    transform: translateX(-50%) translateY(0);
}

.info-point.active,
.info-point:hover {
    transform: translate(-50%, -50%) scale(1.2);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .info-box {
        width: 180px;
        padding: 10px;
    }
    
    .info-box h4 {
        font-size: 14px;
    }
    
    .info-box p {
        font-size: 12px;
    }
    
    .info-point {
        width: 20px;
        height: 20px;
    }
}


/* Quick Link Popup Animation */
@keyframes popupFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.popup-animate {
    animation: popupFadeIn 0.3s ease-out forwards;
}

/* Quick Link Popup bounce effect */
@keyframes popupBounce {
    0% { transform: scale(0.8); opacity: 0; }
    50% { transform: scale(1.05); opacity: 1; }
    70% { transform: scale(0.95); }
    100% { transform: scale(1); opacity: 1; }
}

.popup-bounce {
    animation: popupBounce 0.4s ease forwards;
}

/* Gallery styles */
@keyframes fadeInGallery {
    from { opacity: 0.5; }
    to { opacity: 1; }
}

.fade-in {
    animation: fadeInGallery 0.5s ease-in forwards;
}

.active-thumb {
    opacity: 1;
}

#main-gallery-image {
    transition: all 0.3s ease;
}

.gallery-thumb {
    transition: all 0.2s ease;
}

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

/* Lightbox styles */
@keyframes lightboxFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

#gallery-lightbox {
    animation: lightboxFadeIn 0.3s ease-out;
}

#lightbox-image {
    max-height: 80vh;
    object-fit: contain;
    animation: popupBounce 0.4s ease forwards;
}

/* Gallery container hover styles */
.gallery-container:hover .absolute {
    opacity: 1;
}

.gallery-container .absolute {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-container {
    transition: transform 0.3s ease;
}

.gallery-container:hover {
    transform: scale(1.01);
} 