/* Warm & Neutral Palette (remapped onto existing variables) */
:root {
    /* Reuse existing variable names but map them to warm/neutral tones */
    --flag-blue: #b4413e;   /* deep warm red */
    --flag-red: #e1645e;    /* coral red */
    --flag-yellow: #d9c0a3; /* sand tan */
    --flag-white: #f3e7d8;  /* soft beige */
    --dark-blue: #8f3936;   /* deeper red for shadows */
    --light-blue: #cf7a72;  /* lighter coral */
    --dark-red: #8f3936;
    --light-red: #e67f79;
    --text-dark: #2b2b2b;
    --text-light: #fffaf2;
    --shadow: rgba(0, 0, 0, 0.1);
}

.contact-info a {
    color: inherit;
    text-decoration: none;
}
.contact-info a:hover { text-decoration: underline; }

/* External footer promo */
.footer-external {
    margin: 18px auto 8px;
    max-width: 840px;
}
.footer-external .pitch {
    color: var(--flag-white);
    opacity: 0.95;
    margin-bottom: 10px;
}
.ext-btn {
    display: inline-block;
    background: linear-gradient(135deg, var(--flag-yellow), #ebd6b9);
    color: #2b2b2b;
    padding: 10px 18px;
    border-radius: 999px;
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(233, 211, 181, 0.28);
}
.ext-btn:hover { filter: brightness(1.04); }
.credit { color: var(--flag-white); opacity: 0.9; margin-top: 8px; }

/* WhatsApp buttons */
.wa-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #25D366; /* WhatsApp green */
    color: #ffffff;
    padding: 10px 16px;
    border-radius: 999px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 6px 18px rgba(37,211,102,0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.wa-btn i { font-size: 1.1rem; }
.wa-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(37,211,102,0.45); }
.wa-btn:active { transform: translateY(0); }

.wa-btn-footer { margin: 10px 0; }

.wa-float {
    position: fixed;
    right: 18px;
    bottom: 18px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #25D366;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 24px rgba(37,211,102,0.45);
    z-index: 1000;
    text-decoration: none;
}
.wa-float i { font-size: 28px; }
.wa-float:hover { filter: brightness(1.08); }

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: linear-gradient(135deg, var(--flag-white) 0%, #fffdf9 100%);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.header {
    background: linear-gradient(135deg, var(--flag-blue) 0%, var(--dark-blue) 100%);
    color: var(--flag-white);
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}

.flag-decoration {
    position: absolute;
    top: 0;
    right: -50px;
    width: 200px;
    height: 100%;
    background: linear-gradient(45deg, 
        var(--flag-red) 0%, 
        var(--flag-red) 33%, 
        var(--flag-yellow) 33%, 
        var(--flag-yellow) 66%, 
        var(--flag-blue) 66%);
    transform: skew(-20deg);
    opacity: 0.3;
}

/* Festive bunting (ribbon stripes with gentle sway) */
.festive-bunting {
    position: absolute;
    top: -24px; /* extend beyond top so it never peeks */
    left: 0;
    width: 100%;
    height: 98px; /* taller to fully cover while swaying */
    background: repeating-linear-gradient(90deg,
        var(--flag-blue) 0 80px,
        var(--flag-yellow) 80px 160px,
        var(--flag-red) 160px 240px,
        var(--flag-white) 240px 320px
    );
    opacity: 0.25;
    mix-blend-mode: screen;
    filter: drop-shadow(0 3px 3px rgba(0,0,0,0.15));
    transform-origin: top left;
    animation: sway 4s ease-in-out infinite;
    pointer-events: none;
}

@keyframes sway {
    0%, 100% { transform: rotate(-1deg) translateY(0); }
    50% { transform: rotate(1deg) translateY(3px); }
}

@keyframes slideIn {
    from {
        transform: translateX(100%) skew(-20deg);
        opacity: 0;
    }
    to {
        transform: translateX(0) skew(-20deg);
        opacity: 0.3;
    }
}

.profile-section {
    display: flex;
    align-items: center;
    gap: 30px;
    position: relative;
    z-index: 10;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.profile-image img {
    width: 140px;
    height: 140px;
    object-fit: cover;
    border-radius: 50%;
    border: 6px solid var(--flag-yellow);
    box-shadow: 0 10px 24px var(--shadow);
    background: #fff;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

.profile-info {
    flex: 1;
}

.name {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-light);
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

@keyframes typewriter {
    from {
        width: 0;
        opacity: 0;
    }
    to {
        width: 100%;
        opacity: 1;
    }
}

.tagline {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--flag-yellow);
    font-weight: 300;
}

.contact-info {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
}

.contact-item i {
    color: var(--flag-yellow);
    width: 20px;
}

/* Main Content */
.main-content {
    padding: 60px 0;
}


.section {
    margin-bottom: 50px;
    background: var(--flag-white);
    border-radius: 15px;
    box-shadow: 0 10px 30px var(--shadow);
    overflow: hidden;
}

@keyframes slideUp {
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.section-title {
    background: linear-gradient(135deg, var(--flag-blue) 0%, var(--light-blue) 100%);
    color: var(--flag-white);
    padding: 20px 30px;
    font-size: 1.5rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 15px;
    border-bottom: 4px solid var(--flag-yellow);
}

.section-title i {
    font-size: 1.3rem;
}

.section-content {
    padding: 30px;
}

/* Experience Styles */
.experience-item {
    margin-bottom: 30px;
    padding: 25px;
    background: linear-gradient(135deg, #fcfbf8 0%, var(--flag-white) 100%);
    border-radius: 10px;
    border-left: 5px solid #d9c9ba;
    transition: all 0.3s ease;
    position: relative;
}

.experience-item:hover {
    transform: translateX(10px);
    box-shadow: 0 5px 20px var(--shadow);
    border-left-color: var(--flag-yellow);
}

.experience-item::before {
    content: '';
    position: absolute;
    left: -5px;
    top: 0;
    bottom: 0;
    width: 5px;
    background: linear-gradient(to bottom, #d9c9ba, var(--flag-yellow));
    transition: all 0.3s ease;
}

.experience-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    flex-wrap: wrap;
    gap: 10px;
}

.experience-header h3 {
    color: var(--text-dark);
    font-size: 1.3rem;
    font-weight: 600;
}

.date {
    background: var(--flag-yellow);
    color: var(--text-dark);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.company {
    color: #6b7280;
    font-weight: 500;
    margin-bottom: 15px;
}

.responsibilities {
    list-style: none;
    padding-left: 0;
}

.responsibilities li {
    padding: 5px 0;
    position: relative;
    padding-left: 25px;
}

.responsibilities li::before {
    content: '▶';
    position: absolute;
    left: 0;
    color: var(--flag-blue);
    font-size: 0.8rem;
}

/* Skills Styles */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.skill-category h3 {
    color: var(--flag-blue);
    margin-bottom: 15px;
    font-size: 1.2rem;
    border-bottom: 2px solid var(--flag-yellow);
    padding-bottom: 5px;
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.skill-tag {
    background: #eef1f5;
    color: var(--text-dark);
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
}

.skill-tag:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    background: linear-gradient(135deg, var(--flag-blue) 0%, var(--light-blue) 100%);
    color: var(--flag-white);
}

/* Skill progress bars */
.skill-bars {
    margin-top: 28px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.bar {
    background: linear-gradient(135deg, #fbfbfb 0%, #ffffff 100%);
    border-radius: 12px;
    padding: 14px 16px 16px;
    box-shadow: 0 6px 18px var(--shadow);
}

.bar-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.bar-label {
    font-weight: 600;
    color: var(--text-dark);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.bar-percent {
    background: var(--flag-yellow);
    color: var(--text-dark);
    padding: 4px 10px;
    border-radius: 999px;
    font-weight: 700;
    min-width: 52px;
    text-align: center;
}

.bar-track {
    position: relative;
    width: 100%;
    height: 14px;
    background: linear-gradient(180deg, #eef2f5, #ffffff);
    border-radius: 999px;
    overflow: hidden;
    box-shadow: inset 0 2px 6px rgba(0,0,0,0.08);
}

.bar-fill {
    position: absolute;
    height: 100%;
    width: 0;
    left: 0;
    top: 0;
    background: linear-gradient(90deg, var(--flag-blue), var(--flag-yellow), var(--flag-red));
    background-size: 200% 100%;
    animation: stripeMove 6s linear infinite, progressGlow 2.6s ease-in-out infinite alternate; /* slower */
    box-shadow: 0 0 12px rgba(217, 192, 163, 0.5);
}

@keyframes stripeMove {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

@keyframes progressGlow {
    0% { filter: brightness(1) saturate(1); }
    100% { filter: brightness(1.15) saturate(1.2); }
}

/* Education Styles */
.education-item {
    margin-bottom: 20px;
    padding: 20px;
    background: linear-gradient(135deg, #fcfbf8 0%, var(--flag-white) 100%);
    border-radius: 10px;
    border-top: 4px solid var(--flag-blue);
}

.education-item h3 {
    color: var(--flag-blue);
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.school {
    color: var(--flag-red);
    font-weight: 500;
}

.achievement {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
    padding: 15px;
    background: linear-gradient(135deg, var(--flag-yellow) 0%, #ead7b8 100%);
    border-radius: 10px;
    color: var(--text-dark);
    font-weight: 600;
}

.achievement i {
    font-size: 1.2rem;
    color: var(--flag-red);
}

/* Languages Styles */
.language-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.language-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: linear-gradient(135deg, #fcfbf8 0%, var(--flag-white) 100%);
    border-radius: 10px;
    border-left: 4px solid #e2d6c8;
}

.language {
    font-weight: 600;
    color: var(--text-dark);
}

.proficiency {
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.85rem;
    font-weight: 500;
}

.proficiency.fluent {
    background: var(--flag-blue);
    color: var(--flag-white);
}

.proficiency.basic {
    background: var(--flag-yellow);
    color: var(--text-dark);
}

/* References Styles */
.reference-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.reference-item {
    padding: 20px;
    background: linear-gradient(135deg, #fcfbf8 0%, var(--flag-white) 100%);
    border-radius: 10px;
    border-top: 4px solid #e2d6c8;
    text-align: center;
    transition: all 0.3s ease;
}

.reference-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px var(--shadow);
}

.reference-item h4 {
    color: var(--flag-blue);
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.reference-item p {
    color: var(--text-dark);
    font-size: 0.95rem;
}

.reference-item i {
    color: var(--flag-red);
    margin-right: 5px;
}

/* Footer */
.footer {
    background: linear-gradient(135deg, var(--dark-blue) 0%, var(--flag-blue) 100%);
    color: var(--flag-white);
    padding: 40px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.flag-decoration-footer {
    position: absolute;
    bottom: 0;
    left: -50px;
    width: 200px;
    height: 100%;
    background: linear-gradient(-45deg, 
        var(--flag-blue) 0%, 
        var(--flag-blue) 33%, 
        var(--flag-yellow) 33%, 
        var(--flag-yellow) 66%, 
        var(--flag-red) 66%);
    transform: skew(20deg);
    opacity: 0.3;
}

/* Profile photos in content */
.profile-detail-media {
    display: flex;
    justify-content: center;
    margin-bottom: 18px;
}

.profile-photo-medium {
    width: 220px;
    height: 220px;
    object-fit: cover;
    border-radius: 18px;
    border: 6px solid var(--flag-white);
    box-shadow: 0 10px 24px var(--shadow);
}

.profile-photo-small {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid var(--flag-yellow);
    box-shadow: 0 4px 12px var(--shadow);
    display: block;
    margin: 0 auto 10px;
}

/* Fullscreen confetti canvas */
#confetti-canvas {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 999;
}

/* Responsive Design */
@media (max-width: 768px) {
    .profile-section {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .name {
        font-size: 2.5rem;
    }

    .contact-info {
        justify-content: center;
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .experience-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .section-content {
        padding: 20px;
    }

    .skills-grid,
    .language-grid,
    .reference-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .name {
        font-size: 2rem;
    }

    .section-title {
        padding: 15px 20px;
        font-size: 1.3rem;
    }

    .experience-item {
        padding: 20px;
    }
}

/* Disable scroll-triggered pop-ins by default */
.section {
    opacity: 1;
    transform: none;
    transition: none;
}

.section.visible {
    opacity: 1;
    transform: none;
}

/* Loading Animation */
.loading {
    opacity: 1;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

/* Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
    .festive-bunting {
        animation: none !important;
    }
    .bar-fill {
        animation: none !important;
    }
}
