/* about.css */

* {
    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;
}

.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;
}

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;
    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;
    border-top: 3px solid #ff0000; /* Changed to red */
    border-radius: 0 0 10px 10px;
    right: 0;
    top: 100%;
    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.3), rgba(255, 255, 255, 0.3)), url("Images/bg.jpg"); /* Removed linear-gradient overlay */
    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;
}

/* About Us Sections */
.about-section {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    padding: 40px 160px;
    margin-bottom: 40px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInSection 0.8s ease-out forwards;
}

@keyframes fadeInSection {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.about-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
    text-align: justify;
}

.about-text {
    color: #000; /* Changed to black */
    font-size: 1.1em;
    line-height: 1.8;
    transition: color 0.3s ease;
}

.about-text:hover {
    color: #0000ff; /* Changed to red */
}

.about-image-wrapper {
    flex-shrink: 0;
    max-width: 350px;
    width: 100%;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.about-image-wrapper:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.about-image {
    width: 100%;
    height: 350px;
    display: block;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.about-image:hover {
    transform: scale(1.05);
}

/* Order for content-right-image */
.content-right-image {
    flex-direction: row;
}

/* Order for content-left-image */
.content-left-image {
    flex-direction: row-reverse;
}

/* New styles for Goal, Vision, Mission section */
.info-section {
    padding: 60px 0;
    background-color: #fff; /* Changed to white */
}

.info-section .container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.info-item {
    flex: 1;
    min-width: 280px;
    max-width: 380px;
    background-color: #fff; /* Changed to white */
    color: #000; /* Changed to black */
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Distribute space */
    border: 2px solid transparent; /* Added transparent border for outline effect */
}

.info-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    border-color: #0000ff; /* Changed to blue outline on hover */
    /* Removed background-color and color changes on hover */
}

.info-item h2 {
    color: red; /* Changed to red */
    font-size: 2em;
    font-weight: 700;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.info-item h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #ff0000, #ff4d4d); /* Changed to red gradient */
    border-radius: 2px;
}

.info-item p {
    color: #000; /* Changed to black */
    font-size: 1.05em;
    line-height: 1.7;
    flex-grow: 1; /* Allow paragraph to take available space */
    text-align: justify; /* Changed to justify for proper alignment */
}

/* Removed .info-item:hover h2, .info-item:hover p rule */

/* Spacer */
.spacer {
    height: 60px;
}

/* Footer (from allProducts.css) */
.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 for responsiveness */

/* Tablet and Mobile adjustments */
@media (max-width: 1024px) {
    .container {
        width: 95%;
        padding: 15px 0;
    }

    /* Header adjustments */
    header .container {
        padding: 5px 0;
    }

    .logo img {
        height: 70px;
    }

    nav ul {
        margin-right: 20px;
    }

    nav ul li {
        margin-left: 25px;
    }

    nav ul li a {
        font-size: 15px;
        padding: 10px 5px;
    }

    /* Hero section adjustments */
    .hero-content {
        min-height: 450px;
        padding: 12px;
    }

    .hero-title {
        font-size: 3em;
    }

    .hero-subtitle {
        font-size: 1.2em;
    }

    /* Section titles adjustments */
    .section-title {
        font-size: 2.8em;
        margin: 50px 0 30px 0;
        padding: 12px;
    }

    /* About Us Sections adjustments */
    .about-section {
        flex-direction: column; /* Stack image and text */
        padding: 30px 50px;
        gap: 30px;
    }

    .about-content {
        order: 2; /* Text comes after image */
        text-align: left; /* Adjust text alignment for stacking */
    }

    .about-image-wrapper {
        order: 1; /* Image comes first */
        max-width: 500px; /* Allow wider image on tablets */
        height: auto;
    }

    .about-image {
        height: auto; /* Allow height to adjust naturally */
    }

    /* Info section adjustments */
    .info-item {
        min-width: unset;
        max-width: 45%; /* Two items per row on tablet */
    }

    /* Footer adjustments */
    .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 adjustments */
     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 {
        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%);
    }
    .logo img{
       
        width:150px;

    }
    

    /* Hero section adjustments */
    .hero-content {
        min-height: 350px;
        padding: 10px;
    }

    .hero-title {
        font-size: 2.5em;
    }

    .hero-subtitle {
        font-size: 1em;
    }

    /* Section titles adjustments */
    .section-title {
        font-size: 2.2em;
        margin: 40px 0 20px 0;
        text-align: center;
        padding: 10px;
    }

    .section-title::after {
        left: 50%;
        transform: translateX(-50%);
    }

    /* About Us Sections adjustments */
    .about-section {
        padding: 25px 20px;
        gap: 25px;
    }

    .about-image-wrapper {
        max-width: 100%; /* Full width on small screens */
    }

    .about-image {
        height: 250px; /* Fixed height for consistency */
    }

    /* Info section adjustments */
    .info-item {
        max-width: 90%; /* Single item per row on mobile */
    }

    /* Footer adjustments */
    .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;
    }
}

/* Small Mobile (less than 600px) */
@media (max-width: 599px) {
    .logo img {
        height: 50px;
        max-width: 120px;
    }
    .hero-content {
        min-height: 350px;
        background-image: linear-gradient(rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.5)), url("Images/bg.jpg");
    }
    .hero-title {
        font-size: 2em;
    }
    .hero-subtitle {
        font-size: 1em;
    }
    .section-title {
        font-size: 2em;
        margin: 25px auto 20px;
    }
    .products-grid-section {
        padding: 20px 15px;
    }
    .product-item {
        padding: 15px;
    }
    .product-image {
        max-width: 180px;
        height: 160px;
    }
    .product-name {
        font-size: 14px;
    }
    .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;
    }

    /* Specific to contact.css responsiveness at 480px for mobile menu button */
    .mobile-menu-btn {
        font-size: 20px;
        padding: 8px;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    body {
        background-color: white;
        color: black;
    }

    .about-image-wrapper {
        border: 2px solid black;
    }

    .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;
    }
}