/* ============================================
   CUSTOM OVERRIDES - SECTION CLARITY ENHANCEMENT
   ============================================ */

/* ========== EXPERIENCE GRID - SLIM, TALL & SHARP ========== */
.experience-grid {
    display: flex !important;
    justify-content: center !important;
    flex-wrap: wrap !important;
    gap: 40px !important;
    max-width: 1100px !important;
    /* Expanded for a more substantial look */
    margin: 0 auto !important;
}

.experience-item {
    background: var(--bg-card) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 8px !important;
    /* Slightly softer corners for larger cards */
    padding: 50px 35px !important;
    /* Increased padding */
    transition: var(--transition) !important;
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    max-width: 500px !important;
    /* Wider width */
    height: auto !important;
    min-height: 600px !important;
    /* Slightly taller for balance */
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3) !important;
    /* Stepped up shadow */
}

.experience-item:hover {
    border-color: rgba(139, 92, 246, 0.4) !important;
    transform: translateY(-5px) !important;
}

.job-info-with-logo {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
}

.company-logo-img {
    width: 45px !important;
    height: 45px !important;
    border-radius: 8px !important;
    padding: 6px !important;
}

.job-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: flex-start !important;
    margin-bottom: 12px !important;
    gap: 15px !important;
}

.job-title {
    font-size: 1.4rem !important;
    /* Increased size */
    font-weight: 700 !important;
    margin-bottom: 4px !important;
    line-height: 1.2 !important;
}

.company-name {
    font-size: 0.95rem !important;
    color: var(--text-highlight) !important;
    font-weight: 500 !important;
    margin-bottom: 0 !important;
}

.job-date {
    font-size: 0.8rem !important;
    padding: 4px 10px !important;
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 6px !important;
    height: fit-content !important;
    white-space: nowrap !important;
    color: var(--text-secondary) !important;
}

.job-achievements {
    margin-bottom: 15px !important;
    flex-grow: 1 !important;
}

.job-achievements li {
    font-size: 0.95rem !important;
    /* Slightly larger text */
    line-height: 1.5 !important;
    /* Better spacing */
    margin-bottom: 8px !important;
    color: var(--text-secondary) !important;
    padding-left: 20px !important;
}

.job-achievements li::before {
    font-size: 1rem !important;
    top: -2px !important;
}

/* Responsive fixes for flex layout */
@media (max-width: 992px) {
    .experience-grid {
        flex-direction: column !important;
        align-items: center !important;
    }
}

/* Tighten Experience Tech Chips to fit on one line */
.experience-item .tech-stack-chips {
    gap: 6px !important;
}

.experience-item .tech-chip {
    font-size: 0.65rem !important;
    padding: 2px 6px !important;
}

/* ========== SECTION SEPARATION & CLARITY ========== */

/* Section Dividers - Elegant gradient lines */
.page-wrapper>hr {
    border: 0 !important;
    height: 2px !important;
    background: linear-gradient(to right,
            transparent,
            rgba(139, 92, 246, 0.3) 20%,
            rgba(139, 92, 246, 0.5) 50%,
            rgba(139, 92, 246, 0.3) 80%,
            transparent) !important;
    margin: 120px auto !important;
    max-width: 80%;
    position: relative;
}

/* Add decorative dots to dividers */
.page-wrapper>hr::before,
.page-wrapper>hr::after {
    content: '';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: var(--primary-color);
    border-radius: 50%;
    box-shadow: 0 0 12px rgba(139, 92, 246, 0.6);
}

.page-wrapper>hr::before {
    left: 0;
}

.page-wrapper>hr::after {
    right: 0;
}

/* ========== SECTION HEADINGS - PROMINENT & DISTINCT ========== */

/* Main section titles - Larger, bolder, more prominent */
.page-title {
    font-size: 3rem !important;
    font-weight: 800 !important;
    text-align: center;
    margin-bottom: 10px !important;
    margin-top: 40px !important;
    letter-spacing: -0.5px;
    position: relative;
    padding-bottom: 15px;
    padding-top: 20px;
}

/* Add underline accent to section titles */
.page-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--gradient-main);
    border-radius: 2px;
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.4);
}

/* Section subtitles */
.page-subtitle {
    font-size: 1.15rem !important;
    color: var(--text-secondary) !important;
    text-align: center;
    margin-bottom: 40px !important;
    font-weight: 400;
    letter-spacing: 0.3px;
}

/* ========== HERO/ABOUT SECTION ========== */

/* Hero/About Section - Special spacing */
.about-container {
    padding-top: 40px !important;
    margin-bottom: 60px !important;
}

/* ========== HERO SECTION - FULL WIDTH OVERRIDES ========== */
.hero-wrapper-full {
    width: 100vw;
    min-height: 100vh;
    padding-top: 80px;
    /* Navbar height compensation */
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow-x: hidden;
}

.hero-wrapper-full .about-container {
    width: 100%;
    max-width: 100%;
    padding: 0 8vw;
    /* Fluid horizontal padding */
    margin-bottom: 0 !important;
    justify-content: center;
    gap: 8vw;
    /* Responsive gap */
}

@media (max-width: 992px) {
    .hero-wrapper-full .about-container {
        flex-direction: column;
        text-align: center;
        padding: 0 20px;
        gap: 40px;
    }

    .hero-wrapper-full {
        height: auto;
        min-height: auto;
        padding-top: 120px;
        padding-bottom: 80px;
    }
}


/* Reduce padding for page wrapper when following full width hero */
.hero-wrapper-full+.page-wrapper {
    padding-top: 10px !important;
}

/* ========== EXPERIENCE SECTION ========== */

/* Experience section wrapper */
.experience-grid {
    margin-top: 30px;
    margin-bottom: 50px;
}

/* Fix job header alignment to prevent wrapping on desktop */
@media (min-width: 769px) {
    .job-header {
        flex-wrap: nowrap !important;
    }

    .job-date {
        white-space: nowrap;
        flex-shrink: 0;
        margin-left: 15px;
        /* Ensure some spacing */
    }
}

/* ========== SKILLS & CERTIFICATIONS SECTION ========== */

/* Skills section spacing */
.skills-grid {
    margin-top: 50px !important;
    margin-bottom: 80px !important;
}

/* Certification section spacing */
.cert-grid {
    margin-top: 40px !important;
    margin-bottom: 80px !important;
}

/* Credentials subsection heading */


/* ========== EDUCATION SECTION ========== */

/* Education section spacing */
.experience-list {
    margin-top: 30px;
    margin-bottom: 20px;
}

/* ========== RESPONSIVE ADJUSTMENTS ========== */

@media (max-width: 768px) {

    /* Reduce section spacing on mobile */
    .page-wrapper>hr {
        margin: 80px auto !important;
    }

    /* Smaller section titles on mobile */
    .page-title {
        font-size: 2.2rem !important;
        margin-top: 60px !important;
        padding-top: 30px;
    }

    .page-subtitle {
        font-size: 1rem !important;
        margin-bottom: 40px !important;
    }

    /* Adjust about section spacing */
    .about-container {
        margin-bottom: 100px !important;
    }

    /* Subsection headings on mobile */
    h3[style*="margin-top: 60px"] {
        margin-top: 80px !important;
        padding-top: 60px !important;
        font-size: 1.5rem !important;
    }
}

/* ========== VISUAL HIERARCHY ENHANCEMENT ========== */

/* Ensure section content has proper spacing from title */
.page-title+.grid-container,
.page-title+.experience-grid,
.page-title+.skills-grid {
    margin-top: 30px;
}

/* Add subtle background variation between sections */
.page-wrapper {
    background:
        linear-gradient(180deg,
            var(--bg-navy) 0%,
            var(--bg-black) 50%,
            var(--bg-navy) 100%);
}

/* ========== BLOG SECTION STYLES ========== */

.blog-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-top: 60px;
    margin-bottom: 100px;
}

.blog-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    border-color: rgba(139, 92, 246, 0.4);
    background: var(--bg-card-hover);
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 20px rgba(139, 92, 246, 0.1);
}

.blog-card-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
    position: relative;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.blog-card:hover .blog-card-image img {
    transform: scale(1.05);
}

.blog-card-content {
    padding: 30px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-category {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 15px;
    display: inline-block;
}

.blog-card h3 {
    font-size: 1.5rem;
    color: white;
    margin-bottom: 15px;
    line-height: 1.4;
    font-weight: 700;
}

.blog-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 25px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    line-clamp: 3;
    overflow: hidden;
}

.blog-card-footer {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.blog-date {
    font-size: 0.85rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.read-more {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 8px;
}

.read-more:hover {
    color: var(--text-highlight);
}

@media (max-width: 992px) {
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* ============================================
   PROJECT PAGE SPACING ADJUSTMENTS
   ============================================ */

/* Professional Project Categories Spacing */
.project-category-section {
    margin-bottom: 40px !important;
}

/* Intentional Grid Spacing */
.grid-container {
    gap: 20px !important;
    margin-bottom: 15px !important;
}

/* Category Title Spacing */
.category-title {
    margin-bottom: 18px !important;
    font-size: 1.4rem !important;
}

/* View More Button Spacing */
.view-more-container {
    margin-top: 20px !important;
    margin-bottom: 20px !important;
}

/* Page Subtitle */
.page-subtitle {
    margin-bottom: 20px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Footer spacing reduction to match other pages */
.footer {
    margin-top: 40px !important;
    padding-top: 40px !important;
}

/* Balanced Project Card Internal Spacing */
.project-category-section .content-card {
    padding: 22px !important;
}

.project-category-section .card-icon {
    margin-bottom: 12px !important;
    font-size: 1.7rem !important;
}

.project-category-section .content-card h3 {
    margin-bottom: 6px !important;
    font-size: 1.15rem !important;
}

.project-category-section .content-card p {
    margin-bottom: 8px !important;
    line-height: 1.45 !important;
    font-size: 0.95rem !important;
}

/* Inner sections spacing */
.project-category-section .content-card>.project-details {
    margin-top: 5px !important;
    display: flex !important;
    flex-direction: column !important;
    flex-grow: 1 !important;
    gap: 12px !important;
    /* Standardized gap between Feature/Impact sections */
}

/* Ensure technologies are pushed to the bottom of the card */
.project-category-section .content-card .project-details>div:last-child {
    margin-top: auto !important;
    padding-top: 8px !important;
}

/* Professional Resume-Style Lists */
.project-category-section .skills-list {
    margin-top: 5px !important;
    margin-bottom: 0 !important;
}

.project-category-section .skills-list li {
    font-size: 0.9rem !important;
    line-height: 1.4 !important;
    margin-bottom: 4px !important;
    padding-left: 0 !important;
}

/* Specific text elements */
.project-category-section .content-card p strong {
    font-size: 0.95rem !important;
}

/* ============================================
   EXPERTISE PAGE COMPACT STYLING
   ============================================ */

/* Standardize Grid Layout for all sections in Expertise page */
.expertise-grid,
.skills-grid,
.cert-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 20px !important;
    margin-bottom: 30px !important;
    /* Slightly reduced bottom margin */
    margin-top: 25px !important;
    /* Uniform top margin for grids */
}

/* Ensure consistent section spacing */
.cert-category-section {
    margin-top: 50px !important;
}

/* Responsive Grid behavior for all Expertise page grids */
@media (max-width: 1200px) {

    .expertise-grid,
    .skills-grid,
    .cert-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 768px) {

    .expertise-grid,
    .skills-grid,
    .cert-grid {
        grid-template-columns: 1fr !important;
        gap: 15px !important;
    }
}

/* Compact Card Padding - Reduced further */
.expertise-grid .content-card {
    padding: 20px !important;
}

/* Compact Icon Spacing - Reduced further */
.expertise-grid .content-card .card-icon {
    margin-bottom: 10px !important;
    font-size: 1.8rem !important;
}

/* Compact Headings */
.expertise-grid .content-card h3 {
    margin-bottom: 8px !important;
    font-size: 1.1rem !important;
}

/* Compact Text */
.expertise-grid .content-card p {
    font-size: 0.9rem !important;
    line-height: 1.4 !important;
    margin-bottom: 0 !important;
}

/* ============================================
   BLOG PAGE STYLING
   ============================================ */

.blog-list {
    display: flex;
    flex-direction: column;
    gap: 80px;
    margin-bottom: 80px;
    margin-top: 40px;
}

.blog-item {
    display: flex;
    align-items: center;
    gap: 50px;
}

.blog-item.reverse {
    flex-direction: row-reverse;
}

.blog-image {
    flex: 1;
    overflow: hidden;
    border-radius: 8px;
    border: 2px solid #3b82f6;
    /* Blue border as seen in image */
}

.blog-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.blog-content {
    flex: 1;
    text-align: center;
    /* Centered text as essentially seen in image, titles are centered */
    display: flex;
    flex-direction: column;
    align-items: center;
}

.blog-title {
    color: #06b6d4;
    /* Cyan color matching the image text */
    font-size: 1.2rem;
    margin-bottom: 20px;
    font-weight: bold;
    text-transform: none;
    /* Keep natural case or capitalize? Image looks sentence case */
}

.blog-text {
    color: #e5e7eb;
    /* Light gray text */
    font-size: 0.85rem;
    line-height: 1.5;
    margin-bottom: 20px;
    max-width: 90%;
    /* Limit width slightly for readability */
}

.blog-publication {
    font-size: 0.8rem;
    color: #9ca3af;
    font-weight: bold;
    margin-bottom: 15px;
}

.blog-btn {
    background: #06b6d4;
    /* Cyan background */
    border: none;
    color: #000;
    /* Black text */
    padding: 6px 20px;
    /* Small button */
    border-radius: 4px;
    /* Square-ish with slight radius */
    cursor: pointer;
    font-weight: bold;
    font-size: 0.8rem;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.blog-btn:hover {
    background: #0891b2;
    transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 992px) {
    .blog-item {
        gap: 30px;
    }
}

@media (max-width: 768px) {

    .blog-item,
    .blog-item.reverse {
        flex-direction: column;
        gap: 30px;
    }

    .blog-image,
    .blog-content {
        width: 100%;
    }

    .blog-image {
        border-width: 1px;
    }
}

/* Reset card icon gradient if color is applied to i (for all pages) */
.card-icon,
.card-icon i,
.category-title i,
.contact-info-card i,
.footer-links-list i {
    background: none !important;
    background-clip: border-box !important;
    -webkit-background-clip: border-box !important;
    -webkit-text-fill-color: currentColor !important;
    color: inherit;
    /* Fallback */
}

/* Standardize Lists for Expertise Cards */
.expertise-grid .skills-list,
.project-category-section .skills-list {
    list-style: none !important;
    padding: 0 !important;
    margin-top: 5px !important;
}

.expertise-grid .skills-list li,
.project-category-section .skills-list li {
    font-size: 0.9rem !important;
    line-height: 1.4 !important;
    margin-bottom: 4px !important;
    position: relative;
    padding-left: 15px !important;
    color: var(--text-secondary);
}

.expertise-grid .skills-list li::before,
.project-category-section .skills-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: inherit;
    /* Remove specific color to match text */
    font-weight: 700;
}

/* Vibrant Footer & Social Icons */
/* ========== RESUME CONTACT BAR STYLES ========== */
.resume-contact-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 50px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-secondary);
    font-size: 0.95rem;
    transition: var(--transition);
}

.contact-item i {
    font-size: 1.1rem;
    color: var(--primary-color);
    filter: drop-shadow(0 0 5px rgba(139, 92, 246, 0.3));
}

.contact-item a:hover {
    color: var(--text-primary);
}

.contact-item span {
    color: var(--text-secondary);
}

@media (max-width: 768px) {
    .resume-contact-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        padding: 25px;
    }
}
.footer-links-list i.fa-linkedin {
    color: #0077b5 !important;
    filter: drop-shadow(0 0 5px rgba(0, 119, 181, 0.5)) !important;
}

.footer-links-list i.fa-github {
    color: #fff !important;
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.4)) !important;
}

.footer-links-list i.fa-envelope {
    color: #ec4899 !important;
    filter: drop-shadow(0 0 5px rgba(236, 72, 153, 0.5)) !important;
}

.footer-links-list i.fa-whatsapp {
    color: #25d366 !important;
    filter: drop-shadow(0 0 5px rgba(37, 211, 102, 0.5)) !important;
}

/* Compact Skill Lists Styling */
.skills-list-compact {
    list-style: none;
    padding: 0;
    margin: 8px 0 0 15px;
    /* Added left margin for bullet alignment */
    text-align: left;
    /* Changed from center */
    width: fit-content;
    /* Ensure container is only as wide as content */
    align-self: flex-start;
    /* Align container to start of flex card */
}

.skills-list-compact li {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 4px;
    line-height: 1.4;
    position: relative;
    padding-left: 15px;
    /* Standardized spacing */
}

.skills-list-compact li::before {
    content: "•";
    color: inherit;
    /* Standardized color */
    font-weight: bold;
    position: absolute;
    left: 0;
    top: 0;
}

/* Inline Certification Year Styles */
.cert-issuer {
    margin-bottom: 20px !important;
}

.cert-year-inline {
    color: var(--text-highlight);
    font-size: 0.85rem;
    opacity: 0.8;
    margin-left: 5px;
}

/* Resume-Style Education Layout */
.education-resume-container {
    max-width: 950px;
    margin: 0 auto 60px;
    padding: 0 30px;
}

.education-resume-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 30px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    margin-bottom: 25px;
    transition: var(--transition);
}

.education-resume-item:hover {
    border-color: rgba(139, 92, 246, 0.4);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.education-resume-item:last-child {
    border-bottom: none;
}

.edu-main-info {
    flex: 1;
}

.edu-degree {
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
    margin-bottom: 2px;
}

.edu-university {
    font-size: 1rem;
    color: var(--text-highlight);
    font-weight: 500;
}

.edu-cgpa {
    display: inline-block;
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 5px;
    opacity: 0.8;
}

.edu-date {
    font-size: 0.85rem;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.05);
    padding: 4px 12px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    white-space: nowrap;
}

@media (max-width: 768px) {
    .education-resume-item {
        flex-direction: column;
        gap: 10px;
    }

    .edu-date {
        align-self: flex-start;
    }
}

/* Center 'View More' buttons in grid layouts */
.cert-view-more-container,
.view-more-container {
    grid-column: 1 / -1 !important;
    display: flex !important;
    justify-content: center !important;
    width: 100% !important;
    margin-top: 30px !important;
}