/* Modern 2025 Design System for MEPA */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@100..900&family=Playfair+Display:wght@400..900&display=swap');

/* Modern Color Palette 2025 */
:root {
    --mepa-gold: #D4AF37;
    --mepa-gold-light: #E5C158;
    --mepa-gold-dark: #B8941F;
    --mepa-black: #0A0A0A;
    --mepa-white: #FFFFFF;
    --mepa-gray-50: #FAFAFA;
    --mepa-gray-100: #F5F5F5;
    --mepa-gray-200: #E5E5E5;
    --mepa-gray-800: #1A1A1A;
    --mepa-gray-900: #0F0F0F;
    
    /* Gradients */
    --gradient-gold: linear-gradient(135deg, #D4AF37 0%, #E5C158 100%);
    --gradient-dark: linear-gradient(135deg, #0A0A0A 0%, #1A1A1A 100%);
    --gradient-hero: linear-gradient(135deg, rgba(212, 175, 55, 0.1) 0%, rgba(229, 193, 88, 0.05) 100%);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--mepa-white);
    color: var(--mepa-black);
    overflow-x: hidden;
}

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

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

::-webkit-scrollbar-thumb {
    background: var(--gradient-gold);
    border-radius: 10px;
    border: 2px solid var(--mepa-gray-100);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--mepa-gold-dark);
}

/* Glass Morphism Effect */
.glass-effect {
    background: rgba(255, 255, 255, 0.85);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(212, 175, 55, 0.2);
}

/* Modern Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

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

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
    }
    50% {
        box-shadow: 0 0 40px rgba(212, 175, 55, 0.6);
    }
}

.fade-in-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), 
                transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Modern Hero Section with Background Image */
.hero-modern {
    background: url('./hero.png') center center / cover no-repeat;
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Hero Overlay for better text readability */
.hero-overlay {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.4) 100%);
    position: absolute;
    inset: 0;
    z-index: 1;
}

/* Ensure hero content is above overlay */
.hero-modern .relative {
    z-index: 10;
}

/* Modern Card Design */
.modern-card {
    background: white;
    border-radius: 24px;
    padding: 32px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.modern-card:hover {
    box-shadow: 0 12px 48px rgba(212, 175, 55, 0.15);
    transform: translateY(-8px);
    border-color: rgba(212, 175, 55, 0.3);
}

/* Gradient Text Effect */
.gradient-text {
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Modern Button Styles */
.btn-modern-primary {
    background: var(--gradient-gold);
    color: white !important;
    padding: 16px 40px;
    border-radius: 16px;
    font-weight: 600;
    border: none;
    box-shadow: 0 4px 16px rgba(212, 175, 55, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    text-decoration: none;
    display: inline-block;
}

.btn-modern-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.btn-modern-primary:hover::before {
    left: 100%;
}

.btn-modern-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(212, 175, 55, 0.4);
}

.btn-modern-secondary {
    background: transparent;
    color: var(--mepa-gold) !important;
    padding: 16px 40px;
    border-radius: 16px;
    font-weight: 600;
    border: 2px solid var(--mepa-gold);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    display: inline-block;
}

.btn-modern-secondary:hover {
    background: var(--mepa-gold);
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(212, 175, 55, 0.3);
}

/* Floating Elements */
.float-animation {
    animation: float 6s ease-in-out infinite;
}

/* Modern Input Fields */
.modern-input {
    background: var(--mepa-gray-50);
    border: 2px solid transparent;
    border-radius: 12px;
    padding: 14px 20px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 16px;
    width: 100%;
}

.modern-input:focus {
    background: white;
    border-color: var(--mepa-gold);
    box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.1);
    outline: none;
}

/* Modern Service Cards */
.service-card-modern {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.service-card-modern:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 20px 60px rgba(212, 175, 55, 0.2);
}

.service-card-modern img {
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card-modern:hover img {
    transform: scale(1.1);
}

/* Portfolio Hover Effect */
.portfolio-item {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
}

.portfolio-overlay {
    background: linear-gradient(0deg, rgba(10, 10, 10, 0.9) 0%, transparent 100%);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.portfolio-item:hover .portfolio-overlay {
    background: linear-gradient(0deg, rgba(212, 175, 55, 0.95) 0%, rgba(212, 175, 55, 0.7) 100%);
}

/* Typography Enhancements */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    letter-spacing: -0.02em;
}

.display-title {
    font-family: 'Playfair Display', serif;
    font-weight: 800;
    line-height: 1.1;
}

/* Modern Header 2025 */
header.modern-header {
    background: rgba(255, 255, 255, 0.95) !important;
    -webkit-backdrop-filter: blur(30px) saturate(180%);
    backdrop-filter: blur(30px) saturate(180%);
    border-bottom: 1px solid rgba(212, 175, 55, 0.15);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.06);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

header.modern-header:hover {
    box-shadow: 0 12px 40px rgba(212, 175, 55, 0.1);
}

/* Logo hover effect */
header.modern-header a img {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), filter 0.4s ease;
}

header.modern-header a:hover img {
    transform: scale(1.05);
    filter: drop-shadow(0 4px 12px rgba(212, 175, 55, 0.3));
}

/* Nav Links - No hover on text, only underline effect */
header.modern-header nav a {
    position: relative;
    transition: color 0.3s ease;
}

header.modern-header nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-gold);
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

header.modern-header nav a:hover::after {
    width: 100%;
}

/* Mobile menu button with modern effect */
header.modern-header button {
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

header.modern-header button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(212, 175, 55, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

header.modern-header button:hover::before {
    width: 200%;
    height: 200%;
}

header.modern-header button:hover {
    transform: scale(1.1);
}

/* Chat Widget Modern 2025 */
#chat-widget {
    z-index: 1000;
    right: 28px;
    bottom: 28px;
    position: fixed;
}

.chat-button-modern {
    background: linear-gradient(135deg, #D4AF37 0%, #FFD700 50%, #D4AF37 100%);
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 12px 32px rgba(212, 175, 55, 0.5), 0 4px 12px rgba(0, 0, 0, 0.2);
    animation: pulse-glow 2s infinite;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 3px solid rgba(255, 255, 255, 0.3);
    cursor: pointer;
    position: relative;
}

.chat-button-modern::before {
    content: '';
    position: absolute;
    inset: -5px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.3), rgba(255, 215, 0, 0.3));
    z-index: -1;
    animation: pulse-ring 2s infinite;
}

@keyframes pulse-ring {
    0%, 100% {
        transform: scale(1);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.15);
        opacity: 0;
    }
}

.chat-button-modern:hover {
    transform: scale(1.15) rotate(10deg);
    box-shadow: 0 16px 48px rgba(212, 175, 55, 0.7), 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* Chat window modern style */
#chat-window {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(212, 175, 55, 0.3);
}

#chat-window .bg-mepa-gold {
    background: linear-gradient(135deg, #D4AF37 0%, #E5C158 100%);
}

.chat-button-modern img {
    width: 36px;
    height: 36px;
    filter: none;
    transition: transform 0.3s ease;
}

.chat-button-modern:hover img {
    transform: scale(1.1);
}

/* Map iframe styles */
.map-iframe {
    border: 0;
    width: 100%;
    height: 100%;
    border-radius: 16px;
}

/* Newsletter Popup Modern 2025 */
.newsletter-border {
    border: 3px solid var(--mepa-gold);
    box-shadow: 0 30px 100px rgba(0, 0, 0, 0.4), 0 10px 40px rgba(212, 175, 55, 0.3);
    animation: slideIn 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideIn {
    from {
        transform: scale(0.8) translateY(20px);
        opacity: 0;
    }
    to {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

#newsletter-popup {
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

.newsletter-border h3 {
    background: var(--gradient-gold);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.newsletter-border button[type="submit"] {
    background: linear-gradient(135deg, #D4AF37 0%, #FFD700 100%);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
}

.newsletter-border button[type="submit"]:hover {
    background: linear-gradient(135deg, #FFD700 0%, #D4AF37 100%);
    box-shadow: 0 8px 28px rgba(255, 215, 0, 0.6);
    transform: translateY(-2px) scale(1.02);
}

/* Service Card Text Colors */
.service-card-modern .p-6 h4 {
    color: var(--mepa-black);
}

.service-card-modern .p-6 p {
    color: var(--mepa-gray-800);
}

/* Portfolio Text on Hover */
.portfolio-item:hover .portfolio-overlay p,
.portfolio-item:hover .portfolio-overlay h4 {
    color: white;
}

/* About Section Text */
.border-l-4 {
    color: var(--mepa-gray-800);
}

/* Footer Modern Style */
footer {
    background: white;
    border-top: 2px solid rgba(212, 175, 55, 0.2);
}

footer .text-gray-700 {
    color: #4B5563;
}

footer h4 {
    color: var(--mepa-gold);
}

footer p {
    color: #6B7280;
}

/* Contact Section Icons */
.text-mepa-gold {
    color: var(--mepa-gold);
}

/* Modern Text Styles */
.text-hero {
    color: white;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.3), 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Hero section text should be white */
.hero-modern h1,
.hero-modern .gradient-text {
    color: white;
    text-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

/* Keep gradient text effect but make it lighter */
.hero-modern .gradient-text {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
    filter: drop-shadow(0 2px 8px rgba(255, 215, 0, 0.3));
}

/* Hero buttons enhancement */
.hero-modern .btn-modern-primary {
    background: linear-gradient(135deg, #FFD700 0%, #D4AF37 100%);
    box-shadow: 0 8px 24px rgba(212, 175, 55, 0.4), 0 4px 12px rgba(0, 0, 0, 0.3);
}

.hero-modern .btn-modern-primary:hover {
    box-shadow: 0 12px 32px rgba(255, 215, 0, 0.6), 0 8px 16px rgba(0, 0, 0, 0.4);
    transform: translateY(-6px) scale(1.05);
}

.hero-modern .btn-modern-secondary {
    border-color: #FFD700;
    color: white !important;
    background: rgba(255, 255, 255, 0.1);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.hero-modern .btn-modern-secondary:hover {
    background: linear-gradient(135deg, #FFD700 0%, #D4AF37 100%);
    border-color: #FFD700;
}

/* Quote Form Modern */
#quote-form label {
    color: var(--mepa-gray-800);
    font-weight: 500;
}

/* Newsletter Text */
.newsletter-border p {
    color: var(--mepa-black);
}

/* ========================================
   HOVER EFFECTS - Images, Icons, Buttons ONLY
   ======================================== */

/* Image hover effects - All images */
img {
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1),
                filter 0.5s ease,
                box-shadow 0.5s ease;
}

img:hover {
    transform: scale(1.03);
    filter: brightness(1.05) contrast(1.05);
}

/* Service card images - Enhanced hover */
.service-card-modern img:hover {
    transform: scale(1.15) rotate(2deg);
    filter: brightness(1.1) saturate(1.2);
}

/* Portfolio images - Zoom effect */
.portfolio-item img {
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* About section image */
section#about img:hover {
    transform: scale(1.05) translateY(-5px);
    box-shadow: 0 20px 60px rgba(212, 175, 55, 0.3);
}

/* Icon hover effects */
svg {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

a svg:hover,
button svg:hover {
    transform: scale(1.15) rotate(5deg);
    filter: drop-shadow(0 4px 8px rgba(212, 175, 55, 0.4));
}

/* Social icons special effect */
footer a svg:hover {
    transform: scale(1.2) rotate(360deg);
    transition: transform 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Contact icons pulse */
section#contact svg {
    animation: subtle-pulse 3s ease-in-out infinite;
}

@keyframes subtle-pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

section#contact svg:hover {
    animation: none;
    transform: scale(1.2);
}

/* Button hover enhancements */
.btn-modern-primary,
.btn-modern-secondary,
button[type="submit"],
a.btn-modern-primary,
a.btn-modern-secondary {
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-modern-primary:hover,
button[type="submit"]:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 16px 40px rgba(212, 175, 55, 0.5);
}

.btn-modern-secondary:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 16px 40px rgba(212, 175, 55, 0.35);
}

/* Remove hover effects from regular text */
p, h1, h2, h3, h4, h5, h6, span:not(.inline-block) {
    transition: none;
}

/* Links should only change color, not transform */
a:not(.btn-modern-primary):not(.btn-modern-secondary) {
    transition: color 0.3s ease;
    transform: none !important;
}

/* Chat button special effect */
.chat-button-modern {
    animation: float 3s ease-in-out infinite, pulse-glow 2s infinite;
}

.chat-button-modern:hover {
    animation: none;
    transform: scale(1.2) rotate(15deg);
}

.chat-button-modern img {
    filter: brightness(0) invert(1);
}

.chat-button-modern:hover img {
    filter: brightness(0) invert(1) drop-shadow(0 0 10px rgba(255, 255, 255, 0.8));
}

/* Service cards hover - comprehensive */
.service-card-modern {
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.service-card-modern::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
}

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

/* Map iframe hover */
.map-iframe:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 32px rgba(212, 175, 55, 0.3);
}

/* Form inputs - subtle hover only */
.modern-input:hover {
    border-color: rgba(212, 175, 55, 0.4);
    transform: none;
}

/* Newsletter image */
.newsletter-border img:hover {
    transform: scale(1.05);
    filter: brightness(1.1);
}
