/*
Theme Name: PVNG Electromechanical
Description: Custom theme for PVNG Electromechanical Works L.L.C.
Version: 1.0
Author: PVNG
*/

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Ensure no spacing on homepage */
body.home {
    margin: 0 !important;
    padding: 0 !important;
}

body.home * {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

html {
    background: #000000;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
    background: #000000;
    margin: 0;
    padding: 0;
}

/* Navigation Styles */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1001;
    background: transparent;
    padding: 1rem 0;
    transition: all 0.3s ease;
}

/* Remove all spacing on homepage for seamless banner */
body.home .navbar {
    padding: 0;
    margin: 0;
}

/* Make navbar content have padding but navbar itself has none */
body.home .nav-container {
    padding: 1rem 2rem;
}

.navbar.scrolled {
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
}

/* Always black navbar on non-home pages */
body:not(.home) .navbar,
.page-projects .navbar,
.page-about .navbar,
.page-our-services .navbar,
.page-contact .navbar {
    background: rgba(0, 0, 0, 0.95) !important;
    backdrop-filter: blur(10px);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
}

.logo-section {
    display: flex;
    align-items: center;
    margin-top: -1rem;
    margin-left: -50px;
}

.logo-section a {
    display: flex;
    align-items: center;
    gap: 0.75rem; /* space between logo and text */
    text-decoration: none;
}

.logo-section img {
    height: 100px !important;
    width: 100px !important;
    max-height: none !important;
}

.logo-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-left: 0.5rem;
    gap: 0.2rem;
}

.logo-text .company-name {
    color: white !important;
    font-size: 1.75rem;
    font-weight: 700;
}

.logo-text .sub-text {
    color: white !important;
    font-size: 0.9rem;
    font-weight: 500;
    opacity: 0.8;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-left: 4rem;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: opacity 0.3s ease;
}

.nav-links a:hover {
    opacity: 0.8;
}

.nav-links a.active {
    background: rgba(255, 255, 255, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
}

.language-switch {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.language-switch:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

/* Hero Section - Consolidated */
.hero-section {
    width: 100%;
    background: none !important;
    background-color: transparent !important;
    margin: 0 !important;
    padding: 0 !important;
    height: auto !important;
    min-height: unset !important;
    position: static !important;
    display: block !important;
    align-items: unset !important;
    justify-content: unset !important;
    overflow: visible !important;
}

/* Ensure hero section starts from very top on homepage */
body.home .hero-section {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

/* Make banner image start from absolute top */
body.home .hero-banner {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

body.home .hero-banner img {
    margin-top: 0 !important;
    padding-top: 0 !important;
    display: block;
}

.hero-banner {
    width: 100%;
}

.hero-banner img {
    width: 100%;
    height: auto;
    display: block;
}



.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-white {
    background: white;
    color: #333;
    border: 2px solid white;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.btn-white:hover {
    background: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.3);
}

.btn-outline {
    background: transparent;
    color: white;
    border: 2px solid white;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.btn-outline:hover {
    background: white;
    color: #333;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 255, 255, 0.3);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    
    .btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.4);
}

/* Lightbulb Animation */
.lightbulb-container {
    position: absolute;
    right: 10%;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
}

.lightbulb {
    width: 300px;
    height: 400px;
    position: relative;
    animation: float 6s ease-in-out infinite;
}

.lightbulb svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 30px rgba(59, 130, 246, 0.6));
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

/* Content Sections */
.content-section {
    padding: 4rem 0;
}

.sustainability-section {
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    padding: 0 0 4rem 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: bold;
    text-align: center;
    margin-bottom: 2rem;
    position: relative;
}

.section-title .gradient-text {
    background: linear-gradient(135deg, #059669, #2563eb, #059669);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-content {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
    padding: 0 2rem;
}

.section-content p {
    font-size: 1.125rem;
    color: #374151;
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

/* Services Section */
.services-section {
    background: white;
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.service-card {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.service-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: all 0.3s ease;
}

.service-card:hover img {
    filter: brightness(0.7);
}

.service-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    padding: 2rem;
    color: white;
}

.service-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.service-link {
    color: white;
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.service-link:hover {
    color: #60a5fa;
}

/* Solar Calculator Card */
.solar-calculator-card {
    background: linear-gradient(135deg, #10b981, #0d9488, #0891b2);
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
}

.solar-calculator-card:hover {
    transform: scale(1.05);
    box-shadow: 0 20px 40px rgba(16, 185, 129, 0.3);
}

.solar-calculator-card h3 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #fef3c7, #ffffff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Stats Section */
.stats-section {
    background: linear-gradient(135deg, #1e293b, #2563eb, #1e293b);
    padding: 4rem 0;
    color: white;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 2rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.stat-label {
    font-size: 1.125rem;
    color: #cbd5e1;
    font-weight: 600;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #1e293b, #000000, #1e293b);
    color: white;
    padding: 4rem 0 2rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    padding: 0 2rem;
}

.footer-logo {
    text-align: center;
}

.footer-logo img {
    width: 200px;
    height: auto;
    margin-bottom: 1rem;
}

.footer-logo .company-name {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.footer-logo .tagline {
    font-size: 0.75rem;
    opacity: 0.9;
}

.footer-section h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: white;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #60a5fa;
}

.footer-bottom {
    border-top: 1px solid #374151;
    margin-top: 2rem;
    padding-top: 2rem;
    text-align: center;
    color: #9ca3af;
}

/* Floating Elements */
.floating-calculator {
    position: fixed;
    bottom: 12rem;
    right: 1.5rem;
    z-index: 1000;
    background: white;
    border-radius: 50%;
    padding: 1rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.floating-calculator:hover {
    transform: scale(1.1);
}

.floating-whatsapp {
    position: fixed;
    bottom: 8rem;
    right: 1.5rem;
    z-index: 1000;
    background: #25d366;
    color: white;
    border-radius: 50%;
    padding: 0;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.3);
    transition: all 0.3s ease;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.floating-whatsapp svg {
    width: 28px;
    height: 28px;
    margin: 0;
    padding: 0;
}

.floating-whatsapp:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.4);
}

.floating-chat {
    position: fixed;
    bottom: 4rem;
    right: 1.5rem;
    z-index: 1000;
    background: white;
    color: #2563eb;
    border-radius: 50%;
    padding: 0;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    animation: shake 2s infinite;
    transition: all 0.3s ease;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.floating-chat svg {
    width: 28px;
    height: 28px;
    margin: 0;
    padding: 0;
}

.floating-chat:hover {
    animation: none;
    transform: scale(1.1);
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-container {
        padding: 0 1rem;
    }
    
    .nav-links {
        display: none;
    }
    
    .logo-text {
        margin-left: 0.25rem;
    }
    
    .logo-text .company-name {
        font-size: 1.4rem;
    }
    
    .lightbulb-container {
        display: none;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .floating-calculator,
    .floating-whatsapp,
    .floating-chat {
        display: none;
    }
}

/* Arabic Support */
.rtl {
    direction: rtl;
    text-align: right;
}

.rtl .logo-section {
    margin-left: 0;
    margin-right: -50px;
}

.rtl .nav-links {
    margin-left: 0;
    margin-right: 4rem;
}

/* Force logo layout */
.logo-section .logo-text {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    margin-left: 0.5rem !important;
    gap: 0.2rem !important;
}

.logo-section .logo-text .company-name,
.logo-section .logo-text .sub-text {
    display: block !important;
}

/* Force logo size */
.logo-section img {
    height: 100px !important;
    width: 100px !important;
    max-height: none !important;
}

/* Language Toggle Button */
.language-toggle-container {
    display: flex;
    align-items: center;
}

.language-toggle-btn {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 8px;
}

.language-toggle-btn:hover {
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.language-toggle-btn:active {
    transform: translateY(0);
}

/* Arabic Text Styling */
html[lang="ar"] {
    font-family: 'Cairo', 'Inter', sans-serif;
    direction: rtl;
}

html[lang="ar"] body {
    direction: rtl;
}

/* Arabic text elements - right align text */
html[lang="ar"] h1,
html[lang="ar"] h2,
html[lang="ar"] h3,
html[lang="ar"] h4,
html[lang="ar"] h5,
html[lang="ar"] h6,
html[lang="ar"] p,
html[lang="ar"] span,
html[lang="ar"] div {
    text-align: right !important;
    font-family: 'Cairo', 'Inter', sans-serif;
}

/* Navigation links - center text, LTR layout */
html[lang="ar"] .nav-link {
    text-align: center !important;
    direction: ltr !important;
}

/* Logo text should always be left-aligned */
html[lang="ar"] .logo-text {
    text-align: left !important;
    direction: ltr !important;
}

/* Force logo section to maintain LTR layout in Arabic */
html[lang="ar"] .logo-section {
    direction: ltr !important;
    text-align: left !important;
}

html[lang="ar"] .logo-section * {
    text-align: left !important;
    direction: ltr !important;
}

/* Ensure footer logo section maintains vertical layout */
html[lang="ar"] .footer-logo {
    text-align: center !important;
    direction: ltr !important;
}

html[lang="ar"] .footer-logo * {
    text-align: center !important;
    direction: ltr !important;
}

/* RTL Support Classes */
.rtl {
    direction: rtl;
}

.rtl h1,
.rtl h2,
.rtl h3,
.rtl h4,
.rtl h5,
.rtl h6,
.rtl p,
.rtl span,
.rtl div {
    text-align: right !important;
}

.ltr {
    direction: ltr;
}

.ltr h1,
.ltr h2,
.ltr h3,
.ltr h4,
.ltr h5,
.ltr h6,
.ltr p,
.ltr span,
.ltr div {
    text-align: left !important;
}

