/* Modern IT Company Animations */

/* Grayscale effect for partner logos */
.grayscale {
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.5s ease;
}

.grayscale:hover {
    filter: grayscale(0%);
    opacity: 1;
}

/* Navbar animation */
.navbar {
    transition: all 0.3s ease;
}

.navbar.scrolled {
    padding-top: 10px;
    padding-bottom: 10px;
    background: rgba(26, 43, 76, 0.95) !important; /* Dark blue with opacity */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Logo animations */
.logo-container {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

.logo-image {
    transition: all 0.5s ease;
    position: relative;
    z-index: 2;
}

.logo-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 107, 53, 0.4) 0%, rgba(255, 107, 53, 0) 70%);
    z-index: 1;
    opacity: 0;
    transition: all 0.5s ease;
}

.navbar-brand:hover .logo-image {
    transform: scale(1.05);
}

.navbar-brand:hover .logo-glow {
    opacity: 1;
    animation: pulse 2s infinite;
}

/* Custom navbar toggler */
.custom-toggler {
    border: 2px solid var(--primary);
    padding: 0.4rem 0.75rem;
    transition: all 0.3s ease;
}

.custom-toggler:hover {
    background-color: rgba(255, 107, 53, 0.2);
}

/* Navigation menu animations */
.menu-item {
    position: relative;
    padding: 0.5rem 1rem;
    margin: 0 0.25rem;
    transition: all 0.3s ease;
}

.menu-item::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    background: var(--primary);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.menu-item:hover::after,
.menu-item.active::after {
    width: 70%;
}

.menu-item:hover {
    color: var(--primary) !important;
}

/* Dropdown menu animations */
.animated-dropdown {
    border: none;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    overflow: hidden;
    animation: dropdownFade 0.3s ease;
}

@keyframes dropdownFade {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.dropdown-item {
    transition: all 0.3s ease;
    padding: 0.5rem 1.5rem;
    position: relative;
}

.dropdown-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0;
    background-color: rgba(255, 107, 53, 0.1);
    transition: all 0.3s ease;
}

.dropdown-item:hover::before {
    width: 100%;
}

/* Search button animation */
.search-btn {
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 107, 53, 0.2);
    border: none;
    transition: all 0.3s ease;
}

.search-btn:hover {
    background-color: var(--primary);
    transform: scale(1.1);
}

/* Nav CTA button animation */
.nav-cta-btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.nav-cta-btn::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: -100%;
    background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.3) 50%, rgba(255,255,255,0) 100%);
    transition: all 0.5s ease;
}

.nav-cta-btn:hover::after {
    left: 100%;
}

/* Typewriter cursor effect */
.typewriter-text {
    border-right: 3px solid var(--primary);
    display: inline-block;
    padding-right: 5px;
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    from, to { border-color: transparent; }
    50% { border-color: var(--primary); }
}

/* Floating animation for tech icons */
.floating {
    animation: floating 3s ease-in-out infinite;
}

@keyframes floating {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

/* Service card hover animation */
.service-item {
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.service-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0%;
    background: linear-gradient(to bottom, rgba(255, 107, 53, 0.1), rgba(255, 107, 53, 0.02));
    transition: all 0.4s ease;
    z-index: -1;
}

.service-item:hover::before {
    height: 100%;
}

.active-service {
    transform: translateY(-10px);
}

/* Reveal on scroll animations */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger animation for feature items */
.feature-item {
    opacity: 0;
    animation: fadeInUp 0.6s forwards;
}

.feature-item:nth-child(1) { animation-delay: 0.1s; }
.feature-item:nth-child(2) { animation-delay: 0.3s; }
.feature-item:nth-child(3) { animation-delay: 0.5s; }
.feature-item:nth-child(4) { animation-delay: 0.7s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Button hover effects */
.btn-primary {
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--primary);
    border-radius: inherit;
    z-index: -2;
}

.btn-primary::before {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 100%;
    background-color: var(--secondary);
    transition: all 0.3s;
    border-radius: inherit;
    z-index: -1;
}

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

/* Additional navbar animations */

/* Progress bar animation */
.progress-bar {
    position: relative;
    overflow: hidden;
}

.progress-bar::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: linear-gradient(
        -45deg,
        rgba(255, 255, 255, 0.2) 25%,
        transparent 25%,
        transparent 50%,
        rgba(255, 255, 255, 0.2) 50%,
        rgba(255, 255, 255, 0.2) 75%,
        transparent 75%,
        transparent
    );
    background-size: 50px 50px;
    animation: progressAnimation 2s linear infinite;
    z-index: 1;
}

@keyframes progressAnimation {
    0% { background-position: 0 0; }
    100% { background-position: 50px 50px; }
}

/* Rotate animation for tech icons */
.tech-icon i {
    transition: transform 0.5s ease;
}

.service-item:hover .tech-icon i {
    transform: rotateY(360deg);
}

/* Pulse animation */
.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Notification badge animation */
.notification-badge {
    position: relative;
}

.notification-badge::after {
    content: "";
    position: absolute;
    top: -5px;
    right: -5px;
    width: 10px;
    height: 10px;
    background-color: var(--primary);
    border-radius: 50%;
    animation: ping 1.5s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes ping {
    0% { transform: scale(1); opacity: 1; }
    75%, 100% { transform: scale(2); opacity: 0; }
}

/* Pulse glow animation for partner logos */
@keyframes pulse-glow {
    0% { 
        box-shadow: 0 5px 15px rgba(255, 107, 53, 0.2);
    }
    100% { 
        box-shadow: 0 8px 25px rgba(255, 107, 53, 0.6);
    }
}

/* Stats Card Animation */
.stats-card {
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

.stats-card:hover {
    transform: translateY(-10px);
    border-bottom: 3px solid var(--primary);
}

.stats-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0;
    background: linear-gradient(to bottom, rgba(255, 107, 53, 0.1), transparent);
    transition: height 0.5s ease;
    z-index: -1;
}

.stats-card:hover::before {
    height: 100%;
}

.stats-icon {
    transition: all 0.5s ease;
}

.stats-card:hover .stats-icon {
    transform: scale(1.2);
}

/* Count number transition */
.count-number {
    position: relative;
    font-weight: 700;
    font-size: 2.5rem;
}

.count-number::after {
    content: "";
    font-size: 1.5rem;
    position: absolute;
    margin-left: 5px;
}

/* Tech Partners Section */
.tech-partners {
    position: relative;
    margin-top: 30px;
}

/* Logo wrapper for consistent sizing */
.logo-wrapper {
    height: 120px; /* Fixed height for consistency */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
}

/* Responsive adjustments for partner logos */
@media (max-width: 767px) {
    .logo-wrapper {
        height: 90px;
    }
    .partner-logo {
        max-height: 70px;
    }
}

@media (max-width: 575px) {
    .logo-wrapper {
        height: 80px;
        padding: 8px;
    }
    .partner-logo {
        max-height: 60px;
        padding: 5px;
    }
}

.partner-logo {
    max-height: 100px; /* Increased from 80px */
    max-width: 100%;
    width: auto;
    padding: 10px; /* Reduced padding to allow for larger image */
    margin-bottom: 15px;
    border-radius: 12px;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    filter: grayscale(0%); /* Colorful by default */
    opacity: 1;
    transform: translateY(0);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    background-color: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.9);
    object-fit: contain; /* Ensure proper sizing */
}

.partner-logo:hover {
    transform: scale(1.15) translateY(-8px) rotate(1deg);
    box-shadow: 0 15px 30px rgba(255, 107, 53, 0.3);
    animation: pulse-glow 1.5s infinite alternate;
    background-color: white;
    border-color: var(--primary);
    z-index: 5;
}

/* Add visual interest with staggered animations */
.tech-partners .col-md-2:nth-child(odd) .partner-logo {
    animation: float-slow 3s ease-in-out infinite;
}

.tech-partners .col-md-2:nth-child(even) .partner-logo {
    animation: float-slow 3.5s ease-in-out infinite;
    animation-delay: 0.5s;
}

@keyframes float-slow {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

/* Tech subtitle styling */
.tech-subtitle {
    font-size: 1.2rem;
    line-height: 1.6;
    position: relative;
    padding-bottom: 15px;
}

.tech-subtitle::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 2px;
    background: linear-gradient(to right, transparent, var(--primary), transparent);
}

/* Partner container styling */
.partner-container {
    background: linear-gradient(145deg, rgba(255,255,255,0.9) 0%, rgba(248,249,250,0.8) 100%);
    border: 1px solid rgba(255,255,255,0.8);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    position: relative;
    overflow: hidden;
}

.partner-container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,107,53,0.1) 0%, rgba(255,255,255,0) 70%);
    animation: rotate-gradient 15s linear infinite;
    z-index: 0;
}

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

/* Tech decoration elements */
.tech-decoration {
    position: relative;
    height: 30px;
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.tech-circle {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary);
    opacity: 0.8;
}

.tech-circle:nth-child(1) {
    animation: pulse 1.5s infinite alternate;
}

.tech-circle:nth-child(2) {
    animation: pulse 1.5s infinite alternate;
    animation-delay: 0.5s;
}

.tech-circle:nth-child(3) {
    animation: pulse 1.5s infinite alternate;
    animation-delay: 1s;
}

.tech-partners::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--primary), transparent);
    bottom: -15px;
    left: 0;
}
