/* Custom Styles for Global Builders */

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

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

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

@keyframes scroll {
    0%, 100% { opacity: 0.5; transform: scaleY(1); }
    50% { opacity: 1; transform: scaleY(1.2); }
}

@keyframes pulse {
    0%, 100% { opacity: 0.4; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.2); }
}

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

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

.animate-float-delay {
    animation: float-delay 8s ease-in-out infinite;
    animation-delay: 1s;
}

.animate-scroll {
    animation: scroll 2s ease-in-out infinite;
}

.animate-pulse {
    animation: pulse 3s ease-in-out infinite;
}

.animate-pulse-delay {
    animation: pulse 3s ease-in-out infinite;
    animation-delay: 1.5s;
}

/* Fade In Up Animation Class */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* Slide In Left Animation Class */
.slide-in-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.slide-in-left.visible {
    opacity: 1;
    transform: translateX(0);
}

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

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 0;
    background: linear-gradient(to bottom, #C5A065, #2D5A4B);
    transition: height 0.4s ease;
}

.service-card:hover::before {
    height: 100%;
}

/* Gallery Item Hover */
.gallery-item {
    position: relative;
}

/* Navbar Scroll Effect */
.nav-scrolled {
    background: rgba(249, 247, 242, 0.98) !important;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(10px);
}

.nav-scrolled .menu-line {
    background: #1A3C34 !important;
}

/* Mobile Menu Active State */
.mobile-menu-open #menuBtn .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-open #menuBtn .menu-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-open #menuBtn .menu-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
    width: 24px !important;
}

.mobile-menu-open #mobileMenu {
    transform: translate-x(0) !important;
}

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

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

::-webkit-scrollbar-thumb {
    background: #2D5A4B;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #1A3C34;
}

/* Selection Color */
::selection {
    background: #C5A065;
    color: #1A3C34;
}

/* Input Focus Styles */
input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: #2D5A4B !important;
    box-shadow: 0 0 0 3px rgba(45, 90, 75, 0.1) !important;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .font-serif.text-4xl,
    .font-serif.text-5xl {
        font-size: 2.5rem !important;
    }
}

/* Print Styles */
@media print {
    nav, #backToTop, button {
        display: none !important;
    }
    
    body {
        color: #000;
        background: #fff;
    }
    
    section {
        page-break-inside: avoid;
    }
}
