/* Custom styles */
/* Background Pattern */
.pattern-bg {
    background-color: #f8fafc;
    background-image: radial-gradient(#2563eb10 1px, transparent 1px);
    background-size: 20px 20px;
}

/* Modern Navigation */
.nav-link {
    position: relative;
    color: #4B5563;
    font-weight: 500;
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: #2563EB;
}

.nav-link.active {
    color: #2563EB;
}

.nav-indicator {
    position: absolute;
    bottom: -2px;
    left: 0;
    height: 2px;
    width: 0;
    background: linear-gradient(to right, #2563EB, #60A5FA);
    transition: width 0.3s ease;
}

.nav-link:hover .nav-indicator,
.nav-link.active .nav-indicator {
    width: 100%;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    color: #4B5563;
    font-weight: 500;
    transition: all 0.3s ease;
    border-radius: 0.5rem;
}

.mobile-nav-link:hover {
    background-color: #EFF6FF;
    color: #2563EB;
}

/* Floating Animation */
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

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

/* Service Cards */
.service-card {
    position: relative;
    background: linear-gradient(145deg, rgba(255,255,255,0.9), rgba(255,255,255,0.8));
    border-radius: 1rem;
    overflow: hidden;
    transform: translateY(0);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.service-card:hover {
    transform: translateY(-0.5rem);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: rgba(37, 99, 235, 0.2);
}

.tech-tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: rgba(37, 99, 235, 0.1);
    color: #2563EB;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.tech-tag:hover {
    background: rgba(37, 99, 235, 0.2);
    transform: translateY(-1px);
}

/* Carousel Navigation */
.carousel-dot.active {
    background-color: #ffffff;
    transform: scale(1.25);
}

/* Modern Sections */
.section-title {
    position: relative;
    font-weight: bold;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 33.33%;
    height: 2px;
    background-color: #2563EB;
    border-radius: 1rem;
}

/* Glassmorphism Cards */
.glass-card {
    background-color: #ffffffcc;
    backdrop-filter: blur(0.5rem);
    border-radius: 1rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
    border: 1px solid #ffffff40;
    background: linear-gradient(135deg, rgba(255,255,255,0.9), rgba(255,255,255,0.7));
}

/* Animated Background Elements */
.bg-element {
    position: fixed;
    pointer-events: none;
    opacity: 0.1;
    z-index: -1;
}

.bg-element-1 {
    width: 24rem;
    height: 24rem;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(14,165,233,0.2) 0%, rgba(14,165,233,0) 70%);
    animation: float 8s infinite;
}

.bg-element-2 {
    width: 16rem;
    height: 16rem;
    background: linear-gradient(45deg, rgba(14,165,233,0.1) 0%, rgba(14,165,233,0) 100%);
    animation: float 6s infinite reverse;
}

/* Navigation styles */
nav {
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.header-hidden {
    transform: translateY(-100%);
}

/* Form inputs */
.modern-input {
    width: 100%;
    padding: 1rem;
    border-radius: 1rem;
    border: 1px solid #ddd;
    transition: all 0.3s ease;
    background-color: #ffffffcc;
    backdrop-filter: blur(0.5rem);
}

.modern-input:focus {
    border-color: #2563EB;
    box-shadow: 0 0 0 2px #2563EB40;
}

/* Button hover effect */
.btn-hover-effect {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-hover-effect::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #ffffff40;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.btn-hover-effect:hover::before {
    transform: scaleX(1);
}

/* Learn More button animation */
.service-card .btn-hover-effect i {
    transition: transform 0.3s ease;
}

.service-card:hover .btn-hover-effect i {
    transform: translateX(0.5rem);
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Carousel styles */
.carousel {
    position: relative;
    overflow: hidden;
}

.carousel-inner {
    display: flex;
    transition: transform 0.5s ease;
}

.carousel-item {
    flex: 0 0 100%;
}

/* Animation classes */
.fade-up {
    opacity: 0;
    transform: translateY(2rem);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.active {
    opacity: 1;
    transform: translateY(0);
}

/* Form styles */
input, textarea {
    border: 1px solid #ddd;
    border-radius: 0.5rem;
    padding: 1rem;
    width: 100%;
    transition: all 0.3s ease;
}

input:focus, textarea:focus {
    outline: none;
    border-color: #2563EB;
    box-shadow: 0 0 0 2px #2563EB40;
}
