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

* {
    font-family: 'Outfit', sans-serif;
    text-decoration: none;
    margin: 0;
    padding: 0;
    outline: none;
    border: none;
    text-transform: capitalize;
    box-sizing: border-box;
    transition: all 0.2s linear;
}

html {
    font-size: 62.5%;
    overflow-x: hidden;
    scroll-behavior: smooth;
    scroll-padding-top: 7rem;
}

body {
    background: #ff660000;
    background: url(./img/bruno-martins-ElUbmfsgvV0-unsplash.jpg) no-repeat fixed;
    background-size: cover;
    background-position: center;
}

body::-webkit-scrollbar {
    width: 1em;
    background-color: rgb(0, 0, 0);
}

body::-webkit-scrollbar-thumb {
    background-color: rgb(255, 94, 0);
    outline: 1px solid rgb(255, 94, 0);
}

section {
    padding: 2rem 7%;
}

/* Product Hero Section */
.product-hero {
    background: linear-gradient(135deg, #00084e 0%, #ff5e00 100%);
    color: #fff;
    text-align: center;
    padding: 15rem 2rem 12rem;
    margin-bottom: 5rem;
    position: relative;
    overflow: hidden;
}

.product-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../img/pattern.png') repeat;
    opacity: 0.1;
    z-index: 1;
}

.product-hero h1 {
    font-size: 5.5rem;
    margin-bottom: 2.5rem;
    text-transform: uppercase;
    font-weight: 800;
    color: #fff;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 2;
    letter-spacing: 1px;
}

.product-hero p {
    font-size: 2.2rem;
    max-width: 90rem;
    margin: 0 auto;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.9);
    position: relative;
    z-index: 2;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

/* Product Main Content */
.product-main {
    max-width: 140rem;
    margin: 0 auto;
    padding: 0 5% 8rem;
}

.product-intro {
    position: relative;
    margin: 6rem auto 10rem;
    max-width: 140rem;
    padding: 6rem 8rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    gap: 5rem;
    overflow: hidden;
}

.product-intro::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"><path fill="%2300084e" fill-opacity="0.03" d="M30,10L50,30L70,10L90,30L70,50L90,70L70,90L50,70L30,90L10,70L30,50L10,30L30,10Z"/></svg>');
    opacity: 0.5;
    z-index: 0;
}

.product-intro-content {
    flex: 1;
    position: relative;
    z-index: 1;
}

.product-intro p {
    font-size: 2rem;
    line-height: 1.8;
    color: #333;
    margin: 0;
    text-align: left;
    position: relative;
    padding-left: 3rem;
    border-left: 4px solid #ff5e00;
}

.product-intro-image {
    flex: 0 0 45%;
    position: relative;
    z-index: 1;
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    transform: rotate(-2deg);
    transition: transform 0.3s ease;
}

.product-intro-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.product-intro-image:hover {
    transform: rotate(0) scale(1.02);
}

.product-intro-image:hover img {
    transform: scale(1.05);
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .product-intro {
        flex-direction: column-reverse;
        padding: 5rem 4rem;
        margin: 4rem 2rem 8rem;
    }
    
    .product-intro p {
        font-size: 1.8rem;
        padding-left: 2rem;
    }
    
    .product-intro-image {
        width: 100%;
        max-width: 500px;
        margin: 0 auto 3rem;
    }
}

/* Product Categories */
.product-category {
    margin-bottom: 8rem;
    background: #fff;
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: row;
    align-items: stretch;
    min-height: 45rem;
}

.product-category:nth-child(even) {
    flex-direction: row-reverse;
}

.product-category:hover {
    transform: translateY(-1rem) scale(1.01);
    box-shadow: 0 2rem 4rem rgba(0, 0, 0, 0.15);
}

.category-header {
    flex: 1;
    min-width: 50%;
    position: relative;
    overflow: hidden;
}

.category-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.19, 1, 0.22, 1);
}

.product-category:hover .category-image {
    transform: scale(1.05);
}

.category-content {
    flex: 1;
    padding: 4rem 5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.category-header h2 {
    position: absolute;
    top: 3rem;
    left: 3rem;
    background: rgba(0, 8, 78, 0.9);
    color: #fff;
    margin: 0;
    padding: 1.5rem 3rem;
    font-size: 2.8rem;
    border-radius: 5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    z-index: 2;
    font-weight: 700;
}

.product-category p {
    font-size: 1.9rem;
    line-height: 1.8;
    color: #444;
    margin: 0 0 3rem;
    text-align: left;
    position: relative;
    padding-left: 2rem;
    border-left: 4px solid #ff5e00;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .product-category {
        flex-direction: column;
    }
    
    .product-category:nth-child(even) {
        flex-direction: column;
    }
    
    .category-header {
        min-height: 35rem;
    }
    
    .category-content {
        padding: 4rem;
    }
}

/* Footer Section */
.footer{
    background: rgba(255, 255, 255, 0.568);
    text-align: center;
}
.footer h1{
    font-size: 5rem;
    color: rgb(0, 0, 0);
}
.footer .info{
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.footer .info .information{
    display: flex;
    justify-content: center;
    align-items: center;
    margin-left: 4rem;
    margin-right: 4rem;
    margin-top: 1rem;
    margin-bottom: 1rem;
}
.footer .info .information img{
    width: 30px;
    height: 30px;
    margin-right: 2rem;
}
.footer .info .information p{
    font-size: 1.5rem;
}
.footer .info .information .btn{
    font-size: 2rem;
    background: #ffd900;
    border-radius: 50px;
    padding: 2rem;
}
.footer .info .information .btn a{
    color: black;
}
.footer .info .information a:visited{
    text-decoration: none;
    color: rgb(0, 0, 0);
}
.footer .info .information .btn:hover{
    background: rgb(255, 94, 0);
    color: white;
    cursor: pointer;
}

.copyright{
    background: rgb(0, 8, 78);
    display: flex;
    flex-wrap: wrap;
    text-align: center;
    justify-content: center;
}
.copyright h1{
    font-size: 15px;
    color: white;
    font-weight: lighter;
}

.footer .information .btn:hover {
    background: #ff5e00;
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Copyright Section */
.copyright {
    background: rgb(0, 8, 78);
    display: flex;
    flex-wrap: wrap;
    text-align: center;
    justify-content: center;
    padding: 1.5rem 0;
}

.copyright h1 {
    font-size: 1.5rem;
    color: white;
    font-weight: lighter;
    margin: 0;
    padding: 0.5rem 0;
}

.copyright h1 i {
    margin-right: 0.5rem;
    color: #ffd900;
}

/* Responsive Design */
@media (max-width: 991px) {
    html {
        font-size: 55%;
    }
    
    .product-hero {
        padding: 8rem 1.5rem;
    }
    
    .product-hero h1 {
        font-size: 3.5rem;
    }
    
    .product-hero p {
        font-size: 1.8rem;
    }
    
    .category-header {
        height: 30rem;
    }
    
    .footer .footer-content {
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .product-hero h1 {
        font-size: 3rem;
    }
    
    .category-header h2 {
        font-size: 2.5rem;
    }
    
    .product-category p {
        padding: 2rem;
        font-size: 1.6rem;
    }
    
    .footer .footer-section {
        min-width: 100%;
        margin-bottom: 2rem;
    }
    
    .footer .footer-section:last-child {
        margin-bottom: 0;
    }
}

/* Animation for page load */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(2rem);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.product-category {
    animation: fadeInUp 0.6s ease-out forwards;
    opacity: 0;
}

.product-category:nth-child(1) { animation-delay: 0.1s; }
.product-category:nth-child(2) { animation-delay: 0.2s; }
.product-category:nth-child(3) { animation-delay: 0.3s; }
.product-category:nth-child(4) { animation-delay: 0.3s; }
.product-category:nth-child(5) { animation-delay: 0.4s; }
.product-category:nth-child(6) { animation-delay: 0.5s; }

/* Back to top button */
.bttb {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: rgba(255, 106, 0, 0.8);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    transition: all 0.3s ease;
}

.bttb i {
    font-size: 20px;
    transition: transform 0.3s ease;
}

.bttb:hover {
    background-color: rgba(255, 106, 0, 1);
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.bttb:active {
    transform: translateY(1px);
}

.bttb:hover i {
    transform: translateY(-2px);
}
