/* Basic Resets & Typography */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans', Arial, sans-serif;
    line-height: 1.6;
    color: #000; /* Changed to black for white background */
    background-color: #fff; /* Changed to white */
    overflow-x: hidden; /* Prevent horizontal scroll */
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
}

/* Header */
header {
    background: #fff; /* Changed to white */
    padding: 12px 0;
    border-bottom: 1px solid #eee;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000; /* Ensure header is on top */
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
}

/* Logo Styling */
.logo {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.logo img {
    height: 90px;
    width: auto;
    max-width: 250px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.logo img:hover {
    transform: scale(1.05);
}

/* Navigation */
nav {
    flex-grow: 1;
    display: flex;
    justify-content: flex-end;
}

nav ul {
    list-style: none;
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
}

nav ul li {
    position: relative;
    margin-left: 35px;
}

nav ul li a {
    text-decoration: none;
    color: #000; /* Changed to black */
    font-weight: 600;
    padding: 12px 5px;
    display: block;
    transition: all 0.3s ease;
    font-size: 16px;
    position: relative;
}

nav ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 5px;
    left: 50%;
    background-color: #ff0000; /* Changed to red */
    transition: all 0.3s ease;
}

nav ul li a:hover::after {
    width: 100%;
    left: 0;
}

nav ul li a:hover {
    color: #ff0000; /* Changed to red */
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none; /* Hidden by default on larger screens */
    background: none;
    border: none;
    font-size: 24px;
    color: #000; /* Changed to black */
    cursor: pointer;
    padding: 10px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.mobile-menu-btn:hover {
    background-color: #f8f9fa;
}

/* Dropdown Menu */
.dropdown-content {
    display: none;
    position: absolute;
    background-color: #fff; /* Changed to white */
    min-width: 220px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    z-index: 1001; /* Ensure dropdown is above other content */
    border-top: 3px solid #ff0000; /* Changed to red */
    border-radius: 0 0 10px 10px;
    right: 0; /* Align to the right of the parent li */
    top: 100%; /* Position below the parent li */
    overflow: hidden;
}

.dropdown-content a {
    color: #000; /* Changed to black */
    padding: 15px 20px;
    text-decoration: none;
    display: block;
    text-align: left;
    font-weight: 500;
    transition: all 0.3s ease;
    border-bottom: 1px solid #f0f0f0;
}

.dropdown-content a:last-child {
    border-bottom: none;
}

.dropdown-content a:hover {
    background-color: #f8f9fa;
    color: #ff0000; /* Changed to red */
    padding-left: 25px;
}

.dropdown:hover .dropdown-content {
    display: block;
}

.dropdown-toggle .fas {
    margin-left: 5px;
    font-size: 12px;
    transition: transform 0.3s ease;
}

.dropdown:hover .dropdown-toggle .fas {
    transform: rotate(180deg);
}

/* Main Content Wrapper */
.main-content {
    padding: 0;
    display: flex;
    justify-content: center;
}

.content-container {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: none;
    flex: 1;
}

/* Hero Section (Banner) */
.hero-section {
    padding: 0;
    margin: 0;
    width: 100vw; /* Full horizontal length */
    position: relative;
    left: 50%;
    transform: translateX(-50%);
}

.hero-content {
    display: flex;
    min-height: 550px;
    width: 100%; /* Ensure it fills the 100vw container */
    max-width: none; /* Remove max-width constraint */
    margin: 0 auto;
    flex-direction: column;
    gap: 24px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 0; /* Remove border-radius for full width */
    align-items: center;
    justify-content: center;
    padding: 16px;
    margin-top: 0; /* Changed to 0 to touch the header */
      background-image: linear-gradient(rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.5)), url("Images/bg.jpg");
    
    position: relative;
    overflow: hidden;
}

.hero-content::before {
    content: none; /* Removed the pseudo-element overlay */
}

.hero-text {
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: center;
    position: relative;
    z-index: 2;
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-title {
    color: #000; /* Changed to black */
    font-size: 3.5em;
    font-weight: 900;
    line-height: 1.2;
    letter-spacing: -0.033em;
    text-shadow: none; /* Removed text shadow */
    margin-bottom: 20px;
}

.hero-subtitle {
    color: #000; /* Changed to black */
    font-size: 1.4em;
    font-weight: 1000;
    line-height: 1.4;
    text-shadow: none; /* Removed text shadow */
    max-width: 600px;
}

/* Section Titles */
.section-title {
    color: #000; /* Changed to black */
    font-size: 3.2em;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.015em;
    padding: 16px 16px 12px;
    margin: 60px 0 40px 60px;
    position: relative;
    text-align: center; /* Center the section title */
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%; /* Center the pseudo-element */
    transform: translateX(-50%); /* Adjust for centering */
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #ff0000, #ff4d4d); /* Changed to red gradient */
    border-radius: 2px;
}

/* Contact Form Section */
.contact-form-section {
    padding: 40px 160px; /* Consistent horizontal padding */
    display: flex;
    flex-direction: column;
    align-items: center; /* Center the form within the section */
}

.contact-form {
    width: 100%;
    max-width: 800px; /* Increased max-width for the form to accommodate side-by-side inputs */
    display: flex;
    flex-wrap: wrap; /* Allow items to wrap to the next line */
    justify-content: space-between; /* Distribute items with space between them */
    gap: 20px; /* Gap between rows and columns */
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1 1 calc(50% - 10px); /* For two columns, subtract half of the gap */
    min-width: 280px; /* Minimum width for form groups before wrapping */
}

/* Specific styling for the message field to span full width */
.form-group.full-width {
    flex: 1 1 100%; /* Make this group take full width */
}

.form-group label {
    display: none; /* Hide labels as per image, placeholders will be used */
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="text"][name="subject"], /* Target subject specifically */
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    color: #000; /* Changed to black */
    background-color: white;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #a0a0a0;
    box-shadow: 0 0 0 2px rgba(129, 118, 106, 0.2);
}

.form-group textarea {
    resize: vertical; /* Allow vertical resizing */
    min-height: 120px;
}

.submit-button {
    display: flex;
    min-width: 150px;
    cursor: pointer; /* Align button to the center and make it span full width of the form's content area */
    align-self: center; /* Center the button horizontally within the form */
    width: 100%; /* Make the button take the full available width */
    max-width: 250px; /* Limit the button's max width if it gets too wide */
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 9999px;
    height: 48px;
    padding: 0 24px;
    background-color: #e53e3e; /* Changed button color to red as in image */
    color: white;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.015em;
    border: none;
    transition: background-color 0.3s ease, transform 0.2s ease;
    margin-top: 20px; /* Add space above the button */
}

.submit-button:hover {
    background-color: #c53030; /* Darker red on hover */
    transform: translateY(-2px);
}

/* Spacer */
.spacer {
    height: 60px;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, #2e2e2e 0%, #1a1a1a 100%);
    padding: 80px 160px 0;
    color: white;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}

.footer-content-main {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 50px;
    padding-bottom: 50px;
}

.footer-block h3 {
    color: white;
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-block h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: #ff0000; /* Changed to red */
}

.footer-block p {
    color: #cccccc;
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 15px;
}

.footer-block p i {
    margin-right: 10px;
    color: #ff0000; /* Changed to red */
    font-size: 16px;
    width: 20px;
}

/* Social Icons */
.social-icons {
    margin-top: 25px;
    display: flex;
    gap: 15px;
}

.social-icons a {
    color: white;
    font-size: 24px;
    transition: all 0.3s ease;
    padding: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-icons a:hover {
    background: #ff0000; /* Changed to red */
    transform: translateY(-3px);
}

.footer hr {
    border: none;
    border-top: 1px solid #444;
    margin: 40px 0;
}

.footer-bottom {
    background-color: #1a1a1a;
    padding: 30px 0;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100vw;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
}

.footer-bottom .footer-text {
    color: #cccccc;
    font-size: 14px;
    margin-bottom: 15px;
}

.footer-bottom .footer-links {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-bottom .footer-links a {
    color: #cccccc;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.3s ease;
    position: relative;
}

.footer-bottom .footer-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -3px;
    left: 50%;
    background-color: #ff0000; /* Changed to red */
    transition: all 0.3s ease;
}

.footer-bottom .footer-links a:hover::after {
    width: 100%;
    left: 0;
}

.footer-bottom .footer-links a:hover {
    color: #ff0000; /* Changed to red */
}

/* Media Queries */

@media (max-width: 1024px) {
    nav ul li {
        margin-left: 25px;
    }

    .hero-content {
        min-height: 450px;
    }

    .hero-title {
        font-size: 3em;
    }

    .hero-subtitle {
        font-size: 1.2em;
    }

    .section-title {
        font-size: 2.8em;
        margin: 50px 0 30px 40px;
    }

    /* Contact page specific adjustments */
    .contact-form-section {
        padding: 30px 80px;
    }

    /* Footer adjustments for 1024px */
    .footer {
        padding: 40px 40px 0;
    }
    .footer-content-main {
        gap: 30px;
        padding-bottom: 15px; /* Reduced gap */
    }
    .footer hr {
        margin: 8px 0; /* Reduced gap */
    }
    .footer-bottom {
        padding: 12px 0; /* Reduced gap */
    }
}

@media (max-width: 768px) {
      header .container {
        flex-wrap: nowrap; /* Prevent wrapping the logo and button */
        justify-content: space-between; /* Space between logo and menu button */
        padding: 10px 0;
    }
    .logo img{
       
        width:100px;

    }

    .logo {
        width: 100%;
        justify-content: flex-start;
        margin-top: 5px;
        height:30px;
    }

     nav {
        width: 100%;
        justify-content: center;
        margin-top: 10px;
        
    }

    nav ul {
        display: none; /* Hide desktop nav by default on mobile */
        flex-direction: column;
        width: 50%;
        background-color: #fff; /* Changed to white */
        position: absolute;
        top: 100%; /* Position below header */
        left: 0;
        box-shadow: 0 8px 16px rgba(0,0,0,0.1);
        padding-bottom: 10px;
        border-top: 1px solid #eee;
        margin-left:180px;
    }

    nav.mobile-active ul {
        display: flex; /* Show mobile nav when active */
    }

    nav ul li {
        margin: 0;
        width: 100%;
        text-align: center;
    }

    nav ul li a {
        padding: 12px 20px;
        border-bottom: 1px solid #f0f0f0;
        color: #000; /* Changed to black */
    }

    nav ul li a:hover::after {
        width: 0; /* Remove hover underline for mobile */
    }

    .mobile-menu-btn {
        display: block; /* Show mobile menu button */
        position: absolute;
        right: 20px;
        top: 50%;
        transform: translateY(-50%);
    }
    

    .hero-content {
        min-height: 350px;
        padding: 10px;
    }

    .hero-title {
        font-size: 2.5em;
    }

    .hero-subtitle {
        font-size: 1em;
    }

    .section-title {
        font-size: 2.2em;
        margin: 40px 0 20px 0;
        text-align: center;
        padding: 10px;
    }

    .section-title::after {
        left: 50%;
        transform: translateX(-50%);
    }

    /* Contact page specific adjustments */
    .contact-form-section {
        padding: 20px 40px;
    }

    .form-group {
        flex: 1 1 100%; /* Make form groups stack on small screens */
    }

    /* Footer adjustments for 768px */
    .footer {
        padding: 30px 20px 0;
    }
    .footer-content-main {
        grid-template-columns: 1fr; /* Stack footer blocks */
        text-align: center;
        gap: 30px;
        padding-bottom: 25px;
    }
    .footer-block h3::after {
        left: 50%;
        transform: translateX(-50%);
    }
    .footer-block p i {
        margin-right: 5px;
    }
    .social-icons {
        justify-content: center;
    }
    .footer-bottom .footer-links {
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .logo img {
        height: 60px;
    }

    .mobile-menu-btn {
        font-size: 20px;
        padding: 8px;
    }

    .hero-title {
        font-size: 2em;
    }

    .hero-subtitle {
        font-size: 0.9em;
    }

    .section-title {
        font-size: 1.8em;
    }
    .contact-form-section {
        padding: 15px 20px;
    }

    /* Footer adjustments for 480px */
    .footer {
        padding: 20px 15px 0;
    }
    .footer-block h3 {
        font-size: 20px;
    }
    .footer-block p {
        font-size: 14px;
    }
    .social-icons a {
        font-size: 20px;
        width: 40px;
        height: 40px;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    body {
        background-color: white;
        color: black;
    }

    .contact-form input,
    .contact-form textarea {
        border: 2px solid black;
    }

    .submit-button {
        background-color: black;
        color: white;
    }

    .footer {
        background: black;
        color: white;
    }

    nav ul li a:hover {
        background-color: black;
        color: white;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .hero-text,
    .about-section,
    .info-item,
    .product-item {
        animation: none !important;
        transform: none !important;
        opacity: 1 !important;
        transition: none !important;
    }

    .logo img,
    .about-image-wrapper,
    .about-image,
    .info-item,
    .social-icons a,
    .product-image,
    .product-item {
        transition: none !important;
    }
}