/* Enhanced Visual Elements & Animations */

/* Improved Section Transitions */
section {
    position: relative;
    transition: all 0.4s ease-out;
}

/* Elegant Hover Effects */
.service-box, .pricing-thumb, .portfolio-card, .innovation-card {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.service-box:hover, .pricing-thumb:hover, .innovation-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

/* Enhanced Button Styles */
.custom-btn {
    overflow: hidden;
    position: relative;
    z-index: 1;
    transition: all 0.4s ease;
    border: none;
}

.custom-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background: rgba(255,255,255,0.1);
    z-index: -1;
    transition: all 0.4s ease-out;
}

.custom-btn:hover::before {
    width: 100%;
}

/* Refined Hero Section */
.hero-section {
    background-position: center center;
    background-attachment: fixed;
}

.hero-section h1 {
    text-shadow: 0px 2px 5px rgba(0,0,0,0.5);
    letter-spacing: 1.5px;
    font-weight: 700;
}

.hero-section small {
    letter-spacing: 3px;
    text-transform: uppercase;
    text-shadow: 0px 1px 3px rgba(0,0,0,0.5);
}

/* Enhanced Portfolio Cards */
.portfolio-card {
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
    overflow: hidden;
    border-radius: 12px;
}

.portfolio-card:hover img {
    transform: scale(1.05);
}

.portfolio-card img {
    transition: transform 0.5s ease;
}

.portfolio-overlay {
    background: linear-gradient(to top, rgba(0,0,0,0.9), rgba(0,0,0,0.7));
    opacity: 0;
    transition: all 0.4s ease;
}

.portfolio-card:hover .portfolio-overlay {
    opacity: 1;
    bottom: 0;
}

/* Enhanced Feature Cards */
.innovation-card {
    overflow: hidden;
}

.innovation-card::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.innovation-card:hover::after {
    opacity: 1;
    transform: scale(1);
}

.innovation-icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(178, 131, 97, 0.1);
    margin-bottom: 25px;
    transition: all 0.4s ease;
}

.innovation-card:hover .innovation-icon {
    transform: scale(1.1);
    background: rgba(178, 131, 97, 0.2);
}

/* Enhanced Statistics */
.stat-box {
    border-radius: 15px;
    overflow: hidden;
    position: relative;
}

.stat-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(to right, rgba(255,255,255,0.1), rgba(255,255,255,0.5), rgba(255,255,255,0.1));
    transform: scaleX(0);
    transition: transform 0.4s ease-out;
}

.stat-box:hover::before {
    transform: scaleX(1);
}

/* Pricing Table Refinements */
.pricing-thumb {
    border-radius: 15px;
    overflow: hidden;
    border: none;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.highlighted-plan {
    transform: translateY(-10px);
}

.pricing-header {
    position: relative;
    padding-bottom: 25px;
    margin-bottom: 25px;
}

.pricing-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    height: 3px;
    width: 60px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.pricing-thumb:hover .pricing-header::after {
    width: 100px;
}

/* Footer Enhancements */
.site-footer {
    position: relative;
}

.site-footer-links li a {
    position: relative;
    padding-bottom: 2px;
}

.site-footer-links li a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.site-footer-links li a:hover::after {
    width: 100%;
}

/* Contact Form Refinements */
.custom-form .form-control {
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 12px 18px;
    transition: all 0.3s ease;
    background: rgba(255,255,255,0.9);
}

.custom-form .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(178, 131, 97, 0.1);
    background: #fff;
}

.form-group h6 {
    margin-bottom: 12px;
    font-weight: 500;
    color: #555;
}

/* Page Loader */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.page-loader.loaded {
    opacity: 0;
    visibility: hidden;
}

.loader-circle {
    width: 50px;
    height: 50px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Scroll Animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Back To Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    z-index: 99;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top i {
    font-size: 20px;
}

/* Mobile Optimizations */
@media (max-width: 991px) {
    .highlighted-plan {
        transform: none;
    }
    
    .back-to-top {
        bottom: 15px;
        right: 15px;
        width: 40px;
        height: 40px;
    }
}
