/* Custom styles for Amerimex website */

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

/* Base styles */
body {
    font-family: 'Montserrat', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-weight: 600;
    line-height: 1.2;
}

/* Animation keyframes */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Reveal on scroll - progressive enhancement */
@media (prefers-reduced-motion: no-preference) {
    .reveal-on-scroll {
        opacity: 1;
        transform: translateY(0);
        transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    }
}

/* Hide initially for JS-enhanced animations */
.js .reveal-on-scroll {
    opacity: 0;
    transform: translateY(20px);
}

/* Magnetic button effect */
.magnetic-btn {
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.magnetic-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: left 0.5s ease;
}

.magnetic-btn:hover::before {
    left: 100%;
}

/* Decorative line animation */
.deco-line {
    width: 0;
    height: 2px;
    background: linear-gradient(
        90deg,
        #38A169,
        transparent
    );
    transition: width 1s ease-out;
}

.deco-line.animated {
    width: 120px;
}

/* Service card hover effect */
.service-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px -12px rgba(10, 25, 49, 0.15);
}

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

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

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

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

/* Mobile menu */
.mobile-menu {
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
}

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

/* Form focus states */
input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: #38A169;
    box-shadow: 0 0 0 3px rgba(56, 161, 105, 0.1);
}

/* Image hover zoom */
img {
    transition: transform 0.3s ease;
}

/* Hero asymmetric layout */
.hero-asymmetric {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
}

@media (max-width: 1023px) {
    .hero-asymmetric {
        grid-template-columns: 1fr;
        min-height: auto;
    }
}

/* Responsive adjustments */
@media (max-width: 767px) {
    .font-serif {
        font-size: 2.5rem;
    }
}

/* Print styles */
@media print {
    nav,
    .magnetic-btn,
    #contact-form {
        display: none;
    }
}
