/* Custom Styles for B & G Automotive */

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

/* Geometric Background Shapes */
.geo-shape {
    position: absolute;
    pointer-events: none;
    opacity: 0.06;
}

.geo-circle-1 {
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: linear-gradient(135deg, #F59E0B, #D97706);
    top: -200px;
    right: -200px;
    animation: pulseSoft 8s ease-in-out infinite;
}

.geo-circle-2 {
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: linear-gradient(135deg, #704D84, #4E335D);
    bottom: 10%;
    left: -100px;
    animation: pulseSoft 10s ease-in-out 2s infinite;
}

.geo-triangle-1 {
    width: 0;
    height: 0;
    border-left: 150px solid transparent;
    border-right: 150px solid transparent;
    border-bottom: 260px solid #F59E0B;
    top: 40%;
    right: 5%;
    opacity: 0.04;
    animation: float 12s ease-in-out infinite;
    transform-origin: center;
}

.geo-square-1 {
    width: 200px;
    height: 200px;
    background: #F59E0B;
    top: 60%;
    left: 8%;
    opacity: 0.04;
    transform: rotate(45deg);
    animation: float 14s ease-in-out 1s infinite;
}

.geo-diamond-1 {
    width: 120px;
    height: 120px;
    background: #704D84;
    top: 20%;
    left: 15%;
    opacity: 0.05;
    transform: rotate(45deg);
    animation: float 10s ease-in-out 3s infinite;
}

.geo-arc-1 {
    width: 300px;
    height: 150px;
    border: 4px solid #F59E0B;
    border-radius: 150px 150px 0 0;
    bottom: 20%;
    right: 10%;
    opacity: 0.04;
    animation: pulseSoft 12s ease-in-out 1s infinite;
}

/* Service Cards */
.service-card {
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(245, 158, 11, 0.03) 100%);
    opacity: 0;
    transition: opacity 0.5s ease;
    border-radius: 1.5rem;
}

.service-card:hover::before {
    opacity: 1;
}

/* Feature Cards */
.feature-card {
    perspective: 1000px;
}

/* Reveal Animations */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Navbar Scroll Effect */
.nav-scrolled {
    background: rgba(45, 27, 54, 0.95) !important;
    backdrop-filter: blur(20px) !important;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav-scrolled .nav-link {
    color: rgba(183, 179, 196, 0.8) !important;
}

/* Mobile Menu */
.mobile-menu-link {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.mobile-menu.open .mobile-menu-link {
    opacity: 1;
    transform: translateY(0);
}

.mobile-menu.open .mobile-menu-link:nth-child(1) { transition-delay: 0.1s; }
.mobile-menu.open .mobile-menu-link:nth-child(2) { transition-delay: 0.2s; }
.mobile-menu.open .mobile-menu-link:nth-child(3) { transition-delay: 0.3s; }
.mobile-menu.open .mobile-menu-link:nth-child(4) { transition-delay: 0.4s; }

/* Menu Lines Animation */
.menu-open .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-open .menu-line:nth-child(2) {
    opacity: 0;
}

.menu-open .menu-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
    width: 6px;
}

/* Floating animation for hero cards */
@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(2deg); }
}

@keyframes float-delayed {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(-2deg); }
}

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

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

::-webkit-scrollbar-track {
    background: #2D1B36;
}

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

::-webkit-scrollbar-thumb:hover {
    background: #5F4070;
}

/* Selection color */
::selection {
    background: rgba(245, 158, 11, 0.3);
    color: #F5F4F8;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .geo-circle-1 {
        width: 300px;
        height: 300px;
    }
    
    .geo-circle-2 {
        width: 200px;
        height: 200px;
    }
    
    .geo-triangle-1 {
        border-left-width: 80px;
        border-right-width: 80px;
        border-bottom-width: 140px;
    }
    
    .geo-square-1 {
        width: 100px;
        height: 100px;
    }
    
    .geo-diamond-1 {
        width: 60px;
        height: 60px;
    }
    
    .geo-arc-1 {
        width: 150px;
        height: 75px;
    }
}
