/* Custom Styles for Gary Ehlers Decorative Paint And Fine Art */

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

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

::-webkit-scrollbar-track {
    background: #1a0a1e;
}

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

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

/* Geometric Background Shapes */
.geo-shape {
    position: absolute;
    opacity: 0.1;
    pointer-events: none;
}

.geo-circle-1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, #fbbf24 0%, transparent 70%);
    border-radius: 50%;
    top: 10%;
    right: -100px;
    animation: float 8s ease-in-out infinite;
}

.geo-circle-2 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, #be185d 0%, transparent 70%);
    border-radius: 50%;
    bottom: 20%;
    left: -50px;
    animation: float 10s ease-in-out infinite reverse;
}

.geo-circle-3 {
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, #fbbf24 0%, transparent 70%);
    border-radius: 50%;
    top: 50%;
    left: 30%;
    animation: float 6s ease-in-out infinite;
}

.geo-square-1 {
    width: 150px;
    height: 150px;
    border: 2px solid rgba(251, 191, 36, 0.3);
    top: 30%;
    right: 20%;
    transform: rotate(45deg);
    animation: spin 20s linear infinite;
}

.geo-triangle-1 {
    width: 0;
    height: 0;
    border-left: 75px solid transparent;
    border-right: 75px solid transparent;
    border-bottom: 130px solid rgba(190, 24, 93, 0.2);
    bottom: 30%;
    right: 10%;
    animation: float 12s ease-in-out infinite;
}

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

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

/* Service Card Hover Effect */
.service-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 1.5rem;
    padding: 1px;
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.3), transparent, rgba(190, 24, 93, 0.3));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

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

/* Portfolio Item Hover */
.portfolio-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(80, 7, 36, 0.9), transparent);
    opacity: 0;
    transition: opacity 0.5s ease;
}

.portfolio-item:hover::after {
    opacity: 1;
}

/* Navbar Scroll Effect */
nav.scrolled {
    background: rgba(26, 10, 30, 0.95) !important;
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

nav.scrolled .nav-link {
    color: rgba(255, 255, 255, 0.9);
}

/* Mobile Menu Animation */
.mobile-menu-open #mobileMenu {
    opacity: 1 !important;
    pointer-events: all !important;
}

.mobile-menu-open .menu-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

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

.mobile-menu-open .menu-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
    width: 1.5rem;
}

/* Custom Select Styling */
select option {
    background: #1a0a1e;
    color: white;
}

/* Focus Styles */
input:focus,
textarea:focus,
select:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(251, 191, 36, 0.2);
}

/* Button Hover Glow */
button:hover,
a:hover {
    box-shadow: 0 0 30px rgba(251, 191, 36, 0.3);
}

/* 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;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .service-card,
    .portfolio-item {
        border-width: 2px;
    }
}

/* Print Styles */
@media print {
    .geo-shape,
    .fixed,
    #navbar {
        display: none !important;
    }
    
    body {
        background: white !important;
        color: black !important;
    }
    
    .text-white,
    .text-white\/60,
    .text-white\/80 {
        color: black !important;
    }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .geo-circle-1,
    .geo-circle-2,
    .geo-circle-3,
    .geo-square-1,
    .geo-triangle-1 {
        opacity: 0.05;
    }
}
