/* Sobre Mi - Tema Negro + Dorado + Blanco */

/* Override variables para consistencia */
:root {
    --primary-color: #D4AF37;
    --secondary-color: #A67C00;
    --accent-color: #F9D976;
    --text-color: #ffffff;
    --light-text: #d1d1d1;
    --bg-color: #0a0a0a;
    --card-bg: #141414;
    --border-color: #2a2a2a;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -1px rgba(0, 0, 0, 0.3);
    --transition: all 0.3s ease;
}

/* Back Navigation */
.back-nav {
    position: fixed;
    top: 1.25rem;
    left: 1.5rem;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.25rem;
    background: rgba(5, 5, 5, 0.85);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 8px;
    color: var(--light-text);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: var(--transition);
}

.back-nav:hover {
    color: var(--primary-color);
    border-color: rgba(212, 175, 55, 0.5);
    background: rgba(5, 5, 5, 0.95);
}

.back-nav i {
    font-size: 0.8rem;
    color: var(--primary-color);
}

/* Hero Profile Section */
.hero-profile {
    background: linear-gradient(135deg, #050505 0%, #0a0a0a 40%, #111111 100%);
    color: var(--text-color);
    padding: 6rem 0 4rem;
    position: relative;
    overflow: hidden;
}

.hero-profile::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(ellipse at 30% 50%, rgba(212, 175, 55, 0.08) 0%, transparent 50%),
                radial-gradient(ellipse at 70% 50%, rgba(166, 124, 0, 0.06) 0%, transparent 50%);
    animation: heroGlow 8s ease-in-out infinite alternate;
    z-index: 1;
}

@keyframes heroGlow {
    0% { transform: translate(0, 0) rotate(0deg); }
    100% { transform: translate(2%, -2%) rotate(3deg); }
}

.hero-profile::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    z-index: 2;
}

.hero-profile .container {
    position: relative;
    z-index: 3;
}

.profile-hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 2.5rem;
}

.profile-name {
    font-size: 4rem;
    margin-bottom: 0.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, #ffffff 0%, var(--accent-color) 50%, #ffffff 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shimmer 6s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { background-position: 0% center; }
    50% { background-position: 200% center; }
}

.profile-title {
    font-size: 1.8rem;
    margin-bottom: 0.75rem;
    font-weight: 400;
    color: var(--primary-color);
}

.profile-subtitle {
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
    color: var(--light-text);
    font-style: italic;
}

.profile-stats {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-profile .stat-item {
    text-align: center;
    background: rgba(212, 175, 55, 0.05);
    padding: 1.5rem 2rem;
    border-radius: 12px;
    border: 1px solid rgba(212, 175, 55, 0.15);
    transition: var(--transition);
}

.hero-profile .stat-item:hover {
    background: rgba(212, 175, 55, 0.1);
    border-color: rgba(212, 175, 55, 0.3);
    transform: translateY(-4px);
}

.hero-profile .stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    display: block;
    margin-bottom: 0.25rem;
    color: var(--primary-color);
    text-shadow: 0 0 20px rgba(212, 175, 55, 0.3);
}

.hero-profile .stat-label {
    font-size: 0.8rem;
    color: var(--light-text);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.profile-actions {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    justify-content: center;
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #0a0a0a;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 700;
    transition: var(--transition);
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    text-decoration: none;
    text-align: center;
    display: inline-block;
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
    transform: translateY(-2px);
    box-shadow: 0 8px 20px -4px rgba(212, 175, 55, 0.4);
    color: #0a0a0a;
}

.btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    padding: 1rem 2rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
    text-transform: uppercase;
    font-size: 0.9rem;
    text-decoration: none;
    text-align: center;
    display: inline-block;
    letter-spacing: 0.5px;
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: #0a0a0a;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px -4px rgba(212, 175, 55, 0.4);
}

/* Main Profile Content */
.profile-main {
    background-color: var(--bg-color);
    padding: 4rem 0;
}

.profile-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Sidebar */
.profile-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.sidebar-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.sidebar-card:hover {
    transform: translateY(-2px);
    border-color: rgba(212, 175, 55, 0.3);
}

.sidebar-card h3 {
    color: var(--text-color);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    border-bottom: 1px solid rgba(212, 175, 55, 0.3);
    padding-bottom: 0.75rem;
    text-align: center;
}

.sidebar-card h3 i {
    color: var(--primary-color);
    font-size: 1rem;
}

/* Contact Info in Sidebar */
.sidebar-card .contact-info {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.sidebar-card .contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    transition: var(--transition);
    border: none;
    width: auto;
    height: auto;
    justify-content: flex-start;
}

.sidebar-card .contact-item:hover {
    background: rgba(212, 175, 55, 0.08);
    transform: translateX(4px);
}

.sidebar-card .contact-item i {
    font-size: 1rem;
    color: var(--primary-color);
    width: auto;
    height: auto;
    background: none;
    border-radius: 0;
    flex-shrink: 0;
}

.sidebar-card .contact-item:hover i {
    color: var(--accent-color);
}

.sidebar-card .contact-item span {
    color: var(--light-text);
    font-size: 0.9rem;
}

/* Skills */
.skill-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.skill-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.skill-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    color: var(--text-color);
    font-size: 0.9rem;
}

.skill-percent {
    font-size: 0.8rem;
    color: var(--primary-color);
    font-weight: 600;
}

.skill-bar {
    height: 6px;
    background: var(--border-color);
    border-radius: 3px;
    overflow: hidden;
}

.skill-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 3px;
    transition: width 1.5s ease;
    box-shadow: 0 0 8px rgba(212, 175, 55, 0.3);
}

.js-fill { width: 90%; }
.react-fill { width: 85%; }
.node-fill { width: 80%; }
.mysql-fill { width: 75%; }

/* Tools */
.tools-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
    justify-items: center;
}

.tool-chip {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 0.75rem;
    background: rgba(212, 175, 55, 0.05);
    border: 1px solid rgba(212, 175, 55, 0.1);
    border-radius: 8px;
    transition: var(--transition);
    cursor: default;
    font-size: 0.85rem;
    color: var(--light-text);
}

.tool-chip:hover {
    background: rgba(212, 175, 55, 0.1);
    border-color: rgba(212, 175, 55, 0.3);
    color: var(--text-color);
    transform: none;
}

.tool-chip i {
    font-size: 0.9rem;
    color: var(--primary-color);
}

.tool-chip:hover i {
    color: var(--accent-color);
}

/* Languages */
.language-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.language-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    transition: var(--transition);
    color: var(--light-text);
}

.language-item:hover {
    background: rgba(212, 175, 55, 0.05);
}

.language-level {
    padding: 0.2rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.native {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.intermediate {
    background: rgba(212, 175, 55, 0.15);
    color: var(--primary-color);
    border: 1px solid rgba(212, 175, 55, 0.3);
}

/* Content Sections */
.content-section {
    background: var(--card-bg);
    padding: 2.5rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    margin-bottom: 2rem;
    transition: var(--transition);
}

.content-section:hover {
    border-color: rgba(212, 175, 55, 0.2);
}

.content-section h2 {
    color: var(--text-color);
    margin-bottom: 2rem;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(212, 175, 55, 0.3);
    text-align: center;
}

.content-section h2 i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

/* Summary */
.summary-text {
    line-height: 1.8;
    color: var(--light-text);
    text-align: center;
}

.summary-text p {
    margin-bottom: 1.25rem;
    font-size: 1rem;
}

.summary-text p:last-child {
    margin-bottom: 0;
}

/* Experience */
.experience-timeline {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.exp-item {
    border-left: 2px solid rgba(212, 175, 55, 0.3);
    padding-left: 2rem;
    position: relative;
}

.exp-item::before {
    content: '';
    position: absolute;
    left: -5px;
    top: 0;
    width: 8px;
    height: 8px;
    background-color: var(--primary-color);
    border-radius: 50%;
    box-shadow: 0 0 0 3px var(--card-bg), 0 0 0 5px rgba(212, 175, 55, 0.3);
}

.exp-header {
    display: flex;
    justify-content: center;
    align-items: baseline;
    margin-bottom: 0.75rem;
    gap: 1.5rem;
    flex-wrap: wrap;
    text-align: center;
}

.exp-header h3 {
    color: var(--text-color);
    font-size: 1.25rem;
    margin: 0;
}

.exp-date {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.exp-description {
    color: var(--light-text);
    margin-bottom: 1.25rem;
    line-height: 1.6;
    font-size: 0.95rem;
    text-align: center;
}

.exp-achievements {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
}

.exp-achievements li {
    padding: 0.6rem 0.75rem;
    background: rgba(212, 175, 55, 0.03);
    border-radius: 6px;
    font-size: 0.85rem;
    color: var(--light-text);
    padding-left: 1.5rem;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.03);
}

.exp-achievements li::before {
    content: '';
    position: absolute;
    left: 0.6rem;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 5px;
    background: var(--primary-color);
    border-radius: 50%;
}

/* Projects Grid (Sobre Mi) */
.profile-content .projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.profile-content .project-card {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    transition: var(--transition);
    background: rgba(255, 255, 255, 0.02);
    box-shadow: none;
    height: auto;
    overflow: visible;
}

.profile-content .project-card:hover {
    border-color: rgba(212, 175, 55, 0.4);
    background: rgba(212, 175, 55, 0.03);
    transform: translateY(-4px);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

.project-header {
    display: flex;
    justify-content: center;
    align-items: baseline;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.75rem;
    gap: 0.75rem;
    flex-wrap: wrap;
    text-align: center;
}

.project-header h3 {
    color: var(--text-color);
    margin: 0;
    font-size: 1.1rem;
}

.project-type {
    background: rgba(212, 175, 55, 0.15);
    color: var(--primary-color);
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    white-space: nowrap;
    border: 1px solid rgba(212, 175, 55, 0.3);
}

.profile-content .project-card p {
    color: var(--light-text);
    margin-bottom: 1.25rem;
    line-height: 1.6;
    font-size: 0.9rem;
    text-align: center;
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    justify-content: center;
}

.project-tech span {
    background: rgba(212, 175, 55, 0.08);
    color: var(--accent-color);
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
    border: 1px solid rgba(212, 175, 55, 0.2);
}

/* Philosophy Grid */
.philosophy-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.philosophy-item {
    display: flex;
    gap: 1.25rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    transition: var(--transition);
}

.philosophy-item:hover {
    background: rgba(212, 175, 55, 0.03);
    border-color: rgba(212, 175, 55, 0.3);
    transform: translateY(-3px);
}

.philosophy-icon {
    background: rgba(212, 175, 55, 0.1);
    color: var(--primary-color);
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.philosophy-content h4 {
    color: var(--text-color);
    margin-bottom: 0.4rem;
    font-size: 1.05rem;
}

.philosophy-content p {
    color: var(--light-text);
    line-height: 1.6;
    font-size: 0.9rem;
}

/* Testimonials */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.02);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    border-left: 3px solid var(--primary-color);
    transition: var(--transition);
}

.testimonial-card:hover {
    border-color: rgba(212, 175, 55, 0.3);
    border-left-color: var(--accent-color);
    background: rgba(212, 175, 55, 0.02);
}

.testimonial-quote {
    position: relative;
    margin-bottom: 1.5rem;
}

.testimonial-quote i {
    color: var(--primary-color);
    font-size: 2rem;
    opacity: 0.2;
    position: absolute;
    top: -0.5rem;
    left: -0.5rem;
}

.testimonial-quote p {
    font-style: italic;
    color: var(--light-text);
    font-size: 0.95rem;
    line-height: 1.7;
    padding-left: 1.5rem;
    text-align: center;
}

.testimonial-author {
    text-align: center;
    border-top: 1px solid var(--border-color);
    padding-top: 1rem;
}

.testimonial-author strong {
    color: var(--text-color);
    display: block;
    font-size: 1rem;
    margin-bottom: 0.15rem;
}

.testimonial-author span {
    color: var(--primary-color);
    font-size: 0.85rem;
    font-weight: 500;
}

/* Call to Action */
.cta-section {
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1), rgba(166, 124, 0, 0.05)) !important;
    border-color: rgba(212, 175, 55, 0.3) !important;
    text-align: center;
}

.cta-section h2 {
    justify-content: center;
    border-bottom-color: rgba(212, 175, 55, 0.2) !important;
}

.cta-content p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: var(--light-text);
}

.cta-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Download CV Button */
.download-cv-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 0.5rem;
    margin-bottom: 2rem;
}

.btn-download-cv {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.1rem 2.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: #0a0a0a;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.btn-download-cv:hover {
    background: linear-gradient(135deg, var(--accent-color), var(--primary-color));
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.5);
}

.btn-download-cv:active {
    transform: translateY(-1px);
}

.btn-download-cv:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.btn-download-cv i {
    font-size: 1.2rem;
}

/* Footer */
.profile-footer {
    background: #050505;
    color: var(--light-text);
    padding: 2rem 0;
    border-top: 1px solid rgba(212, 175, 55, 0.15);
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    text-align: center;
}

.footer-content p {
    opacity: 0.7;
    font-size: 0.9rem;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social a {
    color: var(--light-text);
    font-size: 1.3rem;
    transition: var(--transition);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid var(--border-color);
}

.footer-social a:hover {
    color: var(--primary-color);
    border-color: var(--primary-color);
    background: rgba(212, 175, 55, 0.1);
    transform: translateY(-3px);
}

/* Responsive Design */
@media (max-width: 1024px) {
    .profile-content .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    /* Prevent horizontal overflow */
    html, body {
        overflow-x: hidden;
    }

    /* Hero mobile */
    .hero-profile {
        padding: 4.5rem 0 2rem;
    }

    .profile-hero-content {
        gap: 1.5rem;
        padding: 0 0.5rem;
    }

    .profile-name {
        font-size: 2.2rem;
    }

    .profile-title {
        font-size: 1.15rem;
    }

    .profile-subtitle {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }

    .profile-actions {
        flex-direction: column;
        width: 100%;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        text-align: center;
        padding: 0.85rem 1.5rem;
        font-size: 0.85rem;
    }

    /* Grid mobile - stack columns */
    .profile-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .profile-main {
        padding: 1.5rem 0;
    }

    .profile-main .container {
        padding: 0 0.75rem;
    }

    /* Sidebar mobile */
    .sidebar-card {
        padding: 1.25rem;
    }

    .sidebar-card h3 {
        font-size: 1rem;
        margin-bottom: 1rem;
    }

    /* Content sections mobile */
    .content-section {
        padding: 1.25rem;
        margin-bottom: 1.25rem;
    }

    .content-section h2 {
        font-size: 1.1rem;
        gap: 0.5rem;
        margin-bottom: 1.25rem;
    }

    .content-section h2 i {
        font-size: 0.95rem;
    }

    .summary-text p {
        font-size: 0.85rem;
        line-height: 1.7;
    }

    /* Experience mobile */
    .experience-timeline {
        gap: 1.75rem;
    }

    .exp-item {
        padding-left: 1rem;
        border-left-width: 2px;
    }

    .exp-item::before {
        width: 6px;
        height: 6px;
        left: -4px;
    }

    .exp-header {
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        text-align: left;
        gap: 0.15rem;
    }

    .exp-header h3 {
        font-size: 0.95rem;
        line-height: 1.3;
    }

    .exp-date {
        font-size: 0.7rem;
    }

    .exp-description {
        font-size: 0.8rem;
        text-align: left;
        margin-bottom: 0.75rem;
    }

    .exp-achievements {
        grid-template-columns: 1fr;
        gap: 0.35rem;
    }

    .exp-achievements li {
        font-size: 0.75rem;
        padding: 0.4rem 0.4rem 0.4rem 1.1rem;
        line-height: 1.4;
    }

    .exp-achievements li::before {
        left: 0.4rem;
        width: 4px;
        height: 4px;
    }

    /* Projects sobre-mi mobile */
    .profile-content .projects-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .profile-content .project-card {
        padding: 1.25rem;
    }

    .project-header {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }

    .project-header h3 {
        font-size: 1rem;
    }

    .project-type {
        font-size: 0.65rem;
    }

    .profile-content .project-card p {
        font-size: 0.8rem;
    }

    .project-tech span {
        font-size: 0.7rem;
    }

    /* Philosophy mobile */
    .philosophy-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .philosophy-item {
        padding: 1rem;
        gap: 0.75rem;
    }

    .philosophy-icon {
        width: 38px;
        height: 38px;
        font-size: 1rem;
        border-radius: 8px;
    }

    .philosophy-content h4 {
        font-size: 0.9rem;
    }

    .philosophy-content p {
        font-size: 0.78rem;
    }

    /* Testimonials mobile */
    .testimonial-card {
        padding: 1.25rem;
    }

    .testimonial-quote p {
        font-size: 0.8rem;
        padding-left: 1rem;
    }

    .testimonial-quote i {
        font-size: 1.25rem;
    }

    .testimonial-author strong {
        font-size: 0.85rem;
    }

    .testimonial-author span {
        font-size: 0.75rem;
    }

    /* CTA mobile */
    .cta-content p {
        font-size: 0.85rem;
    }

    .cta-actions {
        flex-direction: column;
        width: 100%;
    }

    .cta-actions .btn-primary,
    .cta-actions .btn-secondary {
        width: 100%;
    }

    /* Download CV mobile */
    .btn-download-cv {
        width: 100%;
        justify-content: center;
        padding: 1rem 1.5rem;
        font-size: 0.85rem;
    }

    .download-cv-wrapper {
        padding: 0 1.25rem;
    }

    /* Skills mobile */
    .skill-header span {
        font-size: 0.85rem;
    }

    .skill-percent {
        font-size: 0.75rem;
    }

    /* Tools mobile */
    .tools-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.4rem;
    }

    .tool-chip {
        font-size: 0.75rem;
        padding: 0.45rem 0.5rem;
        gap: 0.35rem;
    }

    .tool-chip i {
        font-size: 0.8rem;
    }

    /* Language mobile */
    .language-item {
        padding: 0.6rem 0.75rem;
        font-size: 0.85rem;
    }

    /* Back nav mobile */
    .back-nav {
        top: 0.75rem;
        left: 0.75rem;
        padding: 0.5rem 0.9rem;
        font-size: 0.75rem;
    }

    /* Footer mobile */
    .profile-footer {
        padding: 1.5rem 0;
    }

    .footer-content p {
        font-size: 0.8rem;
    }

    .footer-social a {
        width: 36px;
        height: 36px;
        font-size: 1.1rem;
    }

    /* Contact sidebar mobile */
    .sidebar-card .contact-item {
        padding: 0.5rem;
        gap: 0.5rem;
    }

    .sidebar-card .contact-item i {
        font-size: 0.85rem;
    }

    .sidebar-card .contact-item span {
        font-size: 0.8rem;
        word-break: break-all;
    }
}

@media (max-width: 480px) {
    .hero-profile {
        padding: 4rem 0 1.5rem;
    }

    .profile-hero-content {
        gap: 1rem;
    }

    .profile-name {
        font-size: 1.8rem;
    }

    .profile-title {
        font-size: 1rem;
    }

    .profile-subtitle {
        font-size: 0.8rem;
    }

    .btn-primary,
    .btn-secondary {
        padding: 0.75rem 1rem;
        font-size: 0.8rem;
    }

    .profile-main .container {
        padding: 0 0.5rem;
    }

    .content-section {
        padding: 1rem;
        margin-bottom: 1rem;
    }

    .content-section h2 {
        font-size: 1rem;
        margin-bottom: 1rem;
        padding-bottom: 0.6rem;
    }

    .sidebar-card {
        padding: 1rem;
    }

    .sidebar-card h3 {
        font-size: 0.9rem;
    }

    /* Experience 480 */
    .exp-header h3 {
        font-size: 0.85rem;
    }

    .exp-description {
        font-size: 0.75rem;
    }

    .exp-achievements li {
        font-size: 0.7rem;
        padding: 0.35rem 0.35rem 0.35rem 1rem;
    }

    /* Tools 480 */
    .tools-list {
        grid-template-columns: 1fr;
    }

    .tool-chip {
        justify-content: center;
    }

    /* Philosophy 480 */
    .philosophy-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .philosophy-content h4 {
        font-size: 0.85rem;
    }

    .philosophy-content p {
        font-size: 0.75rem;
    }

    /* Back nav 480 */
    .back-nav {
        top: 0.5rem;
        left: 0.5rem;
        padding: 0.4rem 0.7rem;
        font-size: 0.7rem;
    }
}

/* Animations */
.content-section {
    animation: fadeInUp 0.6s ease;
}

/* Scroll Behavior */
html {
    scroll-behavior: smooth;
}
