* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background-color: var(--background-color);
    color: var(--text-color);
    transition: all 0.5s ease;
}

/* Navigation Bar Styles */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 3rem;
    background-color: rgba(51, 51, 51, 0.3);
    backdrop-filter: blur(5px);
    color: white;
    position: fixed;
    width: 100%;
    top: 0;
    height: 80px;
    z-index: 1000;
}

.logo img {
    height: 60px;
    width: auto;
}

.company-name h1 {
    font-size: 28px;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-size: 18px;
    transition: all 0.3s ease;
    padding: 10px 15px;
}

.nav-links a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
}

/* Mobile Menu Button (Hidden by default) */
.mobile-menu-btn {
    display: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
}

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 5px 0;
    transition: all 0.3s ease;
}

/* Main Content Area */
main {
    margin-top: 80px; /* To account for fixed navbar */
    padding: 2rem;
    min-height: calc(100vh - 200px); /* Ensures footer stays at bottom */
}

/* Footer Styles */
footer {
    background-color: #333;
    color: white;
    padding: 2rem;
}

.footer-content {
    display: flex;
    justify-content: space-around;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-info, .company-info {
    flex: 1;
    padding: 0 1rem;
}

h3 {
    margin-bottom: 1rem;
    color: #ffd700;
}

footer p {
    margin-bottom: 0.5rem;
}

/* Enhanced Media Queries */
/* For Large Desktops */
@media screen and (min-width: 1400px) {
    .footer-content {
        max-width: 1300px;
    }
    
    main {
        margin-top: 120px;
        padding: 3rem 4rem;
    }
}

/* For Regular Desktops */
@media screen and (max-width: 1200px) {
    nav {
        padding: 1.2rem 2rem;
        height: 90px;
    }

    .logo img {
        height: 60px;
    }

    .company-name h1 {
        font-size: 28px;
    }
}

/* For Tablets */
@media screen and (max-width: 992px) {
    nav {
        padding: 1rem 2rem;
        height: 70px;
    }

    .logo img {
        height: 50px;
    }

    .company-name h1 {
        font-size: 24px;
    }

    .nav-links {
        gap: 1.5rem;
    }

    .nav-links a {
        font-size: 16px;
    }

    main {
        margin-top: 100px;
        padding: 2rem;
    }
}

/* For Small Tablets */
@media screen and (max-width: 768px) {
    nav {
        padding: 1rem;
    }

    .mobile-menu-btn {
        display: block;
    }

    /* Hamburger to X animation */
    .mobile-menu-btn.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-btn.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }

    .nav-links {
        display: none;
        position: fixed;
        top: 80px; /* Height of nav bar */
        left: 0;
        width: 100%;
        background-color: rgba(51, 51, 51, 0.95);
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        transition: all 0.3s ease;
        backdrop-filter: blur(10px);
    }

    .nav-links.active {
        display: flex;
        animation: slideDown 0.3s ease forwards;
    }

    .nav-links a {
        width: 90%;
        text-align: center;
        padding: 15px;
        margin: 5px 0;
        border-radius: 5px;
        font-size: 18px;
    }

    .nav-links a:hover {
        background-color: rgba(255, 255, 255, 0.2);
    }

    main {
        margin-top: 200px;
    }

    .footer-content {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }

    .theme-switch-wrapper {
        right: 70px; /* Make space for mobile menu button */
    }

    .theme-switch {
        width: 60px;
        height: 30px;
    }

    .slider:before {
        height: 22px;
        width: 22px;
    }

    input:checked + .slider:before {
        transform: translateX(30px);
        height: 22px;
        width: 22px;
        left: -4px;
    }
}

/* For Mobile Phones */
@media screen and (max-width: 480px) {
    nav {
        height: 70px;
        padding: 0.8rem;
    }

    .logo img {
        height: 40px;
    }

    .company-name h1 {
        font-size: 20px;
    }

    .nav-links {
        top: 70px;
    }

    .nav-links a {
        font-size: 16px;
        padding: 12px;
    }

    main {
        margin-top: 180px;
        padding: 1.5rem;
    }

    footer {
        padding: 1.5rem;
    }

    .contact-info, .company-info {
        padding: 0.5rem;
    }

    h3 {
        font-size: 18px;
    }

    footer p {
        font-size: 14px;
    }

    .theme-switch-wrapper {
        right: 60px;
    }

    .theme-switch {
        width: 50px;
        height: 25px;
    }

    .slider:before {
        height: 17px;
        width: 17px;
    }

    input:checked + .slider:before {
        transform: translateX(25px);
        height: 17px;
        width: 17px;
    }
}

/* For Small Mobile Phones */
@media screen and (max-width: 320px) {
    .company-name h1 {
        font-size: 18px;
    }

    .nav-links a {
        font-size: 14px;
    }

    main {
        margin-top: 160px;
        padding: 1rem;
    }
}

/* Updated Toggle Switch Styles */
.theme-switch-wrapper {
    display: flex;
    align-items: center;
    margin-right: 20px; /* Space between toggle and Home link */
}

.theme-switch {
    display: inline-block;
    position: relative;
    width: 60px;
    height: 30px;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #f6d365;
    transition: .4s;
    border-radius: 30px;
    box-shadow: inset 0 0 5px rgba(0,0,0,0.2);
}

.slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
    box-shadow: 0 0 5px rgba(0,0,0,0.2);
}

/* Moon shape when toggled */
input:checked + .slider {
    background-color: #1a237e;
}

input:checked + .slider:before {
    transform: translateX(30px);
    background-color: transparent;
    box-shadow: 10px 0px 0 0 #ffffff;
    height: 22px;
    width: 22px;
    left: -4px;
}

/* Dark mode variables */
:root {
    --background-color: #ffffff;
    --text-color: #333333;
    --nav-bg: rgba(51, 51, 51, 0.3);
    --link-color: #333333;
    --card-bg: #ffffff;
    --shadow-color: rgba(0, 0, 0, 0.1);
}

.dark-mode {
    --background-color: #121212;
    --text-color: #ffffff;
    --nav-bg: rgba(0, 0, 0, 0.7);
    --link-color: #ffffff;
    --card-bg: #1e1e1e;
    --shadow-color: rgba(255, 255, 255, 0.1);
}

/* Animation for dropdown */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hero Section */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('your-hero-image.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    margin-top: -80px; /* Adjust for nav height */
}

.hero-content {
    padding: 20px;
}

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

.hero-content p {
    font-size: 1.5rem;
}

/* About Section */
.about {
    padding: 80px 0;
    background-color: #f9f9f9;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.about-content {
    display: flex;
    gap: 40px;
    margin-top: 40px;
}

.about-text, .company-info {
    flex: 1;
}

.designation {
    color: #666;
    margin-bottom: 20px;
}

/* Services Section */
.services {
    padding: 80px 0;
}

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

.service-card {
    padding: 30px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content p {
        font-size: 1.2rem;
    }

    .about-content {
        flex-direction: column;
    }

    .service-grid {
        grid-template-columns: 1fr;
    }
}

/* Products Page Styles */
.products-container {
    padding: 100px 20px 50px;
    max-width: 1200px;
    margin: 0 auto;
}

.products-title {
    text-align: center;
    color: #fff;
    font-size: 2.5rem;
    margin-bottom: 50px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.product-category {
    margin-bottom: 50px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 15px;
    padding: 20px;
    backdrop-filter: blur(5px);
}

.product-category h2 {
    color: #333;
    font-size: 1.8rem;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 2px solid #2196F3;
}

.product-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.product-item {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.product-item:hover {
    transform: translateY(-5px);
}

.product-item img {

    
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.product-item h3 {
    color: #333;
    padding: 15px 15px 5px;
    font-size: 1.2rem;
}

.product-item p {
    color: #666;
    padding: 0 15px 15px;
    font-size: 0 ;
}
