/* Custom styles for Lockhart Concrete Finishing */

/* Geometric Background Shapes */
.geometric-shape {
    position: absolute;
    pointer-events: none;
    z-index: 0;
}

.shape-circle-1 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(192, 86, 64, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    top: 10%;
    right: -5%;
    animation: float 6s ease-in-out infinite;
}

.shape-triangle-1 {
    width: 0;
    height: 0;
    border-left: 80px solid transparent;
    border-right: 80px solid transparent;
    border-bottom: 140px solid rgba(232, 213, 183, 0.15);
    top: 25%;
    left: -3%;
    transform: rotate(-15deg);
    animation: float 8s ease-in-out infinite reverse;
}

.shape-square-1 {
    width: 120px;
    height: 120px;
    background: rgba(192, 86, 64, 0.06);
    bottom: 20%;
    right: 10%;
    transform: rotate(45deg);
    animation: float 7s ease-in-out infinite;
}

.shape-circle-2 {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(232, 213, 183, 0.12) 0%, transparent 70%);
    border-radius: 50%;
    bottom: 15%;
    left: 5%;
    animation: float 5s ease-in-out infinite reverse;
}

.shape-diamond-1 {
    width: 60px;
    height: 60px;
    background: rgba(192, 86, 64, 0.1);
    top: 50%;
    right: 5%;
    transform: rotate(45deg);
    animation: float 4s ease-in-out infinite;
}

/* Float Animation */
@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(45deg);
    }
    50% {
        transform: translateY(-20px) rotate(45deg);
    }
}

/* Float animation for non-rotated elements */
@keyframes float-no-rotate {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* Service Card Hover Effects */
.service-card {
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #C05640, #E8D5B7);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

/* Project Card Hover */
.project-card img {
    transition: transform 0.5s ease;
}

/* Mobile Menu Animation */
#mobile-menu-btn.active #menu-line-1 {
    transform: rotate(45deg) translate(5px, 5px);
}

#mobile-menu-btn.active #menu-line-2 {
    opacity: 0;
}

#mobile-menu-btn.active #menu-line-3 {
    transform: rotate(-45deg) translate(5px, -5px);
}

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

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

::-webkit-scrollbar-track {
    background: #fefce8;
}

::-webkit-scrollbar-thumb {
    background: #C05640;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #9c4430;
}

/* Nav Link Underline Effect */
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: #C05640;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link {
    position: relative;
}

/* Fade In Animation for Elements */
.animate-fade-in {
    animation: fadeIn 0.8s ease-out forwards;
}

/* Scale In Animation */
.animate-scale-in {
    animation: scaleIn 0.5s ease-out forwards;
}

/* Slide Up Animation */
.animate-slide-up {
    animation: slideUp 0.6s ease-out forwards;
}

/* Slide Down Animation */
.animate-slide-down {
    animation: slideDown 0.4s ease-out forwards;
}

/* Keyframes */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

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

/* Mobile Navigation */
.mobile-nav-link {
    position: relative;
}

/* Input Focus Styles */
input:focus,
select:focus,
textarea:focus {
    border-color: #C05640 !important;
    box-shadow: 0 0 0 3px rgba(192, 86, 64, 0.2) !important;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .shape-circle-1 {
        width: 200px;
        height: 200px;
    }
    
    .shape-triangle-1 {
        border-left: 50px solid transparent;
        border-right: 50px solid transparent;
        border-bottom: 90px solid rgba(232, 213, 183, 0.15);
    }
    
    .shape-square-1 {
        width: 80px;
        height: 80px;
    }
    
    .shape-circle-2 {
        width: 150px;
        height: 150px;
    }
    
    .shape-diamond-1 {
        width: 40px;
        height: 40px;
    }
}
