/* ==========================================================================
   Premium Aesthetics & Modern Theme Overrides
   ========================================================================== */

/* Overview Blocks Enhancement */
.overview-details .column {
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.02);
    padding: 30px 20px !important;
}

.overview-details .column:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.overview-details .column img {
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
    margin-bottom: 20px;
}

/* Pay Per Sale / SEO Feature Tiles */
.feature-tile {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    transition: transform 0.3s ease;
    border: 1px solid #f1f5f9;
    padding: 20px;
    margin-bottom: 30px;
}

.feature-tile:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.07);
}

.card-img img {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Products Section Thumbnail Cards */
.thumbnail {
    border: none !important;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: #ffffff;
}

.thumbnail:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.12);
}

.thumbnail .caption {
    padding: 25px !important;
}

.thumbnail .caption h3 {
    margin-top: 0;
    color: #1e293b;
    font-weight: 600;
}

.thumbnail .caption p {
    color: #64748b;
    line-height: 1.6;
}

/* Buttons Enhancement */
.rd-mr, .ser-button {
    background: linear-gradient(135deg, #2563eb, #1d4ed8) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 6px !important;
    padding: 10px 24px !important;
    font-weight: 500 !important;
    transition: opacity 0.3s ease, transform 0.2s ease !important;
}

.rd-mr:hover, .ser-button:hover {
    opacity: 0.9;
    transform: translateY(-2px) !important;
}

/* Testimonials / Client Section */
.home-testimonials {
    background: linear-gradient(135deg, #0f172a, #1e293b);
    padding: 80px 0;
}

.testimonial {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    padding: 40px 30px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.testimonial .description {
    color: #e2e8f0;
    font-size: 16px;
    line-height: 1.8;
    font-style: italic;
}

.testimonial .title {
    color: #ffffff;
    font-weight: 600;
}

.testimonial .post {
    color: #94a3b8;
}

/* Team Section Clean Up */
.team-grid-2 h4 {
    color: #1e293b;
    font-weight: 700;
}

.team-grid-2 h5 {
    color: #3b82f6;
    font-weight: 500;
}

.team-grid-2 p {
    color: #64748b;
    line-height: 1.7;
}

/* General Layout Tweaks */
.home-section-title {
    margin-bottom: 40px !important;
    position: relative;
    padding-bottom: 15px;
}

.home-section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: #3b82f6;
    border-radius: 3px;
}

.home-section-title--on-dark::after {
    background: #ffffff;
}

/* Add subtle entry animations */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.overview-details .column, .thumbnail, .feature-tile, .box {
    animation: fadeInUp 0.6s ease-out forwards;
}

/* ==========================================================================
   Smooth Sticky Header Transitions 
   ========================================================================== */
.fixed-header {
    transition: background 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.fixed-header.is-scrolled {
    background: rgba(255, 255, 255, 0.50) !important;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.08) !important;
}

.fixed-header.is-scrolled .nav-main-wrap, 
.fixed-header.is-scrolled .navbar-default {
    background: transparent !important;
}

.fixed-header .agileits_top_menu {
    transition: max-height 0.4s ease, opacity 0.3s ease, margin 0.3s ease, padding 0.3s ease;
    max-height: 500px;
    opacity: 1;
    overflow: hidden;
}

.fixed-header.is-scrolled .agileits_top_menu {
    max-height: 0 !important;
    opacity: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
}
