/* Custom styles for RTCC Chino */

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

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

::-webkit-scrollbar-track {
    background: #0a0f1e;
}

::-webkit-scrollbar-thumb {
    background: #1a2545;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #c9a84c;
}

/* Selection color */
::selection {
    background: rgba(201, 168, 76, 0.3);
    color: #fff;
}

/* Hero parallax effect */
#hero {
    perspective: 1px;
}

#hero .absolute.inset-0 img {
    will-change: transform;
}

/* Service card hover lift */
.service-card {
    transform: translateY(0);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* Navbar scroll effect */
nav.scrolled {
    background: rgba(10, 15, 30, 0.95) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(201, 168, 76, 0.1);
}

nav.scrolled .menu-line {
    background: #fff;
}

/* Mobile menu animations */
.mobile-link {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 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; }

/* Mobile menu button animation */
#mobileMenu.open ~ .flex.items-center.justify-between button .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

#mobileMenu.open ~ .flex.items-center.justify-between button .menu-line:nth-child(2) {
    opacity: 0;
}

#mobileMenu.open ~ .flex.items-center.justify-between button .menu-line:nth-child(3) {
    width: 24px;
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Fade-in animation for sections */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* Stagger children */
.fade-in .service-card {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible .service-card:nth-child(1) { transition-delay: 0.1s; opacity: 1; transform: translateY(0); }
.fade-in.visible .service-card:nth-child(2) { transition-delay: 0.2s; opacity: 1; transform: translateY(0); }
.fade-in.visible .service-card:nth-child(3) { transition-delay: 0.3s; opacity: 1; transform: translateY(0); }
.fade-in.visible .service-card:nth-child(4) { transition-delay: 0.4s; opacity: 1; transform: translateY(0); }
.fade-in.visible .service-card:nth-child(5) { transition-delay: 0.5s; opacity: 1; transform: translateY(0); }
.fade-in.visible .service-card:nth-child(6) { transition-delay: 0.6s; opacity: 1; transform: translateY(0); }

/* Gold gradient text utility */
.text-gold-gradient {
    background: linear-gradient(135deg, #c9a84c 0%, #e0c970 50%, #c9a84c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Input focus styles */
input:focus,
textarea:focus {
    background: #111c33;
}

/* Button ripple effect */
button, a {
    position: relative;
    overflow: hidden;
}

/* Ensure images don't overflow */
img {
    max-width: 100%;
    height: auto;
}
