/* Elarix - Modern Light Theme */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Preloader */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    overflow: hidden;
}

#preloader.hidden {
    animation: slideUp 0.8s cubic-bezier(0.77, 0, 0.175, 1) forwards;
}

@keyframes slideUp {
    to {
        transform: translateY(-100%);
    }
}

.preloader-content {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.preloader-logo {
    height: 60px;
    animation: logoFade 1.5s ease-in-out infinite;
}

@keyframes logoFade {
    0%, 100% {
        opacity: 0.4;
        transform: scale(0.95);
    }
    50% {
        opacity: 1;
        transform: scale(1);
    }
}

.preloader-slides {
    position: absolute;
    bottom: -60px;
    display: flex;
    gap: 8px;
}

.slide {
    width: 40px;
    height: 3px;
    background: #e5e7eb;
    border-radius: 2px;
    overflow: hidden;
    position: relative;
}

.slide::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: #111827;
    animation: slideAnimation 1.5s ease-in-out infinite;
}

.slide:nth-child(2)::after {
    animation-delay: 0.2s;
}

.slide:nth-child(3)::after {
    animation-delay: 0.4s;
}

@keyframes slideAnimation {
    0% {
        left: -100%;
    }
    50%, 100% {
        left: 100%;
    }
}

.font-heading {
    font-family: 'Space Grotesk', sans-serif;
    letter-spacing: -0.02em;
}

/* Mobile Menu Full Screen */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ffffff;
    z-index: 40;
    transform: translateX(100%);
    transition: transform 0.5s cubic-bezier(0.77, 0, 0.175, 1);
    overflow-y: auto;
}

.mobile-menu-overlay.active {
    transform: translateX(0);
}

.mobile-menu-content {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 6rem 2rem 2rem;
}

.mobile-menu-links {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    width: 100%;
    max-width: 400px;
}

.mobile-menu-link {
    font-size: 2.5rem;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    color: #111827;
    text-align: center;
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.3s ease;
}

.mobile-menu-overlay.active .mobile-menu-link {
    opacity: 1;
    transform: translateX(0);
}

.mobile-menu-overlay.active .mobile-menu-link:nth-child(1) {
    transition-delay: 0.1s;
}

.mobile-menu-overlay.active .mobile-menu-link:nth-child(2) {
    transition-delay: 0.2s;
}

.mobile-menu-overlay.active .mobile-menu-link:nth-child(3) {
    transition-delay: 0.3s;
}

.mobile-menu-overlay.active .mobile-menu-link:nth-child(4) {
    transition-delay: 0.4s;
}

.mobile-menu-overlay.active .mobile-menu-link:nth-child(5) {
    transition-delay: 0.5s;
}

.mobile-menu-link:hover {
    color: #6b7280;
}

.mobile-menu-footer {
    margin-top: 3rem;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease 0.6s;
}

.mobile-menu-overlay.active .mobile-menu-footer {
    opacity: 1;
    transform: translateY(0);
}

.mobile-menu-cta {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: #111827;
    color: #ffffff;
    font-weight: 600;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.mobile-menu-cta:hover {
    background: #374151;
    transform: scale(1.05);
}

/* Hide mobile menu on desktop */
@media (min-width: 768px) {
    .mobile-menu-overlay {
        display: none;
    }
}

/* Navigation */
.nav-link {
    position: relative;
    color: #6b7280;
    transition: color 0.3s ease;
    font-weight: 500;
}

.nav-link:hover,
.nav-link.active {
    color: #111827;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #111827;
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scrollReveal {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s ease-out both;
}

.scroll-reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.scroll-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Parallax Effect */
.parallax-bg {
    transition: transform 0.1s ease-out;
}

/* Hover Effects */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Form Inputs */
input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: #111827;
    box-shadow: 0 0 0 3px rgba(17, 24, 39, 0.05);
}

/* Form Messages */
.success-message {
    background-color: #d1fae5;
    color: #065f46;
    border: 1px solid #10b981;
}

.error-message {
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #ef4444;
}

/* Thank You Animation */
.thank-you-content {
    text-align: center;
    max-width: 500px;
    padding: 3rem;
    animation: fadeInScale 0.6s ease-out 0.3s both;
}

.thank-you-logo {
    height: 60px;
    margin: 0 auto 2rem;
    opacity: 0;
    animation: fadeIn 0.5s ease-out 0.5s forwards;
}

.thank-you-title {
    font-size: 3rem;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    color: #111827;
    margin-bottom: 1rem;
    opacity: 0;
    animation: fadeInUp 0.5s ease-out 0.7s forwards;
}

.thank-you-message {
    font-size: 1.25rem;
    color: #6b7280;
    margin-bottom: 2rem;
    line-height: 1.8;
    opacity: 0;
    animation: fadeInUp 0.5s ease-out 0.9s forwards;
}

.thank-you-checkmark {
    width: 80px;
    height: 80px;
    background: #10b981;
    color: white;
    font-size: 3rem;
    font-weight: bold;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    opacity: 0;
    animation: checkmarkPop 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55) 1.1s forwards;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

@keyframes checkmarkPop {
    0% {
        opacity: 0;
        transform: scale(0);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f3f4f6;
}

::-webkit-scrollbar-thumb {
    background: #111827;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #000000;
}

/* Selection color */
::selection {
    background-color: #111827;
    color: white;
}

::-moz-selection {
    background-color: #111827;
    color: white;
}

/* Focus visible for accessibility */
*:focus-visible {
    outline: 2px solid #111827;
    outline-offset: 2px;
}

/* Loading State */
.loading {
    pointer-events: none;
    opacity: 0.6;
}

/* Success/Error Messages */
.success-message {
    background-color: #10b981;
    color: white;
}

.error-message {
    background-color: #ef4444;
    color: white;
}

/* Navbar Scroll Effect */
#navbar.scrolled {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    background: rgba(255, 255, 255, 0.95);
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* Print styles */
@media print {
    nav,
    footer,
    button {
        display: none;
    }
}
