@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,200;0,300;0,400;0,500;1,100;1,200;1,300;1,400;1,500&display=swap');

:root{
    --color:#780819;
    --gray_color:rgb(236, 233, 233);
}

*{
    font-family: 'Poppins', sans-serif;
    margin: 0; padding: 0;
    box-sizing: border-box;
    text-transform: capitalize;
    transition: all .2s linear;
    text-decoration: none;
}


html{
    font-size:  62.5%;
    scroll-behavior: smooth;
}

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--color);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: gray;
}

body{
    overflow-x: hidden;
}

.heading{
    margin: 2rem;
    padding-top: 7rem;
    display: inline-block;
    font-size: 3.8rem;
    color: var(--color);
    position: relative;
    letter-spacing: .2rem;
    font-weight: 600;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.heading::before, .heading::after{
    content: '';
    position: absolute;
    height: 2.5rem;
    width: 2.5rem;
    border-top: .4rem solid var(--color);
    border-left: .4rem solid var(--color);
    transition: all 0.3s ease;
}

.heading::before{
    top: 5.8rem; left: -2rem;
}

.heading::after{
    bottom: -.5rem; right: -2rem;
    transform: rotate(180deg);
}

.btn{
    outline: none;
    border: none;
    border-radius: 5rem;
    background: var(--color);
    color: white;
    cursor: pointer;
    height: 5rem;
    width: 20rem;
    font-size: 1.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn:hover{
    letter-spacing: 0.2rem;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.btn:active {
    transform: translateY(0);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.header {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    padding: 1rem 4rem;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
    background-color: var(--gray_color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    height: 80px;
    padding: 1rem 2.5rem;
}

.header .logo {
    display: flex;
    align-items: center;
    max-width: 200px;
    border-radius: 8px;
}

.header .logo img {
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
}

.header .logo:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.header .navbar {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    margin-left: auto;
}

.header .navbar ul {
    list-style-type: none;
    display: flex;
    align-items: center;
    gap: 2.5rem;
    margin: 0;
    padding: 0;
}

.header .navbar ul li {
    position: relative;
}

.header .navbar ul li a {
    font-size: 1.6rem;
    color: var(--color);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
}


.header .navbar ul li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: var(--color);
    left: 0;
    bottom: -5px;
    transition: width 0.3s ease;
}

.header .navbar ul li a:hover::after {
    width: 100%;
}

.header .fa-bars {
    color: var(--color); /* Fixed color */
    font-size: 2.8rem; /* Increased size */
    cursor: pointer;
    display: none;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1); /* Semi-transparent background */
    border-radius: 8px;
    transition: all 0.3s ease;
    margin-left: auto;
}

.header .fa-bars:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.header .fa-bars:active {
    transform: scale(0.95);
}


.home {
    min-height: 100vh; 
    width: 100%;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), 
                url("img/backg.png") center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    padding: 100px 1rem 1rem; 
    position: relative;
    overflow: hidden;
}


.slideshow_container {
    max-width: 800px;
    width: 100%;
    position: relative;
    margin: 6rem auto;
    aspect-ratio: 16/9;
    touch-action: pan-y pinch-zoom;
    user-select: none;
    -webkit-user-select: none;
}
.slideshow_container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Additional optimizations for better performance */
.home::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url("img/backg.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -2;
}

.home::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5));
    z-index: -1;
}

.slide {
    display: none;
    width: 100%;
    height: 100%;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Changed from cover to contain */
    border-radius: 15px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    background-color: rgba(0, 0, 0, 0.1); /* Added subtle background */
}

/* Fading animation */
.fade {
    animation-name: fade;
    animation-duration: 1s;
}

@keyframes fade {
    from {opacity: .4}
    to {opacity: 1}
}

/* Navigation dots */
.dots {
    text-align: center;
    margin: 2rem 0;
    position: relative;
    z-index: 10;
}

/* Individual dot styling */
.dot {
    height: 20px;  /* Increased from 15px */
    width: 20px;   /* Increased from 15px */
    margin: 0 8px; /* Increased from 2px for better spacing */
    background-color: rgba(255, 255, 255, 0.7); /* Changed from #bbb for better contrast */
    border: 2px solid var(--color); /* Added border */
    border-radius: 50%;
    display: inline-block;
    transition: all 0.3s ease; /* Changed from just background-color */
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); /* Added shadow for depth */
}

/* Active dot state */
.active-dot {
    background-color: var(--color);
    transform: scale(1.2); /* Added slight scale effect */
    border-color: var(--gray_color); /* Changed border color for active state */
}

/* Hover effect */
.dot:hover {
    transform: scale(1.1);
    background-color: var(--color);
    border-color: var(--gray_color);
}


.profile{
    min-height: 100vh;
    width: 100vw;
    text-align: center;
    position: relative;
    overflow: hidden;
    padding: 2rem 0;
    background: #fff;
}

.profile .row{
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 4rem 6rem;
    gap: 4rem;
}

.profile .row .content{
    text-align: left;
    flex: 1;
}

.profile .row .image {
    flex: 1;
    padding: 2rem;
}

.profile .row .image img{
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.profile .row .image img:hover {
    transform: scale(1.02);
}

.profile .row .content ul {
    list-style: none;
    margin: 2rem 0;
    padding-left: 2rem;
}

.profile .row .content h3{
    font-size: 3.5rem;
    color: var(--color);
    margin-bottom: 2rem;
    font-weight: 600;
}

.profile .row .content p{
    font-size: 1.6rem;
    color: #666;
    line-height: 1.8;
    margin-bottom: 3rem;
}

.profile .row .content ul li {
    position: relative;
    font-size: 1.6rem;
    color: #666;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    padding-left: 3rem;
}

.profile .row .content ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1.5rem;
    height: 1.5rem;
    background-color: var(--color);
    border-radius: 4px;
    transition: all 0.3s ease;
}

.profile .row .content ul li:hover::before {
    transform: translateY(-50%) rotate(45deg);
    background-color: #560410;
}

.profile .row .content .btn {
    background: var(--color);
    color: #fff;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.profile .row .content .btn:hover {
    background: transparent;
    color: var(--color);
    border-color: var(--color);
    letter-spacing: 0.2rem;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.profile::before, .profile::after{
    content: '';
    position: absolute;
    z-index: -1;
    opacity: .2;
    border-radius: 50%;
}

.profile::before{
    height: 50rem;
    width: 50rem;
    background: #737373;
    bottom: -10rem; left: -10rem;
}

.profile::after{
    height: 60rem;
    width: 60rem;
    background: var(--color);
    top: -10rem; right: -10rem;
}

.product{
    width: 100vw;
    text-align: center;
    padding: 4rem 0;
    background: #f8f9fa;
}

.product .row{
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4rem 6rem;
    margin: 3rem 0;
    gap: 4rem;
    position: relative;
    background: #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
}

.product .row:nth-child(odd) {
    background: linear-gradient(135deg, var(--color) 0%, #9a1326 100%);
}

.product .row:nth-child(even) {
    background: linear-gradient(135deg, #848484 0%, #606060 100%);
}

.product .row .image {
    flex: 1;
    padding: 2rem;
}

.product .row .image img{
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.product .row .image img:hover {
    transform: scale(1.02);
}

.product .row .content{
    flex: 1;
    text-align: left;
    padding: 2rem;
}

.product .row:nth-child(odd) .content h3 {
    font-size: 3.2rem;
    color: #fff;
    margin-bottom: 2rem;
    font-weight: 600;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.product .row:nth-child(even) .content h3 {
    font-size: 3.2rem;
    color: #fff;
    margin-bottom: 2rem;
    font-weight: 600;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.product .row .content h3{
    font-size: 3rem;
    color: var(--color);
}

.product .row .content p{
    font-size: 1.6rem;
    color: #fff;
    line-height: 1.8;
    margin-bottom: 3rem;
    opacity: 0.9;
}

.product .row .content ul {
    list-style: none;
    margin: 2rem 0;
    padding-left: 2rem;
}

.product .row .content ul li {
    position: relative;
    font-size: 1.6rem;
    color: #fff;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    padding-left: 3rem;
    opacity: 0.9;
}

/* Bullet point styling */
.product .row .content ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1rem;
    height: 1rem;
    background-color: #fff;
    border-radius: 50%;
    opacity: 0.9;
    transition: all 0.3s ease;
}

/* Hover effect for bullet points */
.product .row .content ul li:hover::before {
    transform: translateY(-50%) scale(1.2);
    opacity: 1;
}

.product .row .content .btn {
    background: #fff;
    color: var(--color);
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.product .row:nth-child(even) .content .btn {
    color: #4a4a4a;
}

.product .row .content .btn:hover {
    background: transparent;
    color: #fff;
    border-color: #fff;
    letter-spacing: 0.2rem;
}

.credit-slideshow {
    max-width: 1200px;
    width: 90vw;
    height: auto;
    position: relative;
    margin: 4rem auto;
    touch-action: pan-y pinch-zoom;
    -webkit-user-select: none;
    user-select: none;
    aspect-ratio: 4/3;

}

.credit-slides {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;

}

.credit-slides img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.credit-slides img.active {
    opacity: 1;
}

.credit-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
    width: auto;
}

.credit-dot {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.credit-dot.active {
    background: #fff;
    transform: scale(1.2);
}

.faq{
    min-height: 100vh;
    width: 100vw;
    text-align: center;
    padding: 4rem 2rem;
    background: #f8f9fa;
}

.faq .row{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4rem;
    padding: 2rem;
}

.faq .row .image img{
    width: 100%;
    max-width: 500px;
    border-radius: 20px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.faq .row .accordion-container{
    width: 50%;
    text-align: left;
}

.faq .row .accordion-container .accordion {
    margin-bottom: 2rem;
}

.faq .row .accordion-container .accordion .accordion-header{
    background: linear-gradient(135deg, var(--color) 0%, #560410 100%);
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
}

.faq .row .accordion-container .accordion .accordion-header:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.faq .row .accordion-container .accordion .accordion-header span{
    display: inline-block;
    text-align: center;
    height: 4rem;
    width: 5rem;
    line-height: 4rem;
    font-size: 2rem;
    background: #fff;
    color: var(--color);
    border-radius: 5px;
    margin-right: 1rem;
}

.faq .row .accordion-container .accordion .accordion-header h3{
    display: inline;
    color: #fff;
    font-weight: 500;
    font-size: 1.8rem;
}

.faq .row .accordion-container .accordion .accordion-body{
    padding: 2rem;
    background: #fff;
    border-radius: 0 0 10px 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    font-size: 1.6rem;
    color: #666;
    line-height: 1.8;
    display: none;
}

.faq .row .accordion-container .accordion .accordion-body ul {
    list-style: none;
    padding-left: 2rem;
    margin: 1rem 0;
}

.faq .row .accordion-container .accordion .accordion-body ul li {
    position: relative;
    padding-left: 3rem;
    margin-bottom: 1.2rem;
    font-size: 1.6rem;
    color: var(--color);
    line-height: 1.8;
}

.faq .row .accordion-container .accordion .accordion-body ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1.2rem;
    height: 1.2rem;
    background-color: var(--color);
    border-radius: 50%;
    opacity: 0.8;
    transition: all 0.3s ease;;
}

.faq .row .accordion-container .accordion .accordion-body ul li:hover::before {
    transform: translateY(-50%) scale(1.2);
    opacity: 1;
}

.faq .row .accordion-container .accordion:nth-child(1) .accordion-body{
    display: block;
}

.footer {
    width: 100%;
    background: linear-gradient(135deg, var(--color) 0%, #560410 100%);
    padding: 3rem 4rem;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer h1, 
.footer h2 {
    color: #fff;
    letter-spacing: 0.1rem;
    font-weight: 400;
    font-size: 1.4rem !important;
    margin: 0;
}

.footer h2 {  /* Specific rule for h2 */
    color: #fff;
    letter-spacing: .1rem;
    font-weight: 400;
    font-size: 1.2rem;
}

.footer h1 a {
    color: #fff;
    transition: color 0.3s ease;
}

.footer h1 a:hover {
    color: rgba(255, 255, 255, 0.8);
}

.footer .icon a {
    color: #fff;
    font-size: 2rem;
    padding: 0 1.5rem;
    transition: all 0.3s ease;
}

footer .icon a:hover {
    color: rgba(255, 255, 255, 0.8);
    transform: translateY(-3px);
}



@media(max-width:768px){
    .html{
        font-size: 50%;
    }

    .heading {
        font-size: 3rem;
        margin: 1rem;
    }

    .header {
        justify-content: space-between;
    }

    .header .fa-bars.active {
        background: rgba(255, 255, 255, 0.2);
    }

    .header .navbar.active {
        top: 80px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }
    
    .header .fa-bars{
        display: block;
        position: relative;
        z-index: 200;
        color: var(--color); /* Fixed color */
        background: var(--gray_color); /* Fixed background */
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
    }

    .header .navbar{
        position: fixed;
        top: -100%;
        left: 0;
        width: 100%;
        background: rgba(120, 8, 25, 0.95); /* More opaque background */
        padding: 2rem 0;
        transition: 0.3s ease;
        z-index: 99; /* Ensure proper stacking */
    }

    .header .navbar.active {
        top: 80px;
    }

    .header .navbar ul {
        flex-direction: column;
        gap: 2rem;
    }

    .header .navbar ul li{
        margin: 1rem 0;
    }

    .header .navbar ul li a {
        display: block;
        font-size: 2rem;
        text-align: center;
        color: #ffffff; /* Ensure text is white for better contrast */
        font-weight: 500;
    }

    .header .navbar ul li a::after {
        background: #ffffff; /* White underline for better visibility */
    }

    .header .fa-times{
        transform: rotate(180deg);
    }

    .header .nav-toggle{
        top: 5.8rem;
    }

    .header .logo {
        max-width: 150px;  /* Smaller on mobile */
        padding: 0.3rem;
    }

    .header .logo {
        max-width: 130px;
        margin-right: 1rem;
    }

 
    .home {
        padding: 80px 0.5rem 0.5rem;
    }
    
    .slideshow_container {
        max-width: 95%;
        margin: 4rem auto;
    }
    .slide img {
        height: 400px;
    }

    .home {
        padding-top: 80px;
    }

    .profile .row,
    .faq .row {
        flex-direction: column;
        padding: 2rem;
    }

    .about .row .image img{
        width: 100vw;
    }

    .product .row{
        flex-flow: column-reverse;
    }

    .product .row:nth-child(even){
        flex-flow: column;
    }

    .product .row .image img {
        width: 100%;
        height: auto;
    }

    .product .row .content{
        padding: 0;
    }

    .product .row .content ul {
        padding-left: 1rem;
    }
    
    .product .row .content ul li {
        font-size: 1.4rem;
        padding-left: 2.5rem;
        margin-bottom: 1.2rem;
    }
    
    .product .row .content ul li::before {
        width: 0.8rem;
        height: 0.8rem;
    }

    .credit-slideshow {
        width: 95vw;
        height: auto; /* Allow height to adjust */
        aspect-ratio: 16/9; /* Maintain aspect ratio */
    }
    
    .product .row .image .credit-slideshow {
        width: 100%;
        padding: 1rem; 
    }
    
    .product .row {
        padding: 2rem; 
        margin: 2rem 0;
        gap: 2rem;
    }
    
    .credit-slides img {
        width: 100%;
        height: 100%;
    }
    
    .credit-dots {
        bottom: 10px;
    }
    
    .credit-dot {
        width: 10px;
        height: 10px;
    }
    
    /* Fix for product row direction */
    .product .row:nth-child(3) {
        flex-direction: column;
    }
    
    /* Fix for image width on mobile */
    .product .row .image img {
        width: 100%;
        height: auto; /* Let height adjust automatically */
    }

    .faq{
        padding: 0;
    }

    .faq .row .image img{
        width: 100vw;
    }

    .faq .row .accordion-container{
        width: 100%;
    }

    .faq .row .accordion-container .accordion .accordion-body ul li {
        padding-left: 2.5rem;
        font-size: 1.4rem;
        margin-bottom: 1rem;
    }

    .faq .row .accordion-container .accordion .accordion-body ul li::before {
        width: 1rem;
        height: 1rem;
    }

    .footer{
        padding: 2rem;
        text-align: center;
        justify-content: center;
    }

    .footer h1,
    .footer h2 {
        font-size: 1.2rem !important;
    }

    .footer .icon{
        padding: 1rem 0;
    }
}

@media(max-width:1500px){
    .footer{
        flex-flow: column;
    }

    .footer h1{
        text-align: center;
    }

    .footer .icon{
        padding: 2rem 0;
    }
}

@media(max-width:480px){
    .credit-slideshow {
        height: auto; /* Changed from fixed 200px */
        aspect-ratio: 16/9; /* Maintain aspect ratio */
    }
    
    .home {
        padding: 60px 0.5rem 0.5rem;
    }
    
    .slideshow-container {
        margin: 3rem auto;
    }
    
    .product .row {
        padding: 1rem;
    }
    
    .product .row .image {
        padding: 1rem;
    }
}