/* style.css */

/* Use a modern, clean font */
body {
    font-family: 'Inter', sans-serif;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
}

/* ==========================================================================
   Navbar & Header Styles
   ========================================================================== */
.navbar.bg-dark {
    background-color: transparent !important;
    background-image: linear-gradient(to right, #8e2de2, #4a00e0);
}

.navbar-brand {
    font-size: 1.5rem;
    padding-top: 0;
    padding-bottom: 0;
    margin-left: -12px;
    position: relative;
    z-index: 2;
}

.navbar-brand img {
    height: 40px;
    width: auto;
    filter: brightness(0) invert(1);
    transition: opacity 0.3s ease;
}

.navbar-brand:hover img {
    opacity: 0.85;
}

.nav-link {
    font-size: 0.95rem;
    margin-left: 8px;
    margin-right: 8px;
}

.navbar-dark .navbar-nav .nav-link {
    color: #ffffff;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link:focus {
    color: rgba(255, 255, 255, 0.85);
}

.navbar-nav {
    position: relative;
    z-index: 2;
}

.navbar-flag-container {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.navbar-flag-container img {
    height: 36px;
    width: auto;
    pointer-events: auto;
}

@media (min-width: 992px) {
  .navbar-expand-lg .navbar-nav .dropdown:hover .dropdown-menu {
    display: block;
    margin-top: 0;
  }
}

.dropdown-menu {
    background-color: #343a40;
    border: none;
    border-radius: 0;
    margin-top: 10px !important;
    padding: 0;
}

.dropdown-menu .dropdown-item {
    color: #f8f9fa;
    padding: 12px 20px;
    border-bottom: 1px solid #495057;
    font-size: 0.9rem;
    transition: all 0.2s ease-in-out;
}

.dropdown-menu .dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-menu .dropdown-item:hover,
.dropdown-menu .dropdown-item:focus {
    color: #ffffff;
    background-color: #495057;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: #ffffff;
    margin: 0 5px;
    transition: transform 0.3s ease;
}

.social-icon:hover {
    transform: scale(1.1);
}

.social-icon .fa-facebook-f { color: #1877F2; }
.social-icon .fa-twitter { color: #1DA1F2; }
.social-icon .fa-youtube { color: #FF0000; }
.social-icon .fa-linkedin-in { color: #0A66C2; }

.glowing-logo {
  filter: brightness(0) invert(1) drop-shadow(0 0 8px rgba(255, 255, 255, 0.7));
  animation: pulse-glow 2.5s infinite ease-in-out;
}

@keyframes pulse-glow {
  0% { filter: brightness(0) invert(1) drop-shadow(0 0 8px rgba(255, 255, 255, 0.7)); }
  50% { filter: brightness(0) invert(1) drop-shadow(0 0 16px rgba(255, 255, 255, 1)); }
  100% { filter: brightness(0) invert(1) drop-shadow(0 0 8px rgba(255, 255, 255, 0.7)); }
}

/* ==========================================================================
   Homepage Styles (MOVED FROM index-2.php)
   ========================================================================== */
.hero-section {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1;
}
.hero-content {
    position: relative;
    z-index: 2;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
}
.installation-card {
    background: #ffffff;
    border-radius: 15px;
    padding: 2.5rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.07);
    transition: all 0.3s ease-in-out;
    border: 1px solid #e9ecef;
    height: 100%;
}
.installation-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}
.installation-card .card-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, #8e2de2, #4a00e0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
}
.installation-card .card-title {
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}
.installation-card .card-number {
    font-size: 3.5rem;
    font-weight: 700;
    color: #343a40;
}

@keyframes shine {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.shine-h1, .shine-p {
    position: relative;
    overflow: hidden;
    color: #fff;
}

.shine-h1::before, .shine-p::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, transparent 0%, rgba(255, 255, 255, 0.6) 50%, transparent 100%);
    animation: shine 4s linear infinite;
}

.shine-p::before {
    animation-delay: 0.5s;
}


/* ==========================================================================
   Admin Dashboard Styles (MOVED FROM admin_dashboard.php)
   ========================================================================== */
.dashboard-card {
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
}
.dashboard-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15) !important;
}
.dashboard-card .card-body i {
    font-size: 3rem;
    color: #8e2de2;
}

/* ==========================================================================
   NEW Admin Helper Styles
   ========================================================================== */
.admin-image-preview {
    border: 1px solid #dee2e6;
    border-radius: .25rem;
    padding: .5rem;
    max-width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: contain;
    background-color: #f8f9fa;
}


/* ==========================================================================
   Gallery & General Component Styles
   ========================================================================== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.gallery-item {
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    background-color: #f8f9fa;
    aspect-ratio: 4 / 3;
}

.gallery-item img,
.gallery-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.gallery-item img {
    cursor: pointer;
}

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

.btn {
    transition: all 0.3s ease-in-out;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.display-4, .display-5 {
    font-weight: 700;
}


/* ==========================================================================
   Product Page Specific Styles (e.g., Solar Pump)
   ========================================================================== */
.product-hero {
    background: linear-gradient(rgba(0, 86, 179, 0.6), rgba(0, 58, 120, 0.7)), url('/omnis/uploads/images/water-background.jpeg') no-repeat center center !important;
    background-size: cover;
    color: white;
    padding: 6rem 1.5rem;
    text-align: center;
    border-radius: 0.5rem;
}

.product-hero h1 {
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.product-feature-icon {
    font-size: 2.5rem;
    color: #0d6efd;
}

.section-title {
    border-bottom: 3px solid #0d6efd;
    padding-bottom: 0.5rem;
    display: inline-block;
    margin-bottom: 2rem;
}

.nav-tabs .nav-link.active {
    background-color: #0d6efd;
    color: white;
    border-color: #0d6efd;
}

.tech-specs-table th {
    background-color: #f8f9fa;
}

.component-card {
    border: 1px solid #ddd;
    border-radius: 0.5rem;
    transition: box-shadow 0.3s ease;
}

.component-card:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.component-card .card-body {
    text-align: center;
}

.component-card i {
    font-size: 3rem;
    color: #0d6efd;
}

.faq-question {
    font-weight: 600;
}


/* ==========================================================================
   Responsive Styles
   ========================================================================== */
@media (max-width: 992px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Homepage hero adjustments */
    .hero-section {
        height: 60vh;
    }
    .hero-content h1 {
        font-size: 2.2rem;
    }
    .hero-content p.fs-4 {
        font-size: 0.9rem;
    }
}