:root {
    --bg-page: #F8FAFC;
    --bg-card: #FFFFFF;
    --text-dark: #0F172A;
    --text-medium: #475569;
    --text-light: #94A3B8;
    --accent: #2563EB;
    --accent-dark: #1D4ED8;
    --accent-light: #DBEAFE;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-page);
    color: var(--text-dark);
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
}

.font-inter {
    font-family: 'Inter', sans-serif;
}

.card {
    background: var(--bg-card);
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08), 0 4px 10px rgba(0, 0, 0, 0.04);
    transform: translateY(-2px);
}

.form-container {
    position: relative;
}

.form-card {
    background: var(--bg-card);
    border-radius: 16px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05), 0 2px 4px rgba(0, 0, 0, 0.03);
    border: 1px solid #E2E8F0;
    position: relative;
    overflow: hidden;
}

.form-input {
    background: var(--bg-page);
    border: 1px solid #E2E8F0;
    transition: all 0.3s ease;
}

.form-input:focus {
    background: #FFFFFF;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-light);
}

.form-input:hover {
    border-color: #CBD5E1;
}

select.form-input {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%236b7280'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 20px;
}

select.form-input option {
    background: #FFFFFF;
    color: var(--text-dark);
}

.blog-card {
    background: var(--bg-card);
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.blog-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent-light);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.category-btn {
    cursor: pointer;
    transition: all 0.3s ease;
}

.category-btn.active,
.category-btn:hover {
    background: var(--accent-light) !important;
    color: var(--accent) !important;
    border-color: var(--accent) !important;
}

.faq-item button svg {
    transition: transform 0.3s ease;
}

.faq-item button:hover svg {
    color: var(--accent);
}

.faq-item button + div:not(.hidden) svg {
    transform: rotate(180deg);
}

.bg-clip-text {
    -webkit-background-clip: text;
    background-clip: text;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

@keyframes pulse-glow {
    0%, 100% { 
        box-shadow: 0 0 20px rgba(37, 99, 235, 0.2);
    }
    50% { 
        box-shadow: 0 0 40px rgba(37, 99, 235, 0.4);
    }
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

.animate-pulse-glow {
    animation: pulse-glow 2s ease-in-out infinite;
}

.gsap-reveal {
    opacity: 0;
    transform: translateY(40px);
}

.gsap-reveal-left {
    opacity: 0;
    transform: translateX(-60px);
}

.gsap-reveal-right {
    opacity: 0;
    transform: translateX(60px);
}

.gsap-scale {
    opacity: 0;
    transform: scale(0.8);
}

.hero-title span {
    display: inline-block;
    opacity: 0;
    transform: translateY(40px);
}

button, 
a[class*="px-"][class*="py-"] {
    position: relative;
    overflow: hidden;
}

input:focus, 
textarea:focus, 
select:focus {
    outline: none;
}

html.lenis {
    height: auto;
}

.lenis.lenis-smooth {
    scroll-behavior: auto;
}

.lenis.lenis-smooth [data-lenis-prevent] {
    overscroll-behavior: contain;
}

.lenis.lenis-stopped {
    overflow: hidden;
}

.page-loader {
    position: fixed;
    inset: 0;
    background: var(--bg-page);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loader-ring {
    width: 60px;
    height: 60px;
    border: 3px solid transparent;
    border-top-color: var(--accent);
    border-right-color: #2563EB;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), #2563EB, #8B5CF6);
    z-index: 1000;
    transform-origin: left;
    transform: scaleX(0);
}

.noise-overlay {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9998;
    opacity: 0.02;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

.grid-pattern {
    background-image: 
        linear-gradient(rgba(0, 0, 0, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 0, 0, 0.02) 1px, transparent 1px);
    background-size: 60px 60px;
}

.dots-pattern {
    background-image: radial-gradient(rgba(0, 0, 0, 0.1) 1px, transparent 1px);
    background-size: 20px 20px;
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.5rem;
        line-height: 1.2;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .form-card {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 2rem;
    }
    
    .blog-card {
        padding: 1rem;
    }
}

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

@media print {
    body {
        background: white;
        color: black;
    }
    
    nav, 
    footer, 
    .no-print {
        display: none;
    }
}

::selection {
    background: rgba(37, 99, 235, 0.2);
    color: var(--text-dark);
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-page);
}

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

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

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

img {
    max-width: 100%;
    height: auto;
}

input:invalid:not(:placeholder-shown),
textarea:invalid:not(:placeholder-shown) {
    border-color: rgba(239, 68, 68, 0.5);
}

::placeholder {
    color: #94A3B8;
    transition: color 0.3s ease;
}

:focus::placeholder {
    color: #CBD5E1;
}

@media (max-width: 767px) {
    #burger-btn {
        display: flex;
        z-index: 50;
        width: 48px;
        height: 48px;
        align-items: center;
        justify-content: center;
    }

    #mobile-menu {
        padding-top: 6rem;
        animation: slideIn 0.3s ease-out;
    }

    @keyframes slideIn {
        from {
            opacity: 0;
            transform: translateX(100%);
        }
        to {
            opacity: 1;
            transform: translateX(0);
        }
    }

    #mobile-menu .flex.flex-col {
        animation: fadeInUp 0.4s ease-out 0.1s both;
    }

    @keyframes fadeInUp {
        from {
            opacity: 0;
            transform: translateY(20px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    #mobile-menu a {
        font-size: 1.25rem;
        padding: 0.75rem 0;
        min-height: 48px;
        display: flex;
        align-items: center;
        transition: all 0.2s ease;
    }

    #mobile-menu a:hover {
        color: var(--accent);
        padding-left: 0.5rem;
    }

    .faq-item button {
        min-height: 48px;
        padding: 1rem;
    }

    button[type="submit"],
    .form-container button,
    [class*="bg-gradient-to-r"][class*="rounded-xl"] button {
        min-height: 48px;
    }

    a[class*="px-"],
    a[class*="py-"] {
        min-height: 48px;
        display: inline-flex;
        align-items: center;
    }
}

@media (min-width: 768px) {
    #burger-btn {
        display: none;
    }

    #mobile-menu {
        display: none !important;
    }
}