/* Custom styles for Justus Repair */

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

/* Geometric background shapes */
.geo-shape {
    position: absolute;
    opacity: 0.5;
    pointer-events: none;
}

.geo-circle-1 {
    top: 15%;
    left: 5%;
    width: 120px;
    height: 120px;
    border: 2px solid rgba(232, 93, 74, 0.15);
    border-radius: 50%;
    animation: float 8s ease-in-out infinite;
}

.geo-circle-2 {
    bottom: 20%;
    left: 15%;
    width: 60px;
    height: 60px;
    background: rgba(232, 93, 74, 0.08);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite reverse;
}

.geo-rect-1 {
    top: 30%;
    right: 38%;
    width: 80px;
    height: 80px;
    border: 2px solid rgba(232, 93, 74, 0.1);
    transform: rotate(45deg);
    animation: spin 20s linear infinite;
}

.geo-triangle {
    bottom: 30%;
    right: 42%;
    width: 0;
    height: 0;
    border-left: 30px solid transparent;
    border-right: 30px solid transparent;
    border-bottom: 52px solid rgba(232, 93, 74, 0.06);
    animation: float 7s ease-in-out infinite;
}

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

@keyframes spin {
    from { transform: rotate(45deg); }
    to { transform: rotate(405deg); }
}

/* Hero image animation */
.hero-image-wrapper {
    animation: slideUp 1s ease-out forwards;
    opacity: 0;
    transform: translateY(40px);
}

@keyframes slideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hero badge animation */
.hero-badge {
    animation: fadeIn 0.8s ease-out 0.2s forwards;
    opacity: 0;
}

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

/* Service cards stagger animation */
.service-card {
    opacity: 0;
    transform: translateY(30px);
}

.service-card.visible {
    animation: cardUp 0.6s ease-out forwards;
}

@keyframes cardUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* About image animation */
.about-image-wrapper {
    opacity: 0;
    transform: translateX(-30px);
}

.about-image-wrapper.visible {
    animation: slideRight 0.8s ease-out forwards;
}

@keyframes slideRight {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Mobile menu */
#mobile-menu.open {
    opacity: 1;
    pointer-events: all;
}

#mobile-menu.closed {
    opacity: 0;
    pointer-events: none;
}

/* Mobile menu lines animation */
.menu-line {
    transition: all 0.3s ease;
}

#menu-toggle.active .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

#menu-toggle.active .menu-line:nth-child(2) {
    opacity: 0;
}

#menu-toggle.active .menu-line:nth-child(3) {
    width: 24px;
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile link animation */
.mobile-link {
    opacity: 0;
    transform: translateY(20px);
}

#mobile-menu.open .mobile-link {
    animation: linkUp 0.4s ease-out forwards;
}

#mobile-menu.open .mobile-link:nth-child(1) { animation-delay: 0.1s; }
#mobile-menu.open .mobile-link:nth-child(2) { animation-delay: 0.15s; }
#mobile-menu.open .mobile-link:nth-child(3) { animation-delay: 0.2s; }
#mobile-menu.open .mobile-link:nth-child(4) { animation-delay: 0.25s; }

@keyframes linkUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Selection color */
::selection {
    background: rgba(232, 93, 74, 0.3);
    color: #fff;
}

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

::-webkit-scrollbar-track {
    background: #1A1A1A;
}

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

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

/* Focus styles */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 2px solid #E85D4A;
    outline-offset: 2px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .geo-circle-1 {
        width: 80px;
        height: 80px;
    }
    .geo-circle-2 {
        display: none;
    }
    .geo-rect-1 {
        display: none;
    }
    .geo-triangle {
        display: none;
    }
}
