/* RS MANNINO — Custom Styles */

/* Smooth scroll offset for fixed nav */
section[id] {
    scroll-margin-top: 80px;
}

/* Custom selection color */
::selection {
    background-color: #1a5c43;
    color: #f4fcf7;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #f4fcf7;
}
::-webkit-scrollbar-thumb {
    background: #2d9a6f;
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: #1a5c43;
}

/* Geometric decorative elements */
.geo-triangle {
    width: 0;
    height: 0;
    border-style: solid;
}

/* Hero geometric animations */
@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

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

.hero-shape-1 {
    animation: float 8s ease-in-out infinite;
}

.hero-shape-2 {
    animation: float-reverse 10s ease-in-out infinite;
}

/* Service card hover effect */
.service-card {
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(26, 92, 67, 0.03) 0%, rgba(54, 184, 133, 0.03) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    border-radius: inherit;
}

.service-card:hover::before {
    opacity: 1;
}

/* Project card image zoom */
.project-card img {
    transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.project-card:hover img {
    transform: scale(1.05);
}

/* Input focus animation */
input:focus,
select:focus,
textarea:focus {
    box-shadow: 0 0 0 3px rgba(45, 154, 111, 0.15);
}

/* Button ripple effect */
.btn-primary {
    position: relative;
    overflow: hidden;
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn-primary:active::after {
    width: 300px;
    height: 300px;
}

/* Mobile menu overlay fade */
#menu-overlay {
    transition: opacity 0.3s ease;
}

#menu-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

#menu-overlay:not(.hidden) {
    opacity: 1;
    pointer-events: auto;
}

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

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
    
    .reveal {
        opacity: 1;
        transform: none;
    }
}
