/*
 * Enhanced Styles for RES Theme
 * Additional visual enhancements with SVGs, animations, and decorative elements
 */

/* Animated Blob Backgrounds */
@keyframes blob {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    25% {
        transform: translate(20px, -50px) scale(1.1);
    }
    50% {
        transform: translate(-20px, 20px) scale(0.9);
    }
    75% {
        transform: translate(50px, 50px) scale(1.05);
    }
}

@keyframes blobRotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.blob-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.blob {
    position: absolute;
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    opacity: 0.15;
    filter: blur(40px);
}

.blob-1 {
    width: 500px;
    height: 500px;
    background: var(--primary-color);
    top: -10%;
    left: -10%;
    animation: blob 20s infinite, blobRotate 30s infinite linear;
}

.blob-2 {
    width: 400px;
    height: 400px;
    background: var(--primary-dark);
    bottom: -10%;
    right: -10%;
    animation: blob 25s infinite reverse, blobRotate 25s infinite linear reverse;
}

.blob-3 {
    width: 300px;
    height: 300px;
    background: var(--primary-light);
    top: 50%;
    left: 50%;
    animation: blob 30s infinite, blobRotate 35s infinite linear;
}

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

.float-animation {
    animation: float 6s ease-in-out infinite;
}

/* Pulse Animation */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }
}

.pulse-animation {
    animation: pulse 3s ease-in-out infinite;
}

/* Wave Animation */
@keyframes wave {
    0% {
        transform: translateX(0) translateY(0);
    }
    50% {
        transform: translateX(-25%) translateY(-10px);
    }
    100% {
        transform: translateX(-50%) translateY(0);
    }
}

.wave-container {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 200%;
    height: 100px;
    animation: wave 20s linear infinite;
}

/* Decorative Shapes */
.decorative-shape {
    position: absolute;
    opacity: 0.1;
    z-index: 0;
}

.shape-circle {
    border-radius: 50%;
    background: var(--primary-color);
}

.shape-square {
    background: var(--primary-color);
    transform: rotate(45deg);
}

.shape-triangle {
    width: 0;
    height: 0;
    border-left: 50px solid transparent;
    border-right: 50px solid transparent;
    border-bottom: 100px solid var(--primary-color);
}

/* Icon Enhancements */
.icon-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.icon-wrapper::before {
    content: '';
    position: absolute;
    width: 120%;
    height: 120%;
    background: var(--primary-color);
    opacity: 0.1;
    border-radius: 50%;
    transform: scale(0);
    transition: transform 0.3s;
}

.icon-wrapper:hover::before {
    transform: scale(1);
    animation: pulse 1.5s infinite;
}

/* Enhanced Card Styles */
.card-enhanced {
    position: relative;
    overflow: hidden;
}

.card-enhanced::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;
}

.card-enhanced:hover::before {
    left: 100%;
}

.card-corner {
    position: absolute;
    width: 40px;
    height: 40px;
}

.card-corner-tl {
    top: 0;
    left: 0;
    border-top: 3px solid var(--primary-color);
    border-left: 3px solid var(--primary-color);
}

.card-corner-br {
    bottom: 0;
    right: 0;
    border-bottom: 3px solid var(--primary-color);
    border-right: 3px solid var(--primary-color);
}

/* Gradient Text */
.gradient-text {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Number Badge */
.number-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    font-weight: 700;
    font-size: 1.2rem;
    border-radius: 50%;
    box-shadow: 0 5px 15px rgba(0, 150, 117, 0.3);
    position: relative;
}

.number-badge::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

/* Timeline Connector */
.timeline-line {
    position: absolute;
    left: 25px;
    top: 50px;
    width: 2px;
    height: calc(100% - 50px);
    background: linear-gradient(to bottom, var(--primary-color), transparent);
}

/* Hover Tilt Effect */
.tilt-card {
    transform-style: preserve-3d;
    transition: transform 0.3s;
}

.tilt-card:hover {
    transform: perspective(1000px) rotateX(5deg) rotateY(5deg);
}

/* Glowing Border */
@keyframes glow {
    0%, 100% {
        box-shadow: 0 0 5px var(--primary-color), 0 0 10px var(--primary-color);
    }
    50% {
        box-shadow: 0 0 20px var(--primary-color), 0 0 30px var(--primary-color);
    }
}

.glow-border {
    animation: glow 3s ease-in-out infinite;
}

/* Image Overlay Effects */
.image-overlay {
    position: relative;
    overflow: hidden;
}

.image-overlay::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent, rgba(0, 150, 117, 0.7));
    opacity: 0;
    transition: opacity 0.4s;
}

.image-overlay:hover::after {
    opacity: 1;
}

.image-overlay-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.4s;
    z-index: 1;
    color: white;
    text-align: center;
}

.image-overlay:hover .image-overlay-content {
    opacity: 1;
}

/* Scroll Progress Bar */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
    z-index: 9999;
    transform-origin: left;
    transition: transform 0.1s;
}

/* Loading Spinner */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(0, 150, 117, 0.2);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Badge Styles */
.badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-primary {
    background: var(--primary-color);
    color: white;
}

.badge-outline {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.badge-new {
    background: #ff6b6b;
    color: white;
    position: relative;
}

.badge-new::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    background: inherit;
    border-radius: inherit;
    transform: translate(-50%, -50%);
    animation: pulse 1.5s infinite;
}

/* Ribbon */
.ribbon {
    position: absolute;
    right: -5px;
    top: 20px;
    background: var(--primary-color);
    color: white;
    padding: 8px 15px;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.ribbon::before {
    content: '';
    position: absolute;
    right: 0;
    bottom: -10px;
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid var(--primary-dark);
    border-top: 10px solid var(--primary-dark);
}

/* Social Share Buttons */
.social-share {
    display: flex;
    gap: 10px;
    align-items: center;
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.3s;
    cursor: pointer;
}

.social-icon:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.social-icon.facebook { background: #3b5998; }
.social-icon.twitter { background: #1da1f2; }
.social-icon.linkedin { background: #0077b5; }
.social-icon.instagram { background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); }
.social-icon.youtube { background: #ff0000; }
.social-icon.whatsapp { background: #25d366; }

/* Tooltip */
.tooltip-wrapper {
    position: relative;
    display: inline-block;
}

.tooltip-text {
    visibility: hidden;
    opacity: 0;
    background: var(--text-dark);
    color: white;
    text-align: center;
    padding: 8px 12px;
    border-radius: 6px;
    position: absolute;
    z-index: 1000;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    font-size: 0.85rem;
    transition: all 0.3s;
}

.tooltip-text::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: var(--text-dark) transparent transparent transparent;
}

.tooltip-wrapper:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

/* Progress Bars */
.progress-bar-container {
    width: 100%;
    height: 8px;
    background: #e9ecef;
    border-radius: 10px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
    border-radius: 10px;
    transition: width 1s ease-in-out;
    position: relative;
}

.progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

/* Skill Tags */
.skill-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 25px;
    margin: 5px;
    transition: all 0.3s;
    cursor: pointer;
}

.skill-tag:hover {
    border-color: var(--primary-color);
    background: rgba(0, 150, 117, 0.05);
    transform: translateY(-2px);
}

.skill-tag i {
    color: var(--primary-color);
}

/* Image Zoom on Hover */
.zoom-image-container {
    overflow: hidden;
    border-radius: 15px;
}

.zoom-image {
    transition: transform 0.5s ease;
}

.zoom-image-container:hover .zoom-image {
    transform: scale(1.15);
}

/* Parallax Effect */
.parallax-element {
    transition: transform 0.3s ease-out;
}

/* Stagger Animation */
@keyframes staggerFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stagger-item {
    opacity: 0;
    animation: staggerFadeIn 0.6s ease forwards;
}

.stagger-item:nth-child(1) { animation-delay: 0.1s; }
.stagger-item:nth-child(2) { animation-delay: 0.2s; }
.stagger-item:nth-child(3) { animation-delay: 0.3s; }
.stagger-item:nth-child(4) { animation-delay: 0.4s; }
.stagger-item:nth-child(5) { animation-delay: 0.5s; }
.stagger-item:nth-child(6) { animation-delay: 0.6s; }

/* Enhanced Button Styles */
.btn-enhanced {
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-enhanced::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-enhanced:hover::before {
    width: 300px;
    height: 300px;
}

.btn-icon {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-icon i {
    transition: transform 0.3s;
}

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

/* Video Background Overlay */
.video-overlay {
    position: relative;
    overflow: hidden;
}

.video-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.video-overlay > * {
    position: relative;
    z-index: 2;
}

/* Responsive Utilities */
@media (max-width: 768px) {
    .blob {
        display: none;
    }

    .hide-mobile {
        display: none !important;
    }
}

@media (min-width: 769px) {
    .show-mobile {
        display: none !important;
    }
}
