/*
  Enhanced Blue Theme
  Modern Design Enhancements
*/

/* Modern Card Effects */
.single-service {
    position: relative;
    overflow: hidden;
}

.single-service::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    bottom: -50%;
    left: -50%;
    background: linear-gradient(
        to bottom,
        rgba(229, 229, 229, 0) 0%,
        rgba(229, 229, 229, 0.03) 50%,
        rgba(229, 229, 229, 0.03) 100%
    );
    transform: rotateZ(60deg) translate(-5em, 7.5em);
    transition: all 0.6s ease;
}

.single-service:hover::after {
    transform: rotateZ(60deg) translate(0, 0);
}

/* Glassmorphism effect for headers */
.sticky-menu .header {
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.9) 0%, rgba(30, 64, 175, 0.9) 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Animated gradient text */
.slider-content h1 {
    background: linear-gradient(135deg, #ffffff 0%, #93c5fd 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-shift 3s ease infinite;
}

@keyframes gradient-shift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

/* Floating animation for icons */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-15px);
    }
}

.ser-icon {
    animation: float 3s ease-in-out infinite;
}

/* Enhanced portfolio hover effect */
.single-portfolio {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.single-portfolio:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(59, 130, 246, 0.3);
}

/* Modern button glow effect */
.btn {
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
}

/* Animated underline for links */
.main-menu ul li > a {
    position: relative;
    display: inline-block;
}

.main-menu ul li > a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 10px;
    left: 50%;
    background: linear-gradient(90deg, #3b82f6, #60a5fa);
    transform: translateX(-50%);
    transition: width 0.3s ease;
}

.main-menu ul li > a:hover::after,
.main-menu ul li.active > a::after {
    width: 80%;
}

/* Modern shadow effects */
.about-img img {
    transition: all 0.4s ease;
}

.about-img:hover img {
    box-shadow: 0 25px 50px rgba(59, 130, 246, 0.25);
    transform: scale(1.02);
}

/* Gradient border effect */
.contact-info input,
.contact-info textarea {
    border: 2px solid transparent;
    background: linear-gradient(white, white) padding-box,
                linear-gradient(135deg, #3b82f6, #60a5fa) border-box;
    transition: all 0.3s ease;
}

.contact-info input:focus,
.contact-info textarea:focus {
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.3);
}

/* Pulse effect for call-to-action */
@keyframes pulse-blue {
    0% {
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.7);
    }
    70% {
        box-shadow: 0 0 0 20px rgba(59, 130, 246, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0);
    }
}

.call-into {
    animation: pulse-blue 2s infinite;
}

/* Smooth page transitions */
* {
    scroll-behavior: smooth;
}

/* Enhanced footer */
.footer-area {
    background: linear-gradient(135deg, #1e3a8a 0%, #0f172a 100%);
    position: relative;
    overflow: hidden;
}

.footer-area::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent,
        rgba(59, 130, 246, 0.5),
        transparent
    );
}

/* Loading animation enhancement */
.object {
    animation-duration: 1.5s;
    animation-timing-function: cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Responsive glow on hover */
.social a {
    position: relative;
    transition: all 0.3s ease;
}

.social a::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(96, 165, 250, 0.3);
    transform: translate(-50%, -50%);
    transition: all 0.4s ease;
    z-index: -1;
}

.social a:hover::before {
    width: 40px;
    height: 40px;
}

/* Modern box-shadow variations */
.single-blog {
    box-shadow: 0 5px 20px rgba(59, 130, 246, 0.1);
}

.single-blog:hover {
    box-shadow: 0 15px 40px rgba(59, 130, 246, 0.25);
}

/* Animated background for sections */
.service-area {
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
    position: relative;
}

.service-area::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(96, 165, 250, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

/* Title enhancement */
h2, h3, h4, h5 {
    position: relative;
    display: inline-block;
}

/* Shimmer effect on scroll */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

.title2 h2 {
    background: linear-gradient(90deg, #1e3a8a 0%, #3b82f6 50%, #1e3a8a 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 3s linear infinite;
}

/* Smooth reveal animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.wow {
    animation-duration: 1s;
    animation-fill-mode: both;
}

/* Enhanced scroll button */
#scroll a {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    transition: all 0.3s ease;
}

#scroll a:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.5);
}

/* Outline Button Style */
.btn-outline {
    border: 2px solid #ffffff;
    background: transparent;
    color: #ffffff;
    transition: all 0.3s ease;
}

.btn-outline:hover {
    background: #ffffff;
    color: #3b82f6;
    border-color: #ffffff;
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.3);
}

/* Why Choose Us Section */
.why-choose-card {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 5px 20px rgba(59, 130, 246, 0.1);
}

.why-choose-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(59, 130, 246, 0.25);
    background: linear-gradient(135deg, #ffffff 0%, #f0f9ff 100%) !important;
}

.why-choose-card .choose-icon {
    transition: all 0.3s ease;
}

.why-choose-card:hover .choose-icon {
    transform: scale(1.1) rotate(5deg);
}

/* Hero Buttons */
.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.hero-buttons .btn {
    min-width: 160px;
}

/* Enhanced Service Cards */
.single-service {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%) !important;
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.15);
}

/* Footer Link Hover */
.footer-address li a:hover {
    padding-left: 10px;
    color: #60a5fa !important;
}

/* Improved Responsive Layout */
@media (max-width: 991px) {
    .hero-buttons {
        justify-content: center;
    }
    
    .slider-content {
        text-align: center;
    }
    
    .why-choose-card {
        margin-bottom: 20px;
    }
}

@media (max-width: 767px) {
    .hero-buttons .btn {
        width: 100%;
        min-width: auto;
    }
    
    .why-choose-area {
        padding-top: 80px !important;
        padding-bottom: 80px !important;
    }
    
    .service-area {
        padding-top: 100px !important;
        padding-bottom: 100px !important;
    }
}

/* Statistics Section (if needed) */
.stats-section {
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
    padding: 80px 0;
}

.stats-card {
    text-align: center;
    padding: 30px;
}

.stats-card h3 {
    font-size: 48px;
    color: #60a5fa;
    font-weight: 700;
    margin-bottom: 10px;
}

.stats-card p {
    color: #94a3b8;
    font-size: 18px;
}

/* Enhanced Contact Form */
.contact-form {
    background: linear-gradient(135deg, #ffffff 0%, #f0f9ff 100%);
    padding: 50px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(59, 130, 246, 0.15);
}

/* Portfolio Grid Enhancement */
.portfolio-img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.4s ease;
}

.single-portfolio {
    height: 100%;
    display: flex;
    flex-direction: column;
}

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

/* Ensure equal height columns */
.portfolio-area .row {
    display: flex;
    flex-wrap: wrap;
}

.portfolio-area [class*="col-"] {
    display: flex;
    flex-direction: column;
}

/* Service Grid Improvement */
.service-area .row {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
}

.service-area .col-xl-4,
.service-area .col-lg-4,
.service-area .col-md-4 {
    display: flex;
    flex-direction: column;
}

.service-area .single-service {
    flex: 1;
}

/* Smooth Page Load Animation */
@keyframes fadeInPage {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

body {
    animation: fadeInPage 0.6s ease-out;
}

/* Windows Phone Style Tile Grid for About Section */
.about-tiles-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    width: 100%;
}

.tile-item {
    width: 100%;
    aspect-ratio: 1 / 1; /* Square tiles like Windows Phone */
}

.tile-item .single-about-img {
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    box-shadow: 0 2px 10px rgba(59, 130, 246, 0.15);
    border: 1px solid rgba(59, 130, 246, 0.1);
    transition: all 0.3s ease;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-tile-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
    transition: transform 0.4s ease;
}

/* Hover effects for tiles */
.tile-item .single-about-img:hover {
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
    transform: scale(1.02);
    border-color: rgba(59, 130, 246, 0.3);
    background: linear-gradient(135deg, #ffffff 0%, #f0f9ff 100%);
}

.tile-item .single-about-img:hover .about-tile-image {
    transform: scale(1.03);
}

.tile-item .single-about-img::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.tile-item .single-about-img:hover::after {
    opacity: 1;
}

/* Additional Responsive Enhancements */
@media (max-width: 767px) {
    .stats-section {
        padding: 60px 0 !important;
    }
    
    .stats-card h3 {
        font-size: 36px !important;
    }
    
    .stats-card p {
        font-size: 14px !important;
    }
    
    .why-choose-card {
        padding: 30px 20px !important;
    }
    
    .slider-content h1 {
        font-size: 32px !important;
    }
    
    .slider-content p {
        font-size: 16px !important;
    }
    
    .footer-widget {
        margin-bottom: 30px;
    }
    
    .call-into {
        position: relative !important;
        min-width: auto !important;
        width: 100% !important;
        border-radius: 10px !important;
        margin-top: 20px;
    }
    
    .title2 h2 {
        font-size: 36px !important;
    }
    
    .about-content {
        margin-top: 40px;
    }
    
    /* Portfolio responsive adjustments */
    .portfolio-img {
        height: 220px !important;
    }
    
    .portfolio-area {
        padding-top: 80px !important;
        padding-bottom: 80px !important;
    }
    
    /* About section mobile adjustments - Tile Grid */
    .about-tiles-grid {
        gap: 10px;
    }
    
    .about-area {
        margin-top: 100px !important;
    }
    
    .mb-md-50 {
        margin-bottom: 40px !important;
    }
    
    /* Ensure tiles remain square on mobile */
    .tile-item {
        aspect-ratio: 1 / 1;
    }
    
    /* Adjust padding for mobile */
    .tile-item .single-about-img {
        padding: 5px;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .slider-content h1 {
        font-size: 42px !important;
    }
    
    .stats-card h3 {
        font-size: 40px !important;
    }
    
    .why-choose-area {
        padding-top: 100px !important;
        padding-bottom: 100px !important;
    }
    
    /* Portfolio tablet adjustments */
    .portfolio-img {
        height: 250px;
    }
    
    /* About section tablet adjustments - Tile Grid */
    .about-tiles-grid {
        gap: 12px;
    }
    
    /* Adjust padding for tablet */
    .tile-item .single-about-img {
        padding: 5px;
    }
}

/* High Resolution Screens */
@media (min-width: 1920px) {
    .container {
        max-width: 1400px;
    }
    
    .stats-card h3 {
        font-size: 56px;
    }
    
    /* Larger tiles on big screens */
    .about-tiles-grid {
        gap: 20px;
    }
    
    /* More padding for large screens */
    .tile-item .single-about-img {
        padding: 8px;
    }
}

/* Fallback for browsers that don't support aspect-ratio */
@supports not (aspect-ratio: 1 / 1) {
    .tile-item {
        position: relative;
        padding-bottom: 100%; /* 1:1 Aspect Ratio */
    }
    
    .tile-item .single-about-img {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
    }
}

/* Accessibility Improvements */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Print Styles */
@media print {
    .header-area,
    .footer-area,
    .scroll-up,
    .hero-buttons {
        display: none !important;
    }
    
    body {
        background: white !important;
    }
    
    * {
        color: black !important;
        box-shadow: none !important;
    }
}
