/* Custom styles for Grym Industry Automotive */

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

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

.geo-circle-1 {
    width: 600px;
    height: 600px;
    border-radius: 50%;
    border: 3px solid #d4a017;
    top: -200px;
    right: -200px;
    animation: float 20s ease-in-out infinite;
}

.geo-circle-2 {
    width: 400px;
    height: 400px;
    border-radius: 50%;
    border: 3px solid #d4a017;
    bottom: 10%;
    left: -100px;
    animation: float 15s ease-in-out infinite reverse;
}

.geo-triangle {
    width: 0;
    height: 0;
    border-left: 100px solid transparent;
    border-right: 100px solid transparent;
    border-bottom: 173px solid #d4a017;
    top: 40%;
    right: 5%;
    animation: rotate 25s linear infinite;
}

.geo-diamond {
    width: 120px;
    height: 120px;
    background: #d4a017;
    transform: rotate(45deg);
    top: 60%;
    left: 3%;
    animation: float 18s ease-in-out infinite;
}

.geo-rect-1 {
    width: 300px;
    height: 300px;
    background: #d4a017;
    top: 10%;
    right: -50px;
    transform: rotate(15deg);
    animation: rotate 30s linear infinite;
}

.geo-circle-3 {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    border: 3px solid #d4a017;
    bottom: 10%;
    left: 10%;
    animation: float 12s ease-in-out infinite reverse;
}

/* Animations */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-30px);
    }
}

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

/* Scroll reveal animations */
.scroll-reveal {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Mobile menu */
.mobile-link {
    opacity: 1;
}

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

::-webkit-scrollbar-track {
    background: #0a1628;
}

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

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

/* Selection color */
::selection {
    background: #d4a017;
    color: #0a1628;
}

/* Mobile menu animations */
#mobileMenu {
    transition: transform 0.3s ease;
}

#mobileMenu.open {
    transform: translateX(0);
}

#mobileMenu.closed {
    transform: translateX(100%);
}

/* Menu button animations */
.menu-line {
    transition: all 0.3s ease;
}

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

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

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

/* Navbar scroll effect */
#navbar.scrolled {
    background: rgba(10, 22, 40, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

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

/* Reduced motion preference */
@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;
    }
}

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