/* expertise.css - Elegant & Modern Update (Matches services.css style) */
.hero p {
    font-size: 1.2rem;
    margin: 1rem 0;
    opacity: 0.9;
    max-width: 650px;
}

/* ===== UTILITIES ===== */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--color-muted);
    max-width: 700px;
    margin: 0 auto;
}

.alt-bg {
    background: rgba(255, 255, 255, 0.4);
    border-radius: 20px;
    margin-bottom: 2rem;
    padding: 3rem 2rem;
}

.category-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
    color: var(--color-text);
}

/* ===== INFO BANNERS (For PoC & Shadowing) ===== */
.info-banner-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.info-banner {
    display: flex;
    align-items: flex-start;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    padding: 25px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.banner-icon {
    font-size: 1.8rem;
    color: var(--color-primary);
    margin-right: 15px;
    margin-top: 5px;
}

.banner-text h4 {
    margin-bottom: 8px;
    font-family: var(--font-primary);
    font-size: 1.1rem;
    color: var(--color-text);
}

.banner-text p {
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

/* ===================================================
   ===== Skills Section =====
=================================================== */
/* ===== SKILLS GRID ===== */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 20px;
    margin-top: 2rem;
}

.skill-card {
    background: #ffffff;
    padding: 25px 15px;
    text-align: center;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.skill-card i {
    font-size: 2.5rem;
    margin-bottom: 15px;
    transition: transform 0.3s ease;
}

.skill-card h3 {
    margin: 0;
    font-size: 1rem;
    font-family: var(--font-primary);
}

.skill-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border-color: var(--color-accent);
}

.skill-card:hover i {
    transform: scale(1.15);
}

.icon-yaml-custom {
    display: inline-block;
    width: 1em;
    /* Matches the size of your other icons automatically */
    height: 1em;
    vertical-align: middle;
    /* Ensure the filename below matches exactly what you saved on your computer */
    background-image: url('/assets/yaml_icon.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

/* This targets all icons in your skill cards to keep them uniform */
.skill-card i {
    font-size: 2.5rem;
    /* Adjust this to match your existing portfolio size */
    margin-bottom: 15px;
    transition: transform 0.3s ease;
}

/* ===================================================
   ===== Projects Section =====
=================================================== */
/* ===== PROJECTS GRID ===== */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

.project-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    padding: 25px;
    border-radius: 16px;
    border-top: 4px solid var(--color-primary);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
    text-decoration: none;
    color: var(--color-text);
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.project-card.static-card:hover {
    transform: translateY(-3px);
    border-top-color: var(--color-accent);
}

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

.project-header h4 {
    margin: 0;
    font-size: 1.2rem;
    color: var(--color-text);
    transition: color 0.3s ease;
}

.project-header i {
    color: var(--color-muted);
    font-size: 0.9rem;
}

.project-card:hover .project-header h4,
.project-card:hover .project-header i {
    color: var(--color-primary);
}

.project-card p {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 15px;
    flex-grow: 1;
}

/* Tech Tags inside projects */
.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.tech-tags span {
    background: rgba(56, 189, 248, 0.1);
    color: var(--color-accent);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* ===== PORTFOLIO & CTA (NEON STYLE) ===== */
.cta-card {
    background: linear-gradient(135deg, #0f172a, #1e293b);
    color: #fff;
    padding: 50px 30px;
    border-radius: 24px;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.theme-neon {
    background: linear-gradient(135deg, #020617, #0f172a);
    position: relative;
    overflow: hidden;
}

.theme-neon::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.1) 0%, transparent 60%);
    z-index: 0;
}

.theme-neon>* {
    position: relative;
    z-index: 1;
}

.cta-card h2 {
    color: #fff;
    margin-bottom: 15px;
}

.cta-card p {
    color: #cbd5e1;
    margin-bottom: 30px;
}

/* ===================================================
   ===== Portfolio Section =====
=================================================== */
#portfolio {
    text-align: center;
    /* height: 20vh; */
}

.portfolio .btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 30px;
    background: #ff9800;
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s, transform 0.3s;
}

.portfolio .btn:hover {
    background: #e68900;
    transform: translateY(-3px);
}

.portfolio-card {
    background: rgba(179, 105, 105, 0.3);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 60px;
    margin: 20px 0;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

/* Underline Animation Example */
/* (For Services link at bottom of page) */
.underline-hover {
    text-decoration: none;
    position: relative;
}

.underline-hover::after {
    content: '';
    position: absolute;
    width: 100%;
    transform: scaleX(0);
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #333;
    transform-origin: bottom right;
    transition: transform 0.25s ease-out;
}

.underline-hover:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

/* Keep the color the same even after the link is clicked */
.underline-hover:visited {
    color: #333;
}

/* Ensure the underline still triggers on visited links */
.underline-hover:visited:hover::after {
    transform: scaleX(1);
}

/* Animations */
@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in.visible {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

@media (max-width: 768px) {
    .service-card-link {
        margin-bottom: 10px;
    }

    .service-card-link p {
        white-space: pre-line;
    }

    .break-mobile {
        display: block;
    }
}