/* Accessibility */
.skip-link {
    position: absolute;
    top: -100px;
    left: 0;
    background: var(--accent);
    color: var(--primary);
    padding: 1rem 2rem;
    z-index: 9999;
    transition: top 0.3s;
    font-weight: bold;
    border-radius: 0 0 15px 0;
}
.skip-link:focus {
    top: 0;
}

/* Scroll Animations Base */
.fade-in-up, .slide-in-left, .slide-in-right {
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in-up { transform: translateY(40px); }
.slide-in-left { transform: translateX(-40px); }
.slide-in-right { transform: translateX(40px); }

.animate-in {
    opacity: 1 !important;
    transform: translate(0) !important;
}

/* Stagger Children */
.stagger-children > * {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.stagger-children.animate-in > * {
    opacity: 1;
    transform: translateY(0);
}

/* Micro-interactions */
.btn-primary.pulse-ring {
    animation: pulse-ring 2s infinite;
}

@keyframes pulse-ring {
    0% { box-shadow: 0 0 0 0 rgba(0, 212, 255, 0.4); }
    70% { box-shadow: 0 0 0 15px rgba(0, 212, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(0, 212, 255, 0); }
}

.service-card:hover i, .service-card:hover .service-icon {
    transform: rotate(10deg) scale(1.1);
}

.project-card {
    position: relative;
    overflow: hidden;
}

.project-card img {
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.project-card .overlay {
    position: absolute;
    bottom: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(10, 15, 30, 0.9), transparent);
    transition: bottom 0.4s ease;
    display: flex;
    align-items: flex-end;
    padding: 2rem;
}

.project-card:hover .overlay {
    bottom: 0;
}

.btn i.arrow {
    transition: transform 0.3s ease;
}

.btn:hover i.arrow {
    transform: translateX(5px);
}

/* Floating Labels */
.form-group {
    position: relative;
    margin-bottom: 1.5rem;
}

.form-group label {
    position: absolute;
    top: 1rem;
    left: 1.5rem;
    color: var(--text-muted);
    transition: all 0.3s ease;
    pointer-events: none;
    font-size: 0.9rem;
}

.form-group input:focus ~ label,
.form-group input:not(:placeholder-shown) ~ label,
.form-group textarea:focus ~ label,
.form-group textarea:not(:placeholder-shown) ~ label {
    top: -0.5rem;
    left: 1rem;
    font-size: 0.75rem;
    font-weight: bold;
    color: var(--accent);
    background: var(--white);
    padding: 0 0.5rem;
}

/* Social Icons Pop */
.social-icon {
    transition: all 0.3s ease;
}

.social-icon:hover {
    color: var(--accent) !important;
    transform: scale(1.2) translateY(-3px);
}

/* WhatsApp Button */
.whatsapp-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    background: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 1000;
    transition: all 0.3s ease;
}

.whatsapp-btn:hover {
    transform: scale(1.1) rotate(10deg);
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.6);
}

.whatsapp-btn::after {
    content: 'Chat with us!';
    position: absolute;
    right: 70px;
    background: var(--primary);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: bold;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.whatsapp-btn:hover::after {
    opacity: 1;
    visibility: visible;
    right: 80px;
}

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 7rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--card-shadow);
    z-index: 1000;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

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

/* Cookie Consent */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(10, 15, 30, 0.95);
    backdrop-filter: blur(10px);
    color: white;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 9999;
    transform: translateY(100%);
    transition: transform 0.5s ease;
}

.cookie-banner.visible {
    transform: translateY(0);
}

/* Smooth Page Transitions */
body {
    opacity: 0;
    animation: bodyFadeIn 0.8s ease forwards;
}

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

/* Print Styles */
@media print {
    .navbar, .footer, .cta-section, .whatsapp-btn, .back-to-top {
        display: none !important;
    }
    body { font-size: 12pt; }
    .container { max-width: 100%; padding: 0; }
}

/* NProgress Customization */
#nprogress .bar {
    background: var(--accent) !important;
    height: 3px !important;
}

#nprogress .spinner-icon {
    border-top-color: var(--accent) !important;
    border-left-color: var(--accent) !important;
}
