/* Professional Website Enhancements */

/* ============================================
   1. BACK TO TOP BUTTON - Professional Design
   ============================================ */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #052D69 0%, #0a4da3 100%);
    color: #ffffff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 999;
    box-shadow: 0 4px 20px rgba(5, 45, 105, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 8px 30px rgba(5, 45, 105, 0.5);
    background: linear-gradient(135deg, #0a4da3 0%, #052D69 100%);
}

.back-to-top:active {
    transform: translateY(-3px) scale(1.05);
}

.back-to-top::before {
    content: '↑';
    font-weight: 700;
    line-height: 1;
}

@media (max-width: 768px) {
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 18px;
    }
}

/* ============================================
   2. ENHANCED SECTION DIVIDERS
   ============================================ */
.section-divider {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, transparent, #052D69, transparent);
    margin: 40px auto;
    border-radius: 2px;
    position: relative;
    overflow: hidden;
}

.section-divider::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
    animation: dividerShine 3s infinite;
}

@keyframes dividerShine {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* ============================================
   3. ENHANCED TYPOGRAPHY HIERARCHY
   ============================================ */
.section-title {
    position: relative;
    display: inline-block;
    margin-bottom: 16px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, transparent, #052D69, transparent);
    border-radius: 2px;
}

/* ============================================
   4. PROFESSIONAL CARD ENHANCEMENTS
   ============================================ */
.card,
.portfolio-item,
.service-card {
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.card::after,
.portfolio-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: inherit;
    padding: 2px;
    background: linear-gradient(135deg, #052D69, #0a4da3, #052D69);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
    pointer-events: none;
}

.card:hover::after,
.portfolio-item:hover::after {
    opacity: 0.6;
}

/* ============================================
   5. ENHANCED BUTTON DESIGNS
   ============================================ */
.btn {
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn > * {
    position: relative;
    z-index: 2;
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
    z-index: 0;
}

.btn-primary:hover::after {
    width: 400px;
    height: 400px;
}

/* ============================================
   6. LOADING SKELETON STATES
   ============================================ */
.skeleton-loader {
    background: linear-gradient(90deg, 
        rgba(5, 45, 105, 0.05) 25%, 
        rgba(5, 45, 105, 0.1) 50%, 
        rgba(5, 45, 105, 0.05) 75%);
    background-size: 200% 100%;
    animation: skeletonLoading 1.5s ease-in-out infinite;
    border-radius: 8px;
}

@keyframes skeletonLoading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ============================================
   7. ENHANCED FOCUS STATES (Accessibility)
   ============================================ */
*:focus-visible {
    outline: 3px solid #052D69;
    outline-offset: 3px;
    border-radius: 4px;
}

.btn:focus-visible,
.filter-btn:focus-visible {
    outline: 3px solid #052D69;
    outline-offset: 2px;
}

/* ============================================
   8. SMOOTH SCROLL INDICATOR
   ============================================ */
.scroll-indicator {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, #052D69, #0a4da3, #052D69);
    z-index: 10000;
    transition: width 0.1s ease;
    box-shadow: 0 2px 10px rgba(5, 45, 105, 0.5);
}

/* ============================================
   9. ENHANCED STAT CARDS
   ============================================ */
.stat-item {
    position: relative;
    overflow: hidden;
}

.stat-item::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(5, 45, 105, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.stat-item:hover::after {
    opacity: 1;
}

/* ============================================
   10. PROFESSIONAL IMAGE OVERLAYS
   ============================================ */
.image-overlay-gradient {
    position: relative;
    overflow: hidden;
}

.image-overlay-gradient::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(5, 45, 105, 0.4) 100%);
    z-index: 1;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.image-overlay-gradient:hover::before {
    opacity: 0.8;
}

/* ============================================
   11. ENHANCED TESTIMONIAL CARDS
   ============================================ */
.testimonial-card {
    position: relative;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 20px;
    font-size: 80px;
    color: rgba(5, 45, 105, 0.1);
    font-family: Georgia, serif;
    line-height: 1;
    z-index: 0;
}

.testimonial-text {
    position: relative;
    z-index: 1;
}

/* ============================================
   12. ENHANCED PROCESS STEPS
   ============================================ */
.process-step {
    position: relative;
}

.process-number {
    position: relative;
    overflow: hidden;
}

.process-number::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(135deg, #052D69, #0a4da3, #052D69);
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

.process-step:hover .process-number::before {
    opacity: 0.3;
}

/* ============================================
   13. ENHANCED FORM INPUTS
   ============================================ */
.form-input,
.form-textarea {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.form-input:focus,
.form-textarea:focus {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(5, 45, 105, 0.15), 
                0 0 0 3px rgba(5, 45, 105, 0.1);
}

/* ============================================
   14. ENHANCED SOCIAL ICONS
   ============================================ */
.social-icon {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.social-icon::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: rgba(5, 45, 105, 0.1);
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.4s ease;
    z-index: -1;
}

.social-icon:hover::before {
    opacity: 1;
    transform: scale(1.2);
}

.social-icon:hover {
    transform: translateY(-3px) scale(1.1);
    color: #052D69;
}

/* ============================================
   15. ENHANCED CONTACT ITEMS
   ============================================ */
.contact-item {
    transition: all 0.3s ease;
    position: relative;
    padding-left: 10px;
}

.contact-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 0;
    background: linear-gradient(180deg, #052D69, #0a4da3);
    border-radius: 2px;
    transition: height 0.3s ease;
}

.contact-item:hover::before {
    height: 80%;
}

.contact-item:hover {
    transform: translateX(5px);
    color: #052D69;
}

/* ============================================
   16. ENHANCED NAVIGATION LINKS
   ============================================ */
.nav-link {
    position: relative;
    transition: all 0.3s ease;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #ffffff, transparent);
    transition: transform 0.3s ease;
}

.nav-link:hover::before,
.nav-link.active::before {
    transform: translateX(-50%) scaleX(1);
}

/* ============================================
   17. ENHANCED FOOTER DESIGN
   ============================================ */
.footer-section {
    position: relative;
}

.footer-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 2px;
    height: 0;
    background: linear-gradient(180deg, #052D69, transparent);
    transition: height 0.4s ease;
}

.footer-section:hover::before {
    height: 100%;
}

/* ============================================
   18. ENHANCED HERO SECTION
   ============================================ */
.hero-content {
    position: relative;
    z-index: 2;
}

.hero-actions .btn {
    position: relative;
    overflow: hidden;
}

.hero-actions .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s ease;
}

.hero-actions .btn:hover::before {
    left: 100%;
}

/* ============================================
   19. ENHANCED PORTFOLIO GRID
   ============================================ */
.portfolio-grid,
.portfolio-gallery-grid {
    position: relative;
}

.portfolio-item::before,
.portfolio-gallery-item::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: inherit;
    background: linear-gradient(135deg, #052D69, #0a4da3, #052D69);
    opacity: 0;
    z-index: -1;
    transition: opacity 0.4s ease;
    filter: blur(8px);
}

.portfolio-item:hover::before,
.portfolio-gallery-item:hover::before {
    opacity: 0.4;
}

/* ============================================
   20. ENHANCED SERVICES CARDS
   ============================================ */
.service-card .card-media {
    position: relative;
    overflow: hidden;
}

.service-card .card-media::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(5, 45, 105, 0.1) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.service-card:hover .card-media::after {
    opacity: 1;
}

/* ============================================
   21. RESPONSIVE ENHANCEMENTS
   ============================================ */
@media (max-width: 768px) {
    .section-divider {
        width: 60px;
        height: 3px;
        margin: 30px auto;
    }
    
    .back-to-top {
        bottom: 15px;
        right: 15px;
    }
}

/* ============================================
   22. PRINT STYLES
   ============================================ */
@media print {
    .back-to-top,
    .scroll-indicator,
    .page-loader {
        display: none !important;
    }
}

/* ============================================
   23. REDUCED MOTION SUPPORT
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    .back-to-top,
    .section-divider::before,
    .skeleton-loader,
    .scroll-indicator {
        animation: none !important;
        transition: none !important;
    }
}

