/* Products Page - Premium Design */

:root {
    --primary-color: #fe5ade;
    --secondary-color: #460080;
    --dark: #050a08;
    --white: #ffffff;
    --light-gray: #f8f9fa;
}

/* Hero Section */
.products-hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #1a0033 0%, #2d0052 50%, #460080 100%);
    background-size: 200% 200%;
    position: relative;
    overflow: hidden;
    padding-top: 100px;
    animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(254, 90, 222, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(254, 90, 222, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(70, 0, 128, 0.2) 0%, transparent 50%);
    animation: particleFloat 20s ease-in-out infinite;
}

/* Add floating orbs */
.hero-particles::before,
.hero-particles::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(254, 90, 222, 0.3), transparent);
    animation: floatOrb 25s ease-in-out infinite;
}

.hero-particles::before {
    width: 300px;
    height: 300px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.hero-particles::after {
    width: 400px;
    height: 400px;
    bottom: 10%;
    right: 15%;
    animation-delay: 5s;
}

@keyframes particleFloat {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(30px, -30px) scale(1.1);
    }
}

@keyframes floatOrb {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.3;
    }

    25% {
        transform: translate(50px, -80px) scale(1.2);
        opacity: 0.5;
    }

    50% {
        transform: translate(-30px, -120px) scale(0.9);
        opacity: 0.4;
    }

    75% {
        transform: translate(80px, -60px) scale(1.1);
        opacity: 0.6;
    }
}

.hero-content {
    text-align: center;
    color: white;
    max-width: 900px;
    margin: 0 auto;
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.products-tag {
    color: var(--primary-color);
    letter-spacing: 3px;
    font-weight: 700;
    font-size: 0.85rem;
    display: block;
    margin-bottom: 25px;
    text-transform: uppercase;
    animation: fadeInDown 0.8s ease-out 0.2s both;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.products-hero h1 {
    font-size: clamp(3rem, 8vw, 5.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 30px;
    letter-spacing: -2px;
    animation: fadeInUp 1s ease-out 0.4s both;
}

.products-hero h1 span {
    background: linear-gradient(135deg, var(--primary-color), #ff85e6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

.products-hero p {
    font-size: 1.3rem;
    opacity: 0.9;
    margin-bottom: 60px;
    line-height: 1.7;
    animation: fadeInUp 1s ease-out 0.6s both;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
    animation: fadeInScale 0.8s ease-out both;
}

.stat-item:nth-child(1) {
    animation-delay: 0.8s;
}

.stat-item:nth-child(2) {
    animation-delay: 1s;
}

.stat-item:nth-child(3) {
    animation-delay: 1.2s;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.8);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.stat-item h3 {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.stat-item p {
    font-size: 1rem;
    opacity: 0.8;
    margin: 0;
}

/* Section Styling */
.featured-products {
    padding: 160px 0;
    background: var(--light-gray);
}

.section-header {
    text-align: center;
    margin-bottom: 100px;
}

.section-tag {
    color: var(--primary-color);
    letter-spacing: 3px;
    font-weight: 700;
    font-size: 0.85rem;
    display: block;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.section-header h2 {
    font-size: 3.5rem;
    color: var(--secondary-color);
    font-weight: 800;
    margin-top: 10px;
}

.line {
    width: 60px;
    height: 5px;
    background: var(--primary-color);
    margin: 20px auto 0;
    border-radius: 10px;
}

/* Product Showcase */
.product-showcase {
    display: flex;
    gap: 80px;
    align-items: center;
    margin-bottom: 150px;
}

/* Left layout: Image on left, content on right */
.product-showcase.left .product-visual {
    order: 1;
}

.product-showcase.left .product-info {
    order: 2;
}

/* Right layout: Content on left, image on right */
.product-showcase.right .product-visual {
    order: 2;
}

.product-showcase.right .product-info {
    order: 1;
}

.product-visual {
    position: relative;
    flex: 1;
}

.product-info {
    flex: 1;
}

.product-screen {
    position: relative;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 40px 100px rgba(70, 0, 128, 0.2);
    transition: transform 0.6s ease;
    width: 100%;
    aspect-ratio: 16/10;
}

.product-showcase:hover .product-screen {
    transform: translateY(-10px) scale(1.02);
}

.product-screen.mobile {
    max-width: 500px;
    margin: 0 auto;
    border-radius: 40px;
    aspect-ratio: 9/16;
}

.screen-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(254, 90, 222, 0.3), rgba(70, 0, 128, 0.3));
    opacity: 0;
    transition: opacity 0.6s;
    z-index: 2;
}

.product-showcase:hover .screen-glow {
    opacity: 1;
}

.product-screen img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.floating-badge {
    position: absolute;
    background: white;
    padding: 15px 25px;
    border-radius: 50px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    animation: floatBadge 3s ease-in-out infinite;
}

.floating-badge i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.badge-1 {
    top: 10%;
    right: -10%;
    animation-delay: 0s;
}

.badge-2 {
    bottom: 15%;
    left: -10%;
    animation-delay: 1.5s;
}

@keyframes floatBadge {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

/* Product Info */
.product-category {
    color: var(--primary-color);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 15px;
}

.product-info h3 {
    font-size: 2.8rem;
    color: var(--secondary-color);
    margin-bottom: 25px;
    font-weight: 800;
}

.product-desc {
    font-size: 1.15rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 30px;
}

.product-features {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
}

.product-features li {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 1.05rem;
    color: #333;
}

.product-features i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.product-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 35px;
}

.tech-badge {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.btn-product {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--secondary-color);
    color: white;
    padding: 18px 40px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: 0 10px 30px rgba(70, 0, 128, 0.3);
}

.btn-product:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(254, 90, 222, 0.4);
}

.btn-product i {
    transition: transform 0.3s;
}

.btn-product:hover i {
    transform: translateX(5px);
}

/* Products Grid Section */
.products-grid-section {
    padding: 160px 0;
    background: white;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
}

.product-card {
    background: white;
    padding: 50px 40px;
    border-radius: 40px;
    border: 2px solid rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: all 0.5s ease;
    position: relative;
    overflow: hidden;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    opacity: 0;
    transition: opacity 0.5s;
    z-index: 0;
}

.product-card:hover::before {
    opacity: 1;
}

.product-card:hover {
    transform: translateY(-15px);
    border-color: transparent;
    box-shadow: 0 30px 60px rgba(70, 0, 128, 0.2);
}

.product-card>* {
    position: relative;
    z-index: 1;
}

.card-icon {
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 25px;
    margin: 0 auto 30px;
    font-size: 2.5rem;
    transition: all 0.5s;
}

.product-card:hover .card-icon {
    background: white;
    color: var(--primary-color);
    transform: scale(1.1) rotate(5deg);
}

.product-card h4 {
    font-size: 1.8rem;
    color: var(--secondary-color);
    margin-bottom: 15px;
    transition: color 0.5s;
}

.product-card:hover h4 {
    color: white;
}

.product-card p {
    color: #666;
    line-height: 1.7;
    margin-bottom: 25px;
    transition: color 0.5s;
}

.product-card:hover p {
    color: rgba(255, 255, 255, 0.9);
}

.card-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
}

.product-card:hover .card-link {
    color: white;
}

.card-link i {
    transition: transform 0.3s;
}

.card-link:hover i {
    transform: translateX(5px);
}

/* Why Choose Section */
.why-choose {
    padding: 160px 0;
    background: var(--dark);
    color: white;
}

.why-choose .section-tag {
    color: var(--primary-color);
}

.why-choose .section-header h2 {
    color: white;
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.advantage-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 50px 35px;
    border-radius: 30px;
    text-align: center;
    transition: all 0.5s;
}

.advantage-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--primary-color);
    transform: translateY(-10px);
}

.advantage-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    margin: 0 auto 25px;
    font-size: 2rem;
    transition: transform 0.5s;
}

.advantage-card:hover .advantage-icon {
    transform: scale(1.1) rotate(-5deg);
}

.advantage-card h4 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: white;
}

.advantage-card p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
}

/* Utility Classes */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

.relative {
    position: relative;
}

.z-10 {
    z-index: 10;
}

/* Scroll Animation */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: 1.2s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .product-showcase {
        gap: 60px;
        margin-bottom: 100px;
    }

    .product-info h3 {
        font-size: 2.2rem;
    }

    .section-header h2 {
        font-size: 2.8rem;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }

    .products-hero {
        min-height: auto;
        padding: 150px 0 100px;
    }

    .hero-stats {
        gap: 40px;
    }

    .stat-item h3 {
        font-size: 2.5rem;
    }

    .featured-products,
    .products-grid-section,
    .why-choose {
        padding: 100px 0;
    }

    .section-header {
        margin-bottom: 60px;
    }

    .section-header h2 {
        font-size: 2.2rem;
    }

    .product-showcase {
        flex-direction: column;
        gap: 50px;
        margin-bottom: 80px;
    }

    /* Reset order for mobile - always show image first */
    .product-showcase.left .product-visual,
    .product-showcase.right .product-visual {
        order: 1;
    }

    .product-showcase.left .product-info,
    .product-showcase.right .product-info {
        order: 2;
    }

    .product-info h3 {
        font-size: 2rem;
    }

    .product-desc {
        font-size: 1.05rem;
    }

    .floating-badge {
        position: static;
        display: inline-flex;
        margin: 10px 5px;
    }

    .badge-1,
    .badge-2 {
        animation: none;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .advantages-grid {
        grid-template-columns: 1fr;
    }
}