/* Modern Products Section Design */

.products-section {
    background: #001f3f;
    position: relative;
    padding: 120px 0;
    overflow: hidden;
}

/* Animated Background */
.products-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(15, 114, 181, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(0, 64, 110, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 50% 100%, rgba(15, 114, 181, 0.05) 0%, transparent 50%);
    animation: backgroundShift 20s ease-in-out infinite;
}

@keyframes backgroundShift {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(-20px, -20px) scale(1.1); }
    66% { transform: translate(20px, -10px) scale(0.95); }
}

/* Section Title */
.products-section .section-title {
    color: #ffffff;
    font-size: 3.5rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
    animation: titleGlow 3s ease-in-out infinite;
}

@keyframes titleGlow {
    0%, 100% { text-shadow: 0 0 20px rgba(15, 114, 181, 0.5); }
    50% { text-shadow: 0 0 40px rgba(15, 114, 181, 0.8), 0 0 60px rgba(15, 114, 181, 0.4); }
}

.products-section .section-subtitle {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.3rem;
    margin-bottom: 80px;
}

/* Products Container */
.products-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

/* Products Grid */
.products-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    margin-bottom: 60px;
}

/* Product Card */
.product-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(245, 245, 245, 0.95));
    border: 1px solid rgba(15, 114, 181, 0.3);
    border-radius: 20px;
    padding: 0;
    position: relative;
    overflow: visible;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    width: 90%;
    max-width: 900px;
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(15, 114, 181, 0.05) 100%);
    opacity: 0;
    transition: opacity 0.5s;
    border-radius: 20px;
}

.product-card:hover::before {
    opacity: 1;
}

.product-card:hover {
    transform: translateY(-10px) scale(1.02);
    background: linear-gradient(135deg, rgba(255, 255, 255, 1), rgba(250, 250, 250, 1));
    border-color: rgba(15, 114, 181, 0.5);
    box-shadow: 
        0 30px 60px rgba(0, 0, 0, 0.4),
        0 0 80px rgba(15, 114, 181, 0.15),
        inset 0 0 20px rgba(15, 114, 181, 0.03);
}

/* Product Header */
.product-header {
    padding: 40px 40px 30px;
    background: linear-gradient(135deg, rgba(15, 114, 181, 0.15) 0%, transparent 50%);
    border-bottom: 1px solid rgba(15, 114, 181, 0.25);
    display: grid;
    grid-template-columns: 80px 1fr;
    align-items: center;
    gap: 25px;
}

.product-icon-wrapper {
    width: 80px;
    height: 80px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.product-icon-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0f72b5, #00406e);
    border-radius: 20px;
    opacity: 0.1;
    transition: all 0.5s;
}

.product-card:hover .product-icon-bg {
    opacity: 0.2;
    transform: rotate(10deg) scale(1.1);
}

.product-icon {
    position: relative;
    z-index: 1;
    width: 50px;
    height: 50px;
    filter: brightness(0) saturate(100%) invert(42%) sepia(82%) saturate(723%) hue-rotate(178deg) brightness(98%) contrast(92%);
    transition: all 0.5s;
}

.product-card:hover .product-icon {
    transform: scale(1.1);
    filter: brightness(0) saturate(100%) invert(42%) sepia(82%) saturate(723%) hue-rotate(178deg) brightness(108%) contrast(92%);
}

.product-title-wrapper {
    display: flex;
    flex-direction: column;
    gap: 5px;
    align-items: center;
    text-align: center;
    padding-right: 105px;
}

.product-title {
    color: #1a1a1a;
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0;
    transition: all 0.3s;
}

.product-card:hover .product-title {
    color: #0f72b5;
}

.product-tagline {
    color: rgba(0, 0, 0, 0.6);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 500;
    margin: 0;
}

/* Product Body */
.product-body {
    padding: 30px 40px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-description {
    color: rgba(0, 0, 0, 0.7);
    line-height: 1.8;
    margin-bottom: 30px;
    flex-grow: 1;
}

/* Product Features */
.product-features {
    list-style: none;
    padding: 0;
    margin: 0 0 30px 0;
}

.product-features li {
    color: rgba(255, 255, 255, 0.7);
    padding: 8px 0;
    padding-left: 30px;
    position: relative;
    transition: all 0.3s;
}

.product-features li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: #0f72b5;
    font-size: 1.2rem;
    transition: all 0.3s;
}

.product-card:hover .product-features li {
    color: rgba(255, 255, 255, 0.9);
    transform: translateX(5px);
}

.product-card:hover .product-features li::before {
    color: #1e90ff;
    transform: translateX(3px);
}

/* Product Footer */
.product-footer {
    padding: 30px 40px;
    background: rgba(15, 114, 181, 0.08);
    border-top: 1px solid rgba(15, 114, 181, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.product-status {
    display: flex;
    align-items: center;
    gap: 10px;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #00ff00;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}

.status-text {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

/* Learn More Button */
.product-learn-more {
    background: transparent;
    border: 2px solid #0f72b5;
    color: #0f72b5;
    padding: 10px 25px;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

.product-learn-more::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: linear-gradient(135deg, #0f72b5, #00406e);
    transform: translate(-50%, -50%);
    transition: all 0.5s;
    border-radius: 50px;
}

.product-learn-more:hover::before {
    width: 100%;
    height: 100%;
}

.product-learn-more:hover {
    color: #ffffff;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(15, 114, 181, 0.3);
}

.product-learn-more span {
    position: relative;
    z-index: 1;
}

/* Tools Grid Styling - Inside Product Body */
.product-body .tools-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-top: 20px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.6s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease-in-out;
    visibility: hidden;
}

.product-body .tools-grid.expanded {
    max-height: 2000px;
    opacity: 1;
    visibility: visible;
}

/* Responsive grid adjustment */
@media (max-width: 768px) {
    .product-body .tools-grid {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .product-body .tools-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.tools-grid .tool-card {
    background: rgba(0, 0, 0, 0.03);
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.tools-grid .tool-card:hover {
    transform: translateY(-3px);
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(15, 114, 181, 0.3);
    box-shadow: 0 5px 15px rgba(15, 114, 181, 0.15);
}

.tools-grid .tool-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(15, 114, 181, 0.15), rgba(0, 64, 110, 0.1));
    border-radius: 15px;
}

.tools-grid .tool-icon img {
    width: 35px;
    height: 35px;
    filter: brightness(0) saturate(100%) invert(52%) sepia(82%) saturate(723%) hue-rotate(178deg) brightness(108%) contrast(92%);
}

.tools-grid h4 {
    color: #1a1a1a;
    font-size: 1.2rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.tools-grid .tool-features ul {
    list-style: none;
    padding: 0;
}

.tools-grid .tool-features li {
    color: rgba(0, 0, 0, 0.7);
    padding: 5px 0;
    font-size: 0.9rem;
    position: relative;
    padding-left: 20px;
    line-height: 1.5;
}

.tools-grid .tool-features li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: #1e90ff;
    font-weight: bold;
}

/* Responsive Design */
@media (max-width: 968px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .product-card.featured {
        grid-column: span 1;
    }
    
    .products-section .section-title {
        font-size: 2.5rem;
    }
}

/* Floating Tech Particles */
.tech-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    overflow: hidden;
    pointer-events: none;
}

.particle {
    position: absolute;
    background: rgba(15, 114, 181, 0.3);
    border-radius: 50%;
    pointer-events: none;
}

.particle:nth-child(1) {
    width: 3px;
    height: 3px;
    top: 10%;
    left: 20%;
    animation: float1 15s infinite;
}

.particle:nth-child(2) {
    width: 2px;
    height: 2px;
    top: 70%;
    left: 80%;
    animation: float2 20s infinite;
}

.particle:nth-child(3) {
    width: 4px;
    height: 4px;
    top: 40%;
    left: 60%;
    animation: float3 18s infinite;
}

@keyframes float1 {
    0%, 100% { transform: translate(0, 0); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translate(100px, -100px); opacity: 0; }
}

@keyframes float2 {
    0%, 100% { transform: translate(0, 0); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translate(-100px, -150px); opacity: 0; }
}

@keyframes float3 {
    0%, 100% { transform: translate(0, 0); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translate(50px, -120px); opacity: 0; }
}