/* Custom Styles for Yp General Work and Cabinets */

:root {
    --emerald-950: #042f2e;
    --emerald-900: #064e3b;
    --emerald-800: #065f46;
    --emerald-700: #047857;
    --emerald-600: #059669;
    --emerald-500: #10b981;
    --emerald-200: #a7f3d0;
    --emerald-100: #d1fae5;
    --cream-100: #faf8f3;
    --cream-200: #f5f0e8;
    --cream-50: #fdfcf9;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--cream-100);
    color: #1a1a1a;
}

.font-serif {
    font-family: 'Playfair Display', serif;
}

.font-sans {
    font-family: 'Inter', sans-serif;
}

/* Navbar Scroll Effect */
.navbar-scrolled {
    background-color: rgba(250, 248, 243, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(6, 78, 59, 0.1);
}

/* Smooth Transitions */
a, button {
    transition: all 0.3s ease;
}

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

::-webkit-scrollbar-track {
    background: var(--cream-100);
}

::-webkit-scrollbar-thumb {
    background: var(--emerald-300);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--emerald-600);
}

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

.floating {
    animation: float 3s ease-in-out infinite;
}

/* Scroll Reveal Animation */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Button Hover Effects */
.btn-primary {
    background: linear-gradient(135deg, var(--emerald-900) 0%, var(--emerald-800) 100%);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--emerald-800) 0%, var(--emerald-700) 100%);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(6, 78, 59, 0.3);
}

/* Card Hover Effects */
.service-card {
    transition: all 0.4s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(6, 78, 59, 0.15);
}

/* Image Hover Effects */
.portfolio-item {
    overflow: hidden;
}

.portfolio-item img {
    transition: transform 0.5s ease;
}

.portfolio-item:hover img {
    transform: scale(1.1);
}

/* Focus States for Accessibility */
input:focus,
select:focus,
textarea:focus,
button:focus {
    outline: none;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .font-serif {
        font-size: 2.5rem;
    }
    
    .floating {
        animation: none;
    }
}

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

/* Print Styles */
@media print {
    .navbar,
    .back-to-top {
        display: none;
    }
    
    body {
        background: white;
    }
}
