/* Custom styles for Geovitics website */

/* Font setup */
.font-inter {
    font-family: 'Inter', sans-serif;
}

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

/* Custom animations for hero background */
.hero-bg {
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

/* Custom hover effects */
.hover-scale:hover {
    transform: scale(1.05);
}

/* Form focus styles */
input:focus,
textarea:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Button hover effects */
button:hover {
    transform: translateY(-1px);
}

/* Card hover effects */
.card-hover:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

/* Animation for scrolling marquee (if needed later) */
@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.animate-scroll {
    animation: scroll 30s linear infinite;
}

/* Mobile menu animations */
.mobile-menu-enter {
    opacity: 0;
    transform: translateY(-10px);
}

.mobile-menu-enter-active {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Loading state */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Success message styling */
.success-message {
    background-color: #10b981;
    color: white;
    padding: 1rem;
    border-radius: 0.5rem;
    margin-top: 1rem;
}

.error-message {
    background-color: #ef4444;
    color: white;
    padding: 1rem;
    border-radius: 0.5rem;
    margin-top: 1rem;
}

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

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

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

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Print styles */
@media print {
    .no-print {
        display: none;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
    }
    
    h1, h2, h3 {
        page-break-after: avoid;
    }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* Focus visible for better accessibility */
*:focus-visible {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .text-gray-600 {
        color: #000000;
    }
    
    .text-gray-400 {
        color: #333333;
    }
}

        /* CSS Variables for Color System */
        :root {
            --background: hsl(0, 0%, 98%);
            --foreground: hsl(220, 25%, 15%);
            --border: hsl(220, 13%, 91%);
            --card: hsl(0, 0%, 96%);
            --card-foreground: hsl(220, 25%, 15%);
            --primary: hsl(220, 85%, 25%);
            --primary-foreground: hsl(0, 0%, 98%);
            --secondary: hsl(220, 13%, 88%);
            --secondary-foreground: hsl(220, 25%, 15%);
            --muted: hsl(220, 15%, 89%);
            --muted-foreground: hsl(220, 15%, 45%);
            --accent: hsl(220, 20%, 87%);
            --accent-foreground: hsl(220, 25%, 15%);
            --destructive: hsl(0, 72%, 51%);
            --destructive-foreground: hsl(0, 0%, 98%);
            --elevate-1: rgba(0,0,0, .03);
            --elevate-2: rgba(0,0,0, .08);
            --radius: 0.5rem;
        }

        /* Reset and Base Styles */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            border-color: var(--border);
        }

        body {
            font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
            background-color: var(--background);
            color: var(--foreground);
            line-height: 1.5;
            -webkit-font-smoothing: antialiased;
        }

        /* Utility Classes */
        .container { max-width: 1280px; margin: 0 auto; padding: 0 1rem; }
        .flex { display: flex; }
        .grid { display: grid; }
        .hidden { display: none; }
        .block { display: block; }
        .inline-flex { display: inline-flex; }
        .relative { position: relative; }
        .absolute { position: absolute; }
        .sticky { position: sticky; }
        .fixed { position: fixed; }
        .inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
        .top-0 { top: 0; }
        .z-10 { z-index: 10; }
        .z-50 { z-index: 50; }

        /* Layout */
        .items-center { align-items: center; }
        .items-start { align-items: flex-start; }
        .justify-center { justify-content: center; }
        .justify-between { justify-content: space-between; }
        .justify-start { justify-content: flex-start; }
        .flex-col { flex-direction: column; }
        .flex-wrap { flex-wrap: wrap; }
        .gap-1 { gap: 0.25rem; }
        .gap-2 { gap: 0.5rem; }
        .gap-3 { gap: 0.75rem; }
        .gap-4 { gap: 1rem; }
        .gap-6 { gap: 1.5rem; }
        .gap-8 { gap: 2rem; }
        .gap-12 { gap: 3rem; }
        .gap-16 { gap: 4rem; }

        /* Grid */
        .grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
        .grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
        .grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
        .grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

        /* Spacing */
        .p-2 { padding: 0.5rem; }
        .p-3 { padding: 0.75rem; }
        .p-4 { padding: 1rem; }
        .p-6 { padding: 1.5rem; }
        .px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
        .px-4 { padding-left: 1rem; padding-right: 1rem; }
        .px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
        .px-8 { padding-left: 2rem; padding-right: 2rem; }
        .py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
        .py-4 { padding-top: 1rem; padding-bottom: 1rem; }
        .py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
        .py-12 { padding-top: 3rem; padding-bottom: 3rem; }
        .py-16 { padding-top: 4rem; padding-bottom: 4rem; }
        .py-24 { padding-top: 6rem; padding-bottom: 6rem; }
        .pt-6 { padding-top: 1.5rem; }
        .pb-2 { padding-bottom: 0.5rem; }
        .pl-4 { padding-left: 1rem; }
        .pr-3 { padding-right: 0.75rem; }

        .m-4 { margin: 1rem; }
        .mx-auto { margin-left: auto; margin-right: auto; margin-top: auto; }
        .mb-2 { margin-bottom: 0.5rem; }
        .mb-3 { margin-bottom: 0.75rem; }
        .mb-4 { margin-bottom: 1rem; }
        .mb-6 { margin-bottom: 1.5rem; }
        .mb-8 { margin-bottom: 2rem; }
        .mb-12 { margin-bottom: 3rem; }
        .mb-16 { margin-bottom: 4rem; }
        .ml-2 { margin-left: 0.5rem; }
        .ml-4 { margin-left: 1rem; }
        .mr-3 { margin-right: 0.75rem; }
        .mt-4 { margin-top: 1rem; }

        /* Sizing */
        .h-4 { height: 1rem; }
        .h-5 { height: 1.25rem; }
        .h-6 { height: 1.5rem; }
        .h-8 { height: 2rem; }
        .h-9 { height: 2.25rem; }
        .h-12 { height: 3rem; }
        .h-14 { height: 3.5rem; }
        .h-16 { height: 4rem; }
        .h-screen { height: 100vh; }
        .min-h-8 { min-height: 2rem; }
        .min-h-9 { min-height: 2.25rem; }
        .min-h-screen { min-height: 100vh; }

        @media (max-width: 768px) {
            .mobile-height {
                height: 165vh !important;
            }
        }

        .w-2 { width: 0.5rem; }
        .w-4 { width: 1rem; }
        .w-5 { width: 1.25rem; }
        .w-6 { width: 1.5rem; }
        .w-8 { width: 2rem; }
        .w-12 { width: 3rem; }
        .w-14 { width: 3.5rem; }
        .w-16 { width: 4rem; }
        .w-48 { width: 12rem; }
        .w-56 { width: 14rem; }
        .w-64 { width: 16rem; }
        .w-full { width: 100%; }
        .w-fit { width: fit-content; }

        .max-w-md { max-width: 28rem; }
        .max-w-2xl { max-width: 42rem; }
        .max-w-3xl { max-width: 48rem; }
        .max-w-4xl { max-width: 56rem; }
        .max-w-7xl { max-width: 80rem; }

        /* Colors */
        .bg-background { background-color: var(--background); }
        .bg-card { background-color: var(--card); }
        .bg-primary { background-color: var(--primary); }
        .bg-secondary { background-color: var(--secondary); }
        .bg-muted { background-color: var(--muted); }
        .bg-accent { background-color: var(--accent); }
        .bg-white { background-color: white; }
        .bg-black { background-color: black; }

        .text-foreground { color: var(--foreground); }
        .text-card-foreground { color: var(--card-foreground); }
        .text-primary { color: var(--primary); }
        .text-primary-foreground { color: var(--primary-foreground); }
        .text-secondary-foreground { color: var(--secondary-foreground); }
        .text-muted-foreground { color: var(--muted-foreground); }
        .text-accent-foreground { color: var(--accent-foreground); }
        .text-white { color: white; }
        .text-gray-200 { color: rgb(229, 231, 235); }
        .text-gray-300 { color: rgb(209, 213, 219); }
        .text-blue-400 { color: rgb(96, 165, 250); }
        .text-blue-600 { color: rgb(37, 99, 235); }
        .text-green-600 { color: rgb(22, 163, 74); }
        .text-purple-600 { color: rgb(147, 51, 234); }

        /* Borders */
        .border { border-width: 1px; border-style: solid; }
        .border-b { border-bottom-width: 1px; border-bottom-style: solid; }
        .border-t { border-top-width: 1px; border-top-style: solid; }
        .border-primary { border-color: var(--primary); }
        .divide-y > * + * { border-top-width: 1px; border-top-style: solid; }
        
        /* Rounded corners */
        .rounded { border-radius: 0.25rem; }
        .rounded-md { border-radius: var(--radius); }
        .rounded-lg { border-radius: 0.5rem; }
        .rounded-full { border-radius: 9999px; }

        /* Typography */
        .text-xs { 
            font-size: 0.50rem !important; 
            line-height: 0.9rem !important; 
        }
        .text-sm { 
            font-size: 0.70rem !important; 
            line-height: 1.0rem !important; 
        }
        .text-base { font-size: 1rem; line-height: 1.5rem; }
        .text-lg { font-size: 1.125rem; line-height: 1.75rem; }
        .text-xl { font-size: 1.25rem; line-height: 1.75rem; }
        .text-2xl { font-size: 1.5rem; line-height: 2rem; }
        .text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
        .text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
        .text-5xl { font-size: 3rem; line-height: 1; }
        .text-6xl { font-size: 3.75rem; line-height: 1; }
        .text-7xl { font-size: 4.5rem; line-height: 1; }

        .font-medium { font-weight: 500; }
        .font-semibold { font-weight: 600; }
        .font-bold { font-weight: 700; }

        .text-center { text-align: center; }
        .text-left { text-align: left; }

        .leading-tight { line-height: 1.25; }
        .leading-relaxed { line-height: 1.625; }

        /* Shadows and Effects */
        .shadow-sm { box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05); }
        .shadow { box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06); }
        .shadow-lg { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); }

        /* Backgrounds and Images */
        .bg-cover { background-size: cover; }
        .bg-center { background-position: center; }
        .bg-no-repeat { background-repeat: no-repeat; }
        .bg-gradient-to-r { background-image: linear-gradient(to right, var(--tw-gradient-stops)); }

        /* Overflow */
        .overflow-hidden { overflow: hidden; }
        .overflow-scroll { overflow: scroll; }

        /* Flex utilities */
        .flex-shrink-0 { flex-shrink: 0; }
        .flex-1 { flex: 1 1 0%; }

        /* Transitions */
        .transition-colors { transition: color 150ms ease-in-out, background-color 150ms ease-in-out; }
        .transition-all { transition: all 150ms ease-in-out; }
        .duration-300 { transition-duration: 300ms; }

        /* Hover Effects */
        .hover-elevate {
            position: relative;
            transition: all 0.15s ease-in-out;
        }

        .hover-elevate::after {
            content: "";
            pointer-events: none;
            position: absolute;
            inset: 0;
            border-radius: inherit;
            background-color: transparent;
            transition: background-color 0.15s ease-in-out;
            z-index: 1;
        }

        .hover-elevate:hover::after {
            background-color: var(--elevate-1);
        }

        /* Button Components */
        .btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            font-weight: 500;
            border-radius: var(--radius);
            transition: all 0.15s ease-in-out;
            border: 1px solid transparent;
            text-decoration: none;
            cursor: pointer;
            position: relative;
        }

        .btn:disabled {
            opacity: 0.5;
            cursor: not-allowed;
        }

        .btn-primary {
            background-color: var(--primary);
            color: var(--primary-foreground);
            border-color: var(--primary);
        }

        .btn-outline {
            background-color: transparent;
            border-color: var(--border);
            color: var(--foreground);
        }

        .btn-outline:hover {
            background-color: var(--accent);
            color: var(--accent-foreground);
        }

        .btn-sm {
            height: 2rem;
            padding: 0 0.75rem;
            font-size: 0.875rem;
        }

        .btn-lg {
            height: 2.75rem;
            padding: 0 2rem;
            font-size: 1.125rem;
        }

        /* Card Component */
        .card {
            background-color: var(--card);
            color: var(--card-foreground);
            border: 1px solid var(--border);
            border-radius: var(--radius);
            box-shadow: var(--shadow);
        }

        .card-header {
            padding: 1.5rem;
            padding-bottom: 0;
        }

        .card-content {
            padding: 1.5rem;
        }

        .card-title {
            font-size: 1.5rem;
            font-weight: 600;
            line-height: 1;
            margin-bottom: 0.5rem;
        }

        /* Badge Component */
        .badge {
            display: inline-flex;
            align-items: center;
            border-radius: 9999px;
            padding: 0.25rem 0.75rem;
            font-size: 0.75rem;
            font-weight: 500;
            border: 1px solid transparent;
        }

        .badge-secondary {
            background-color: var(--secondary);
            color: var(--secondary-foreground);
        }

        /* Form Elements */
        .form-control {
            width: 100%;
            padding: 0.5rem 0.75rem;
            border: 1px solid var(--border);
            border-radius: var(--radius);
            background-color: var(--background);
            color: var(--foreground);
            font-size: 0.875rem;
            transition: border-color 0.15s ease-in-out;
        }

        .form-control:focus {
            outline: none;
            border-color: var(--primary);
            box-shadow: 0 0 0 2px rgba(var(--primary), 0.1);
        }

        .form-label {
            display: block;
            font-size: 0.875rem;
            font-weight: 500;
            margin-bottom: 0.5rem;
            color: var(--foreground);
        }

        .textarea {
            resize: vertical;
            min-height: 80px;
        }

        /* Animations */
        @keyframes scroll {
            0% { transform: translateX(0); }
            100% { transform: translateX(-50%); } /* Correct if content is duplicated */
        }

        @keyframes scroll-reverse {
            0% { transform: translateX(-50%); }
            100% { transform: translateX(0); }
        }

        @keyframes scroll-slow {
            0% { transform: translateX(0); }
            100% { transform: translateX(-50%); } /* Also correct if content is duplicated */
        }

        .animate-scroll {
            animation: scroll 30s linear infinite;
        }

        .animate-scroll-reverse {
            animation: scroll-reverse 30s linear infinite;
        }

        .animate-scroll-slow {
            animation: scroll-slow 30s linear infinite;
        }

        /* Mobile Menu */
        .mobile-menu {
            position: absolute;
            top: 100%;
            left: 0;
            right: 0;
            background-color: var(--background);
            border-top: 1px solid var(--border);
            padding: 1rem 0;
        }

        /* Responsive Design */
        @media (min-width: 768px) {
            .md\\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
            .md\\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
            .md\\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
            .md\\:flex { display: flex; }
            .md\\:hidden { display: none; }
            .md\\:text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
            .md\\:text-6xl { font-size: 3.75rem; line-height: 1; }
            .md\\:text-2xl { font-size: 1.5rem; line-height: 2rem; }
        }

        @media (min-width: 1024px) {
            .lg\\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
            .lg\\:grid-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
            .lg\\:col-span-2 { grid-column: span 2 / span 2; }
            .lg\\:px-8 { padding-left: 2rem; padding-right: 2rem; }
            .lg\\:text-5xl { font-size: 3rem; line-height: 1; }
            .lg\\:text-7xl { font-size: 4.5rem; line-height: 1; }
            .lg\\:w-80 { width: 20rem; }
            .lg\\:w-auto { width: auto; }
        }

        @media (max-width: 767px) {
            .sm\\:px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
            .sm\\:flex-row { flex-direction: row; }
            .sm\\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
        }

        /* Specific Styles */
        .hero-bg {
            background-image: url('hero-bg.png');
            background-size: cover;
            background-position: center;
            background-repeat: no-repeat;
        }

        .hero-overlay {
            background: linear-gradient(to right, rgba(0,0,0,0.7), rgba(0,0,0,0.5));
        }

        .space-y-2 > * + * { margin-top: 0.5rem; }
        .space-y-4 > * + * { margin-top: 1rem; }
        .space-y-6 > * + * { margin-top: 1.5rem; }
        .space-y-8 > * + * { margin-top: 2rem; }

        /* Custom background colors with transparency */
        .bg-muted-50 { background-color: hsl(220, 15%, 89%, 0.5); }
        .bg-muted-30 { background-color: hsl(220, 15%, 89%, 0.3); }
        .bg-primary-5 { background-color: hsl(220, 85%, 25%, 0.05); }
        .bg-primary-10 { background-color: hsl(220, 85%, 25%, 0.1); }
        .bg-primary-90 { background-color: hsl(220, 85%, 25%, 0.9); }
        .bg-secondary-20 { background-color: hsl(220, 13%, 88%, 0.2); }
        .bg-accent-10 { background-color: hsl(220, 20%, 87%, 0.1); }
        .bg-accent-20 { background-color: hsl(220, 20%, 87%, 0.2); }
        .bg-white-10 { background-color: rgba(255, 255, 255, 0.1); }
        .bg-white-20 { background-color: rgba(255, 255, 255, 0.2); }

        .border-primary-20 { border-color: hsl(220, 85%, 25%, 0.2); }
        .border-white-30 { border-color: rgba(255, 255, 255, 0.3); }

        .backdrop-blur-sm { backdrop-filter: blur(4px); }

        /* Icon alignment fix */
        .icon {
            vertical-align: middle;
        }