/* Coming Soon Button */
.coming-soon-button {
    font-size: 0.75rem;
    font-weight: 600;
    color: #6b7280;
    background-color: #f3f4f6;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    margin-left: 0.5rem;
    text-transform: none;
    white-space: nowrap;
    display: inline-block;
    vertical-align: middle;
    position: relative;
    top: -2px;
}

/* Gray out cards with coming soon status */
.coming-soon-card {
    cursor: not-allowed;
    pointer-events: none;
}

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* Color Variables */
:root {
    --color-primary: #00ca98;
    --color-primary-dark: #00b588;
    --color-primary-light: #33d4ac;
    --color-secondary: #fbc902;
    --color-secondary-dark: #e0b502;
    --color-secondary-light: #fcd434;
}

/* Secondary Color Utility Classes (Tailwind fallback) */
.bg-secondary {
    background-color: var(--color-secondary) !important;
}
.bg-secondary-dark {
    background-color: var(--color-secondary-dark) !important;
}
.bg-secondary-light {
    background-color: var(--color-secondary-light) !important;
}
.text-secondary {
    color: var(--color-secondary) !important;
}
.text-secondary-dark {
    color: var(--color-secondary-dark) !important;
}
.text-secondary-light {
    color: var(--color-secondary-light) !important;
}
.border-secondary {
    border-color: var(--color-secondary) !important;
}
.hover\:bg-secondary:hover {
    background-color: var(--color-secondary) !important;
}
.hover\:bg-secondary-dark:hover {
    background-color: var(--color-secondary-dark) !important;
}
.hover\:text-secondary:hover {
    color: var(--color-secondary) !important;
}
.hover\:text-secondary-dark:hover {
    color: var(--color-secondary-dark) !important;
}

/* Primary Color Utility Classes (Tailwind fallback) */
.bg-primary {
    background-color: var(--color-primary) !important;
}
.bg-primary-dark {
    background-color: var(--color-primary-dark) !important;
}
.bg-primary-light {
    background-color: var(--color-primary-light) !important;
}
.text-primary {
    color: var(--color-primary) !important;
}
.text-primary-dark {
    color: var(--color-primary-dark) !important;
}
.hover\:bg-primary:hover {
    background-color: var(--color-primary) !important;
}
.hover\:bg-primary-dark:hover {
    background-color: var(--color-primary-dark) !important;
}
.hover\:text-primary:hover {
    color: var(--color-primary) !important;
}
.hover\:text-primary-dark:hover {
    color: var(--color-primary-dark) !important;
}
.border-primary {
    border-color: var(--color-primary) !important;
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.5;
    font-weight: 400;
    color: #0f172a;
    background-color: #ffffff;
    font-synthesis: none;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html {
    overflow-x: hidden;
    width: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

/* Ensure sections take full width */
section {
    width: 100%;
    max-width: 100vw;
}

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

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

::-webkit-scrollbar-thumb {
    background: var(--color-primary-light);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-primary);
}

/* Smooth scrolling - combined with overflow rules above */

/* Header Styles */
#header {
    transition: all 0.3s ease-in-out;
}

#header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

#header:not(.scrolled) {
    background: transparent;
}

#header:not(.scrolled) .header-text {
    color: var(--color-primary);
    
}

#header.scrolled .header-text {
    color: var(--color-primary);
}

#header:not(.scrolled) .nav-link {
    color: white;
}

#header.scrolled .nav-link {
    color: #374151;
}

/* Custom button styles */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    white-space: nowrap;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.2s ease-in-out;
    cursor: pointer;
    border: none;
}

.btn:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

.btn:disabled {
    pointer-events: none;
    opacity: 0.5;
}

.btn-primary {
    background: var(--color-primary);
    color: white;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    height: 2.5rem;
    padding: 0 1rem;
}

.btn-primary:hover {
    background: var(--color-primary-dark);
    box-shadow: 0 4px 14px 0 rgba(0, 202, 152, 0.39);
    transform: scale(1.05);
}

.btn-outline {
    border: 1px solid #d1d5db;
    background: white;
    color: #374151;
    height: 2.5rem;
    padding: 0 1rem;
}

.btn-outline:hover {
    background: #f3f4f6;
    color: #111827;
}

/* Hero section specific styles */
.hero-btn {
    transition: all 0.3s ease-in-out;
    transform: translateZ(0);
}

.hero-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* Hero content animations */
.hero-content {
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
    animation-delay: 0.2s;
}

.hero-content h1 {
    animation-delay: 0.4s;
}

.hero-content p {
    animation-delay: 0.6s;
}

.hero-content button {
    animation-delay: 0.8s;
}

/* Scroll indicator animation */
.scroll-indicator {
    opacity: 0;
    animation: fadeIn 1s ease-out forwards;
    animation-delay: 1s;
}

@keyframes animate-scroll {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(8px);
    }
}

.animate-scroll {
    animation: animate-scroll 1.5s ease-in-out infinite;
}

/* Card hover effects */
.card-hover {
    transition: all 0.3s ease-in-out;
}

.card-hover:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 4px 14px 0 rgba(0, 202, 152, 0.39);
}

.hover-lift {
    transition: all 0.3s ease-in-out;
}

.hover-lift:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Belief card animations */
.belief-card {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.6s ease-out forwards;
}

.belief-card:nth-child(1) { animation-delay: 0.1s; }
.belief-card:nth-child(2) { animation-delay: 0.2s; }
.belief-card:nth-child(3) { animation-delay: 0.3s; }
.belief-card:nth-child(4) { animation-delay: 0.4s; }

.belief-card:hover {
    transform: translateY(-8px) scale(1.02);
}

/* Service card styles */
.service-card {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.3s ease-out;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.service-card:hover {
    border-color: var(--color-primary);
}

/* Project card styles */
.project-card {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.3s ease-out;
}

.project-card:hover {
    transform: translateY(-5px);
}

/* Blog card styles */
.blog-card {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.3s ease-out;
}

.blog-card:hover {
    transform: translateY(-8px) scale(1.02);
}

.blog-card img {
    transition: transform 0.7s ease-out;
}

.blog-card:hover img {
    transform: scale(1.1);
}

/* Floating card animation */
.floating-card {
    opacity: 0;
    animation: floatIn 0.6s ease-out forwards;
}

@keyframes floatIn {
    0% {
        opacity: 0;
        transform: scale(0.8) rotate(-10deg);
    }
    100% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

/* Hover slide animation */
.hover-slide {
    transition: transform 0.2s ease-out;
}

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

/* Animation utilities */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in {
    opacity: 0;
    animation: fadeIn 0.6s ease-out forwards;
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    0% {
        transform: translateX(-30px);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideInRight {
    0% {
        transform: translateX(30px);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Mobile menu animations */
#mobile-menu {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    height: 100vh !important;
    height: 100dvh !important;
    width: 75% !important;
    max-width: 320px !important;
    background-color: #ffffff !important;
    z-index: 9999 !important;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15) !important;
    transform: translateX(100%);
    overflow-y: auto;
}

#mobile-menu.open {
    transform: translateX(0) !important;
}

#mobile-menu nav {
    background-color: #ffffff !important;
}

#mobile-menu-overlay {
    transition: opacity 0.3s ease-in-out;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background-color: rgba(0, 0, 0, 0.5) !important;
    z-index: 9998 !important;
    opacity: 0;
    pointer-events: none;
}

#mobile-menu-overlay.open {
    opacity: 1 !important;
    pointer-events: auto !important;
}

/* Logo animation */
.logo-container {
    transition: transform 0.2s ease-in-out;
}

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

/* Form input focus styles */
input:focus, textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(0, 202, 152, 0.1);
}

/* Popular badge pulse animation */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

.popular-badge {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

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

.skeleton {
    animation: shimmer 2s infinite linear;
    background: linear-gradient(to right, #f0f0f0 0%, #e0e0e0 50%, #f0f0f0 100%);
    background-size: 1000px 100%;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1.125rem;
    }
}

/* Solid color backgrounds */
.bg-gradient-primary {
    background: var(--color-primary);
}

.bg-gradient-hero {
    background: var(--color-primary);
}

/* Text color */
.text-gradient {
    color: var(--color-primary);
}

/* Backdrop blur utility */
.backdrop-blur {
    backdrop-filter: blur(10px);
}

/* Image overlay effects */
.image-overlay {
    position: relative;
    overflow: hidden;
}

.image-overlay::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.3), transparent);
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.image-overlay:hover::after {
    opacity: 1;
}

.disabled-menu-link .image-overlay::after {
    opacity: 0.8;
    background: rgba(0, 0, 0, 0.5);
}

/* Custom utilities */
.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Transition utilities */
.transition-all {
    transition-property: all;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

/* Shadow utilities */
.shadow-card {
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}

.shadow-primary {
    box-shadow: 0 4px 14px 0 rgba(0, 202, 152, 0.39);
}

/* Print styles */
@media print {
    .no-print {
        display: none !important;
    }
}