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

:root {
    --primary: #6366F1;
    --primary-dark: #4F46E5;
    --secondary: #8B5CF6;
    --text-primary: #111827;
    --text-secondary: #4B5563;
    --text-tertiary: #9CA3AF;
    --background: #F9FAFB;
    --card-background: #FFFFFF;
    --border: #E5E7EB;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.5;
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography refinements */
h1, h2, h3, h4, h5, h6 {
    line-height: 1.2;
    letter-spacing: -0.025em;
}

/* Smooth transitions */
a, button {
    transition: all 0.2s ease-in-out;
}

/* Add subtle hover effects to cards */
.hover\:shadow-md {
    transition: box-shadow 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.hover\:shadow-md:hover {
    transform: translateY(-2px);
}

/* Custom animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

/* Hero background adjustments */
.hero-background {
    width: 100%;
    height: auto;
    opacity: 0.7;
}

/* Font for monospace text */
.font-geist-mono {
    font-family: 'SF Mono', SFMono-Regular, ui-monospace, 'Liberation Mono', Menlo, Courier, monospace;
}

/* Utility classes */
.text-gradient {
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    background-image: linear-gradient(to right, var(--primary), var(--secondary));
}

/* Form elements refinements */
input, textarea {
    font-family: 'Inter', sans-serif;
}

input:focus, textarea:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.2);
    border-color: var(--primary);
}

/* Button styling refinements */
button, .button {
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

/* Mobile menu toggle animation */
#menu-toggle {
    cursor: pointer;
    transition: transform 0.3s ease;
}

#menu-toggle:hover {
    transform: scale(1.1);
}

#mobile-menu {
    transition: all 0.3s ease-in-out;
    transform-origin: top center;
}

.menu-open #mobile-menu {
    transform: scaleY(1);
    opacity: 1;
}

.menu-closed #mobile-menu {
    transform: scaleY(0.9);
    opacity: 0;
    pointer-events: none;
}

/* Modal animations */
#success-modal {
    transition: opacity 0.3s ease-in-out;
}

#success-modal.hidden {
    opacity: 0;
    pointer-events: none;
}

#success-modal:not(.hidden) {
    opacity: 1;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

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

::-webkit-scrollbar-thumb {
    background: #c5c5c5;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Accessibility focus styles */
a:focus, button:focus, input:focus, textarea:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Firefox specific styles */
@-moz-document url-prefix() {
    .custom-scrollbar {
        scrollbar-width: thin;
        scrollbar-color: #c5c5c5 #f1f1f1;
    }
}

/* Disable selection on buttons for better UX */
button, .button {
    user-select: none;
}

/* Responsive font sizing */
@media (max-width: 640px) {
    h1 {
        font-size: 2rem;
    }
    h2 {
        font-size: 1.75rem;
    }
    h3 {
        font-size: 1.25rem;
    }
}
