/**
 * Lunara Theme - Custom CSS v2.0
 * Premium effects, menu previews, and social hover animations
 * 
 * @package Lunara
 */

/* ============================================
   MENU PREVIEW OVERLAY EFFECT
   Background image appears on menu hover
   ============================================ */
.menu-preview-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 998;
    pointer-events: none;
    overflow: hidden;
}

.menu-preview-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transform: scale(1.1);
    transition: opacity 0.6s ease, transform 0.6s ease;
    filter: blur(0px);
}

.menu-preview-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, 
        rgba(13,13,13,0.85) 0%, 
        rgba(13,13,13,0.7) 30%,
        rgba(13,13,13,0.9) 100%);
    z-index: 1;
}

.menu-preview-bg.active {
    opacity: 1;
    transform: scale(1);
}

/* ============================================
   SOCIAL PREVIEW OVERLAY EFFECT
   Gradient background appears on social hover
   ============================================ */
.social-preview-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 997;
    pointer-events: none;
    overflow: hidden;
}

.social-preview-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0;
    transform: scale(1.05);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.social-preview-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(13,13,13,0.85);
    z-index: 1;
}

.social-preview-bg.active {
    opacity: 1;
    transform: scale(1);
}

/* ============================================
   ENHANCED NAVIGATION MENU
   ============================================ */
.nav-menu {
    position: relative;
    z-index: 1001;
}

.nav-menu li {
    position: relative;
}

.nav-menu a {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-menu a .menu-text {
    position: relative;
    z-index: 2;
}

/* Menu item highlight effect */
.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--color-accent), var(--color-accent-light));
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

/* Menu hover glow effect */
.nav-menu a:hover {
    text-shadow: 0 0 20px rgba(212, 165, 116, 0.5);
}

/* Active menu indicator */
.nav-menu a.active {
    color: var(--color-accent);
}

/* ============================================
   PREMIUM SOCIAL LINK EFFECTS
   ============================================ */
.social-link {
    position: relative;
    z-index: 1001;
}

/* Social icon specific colors on hover */
.social-link[data-social="facebook"]:hover {
    background: #1877f2;
    border-color: #1877f2;
    box-shadow: 0 8px 30px rgba(24, 119, 242, 0.4);
}

.social-link[data-social="twitter"]:hover {
    background: #1da1f2;
    border-color: #1da1f2;
    box-shadow: 0 8px 30px rgba(29, 161, 242, 0.4);
}

.social-link[data-social="linkedin"]:hover {
    background: #0077b5;
    border-color: #0077b5;
    box-shadow: 0 8px 30px rgba(0, 119, 181, 0.4);
}

.social-link[data-social="instagram"]:hover {
    background: linear-gradient(135deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    border-color: #dc2743;
    box-shadow: 0 8px 30px rgba(220, 39, 67, 0.4);
}

.social-link[data-social]:hover::before {
    display: none;
}

.social-link[data-social]:hover {
    color: #ffffff;
    transform: translateY(-4px) scale(1.1);
}

.social-link[data-social]:hover i {
    transform: scale(1.2);
    color: #ffffff;
}

/* ============================================
   IMAGE EFFECTS - REFINED FRAMES
   ============================================ */
.about-image {
    position: relative;
    overflow: hidden;
}

.about-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 2px solid var(--color-accent);
    opacity: 0;
    transform: scale(0.92);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    z-index: 2;
}

.about-image::after {
    content: '';
    position: absolute;
    top: 25px;
    left: 25px;
    right: -25px;
    bottom: -25px;
    border: 1px solid rgba(212, 165, 116, 0.2);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
}

.about-image:hover::before {
    opacity: 0.7;
    transform: scale(1);
}

.about-image:hover::after {
    top: 15px;
    left: 15px;
    right: -15px;
    bottom: -15px;
    border-color: rgba(212, 165, 116, 0.4);
}

.about-image img {
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1), filter 0.7s ease;
}

.about-image:hover img {
    transform: scale(1.05);
    filter: brightness(1.05) contrast(1.03);
}

/* ============================================
   SERVICE CARDS ENHANCED
   ============================================ */
.service-card {
    position: relative;
    background: linear-gradient(180deg, var(--color-bg-card) 0%, rgba(26, 26, 26, 0.9) 100%);
    overflow: hidden;
}

.service-card::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(212, 165, 116, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
    pointer-events: none;
}

.service-card:hover::after {
    width: 400px;
    height: 400px;
}

/* ============================================
   BUTTON ENHANCEMENTS
   ============================================ */
.btn {
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn i {
    transition: transform 0.3s ease;
}

.btn:hover i {
    transform: translateX(5px);
}

.btn-primary:hover {
    box-shadow: 0 8px 30px rgba(212, 165, 116, 0.3);
}

.btn-secondary:hover {
    box-shadow: 0 8px 35px rgba(212, 165, 116, 0.4);
}

/* Ripple effect on click */
.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.5s ease, height 0.5s ease;
}

.btn:active::after {
    width: 400px;
    height: 400px;
}

/* ============================================
   QUOTES SECTION ENHANCED
   ============================================ */
.quote-item {
    animation: fadeIn 0.6s ease;
}

.quote-text {
    position: relative;
    padding: 0 var(--spacing-md);
}

/* ============================================
   CONTACT FORM ENHANCEMENTS
   ============================================ */
.form-group input,
.form-group textarea {
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    transform: translateY(-2px);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--color-text-muted);
    opacity: 0.6;
}

/* ============================================
   FOOTER ENHANCEMENTS
   ============================================ */
.footer-contact li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: var(--spacing-sm);
}

.footer-contact i {
    color: var(--color-accent);
    width: 20px;
    text-align: center;
}

.footer-social-text {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    margin-bottom: var(--spacing-md);
    line-height: 1.7;
}

.footer-credit {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    opacity: 0.7;
}

/* Footer social links with platform colors */
.footer-social .social-link[data-social="facebook"]:hover {
    background: #1877f2;
    border-color: #1877f2;
}

.footer-social .social-link[data-social="twitter"]:hover {
    background: #1da1f2;
    border-color: #1da1f2;
}

.footer-social .social-link[data-social="linkedin"]:hover {
    background: #0077b5;
    border-color: #0077b5;
}

.footer-social .social-link[data-social="instagram"]:hover {
    background: linear-gradient(135deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    border-color: #dc2743;
}

/* ============================================
   VALUE CARDS
   ============================================ */
.value-card {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    background: var(--color-bg-card);
    border-radius: 4px;
    border: 1px solid var(--color-border-light);
}

.value-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    border-color: var(--color-border-hover);
}

.value-card .value-icon {
    transition: transform 0.4s ease, color 0.4s ease;
}

.value-card:hover .value-icon {
    transform: scale(1.15);
    color: var(--color-accent-light);
}

/* ============================================
   TAB SYSTEM ENHANCEMENTS
   ============================================ */
.tab-btn {
    transition: all 0.3s ease;
    border-radius: 4px;
}

.tab-btn:hover:not(.active) {
    border-color: var(--color-accent);
    color: var(--color-accent);
    transform: translateY(-2px);
}

.tab-pane {
    animation: fadeIn 0.4s ease;
}

/* ============================================
   EDUCATION LIST ENHANCEMENTS
   ============================================ */
.education-list li {
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.education-list li:hover {
    transform: translateX(8px);
    box-shadow: -4px 0 0 var(--color-accent);
    border-left-color: var(--color-accent-light);
}

/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */
@media (max-width: 1024px) {
    .values-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    .education-list ul {
        grid-template-columns: 1fr !important;
    }
    
    .education-list li {
        grid-column: span 1 !important;
    }
}

@media (max-width: 768px) {
    .values-grid {
        grid-template-columns: 1fr !important;
    }
    
    .menu-preview-overlay,
    .social-preview-overlay {
        display: none;
    }
    
    .header-social {
        display: flex;
    }
    
    .lang-switcher {
        display: none;
    }
    
    .about-image::after {
        display: none;
    }
    
    .contact-images {
        grid-template-columns: 1fr !important;
    }
    
    .footer-column {
        text-align: center;
    }
    
    .footer-contact li {
        justify-content: center;
    }
}

/* ============================================
   LOADING & ANIMATION UTILITIES
   ============================================ */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.6;
    }
}

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

/* ============================================
   SCROLL INDICATOR
   ============================================ */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    animation: bounce 2s infinite;
    color: var(--color-accent);
    font-size: 1.5rem;
    opacity: 0.7;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-15px);
    }
    60% {
        transform: translateX(-50%) translateY(-8px);
    }
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
    .site-header,
    .menu-preview-overlay,
    .social-preview-overlay,
    .header-social,
    .footer-social {
        display: none !important;
    }
    
    body {
        background: white;
        color: black;
    }
}
