/* UrionSoft Homepage - Specific Styles */

header {
    background: #004B66;
    color: #fff;
    padding: 80px 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(0,0,0,0.1) 100%);
    z-index: 1;
}

header > * {
    position: relative;
    z-index: 2;
}

header h1 {
    color: #fff;
    margin-bottom: 15px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

header p {
    font-size: 1.3em;
    color: #fff;
    font-weight: 400;
    margin-bottom: 30px;
    opacity: 0.95;
}

header .cta-button {
    display: inline-block;
    background: #fff;
    color: #004B66;
    padding: 15px 40px;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    margin-top: 10px;
}

header .cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

h1, h2, h3 {
    color: #004B66;
}

a {
    color: #004B66;
}

a:hover {
    color: #006A8F;
}

footer {
    background: #004B66;
}

/* Product Cards on Homepage */
#our-projects > section {
    position: relative;
    perspective: 1000px;
}

/* Cibler les logos produits actuels (dans les h3 > a) */
#our-projects h3 img {
    width: 100px !important;
    height: 100px !important;
    border-radius: 25% !important;
    box-shadow:
        0 10px 30px -5px rgba(0,0,0,0.3),
        0 20px 40px -10px rgba(0,0,0,0.2) !important;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
    transform-style: preserve-3d;
    filter:
        drop-shadow(0 4px 8px rgba(0,0,0,0.15))
        drop-shadow(0 0 20px rgba(255,255,255,0.5));
    vertical-align: middle !important;
    margin-right: 15px !important;
}

#our-projects h3 img:hover {
    transform: translateY(-5px) scale(1.03) !important;
    box-shadow:
        0 15px 35px -5px rgba(0,75,102,0.3),
        0 25px 45px -10px rgba(0,75,102,0.2) !important;
    filter:
        drop-shadow(0 6px 12px rgba(0,75,102,0.2))
        drop-shadow(0 0 20px rgba(0,150,200,0.2))
        brightness(1.05);
}

/* Pour la future structure avec .product-header */
#our-projects .product-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

#our-projects .product-header img {
    width: 100px;
    height: 100px;
    border-radius: 25%;
    box-shadow:
        0 10px 30px -5px rgba(0,0,0,0.3),
        0 20px 40px -10px rgba(0,0,0,0.2);
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    transform-style: preserve-3d;
    filter:
        drop-shadow(0 4px 8px rgba(0,0,0,0.15))
        drop-shadow(0 0 20px rgba(255,255,255,0.5));
}

#our-projects .product-header img:hover {
    transform: translateY(-12px) scale(1.08);
    box-shadow:
        0 20px 50px -5px rgba(0,75,102,0.4),
        0 30px 60px -10px rgba(0,75,102,0.3);
    filter:
        drop-shadow(0 8px 16px rgba(0,75,102,0.3))
        drop-shadow(0 0 30px rgba(0,150,200,0.4))
        brightness(1.1);
}

#our-projects .product-header h3 {
    margin: 0;
    font-size: 1.8em;
}

#our-projects .product-header h3 a {
    text-decoration: none;
    color: inherit;
}

#our-projects .product-actions {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 25px;
}

#our-projects .product-actions a {
    text-decoration: none;
}

@media (max-width: 768px) {
    #our-projects .product-header {
        flex-direction: column;
        text-align: center;
    }

    /* Reduce padding on mobile for better content visibility */
    #our-projects,
    #about-us,
    #contact-us {
        padding: 20px 15px !important;
        margin-bottom: 20px !important;
    }

    /* Reduce padding for product sub-sections on mobile */
    #our-projects > section {
        padding: 20px 15px !important;
        margin-bottom: 20px !important;
    }
}
