/* ===== SERVICES PAGE MODERN FIXES ===== */

/* CSS Variables for Consistency */
:root {
    --primary-gold: #DAA520;
    --primary-dark: #1a1a1a;
    --gradient-primary: linear-gradient(135deg, #DAA520, #B8860B);
    --gradient-dark: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    --text-light: #cbd5e1;
    --text-dark: #1f2937;
    --shadow-light: 0 10px 30px rgba(0,0,0,0.1);
    --shadow-hover: 0 20px 40px rgba(0,0,0,0.15);
    --border-radius: 15px;
    --transition: all 0.3s ease;
}

/* Container and Layout Improvements */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Hero Section Enhancements */
.hero-section {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, 
        rgba(26, 26, 26, 0.95) 0%, 
        rgba(45, 45, 45, 0.9) 50%, 
        rgba(58, 58, 58, 0.85) 100%),
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" patternUnits="userSpaceOnUse" width="100" height="100"><circle cx="20" cy="20" r="1" fill="rgba(218,165,32,0.1)"/><circle cx="80" cy="80" r="1" fill="rgba(218,165,32,0.08)"/><circle cx="40" cy="70" r="0.5" fill="rgba(218,165,32,0.06)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>') !important;
    background-attachment: fixed;
    background-size: cover;
    padding: 140px 0 100px !important;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 20%, rgba(218, 165, 32, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 70% 80%, rgba(218, 165, 32, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.hero-section h1 {
    font-size: clamp(2.5rem, 5vw, 4rem) !important;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    position: relative;
    z-index: 2;
}

.hero-section p {
    font-size: clamp(1rem, 2vw, 1.3rem) !important;
    position: relative;
    z-index: 2;
}

/* Services Section Background */
.services-section {
    background: linear-gradient(135deg, 
        #f8fafc 0%, 
        #e2e8f0 50%, 
        #cbd5e1 100%) !important;
    padding: 100px 0 !important;
    position: relative;
}

.services-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 200"><defs><pattern id="dots" patternUnits="userSpaceOnUse" width="40" height="40"><circle cx="10" cy="10" r="1" fill="rgba(218,165,32,0.05)"/></pattern></defs><rect width="200" height="200" fill="url(%23dots)"/></svg>') repeat;
    opacity: 0.6;
}

/* Service Category Section Improvements */
.service-category-section {
    position: relative;
    z-index: 2;
    margin-bottom: 5rem !important;
    padding: 3rem 2rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(218, 165, 32, 0.1);
}

.service-category-section h2 {
    font-size: clamp(2rem, 4vw, 2.8rem) !important;
    margin-bottom: 3rem !important;
    position: relative;
    padding-bottom: 1rem;
}

.service-category-section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

/* Services Grid Enhancements */
.services-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)) !important;
    gap: 2.5rem !important;
    margin-top: 2rem;
}

/* Service Card Complete Redesign */
.service-card {
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%) !important;
    border-radius: 20px !important;
    padding: 2.5rem !important;
    box-shadow: 
        0 10px 40px rgba(0,0,0,0.08),
        0 2px 8px rgba(0,0,0,0.04) !important;
    border: 1px solid rgba(218, 165, 32, 0.08) !important;
    position: relative !important;
    overflow: hidden !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    cursor: pointer;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    transform: translateY(-15px) !important;
    box-shadow: 
        0 25px 50px rgba(0,0,0,0.15),
        0 8px 16px rgba(0,0,0,0.08) !important;
    border-color: rgba(218, 165, 32, 0.2) !important;
}

/* Service Card Icon Container */
.service-card .fa-2x,
.service-card i[style*="font-size: 2rem"] {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%) !important;
    border-radius: 16px !important;
    width: 64px !important;
    height: 64px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-right: 1.5rem !important;
    transition: all 0.3s ease !important;
    border: 2px solid rgba(218, 165, 32, 0.1) !important;
}

.service-card:hover .fa-2x,
.service-card:hover i[style*="font-size: 2rem"] {
    transform: scale(1.1) rotate(5deg) !important;
    background: linear-gradient(135deg, #daa520, #b8860b) !important;
    color: white !important;
    border-color: rgba(218, 165, 32, 0.3) !important;
}

/* Service Card Typography */
.service-card h3 {
    font-size: 1.4rem !important;
    font-weight: 700 !important;
    color: var(--text-dark) !important;
    margin-bottom: 1rem !important;
    line-height: 1.3 !important;
    font-family: 'Playfair Display', serif !important;
}

.service-card p {
    color: #64748b !important;
    line-height: 1.7 !important;
    margin-bottom: 2rem !important;
    font-size: 1rem !important;
}

/* Service Card Button/Link */
.service-card a {
    display: inline-flex !important;
    align-items: center !important;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%) !important;
    color: var(--text-dark) !important;
    padding: 1rem 2rem !important;
    border-radius: 12px !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    font-size: 0.95rem !important;
    transition: all 0.3s ease !important;
    border: 2px solid rgba(218, 165, 32, 0.1) !important;
    position: relative !important;
    overflow: hidden !important;
}

.service-card a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    transition: left 0.4s ease;
    z-index: 0;
}

.service-card a:hover::before {
    left: 0;
}

.service-card a:hover {
    color: white !important;
    border-color: rgba(218, 165, 32, 0.3) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(218, 165, 32, 0.3) !important;
}

.service-card a span,
.service-card a i {
    position: relative;
    z-index: 1;
}

/* CTA Section Enhancements */
.cta-section {
    background: linear-gradient(135deg, 
        rgba(26, 26, 26, 0.95) 0%, 
        rgba(45, 45, 45, 0.9) 50%,
        rgba(26, 26, 26, 0.95) 100%),
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="25" cy="25" r="2" fill="rgba(218,165,32,0.1)"/><circle cx="75" cy="75" r="1.5" fill="rgba(218,165,32,0.08)"/></svg>') !important;
    padding: 120px 0 !important;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(218, 165, 32, 0.05) 0%, transparent 70%);
}

.cta-section h2 {
    font-size: clamp(2rem, 4vw, 3rem) !important;
    position: relative;
    z-index: 2;
}

.cta-section p {
    position: relative;
    z-index: 2;
}

.cta-section a {
    position: relative !important;
    z-index: 2 !important;
    background: var(--gradient-primary) !important;
    padding: 1.2rem 3rem !important;
    border-radius: 12px !important;
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    box-shadow: 0 8px 25px rgba(218, 165, 32, 0.3) !important;
}

/* Color-Specific Service Card Variants */
.service-card[style*="rgba(16, 185, 129, 0.1)"] {
    border-left: 4px solid #10b981 !important;
}

.service-card[style*="rgba(59, 130, 246, 0.1)"] {
    border-left: 4px solid #3b82f6 !important;
}

.service-card[style*="rgba(245, 158, 11, 0.1)"] {
    border-left: 4px solid #f59e0b !important;
}

.service-card[style*="rgba(220, 38, 38, 0.1)"] {
    border-left: 4px solid #dc2626 !important;
}

.service-card[style*="rgba(139, 92, 246, 0.1)"] {
    border-left: 4px solid #8b5cf6 !important;
}

.service-card[style*="rgba(6, 182, 212, 0.1)"] {
    border-left: 4px solid #06b6d4 !important;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)) !important;
        gap: 2rem !important;
    }
    
    .service-category-section {
        padding: 2.5rem 1.5rem;
    }
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }
    
    .service-category-section {
        padding: 2rem 1rem;
        margin-bottom: 3rem !important;
    }
    
    .hero-section {
        padding: 100px 0 60px !important;
    }
    
    .services-section {
        padding: 60px 0 !important;
    }
    
    .service-card {
        padding: 2rem !important;
    }
    
    .container {
        padding: 0 1rem;
    }
}

@media (max-width: 480px) {
    .service-card {
        padding: 1.5rem !important;
    }
    
    .service-card a {
        padding: 0.8rem 1.5rem !important;
        font-size: 0.9rem !important;
    }
    
    .services-grid {
        gap: 1rem !important;
    }
    
    .cta-section {
        padding: 80px 0 !important;
    }
}

/* Animation Improvements */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.service-card {
    animation: fadeInUp 0.6s ease forwards;
}

.service-card:nth-child(2n) {
    animation-delay: 0.1s;
}

.service-card:nth-child(3n) {
    animation-delay: 0.2s;
}

/* Loading State */
.service-card.loading {
    opacity: 0.7;
    pointer-events: none;
}

/* Focus States for Accessibility */
.service-card a:focus {
    outline: 2px solid var(--primary-gold);
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .service-card {
        break-inside: avoid;
        box-shadow: none !important;
        border: 1px solid #ccc !important;
    }
    
    .hero-section,
    .cta-section {
        background: white !important;
        color: black !important;
    }
}
