/* Custom Styles for Softhub Tech Solutions */

:root {
    --brand-blue: #84D0E8;
    --brand-navy: #192231;
    --white: #FFFFFF;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    overflow-x: hidden;
}

/* Navigation Styles */
#navbar {
    background: transparent;
    transition: all 0.3s ease;
}

#navbar.scrolled {
    background: rgba(25, 34, 49, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(132, 208, 232, 0.1);
}

.nav-link {
    position: relative;
    transition: all 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--brand-blue);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* Service Cards */
.service-card {
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--brand-blue);
    box-shadow: 0 20px 40px rgba(132, 208, 232, 0.3);
}

.service-card:hover .fa-mobile-alt,
.service-card:hover .fa-cogs,
.service-card:hover .fa-globe,
.service-card:hover .fa-life-ring,
.service-card:hover .fa-download,
.service-card:hover .fa-laptop-medical,
.service-card:hover .fa-users-cog {
    transform: scale(1.2) rotate(360deg);
    transition: all 0.6s ease;
}

/* Filter Buttons */
.filter-btn {
    background: #e5e7eb;
    color: var(--brand-navy);
    border: 2px solid transparent;
}

.filter-btn:hover {
    background: rgba(132, 208, 232, 0.2);
    border-color: var(--brand-blue);
    color: var(--brand-navy);
}

.filter-btn.active {
    background: linear-gradient(135deg, var(--brand-blue), var(--brand-navy));
    color: white;
    box-shadow: 0 4px 15px rgba(132, 208, 232, 0.5);
}

/* Portfolio Cards */
.portfolio-card {
    position: relative;
    overflow: hidden;
    border-radius: 1rem;
    cursor: pointer;
    transition: all 0.4s ease;
    opacity: 1;
    transform: scale(1);
}

.portfolio-card.hidden {
    opacity: 0;
    transform: scale(0.8);
    height: 0;
    margin: 0;
    padding: 0;
}

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

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

.portfolio-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(25, 34, 49, 0.95), rgba(132, 208, 232, 0.95));
    opacity: 0;
    transition: opacity 0.4s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    text-align: center;
}

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

/* Glass Input Fields */
.glass-input {
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.glass-input:focus {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

/* Testimonial Slider */
.testimonial-card {
    min-width: 100%;
    padding: 3rem;
    background: white;
    border-radius: 1.5rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    border-color: var(--brand-blue);
    box-shadow: 0 15px 50px rgba(132, 208, 232, 0.2);
}

/* Client Logo Animation */
@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.animate-scroll {
    animation: scroll 30s linear infinite;
}

.animate-scroll:hover {
    animation-play-state: paused;
}

.client-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    margin: 0 2rem;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border-radius: 1rem;
    border: 1px solid rgba(132, 208, 232, 0.2);
    transition: all 0.3s ease;
}

.client-logo:hover {
    background: rgba(132, 208, 232, 0.1);
    border-color: var(--brand-blue);
    box-shadow: 0 0 20px rgba(132, 208, 232, 0.5);
}

/* Counter Animation */
.counter {
    display: inline-block;
}

/* Scroll to Top Button */
#scrollToTop {
    transition: all 0.3s ease;
}

#scrollToTop.show {
    opacity: 1;
    pointer-events: all;
}

/* Particle Canvas */
#particleCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Hero Section Spacing */
#home {
    padding-top: 80px;
}

@media (max-width: 768px) {
    #home {
        padding-top: 100px;
    }
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    animation: fadeIn 0.3s ease;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    border-radius: 1.5rem;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: slideUp 0.4s ease;
    margin: 2rem;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 2rem;
    color: var(--brand-navy);
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(132, 208, 232, 0.2);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: var(--brand-blue);
    color: white;
    transform: rotate(90deg);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

/* Testimonial Dots */
.testimonial-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #e5e7eb;
    cursor: pointer;
    transition: all 0.3s ease;
}

.testimonial-dot.active {
    background: var(--brand-blue);
    width: 32px;
    border-radius: 6px;
}

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

::-webkit-scrollbar-track {
    background: var(--brand-navy);
}

::-webkit-scrollbar-thumb {
    background: var(--brand-blue);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #6bbad4;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .service-card {
        margin-bottom: 1rem;
    }
    
    .testimonial-card {
        padding: 2rem 1.5rem;
    }
    
    .modal-content {
        margin: 1rem;
        max-height: 85vh;
    }
}

/* Loading Animation */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Gradient Text */
.gradient-text {
    background: linear-gradient(135deg, var(--brand-blue), var(--brand-navy));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Glow Effect */
.glow {
    box-shadow: 0 0 20px rgba(132, 208, 232, 0.5);
}

.glow-on-hover:hover {
    box-shadow: 0 0 30px rgba(132, 208, 232, 0.7);
}

/* Smooth Fade In Animation */
[data-aos="fade-up"] {
    opacity: 0;
    transform: translateY(30px);
    transition-property: transform, opacity;
}

[data-aos="fade-up"].aos-animate {
    opacity: 1;
    transform: translateY(0);
}