/* Custom CSS for Macon Discount Tire */

:root {
    --plum-50: #faf5ff;
    --plum-100: #f3e8ff;
    --plum-200: #e9d5ff;
    --plum-300: #d8b4fe;
    --plum-400: #c084fc;
    --plum-500: #a855f7;
    --plum-600: #9333ea;
    --plum-700: #7e22ce;
    --plum-800: #6b21a8;
    --plum-900: #1E1B4B;
    --amber-300: #fcd34d;
    --amber-400: #fbbf24;
    --amber-500: #f59E0b;
    --amber-600: #d97706;
    --amber-700: #b45309;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
}

.font-space {
    font-family: 'Space Grotesk', sans-serif;
}

/* Geometric Background Shapes */
.geo-shape {
    position: fixed;
    pointer-events: none;
    z-index: 0;
    opacity: 0.1;
}

.shape-circle-1 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, var(--plum-400), var(--plum-600));
    border-radius: 50%;
    top: 10%;
    left: -100px;
    animation: float 20s ease-in-out infinite;
}

.shape-square-1 {
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, var(--amber-400), var(--amber-600));
    top: 40%;
    right: -50px;
    transform: rotate(45deg);
    animation: float 15s ease-in-out infinite reverse;
}

.shape-triangle-1 {
    width: 0;
    height: 0;
    border-left: 100px solid transparent;
    border-right: 100px solid transparent;
    border-bottom: 173px solid var(--plum-500);
    bottom: 20%;
    left: 10%;
    animation: float 18s ease-in-out infinite;
}

.shape-circle-2 {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, var(--amber-300), var(--amber-500));
    border-radius: 50%;
    bottom: 10%;
    right: 20%;
    animation: float 22s ease-in-out infinite reverse;
}

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

/* Navbar Scroll Effect */
#navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Mobile Menu */
#mobile-menu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

#mobile-menu.open {
    max-height: 400px;
}

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

::-webkit-scrollbar-track {
    background: var(--plum-50);
}

::-webkit-scrollbar-thumb {
    background: var(--plum-400);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--plum-600);
}

/* Animation Classes */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

/* Button Hover Effects */
button, a {
    transition: all 0.3s ease;
}

/* Form Focus States */
input:focus,
select:focus,
textarea:focus {
    box-shadow: 0 0 0 3px rgba(147, 51, 234, 0.2);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .geo-shape {
        opacity: 0.05;
    }
    
    .shape-circle-1 {
        width: 200px;
        height: 200px;
    }
    
    .shape-square-1 {
        width: 100px;
        height: 100px;
    }
    
    .shape-triangle-1 {
        border-left: 50px solid transparent;
        border-right: 50px solid transparent;
        border-bottom: 87px solid var(--plum-500);
    }
    
    .shape-circle-2 {
        width: 150px;
        height: 150px;
    }
}

/* Print Styles */
@media print {
    .geo-shape,
    #back-to-top {
        display: none;
    }
}
