/* Custom Styles for RJ Electrical Services */

/* General Styles */
:root {
    --primary-color: #ffc107;
    --dark-color: #212529;
    --light-bg: #f8f9fa;
}

body {
    font-family: 'Poppins', sans-serif;
    scroll-behavior: smooth;
}

/* Logo Styles */
.logo-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #ffc107 0%, #ff9800 100%);
    border-radius: 10px;
    margin-right: 8px;
    color: #212529;
    font-size: 1.2rem;
}

.logo-icon-sm {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, #ffc107 0%, #ff9800 100%);
    border-radius: 6px;
    margin-right: 6px;
    color: #212529;
    font-size: 0.9rem;
}

.logo-large {
    position: relative;
    display: inline-block;
}

.logo-circle {
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, #ffc107 0%, #ff9800 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 100px;
    color: #212529;
    box-shadow: 0 20px 60px rgba(255, 193, 7, 0.4);
    animation: float 6s ease-in-out infinite;
    margin: 0 auto;
}

.logo-circle i {
    filter: drop-shadow(2px 2px 4px rgba(0,0,0,0.2));
}

.logo-text {
    font-size: 3rem;
    font-weight: 700;
    color: #fff;
    margin-top: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.logo-circle-sm {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, #ffc107 0%, #ff9800 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 50px;
    color: #212529;
    margin: 0 auto;
    box-shadow: 0 10px 30px rgba(255, 193, 7, 0.3);
}

.about-logo {
    margin-bottom: 20px;
}

/* Navbar Styles */
.navbar {
    transition: all 0.3s ease;
    padding: 15px 0;
}

.navbar.scrolled {
    background-color: rgba(33, 37, 41, 0.98) !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 10px 0;
}

.navbar-brand {
    font-size: 1.5rem;
}

.nav-link {
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    transition: color 0.3s ease;
}

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

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    min-height: 100vh;
    padding-top: 100px;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffc107' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.hero-section .container {
    position: relative;
    z-index: 1;
}

.hero-image {
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

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

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1) !important;
}

.service-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #fff9e6 0%, #fff3cd 100%);
    border-radius: 50%;
}

/* About Section */
.about-image {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    min-height: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Why Us Section */
#why-us {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
}

.feature-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 193, 7, 0.1);
    border-radius: 50%;
    transition: transform 0.3s ease;
}

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

/* Contact Form */
.form-control, .form-select {
    padding: 12px 15px;
    border-radius: 8px;
    border: 1px solid #dee2e6;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(255, 193, 7, 0.25);
}

/* Buttons */
.btn-warning {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #212529;
    font-weight: 600;
    padding: 12px 30px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-warning:hover {
    background-color: #e0a800;
    border-color: #d39e00;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 193, 7, 0.4);
}

.btn-outline-light {
    border-width: 2px;
    font-weight: 600;
    padding: 12px 30px;
    border-radius: 8px;
}

.btn-outline-light:hover {
    transform: translateY(-2px);
}

/* WhatsApp Float Button */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background-color: #25d366;
    color: #fff;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 5px 25px rgba(37, 211, 102, 0.5);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    background-color: #128c7e;
    color: #fff;
    transform: scale(1.1);
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.6);
}

/* Footer */
footer a {
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--primary-color) !important;
}

/* Badge Styles */
.badge {
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* Responsive Adjustments */
@media (max-width: 991.98px) {
    .hero-section {
        padding-top: 80px;
        text-align: center;
    }
    
    .hero-section .d-flex {
        justify-content: center;
    }
    
    .navbar-collapse {
        background: rgba(33, 37, 41, 0.98);
        padding: 20px;
        border-radius: 10px;
        margin-top: 15px;
    }
}

@media (max-width: 767.98px) {
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
        font-size: 24px;
    }
    
    .display-4 {
        font-size: 2rem;
    }
}

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

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

/* Card Hover Effects */
.card {
    border-radius: 15px;
}

/* Alert Styles */
.alert {
    border-radius: 10px;
    border: none;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
}

/* Section Spacing */
section {
    scroll-margin-top: 70px;
}

/* Text Utilities */
.text-warning {
    color: var(--primary-color) !important;
}

/* Shadow Utilities */
.shadow-sm {
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08) !important;
}

.shadow {
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.1) !important;
}
