/* =========================================
   RESUME OVERRIDES - HIGH CONTRAST & BADGES
   ========================================= */

/* 1. Modern Light Grey Background with Rounded Corners */
.glass-card {
    background: rgba(0, 0, 0, 0.4) !important;
    /* Dark glass */
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 20px !important;
    /* More rounded corners */
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1) !important;
}

/* 2. Text Colors for Dark/Transparent Background */
.d_timeline-text {
    color: #ffffff !important;
    /* White for readability */
    font-weight: 500 !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6) !important;
    /* Shadow for pop */
    line-height: 1.7 !important;
}

.d_timeline-text b {
    color: #ffffff !important;
    /* White for emphasis */
    font-weight: 800 !important;
}

/* ... (Project section overrides omitted for brevity over this range, assuming they are not in the target range) ... */

/* ... (skipping to .d_timeline-text li) ... */

/* NOTE: Target range seems to jump. I should probably do multiple replaces or one large one if contiguous.
   Lines 17-31 cover .d_timeline-text and .d_timeline-text b.
   Lines 106-157 cover the rest.
   I will use multiple chunks or just replace the specific blocks.
   The tool allows one contiguous block.
   Let's replace the top block first (lines 17-31).
*/

/* =========================================
   PROJECT SECTION OVERRIDES
   ========================================= */

/* 1. Center Align Project Names */
#section-blog .bloglist .post-text,
#section-blog .post-text,
.post-text {
    text-align: center !important;
}

#section-blog .bloglist .post-text h3,
#section-blog .post-text h3,
.post-text h3 {
    text-align: center !important;
    width: 100% !important;
    display: block !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

#section-blog .bloglist .post-text h5,
#section-blog .post-text h5,
.post-text h5 {
    text-align: center !important;
    width: 100% !important;
    display: block !important;
}

/* 2. Rounder Corners & 3D Look for Project Cards */
.bloglist.glass-card,
.bloglist {
    border-radius: 20px !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow:
        0 15px 35px rgba(0, 0, 0, 0.5),
        inset 0 0 20px rgba(255, 255, 255, 0.05) !important;
    overflow: hidden !important;
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-radius 0.1s linear;
    background: rgba(10, 10, 10, 0.8) !important;
    /* Ensure content is visible */
    /* FIX FOR SAFARI/CHROME LOSING BORDER RADIUS ON TRANSFORM */
    -webkit-mask-image: -webkit-radial-gradient(white, black);
    mask-image: radial-gradient(white, black);
    -webkit-backface-visibility: hidden;
    -moz-backface-visibility: hidden;
    backface-visibility: hidden;
    transform: translate3d(0, 0, 0);
    isolation: isolate;
}

/* Hover Effect REMOVED as per user request to maintain border radius integrity */
.bloglist.glass-card:hover,
.bloglist:hover {
    transform: none !important;
    box-shadow:
        0 15px 35px rgba(0, 0, 0, 0.5),
        inset 0 0 20px rgba(255, 255, 255, 0.05) !important;
    /* Keep original shadow */
}

/* Ensure images stay static */
.bloglist:hover .post-image img,
.bloglist.glass-card:hover .post-image img,
.bloglist .post-image img,
.post-image img {
    border-top-left-radius: 20px !important;
    border-top-right-radius: 20px !important;
    width: 100% !important;
    transition: none !important;
    /* Remove transition */
}

.d_timeline-text li {
    color: rgba(255, 255, 255, 0.9) !important;
    /* Off-white */
    margin-bottom: 8px;
}

.d_timeline-text .d_company {
    color: rgba(255, 255, 255, 0.8) !important;
    /* Light transparent white */
    font-weight: 700 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2) !important;
    padding-bottom: 5px !important;
    margin-bottom: 15px !important;
    font-size: 1.15rem !important;
}

/* 3. Thicker & Wider Duration Badge */
.d_timeline-title {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05)) !important;
    /* Lighter glass badge */
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    padding: 10px 25px !important;
    border-radius: 50px !important;
    font-size: 0.95rem !important;
    letter-spacing: 1.5px !important;
    font-weight: 800 !important;
    color: #fff !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2) !important;
    text-align: left !important;
    margin-bottom: 25px !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5) !important;
    float: left !important;
    clear: both !important;
}

.d_timeline-text .d_title {
    clear: both;
    display: block;
    font-size: 1.6rem !important;
    color: #ffffff !important;
    /* White title */
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.3) !important;
    font-weight: 800 !important;
    margin-bottom: 8px !important;
}

/* Hover State - Smooth lift effect */
.glass-card:hover {
    background: rgba(255, 255, 255, 0.12) !important;
    border-color: rgba(255, 255, 255, 0.25) !important;
    transform: translateY(-6px) !important;
    box-shadow:
        0 24px 48px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.1) !important;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1) !important;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .d_timeline-title {
        width: 100% !important;
        margin-bottom: 15px !important;
        float: none !important;
        display: block !important;
    }

    /* Neutralize horizontal parallax on expertise cards */
    .de-skill-item {
        transform: none !important;
        margin-bottom: 20px !important;
        left: 0 !important;
    }
}

/* =========================================
   EXPERTISE SECTION SEPARATION
   ========================================= */
#section-expertise {
    /* Green gradient background matching the site theme */
    background: linear-gradient(160deg,
        rgba(0, 12, 6, 0.97) 0%,
        rgba(0, 35, 18, 0.95) 30%,
        rgba(0, 50, 25, 0.92) 50%,
        rgba(0, 35, 18, 0.95) 70%,
        rgba(0, 12, 6, 0.97) 100%) !important;
    padding: 90px 0;
    position: relative;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Subtle green radial glow accent */
#section-expertise::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70%;
    height: 50%;
    background: radial-gradient(ellipse at center, rgba(0, 255, 136, 0.04) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

/* Fix for all section headings - remove unnecessary 60px left margin site-wide */
section h1,
section h2,
section h3,
section h4 {
    margin-left: 0 !important;
}

/* Green-themed Background for Resume Section */
#section-resume {
    background-image: none !important;
    background: linear-gradient(135deg,
        rgba(0, 15, 8, 0.97) 0%,
        rgba(0, 40, 20, 0.95) 25%,
        rgba(0, 60, 30, 0.92) 50%,
        rgba(0, 40, 20, 0.95) 75%,
        rgba(0, 15, 8, 0.97) 100%) !important;
    position: relative;
}

/* Subtle green radial glow accent */
#section-resume::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 60%;
    background: radial-gradient(ellipse at center, rgba(0, 255, 136, 0.06) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

/* =========================================
   SKILLS SECTION OVERRIDES
   ========================================= */
#section-skills {
    background: linear-gradient(145deg,
        #080808 0%,
        #101010 30%,
        #141414 50%,
        #101010 70%,
        #080808 100%) !important;
    padding: 90px 0;
    position: relative;
    color: #ffffff !important;
}

/* Subtle accent glow */
#section-skills::before {
    content: '';
    position: absolute;
    top: 0;
    left: 20%;
    right: 20%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 136, 0.15), transparent);
}

/* FADE BOTTOM TRANSITION */
.fade-bottom {
    position: relative;
}

.fade-bottom::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 150px;
    background: linear-gradient(to top, var(--bg-dark-1), transparent);
    z-index: 1;
    pointer-events: none;
}

/* =========================================
   EXPERIENCE/REVIEWS SECTION OVERRIDES
   ========================================= */
#section-my-quote {
    background: linear-gradient(170deg,
        #0a0a0a 0%,
        #111111 25%,
        #161616 50%,
        #111111 75%,
        #0a0a0a 100%) !important;
    padding: 90px 0;
    position: relative;
    color: #ffffff !important;
}

/* Subtle accent glow */
#section-my-quote::before {
    content: '';
    position: absolute;
    top: 0;
    left: 20%;
    right: 20%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 136, 0.15), transparent);
}

/* =========================================
   CONTACT SECTION OVERRIDES
   ========================================= */
#section-contact {
    background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url(../images/background/Contact\ me\ background.jpg) !important;
    background-size: cover !important;
    background-position: center !important;
    color: #ffffff !important;
}

/* =========================================
   HIRE ME MODAL OVERRIDES
   ========================================= */
#hireMeModal .modal-content {
    background: rgba(10, 10, 10, 0.95) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7) !important;
}

#hireMeModal .modal-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
    padding: 20px 25px !important;
}

#hireMeModal .modal-title {
    font-weight: 700 !important;
    letter-spacing: -0.5px !important;
    font-size: 1.5rem !important;
}

#hireMeModal .modal-body {
    padding: 30px 25px !important;
}

#hireMeModal .btn-outline-light {
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    color: rgba(255, 255, 255, 0.9) !important;
    background: transparent !important;
    transition: all 0.3s ease !important;
    font-weight: 500 !important;
    padding: 12px !important;
    text-align: left !important;
    justify-content: flex-start !important;
}

#hireMeModal .btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
    transform: translateY(-2px) !important;
}

#hireMeModal .btn-main {
    justify-content: flex-start !important;
    padding: 12px 25px !important;
    box-shadow: 0 10px 20px -5px rgba(32, 201, 151, 0.4) !important;
}

#hireMeModal .btn i {
    width: 24px;
    text-align: center;
    margin-right: 10px;
    font-size: 1.1rem;
}

/* =========================================
   Hire Me Modal - Custom Button Base
   (Decoupled from .btn to avoid global JS glitches)
   ========================================= */
.h-btn {
    display: inline-block;
    cursor: pointer;
    text-decoration: none;
    border: 1px solid transparent;
    background: transparent;
}

/* =========================================
   Pill Glass Button Style (Requested Ref)
   ========================================= */
.btn-pill-glass {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 30px !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #fff !important;
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.5) !important;
    border-radius: 50px !important;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    transition: all 0.3s ease;
    text-decoration: none !important;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-pill-glass:hover {
    background: #fff !important;
    color: #000 !important;
    border-color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(255, 255, 255, 0.2);
}

.btn-pill-glass:active {
    transform: translateY(0);
}

.btn-pill-glass i {
    margin-right: 8px;
}

/* Mobile Hero Text Size */
@media (max-width: 768px) {
    .h1_big {
        font-size: 2rem !important;
        line-height: 1.2 !important;
    }
}

/* =========================================
   SKILLS SECTION - PILL TAGS REDESIGN
   ========================================= */

/* Skills tag pills */
ul.skills-tags {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

ul.skills-tags li {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50px;
    padding: 8px 22px;
    font-size: 0.88rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    transition: all 0.35s cubic-bezier(0.23, 1, 0.32, 1);
    white-space: nowrap;
    cursor: default;
    position: relative;
    overflow: hidden;
}

/* Shimmer sweep effect on hover */
ul.skills-tags li::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: left 0.5s ease;
}

ul.skills-tags li:hover::before {
    left: 100%;
}

ul.skills-tags li:hover {
    background: rgba(32, 201, 151, 0.15);
    color: #fff;
    border-color: rgba(32, 201, 151, 0.5);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(32, 201, 151, 0.2);
}

/* Skills section heading spacing */
#section-skills h3 {
    margin-bottom: 20px !important;
    font-size: 1.4rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.5px;
    color: #fff !important;
}

/* Staggered fade-in animation */
@keyframes skillFadeIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

ul.skills-tags li {
    animation: skillFadeIn 0.5s ease forwards;
    opacity: 0;
}

/* Stagger delays */
ul.skills-tags li:nth-child(1)  { animation-delay: 0.03s; }
ul.skills-tags li:nth-child(2)  { animation-delay: 0.06s; }
ul.skills-tags li:nth-child(3)  { animation-delay: 0.09s; }
ul.skills-tags li:nth-child(4)  { animation-delay: 0.12s; }
ul.skills-tags li:nth-child(5)  { animation-delay: 0.15s; }
ul.skills-tags li:nth-child(6)  { animation-delay: 0.18s; }
ul.skills-tags li:nth-child(7)  { animation-delay: 0.21s; }
ul.skills-tags li:nth-child(8)  { animation-delay: 0.24s; }
ul.skills-tags li:nth-child(9)  { animation-delay: 0.27s; }
ul.skills-tags li:nth-child(10) { animation-delay: 0.30s; }
ul.skills-tags li:nth-child(11) { animation-delay: 0.33s; }
ul.skills-tags li:nth-child(12) { animation-delay: 0.36s; }
ul.skills-tags li:nth-child(13) { animation-delay: 0.39s; }
ul.skills-tags li:nth-child(14) { animation-delay: 0.42s; }
ul.skills-tags li:nth-child(15) { animation-delay: 0.45s; }
ul.skills-tags li:nth-child(n+16) { animation-delay: 0.48s; }

/* Mobile: skills tag responsive */
@media (max-width: 768px) {
    ul.skills-tags {
        gap: 8px;
    }
    ul.skills-tags li {
        font-size: 0.82rem;
        padding: 6px 16px;
    }
}

/* =========================================
   HIRE ME BUTTON - SUBTLE GLOW PULSE
   ========================================= */
@keyframes subtleGlow {
    0%, 100% {
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), 0 0 0 0 rgba(32, 201, 151, 0);
    }
    50% {
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1), 0 0 25px 3px rgba(32, 201, 151, 0.15);
    }
}

header .btn-pill-glass,
#section-hero .btn-pill-glass {
    animation: subtleGlow 3s ease-in-out infinite;
}

/* Don't animate when hovered - keep the hover state clean */
header .btn-pill-glass:hover,
#section-hero .btn-pill-glass:hover {
    animation: none;
}

/* =========================================
   PROJECT CARD DESCRIPTIONS
   ========================================= */
.post-desc {
    font-size: 0.82rem !important;
    color: rgba(255, 255, 255, 0.6) !important;
    margin: 4px 0 8px !important;
    padding: 0 12px !important;
    line-height: 1.4 !important;
    text-align: center !important;
    font-weight: 400 !important;
    letter-spacing: 0.2px;
}

/* =========================================
   HEADER - CONSISTENT TOP PADDING
   ========================================= */
header.header-full.transparent {
    padding-top: 15px !important;
    padding-bottom: 15px !important;
}