/* Product & Solution Section - Minimalist Modern */

/* Import FrameHead Font */
@font-face {
    font-family: "FrameHead-Roman";
    src: url("../fonts/FrameHead-Roman-Web.woff2") format("woff2"),
         url("../fonts/FrameHead-Roman-Web.woff") format("woff");
    font-style: normal;
    font-weight: normal;
}

@font-face {
    font-family: "rand-md";
    src: url("../fonts/Rand-Medium.woff2") format("woff2"), 
         url("../fonts/Rand-Medium.woff") format("woff");
    font-style: normal;
}

@font-face {
    font-family: "rand-rg";
    src: url("../fonts/Rand-Regular.woff2") format("woff2"), 
         url("../fonts/Rand-Regular.woff") format("woff");
    font-style: normal;
}

/* Section */
.products-section {
    position: relative;
    background: #f8fafc; /* slate-50 */
    overflow: hidden;
    padding: 80px 0 60px;
}

.products-section-header {
    text-align: center;
    margin-bottom: 36px;
    position: relative;
    z-index: 1;
}

.products-section-title {
    font-family: 'FrameHead-Roman', serif;
    font-size: clamp(2rem, 4vw, 3.25rem);
    font-weight: 400;
    color: #0f172a; /* slate-900 */
    letter-spacing: -0.01em;
}

.products-container {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
    margin-top: 20px;
}

/* Card */
.product-category {
    position: relative;
    background: #ffffff;
    border: 1px solid #e5e7eb; /* gray-200 */
    border-radius: 16px;
    min-height: 220px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    overflow: hidden;
}

.product-category:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
    border-color: #d1d5db; /* gray-300 */
}

/* Subtle top accent line via layered backgrounds */
.product-category {
    background-image: linear-gradient(#e5e7eb, #e5e7eb), linear-gradient(white, white);
    background-repeat: no-repeat;
    background-size: 100% 2px, 100% calc(100% - 2px);
    background-position: top left, bottom left;
}

/* Content */
.product-content {
    position: relative;
    z-index: 1;
    height: 100%;
    padding: 24px 22px 26px;
    display: flex;
    flex-direction: column;
}

/* Large, subtle background number */
.category-number {
    position: absolute;
    bottom: -10px;
    right: 12px;
    font-family: 'rand-md', sans-serif;
    font-size: clamp(3.25rem, 10vw, 5.5rem);
    font-weight: 800;
    color: #0f172a; /* slate-900 */
    opacity: 0.06;
    line-height: 1;
    letter-spacing: -0.02em;
    background: none;
    padding: 0;
    border: 0;
    pointer-events: none;
    z-index: 0;
    transition: opacity 0.25s ease, transform 0.25s ease;
}
.product-category:hover .category-number {
    opacity: 0.09;
    transform: translateY(-1px);
}

/* Title */
.category-title {
    font-family: 'rand-md', sans-serif;
    font-size: clamp(1.15rem, 1.8vw, 1.6rem);
    font-weight: 600;
    color: #0f172a;
    margin: 10px 0 12px 0;
    line-height: 1.25;
}

/* List */
.product-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-auto-rows: minmax(0, auto);
    row-gap: 8px;
}

.product-item {
    font-family: 'rand-rg', sans-serif;
    font-size: clamp(0.95rem, 1.05vw, 1.05rem);
    color: #374151; /* gray-700 */
    display: flex;
    align-items: center;
    gap: 10px;
    transition: color 0.2s ease, transform 0.2s ease;
}

.product-item::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 9999px;
    background: #9ca3af; /* gray-400 */
}

.product-item:hover {
    color: #111827; /* gray-900 */
    transform: translateX(2px);
}

.product-item:hover::before {
    background: #2563eb; /* blue-600 */
}

/* Hide decorative label from old design */
.category-label { display: none; }

/* AOS tweaks */
.products-grid [data-aos] { transition-duration: 0.7s; }
.product-category:nth-child(1) { animation-delay: 0.05s; }
.product-category:nth-child(2) { animation-delay: 0.10s; }
.product-category:nth-child(3) { animation-delay: 0.15s; }
.product-category:nth-child(4) { animation-delay: 0.20s; }

/* Responsive */
@media (max-width: 1024px) {
    .products-grid {
        grid-template-columns: 1fr;
        gap: 22px;
    }
    .product-category { min-height: 200px; }
}

@media (max-width: 768px) {
    .products-section { padding: 60px 0 40px; }
    .products-section-title { font-size: 2rem; }
    .product-content { padding: 20px; }
    .category-title { font-size: 1.2rem; margin-bottom: 10px; }
}

@media (max-width: 480px) {
    .products-section { padding: 44px 0 32px; }
    .products-container { padding: 0 12px; }
    .product-content { padding: 16px; }
    .category-number {
        font-size: clamp(2.5rem, 16vw, 3.5rem);
        bottom: -8px;
        right: 10px;
        padding: 0;
    }
    .category-title { font-size: 1.05rem; }
    .product-item { font-size: 0.9rem; }
}
