/* Custom CSS for Urjaankur Solar Website */

/* Import Google Fonts for Devanagari support */
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Devanagari:wght@300;400;500;600;700&family=Roboto:wght@300;400;500;600;700&display=swap');

/* Root Variables */
:root {
    --primary-color: #0066cc;
    --secondary-color: #ff6600;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --dark-color: #343a40;
    --light-color: #f8f9fa;
}

/* Global Styles */
body {
    font-family: 'Roboto', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    padding-top: 76px; /* Account for fixed navbar */
}

/* Marathi Text Specific Styling */
html[lang="mr"] body,
html[lang="mr"] * {
    font-family: 'Noto Sans Devanagari', 'Mangal', 'Kokila', 'Aparajita', sans-serif !important;
}

/* Ensure proper text rendering for Devanagari */
html[lang="mr"] {
    -webkit-font-feature-settings: "kern" 1;
    font-feature-settings: "kern" 1;
    text-rendering: optimizeLegibility;
}

/* Navigation Styles */
.navbar-brand {
    font-size: 1.5rem;
}

.navbar-brand img {
    max-height: 40px;
    width: auto;
    transition: all 0.3s ease;
}

.navbar-brand img:hover {
    transform: scale(1.05);
}

/* Fallback if logo image fails to load */
.navbar-brand img[alt]::after {
    content: "🌞";
    font-size: 1.5rem;
}

.navbar-nav .nav-link {
    font-weight: 500;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-color) !important;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
}

/* Hero Image Styling */
.hero-section .col-lg-6 img {
    max-height: 500px;
    width: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 15px !important;
}

.bg-gradient-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}

/* Service Cards */
.service-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

/* Buttons */
.btn {
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
}

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

.btn-primary:hover {
    background-color: #0052a3;
    border-color: #0052a3;
    transform: translateY(-2px);
}

.btn-warning {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: white;
}

.btn-warning:hover {
    background-color: #e55a00;
    border-color: #e55a00;
    color: white;
    transform: translateY(-2px);
}

/* Cards */
.card {
    border-radius: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15) !important;
}

/* Images */
img {
    border-radius: 10px;
}

/* Gallery Styles */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    cursor: pointer;
}

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

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

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 102, 204, 0.8);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

/* Contact Form */
.form-control {
    border-radius: 10px;
    border: 2px solid #e9ecef;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 102, 204, 0.25);
}

/* Footer */
footer {
    background-color: var(--dark-color) !important;
}

footer a:hover {
    color: var(--secondary-color) !important;
    transition: color 0.3s ease;
}

/* Footer Logo Styling */
footer img {
    background-color: white !important;
    padding: 8px !important;
    border-radius: 8px !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1) !important;
    transition: all 0.3s ease !important;
}

footer img:hover {
    transform: scale(1.05) !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15) !important;
}

/* Responsive Utilities */
@media (max-width: 768px) {
    .hero-section {
        text-align: center;
    }
    
    /* Mobile Hero Image */
    .hero-section .col-lg-6 img {
        max-height: 300px;
        margin-top: 2rem;
    }
    
    .display-4 {
        font-size: 2.5rem;
    }
    
    .display-6 {
        font-size: 2rem;
    }
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.6s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Language Switch Button */
.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Custom spacing */
.py-6 {
    padding-top: 4rem !important;
    padding-bottom: 4rem !important;
}

/* Solar theme colors */
.text-solar-blue {
    color: var(--primary-color) !important;
}

.text-solar-orange {
    color: var(--secondary-color) !important;
}

.bg-solar-blue {
    background-color: var(--primary-color) !important;
}

.bg-solar-orange {
    background-color: var(--secondary-color) !important;
}
