/* ===== Custom Styles for Southern Pride Towing ===== */

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

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0f0a14;
}
::-webkit-scrollbar-thumb {
    background: #9d174d;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #be185d;
}

/* Selection color */
::selection {
    background: rgba(251, 191, 36, 0.3);
    color: #fff;
}

/* ===== Geometric Background Decorations ===== */
.geo-circle {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.geo-circle--1 {
    width: 600px;
    height: 600px;
    top: -200px;
    right: -150px;
    background: radial-gradient(circle, rgba(157, 23, 77, 0.12) 0%, transparent 70%);
    animation: float-slow 20s ease-in-out infinite;
}

.geo-circle--2 {
    width: 400px;
    height: 400px;
    bottom: 10%;
    left: -100px;
    background: radial-gradient(circle, rgba(251, 191, 36, 0.08) 0%, transparent 70%);
    animation: float-slow 15s ease-in-out infinite reverse;
}

.geo-triangle {
    position: absolute;
    width: 0;
    height: 0;
    pointer-events: none;
}

.geo-triangle--1 {
    top: 30%;
    right: 5%;
    border-left: 40px solid transparent;
    border-right: 40px solid transparent;
    border-bottom: 70px solid rgba(157, 23, 77, 0.06);
    animation: spin-slow 25s linear infinite;
}

.geo-square {
    position: absolute;
    pointer-events: none;
}

.geo-square--1 {
    width: 60px;
    height: 60px;
    top: 45%;
    left: 8%;
    background: rgba(251, 191, 36, 0.05);
    border: 1px solid rgba(251, 191, 36, 0.1);
    transform: rotate(45deg);
    animation: float-slow 12s ease-in-out infinite;
}

.geo-dots {
    position: absolute;
    pointer-events: none;
    background-image: radial-gradient(circle, rgba(251, 191, 36, 0.15) 1px, transparent 1px);
    background-size: 20px 20px;
}

.geo-dots--1 {
    width: 120px;
    height: 120px;
    bottom: 20%;
    right: 10%;
    opacity: 0.6;
}

.geo-ring {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    border: 1px solid;
}

.geo-ring--1 {
    width: 100px;
    height: 100px;
    top: 20%;
    left: 15%;
    border-color: rgba(157, 23, 77, 0.08);
    animation: spin-slow 20s linear infinite;
}

/* ===== Floating Cards ===== */
.floating-card {
    animation: float-card 4s ease-in-out infinite;
}

.floating-card--1 {
    animation-delay: 0s;
}

.floating-card--2 {
    animation-delay: -1.5s;
}

.floating-card--3 {
    animation-delay: -3s;
}

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

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(251, 191, 36, 0), transparent);
    transition: all 0.5s ease;
}

.service-card:hover::before {
    width: 80%;
    background: linear-gradient(90deg, transparent, rgba(251, 191, 36, 0.3), transparent);
}

/* ===== Animations ===== */
@keyframes float-slow {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(2deg);
    }
}

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

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

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }
.reveal-delay-6 { transition-delay: 0.6s; }

/* ===== Navbar Scrolled State ===== */
.navbar-scrolled {
    background: rgba(15, 10, 20, 0.9) !important;
    backdrop-filter: blur(20px) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3) !important;
}

/* ===== Mobile Menu Active State ===== */
.mobile-menu-open {
    opacity: 1 !important;
    pointer-events: all !important;
}

/* ===== Hover glow effects ===== */
.glow-amber:hover {
    box-shadow: 0 0 30px rgba(251, 191, 36, 0.2) !important;
}

.glow-plum:hover {
    box-shadow: 0 0 30px rgba(157, 23, 77, 0.2) !important;
}

/* ===== Responsive adjustments ===== */
@media (max-width: 768px) {
    .floating-card {
        display: none;
    }
    
    .geo-circle--1 {
        width: 300px;
        height: 300px;
        top: -100px;
        right: -80px;
    }
    
    .geo-circle--2 {
        width: 200px;
        height: 200px;
    }
}

/* ===== Focus visible for accessibility ===== */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid #fbbf24;
    outline-offset: 2px;
    border-radius: 4px;
}

/* ===== Print styles ===== */
@media print {
    .fixed, .geo-circle, .geo-triangle, .geo-square, .geo-dots, .geo-ring {
        display: none !important;
    }
    
    body {
        background: white;
        color: black;
    }
}
