/* Override section padding */
.colorlib-experience,
.colorlib-skills,
.colorlib-education,
.colorlib-blog,
.colorlib-work,
.colorlib-about,
.colorlib-services,
.colorlib-contact {
    padding-top: 2em !important;
    padding-bottom: 2em !important;
}

/* Keep mobile padding reasonable */
@media screen and (max-width: 768px) {
    .colorlib-experience,
    .colorlib-skills,
    .colorlib-education,
    .colorlib-blog,
    .colorlib-work,
    .colorlib-about,
    .colorlib-services,
    .colorlib-contact {
        padding-top: 2em !important;
        padding-bottom: 2em !important;
    }
}

/* Community Stats Grid Styling */
.community-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.stat-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 30px 20px;
    border-radius: 15px;
    text-align: center;
    color: white;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.2);
}

.stat-number {
    font-size: 2.5em;
    font-weight: bold;
    margin-bottom: 10px;
    display: block;
}

.stat-label {
    font-size: 1.1em;
    opacity: 0.9;
    margin-bottom: 5px;
}

.stat-detail {
    font-size: 0.9em;
    opacity: 0.7;
}

/* Progressive Disclosure Styling */
.read-more-content {
    display: none;
}

.read-more-content.show {
    display: block;
}

.read-more-btn {
    background: #2c98f0;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    margin-top: 15px;
    transition: background 0.3s ease;
}

.read-more-btn:hover {
    background: #1a7cc4;
}

/* Ensure hero section exclusion from general padding rules */
#fh5co-header.colorlib-table {
    position: relative;
}

#fh5co-header .colorlib-table-cell h1,
#fh5co-header .colorlib-table-cell h2 {
    line-height: inherit;
}

/* Professional Skills Section */
.impact-summary-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 50px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

.impact-stat-large {
    text-align: center;
    color: white;
    padding: 20px;
}

.impact-stat-large .number {
    font-size: 3em;
    font-weight: bold;
    margin-bottom: 10px;
    display: block;
}

.impact-stat-large .label {
    font-size: 1.1em;
    opacity: 0.9;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.section-subtitle {
    text-align: center;
    color: #333;
    margin-bottom: 40px;
    font-size: 1.8em;
    font-weight: 600;
}

.skill-category-card {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    margin-bottom: 30px;
    height: 100%;
    transition: all 0.3s ease;
}

.skill-category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

.category-header {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f8f9fa;
}

.category-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    font-size: 1.5em;
    color: white;
}

.category-icon.xr-icon {
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.category-icon.dev-icon {
    background: linear-gradient(135deg, #2c98f0, #4dabf7);
}

.category-icon.community-icon {
    background: linear-gradient(135deg, #28a745, #34ce57);
}

.category-icon.innovation-icon {
    background: linear-gradient(135deg, #ffc107, #ffca2c);
}

.category-header h4 {
    margin: 0;
    color: #333;
    font-size: 1.3em;
    font-weight: 600;
}

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

.skill-pill {
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 0.9em;
    font-weight: 500;
    transition: all 0.3s ease;
}

.skill-pill.expert {
    background: linear-gradient(135deg, #28a745, #34ce57);
    color: white;
}

.skill-pill.advanced {
    background: linear-gradient(135deg, #2c98f0, #4dabf7);
    color: white;
}

.skill-pill.intermediate {
    background: linear-gradient(135deg, #ffc107, #ffca2c);
    color: white;
}

.skill-pill:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.leadership-achievements {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.achievement {
    display: flex;
    align-items: center;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.achievement:hover {
    background: linear-gradient(135deg, rgba(44, 152, 240, 0.1), rgba(102, 126, 234, 0.1));
    transform: translateX(5px);
}

.achievement i {
    margin-right: 15px;
    color: #2c98f0;
    font-size: 1.2em;
    width: 20px;
}

.achievement span {
    color: #555;
    font-weight: 500;
}

.certifications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.cert-item {
    background: white;
    border-radius: 12px;
    padding: 25px;
    display: flex;
    align-items: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border-left: 4px solid #2c98f0;
}

.cert-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.cert-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #28a745, #34ce57);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    color: white;
    font-size: 1.3em;
    flex-shrink: 0;
}

.cert-details h5 {
    margin: 0 0 5px 0;
    color: #333;
    font-weight: 600;
    font-size: 1.1em;
}

.cert-details p {
    margin: 0;
    color: #666;
    font-size: 0.9em;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .impact-summary-card {
        padding: 30px 20px;
    }
    
    .impact-stat-large .number {
        font-size: 2.2em;
    }
    
    .impact-stat-large .label {
        font-size: 1em;
    }
    
    .skill-category-card {
        margin-bottom: 20px;
        padding: 25px;
    }
    
    .category-header {
        flex-direction: column;
        text-align: center;
    }
    
    .category-icon {
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .certifications-grid {
        grid-template-columns: 1fr;
    }
    
    .cert-item {
        padding: 20px;
    }
    
    .section-subtitle {
        font-size: 1.5em;
    }
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .community-journey-container {
        padding: 20px;
    }
    
    .journey-stage {
        flex-direction: column;
        text-align: center;
        margin-bottom: 40px;
    }
    
    .stage-visual {
        width: 150px;
        height: 120px;
        margin-right: 0;
        margin-bottom: 20px;
    }
    
    .impact-stats {
        flex-direction: column;
        gap: 10px;
    }
    
    .recognition-grid {
        grid-template-columns: 1fr;
    }
    
    .competency-card {
        margin-bottom: 20px;
    }
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .interactive-skill-card {
        padding: 20px;
        margin-bottom: 20px;
    }
    
    .skill-icon-wrapper {
        width: 40px;
        height: 40px;
    }
    
    .skill-card-header h3 {
        font-size: 1.1em;
    }
    
    .interactive-stats-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .cert-carousel {
        grid-template-columns: 1fr;
    }
    
    .stats-number {
        font-size: 2em;
    }
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .achievements-banner {
        flex-direction: column;
        gap: 20px;
    }
    
    .skill-category {
        padding: 20px;
    }
    
    .cert-grid {
        grid-template-columns: 1fr;
    }
    
    .achievement-number {
        font-size: 1.8em;
    }
}

/* Visual Skills Dashboard Styles */
.visual-card {
    background: #fff;
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    text-align: center;
    margin-bottom: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.visual-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.visual-card h4 {
    margin-bottom: 20px;
    color: #333;
    font-weight: 600;
}

/* Center the chart containers */
#skills-radar, #tech-bubbles, 
#ar-interactions-visual, #program-value-visual, #partnerships-visual, 
#career-focus-pie {
    display: flex;
    justify-content: center;
    align-items: center;
}

.gauge-labels {
    margin-top: 15px;
    text-align: center;
}

.gauge-value {
    display: block;
    font-size: 2.5em;
    font-weight: bold;
    color: #2c98f0;
    margin-bottom: 5px;
}

.gauge-description {
    color: #666;
    font-size: 0.9em;
}

.metric-visual {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    text-align: center;
    margin-bottom: 20px;
    transition: transform 0.3s ease;
}

.metric-visual:hover {
    transform: translateY(-3px);
}

.metric-label {
    margin-top: 10px;
}

.metric-number {
    display: block;
    font-size: 2em;
    font-weight: bold;
    color: #2c98f0;
    margin-bottom: 3px;
}

.metric-desc {
    color: #666;
    font-size: 0.85em;
}

/* D3.js Chart Styles */
.radar-chart-area {
    fill: rgba(44, 152, 240, 0.2);
    stroke: #2c98f0;
    stroke-width: 2;
}

.radar-chart-line {
    stroke: #ddd;
    stroke-width: 1;
    fill: none;
}

.radar-chart-axis-text {
    font-size: 12px;
    fill: #333;
    font-weight: 500;
}

.bubble-chart-bubble {
    cursor: pointer;
    transition: all 0.3s ease;
}

.bubble-chart-bubble:hover {
    stroke: #2c98f0;
    stroke-width: 3;
}

.bubble-chart-text {
    font-size: 11px;
    fill: #fff;
    font-weight: 500;
    text-anchor: middle;
    dominant-baseline: central;
}

.network-node {
    cursor: pointer;
    transition: all 0.3s ease;
}

.network-node:hover {
    stroke: #2c98f0;
    stroke-width: 3;
}

.network-link {
    stroke: #ddd;
    stroke-width: 2;
}

.network-text {
    font-size: 10px;
    fill: #333;
    text-anchor: middle;
    dominant-baseline: central;
}

/* Visual Dashboard Responsive */
@media (max-width: 768px) {
    .visual-card {
        padding: 15px;
        margin-bottom: 20px;
    }
    
    .gauge-value, .metric-number {
        font-size: 1.8em;
    }
    
    .visual-card h4 {
        font-size: 1.1em;
    }
    
    /* Mobile: Use Bootstrap responsive classes instead of custom float layout */
    .colorlib-skills .row .col-md-4 {
        margin-bottom: 20px;
    }
    
    /* Ensure all charts are centered */
    #skills-radar, #tech-bubbles, 
    #ar-interactions-visual, #program-value-visual, #partnerships-visual {
        margin: 0 auto;
        display: block;
        text-align: center;
    }
    
    #career-focus-pie {
        margin: 0 auto;
        display: block;
        text-align: center;
        width: 100%;
        min-height: 450px; /* Match JavaScript height */
    }
    
    /* Center the visual and metric cards on mobile */
    .visual-card, .metric-visual {
        margin-left: auto;
        margin-right: auto;
        max-width: 280px;
    }
    
    /* Force centering on the entire visual card on mobile */
    .visual-card {
        text-align: center !important;
    }
    
    /* Ensure gauge labels are centered on mobile */
    .gauge-labels {
        display: block !important;
        width: 100% !important;
        margin: 15px auto 0 auto !important;
        text-align: center !important;
        padding: 0 !important;
        position: relative !important;
        left: 0 !important;
        right: 0 !important;
    }
    
    .gauge-labels .gauge-value,
    .gauge-labels .gauge-description {
        display: block !important;
        text-align: center !important;
        width: 100% !important;
        margin: 0 auto !important;
        padding: 0 !important;
        position: relative !important;
        left: 0 !important;
        right: 0 !important;
    }
}

/* Tablet responsive adjustments */
@media (max-width: 992px) and (min-width: 769px) {
    .visual-card {
        padding: 20px;
        margin-bottom: 25px;
    }
    
    .gauge-value, .metric-number {
        font-size: 2.2em;
    }
    
    .visual-card h4 {
        font-size: 1.2em;
    }
    
    /* Metrics in 3 columns but smaller spacing */
    .colorlib-skills .row .col-md-4 {
        padding: 0 10px;
    }
}

/* Extra small mobile devices */
@media (max-width: 480px) {
    .visual-card {
        padding: 12px;
        margin-bottom: 15px;
        max-width: 260px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .metric-visual {
        padding: 15px;
        margin-bottom: 15px;
        max-width: 200px;
        margin-left: auto;
        margin-right: auto;
    }
    
    .gauge-value, .metric-number {
        font-size: 1.5em;
    }
    
    .visual-card h4 {
        font-size: 1em;
        margin-bottom: 15px;
    }
    
    .gauge-description, .metric-desc {
        font-size: 0.8em;
    }
    
    /* Ensure all content is centered */
    .colorlib-skills .row .col-md-4 {
        text-align: center;
        margin-bottom: 15px;
    }
    
    /* Make sure charts are centered within their containers */
    #skills-radar svg, #tech-bubbles svg,
    #ar-interactions-visual svg, #program-value-visual svg, #partnerships-visual svg {
        display: block;
        margin: 0 auto;
    }
}