/**
 * Additional Component Styles
 * The Dynamic Developer
 */

/* ========================================
   WHATSAPP FLOATING BUTTON
   ======================================== */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: all var(--transition-normal);
    animation: pulse 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.6);
}

@keyframes pulse {

    0%,
    100% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    }

    50% {
        box-shadow: 0 4px 30px rgba(37, 211, 102, 0.7);
    }
}

/* ========================================
   SCROLL TO TOP BUTTON
   ======================================== */
.scroll-to-top {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
    z-index: 998;
    box-shadow: var(--shadow-md);
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

/* ========================================
   NOTIFICATION SYSTEM
   ======================================== */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    padding: var(--spacing-md);
    border-radius: var(--border-radius-sm);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    max-width: 400px;
    z-index: 9999;
    animation: slideInRight 0.3s ease-out;
}

.notification-success {
    border-left: 4px solid var(--accent-green);
}

.notification-error {
    border-left: 4px solid #EF4444;
}

.notification i {
    font-size: 1.5rem;
}

.notification-success i {
    color: var(--accent-green);
}

.notification-error i {
    color: #EF4444;
}

.notification-close {
    background: none;
    border: none;
    cursor: pointer;
    margin-left: auto;
    color: var(--text-secondary);
    transition: var(--transition-fast);
}

.notification-close:hover {
    color: var(--text-primary);
}

.notification.fade-out {
    animation: slideOutRight 0.3s ease-out;
}

@keyframes slideInRight {
    from {
        transform: translateX(400px);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }

    to {
        transform: translateX(400px);
        opacity: 0;
    }
}

/* ========================================
   FORM ERROR STATES
   ======================================== */
.form-control.error {
    border-color: #EF4444;
}

.error-message {
    color: #EF4444;
    font-size: 0.875rem;
    margin-top: var(--spacing-xs);
    display: block;
}

/* ========================================
   STATS/COUNTER SECTION
   ======================================== */
.stats-section {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    padding: var(--spacing-2xl) 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-xl);
    text-align: center;
}

.stat-item {
    padding: var(--spacing-md);
}

.stat-number {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    margin-bottom: var(--spacing-xs);
    color: var(--secondary-color);
}

.stat-label {
    font-size: 1.125rem;
    opacity: 0.9;
}

/* ========================================
   TECH STACK ICONS
   ======================================== */
.tech-stack {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--spacing-lg);
    margin-top: var(--spacing-xl);
}

.tech-icon {
    width: 80px;
    height: 80px;
    background: white;
    border-radius: var(--border-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.tech-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.tech-icon:hover::before {
    opacity: 0.1;
}

.tech-icon:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: var(--shadow-md);
}

.tech-icon img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    position: relative;
    z-index: 1;
}

/* ========================================
   TESTIMONIAL SLIDER
   ======================================== */
.testimonial-slider {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.testimonial-slide {
    text-align: center;
    padding: var(--spacing-xl);
}

.testimonial-content {
    font-size: 1.25rem;
    font-style: italic;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-lg);
    line-height: 1.8;
}

.testimonial-content::before {
    content: '"';
    font-size: 4rem;
    color: var(--primary-light);
    opacity: 0.3;
    line-height: 0;
    display: block;
    margin-bottom: var(--spacing-md);
}

.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-md);
}

.testimonial-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-light);
}

.testimonial-info h4 {
    margin-bottom: 0.25rem;
    color: var(--text-primary);
}

.testimonial-info p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.9375rem;
}

.testimonial-rating {
    color: var(--secondary-color);
    margin-top: var(--spacing-xs);
}

/* ========================================
   PORTFOLIO GRID
   ======================================== */
.portfolio-filters {
    display: flex;
    justify-content: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-xl);
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.625rem 1.5rem;
    background: white;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    transition: all var(--transition-normal);
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--spacing-lg);
}

.portfolio-item {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-normal);
}

.portfolio-item:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.portfolio-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.3) 50%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: var(--spacing-md);
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.portfolio-title {
    color: white;
    font-size: 1.25rem;
    margin-bottom: var(--spacing-xs);
}

.portfolio-category {
    color: var(--secondary-color);
    font-size: 0.875rem;
    margin-bottom: var(--spacing-sm);
}

.portfolio-links {
    display: flex;
    gap: var(--spacing-sm);
}

.portfolio-link {
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    transition: all var(--transition-fast);
}

.portfolio-link:hover {
    background: var(--primary-color);
    color: white;
    transform: scale(1.1);
}

/* ========================================
   CTA BANNER
   ======================================== */
.cta-banner {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    text-align: center;
    padding: var(--spacing-2xl);
    border-radius: var(--border-radius-lg);
    position: relative;
    overflow: hidden;
}

.cta-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.cta-banner h2 {
    color: white;
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    margin-bottom: var(--spacing-md);
}

.cta-banner p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.125rem;
    margin-bottom: var(--spacing-lg);
}

/* ========================================
   BREADCRUMB
   ======================================== */
.breadcrumb {
    background: var(--bg-primary);
    padding: var(--spacing-md) 0;
    margin-bottom: var(--spacing-xl);
}

.breadcrumb-list {
    display: flex;
    list-style: none;
    gap: var(--spacing-xs);
    flex-wrap: wrap;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    color: var(--text-secondary);
}

.breadcrumb-item::after {
    content: '/';
    margin-left: var(--spacing-xs);
}

.breadcrumb-item:last-child::after {
    display: none;
}

.breadcrumb-item.active {
    color: var(--primary-color);
}

/* ========================================
   MOBILE RESPONSIVE ADJUSTMENTS
   ======================================== */
@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }

    .scroll-to-top {
        bottom: 80px;
        right: 20px;
        width: 45px;
        height: 45px;
    }

    .notification {
        left: 20px;
        right: 20px;
        max-width: none;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-md);
    }

    .tech-stack {
        gap: var(--spacing-md);
    }

    .tech-icon {
        width: 60px;
        height: 60px;
    }

    .tech-icon img {
        width: 35px;
        height: 35px;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
    }
}