/* ============================================
   DF DEV - Premium Aesthetic Enhancements
   Final Touches & Visual Polish
   ============================================ */

/* ===== GLASSMORPHISM & PREMIUM EFFECTS ===== */
.glass-effect {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
}

.glass-effect-dark {
    background: rgba(10, 10, 10, 0.4);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(230, 57, 70, 0.15);
}

/* ===== ANIMATED BORDERS ===== */
.border-gradient {
    position: relative;
    background: var(--black-card);
}

.border-gradient::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius);
    padding: 1px;
    background: linear-gradient(135deg, var(--red), var(--blue), var(--red));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0.7;
    transition: opacity 0.3s ease;
    animation: gradientShift 3s ease infinite;
}

.border-gradient:hover::before {
    opacity: 1;
}

/* ===== PREMIUM HEADERS ===== */
.section-header-premium {
    position: relative;
    display: inline-block;
    margin-bottom: 10px;
}

.section-header-premium::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--red), var(--blue));
    border-radius: 2px;
    animation: expandWidth 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes expandWidth {
    to { width: 100%; }
}

/* ===== DECORATIVE ELEMENTS ===== */
.decorative-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: var(--red);
    border-radius: 50%;
    margin: 0 8px;
    animation: pulse 2s ease-in-out infinite;
}

.decorative-line {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--blue), transparent);
    margin: 20px 0;
}

.decorative-corner {
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid var(--red);
}

.corner-top-left {
    top: 0;
    left: 0;
    border-right: none;
    border-bottom: none;
    border-radius: 8px 0 0 0;
}

.corner-top-right {
    top: 0;
    right: 0;
    border-left: none;
    border-bottom: none;
    border-radius: 0 8px 0 0;
}

.corner-bottom-left {
    bottom: 0;
    left: 0;
    border-right: none;
    border-top: none;
    border-radius: 0 0 0 8px;
}

.corner-bottom-right {
    bottom: 0;
    right: 0;
    border-left: none;
    border-top: none;
    border-radius: 0 0 8px 0;
}

/* ===== PREMIUM CARDS ===== */
.card-premium {
    position: relative;
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.9), rgba(20, 20, 20, 0.9));
    border: 1px solid rgba(230, 57, 70, 0.2);
    border-radius: var(--radius-lg);
    padding: 32px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.card-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.card-premium:hover {
    border-color: var(--red);
    background: linear-gradient(135deg, rgba(26, 26, 26, 1), rgba(20, 20, 20, 1));
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(230, 57, 70, 0.2);
}

.card-premium:hover::before {
    left: 100%;
}

/* ===== PREMIUM BUTTONS ===== */
.btn-premium {
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
    background: var(--red);
    color: white;
    padding: 14px 32px;
    border-radius: var(--radius);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.btn-premium::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-premium:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(230, 57, 70, 0.4);
}

.btn-premium:hover::before {
    width: 300px;
    height: 300px;
}

.btn-premium-outline {
    background: transparent;
    border: 2px solid var(--blue);
    color: var(--blue);
}

.btn-premium-outline:hover {
    background: rgba(37, 99, 235, 0.1);
    border-color: var(--red);
    color: var(--red);
}

/* ===== PREMIUM INPUT ===== */
input.premium,
textarea.premium {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(37, 99, 235, 0.3);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    color: var(--white);
    font-family: 'Inter', sans-serif;
    transition: all 0.3s ease;
}

input.premium::placeholder,
textarea.premium::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

input.premium:focus,
textarea.premium:focus {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--red);
    box-shadow: 0 0 20px rgba(230, 57, 70, 0.2);
    outline: none;
}

/* ===== PREMIUM BADGES ===== */
.badge-premium {
    display: inline-block;
    padding: 6px 14px;
    background: linear-gradient(135deg, var(--red), #ff6b7a);
    color: white;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin: 4px;
    box-shadow: 0 4px 15px rgba(230, 57, 70, 0.3);
}

.badge-blue {
    background: linear-gradient(135deg, var(--blue), #60a5fa);
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

/* ===== GRADIENT TEXT VARIATIONS ===== */
.gradient-text-red {
    background: linear-gradient(135deg, var(--red), #ff6b7a, var(--red));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 200%;
    animation: gradientShift 3s ease infinite;
}

.gradient-text-blue {
    background: linear-gradient(135deg, var(--blue), #60a5fa, var(--blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 200%;
    animation: gradientShift 3s ease infinite;
}

.gradient-text-rainbow {
    background: linear-gradient(135deg, var(--red), var(--blue), #ff6b7a, var(--red));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 300% 300%;
    animation: gradientShift 4s ease infinite;
}

/* ===== PREMIUM SHADOWS ===== */
.shadow-red {
    box-shadow: 0 0 30px rgba(230, 57, 70, 0.2), inset 0 0 20px rgba(230, 57, 70, 0.05);
}

.shadow-blue {
    box-shadow: 0 0 30px rgba(37, 99, 235, 0.2), inset 0 0 20px rgba(37, 99, 235, 0.05);
}

.shadow-dual {
    box-shadow: 0 0 30px rgba(230, 57, 70, 0.15), 0 0 40px rgba(37, 99, 235, 0.15);
}

/* ===== TECH LINES ===== */
.tech-line {
    position: relative;
    display: inline-block;
}

.tech-line::before,
.tech-line::after {
    content: '\27E8';
    color: var(--blue);
    margin: 0 8px;
    animation: techPulse 2s ease infinite;
}

.tech-line::after {
    content: '\27E9';
    animation-delay: 0.3s;
}

@keyframes techPulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

/* ===== ANIMATED UNDERLINE ===== */
.underline-animated {
    position: relative;
    display: inline-block;
}

.underline-animated::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--red), var(--blue));
    transition: width 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.underline-animated:hover::after {
    width: 100%;
}

/* ===== FLOATING ELEMENTS ===== */
.float-1 { animation: float1 6s ease-in-out infinite; }
.float-2 { animation: float2 7s ease-in-out infinite; }
.float-3 { animation: float3 8s ease-in-out infinite; }

@keyframes float1 {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

@keyframes float2 {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-25px) rotate(-5deg); }
}

@keyframes float3 {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(3deg); }
}

/* ===== GLOW EFFECTS ===== */
.glow-red {
    box-shadow: 0 0 20px rgba(230, 57, 70, 0.4);
}

.glow-blue {
    box-shadow: 0 0 20px rgba(37, 99, 235, 0.4);
}

.glow-dual {
    box-shadow: 0 0 20px rgba(230, 57, 70, 0.2), 0 0 25px rgba(37, 99, 235, 0.2);
}

.glow-animated {
    animation: glowAnimation 3s ease-in-out infinite;
}

@keyframes glowAnimation {
    0%, 100% { box-shadow: 0 0 20px rgba(230, 57, 70, 0.4); }
    50% { box-shadow: 0 0 40px rgba(230, 57, 70, 0.6), 0 0 60px rgba(37, 99, 235, 0.3); }
}

/* ===== BACKDROP BLUR VARIATIONS ===== */
.blur-sm { backdrop-filter: blur(10px); }
.blur-md { backdrop-filter: blur(20px); }
.blur-lg { backdrop-filter: blur(30px); }

/* ===== SMOOTH HOVER ELEVATION ===== */
.hover-lift {
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* ===== ICON STYLING ===== */
.icon-premium {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, rgba(230, 57, 70, 0.1), rgba(37, 99, 235, 0.1));
    border: 1px solid rgba(230, 57, 70, 0.2);
    border-radius: 12px;
    font-size: 24px;
    transition: all 0.3s ease;
}

.icon-premium:hover {
    background: linear-gradient(135deg, rgba(230, 57, 70, 0.2), rgba(37, 99, 235, 0.2));
    border-color: var(--red);
    transform: scale(1.1);
}

/* ===== PREMIUM SEPARATOR ===== */
.separator-premium {
    position: relative;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--blue), var(--red), transparent);
    margin: 40px 0;
}

.separator-premium::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 12px;
    height: 12px;
    background: var(--red);
    border-radius: 50%;
    box-shadow: 0 0 15px rgba(230, 57, 70, 0.5);
}

/* ===== SMOOTH TRANSITIONS ===== */
.transition-all {
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.transition-fast {
    transition: all 0.2s ease;
}

.transition-slow {
    transition: all 0.5s ease;
}

/* ===== TEXT SHADOW EFFECTS ===== */
.text-shadow-glow {
    text-shadow: 0 0 20px rgba(230, 57, 70, 0.5);
}

.text-shadow-blue {
    text-shadow: 0 0 20px rgba(37, 99, 235, 0.5);
}

/* ===== BACKDROP EFFECTS ===== */
.backdrop-dark {
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(10px);
}

.backdrop-light {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
}

/* ===== ANIMATED BACKGROUND ===== */
.bg-animated {
    background: linear-gradient(-45deg, #0a0a0a, #1a1a1a, #0a0a0a, #141414);
    background-size: 400% 400%;
    animation: bgShift 15s ease infinite;
}

@keyframes bgShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ===== RESPONSIVE ENHANCEMENTS ===== */
@media (max-width: 768px) {
    .card-premium {
        padding: 24px;
    }

    .btn-premium {
        padding: 12px 24px;
    }

    .icon-premium {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }

    .decorative-corner {
        width: 15px;
        height: 15px;
    }
}
