@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background-image: url('../img/bg-gradient.webp');
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

/* Header Styles */
header {
    background: #141937; /* Removed background */
    padding: 0.5rem 5%; /* Reduced padding */
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky; /* Changed to sticky */
    top: 0;
    z-index: 1000;
    width: 100%; /* Ensure header spans full width */
    height: 100px; /* Set fixed height */
    margin-top: 0; /* Removed margin-top */
    margin-bottom: 0; /* Removed margin-bottom */
    background-color: #141937; /* Added background color */
}

.logo {
    width: 100px;
}

.logo-container {
    display: flex;
    align-items: center;
}

.site-title {
    color: #ffffff;
    margin-left: 1rem;
    font-size: 1.5rem;
    font-weight: bold;
}

nav {
    display: flex; /* Changed from none to flex */
}

nav a {
    color: #ffffff;
    text-decoration: none;
    margin-left: 2rem;
    font-weight: bold;
    transition: color 0.3s;
}

nav a:hover {
    color: #FFD001;
}

/* Hamburger Menu Styles */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    height: 3px;
    width: 25px;
    background: #ffffff;
    margin-bottom: 4px;
    border-radius: 5px;
}

.mobile-nav {
    display: none;
    flex-direction: column;
    background: #015587;
    position: fixed;
    top: 60px;
    right: 0;
    width: 100%;
    text-align: center;
}

.mobile-nav.open {
    display: flex;
}

.mobile-nav a {
    color: #ffffff;
    padding: 1rem;
    text-decoration: none;
    border-bottom: 1px solid #ffffff;
}

/* Slider Styles */
.slider {
    position: relative;
    width: 100vw; /* Set width to 100vw to fill the full width of the viewport */
    height: 100vh; /* Set a fixed height to ensure visibility */
    overflow: hidden;
    margin-top: 5px; /* Reduced margin-top by 20px */
    background: none; /* Removed background */
    left: 50%; /* Center the slider */
    transform: translateX(-50%); /* Center the slider */
    margin-bottom: 10px; /* Added margin-bottom */
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%; /* Set height to 100% to ensure visibility */
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.slide img {
    width: 100%;
    height: 100%; /* Ensure height is 100% */
    object-fit: contain; /* Adjusted to cover the full image */
}

.slide-text {
    position: absolute;
    bottom: calc(10% + 10px); /* Move 40px up */
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: #ffffff; /* Ensure text is white */
    background: rgba(0, 0, 0, 0.5);
    padding: 20px;
    border-radius: 10px;
    opacity: 0;
    transition: opacity 1s ease-in-out, transform 1s ease-in-out;
}

.slide.active .slide-text {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.slide-text h2 {
    font-size: 2rem;
    margin-bottom: 10px;
    font-weight: bold;
}

.slide-text p {
    font-size: 1rem;
    margin: 0;
}

.prev, .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    z-index: 1000;
}

.prev {
    left: 10px;
}

.next {
    right: 10px;
}

/* Timeline Styles */
.timeline {
    position: relative;
    max-width: 1200px;
    margin: 10px auto 10px auto; /* Reduced margin-bottom by 40px */
    padding: 20px;
    background: none; /* Removed background */
    text-align: left; /* Center the text */
}

.timeline::after {
    content: '';
    position: absolute;
    width: 6px;
    background: #015587;
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -3px;
}

.container {
    padding: 10px 40px;
    position: relative;
    width: 50%;
}

.container::after {
    content: '';
    position: absolute;
    width: 25px;
    height: 25px;
    right: -17px;
    background-color: #FFD001;
    border: 4px solid #015587;
    top: 15px;
    border-radius: 50%;
    z-index: 1;
}

.timeline .container {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.timeline .container.visible {
    opacity: 1;
    transform: translateY(0);
}

.left {
    left: 0;
}

.right {
    left: 50%;
}

.left::before {
    content: " ";
    height: 0;
    position: absolute;
    top: 22px;
    width: 0;
    z-index: 1;
    right: 30px;
    border: medium solid #015587;
    border-width: 10px 0 10px 10px;
    border-color: transparent transparent transparent #FFD001;
}

.right::before {
    content: " ";
    height: 0;
    position: absolute;
    top: 22px;
    width: 0;
    z-index: 1;
    left: 30px;
    border: medium solid #015587;
    border-width: 10px 10px 10px 0;
    border-color: transparent #FFD001 transparent transparent;
}

.right::after {
    left: -16px;
}

.content {
    padding: 20px 30px;
    background: #ffffff;
    border-radius: 6px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    color: #2774ae; /* Changed text color */
}

.content h2 {
    color: #015587;
    margin-bottom: 10px;
}

.content img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    margin-bottom: 15px;
    border-radius: 4px;
}

/* Chairman Section */
.chairman {
    background: none; /* Removed background */
    padding: 100px 5%;
    color: #ffffff;
    text-align: center;
}

.chairman img {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    margin-bottom: 30px;
    border: 5px solid #FFD001;
}

/* Brands Section */
.brands {
    padding: 100px 5%;
    text-align: center;
    background: none; /* Removed background */
}

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

.brand-logo {
    width: 200px;
    height: 200px;
    margin: auto;
    transition: transform 0.3s;
}

.brand-logo:hover {
    transform: scale(1.1);
}

/* Footer Styles */
footer {
    background: none; /* Removed background */
    color: #ffffff;
    padding: 50px 5%;
    text-align: center;
}

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

.footer-section h3 {
    color: #FFD001;
    margin-bottom: 20px;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    margin-top: 20px;
}

/* New Sections Styles */
.content-section {
    padding: 20px 5%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: none;
}

.content-container {
    display: flex;
    flex-direction: column; /* Changed to column */
    align-items: center;
    justify-content: center;
    max-width: 1200px;
    width: 100%;
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.content-container.visible {
    opacity: 1;
    transform: translateY(0);
}

.content-container img {
    width: 100%; /* Set width to 100% */
    height: auto; /* Ensure height is auto */
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px; /* Added margin-bottom */
}

.text-content {
    width: 100%; /* Set width to 100% */
    padding: 20px;
    background: #ffffff;
    color: #2774ae; /* Changed text color */
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.text-content h2 {
    color: #015587;
    margin-bottom: 20px;
}

.text-content p {
    line-height: 1.6;
}

/* Our Story Section Styles */
.our-story-section {
    text-align: center;
    margin: 50px 0;
}

.our-story-section h2 {
    color: #ffffff;
    font-size: 2rem;
    margin-bottom: 20px;
}

.stats-section {
    width: 100%;
    /*background-color: #015587; /* Added background color */
    padding: 1rem 0; /* Reduced padding to decrease height */
}

.stats-container {
    /*width: calc(100% - 10px); /* Dynamic width with small margin */
    max-width: auto;
    margin: 0 8rem auto; /* Center the container */
    padding: 2rem 2rem; /* Added padding to left and right */
    background: #ffffff; /* Added background color */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Added box shadow */
    border-radius: 10px; /* Added border radius */
}

h1 {
    text-align: center;
    color: #1a1a2e;
    font-size: 2.5rem;
    /*margin-bottom: 4rem; */
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.icon-circle {
    width: 80px;
    height: 80px;
    background-color: #FFD001; /* Changed background color */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.icon-circle i {
    font-size: 2.5rem;
    color: white;
}

.icon-circle img {
    width: 50px;
    height: 50px;
}

.number {
    font-size: 2.5rem;
    font-weight: bold;
    color: #ffd700;
    margin-bottom: 0.5rem;
}

.label {
    font-size: 1.25rem;
    color: #1a1a2e;
    font-weight: bold; /* Made the label text bold */
}

/* Animation */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

@media screen and (max-width: 768px) {
    header {
        padding: 0.5rem 2%; /* Reduced padding */
        height: 60px; /* Reduced height */
        margin-bottom: 5px; /* Reduced margin-bottom */
    }

    .slider {
        margin-top: 20px; /* Reduced margin-top */
        margin-bottom: 0; /* Removed margin-bottom */
    }

    .slide img {
        width: 100%;
        height: 30%; /* Ensure height is 100% */
        object-fit: contain; /* Adjusted to cover the full image */
    }

    .slide-text {
        width: calc(100% - 20px); /* Fill full width with small padding */
        padding: 10px; /* Reduced padding */
        left: 50%;
        transform: translateX(-50%);
        bottom: calc(20% + 80px); /* Move 40px up */
    }

    .timeline {
        margin: -20px auto 10px auto; /* Moved 20px up */
    }

    .timeline::after {
        padding-top: 10px;
        left: 31px;
    }

    .container {
        width: 100%;
        padding-left: 20px; /* Reduced padding */
        padding-right: 20px; /* Reduced padding */
        margin-bottom: 20px; /* Added vertical space between boxes */
    }

    .right {
        left: 0%;
    }

    .left::before {
        content: " ";
        height: 30;
        position: left;
        top: 22px;
        width: 0;
        z-index: 1;
        right: 30px;
        border: medium solid #015587;
        border-width: 10px 0 10px 10px;
        border-color: transparent transparent transparent #FFD001;
    }
    
    .right::before {
        content: " ";
        height: 30;
        position: left;
        top: 22px;
        width: 0;
        z-index: 1;
        left: 10px;
        border: medium solid #015587;
        border-width: 10px 10px 10px 0;
        border-color: transparent #FFD001 transparent transparent;
    }

    nav {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .mobile-nav {
        display: flex;
    }

    .brand-logo {
        width: 300px;
        height: 300px;
        margin: auto;
        transition: transform 0.3s;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 3rem 2rem;
    }

    .number {
        font-size: 2.25rem;
    }

    .label {
        font-size: 1.1rem;
    }

    .our-story-section {
        margin: 30px 0; /* Adjusted margin for mobile view */
    }

    .our-story-section h2 {
        font-size: 1.5rem; /* Adjusted font size for mobile view */
    }

    /* Position timeline vertical line closer to the left edge */
    .timeline::after {
        left: 20px; /* Set timeline line at 20px from the left */
        margin-left: 0;
    }
    /* Push timeline container content to the right */
    /*.container {
        margin-left: 60px; /* Reserve space for the timeline line and pseudo elements */
    /*}*/
    /* Position both arrow (before) and dot (after) at the timeline line */
    .left::before,
    .right::before {
        left: 20px; /* Fix pseudo arrow to align with timeline line */
        margin-left: 0;
        top: 12px; /* As needed (pushed up by 10px already) */
    }
    .left::after,
    .right::after {
        left: 20px; /* Fix pseudo dot to align with timeline line */
        margin-left: 0;
        top: 5px;
    }

    .stats-container {
        width: 100%;
        max-width: 100%;
        margin: 0;
        padding: 2rem 2rem; /* Adjust padding as needed */
    }

    .container::after {
        left: 20px;      /* Align with the timeline line (adjust as needed) */
        right: auto;     /* Remove right property override */
        top: 50%;        /* Vertically center within the container */
        transform: translateY(-50%);
    }

    .stat-item .number {
        display: inline-block;
        min-width: 120px; /* Set a fixed minimum width */
        text-align: center;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }

    .icon-circle {
        width: 70px;
        height: 70px;
    }

    .icon-circle i {
        font-size: 2rem;
    }

    .number {
        font-size: 2rem;
    }

    .label {
        font-size: 1rem;
    }

    .container {
        padding: 0 10px; /* Further reduced padding for smaller screens */
        margin-bottom: 20px; /* Added vertical space between boxes */
    }

    .our-story-section {
        margin: 20px 0; /* Further adjusted margin for smaller screens */
    }

    .our-story-section h2 {
        font-size: 1.25rem; /* Further adjusted font size for smaller screens */
    }

    .timeline::after {
        left: 20px;
        margin-left: 0;
    }
    .container {
        margin-left: 20px;
    }
    .left::before,
    .right::before {
        left: -5px;
        margin-left: 0;
        top: -10px;
    }
    .left::after,
    .right::after {
        left: -32.5px;
        margin-left: 0;
        top: 0px;
    }

    .stat-item .number {
        display: inline-block;
        min-width: 100px; /* Adjust as needed */
        text-align: center;
    }
}

