/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

@font-face {
    font-family: 'Gallient';
    src: url('../fonts/Gallient.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}


/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: #F07C6B;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #ce6b5c;
}

/* Hero section background animation */
.hero-bg {
    background: linear-gradient(135deg, #f8fafc 0%, #ecfdf5 100%);
    position: relative;
    overflow: hidden;
}

.hero-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(74, 222, 128, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(34, 197, 94, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

/* Floating animation */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.float-animation {
    animation: float 3s ease-in-out infinite;
}

/* Pulse animation for buttons */
@keyframes pulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(240,124,107,0.45); }
    35% { transform: scale(1.04); box-shadow: 0 0 0 8px rgba(240,124,107,0); }
    60% { transform: scale(1.02); box-shadow: 0 0 0 4px rgba(240,124,107,0.18); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(240,124,107,0); }
}

.pulse-animation,
button[data-quote-trigger="true"] {
    position: relative;
    animation: pulse 2s ease-out infinite;
    transition: transform .3s, box-shadow .3s;
}

/* Reintroduced a small outer ring for clearer visibility */
.pulse-animation::after,
button[data-quote-trigger="true"]::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    box-shadow: 0 0 0 0 rgba(240,124,107,0.45);
    animation: pulse-ring 2s ease-out infinite;
    z-index: -1;
}

@keyframes pulse-ring {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(240,124,107,0.45); }
    50% { transform: scale(1.18); box-shadow: 0 0 0 14px rgba(240,124,107,0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(240,124,107,0); }
}

/* Automatic pulse for all quote modal trigger buttons */
button[data-quote-trigger="true"]:hover,
.pulse-animation:hover {
    animation-play-state: paused;
    transform: scale(1.07);
}

/* Accessible reduced motion respect */
@media (prefers-reduced-motion: reduce) {
    .pulse-animation, button[data-quote-trigger="true"] {
        animation: none !important;
        box-shadow: none !important;
        transform: none !important;
    }
}

/* Gradient text */
.gradient-text {
    background: linear-gradient(135deg, #4ade80, #22c55e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Card hover effects */
.service-card {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(74, 222, 128, 0.1), transparent);
    transition: left 0.5s;
}

.service-card:hover::before {
    left: 100%;
}

/* Custom form styles */
.form-group {
    position: relative;
}

.form-input {
    transition: all 0.3s ease;
}

.form-input:focus {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(74, 222, 128, 0.1);
}

/* Loading animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Success message */
.success-message {
    background: linear-gradient(135deg, #4ade80, #22c55e);
    color: white;
    padding: 1rem;
    border-radius: 0.5rem;
    margin-top: 1rem;
    display: none;
}

/* Error message */
.error-message {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    padding: 1rem;
    border-radius: 0.5rem;
    margin-top: 1rem;
    display: none;
}

/* Modal animations */
.modal-enter {
    animation: modalEnter 0.3s ease-out;
}

.modal-exit {
    animation: modalExit 0.3s ease-in;
}

@keyframes modalEnter {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes modalExit {
    from {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
    to {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
}

/* Stats counter animation */
.stat-number {
    font-variant-numeric: tabular-nums;
}

/* Testimonial styles */
.testimonial-card {
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Navigation active state */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #4ade80;
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Prevent horizontal scroll */
body {
    overflow-x: hidden;
}

html {
    overflow-x: hidden;
}

/* Container fixes for mobile */
.container {
    max-width: 100%;
    padding-left: 1rem;
    padding-right: 1rem;
}

/* AOS animation fixes for mobile */
@media (max-width: 768px) {
    [data-aos] {
        transform: none !important;
        opacity: 1 !important;
        transition: none !important;
    }
    
    [data-aos].aos-animate {
        transform: none !important;
        opacity: 1 !important;
    }
}

/* Responsive utilities */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
        line-height: 1.2;
    }
    
    .section-padding {
        padding: 4rem 0;
    }
    
    .card-padding {
        padding: 1.5rem;
    }
    
    /* Fix grid layouts that might cause overflow */
    .grid {
        gap: 1rem !important;
    }
    
    /* Ensure images don't cause overflow */
    img {
        max-width: 100%;
        height: auto;
    }
    
    /* Fix carousel container */
    .gallery-carousel {
        width: 100%;
        overflow: hidden;
    }
    
    .gallery-track {
        width: 100%;
        display: flex;
    }
    
    .gallery-slide {
        min-width: 100%;
        flex-shrink: 0;
    }
}

/* Print styles */
@media print {
    .no-print {
        display: none !important;
    }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles for better accessibility */
.focus-visible:focus {
    outline: 2px solid #4ade80;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .text-gray-600 {
        color: #374151 !important;
    }
    
    .text-gray-500 {
        color: #6b7280 !important;
    }
}

/* Dark mode support (future enhancement) */
@media (prefers-color-scheme: dark) {
    /* Dark mode styles would go here */
}

/* Custom animations for sections */
.slide-in-left {
    animation: slideInLeft 0.6s ease-out;
}

.slide-in-right {
    animation: slideInRight 0.6s ease-out;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Service icons hover effect */
.service-icon {
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
}

/* Button loading state */
.btn-loading {
    position: relative;
    color: transparent !important;
}

.btn-loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-left: -8px;
    margin-top: -8px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
}

/* Tooltip styles */
.tooltip {
    position: relative;
}

.tooltip::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #1f2937;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    font-size: 0.875rem;
    z-index: 1000;
}

.tooltip::after {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: #1f2937;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.tooltip:hover::before,
.tooltip:hover::after {
    opacity: 1;
    visibility: visible;
    bottom: calc(100% + 5px);
}

/* Custom select dropdown */
.custom-select {
    position: relative;
}

.custom-select::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 1rem;
    transform: translateY(-50%);
    border: 5px solid transparent;
    border-top-color: #6b7280;
    pointer-events: none;
}

/* Progress bar */
.progress-bar {
    width: 100%;
    height: 4px;
    background: #e5e7eb;
    border-radius: 2px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4ade80, #22c55e);
    border-radius: 2px;
    transition: width 0.3s ease;
}

/* Notification styles */
.notification {
    position: fixed;
    top: 2rem;
    right: 2rem;
    max-width: 400px;
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-left: 4px solid #4ade80;
    padding: 1rem;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 9999;
}

.notification.show {
    transform: translateX(0);
}

.notification.error {
    border-left-color: #ef4444;
}

.notification.success {
    border-left-color: #4ade80;
}

.notification.warning {
    border-left-color: #f59e0b;
}

.ai {
    bottom: 54px;
    left: 0;
    background: #ffffff;
    width: 713px;
    height: 50px;
}

@media screen and (max-width: 768px) {
    .ai {
        width: 393px;
    }
}