/* ========================================
   SKILLS, TESTIMONIALS, CONTACT & FOOTER
   Continuación de components.css
   ======================================== */

/* ========================================
   SKILLS SECTION
   ======================================== */

.skills-section {
    background: rgba(255, 255, 255, 0.02);
}

.skills-grid {
    display: grid;
    gap: 3rem;
    align-items: center;
    max-width: 64rem;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .skills-grid {
        grid-template-columns: 1fr 1fr;
        gap: 5rem;
    }
}

.skills-description {
    color: var(--muted-foreground);
    line-height: 1.7;
    margin-top: 1.5rem;
}

.skills-bars {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.skill-item {
    width: 100%;
}

.skill-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.skill-name {
    font-weight: 500;
    color: var(--foreground);
}

.skill-percentage {
    font-weight: 600;
    color: var(--primary);
}

.skill-bar-wrapper {
    height: 0.5rem;
    background: var(--secondary);
    border-radius: 9999px;
    overflow: hidden;
}

.skill-bar {
    height: 100%;
}

.skill-bar-fill {
    height: 100%;
    background: linear-gradient(to right, var(--primary), rgba(79, 209, 197, 0.7));
    border-radius: 9999px;
    width: 0;
    transition: width 1s ease-out;
}

.skill-bar.animated .skill-bar-fill {
    width: var(--skill-width, 0%);
}

/* ========================================
   TESTIMONIALS SECTION
   ======================================== */

.testimonials-section {
    position: relative;
    overflow: hidden;
}

.testimonials-bg-accent {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(79, 209, 197, 0.1) 0%, transparent 70%);
    filter: blur(120px);
    opacity: 0.5;
    z-index: 1;
}

.testimonials-grid {
    display: grid;
    gap: 2rem;
    max-width: 64rem;
    margin: 0 auto;
}

.testimonial-card {
    position: relative;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    transition: all 0.5s ease;
}

.testimonial-card:hover {
    border-color: rgba(79, 209, 197, 0.3);
    box-shadow: 0 20px 40px rgba(79, 209, 197, 0.1);
}

.testimonial-card .card-inner {
    padding: 2.5rem;
}

@media (min-width: 768px) {
    .testimonial-card .card-inner {
        padding: 3rem;
    }
}

.quote-icon {
    position: absolute;
    top: -1.5rem;
    left: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: var(--primary);
    color: var(--primary-foreground);
}

@media (min-width: 768px) {
    .quote-icon {
        left: 3rem;
    }
}

.testimonial-content {
    margin-top: 1rem;
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--foreground);
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .testimonial-content {
        font-size: 1.25rem;
    }
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    overflow: hidden;
    background: rgba(79, 209, 197, 0.2);
    flex-shrink: 0;
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(79, 209, 197, 0.3), rgba(79, 209, 197, 0.1));
}

.author-name {
    font-weight: 600;
    color: var(--foreground);
    margin-bottom: 0.25rem;
}

.author-role {
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

.testimonial-decoration {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 8rem;
    height: 8rem;
    background: linear-gradient(to top left, rgba(79, 209, 197, 0.05), transparent);
    border-radius: 0 0 var(--radius-lg) 0;
}

/* ========================================
   CONTACT SECTION
   ======================================== */

.contact-section {
    position: relative;
}

.contact-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, var(--background), rgba(255, 255, 255, 0.02), var(--background));
    z-index: 0;
}

.contact-section .container {
    position: relative;
    z-index: 2;
}

.contact-grid {
    display: grid;
    gap: 1rem;
    margin-bottom: 3rem;
}

@media (min-width: 640px) {
    .contact-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .contact-grid {
        grid-template-columns: 2fr 1fr;
        gap: 4rem;
    }
}

.contact-card {
    display: block;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.5s ease;
}

.contact-card:hover {
    border-color: rgba(79, 209, 197, 0.5);
    background: rgba(255, 255, 255, 0.05);
}

.contact-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: var(--radius-lg);
    background: rgba(79, 209, 197, 0.1);
    color: var(--primary);
    margin-bottom: 1rem;
    transition: background 0.3s ease;
}

.contact-card:hover .contact-icon {
    background: rgba(79, 209, 197, 0.2);
}

.contact-label {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    margin-bottom: 0.25rem;
}

.contact-value {
    font-weight: 500;
    color: var(--foreground);
    transition: color 0.3s ease;
}

.contact-card:hover .contact-value {
    color: var(--primary);
}

.contact-cta-wrapper {
    text-align: center;
}

.btn-large {
    padding: 1.25rem 2.5rem;
    font-size: 1.125rem;
    box-shadow: 0 10px 30px rgba(79, 209, 197, 0.25);
}

.btn-large:hover {
    transform: scale(1.05);
    box-shadow: 0 20px 40px rgba(79, 209, 197, 0.3);
}

/* ========================================
   FOOTER
   ======================================== */

.site-footer {
    padding: 4rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-grid {
    display: grid;
    gap: 3rem;
    margin-bottom: 3rem;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1.5fr 1fr 1fr 1fr;
    }
}

.footer-brand .footer-logo-text {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--foreground);
    margin-bottom: 1rem;
    display: block;
}

.footer-description {
    font-size: 0.875rem;
    line-height: 1.6;
    color: var(--muted-foreground);
    margin-bottom: 1.5rem;
}

.social-icons {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: var(--secondary);
    color: var(--foreground);
    transition: all 0.3s ease;
}

.social-icon:hover {
    background: rgba(79, 209, 197, 0.2);
    color: var(--primary);
    transform: translateY(-2px);
}

.footer-heading {
    font-size: 1rem;
    font-weight: 600;
    color: var(--foreground);
    margin-bottom: 1rem;
}

.footer-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-menu li {
    margin-bottom: 0.75rem;
}

.footer-menu li a {
    font-size: 0.875rem;
    color: var(--muted-foreground);
    transition: color 0.3s ease;
}

.footer-menu li a:hover {
    color: var(--primary);
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
    }
}

.copyright {
    font-size: 0.875rem;
    color: var(--muted-foreground);
}

.credits {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
}

/* ========================================
   ABOUT PORTFOLIO SECTION
   ======================================== */

/* ========================================
   ABOUT PORTFOLIO SECTION
   ======================================== */

.about-portfolio-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    /* Force 2 columns always */
    gap: 1.5rem;
    margin-top: 2rem;
}

@media (min-width: 768px) {
    .about-portfolio-grid {
        gap: 3rem;
    }
}

.about-project-card {
    display: block;
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    /* Slightly more visible border */
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.about-project-card:hover {
    border-color: rgba(79, 209, 197, 0.5);
    /* Primary color border on hover */
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 20px rgba(79, 209, 197, 0.2);
    /* Glow effect */
}

.project-image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    /* Maintain cinematic aspect ratio */
    overflow: hidden;
}

.project-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.about-project-card:hover .project-image-wrapper img {
    transform: scale(1.1);
}

/* Glass overlay on image for text contrast if needed, or just decoration */
.project-image-wrapper::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 60%);
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.about-project-card:hover .project-image-wrapper::after {
    opacity: 0.4;
}

.project-card-content {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    background: rgba(10, 10, 10, 0.5);
    /* Darker background for text area */
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.project-card-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--foreground);
    margin: 0;
    line-height: 1.3;
}

.project-card-link {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 0.4rem;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 0.25rem;
}

.project-card-link svg {
    transition: transform 0.3s ease;
}

.about-project-card:hover .project-card-link svg {
    transform: translateX(3px) translateY(-3px);
    /* Diagonal movement */
}

/* ========================================
   RESPONSIVE UTILITIES
   ======================================== */

@media (max-width: 767px) {
    .hide-mobile {
        display: none !important;
    }
}

@media (min-width: 768px) {
    .show-mobile {
        display: none !important;
    }
}

/* ========================================
   ACCESSIBILITY
   ======================================== */

.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary);
    color: var(--primary-foreground);
    padding: 8px;
    text-decoration: none;
    z-index: 100;
}

.skip-link:focus {
    top: 0;
}

/* Focus visible styles */
:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}