/* ===== Custom Styles for Gar-Car Automecánica ===== */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #1a1a1a;
}
::-webkit-scrollbar-thumb {
    background: #3d3d3d;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #FF6B4A;
}

/* ===== Geometric Hero Shapes ===== */
.geo-shape {
    position: absolute;
    opacity: 0.5;
    pointer-events: none;
}

.shape-circle-1 {
    width: 500px;
    height: 500px;
    border: 2px solid rgba(255, 107, 74, 0.15);
    border-radius: 50%;
    top: -100px;
    left: -150px;
    animation: floatSlow 20s ease-in-out infinite;
}

.shape-circle-2 {
    width: 300px;
    height: 300px;
    border: 2px solid rgba(255, 107, 74, 0.1);
    border-radius: 50%;
    bottom: 10%;
    right: -50px;
    animation: floatSlow 15s ease-in-out infinite reverse;
}

.shape-square-1 {
    width: 120px;
    height: 120px;
    background: rgba(255, 107, 74, 0.08);
    border-radius: 20px;
    top: 25%;
    right: 10%;
    transform: rotate(45deg);
    animation: spinSlow 25s linear infinite;
}

.shape-triangle-1 {
    width: 0;
    height: 0;
    border-left: 60px solid transparent;
    border-right: 60px solid transparent;
    border-bottom: 104px solid rgba(255, 107, 74, 0.06);
    bottom: 20%;
    left: 8%;
    animation: floatSlow 18s ease-in-out infinite;
}

.shape-ring-1 {
    width: 180px;
    height: 180px;
    border: 3px solid rgba(255, 107, 74, 0.12);
    border-radius: 50%;
    top: 40%;
    left: 5%;
    animation: spinSlow 30s linear infinite reverse;
}

.shape-dot-grid {
    width: 120px;
    height: 120px;
    top: 15%;
    right: 25%;
    background-image: radial-gradient(circle, rgba(255, 107, 74, 0.3) 1px, transparent 1px);
    background-size: 12px 12px;
    opacity: 0.6;
    animation: floatSlow 22s ease-in-out infinite;
}

/* ===== Animations ===== */
@keyframes floatSlow {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    33% { transform: translateY(-20px) rotate(2deg); }
    66% { transform: translateY(10px) rotate(-1deg); }
}

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

/* ===== Service Card Hover ===== */
.service-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

/* ===== Navbar scroll effect ===== */
.nav-scrolled {
    background: rgba(26, 26, 26, 0.95) !important;
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 107, 74, 0.1);
}

/* ===== Mobile menu animation ===== */
#mobileMenu {
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== Fade-in on scroll ===== */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Service cards stagger animation ===== */
.service-card:nth-child(1) { transition-delay: 0.05s; }
.service-card:nth-child(2) { transition-delay: 0.1s; }
.service-card:nth-child(3) { transition-delay: 0.15s; }
.service-card:nth-child(4) { transition-delay: 0.2s; }
.service-card:nth-child(5) { transition-delay: 0.25s; }
.service-card:nth-child(6) { transition-delay: 0.3s; }

/* ===== Input focus styles ===== */
input:focus, textarea:focus {
    outline: none;
}

/* ===== Responsive adjustments ===== */
@media (max-width: 768px) {
    .shape-circle-1 {
        width: 300px;
        height: 300px;
    }
    .shape-square-1 {
        width: 80px;
        height: 80px;
    }
    .shape-triangle-1 {
        border-left: 40px solid transparent;
        border-right: 40px solid transparent;
        border-bottom: 69px solid rgba(255, 107, 74, 0.06);
    }
    .shape-ring-1 {
        width: 100px;
        height: 100px;
    }
}
