/* ============================================
   CC Double R Trucking — Custom Styles
   ============================================ */

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

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

.geo-circle-1 {
    width: 500px;
    height: 500px;
    border: 2px solid rgba(123, 45, 59, 0.08);
    border-radius: 50%;
    top: -100px;
    right: -100px;
    animation: float 8s ease-in-out infinite;
}

.geo-circle-2 {
    width: 200px;
    height: 200px;
    background: rgba(245, 196, 202, 0.3);
    border-radius: 50%;
    bottom: 15%;
    left: 5%;
    animation: float 6s ease-in-out infinite reverse;
}

.geo-rect-1 {
    width: 120px;
    height: 120px;
    background: rgba(123, 45, 59, 0.06);
    border-radius: 24px;
    top: 30%;
    right: 3%;
    transform: rotate(45deg);
    animation: spin-slow 20s linear infinite;
}

.geo-triangle-1 {
    width: 0;
    height: 0;
    border-left: 60px solid transparent;
    border-right: 60px solid transparent;
    border-bottom: 104px solid rgba(245, 229, 232, 0.5);
    top: 60%;
    left: 2%;
    animation: float 7s ease-in-out infinite;
}

.geo-dots {
    width: 120px;
    height: 120px;
    top: 20%;
    left: 8%;
    background-image: radial-gradient(circle, rgba(123, 45, 59, 0.15) 1.5px, transparent 1.5px);
    background-size: 16px 16px;
    animation: float 5s ease-in-out infinite reverse;
}

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

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

/* ============================================
   Navbar
   ============================================ */
#navbar {
    background: rgba(255, 251, 247, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(45, 36, 34, 0.05);
}

#navbar.scrolled {
    background: rgba(255, 251, 247, 0.95);
    box-shadow: 0 4px 30px rgba(45, 36, 34, 0.08);
}

/* ============================================
   Mobile Menu
   ============================================ */
.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) {
    width: 6;
    transform: rotate(-45deg) translate(5px, -5px);
}

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

.mobile-link {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

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

#mobileMenu.open .mobile-link:nth-child(1) { transition-delay: 0.1s; }
#mobileMenu.open .mobile-link:nth-child(2) { transition-delay: 0.15s; }
#mobileMenu.open .mobile-link:nth-child(3) { transition-delay: 0.2s; }
#mobileMenu.open .mobile-link:nth-child(4) { transition-delay: 0.25s; }
#mobileMenu.open .mobile-link:nth-child(5) { transition-delay: 0.3s; }

/* ============================================
   Service Cards
   ============================================ */
.service-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover {
    transform: translateY(-4px);
}

/* ============================================
   Area Cards
   ============================================ */
.area-card {
    transition: all 0.3s ease;
}

.area-card:hover {
    transform: translateY(-2px);
}

/* ============================================
   Scroll Reveal Animations
   ============================================ */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.visible {
    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; }

/* ============================================
   Custom Selection
   ============================================ */
::selection {
    background: rgba(123, 45, 59, 0.2);
    color: #2D2422;
}

/* ============================================
   Smooth Scroll Behavior
   ============================================ */
html {
    scroll-behavior: smooth;
}

/* ============================================
   Form Focus States
   ============================================ */
input:focus,
select:focus,
textarea:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(123, 45, 59, 0.1);
}

/* ============================================
   Responsive Adjustments
   ============================================ */
@media (max-width: 768px) {
    .geo-circle-1 {
        width: 300px;
        height: 300px;
    }

    .geo-rect-1 {
        width: 80px;
        height: 80px;
    }

    .geo-triangle-1 {
        border-left: 40px solid transparent;
        border-right: 40px solid transparent;
        border-bottom: 69px solid rgba(245, 229, 232, 0.5);
    }
}

@media (max-width: 640px) {
    .geo-circle-1 {
        width: 200px;
        height: 200px;
        top: -50px;
        right: -50px;
    }

    .geo-circle-2 {
        width: 120px;
        height: 120px;
    }

    .geo-rect-1 {
        display: none;
    }

    .geo-triangle-1 {
        display: none;
    }

    .geo-dots {
        width: 80px;
        height: 80px;
    }
}
