html {
    scroll-behavior: smooth;
    scroll-padding-top: 140px;
}

body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
    background-color: #f8f9fa;
}

/* Offset for sticky header on anchor targets */
section[id] {
    scroll-margin-top: 140px;
}

.featured-banners [id] {
    scroll-margin-top: 140px;
}

:root {
    --primary-red: #d32f2f;
    --secondary-blue: #0d47a1;
    --accent-gold: #ffc107;
    --dark-bg: #1a1a1a;
    --light-gray: #f4f4f4;
    --glass-bg: rgba(255, 255, 255, 0.8);
}

/* Typography */
h1, h2, h3, h4 {
    font-weight: 700;
    margin-bottom: 1rem;
}

/* Navbar */
.announcement-bar {
    background: var(--dark-bg);
    color: white;
    padding: 8px 0;
    text-align: center;
    font-size: 14px;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

.announcement-content {
    display: inline-block;
    white-space: nowrap;
    animation: scroll 20s linear infinite;
}

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

/* Header Layout */
header {
    background: white;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.top-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    border-bottom: 1px solid #f0f0f0;
}

.header-left {
    display: flex;
    gap: 20px;
    flex: 2;
}

.header-left a {
    text-decoration: none;
    color: #444;
    font-weight: 700;
    font-size: 11px;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    white-space: nowrap;
    position: relative;
    padding-bottom: 3px;
}

.header-left a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--primary-red);
    transition: width 0.3s;
}

.header-left a:hover::after {
    width: 100%;
}

.header-left a:hover {
    color: var(--primary-red);
}

.header-center {
    flex: 1.5;
    text-align: center;
}

.header-right {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.main-header {
    padding: 10px 0;
    background: #fafafa;
    border-top: 1px solid #eee;
}

.navbar {
    padding: 0;
}

.nav-links {
    display: flex;
    justify-content: center;
    gap: 40px;
}

.nav-link {
    text-decoration: none;
    color: #222 !important;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s;
    padding: 5px 0 !important;
}

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

.nav-icons {
    display: flex;
    gap: 22px;
    align-items: center;
}

.nav-icons a {
    color: #333;
    font-size: 18px;
    text-decoration: none;
    position: relative;
}

.icon-badge span {
    position: absolute;
    top: -8px;
    right: -10px;
    background: var(--primary-red);
    color: white;
    font-size: 10px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.logo {
    font-size: 32px;
    font-weight: 900;
    color: var(--primary-red);
    text-transform: uppercase;
    text-decoration: none;
    letter-spacing: -1px;
    font-family: Georgia, 'Times New Roman', Times, serif;
}

.navbar-toggler {
    border: none;
    padding: 0;
}

.navbar-toggler:focus {
    box-shadow: none;
}

@media (max-width: 991px) {
    .header-left { 
        display: flex; 
        gap: 15px; 
        overflow-x: auto;
        white-space: nowrap;
        padding-bottom: 5px;
        scrollbar-width: none; /* Hide scrollbar for clean look */
    }
    .header-left::-webkit-scrollbar { display: none; }
    .header-left a { font-size: 10px; }
    
    .header-right { display: none; }
    .top-header { 
        flex-direction: column;
        padding: 15px 5% 5px; 
        gap: 10px;
        border-bottom: none; 
    }
    .logo { font-size: 24px; order: -1; } /* Logo on top */
    .main-header { background: white; padding: 0; }
    .navbar-collapse {
        padding: 20px 5%;
        background: white;
        border-top: 1px solid #eee;
    }
    .nav-links {
        flex-direction: column;
        gap: 15px;
        text-align: left;
    }
}

.logo span {
    color: var(--secondary-blue);
}

/* Hero Section */
.hero {
    height: 80vh;
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('hero_electrical.png');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.hero-content {
    max-width: 800px;
    padding: 20px;
    animation: fadeIn 1s ease-out;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.cta-btn {
    background: var(--primary-red);
    color: white;
    padding: 15px 40px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 700;
    transition: transform 0.3s, background 0.3s;
    display: inline-block;
}

.cta-btn:hover {
    transform: scale(1.05);
    background: #b71c1c;
}

/* Categories Section */
.categories {
    padding: 60px 5%;
    text-align: center;
}

.category-row {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.category-item {
    width: 150px;
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s;
}

.category-item:hover {
    transform: translateY(-10px);
}

.category-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin: 0 auto 15px;
    border: 4px solid white;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    background: white;
    overflow: hidden;
}

.category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-item p {
    font-weight: 600;
    margin: 0;
}

/* Product Section */
.products {
    padding: 60px 5%;
    background: #fff;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.product-card {
    background: #fff;
    position: relative;
    border: 1px solid #f0f0f0;
    transition: all 0.3s;
    overflow: hidden;
}

.product-card:hover {
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.product-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--primary-red);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    z-index: 2;
}

.product-image {
    height: 300px;
    overflow: hidden;
    position: relative;
    background: #fdfdfd;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.product-info {
    padding: 20px;
    text-align: left;
}

.product-rating {
    color: #ddd;
    font-size: 12px;
    margin-bottom: 8px;
}

.product-rating i.active {
    color: var(--accent-gold);
}

.product-title {
    font-weight: 400;
    font-size: 0.95rem;
    margin-bottom: 10px;
    height: 1rem; /* Adjusted height slightly as well to match smaller font */
    overflow: hidden;
}

.product-price {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--primary-red);
}

.product-price .old-price {
    font-size: 0.9rem;
    color: #999;
    text-decoration: line-through;
    margin-right: 10px;
    font-weight: 400;
}

.add-to-cart {
    background: var(--dark-bg);
    color: white;
    width: 100%;
    padding: 15px;
    border: none;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
}

.add-to-cart i {
    font-size: 1.1rem;
}

.add-to-cart:hover {
    background: #25d366;
    color: white;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.5rem;
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--primary-red);
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: #fff;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: all 0.3s;
    border-bottom: 5px solid transparent;
}

.service-card:hover {
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    transform: translateY(-5px);
    border-bottom: 5px solid var(--secondary-blue);
}

.service-icon {
    font-size: 40px;
    color: var(--secondary-blue);
    margin-bottom: 20px;
}

/* Feature Banners */
.banner {
    height: 350px;
    border-radius: 15px;
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 40px;
    color: white;
    position: relative;
    overflow: hidden;
    margin-bottom: 20px;
}

.banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    z-index: 1;
}

.banner div {
    position: relative;
    z-index: 2;
}

.banner-solar { background-image: url('category_solar.png'); }
.banner-security { background-image: url('category_switchgear.png'); }

/* Testimonials Section (People Are Talking) */
.testimonials {
    padding: 100px 5%;
    display: flex;
    align-items: center;
    background: #fff;
    gap: 50px;
}

.testimonial-text {
    flex: 1;
    min-width: 300px;
}

.quote-icon {
    font-size: 50px;
    color: #eee;
    margin-bottom: 20px;
}

.testimonial-text h4 {
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 14px;
    color: #888;
}

.stars {
    color: var(--accent-gold);
    margin: 15px 0;
    font-size: 20px;
}

.testimonial-content {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 25px;
    color: #333;
}

.reviewer-name {
    font-weight: 700;
    font-size: 1.1rem;
}

.reviewer-meta {
    color: #777;
    margin-top: 5px;
}

.test-arrows {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.arrow {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 1px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.3s, color 0.3s;
}

.arrow:hover {
    background: var(--dark-bg);
    color: white;
}

.testimonial-image {
    flex: 1;
    min-width: 300px;
    display: flex;
    justify-content: center;
    position: relative;
}

.testimonial-image img {
    max-width: 100%;
    border-radius: 20px;
}

.badge-float {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: white;
    padding: 15px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Trust Features Section */
.trust-features {
    padding: 60px 5%;
    background: #fdfdfd;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.trust-card {
    background: #f9f9f9;
    padding: 40px 30px;
    text-align: center;
    border: 1px solid #f0f0f0;
}

.trust-card i {
    font-size: 45px;
    color: #333;
    margin-bottom: 20px;
}

.trust-card h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.trust-card p {
    font-size: 0.9rem;
    color: #777;
}

/* E-Seva Section */
.eseva-section {
    padding: 80px 5%;
    background: #fff;
}

.eseva-container {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.eseva-image {
    flex: 1;
    position: sticky;
    top: 100px;
}

.eseva-image img {
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.eseva-content {
    flex: 2;
}

.eseva-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

/* Responsive adjustments for E-Seva */
@media (max-width: 1024px) {
    .eseva-container { flex-direction: column; }
    .eseva-image { position: static; }
}

.eseva-card {
    padding: 40px 30px;
    background: #f9f9f9;
    border-radius: 20px;
    border: 1px solid #f0f0f0;
    transition: all 0.3s ease;
    text-align: center;
}

.eseva-card:hover {
    background: #fff;
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
    transform: translateY(-10px);
    border-color: var(--secondary-blue);
}

.eseva-icon {
    font-size: 40px;
    color: var(--secondary-blue);
    margin-bottom: 20px;
}

.eseva-card h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: #222;
}

.eseva-card p {
    color: var(--primary-red);
    font-weight: 700;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.eseva-card ul {
    list-style: none;
    padding: 0;
    text-align: left;
    display: inline-block;
}

.eseva-card ul li {
    margin-bottom: 8px;
    color: #555;
    font-size: 0.95rem;
}

.eseva-card ul li::before {
    content: '✓';
    color: var(--secondary-blue);
    margin-right: 10px;
    font-weight: bold;
}

.banner-advertising {
    background: linear-gradient(135deg, rgba(13, 71, 161, 0.7), rgba(0, 0, 0, 0.6)), url('advertising_screen.png');
    background-size: cover;
    background-position: center;
    min-height: 450px !important;
}

/* Footer */
footer {
    background: var(--dark-bg);
    color: white;
    padding: 80px 5% 40px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}

.footer-col h3 {
    margin-bottom: 25px;
    color: var(--accent-gold);
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-col ul li a:hover {
    color: white;
}

.whatsapp-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #25d366;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    z-index: 1000;
    text-decoration: none;
}

/* Responsive */
@media (max-width: 768px) {
    .hero { height: auto; padding: 100px 0; }
    .hero-content h1 { font-size: 2.2rem; }
    .section-title h2 { font-size: 2rem; }
    .testimonial-content { font-size: 1.2rem; }
    .testimonials { flex-direction: column; text-align: center; }
    .testimonial-text { min-width: 100%; }
    .testimonial-image { min-width: 100%; }
}

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