/* Reset some default browser styles */
body, h1, h2, h3, p, ul, li, form {
    margin: 0;
    padding: 0;
    list-style: none;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background-color: #f4f4f4;
    color: #333;
}

a {
    text-decoration: none;
    color: #333; /* Default link color */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px; /* Add some padding on the sides */
}

/* Header Styles */
header {
    background-color: #333;
    color: #fff;
    padding: 10px 0;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header nav ul {
    display: flex;
}

header nav ul li {
    margin-left: 20px;
}

header nav ul li a {
    color: #fff;
    text-decoration: none;
    transition: color 0.3s ease; /* Smooth color transition on hover */
}

header nav ul li a:hover {
    color: #e44d26; /* Highlight color on hover */
}

/* Main Styles */
main {
    padding: 20px 0;
}

/* Hero Section */
.hero {
    background-color: #e9ecef;
    padding: 50px 0;
    text-align: center;
    animation: fadeIn 1s ease-in-out; /* Fade-in animation */
    background-size: cover; /* Cover the entire hero section */
    background-position: center; /* Center the image */
    color: #fff; /* Set text color to white for better visibility */
    position: relative; /* For overlay */
}

.hero::before {
    content: ""; /* Required for pseudo-element */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent black overlay */
    z-index: 1; /* Place overlay on top of the image */
}

.hero-content {
    position: relative; /* Bring content in front of overlay */
    z-index: 2; /* Place content above overlay */
    padding: 20px;
}

.hero h2 {
    margin-bottom: 20px;
    animation: slideInDown 0.8s ease-out forwards; /* Slide-in animation */
    transform: translateY(-50px);  /* Initial position above the viewport */
    opacity: 0; /* Initially invisible */
}

.hero p {
    animation: slideInUp 0.8s ease-out forwards;
    transform: translateY(50px);  /* Initial position below the viewport */
    opacity: 0; /* Initially invisible */
}

@keyframes slideInDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

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

.cta-button {
    background-color: #e44d26;
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    display: inline-block;
    margin-top: 20px;
    transition: background-color 0.3s ease;
}

.cta-button:hover {
    background-color: #c83e1e; /* Darker shade on hover */
}

/* Products Section */
.products {
    padding: 30px 0;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* Responsive Grid */
    gap: 20px;
}

.product {
    background-color: #fff;
    border: 1px solid #ddd;
    padding: 15px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product:hover {
    transform: translateY(-5px); /* Slight upward movement */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2); /* More pronounced shadow */
}

.product img {
    max-width: 100%;
    height: auto;
    margin-bottom: 10px;
    transition: transform 0.3s ease;
}

.product:hover img {
    transform: scale(1.1); /* Zoom in slightly */
}

.product h3 {
    margin-bottom: 5px;
    font-size: 1.2em;
}

.product .price {
    font-weight: bold;
    color: #e44d26;
    margin-bottom: 10px;
}

.product button {
    background-color: #e44d26;
    color: #fff;
    border: none;
    padding: 8px 15px;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.product button:hover {
    background-color: #c83e1e; /* Darker shade on hover */
}

/* === About Us Styles (Enhanced) === */
.about-us {
    padding: 40px 0;
}

/* --- About Content Section --- */
.about-content {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 40px;
}

.about-content .about-text {
    flex: 1;
}

.about-content img {
    max-width: 450px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-content img:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* --- Brand Story Timeline --- */
.brand-story {
    margin-bottom: 50px;
}

.brand-story h3 {
    margin-bottom: 20px;
    text-align: center;
    font-size: 1.8em;
    color: #e44d26;
}

.timeline {
    position: relative;
    padding: 20px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 4px;
    background-color: #ccc;
    transform: translateX(-50%);
}

.timeline-item {
    margin-bottom: 30px;
    position: relative;
}

.timeline-item::before {
    content: attr(data-year); /* Display the year */
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #fff;
    border: 2px solid #e44d26;
    border-radius: 50%;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #e44d26;
    z-index: 1; /* Ensure circle is on top of line */
    font-size: 0.9em;
}

.timeline-item h4 {
    margin-bottom: 5px;
    text-align: center;
    font-size: 1.3em;
}

.timeline-item p {
    text-align: center;
    padding: 0 20px;
}

/* --- Team Section --- */
.team-heading {
    margin-bottom: 30px;
    text-align: center;
    font-size: 2em;
    color: #333;
    position: relative; /* For underline */
}

.team-heading::after {
    content: ''; /* Underline */
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background-color: #e44d26;
}

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

.team-member {
    text-align: center;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-member:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.team-member img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
}

.team-member h4 {
    margin-bottom: 5px;
    font-size: 1.4em;
}

.team-member .team-title {
    font-style: italic;
    color: #777;
    margin-bottom: 10px;
}

/* === Contact Us Styles (Enhanced) === */
.contact-us {
    padding: 40px 0;
    text-align: center;
}

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

.contact-method {
    background-color: #fff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-method:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.contact-method i {
    font-size: 2.5em;
    color: #e44d26;
    margin-bottom: 15px;
}

.contact-method h3 {
    margin-bottom: 10px;
    font-size: 1.5em;
}

.contact-method p {
    line-height: 1.7;
}

/* --- Contact Form Styles --- */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
    text-align: left;
    padding: 30px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 20px;
}

.contact-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #555;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    box-sizing: border-box;
    font-size: 1em;
    color: #333;
    transition: border-color 0.3s ease;
}

.contact-form input[type="text"]:focus,
.contact-form input[type="email"]:focus,
.contact-form textarea:focus {
    border-color: #e44d26;
    outline: none;
    box-shadow: 0 0 5px rgba(228, 77, 38, 0.3);
}

.contact-form textarea {
    height: 150px;
}

.contact-form button {
    background-color: #e44d26;
    color: #fff;
    border: none;
    padding: 12px 25px;
    cursor: pointer;
    border-radius: 6px;
    font-size: 1.1em;
    transition: background-color 0.3s ease;
}

.contact-form button:hover {
    background-color: #c83e1e;
}

/* Product Details Styles */
.product-details {
    padding: 30px 0;
}

.product-details .container {
    display: flex;
    align-items: flex-start; /* Align items to the top */
}

.product-details .product-image {
    width: 40%;
    margin-right: 20px;
}

.product-details .product-image img {
    max-width: 100%;
    height: auto;
}

.product-details .product-info {
    width: 60%;
}

.product-details .product-info h2 {
    margin-bottom: 10px;
}

.product-details .product-info .price {
    font-size: 1.5em;
    margin-bottom: 15px;
}

/* Footer Styles */
footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 10px 0;
}

/* Hamburger Menu Styles */
.hamburger {
    display: none; /* Hide by default on larger screens */
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    width: 30px;
    height: 30px;
    position: relative;
    z-index: 10; /* Ensure it's above the menu */
}

.hamburger span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: #fff;
    margin-bottom: 5px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.hamburger span:last-child {
    margin-bottom: 0;
}

/* Navigation Brand Styling */
.nav-brand a {
    font-weight: bold; /* Make the website name bold */
    font-size: 1.2em; /* Adjust the font size as needed */
    color: #fff; /* Set the color of the website name */
}

/* Mobile Styles */
@media (max-width: 768px) {
    header .container {
        flex-direction: row; /* Keep items in a row */
        justify-content: space-between; /* Distribute space evenly */
        align-items: center;  /* Vertically center */
    }

    .hamburger {
        display: block; /* Show hamburger on smaller screens */
    }

    .nav-menu {
        position: absolute; /* Absolute positioning */
        /* top: 100%;  Remove and controled by JS */
        left: 0;
        width: 100%;
        background-color: #333;
        text-align: center;
        padding: 10px 0;
        display: none; /* Hide menu initially */
        z-index: 5; /* Place menu below the hamburger */
    }

    .nav-brand { /* Style website name on mobile */
        text-align: left;
        margin: 10px 0;
        padding: 0 20px; /* Add padding to the left */
    }

    .nav-brand a {
        display: block; /* Make it take the whole width */
    }

    .nav-menu ul {
        flex-direction: column; /* Stack links vertically */
        padding-top: 10px; /* Add padding above the links */
    }

    .nav-menu ul li {
        margin: 10px 0; /* Add spacing between links */
    }

    .about-content {
        flex-direction: column;
        align-items: center; /* Center on small screens */
        text-align: center; /* Center text */
    }

    .about-content img {
        max-width: 100%;
    }

    .timeline::before {
        left: 10px; /* Adjust for small screens */
    }

    .timeline-item::before {
        left: 10px;
        transform: translateY(-50%);
    }

    .timeline-item h4, .timeline-item p {
        text-align: left; /* Align text on small screens */
    }

     /* Responsive Adjustments for Contact */
    .contact-methods {
        grid-template-columns: 1fr; /* Stack on small screens */
    }

    .contact-form {
        padding: 20px;
    }
}

/* Reset Navigation Brand */
@media (min-width: 769px) {
  .nav-brand {
    display: none;
  }
}

/* Active Hamburger Styles */
.hamburger.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg); /* Rotate top line */
}

.hamburger.active span:nth-child(2) {
    opacity: 0; /* Hide middle line */
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg); /* Rotate bottom line */
}

.nav-menu.active {
    display: block; /* Show menu when hamburger is active */
}

/* Initially Hide All Sections */
.page-section {
    display: none;
}

/* Active Link State */
header nav ul li a.active {
    font-weight: bold;
    color: #e44d26; /* Highlight the active link */
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}