/* ============================================
   PREMIUM PROFESSIONAL ENHANCEMENTS
   النخيل السبع التجارية - Seven Palms Trading
   ============================================ */

/* Enhanced Root Variables */
:root {
    /* Extended Design Tokens */
    --gradient-primary: linear-gradient(135deg, #0f172a 0%, #1e3a5f 100%);
    --gradient-secondary: linear-gradient(135deg, #0d9488 0%, #14b8a6 100%);
    --gradient-gold: linear-gradient(135deg, #d4a653 0%, #c9a227 50%, #f4d03f 100%);
    --gradient-premium: linear-gradient(135deg, #0f172a 0%, #0d9488 50%, #14b8a6 100%);

    /* Glassmorphism Effects */
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-blur: blur(20px);
    --glass-border: 1px solid rgba(255, 255, 255, 0.18);

    /* Premium Shadows */
    --shadow-premium: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --shadow-card-hover: 0 20px 40px rgba(13, 148, 136, 0.15), 0 10px 20px rgba(0, 0, 0, 0.1);
    --shadow-glow-teal: 0 0 30px rgba(13, 148, 136, 0.4);
    --shadow-glow-gold: 0 0 30px rgba(212, 166, 83, 0.4);

    /* Animation Timings */
    --transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* ====== ENHANCED HEADER ====== */
.main-header {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    transition: all 0.4s var(--transition-smooth);
}

.main-header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
}

/* Logo Enhancement */
.logo {
    position: relative;
    transition: transform 0.3s var(--transition-smooth);
}

.logo:hover {
    transform: scale(1.02);
}

/* Navigation Links Enhancement */
.nav-links a {
    position: relative;
    padding: 0.5rem 0;
    overflow: hidden;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-secondary);
    transition: width 0.3s var(--transition-smooth);
}

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

/* ====== ENHANCED HERO SECTION ====== */
.hero-section {
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(13, 148, 136, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(212, 166, 83, 0.1) 0%, transparent 50%);
    z-index: 1;
    animation: heroGlow 8s ease-in-out infinite alternate;
}

@keyframes heroGlow {
    0% {
        opacity: 0.5;
    }

    100% {
        opacity: 1;
    }
}

.hero-content h1 {
    background: linear-gradient(135deg, #ffffff 0%, #e2e8f0 50%, #ffffff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: none;
    animation: shimmer 3s ease-in-out infinite;
    background-size: 200% auto;
}

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

    50% {
        background-position: 100% center;
    }

    100% {
        background-position: 0% center;
    }
}

/* Hero Floating Elements */
.hero-content::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -150px;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(13, 148, 136, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
    z-index: -1;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-30px) rotate(5deg);
    }
}

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

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

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: var(--gradient-secondary);
    box-shadow: 0 4px 15px rgba(13, 148, 136, 0.35);
    border: none;
    position: relative;
}

.btn-primary:hover {
    box-shadow: var(--shadow-glow-teal);
    transform: translateY(-3px);
}

.btn-primary:active {
    transform: translateY(-1px);
}

/* Premium Gold Button Variant */
.btn-gold {
    background: var(--gradient-gold);
    color: #1a1a1a;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(212, 166, 83, 0.35);
}

.btn-gold:hover {
    box-shadow: var(--shadow-glow-gold);
    transform: translateY(-3px);
}

/* ====== ENHANCED SERVICE CARDS ====== */
.service-card {
    position: relative;
    background: var(--color-white);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(226, 232, 240, 0.8);
    transition: all 0.4s var(--transition-smooth);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-secondary);
    transform: scaleX(0);
    transition: transform 0.4s var(--transition-smooth);
    z-index: 10;
}

.service-card:hover {
    transform: translateY(-12px);
    box-shadow: var(--shadow-card-hover);
}

.service-card:hover::before {
    transform: scaleX(1);
}

/* Card Image Overlay Enhancement */
.card-image {
    position: relative;
    overflow: hidden;
}

.card-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.4), transparent);
    opacity: 0;
    transition: opacity 0.4s var(--transition-smooth);
}

.service-card:hover .card-image::after {
    opacity: 1;
}

.service-card:hover .card-image img {
    transform: scale(1.08);
}

/* Enhanced Icon Box */
.icon-box {
    background: var(--gradient-secondary);
    border-radius: 16px;
    box-shadow: 0 8px 20px rgba(13, 148, 136, 0.3);
    transition: all 0.4s var(--transition-bounce);
}

.service-card:hover .icon-box {
    transform: translateY(-5px) scale(1.05);
    box-shadow: var(--shadow-glow-teal);
}

/* ====== ENHANCED SECTION HEADERS ====== */
.section-header h2 {
    position: relative;
    display: inline-block;
}

.section-header h2::before,
.section-header h2::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 60px;
    height: 2px;
    background: var(--gradient-secondary);
    opacity: 0.3;
}

.section-header h2::before {
    right: calc(100% + 20px);
}

.section-header h2::after {
    left: calc(100% + 20px);
}

/* ====== ANIMATED STATISTICS ====== */
.stat-item {
    position: relative;
    padding: 2rem;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(13, 148, 136, 0.05) 0%, transparent 100%);
    transition: all 0.3s var(--transition-smooth);
}

.stat-item:hover {
    background: linear-gradient(135deg, rgba(13, 148, 136, 0.1) 0%, transparent 100%);
    transform: translateY(-5px);
}

.stat-number {
    background: var(--gradient-secondary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 900;
}

/* Counter Animation */
.stat-number {
    animation: countUp 2s var(--transition-smooth) forwards;
}

@keyframes countUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ====== PREMIUM FEATURE BOXES ====== */
.feature-box {
    position: relative;
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(226, 232, 240, 0.5);
    transition: all 0.4s var(--transition-smooth);
    overflow: hidden;
}

.feature-box::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(13, 148, 136, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(30%, -30%);
    transition: all 0.4s var(--transition-smooth);
}

.feature-box:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
    border-color: rgba(13, 148, 136, 0.2);
}

.feature-box:hover::before {
    transform: translate(20%, -20%) scale(1.5);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: var(--gradient-secondary);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin-bottom: 1.5rem;
    box-shadow: 0 8px 20px rgba(13, 148, 136, 0.25);
    transition: all 0.4s var(--transition-bounce);
}

.feature-box:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
}

/* ====== ENHANCED VALUE CARDS ====== */
.value-card {
    position: relative;
    background: white;
    padding: 2.5rem 2rem;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    transition: all 0.4s var(--transition-smooth);
    overflow: hidden;
}

.value-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-secondary);
    transform: scaleX(0);
    transition: transform 0.4s var(--transition-smooth);
}

.value-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.value-card:hover::after {
    transform: scaleX(1);
}

.value-icon {
    background: linear-gradient(135deg, rgba(13, 148, 136, 0.15) 0%, rgba(13, 148, 136, 0.05) 100%);
    transition: all 0.4s var(--transition-bounce);
}

.value-card:hover .value-icon {
    background: var(--gradient-secondary);
    color: white;
    transform: scale(1.1);
}

/* ====== ENHANCED LEADER CARDS ====== */
.leader-card {
    position: relative;
    overflow: hidden;
}

.leader-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: var(--gradient-premium);
    opacity: 0;
    z-index: 0;
    transition: all 0.4s var(--transition-smooth);
}

.leader-card:hover::before {
    opacity: 0.1;
}

.leader-image {
    position: relative;
    transition: transform 0.6s var(--transition-smooth);
}

.leader-card:hover .leader-image {
    transform: scale(1.02);
}

.leader-content {
    position: relative;
    z-index: 1;
}

.leader-quote {
    position: relative;
    padding-right: 20px;
}

.leader-quote::before {
    content: '"';
    position: absolute;
    top: -10px;
    right: 0;
    font-size: 4rem;
    color: rgba(13, 148, 136, 0.1);
    font-family: Georgia, serif;
    line-height: 1;
}

/* ====== ENHANCED FOOTER ====== */
footer {
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: var(--gradient-secondary);
    border-radius: 2px;
}

/* Social Icons Enhancement */
footer a[style*="opacity: 0.8"]:hover {
    opacity: 1 !important;
    transform: translateY(-3px) scale(1.2);
    color: var(--color-secondary) !important;
}

/* ====== SCROLL REVEAL ANIMATIONS ====== */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s var(--transition-smooth);
}

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

/* Staggered Reveal */
.reveal-stagger>* {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s var(--transition-smooth);
}

.reveal-stagger.active>*:nth-child(1) {
    transition-delay: 0.1s;
    opacity: 1;
    transform: translateY(0);
}

.reveal-stagger.active>*:nth-child(2) {
    transition-delay: 0.2s;
    opacity: 1;
    transform: translateY(0);
}

.reveal-stagger.active>*:nth-child(3) {
    transition-delay: 0.3s;
    opacity: 1;
    transform: translateY(0);
}

.reveal-stagger.active>*:nth-child(4) {
    transition-delay: 0.4s;
    opacity: 1;
    transform: translateY(0);
}

.reveal-stagger.active>*:nth-child(5) {
    transition-delay: 0.5s;
    opacity: 1;
    transform: translateY(0);
}

.reveal-stagger.active>*:nth-child(6) {
    transition-delay: 0.6s;
    opacity: 1;
    transform: translateY(0);
}

.reveal-stagger.active>*:nth-child(7) {
    transition-delay: 0.7s;
    opacity: 1;
    transform: translateY(0);
}

.reveal-stagger.active>*:nth-child(8) {
    transition-delay: 0.8s;
    opacity: 1;
    transform: translateY(0);
}

/* ====== ENHANCED WHATSAPP BUTTON ====== */
.whatsapp-float {
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.5);
    transition: all 0.3s var(--transition-bounce);
}

.whatsapp-float:hover {
    transform: scale(1.15) rotate(5deg);
    box-shadow: 0 10px 35px rgba(37, 211, 102, 0.6);
}

/* Pulse Animation */
.whatsapp-float::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    background: rgba(37, 211, 102, 0.3);
    border-radius: 50%;
    animation: pulse 2s ease-out infinite;
    z-index: -1;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

/* ====== ENHANCED BACK TO TOP ====== */
.back-to-top {
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.2);
    transition: all 0.3s var(--transition-bounce);
}

.back-to-top:hover {
    background: var(--gradient-secondary);
    transform: translateY(-8px);
    box-shadow: var(--shadow-glow-teal);
}

/* ====== SCROLL PROGRESS BAR ENHANCEMENT ====== */
.scroll-progress-bar {
    background: var(--gradient-secondary);
    box-shadow: 0 0 10px rgba(13, 148, 136, 0.5);
}

/* ====== PREMIUM PAGE HEADER ====== */
.page-header {
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(13, 148, 136, 0.2) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 50%, rgba(212, 166, 83, 0.15) 0%, transparent 50%);
    opacity: 0.6;
}

.page-header h1 {
    position: relative;
    z-index: 1;
}

/* ====== LOADING SKELETON ====== */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: 8px;
}

@keyframes skeleton-loading {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* ====== ENHANCED FORM INPUTS ====== */
.form-input {
    transition: all 0.3s var(--transition-smooth);
    border: 2px solid #e2e8f0;
}

.form-input:focus {
    border-color: var(--color-secondary);
    box-shadow: 0 0 0 4px rgba(13, 148, 136, 0.1);
    transform: translateY(-2px);
}

/* ====== TOOLTIP STYLES ====== */
[data-tooltip] {
    position: relative;
    cursor: pointer;
}

[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    padding: 0.5rem 1rem;
    background: var(--color-primary);
    color: white;
    font-size: 0.85rem;
    border-radius: 8px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s var(--transition-smooth);
    z-index: 1000;
}

[data-tooltip]:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-5px);
}

/* ====== PRINT STYLES ====== */
@media print {

    .main-header,
    .whatsapp-float,
    .back-to-top,
    footer {
        display: none !important;
    }

    .hero-section {
        height: auto;
        min-height: auto;
        background: white !important;
        color: black !important;
    }

    .hero-overlay {
        display: 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;
    }
}

/* ====== ENHANCED CLIENT LOGOS ====== */
.clients-section .client-logo-item {
    transition: all 0.4s var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
}

.clients-section .client-logo-item:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3), 0 0 0 3px rgba(13, 148, 136, 0.3);
}

.clients-section .client-logo-item img {
    transition: all 0.4s var(--transition-smooth);
    object-fit: contain;
}

.clients-section .client-logo-item:hover img {
    transform: scale(1.05);
}