body {
    display: flex;
    flex-direction: column; /* Allow header and main content to stack */
    justify-content: flex-start; /* Start content from the top */
    align-items: center;
    min-height: 100vh;
    margin: 0;
    background-color: #f4f4f4;
    font-family: Arial, sans-serif;
    padding-top: 60px; /* IMPORTANT: Add padding to prevent the ribbon from covering the skill wheel */
}

/* --- RIBBON STYLES --- */
.ribbon {
    width: 100%;
    position: fixed; /* Stays at the top when scrolling */
    top: 0;
    left: 0;
    background-color: #333; /* Dark background */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    z-index: 50; /* Ensure it stays above everything else */
    padding: 10px 0;
}

.ribbon nav {
    display: flex;
    justify-content: center;
    gap: 30px;
}

.ribbon a {
    color: white;
    text-decoration: none;
    font-size: 1.1em;
    font-weight: bold;
    padding: 5px 15px;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.ribbon a:hover {
    background-color: #ff8c00; /* Orange highlight on hover */
    color: #333;
}
/* --- END RIBBON STYLES --- */


/* --- SUNFLOWER CONTAINER & CENTER --- */
.sunflower-container {
    position: relative;
    width: 500px; /* Overall size */
    height: 500px;
    margin: 40px 0; /* Center the wheel vertically within the remaining space */
}

.center-circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px; /* Center hole size */
    height: 120px;
    border-radius: 50%;
    background-color: #ffffff; /* White center */
    z-index: 10;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
}


/* --- SKILL PETAL BASE STYLES --- */
.skill-petal {
    position: absolute;
    top: 50%;
    left: 50%;
    transform-origin: 0 50%; /* Rotate around the center */
    width: 250px; /* Length of the petal */
    height: 40px; /* Thickness of the petal */
    border-radius: 0 40px 40px 0;
    cursor: pointer;
    transition: transform 0.4s ease, width 0.4s ease, box-shadow 0.4s ease;
    z-index: 5;
    box-sizing: border-box;
    padding-left: 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    color: #333; /* Text color */
}

.skill-name {
    font-weight: bold;
    font-size: 0.8em;
    white-space: nowrap;
}

.skill-years {
    font-size: 0.7em;
}

/* --- SKILL PETAL POSITIONING, COLOR, AND ROTATION FIX --- */
/* Targeting children of .sunflower-container, starting at :nth-child(2) 
   because :nth-child(1) is the .center-circle */

.sunflower-container .skill-petal:nth-child(2) {
    transform: rotate(0deg) translate(60px, -20px); /* Strategy/ Consulting */
    background: linear-gradient(to right, #ffc952, #ff7e5f);
    --rotation: 0deg;
}
.sunflower-container .skill-petal:nth-child(3) {
    transform: rotate(45deg) translate(60px, -20px); /* Biz Dev */
    background: linear-gradient(to right, #ffc400, #ff5733);
    --rotation: 45deg;
}
.sunflower-container .skill-petal:nth-child(4) {
    transform: rotate(90deg) translate(60px, -20px); /* Digital Mktg */
    background: linear-gradient(to right, #ffad00, #e05d26);
    --rotation: 90deg;
}
.sunflower-container .skill-petal:nth-child(5) {
    transform: rotate(135deg) translate(60px, -20px); /* Commercial Strategy */
    background: linear-gradient(to right, #ffa07a, #e03a00);
    --rotation: 135deg;
}
.sunflower-container .skill-petal:nth-child(6) {
    transform: rotate(180deg) translate(60px, -20px); /* AI/ML Analytics */
    background: linear-gradient(to right, #ff8c00, #c43200);
    --rotation: 180deg;
}
.sunflower-container .skill-petal:nth-child(7) {
    transform: rotate(225deg) translate(60px, -20px); /* Program Mgmt */
    background: linear-gradient(to right, #ff6347, #a02000);
    --rotation: 225deg;
}
.sunflower-container .skill-petal:nth-child(8) {
    transform: rotate(270deg) translate(60px, -20px); /* Stakeholder Mgmt */
    background: linear-gradient(to right, #ff4500, #800000);
    --rotation: 270deg;
}
.sunflower-container .skill-petal:nth-child(9) {
    transform: rotate(315deg) translate(60px, -20px); /* Solution Design */
    background: linear-gradient(to right, #ff3b00, #660000);
    --rotation: 315deg;
}


/* --- HOVER EFFECT --- */
.skill-petal:hover {
    width: 280px; /* Expand length */
    box-shadow: 0 0 20px rgba(255, 100, 0, 0.8);
    /* Uses the --rotation variable set in the positioning rules above */
    transform: rotate(var(--rotation, 0deg)) translate(60px, -20px) scale(1.05); 
}


/* --- MODAL STYLING --- */
.modal {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 60; /* Higher than the ribbon */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
}

.modal-content {
    background-color: #fff;
    margin: 15% auto; /* 15% from the top and centered */
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 400px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.close-button {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close-button:hover,
.close-button:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}