/* Custom CSS for FrameX Portfolio Website */

/* Portfolio Card Hover Effects */
.portfolio-card {
    position: relative;
    overflow: hidden;
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

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

.portfolio-preview {
    text-align: center;
    padding: 20px;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.portfolio-card:hover .portfolio-preview {
    transform: translateY(0);
}

.portfolio-preview h4 {
    margin-bottom: 10px;
}

.portfolio-preview p {
    margin-bottom: 15px;
    line-height: 1.4;
}

.portfolio-preview span {
    display: inline-block;
    margin: 2px;
}

/* Testimonials Carousel */
.testimonials-carousel {
    position: relative;
}

.testimonials-container {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
}

.testimonials-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.testimonial-slide {
    min-height: 300px;
}

.carousel-btn {
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.carousel-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.dot {
    transition: all 0.3s ease;
    cursor: pointer;
}

.dot.active {
    background-color: rgba(255, 255, 255, 0.8) !important;
    transform: scale(1.2);
}

.dot:hover {
    transform: scale(1.1);
}

/* Mobile carousel adjustments */
@media (max-width: 768px) {
    .testimonial-slide {
        width: 100% !important;
    }
    
    .carousel-btn {
        padding: 8px;
    }
    
    .carousel-dots {
        margin: 0 10px;
    }
}

/* Navigation Bar Styling */
.nav-animated {
    animation: navSlideIn 0.8s ease-out;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.nav-animated:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: translateX(-50%) translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.nav-link {
    position: relative;
    padding: 8px 16px;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(86, 130, 177, 0.1);
    border-radius: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nav-link:hover::before {
    opacity: 1;
}

.nav-link:hover {
    color: #5682B1 !important;
    transform: translateY(-1px);
}

/* Navigation Animations */
@keyframes navSlideIn {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

@keyframes navFloat {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(-2px);
    }
}

.nav-animated {
    animation: navSlideIn 0.8s ease-out, navFloat 4s ease-in-out infinite 1s;
}

/* Mobile Navigation Adjustments */
@media (max-width: 768px) {
    .nav-animated {
        /* Mobile styles are now handled by Tailwind classes in HTML */
        animation: navSlideInMobile 0.6s ease-out;
    }
    
    .nav-animated:hover {
        background: rgba(255, 255, 255, 0.95);
        transform: none;
        box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    }
    
    .nav-link {
        padding: 10px 16px;
        font-size: 0.95rem;
        margin: 0 4px;
        border-radius: 8px;
        transition: all 0.3s ease;
    }
    
    /* Mobile Contact Us button styling */
    .nav-animated a[href="contact.html"] {
        transition: all 0.3s ease;
        box-shadow: 0 2px 4px rgba(86, 130, 177, 0.2);
    }
    
    .nav-animated a[href="contact.html"]:hover {
        transform: translateY(-1px);
        box-shadow: 0 4px 8px rgba(86, 130, 177, 0.3);
    }
    
    /* Mobile Back to Home button styling */
    .nav-animated a[href="index.html"] {
        transition: all 0.3s ease;
        box-shadow: 0 2px 4px rgba(86, 130, 177, 0.2);
    }
    
    .nav-animated a[href="index.html"]:hover {
        transform: translateY(-1px);
        box-shadow: 0 4px 8px rgba(86, 130, 177, 0.3);
    }
}

@keyframes navSlideInMobile {
    from {
        opacity: 0;
        transform: translateY(-100%);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Video Styling */
.hero-video {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    transition: transform 0.3s ease;
}

/* Hide all video controls */
.hero-video::-webkit-media-controls {
    display: none !important;
}

.hero-video::-webkit-media-controls-panel {
    display: none !important;
}

.hero-video::-webkit-media-controls-play-button {
    display: none !important;
}

.hero-video::-webkit-media-controls-timeline {
    display: none !important;
}

.hero-video::-webkit-media-controls-current-time-display {
    display: none !important;
}

.hero-video::-webkit-media-controls-time-remaining-display {
    display: none !important;
}

.hero-video::-webkit-media-controls-mute-button {
    display: none !important;
}

.hero-video::-webkit-media-controls-volume-slider {
    display: none !important;
}

.hero-video::-webkit-media-controls-fullscreen-button {
    display: none !important;
}

/* Hide controls for other browsers */
.hero-video::-moz-media-controls {
    display: none !important;
}

.hero-video::-ms-media-controls {
    display: none !important;
}

.hero-video:hover {
    transform: scale(1.02);
}

.video-container {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(86, 130, 177, 0.1) 0%, rgba(115, 158, 201, 0.1) 100%);
    pointer-events: none;
    border-radius: 12px;
}

/* Video Controls */
.video-controls {
    position: absolute;
    bottom: 16px;
    left: 16px;
    right: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.video-container:hover .video-controls {
    opacity: 1;
}

.play-pause-btn {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.play-pause-btn:hover {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.1);
}

/* Responsive Video */
@media (max-width: 768px) {
    .hero-video {
        display: none;
    }
    
    .video-container {
        display: none;
    }
    
    .video-overlay {
        display: none;
    }
    
    /* Center hero content on mobile when video is hidden */
    .hero-content {
        text-align: center;
        max-width: 600px;
        margin: 0 auto;
    }
    
    .hero-content .flex {
        justify-content: center;
    }
}

/* Gradient Background */
.gradient-bg {
    background: linear-gradient(135deg, #5682B1 0%, #739EC9 100%);
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Advanced Animation Classes */
.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.slide-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.slide-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.scale-in {
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.scale-in.visible {
    opacity: 1;
    transform: scale(1);
}

.rotate-in {
    opacity: 0;
    transform: rotate(-10deg) scale(0.9);
    transition: all 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.rotate-in.visible {
    opacity: 1;
    transform: rotate(0deg) scale(1);
}

.stagger-animation > * {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.stagger-animation.visible > * {
    opacity: 1;
    transform: translateY(0);
}

.stagger-animation.visible > *:nth-child(1) { transition-delay: 0.1s; }
.stagger-animation.visible > *:nth-child(2) { transition-delay: 0.2s; }
.stagger-animation.visible > *:nth-child(3) { transition-delay: 0.3s; }
.stagger-animation.visible > *:nth-child(4) { transition-delay: 0.4s; }
.stagger-animation.visible > *:nth-child(5) { transition-delay: 0.5s; }
.stagger-animation.visible > *:nth-child(6) { transition-delay: 0.6s; }

/* Hover Effects */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

/* Enhanced Hover Effects */
.hover-lift-strong {
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.hover-lift-strong:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(86, 130, 177, 0.2);
}

.hover-tilt {
    transition: transform 0.3s ease;
}

.hover-tilt:hover {
    transform: perspective(1000px) rotateX(5deg) rotateY(5deg);
}

.hover-glow {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.hover-glow::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.hover-glow:hover::before {
    left: 100%;
}

.hover-glow:hover {
    box-shadow: 0 0 30px rgba(86, 130, 177, 0.4);
}

.hover-bounce {
    transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.hover-bounce:hover {
    transform: scale(1.1);
}

.hover-rotate {
    transition: transform 0.3s ease;
}

.hover-rotate:hover {
    transform: rotate(5deg) scale(1.05);
}

.hover-slide {
    transition: transform 0.3s ease;
    overflow: hidden;
}

.hover-slide:hover {
    transform: translateX(10px);
}

.hover-scale {
    transition: transform 0.3s ease;
}

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

/* Glow Effect */
.glow-effect {
    transition: all 0.3s ease;
}

.glow-effect:hover {
    box-shadow: 0 0 20px rgba(86, 130, 177, 0.3);
}

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

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

::-webkit-scrollbar-thumb {
    background: #5682B1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #739EC9;
}

/* Smooth Transitions */
* {
    transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
}

/* Button Hover Effects */
.btn-primary {
    background-color: #5682B1;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #739EC9;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(86, 130, 177, 0.3);
}

/* Card Hover Effects */
.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

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

.animate-fadeInUp {
    animation: fadeInUp 0.6s ease forwards;
}

/* Text Animations */
@keyframes typewriter {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

@keyframes blink {
    0%, 50% {
        border-color: transparent;
    }
    51%, 100% {
        border-color: #5682B1;
    }
}

.typewriter {
    overflow: hidden;
    border-right: 2px solid #5682B1;
    white-space: nowrap;
    animation: typewriter 3s steps(40, end), blink 0.75s step-end infinite;
}

@keyframes slideInFromLeft {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInFromRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInFromTop {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideInFromBottom {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes zoomIn {
    from {
        transform: scale(0);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes rotateIn {
    from {
        transform: rotate(-180deg) scale(0);
        opacity: 0;
    }
    to {
        transform: rotate(0deg) scale(1);
        opacity: 1;
    }
}

@keyframes flipIn {
    from {
        transform: perspective(400px) rotateY(90deg);
        opacity: 0;
    }
    to {
        transform: perspective(400px) rotateY(0deg);
        opacity: 1;
    }
}

/* Animation Classes */
.animate-slideInLeft {
    animation: slideInFromLeft 0.8s ease-out;
}

.animate-slideInRight {
    animation: slideInFromRight 0.8s ease-out;
}

.animate-slideInTop {
    animation: slideInFromTop 0.8s ease-out;
}

.animate-slideInBottom {
    animation: slideInFromBottom 0.8s ease-out;
}

.animate-zoomIn {
    animation: zoomIn 0.6s ease-out;
}

.animate-rotateIn {
    animation: rotateIn 0.8s ease-out;
}

.animate-flipIn {
    animation: flipIn 0.8s ease-out;
}

/* Pulse Animation for CTA */
@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.pulse-animation {
    animation: pulse 2s infinite;
}

/* Mobile Responsive Adjustments */
@media (max-width: 768px) {
    .gradient-bg {
        background: linear-gradient(180deg, #5682B1 0%, #739EC9 100%);
    }
    
    .fade-in {
        transform: translateY(20px);
    }
    
    .hover-lift:hover {
        transform: translateY(-3px);
    }
}

/* Focus States for Accessibility */
button:focus,
input:focus,
textarea:focus,
select:focus {
    outline: 2px solid #5682B1;
    outline-offset: 2px;
}

/* Custom Modal Styles */
.modal-backdrop {
    backdrop-filter: blur(5px);
}

/* Text Selection */
::selection {
    background-color: #FFE8DB;
    color: #1A1A1A;
}

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

/* Performance Optimizations */
* {
    box-sizing: border-box;
}

/* GPU Acceleration for Animations */
.fade-in,
.slide-in-left,
.slide-in-right,
.scale-in,
.rotate-in,
.hover-lift,
.hover-lift-strong,
.hover-tilt,
.hover-glow,
.hover-bounce,
.hover-rotate,
.hover-slide,
.hover-scale,
.magnetic,
.morphing,
.floating,
.floating-slow,
.floating-fast,
.floating-rotate,
.parallax-slow,
.parallax-medium,
.parallax-fast {
    will-change: transform, opacity;
    transform: translateZ(0);
    backface-visibility: hidden;
    perspective: 1000px;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .floating,
    .floating-slow,
    .floating-fast,
    .floating-rotate,
    .morphing,
    .pulse-glow {
        animation: none !important;
    }
}

/* Optimize for mobile devices */
@media (max-width: 768px) {
    .hover-tilt:hover {
        transform: none;
    }
    
    .hover-rotate:hover {
        transform: scale(1.05);
    }
    
    .magnetic:hover {
        transform: scale(1.02);
    }
}

/* Low-end device optimizations */
.low-end-device .morphing,
.low-end-device .floating,
.low-end-device .floating-slow,
.low-end-device .floating-fast,
.low-end-device .floating-rotate {
    animation: none !important;
}

.low-end-device .hover-tilt:hover {
    transform: none !important;
}

.low-end-device .parallax-slow,
.low-end-device .parallax-medium,
.low-end-device .parallax-fast {
    transform: none !important;
}

/* Custom Typography */
.heading-primary {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    line-height: 1.2;
}

.heading-secondary {
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    line-height: 1.3;
}

.body-text {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
}

/* Icon Animations */
.icon-bounce {
    transition: transform 0.3s ease;
}

.icon-bounce:hover {
    transform: scale(1.1);
}

/* Gradient Text */
.gradient-text {
    background: linear-gradient(135deg, #5682B1, #739EC9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Custom Shadows */
.shadow-custom {
    box-shadow: 0 10px 30px rgba(86, 130, 177, 0.1);
}

.shadow-custom-lg {
    box-shadow: 0 20px 60px rgba(86, 130, 177, 0.15);
}

/* Loading States */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

/* Skeleton Loading Animation */
@keyframes skeleton-loading {
    0% {
        background-position: -200px 0;
    }
    100% {
        background-position: calc(200px + 100%) 0;
    }
}

.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200px 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 4px;
}

.skeleton-text {
    height: 1rem;
    margin-bottom: 0.5rem;
}

.skeleton-text:last-child {
    width: 60%;
}

.skeleton-avatar {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
}

.skeleton-card {
    padding: 1rem;
    border-radius: 8px;
    background: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Loading Spinner */
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.loading-spinner {
    animation: spin 1s linear infinite;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #5682B1;
    border-radius: 50%;
    width: 20px;
    height: 20px;
}

.loading-spinner-lg {
    width: 40px;
    height: 40px;
    border-width: 4px;
}

/* Progress Bar Animation */
@keyframes progress-bar {
    0% {
        width: 0%;
    }
    100% {
        width: 100%;
    }
}

.progress-bar {
    height: 4px;
    background: linear-gradient(90deg, #5682B1, #739EC9);
    border-radius: 2px;
    animation: progress-bar 2s ease-out;
}

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

.shimmer {
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    background-size: 1000px 100%;
    animation: shimmer 2s infinite;
}

/* Success/Error States */
.success {
    border-color: #10B981;
    background-color: #ECFDF5;
}

.error {
    border-color: #EF4444;
    background-color: #FEF2F2;
}

/* Custom Form Styles */
.form-input {
    transition: all 0.3s ease;
    border: 2px solid #E5E7EB;
}

.form-input:focus {
    border-color: #5682B1;
    box-shadow: 0 0 0 3px rgba(86, 130, 177, 0.1);
}

/* Navigation Active State */
.nav-active {
    color: #5682B1;
    font-weight: 600;
}

/* Floating Elements */
.floating {
    animation: float 3s ease-in-out infinite;
}

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

/* Enhanced Floating Animations */
.floating-slow {
    animation: float-slow 6s ease-in-out infinite;
}

@keyframes float-slow {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(2deg);
    }
}

.floating-fast {
    animation: float-fast 2s ease-in-out infinite;
}

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

.floating-rotate {
    animation: float-rotate 4s ease-in-out infinite;
}

@keyframes float-rotate {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    25% {
        transform: translateY(-10px) rotate(5deg);
    }
    50% {
        transform: translateY(-20px) rotate(0deg);
    }
    75% {
        transform: translateY(-10px) rotate(-5deg);
    }
}

/* Parallax Effects */
.parallax-slow {
    transform: translateZ(0);
    will-change: transform;
}

.parallax-medium {
    transform: translateZ(0);
    will-change: transform;
}

.parallax-fast {
    transform: translateZ(0);
    will-change: transform;
}

/* Magnetic Hover Effect */
.magnetic {
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.magnetic:hover {
    transform: scale(1.05);
}

/* Morphing Shapes */
@keyframes morph {
    0%, 100% {
        border-radius: 50%;
        transform: rotate(0deg);
    }
    25% {
        border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
        transform: rotate(90deg);
    }
    50% {
        border-radius: 70% 30% 30% 70% / 70% 70% 30% 30%;
        transform: rotate(180deg);
    }
    75% {
        border-radius: 30% 70% 70% 30% / 70% 30% 30% 70%;
        transform: rotate(270deg);
    }
}

.morphing {
    animation: morph 8s ease-in-out infinite;
}

/* Pulse Glow Effect */
@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(86, 130, 177, 0.3);
    }
    50% {
        box-shadow: 0 0 40px rgba(86, 130, 177, 0.6);
    }
}

.pulse-glow {
    animation: pulse-glow 2s ease-in-out infinite;
}

/* Wave Animation */
@keyframes wave {
    0%, 100% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(10px);
    }
}

.wave {
    animation: wave 2s ease-in-out infinite;
}

.wave:nth-child(2) {
    animation-delay: 0.1s;
}

.wave:nth-child(3) {
    animation-delay: 0.2s;
}

.wave:nth-child(4) {
    animation-delay: 0.3s;
}

.wave:nth-child(5) {
    animation-delay: 0.4s;
}

/* Custom Grid Layouts */
.grid-auto-fit {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

/* Responsive Typography */
@media (max-width: 640px) {
    .heading-primary {
        font-size: 2.5rem;
    }
    
    .heading-secondary {
        font-size: 1.875rem;
    }
}

@media (min-width: 641px) and (max-width: 1024px) {
    .heading-primary {
        font-size: 3.5rem;
    }
    
    .heading-secondary {
        font-size: 2.25rem;
    }
}

@media (min-width: 1025px) {
    .heading-primary {
        font-size: 4.5rem;
    }
    
    .heading-secondary {
        font-size: 3rem;
    }
}

/* Contact Page Specific Styles */
.contact-card {
    transition: all 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(86, 130, 177, 0.15);
}

/* Form Styling Enhancements */
.form-input:focus {
    border-color: #5682B1;
    box-shadow: 0 0 0 3px rgba(86, 130, 177, 0.1);
    outline: none;
}

.form-input.error {
    border-color: #EF4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

/* FAQ Accordion Styles */
.faq-item {
    transition: all 0.3s ease;
}

.faq-item h3 {
    cursor: pointer;
    transition: color 0.3s ease;
}

.faq-item:hover h3 {
    color: #5682B1;
}

.faq-item.open h3 {
    color: #5682B1;
}

/* Contact Form Layout */
.contact-form-container {
    background: linear-gradient(135deg, #F5F5F5 0%, #FFE8DB 100%);
}

/* Enhanced Button Styles */
.btn-submit {
    background: linear-gradient(135deg, #5682B1 0%, #739EC9 100%);
    transition: all 0.3s ease;
}

.btn-submit:hover {
    background: linear-gradient(135deg, #739EC9 0%, #5682B1 100%);
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(86, 130, 177, 0.3);
}

.btn-submit:active {
    transform: translateY(0);
}

/* Loading States */
.loading-spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Success/Error States */
.form-success {
    border-color: #10B981;
    background-color: #ECFDF5;
}

.form-error {
    border-color: #EF4444;
    background-color: #FEF2F2;
}

/* Contact Information Cards */
.contact-info-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.contact-info-card:hover {
    border-color: #5682B1;
    box-shadow: 0 10px 25px rgba(86, 130, 177, 0.1);
}

/* Responsive Contact Form */
@media (max-width: 768px) {
    .contact-form-container {
        padding: 1.5rem;
    }
    
    .contact-info-card {
        margin-bottom: 1rem;
    }
}

/* Enhanced Focus States */
input:focus,
textarea:focus,
select:focus {
    outline: 2px solid #5682B1;
    outline-offset: 2px;
}

/* Custom Checkbox Styling */
input[type="checkbox"] {
    accent-color: #5682B1;
}

/* Pricing Popup Modal Styling */
#pricingModal {
    backdrop-filter: blur(8px);
}

#pricingModal.show {
    display: flex !important;
}

#pricingModal.show .bg-white {
    transform: scale(1);
    opacity: 1;
}

#pricingModal .bg-white {
    transform: scale(0.95);
    opacity: 0;
    transition: all 0.3s ease-out;
}

/* Form field focus effects */
#pricingForm input:focus,
#pricingForm textarea:focus {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(86, 130, 177, 0.15);
}

/* Loading state for submit button */
#pricingForm button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none !important;
}

/* Success animation */
#pricingSuccess.show {
    animation: successSlideIn 0.5s ease-out;
}

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

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    #pricingModal .bg-white {
        margin: 1rem;
        max-height: calc(100vh - 2rem);
    }
    
    #pricingForm input,
    #pricingForm textarea {
        font-size: 16px; /* Prevents zoom on iOS */
    }
}

/* Portfolio Slider Styling */
.portfolio-slider {
    position: relative;
}

.portfolio-container {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.portfolio-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.portfolio-slide {
    min-height: 600px;
}

.portfolio-slide .bg-white {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.portfolio-slide .h-96 {
    flex-shrink: 0;
}

.portfolio-slide .p-8 {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Navigation Controls */
.portfolio-prev,
.portfolio-next {
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.portfolio-prev:hover,
.portfolio-next:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.portfolio-dot {
    transition: all 0.3s ease;
    cursor: pointer;
}

.portfolio-dot.active {
    background-color: #5682B1 !important;
    transform: scale(1.2);
}

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

/* Enhanced button styling */
.portfolio-slide button {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.portfolio-slide button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.portfolio-slide button:hover::before {
    left: 100%;
}

/* Mobile responsive adjustments for portfolio */
@media (max-width: 768px) {
    .portfolio-slide {
        min-height: 500px;
    }
    
    .portfolio-slide .h-96 {
        height: 250px;
    }
    
    .portfolio-slide .p-8 {
        padding: 1.5rem;
    }
    
    .portfolio-slide h3 {
        font-size: 1.5rem;
    }
    
    .portfolio-slide p {
        font-size: 1rem;
    }
    
    .portfolio-prev,
    .portfolio-next {
        padding: 0.5rem;
    }
    
    .portfolio-dots {
        margin: 0 0.5rem;
    }
}


/* Enhanced Form Field Groups */
.form-field-group {
    position: relative;
    margin-bottom: 1.5rem;
}

.form-field-group label {
    transition: all 0.3s ease;
    font-weight: 500;
    color: #374151;
}

.form-field-group:focus-within label {
    color: #5682B1;
    transform: translateY(-2px);
}

.form-field-group.focused label {
    color: #5682B1;
}

/* Enhanced Form Input Styles */
.form-input {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid #E5E7EB;
    background: #FFFFFF;
    position: relative;
}

.form-input:focus {
    border-color: #5682B1;
    box-shadow: 0 0 0 3px rgba(86, 130, 177, 0.1);
    outline: none;
    transform: translateY(-1px);
}

.form-input.success {
    border-color: #10B981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
    background: linear-gradient(135deg, #FFFFFF 0%, #F0FDF4 100%);
}

.form-input.error {
    border-color: #EF4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
    background: linear-gradient(135deg, #FFFFFF 0%, #FEF2F2 100%);
    animation: error-shake 0.5s ease;
}

/* Form Input Hover Effects */
.form-input:hover:not(:focus):not(.error):not(.success) {
    border-color: #9CA3AF;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

/* Enhanced Error Messages */
.error-message {
    display: flex;
    align-items: center;
    margin-top: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: #FEF2F2;
    border: 1px solid #FECACA;
    border-radius: 0.5rem;
    color: #DC2626;
    font-size: 0.875rem;
    font-weight: 500;
    animation: errorSlideIn 0.3s ease;
}

.error-message::before {
    content: '⚠️';
    margin-right: 0.5rem;
    font-size: 1rem;
}

/* Enhanced Success Messages */
.success-message {
    display: flex;
    align-items: center;
    margin-top: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: #F0FDF4;
    border: 1px solid #BBF7D0;
    border-radius: 0.5rem;
    color: #059669;
    font-size: 0.875rem;
    font-weight: 500;
    animation: successSlideIn 0.3s ease;
}

.success-message::before {
    content: '✅';
    margin-right: 0.5rem;
    font-size: 1rem;
}

/* Form Loading States */
.form-loading {
    position: relative;
    pointer-events: none;
}

.form-loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
}

/* Enhanced Loading Spinner */
.loading-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid #E5E7EB;
    border-top: 2px solid #5682B1;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loading-spinner-lg {
    width: 40px;
    height: 40px;
    border-width: 4px;
}

/* Form Progress Indicator */
.form-progress {
    width: 100%;
    height: 4px;
    background: #E5E7EB;
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.form-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #5682B1, #739EC9);
    border-radius: 2px;
    transition: width 0.3s ease;
    animation: progressGlow 2s ease-in-out infinite;
}

/* Form Validation Animations */
@keyframes errorSlideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes progressGlow {
    0%, 100% {
        box-shadow: 0 0 5px rgba(86, 130, 177, 0.3);
    }
    50% {
        box-shadow: 0 0 20px rgba(86, 130, 177, 0.6);
    }
}

/* Enhanced Button States */
button[type="submit"] {
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

button[type="submit"]:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none !important;
}

button[type="submit"].success-bounce {
    animation: success-bounce 0.6s ease;
}

/* Form Field Focus Ring */
.form-field-group:focus-within {
    transform: translateY(-2px);
}

.form-field-group:focus-within .form-input {
    box-shadow: 0 8px 25px rgba(86, 130, 177, 0.15);
}

/* Mobile Form Enhancements */
@media (max-width: 768px) {
    .form-input {
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    .error-message,
    .success-message {
        font-size: 0.8rem;
        padding: 0.4rem 0.6rem;
    }
    
    .form-field-group:focus-within {
        transform: none;
    }
}

/* Character Counter */
.character-counter {
    font-size: 0.875rem;
    color: #6b7280;
    transition: color 0.3s ease;
}

.character-counter.warning {
    color: #f59e0b;
}

.character-counter.error {
    color: #ef4444;
}

/* Contact Page Animations */
.contact-hero {
    background: linear-gradient(135deg, #5682B1 0%, #739EC9 100%);
    position: relative;
    overflow: hidden;
}

.contact-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.1;
}

/* Enhanced Hover Effects */
.hover-scale {
    transition: transform 0.3s ease;
}

.hover-scale:hover {
    transform: scale(1.02);
}

/* Contact Form Validation */
.validation-message {
    font-size: 0.875rem;
    margin-top: 0.25rem;
    transition: all 0.3s ease;
}

.validation-message.error {
    color: #ef4444;
}

.validation-message.success {
    color: #10b981;
}

/* Mobile Contact Form Adjustments */
@media (max-width: 640px) {
    .contact-form-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .contact-form-container {
        padding: 1rem;
        margin: 1rem;
    }
}

/* Ripple Effect */
.ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    transform: scale(0);
    animation: ripple-animation 0.6s linear;
    pointer-events: none;
}

@keyframes ripple-animation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Enhanced Button Styles */
button, .btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

button:active, .btn:active {
    transform: scale(0.98);
}

/* WhatsApp Button Special Effects */
.whatsapp-btn {
    position: relative;
    overflow: hidden;
}

.whatsapp-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.whatsapp-btn:hover::before {
    left: 100%;
}

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

.whatsapp-btn:hover::after {
    width: 300px;
    height: 300px;
}

/* Pulse animation for WhatsApp button */
@keyframes whatsapp-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(34, 197, 94, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
    }
}

.whatsapp-btn:hover {
    animation: whatsapp-pulse 1.5s infinite;
}

/* Icon bounce effect */
.whatsapp-btn .fab {
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.whatsapp-btn:hover .fab {
    animation: whatsapp-bounce 0.6s ease;
}

@keyframes whatsapp-bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) scale(1);
    }
    40% {
        transform: translateY(-3px) scale(1.1);
    }
    60% {
        transform: translateY(-2px) scale(1.05);
    }
}

/* Text Reveal Animation */
.text-reveal {
    overflow: hidden;
}

.text-reveal span {
    display: inline-block;
    opacity: 0;
    transform: translateY(100%);
    transition: all 0.6s ease;
}

.text-reveal.visible span {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered Text Reveal */
.text-reveal.visible span:nth-child(1) { transition-delay: 0.1s; }
.text-reveal.visible span:nth-child(2) { transition-delay: 0.2s; }
.text-reveal.visible span:nth-child(3) { transition-delay: 0.3s; }
.text-reveal.visible span:nth-child(4) { transition-delay: 0.4s; }
.text-reveal.visible span:nth-child(5) { transition-delay: 0.5s; }
.text-reveal.visible span:nth-child(6) { transition-delay: 0.6s; }
.text-reveal.visible span:nth-child(7) { transition-delay: 0.7s; }
.text-reveal.visible span:nth-child(8) { transition-delay: 0.8s; }
.text-reveal.visible span:nth-child(9) { transition-delay: 0.9s; }
.text-reveal.visible span:nth-child(10) { transition-delay: 1.0s; }

/* Page Transition Effects */
.page-transition {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.page-transition.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.loading-overlay.active {
    opacity: 1;
    visibility: visible;
}

.loading-overlay .spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #5682B1;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Enhanced Form Animations */
.form-field {
    position: relative;
    overflow: hidden;
}

.form-field input:focus + label,
.form-field textarea:focus + label {
    transform: translateY(-20px) scale(0.8);
    color: #5682B1;
}

.form-field label {
    position: absolute;
    top: 50%;
    left: 12px;
    transform: translateY(-50%);
    transition: all 0.3s ease;
    pointer-events: none;
    background: white;
    padding: 0 4px;
}

/* Success Animation */
@keyframes success-bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

.success-bounce {
    animation: success-bounce 1s ease;
}

/* Error Shake Animation */
@keyframes error-shake {
    0%, 100% {
        transform: translateX(0);
    }
    10%, 30%, 50%, 70%, 90% {
        transform: translateX(-5px);
    }
    20%, 40%, 60%, 80% {
        transform: translateX(5px);
    }
}

.error-shake {
    animation: error-shake 0.5s ease;
}
