body {
    line-height: 1.6;
}

body::before {
    opacity: 0.5;
}

h1 {
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

h2 {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.6rem;
    font-weight: 600;
}

h4 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

p {
    color: var(--light-gray);
    margin-bottom: 1rem;
    margin-top: 1rem;
    line-height: 1.6;
}

.subtitle {
    color: #4d4d4d;
    font-size: 1.2rem;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 2rem;
}

.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 1px;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    outline: none;
    text-align: center;
}

.btn-primary {
    background: var(--gradient);
    color: #ffffff;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px #4e80ed;
}

.btn-primary:after {
    content: "";
    position: absolute;
    z-index: -1;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: 0.5s;
}

.btn-primary:hover:after {
    left: 100%;
}

.btn-outline {
    border: 2px solid var(--primary);
    color: var(--primary);
    background: transparent;
}

.btn-outline:hover {
    background: var(--primary);
    color: #ffffff;
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    border-radius: 20px;
}

.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 6rem;
    background-image: url('../assets/bg6.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    z-index: 1;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 610px;
}

.hero-content h1 {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s cubic-bezier(0.23, 1, 0.32, 1) forwards;
    animation-delay: 0.3s;
    background: #151515;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-content p {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s cubic-bezier(0.23, 1, 0.32, 1) forwards;
    animation-delay: 0.6s;
    font-size: 1.3rem;
    line-height: 1.8;
    color: #4d4d4d;
}

.hero-actions {
    margin-top: 2.5rem;
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s cubic-bezier(0.23, 1, 0.32, 1) forwards;
    animation-delay: 0.9s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-actions .btn {
    flex: 1;
    min-width: 180px;
}

.stats-section {
    padding: 4rem 0;
    position: relative;
    z-index: 2;
    backdrop-filter: blur(10px) saturate(180%);
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    margin-top: 4rem;
    margin-bottom: 4rem;
}

.stat-item {
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
    border-radius: 16px;
    padding: 3rem 2rem;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.stat-item:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.03) 100%);
}

.stat-item h3 {
    font-size: 3.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #0042d1 0%, #b249db 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.8rem;
    letter-spacing: 1px;
    line-height: 1.2;
}

.stat-item p {
    font-size: 1rem;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 500;
    margin: 0;
}

.stat-item:hover::before {
    width: 500px;
    height: 500px;
}

.section {
    padding: 9rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 4.5rem;
}

.products-section {
    position: relative;
    z-index: 2;
    background: rgba(6, 13, 31, 0.1);
    backdrop-filter: blur(10px) saturate(180%);
    -webkit-backdrop-filter: blur(10px) saturate(180%);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    position: relative;
}

.product-card {
    background: linear-gradient(145deg, rgba(26, 26, 31, 0.98) 0%, rgba(18, 18, 24, 0.99) 100%);
    border-radius: 20px;
    padding: 3.5rem 2.5rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    text-align: center;
    min-height: 280px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
    background-clip: padding-box;
}

.product-card[data-product="1"] {
    background-image: url('../assets/products/product1.jpg');
    background-size: cover;
    background-position: center;
}

.product-card[data-product="2"] {
    background-image: url('../assets/products/product2.jpg');
    background-size: cover;
    background-position: center;
}

.product-card[data-product="3"] {
    background-image: url('../assets/products/product3.jpg');
    background-size: cover;
    background-position: center;
}

.product-card[data-product="4"] {
    background-image: url('../assets/products/product4.jpg');
    background-size: cover;
    background-position: center;
}

.product-card[data-product="5"] {
    background-image: url('../assets/products/product5.jpg');
    background-size: cover;
    background-position: center;
}

.product-card[data-product="6"] {
    background-image: url('../assets/products/product6.jpg');
    background-size: cover;
    background-position: center;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(6, 13, 31, 0.75);
    z-index: 1;
    transition: opacity 0.6s ease;
    border-radius: inherit;
}

.product-card:hover::before {
    opacity: 0.55;
}

.product-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.6s ease;
    z-index: 1;
    border-radius: inherit;
}

.product-card:hover::after {
    opacity: 1;
    animation: rotateGlow 8s linear infinite;
}

@keyframes rotateGlow {
    from { transform: rotate(45deg); }
    to { transform: rotate(405deg); }
}

.icon-container {
    width: 80px;
    height: 80px;
    background: rgb(255, 255, 255);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.icon-container i {
    font-size: 2rem;
    transition: all 0.3s ease;
}

.product-card:hover .icon-container {
    opacity: 0;
    transform: translateY(-40px) scale(0.8);
    filter: blur(5px);
}

.compact-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
    transition: all 0.6s ease;
    position: relative;
    z-index: 2;
    letter-spacing: 1px;
}

.product-card:hover .compact-title {
    opacity: 0;
    transform: translateY(-40px) scale(0.8);
    filter: blur(5px);
}

.product-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 3rem 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transform: scale(0.9) translateY(20px);
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    z-index: 3;
    pointer-events: none;
}

.product-card:hover .product-content {
    opacity: 1;
    transform: scale(1) translateY(0);
}

.product-detail-title {
    font-size: 1.6rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 1.5rem;
    letter-spacing: 2px;
}

.product-detail-desc {
    font-size: 1rem;
    color: #fff;
    line-height: 1.7;
    margin-bottom: 1.8rem;
    text-align: center;
    max-width: 90%;
}

.product-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    justify-content: center;
    margin-bottom: 1.5rem;
    width: 100%;
}

.feature-tag {
    font-size: 0.85rem;
    color: #fff;
    padding: 0.5rem 1rem;
    background: rgba(231,241,255, 0.3);
    border-radius: 10px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.formats-section {
    backdrop-filter: blur(10px) saturate(180%);
    -webkit-backdrop-filter: blur(10px) saturate(180%);
}

.formats-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 2rem;
}

.format-card {
    background: rgba(231,241,255, 0.3);
    border-radius: 45px;
    padding: 2.5rem 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    overflow: visible;
    cursor: pointer;
    text-align: center;
    height: 470px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 1;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.format-card.active {
    background-color: transparent !important;
    border-color: transparent !important;
    box-shadow: none !important;
}

.format-card.active[data-format="1"] {
    background-image: url('../assets/formats/format1.png');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}

.format-card.active[data-format="2"] {
    background-image: url('../assets/formats/format2.png');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}

.format-card.active[data-format="3"] {
    background-image: url('../assets/formats/format3.png');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}

.format-card.active[data-format="4"] {
    background-image: url('../assets/formats/format4.png');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}

.format-card.active[data-format="5"] {
    background-image: url('../assets/formats/format5.png');
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}

.format-card:hover .icon-container,
.format-card.active .icon-container {
    opacity: 0;
    display: none;
}

.format-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
}

.format-card.active::before,
.format-card:hover::before {
    opacity: 1;
}

.format-card h4,
.format-card p {
    display: block;
}

.format-card.active h4,
.format-card.active p {
    display: none;
}

.format-card:hover h4 {
    display: none;
}

.format-card:hover p {
    display: none;
}

.format-card h4 {
    font-size: 1.2rem;
    color: #292929;
    margin-bottom: 0.8rem;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.format-card p {
    font-size: 0.9rem;
    color: var(--light-gray);
    line-height: 1.6;
    margin: 0;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
}

.card-bottom-title {
    position: absolute;
    bottom: -65px;
    left: 50%;
    transform: translateX(-50%) translateY(-20px);
    font-weight: 700;
    white-space: nowrap;
    padding: 0.5rem 1.5rem;
    background: rgba(231,241,255, 0.3);
    border-radius: 20px;
    border: 2px solid rgb(50, 49, 49);
    backdrop-filter: blur(10px);
    z-index: 10;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    pointer-events: none;
}
.format-card.active .card-bottom-title {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.testimonials-section {
    padding: 5rem 0;
    background: rgba(6, 13, 31, 0.1);
    backdrop-filter: blur(10px) saturate(180%);
    -webkit-backdrop-filter: blur(10px) saturate(180%);
}

.partners-wrapper {
    overflow: hidden;
    position: relative;
    padding: 2rem 0;
}

.partners-scroll {
    display: flex;
    gap: 2.5rem;
    animation: scrollPartners 40s linear infinite;
}

.partners-scroll:hover {
    animation-play-state: paused;
}

@keyframes scrollPartners {
    0% {
        transform: translateX(0);
    }
    100% {
        transform:  translateX(calc(-345px * 5 - 2.5rem * 5));
    }
}

.partner-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.partner-item:hover {
    transform: translateY(-3px);
}

.partner-logo-box {
    width: 345px;
    height: 230px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 8px;
    transition: transform 0.3s ease;
}
.partner-logo-box[data-format="1"] {
    background-image: url('../assets/partners/partner1.jpg');
}
.partner-logo-box[data-format="2"] {
    background-image: url('../assets/partners/partner2.png');
}
.partner-logo-box[data-format="3"] {
    background-image: url('../assets/partners/partner3.jpg');
}
.partner-logo-box[data-format="4"] {
    background-image: url('../assets/partners/partner4.png');
}
.partner-logo-box[data-format="5"] {
    background-image: url('../assets/partners/partner5.png');
}

.partner-item:hover .partner-logo-box {
    transform: scale(1.02);
}

.about-section {
    background: rgba(6, 13, 31, 0.1);
    backdrop-filter: blur(10px) saturate(180%);
    -webkit-backdrop-filter: blur(10px) saturate(180%);
}

.about-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.about-content p {
    font-size: 1.2rem;
    line-height: 2;
}

.site-footer {
    background: rgb(4, 4, 4);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    padding: 5rem 0 3rem;
    color: #b0b0b0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 3.5rem;
}

.footer-intro h4 {
    margin-bottom: 1.2rem;
    font-size: 1.5rem;
    color: #ffffff;
}

.footer-intro p {
    color:  #999;
    margin-top: 1rem;
    line-height: 1.8;
}

.footer-links h4 {
    margin-bottom: 1.8rem;
    color: #ffffff;
    font-size: 1.2rem;
}

.footer-links ul li {
    margin-bottom: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.footer-links ul li:hover {
    color: var(--primary);
    transform: translateX(5px);
}

.footer-bottom p{
    text-align: center;
    font-size: 0.95rem;
    color: #999;
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2.5rem;
    }

    .stats {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-top: 2rem;
        padding-top: 1rem;
        padding-bottom: 20px;
    }

    .stat-item {
        padding: 2rem 1.5rem;
    }

    .stat-item h3 {
        font-size: 2.5rem;
    }

    .formats-grid {
        grid-template-columns: 1fr;
    }

    .format-card {
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        height: 300px;
        padding: 1.5rem;
        position: relative;
    }

    .format-card[data-format="1"] {
        background-image: url('../assets/formats/format1.png') !important;
        background-size: contain !important;
        background-position: center !important;
        background-repeat: no-repeat !important;
    }

    .format-card[data-format="2"] {
        background-image: url('../assets/formats/format2.png') !important;
        background-size: contain !important;
        background-position: center !important;
        background-repeat: no-repeat !important;
    }

    .format-card[data-format="3"] {
        background-image: url('../assets/formats/format3.png') !important;
        background-size: contain !important;
        background-position: center !important;
        background-repeat: no-repeat !important;
    }

    .format-card[data-format="4"] {
        background-image: url('../assets/formats/format4.png') !important;
        background-size: contain !important;
        background-position: center !important;
        background-repeat: no-repeat !important;
    }

    .format-card[data-format="5"] {
        background-image: url('../assets/formats/format5.png') !important;
        background-size: contain !important;
        background-position: center !important;
        background-repeat: no-repeat !important;
    }

    .format-card .icon-container,
    .format-card h4,
    .format-card p {
        display: none !important;
    }

    .card-bottom-title {
        display: none !important;
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .product-grid {
        grid-template-columns: 1fr;
    }

    .partner-item {
        gap: 0.6rem;
    }

    .partner-logo-box {
        width: 140px;
        height: 120px;
    }

    .partners-scroll {
        gap: 2rem;
        animation: scrollPartners 30s linear infinite;
    }

    @keyframes scrollPartners {
        0% {
            transform: translateX(0);
        }
        100% {
            transform: translateX(calc(-140px * 5 - 2rem * 5));
        }
    }

    .section {
        padding: 3rem 0;
    }

    .main-nav {
        height: 4rem;
    }

    .logo {
        width: 150px;
        height: 45px;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .formats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    h1 {
        font-size: 3.5rem;
    }

    h2 {
        font-size: 2.3rem;
    }

    .stats {
        gap: 2rem;
    }

    .stat-item h3 {
        font-size: 3.5rem;
    }

    .hero {
        padding-top: 6rem;
    }
}

@media (min-width: 1025px) and (max-width: 1440px) {
    .container {
        max-width: 1100px;
    }

    h1 {
        font-size: 4rem;
    }

    .product-grid {
        gap: 2rem;
    }

    .formats-grid {
        gap: 1.5rem;
    }
}

@media (min-width: 1441px) and (max-width: 1920px) {
    .container {
        max-width: 1400px;
    }

    h1 {
        font-size: 4.5rem;
    }

}

@media (min-width: 1921px) {
    .container {
        max-width: 1600px;
    }

    h1 {
        font-size: 5rem;
    }

    h2 {
        font-size: 3.2rem;
    }

    .stats {
        gap: 3rem;
    }

    .stat-item h3 {
        font-size: 4.5rem;
    }

    .product-grid {
        gap: 3rem;
    }

    .formats-grid {
        gap: 2.5rem;
    }

    .footer-grid {
        gap: 5rem;
    }
    .hero-content {
        max-width: 700px;
    }
    .format-card {
        height: 540px;
    }
}