/* Custom Styles - Professional UI/UX Design */
* {
    scroll-behavior: smooth;
    margin: 0;
    padding: 0;
}

body {
    overflow-x: hidden;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #1f2937;
}

/* Typography Enhancement */
h1, h2, h3, h4, h5, h6 {
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: -0.02em;
}

p {
    line-height: 1.75;
}

/* Container Enhancement - Increased Left-Right Spacing */
.container {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

@media (min-width: 640px) {
    .container {
        max-width: 640px;
        padding-left: 2.5rem;
        padding-right: 2.5rem;
    }
}

@media (min-width: 768px) {
    .container {
        max-width: 768px;
        padding-left: 3.5rem;
        padding-right: 3.5rem;
    }
}

@media (min-width: 1024px) {
    .container {
        max-width: 1024px;
        padding-left: 4.5rem;
        padding-right: 4.5rem;
    }
}

@media (min-width: 1280px) {
    .container {
        max-width: 1200px;
        padding-left: 5rem;
        padding-right: 5rem;
    }
}

@media (min-width: 1536px) {
    .container {
        max-width: 1280px;
        padding-left: 6rem;
        padding-right: 6rem;
    }
}

.btn-primary {
    @apply bg-gradient-to-r from-emerald-600 to-teal-600 text-white px-8 py-3 rounded-lg font-semibold hover:shadow-lg transform hover:-translate-y-0.5 transition-all duration-200 inline-block;
}

.btn-secondary {
    @apply bg-white text-emerald-600 px-8 py-3 rounded-lg font-semibold hover:shadow-lg transform hover:-translate-y-0.5 transition-all duration-200 inline-block border-2 border-white;
}

.btn-outline {
    @apply border-2 border-emerald-600 text-emerald-600 px-6 py-2 rounded-lg font-semibold hover:bg-emerald-600 hover:text-white transition inline-block;
}

.form-input {
    @apply w-full px-4 py-3 border-2 border-gray-200 rounded-lg focus:outline-none focus:ring-2 focus:ring-emerald-500 focus:border-emerald-500 transition bg-white;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.form-input:hover {
    border-color: #d1d5db;
}

.form-input::placeholder {
    color: #9ca3af;
}

.form-input:focus {
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1), 0 1px 3px rgba(0, 0, 0, 0.1);
}

.form-input:disabled {
    background-color: #f3f4f6;
    cursor: not-allowed;
    opacity: 0.6;
}

.form-input:invalid:not(:placeholder-shown) {
    border-color: #d1d5db;
}

.form-input:valid:not(:placeholder-shown) {
    border-color: #d1d5db;
}

/* Compact Form Input for Hero Section */
.form-input-compact {
    width: 100% !important;
    max-width: 100%;
    padding: 0.625rem 0.75rem;
    border: 2px solid #d1d5db;
    border-radius: 0.5rem;
    background-color: #ffffff;
    font-size: 0.875rem;
    line-height: 1.5;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    min-height: 42px;
    cursor: text;
    display: block;
    box-sizing: border-box;
    margin: 0;
}

.form-input-compact:hover {
    border-color: #d1d5db;
}

.form-input-compact::placeholder {
    color: #9ca3af;
    font-size: 0.875rem;
}

.form-input-compact:focus {
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1), 0 1px 3px rgba(0, 0, 0, 0.1);
    outline: none;
}

.form-input-compact:invalid:not(:placeholder-shown) {
    border-color: #d1d5db;
}

.form-input-compact:valid:not(:placeholder-shown) {
    border-color: #d1d5db;
}

/* Ensure form inputs take full width */
.form-input-compact,
input[type="text"].form-input-compact,
input[type="number"].form-input-compact,
input[type="tel"].form-input-compact,
input.form-input-compact {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    display: block !important;
}

/* Grid columns full width */
.grid.grid-cols-2 > div {
    width: 100%;
}

.grid.grid-cols-2 > div input {
    width: 100% !important;
}

.stat-card {
    @apply p-4;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.stat-card.animate-in {
    opacity: 1;
    transform: translateY(0);
}

.stat-card:nth-child(1) {
    transition-delay: 0.1s;
}

.stat-card:nth-child(2) {
    transition-delay: 0.2s;
}

.stat-card:nth-child(3) {
    transition-delay: 0.3s;
}

.stat-card:nth-child(4) {
    transition-delay: 0.4s;
}

.stat-number {
    transition: all 0.3s ease;
}

/* Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Details/Summary styling */
details summary {
    list-style: none;
}

details summary::-webkit-details-marker {
    display: none;
}

details summary::after {
    content: '+';
    float: right;
    font-size: 1.5rem;
    font-weight: bold;
    transition: transform 0.3s;
}

details[open] summary::after {
    transform: rotate(45deg);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #10b981;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #059669;
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    bottom: 100px;
    right: 20px;
    background: #25D366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
}

.whatsapp-float:hover {
    background: #128C7E;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
}

@keyframes pulse {
    0% {
        box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    }
    50% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.7);
    }
    100% {
        box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    }
}

/* Hero Animations */
@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.hero-animate-1 {
    animation: fadeInLeft 1s ease-out;
}

.hero-animate-2 {
    animation: fadeInRight 1s ease-out 0.2s;
    animation-fill-mode: both;
}

.hero-animate-3 {
    animation: scaleIn 0.8s ease-out 0.4s;
    animation-fill-mode: both;
}

/* Improved Spacing with Balanced Layout */
.section-padding {
    padding: 3rem 0;
}

@media (min-width: 768px) {
    .section-padding {
        padding: 5rem 0;
    }
}

@media (min-width: 1024px) {
    .section-padding {
        padding: 6rem 0;
    }
}

/* Content Max Width for Better Readability */
.content-wrapper {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 2rem;
    padding-right: 2rem;
}

@media (min-width: 768px) {
    .content-wrapper {
        padding-left: 4rem;
        padding-right: 4rem;
    }
}

@media (min-width: 1024px) {
    .content-wrapper {
        padding-left: 5rem;
        padding-right: 5rem;
    }
}

/* Balanced Grid Spacing */
.grid {
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .grid {
        gap: 2.5rem;
    }
}

@media (min-width: 1024px) {
    .grid {
        gap: 3rem;
    }
}

/* Enhanced Cards */
.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

/* Back to Top Button Enhancement */
#scrollToTop {
    transition: all 0.3s ease;
}

#scrollToTop:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(16, 185, 129, 0.4);
}

/* Blob Animation for Hero */
@keyframes blob {
    0% {
        transform: translate(0px, 0px) scale(1);
    }
    33% {
        transform: translate(30px, -50px) scale(1.1);
    }
    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }
    100% {
        transform: translate(0px, 0px) scale(1);
    }
}

.animate-blob {
    animation: blob 7s infinite;
}

.animation-delay-2000 {
    animation-delay: 2s;
}

.animation-delay-4000 {
    animation-delay: 4s;
}

/* Floating Animation */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

.float-animation {
    animation: float 3s ease-in-out infinite;
}

/* Gradient Animation */
@keyframes gradient {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.gradient-animate {
    background-size: 200% 200%;
    animation: gradient 15s ease infinite;
}

/* Hover Effects */
.hover-lift {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-lift:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

/* Focus Visible for Accessibility */
*:focus-visible {
    outline: 2px solid #10b981;
    outline-offset: 2px;
}

/* Smooth Transitions */
a, button, input, textarea {
    transition: all 0.2s ease;
}

/* Loading Skeleton */
@keyframes shimmer {
    0% {
        background-position: -468px 0;
    }
    100% {
        background-position: 468px 0;
    }
}

/* Image Optimization */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Stats Counter Animation */
@keyframes countUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stat-animate {
    animation: countUp 0.6s ease-out;
}

/* Trust Badge Glow */
@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 5px rgba(16, 185, 129, 0.2);
    }
    50% {
        box-shadow: 0 0 20px rgba(16, 185, 129, 0.4);
    }
}

.trust-badge {
    animation: glow 2s ease-in-out infinite;
}

/* CTA Button Enhancement */
.cta-primary {
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.cta-primary::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;
    z-index: -1;
}

.cta-primary:hover::before {
    left: 100%;
}

/* Testimonial Card */
.testimonial-card {
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.02);
}

/* Mobile Optimization */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.75rem;
    }
    
    .section-padding {
        padding: 3rem 0;
    }
}

/* Logo Scrolling Animation */
.logo-scroll-container {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 1.5rem 0;
    background: transparent;
}

/* Force animation to start */
.logo-scroll-track {
    animation: scroll-left 150s linear infinite !important;
}

/* Ensure smooth continuous animation */
.logo-scroll-container::before,
.logo-scroll-container::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100px;
    z-index: 2;
    pointer-events: none;
}

.logo-scroll-container::before {
    left: 0;
    background: linear-gradient(to right, rgba(249, 250, 251, 1), transparent);
}

.logo-scroll-container::after {
    right: 0;
    background: linear-gradient(to left, rgba(249, 250, 251, 1), transparent);
}

.logo-scroll-track {
    display: flex;
    gap: 1.5rem;
    animation: scroll-left 150s linear infinite;
    width: fit-content;
    will-change: transform;
    animation-fill-mode: both;
}

.logo-scroll-track:hover {
    animation-play-state: paused;
}

/* Smooth continuous scroll - seamless loop */
@keyframes scroll-left {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(calc(-50% - 0.75rem));
    }
}

.logo-item {
    flex-shrink: 0;
    width: 280px;
    height: 170px;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: none;
    opacity: 1;
    transition: all 0.3s ease;
    padding: 1.5rem;
}

.logo-item:hover {
    transform: scale(1.1);
    opacity: 0.9;
}

.logo-item img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    filter: none;
}


/* Mobile responsive for logo scroll */
@media (max-width: 768px) {
    .logo-scroll-track {
        gap: 1.25rem;
        animation: scroll-left 120s linear infinite;
    }
    
    .logo-item {
        width: 180px;
        height: 110px;
        padding: 1rem;
    }
}

/* Grid Pattern Background */
.bg-grid-pattern {
    background-image: 
        linear-gradient(to right, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
}

/* Gradient Text Animation */
@keyframes gradient-shift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.animate-gradient {
    background-size: 200% auto;
    animation: gradient-shift 3s ease infinite;
}

/* Ping Animation Enhancement */
@keyframes ping {
    75%, 100% {
        transform: scale(2);
        opacity: 0;
    }
}

.animate-ping {
    animation: ping 1s cubic-bezier(0, 0, 0.2, 1) infinite;
}

/* Hero Section Background */
.hero-section {
    position: relative;
    padding-top: 1rem;
}

@media (min-width: 768px) {
    .hero-section {
        padding-top: 1.5rem;
    }
}

/* Hero Background Image Positioning - Right Side Focus */
.hero-section img {
    object-position: right center;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-section .object-right-center {
    object-position: right center !important;
}

@media (max-width: 768px) {
    .hero-section img {
        object-position: right center;
    }
}

@media (max-width: 640px) {
    .hero-section img {
        object-position: right center;
    }
}

/* Dropdown Menu Smooth Animation */
.group {
    position: relative;
}

.group > a + div {
    opacity: 0;
    visibility: hidden;
    transform: translateY(-5px);
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
    pointer-events: none;
}

.group:hover > a + div,
.group:focus-within > a + div {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

/* Keep dropdown visible when hovering dropdown itself */
.group > a + div:hover {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

/* Dropdown Menu Styling */
.group > a + div a {
    position: relative;
    overflow: hidden;
}

.group > a + div a::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #10b981, #14b8a6);
    transition: width 0.3s ease;
}

.group > a + div a:hover::before {
    width: 100%;
}

/* Bridge gap between parent and dropdown */
.group > a + div::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 0;
    right: 0;
    height: 10px;
    background: transparent;
}

/* Ensure dropdown stays visible */
.group:hover > a + div,
.group > a + div:hover {
    display: block !important;
}

/* Mobile Menu Smooth Slide */
#mobileMenu {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#mobileMenuOverlay {
    transition: opacity 0.3s ease;
}

/* Page Content Structure */
.page-content {
    min-height: 60vh;
}

/* Section Headers */
.section-header {
    margin-bottom: 3rem;
    text-align: center;
}

.section-header h2 {
    font-size: 2.25rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .section-header h2 {
        font-size: 2.5rem;
    }
}

.section-header p {
    font-size: 1.125rem;
    color: #6b7280;
    max-width: 42rem;
    margin: 0 auto;
}

/* Card Grid Consistency */
.service-card-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .service-card-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .service-card-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Content Spacing */
.content-section {
    padding: 4rem 0;
}

@media (min-width: 768px) {
    .content-section {
        padding: 5rem 0;
    }
}

@media (min-width: 1024px) {
    .content-section {
        padding: 6rem 0;
    }
}

/* FAQ Styling */
.faq-item {
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    background: white;
    border-radius: 0.75rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Process Steps */
.process-step {
    position: relative;
    padding: 2rem;
    background: white;
    border-radius: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.process-step:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

/* Hero CTA Buttons */
.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    font-weight: 600;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.hero-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* Reduced Motion for Accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

