/* ======================================
   PREMIUM UI EFFECTS — CSS
   Upgrades: Glassmorphism, Gradient Borders,
   3D Tilt, Smooth Transitions, Staggered Reveals,
   Enhanced Modal, Floating Badge
   ====================================== */


/* =============================================
   PREMIUM SIDEBAR PROFILE CARD
   ============================================= */

/* Avatar enhancements */
.avatar-box {
    position: relative !important;
    border: 2px solid rgba(255, 219, 112, 0.4) !important;
    border-radius: 18% !important;
}



/* Green availability status dot */
.avatar-status {
    position: absolute;
    bottom: 8px;
    right: 8px;
    width: 14px;
    height: 14px;
    background: #22c55e;
    border-radius: 50%;
    border: 2.5px solid hsl(240, 2%, 13%);
    z-index: 2;
    animation: statusPulse 2.5s ease-in-out infinite;
}

@keyframes statusPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5); }
    50% { box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); }
}

/* Sidebar tagline */
.sidebar-tagline {
    color: var(--light-gray-70);
    font-size: 12px;
    font-weight: 300;
    line-height: 1.6;
    text-align: center;
    padding: 0 10px;
    margin-bottom: 20px;
    font-style: italic;
}

/* Enhanced contact items */
.contact-item {
    transition: transform 0.3s ease !important;
    padding: 4px 6px;
    border-radius: 10px;
}

.contact-item:hover {
    transform: translateX(4px) !important;
}

.contact-item:hover .icon-box {
    box-shadow: 0 0 12px rgba(255, 219, 112, 0.2);
}

/* Enhanced social links */
.social-list {
    justify-content: center !important;
    gap: 12px !important;
}

.social-item .social-link {
    width: 36px;
    height: 36px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.03);
    transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
    font-size: 16px !important;
}

.social-item .social-link:hover {
    color: #ffdb70 !important;
    border-color: rgba(255, 219, 112, 0.25) !important;
    background: rgba(255, 219, 112, 0.08) !important;
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(255, 219, 112, 0.1);
}

/* Separator enhancements */
.sidebar .separator {
    background: linear-gradient(
        90deg, 
        transparent, 
        rgba(255, 255, 255, 0.08), 
        transparent
    ) !important;
}

/* Name enhancements */
.info-content .name {
    letter-spacing: 0.5px !important;
}

/* Sidebar card itself */
.sidebar {
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
    transition: border-color 0.4s ease, box-shadow 0.4s ease, max-height 0.5s ease-in-out !important;
}

.sidebar:hover {
    border-color: rgba(255, 255, 255, 0.1) !important;
}

/* --- 1. SCROLL PROGRESS BAR --- */
#scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, #ffdb70, #d4a84b, #ffda6b);
    z-index: 9999;
    transition: width 0.1s linear;
    box-shadow: 0 0 8px rgba(255, 219, 112, 0.5);
}

/* --- 2. TYPING ANIMATION --- */
.typing-wrapper {
    display: inline-flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
}

.typing-static {
    color: var(--light-gray);
}

.typing-dynamic {
    color: var(--orange-yellow-crayola, #ffdb70);
    font-weight: var(--fw-500, 500);
    border-right: 2px solid var(--orange-yellow-crayola, #ffdb70);
    padding-right: 4px;
    animation: blink-cursor 0.7s step-end infinite;
    min-width: 0;
    white-space: nowrap;
}

@keyframes blink-cursor {
    0%, 100% { border-color: var(--orange-yellow-crayola, #ffdb70); }
    50% { border-color: transparent; }
}

/* --- 3. STATS COUNTER --- */
.stats-section {
    margin-top: 30px;
    margin-bottom: 30px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.stat-item {
    position: relative;
    background: var(--border-gradient-onyx, linear-gradient(to bottom right, hsl(0, 0%, 25%) 0%, hsla(0, 0%, 25%, 0) 50%));
    padding: 20px 16px;
    border-radius: 14px;
    text-align: center;
    z-index: 1;
    box-shadow: var(--shadow-2, -4px 8px 24px hsla(0, 0%, 0%, 0.25));
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                box-shadow 0.4s ease;
}

.stat-item::before {
    content: "";
    position: absolute;
    inset: 1px;
    background: var(--bg-gradient-jet, linear-gradient(to bottom right, hsla(240, 1%, 18%, 0.251) 0%, hsla(240, 2%, 11%, 0) 100%), hsl(240, 2%, 13%));
    border-radius: inherit;
    z-index: -1;
    transition: background 0.4s ease;
}

.stat-icon {
    font-size: 28px;
    color: var(--orange-yellow-crayola, #ffdb70);
    margin-bottom: 8px;
}

.stat-number {
    font-size: 28px;
    font-weight: 600;
    color: var(--white-2, #fff);
    line-height: 1.2;
}

.stat-suffix {
    font-size: 20px;
    color: var(--orange-yellow-crayola, #ffdb70);
}

.stat-label {
    color: var(--light-gray, hsl(0, 0%, 84%));
    font-size: 13px;
    font-weight: 300;
    margin-top: 4px;
}

/* Stats responsive */
@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}

@media (max-width: 400px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .stat-item {
        padding: 14px 10px;
    }

    .stat-number {
        font-size: 22px;
    }

    .stat-label {
        font-size: 11px;
    }
}

/* --- 4. PRELOADER --- */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #1e1e1e;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.loading-overlay.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader {
    display: none;
}

.preloader-spinner {
    position: relative;
    width: 80px;
    height: 80px;
}

.spinner-ring {
    position: absolute;
    border-radius: 50%;
    border: 2px solid transparent;
}

.ring-1 {
    inset: 0;
    border-top-color: #ffdb70;
    animation: spin 1.2s linear infinite;
}

.ring-2 {
    inset: 8px;
    border-right-color: #d4a84b;
    animation: spin 1.8s linear infinite reverse;
}

.ring-3 {
    inset: 16px;
    border-bottom-color: #ffda6b;
    animation: spin 0.9s linear infinite;
}

.spinner-dot {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 8px;
    height: 8px;
    background: #ffdb70;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: dot-pulse 1.2s ease-in-out infinite;
    box-shadow: 0 0 12px rgba(255, 219, 112, 0.6);
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes dot-pulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
    50% { transform: translate(-50%, -50%) scale(0.5); opacity: 0.4; }
}

.preloader-text {
    margin-top: 20px;
    color: var(--white-2, #fff);
    font-size: 14px;
    font-weight: 300;
    letter-spacing: 3px;
    text-transform: uppercase;
    animation: preloader-fade 1.5s ease-in-out infinite;
}

@keyframes preloader-fade {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.preloader-bar {
    width: 120px;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    margin-top: 16px;
    border-radius: 2px;
    overflow: hidden;
}

.preloader-bar-fill {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #ffdb70, #d4a84b);
    border-radius: inherit;
    animation: preloader-bar-anim 1.8s ease-in-out forwards;
}

@keyframes preloader-bar-anim {
    0% { width: 0%; }
    50% { width: 70%; }
    100% { width: 100%; }
}

/* --- 5. CUSTOM CURSOR --- */
.cursor-dot {
    position: fixed;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ffdb70;
    pointer-events: none;
    z-index: 99999;
    transform: translate(-50%, -50%);
    transition: width 0.2s ease, height 0.2s ease, background 0.2s ease;
    mix-blend-mode: difference;
}

.cursor-ring {
    position: fixed;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1.5px solid rgba(255, 219, 112, 0.5);
    pointer-events: none;
    z-index: 99998;
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease, border-color 0.3s ease, opacity 0.3s ease;
    opacity: 0;
}

.cursor-ring.active {
    opacity: 1;
}

/* Hover state on links/buttons */
.cursor-ring.hover {
    width: 50px;
    height: 50px;
    border-color: rgba(255, 219, 112, 0.8);
}

.cursor-dot.hover {
    width: 4px;
    height: 4px;
}

/* Click state */
.cursor-ring.click {
    width: 28px;
    height: 28px;
    border-color: #ffdb70;
}

/* Hide on touch devices */
@media (hover: none) and (pointer: coarse) {
    .cursor-dot,
    .cursor-ring {
        display: none !important;
    }
}


/* =============================================
   UPGRADE #1 — GLASSMORPHISM CARD HOVER
   ============================================= */

/* Service items glassmorphism hover */
.service-item {
    position: relative;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                box-shadow 0.4s ease,
                background 0.4s ease;
    will-change: transform;
}

.service-item:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3),
                0 0 30px rgba(255, 219, 112, 0.08);
}

/* Stat items glassmorphism hover */
.stat-item:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3),
                0 0 30px rgba(255, 219, 112, 0.1);
}

/* Timeline items glassmorphism hover */
.timeline-item > div {
    position: relative;
    transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                box-shadow 0.35s ease !important;
    border-radius: 10px;
    padding: 12px 16px;
}

.timeline-item > div:hover {
    background: rgba(255, 255, 255, 0.03) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2),
                inset 0 0 0 1px rgba(255, 219, 112, 0.08) !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

/* Skills list items glassmorphism */
.skills-item {
    position: relative;
    padding: 12px 16px;
    border-radius: 10px;
    transition: background 0.3s ease,
                box-shadow 0.3s ease,
                transform 0.3s ease;
}

.skills-item:hover {
    background: rgba(255, 255, 255, 0.03);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    transform: translateX(4px);
}

/* Blog items glassmorphism */
.blog-post-item {
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                box-shadow 0.4s ease;
}

.blog-post-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3),
                0 0 20px rgba(255, 219, 112, 0.06);
}


/* =============================================
   UPGRADE #3 — SMOOTH SECTION PAGE TRANSITIONS
   ============================================= */

/* Page transition base */
article[data-page] {
    transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Entering page animation */
article[data-page].active {
    animation: pageSlideIn 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes pageSlideIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}


/* =============================================
   UPGRADE #6B — PREMIUM TIMELINE VISUAL CONNECTOR
   ============================================= */

/* Enhanced vertical connector line */
.timeline-item:not(:last-child)::before {
    content: "" !important;
    position: absolute !important;
    top: -25px !important;
    left: -30px !important;
    width: 2px !important;
    height: calc(100% + 50px) !important;
    background: linear-gradient(
        to bottom,
        rgba(255, 219, 112, 0.5),
        rgba(255, 219, 112, 0.15),
        rgba(255, 219, 112, 0.05)
    ) !important;
    box-shadow: 0 0 6px rgba(255, 219, 112, 0.1);
}

/* Enhanced dot marker */
.timeline-item::after {
    content: "" !important;
    position: absolute !important;
    top: 5px !important;
    left: -33px !important;
    height: 8px !important;
    width: 8px !important;
    background: linear-gradient(135deg, #ffdb70, #d4a84b) !important;
    border-radius: 50% !important;
    box-shadow: 0 0 0 3px hsl(240, 2%, 13%),
                0 0 0 5px rgba(255, 219, 112, 0.25),
                0 0 12px rgba(255, 219, 112, 0.3) !important;
    z-index: 2 !important;
    transition: transform 0.3s ease,
                box-shadow 0.3s ease !important;
    animation: none !important;
}

/* Pulse ring on hover */
.timeline-item:hover::after {
    transform: scale(1.4) !important;
    box-shadow: 0 0 0 3px hsl(240, 2%, 13%),
                0 0 0 6px rgba(255, 219, 112, 0.35),
                0 0 20px rgba(255, 219, 112, 0.5) !important;
}

/* Animated glow pulse on the active/first timeline dot */
.timeline-item:first-child::after {
    animation: timelineDotPulse 2.5s ease-in-out infinite !important;
}

@keyframes timelineDotPulse {
    0%, 100% {
        box-shadow: 0 0 0 3px hsl(240, 2%, 13%),
                    0 0 0 5px rgba(255, 219, 112, 0.25),
                    0 0 12px rgba(255, 219, 112, 0.3);
    }
    50% {
        box-shadow: 0 0 0 3px hsl(240, 2%, 13%),
                    0 0 0 8px rgba(255, 219, 112, 0.15),
                    0 0 20px rgba(255, 219, 112, 0.5);
    }
}

/* ---- Base: margin-left:45px, icon-box:30px → icon center = 15px ---- */
/* dot center at 15px: left = -(45 - 15 + 4) = -34px (8px dot) */
/* line center at 15px: left = -(45 - 15 + 1) = -31px */
.timeline-item::after {
    left: -34px !important;
}
.timeline-item:not(:last-child)::before {
    left: -31px !important;
}

/* Desktop (margin-left:65px, icon-box:48px → icon center = 24px) */
@media (min-width: 1250px) {
    .timeline-item::after {
        left: -45px !important;
        height: 8px !important;
        width: 8px !important;
    }
    .timeline-item:not(:last-child)::before {
        left: -42px !important;
    }
}

/* Tablet (margin-left:30px, icon-box:30px → icon center = 15px) */
@media (max-width: 768px) {
    .timeline-item::after {
        left: -18.5px !important;
        height: 7px !important;
        width: 7px !important;
    }
    .timeline-item:not(:last-child)::before {
        left: -16px !important;
    }
}

/* Mobile (margin-left:28px, icon-box:30px → icon center = 15px) */
@media (max-width: 579px) {
    .timeline-item::after {
        left: -16.5px !important;
        height: 7px !important;
        width: 7px !important;
    }
    .timeline-item:not(:last-child)::before {
        left: -14px !important;
    }
}

/* Tiny phones */
@media (max-width: 375px) {
    .timeline-item::after {
        left: -16.5px !important;
        height: 6px !important;
        width: 6px !important;
    }
    .timeline-item:not(:last-child)::before {
        left: -14px !important;
    }
}

/* Navbar active link underline animation */
.navbar-link {
    position: relative;
    overflow: hidden;
}

.navbar-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #ffdb70, #d4a84b);
    transition: width 0.3s ease, left 0.3s ease;
    border-radius: 2px;
}

.navbar-link:hover::after,
.navbar-link.active::after {
    width: 100%;
    left: 0;
}


/* =============================================
   UPGRADE #4 — ANIMATED GRADIENT BORDER
   ============================================= */

/* Animated border wrapper for service items */
.service-item::after {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    padding: 1.5px;
    background: linear-gradient(
        var(--gradient-angle, 0deg),
        transparent 40%,
        rgba(255, 219, 112, 0.6) 50%,
        transparent 60%
    );
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 2;
}

.service-item:hover::after {
    opacity: 1;
    animation: gradientBorderSpin 3s linear infinite;
}

@keyframes gradientBorderSpin {
    0% { --gradient-angle: 0deg; }
    100% { --gradient-angle: 360deg; }
}

/* Fallback for browsers that don't support @property */
@supports not (background: paint(something)) {
    .service-item:hover::after {
        background: linear-gradient(45deg, 
            rgba(255, 219, 112, 0) 0%,
            rgba(255, 219, 112, 0.4) 25%,
            rgba(255, 219, 112, 0) 50%,
            rgba(255, 219, 112, 0.4) 75%,
            rgba(255, 219, 112, 0) 100%
        );
        background-size: 300% 300%;
        animation: gradientBorderMove 2s linear infinite;
    }
}

@keyframes gradientBorderMove {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Gradient border for skill category cards */
.skills-list.content-card {
    position: relative;
    overflow: hidden;
    transition: box-shadow 0.4s ease;
}

.skills-list.content-card::after {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    padding: 1.5px;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(255, 219, 112, 0.3) 50%,
        transparent 70%
    );
    background-size: 300% 300%;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.skills-list.content-card:hover::after {
    opacity: 1;
    animation: gradientBorderMove 2s linear infinite;
}

.skills-list.content-card:hover {
    box-shadow: 0 8px 32px rgba(255, 219, 112, 0.06);
}


/* =============================================
   UPGRADE #5 — 3D TILT EFFECT (JS-driven)
   ============================================= */

/* Tilt container with 3D perspective */
.tilt-card {
    transform-style: preserve-3d;
    perspective: 800px;
    transition: transform 0.15s ease-out;
}

.tilt-card .tilt-inner {
    transform: translateZ(20px);
    transition: transform 0.3s ease;
}

/* Tilt shine overlay */
.tilt-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(
        circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
        rgba(255, 219, 112, 0.08) 0%,
        transparent 60%
    );
    pointer-events: none;
    z-index: 3;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.tilt-card:hover::before {
    opacity: 1;
}

/* Project items perspective */
.project-item {
    transform-style: preserve-3d;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-item:hover {
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

.project-item .project-img {
    overflow: hidden;
    border-radius: 16px 16px 0 0;
}

.project-item:hover .project-img img {
    transform: scale(1.08);
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.project-item .project-img img {
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}


/* =============================================
   UPGRADE #6 — ENHANCED CERTIFICATE MODAL
   ============================================= */

/* Modal backdrop with blur */
.certificate-modal {
    backdrop-filter: blur(8px) saturate(120%);
    -webkit-backdrop-filter: blur(8px) saturate(120%);
    background: rgba(0, 0, 0, 0.7) !important;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}

/* Modal content with premium styling */
.certificate-modal-content {
    background: linear-gradient(
        145deg,
        hsl(240, 2%, 15%) 0%,
        hsl(240, 2%, 11%) 100%
    ) !important;
    border: 1px solid rgba(255, 219, 112, 0.12);
    border-radius: 20px !important;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5),
                0 0 40px rgba(255, 219, 112, 0.05);
    animation: modalZoomIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    max-width: 85vw;
    max-height: 90vh;
    overflow-y: auto;
    padding: 28px !important;
}

@keyframes modalZoomIn {
    0% {
        opacity: 0;
        transform: scale(0.85) translateY(20px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Modal close button */
.certificate-modal-close {
    width: 36px;
    height: 36px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
    font-size: 20px;
    line-height: 1;
}

.certificate-modal-close:hover {
    background: rgba(255, 219, 112, 0.2);
    transform: rotate(90deg);
}

/* Modal image */
.certificate-modal-content img {
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.certificate-modal-content img:hover {
    transform: scale(1.02);
}

/* Blog modal enhancements */
.blog-modal {
    backdrop-filter: blur(8px) saturate(120%);
    -webkit-backdrop-filter: blur(8px) saturate(120%);
    background: rgba(0, 0, 0, 0.7) !important;
}

.blog-modal-content {
    background: linear-gradient(
        145deg,
        hsl(240, 2%, 15%) 0%,
        hsl(240, 2%, 11%) 100%
    ) !important;
    border: 1px solid rgba(255, 219, 112, 0.1);
    border-radius: 20px !important;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
    animation: modalZoomIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}


/* =============================================
   PREMIUM BLOG CARDS REDESIGN
   ============================================= */

/* Card container */
.blog-post-item {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.blog-post-item > a {
    display: flex !important;
    flex-direction: column;
    height: 100%;
    border-radius: 16px !important;
    overflow: hidden;
    background: linear-gradient(
        160deg,
        hsl(240, 2%, 14%) 0%,
        hsl(240, 2%, 10%) 100%
    ) !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                box-shadow 0.4s ease,
                border-color 0.4s ease !important;
}

.blog-post-item > a:hover {
    transform: translateY(-8px) !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4),
                0 0 30px rgba(255, 219, 112, 0.06) !important;
    border-color: rgba(255, 219, 112, 0.15) !important;
}

/* Banner with consistent aspect ratio */
.blog-post-item .blog-banner-box {
    position: relative;
    width: 100%;
    height: 220px !important;
    overflow: hidden;
    border-radius: 16px 16px 0 0 !important;
    flex-shrink: 0;
}

.blog-post-item .blog-banner-box img {
    width: 100%;
    height: 100% !important;
    object-fit: cover !important;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
}

.blog-post-item > a:hover .blog-banner-box img {
    transform: scale(1.08) !important;
}

/* Gradient overlay on image */
.blog-post-item .blog-banner-box::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60%;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.5) 0%,
        transparent 100%
    );
    pointer-events: none;
    z-index: 1;
    transition: opacity 0.3s ease;
}

/* Category badge */
.blog-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    padding: 5px 14px;
    background: rgba(255, 219, 112, 0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 219, 112, 0.25);
    border-radius: 20px;
    color: #ffdb70;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    z-index: 2;
    transition: background 0.3s ease, transform 0.3s ease;
}

.blog-post-item > a:hover .blog-badge {
    background: rgba(255, 219, 112, 0.25);
    transform: translateY(-2px);
}

/* Content area */
.blog-post-item .blog-content {
    padding: 20px 22px 22px !important;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

/* Meta info row */
.blog-post-item .blog-meta {
    display: flex !important;
    align-items: center !important;
    gap: 16px !important;
    margin-bottom: 14px !important;
}

.blog-post-item .blog-meta time,
.blog-post-item .blog-read-time {
    display: inline-flex !important;
    align-items: center;
    gap: 5px;
    color: var(--light-gray-70) !important;
    font-size: 12px !important;
    font-weight: 400;
}

.blog-post-item .blog-meta time ion-icon,
.blog-post-item .blog-read-time ion-icon {
    font-size: 14px;
    color: var(--vegas-gold);
}

/* Title */
.blog-post-item .blog-item-title {
    font-size: 17px !important;
    font-weight: 600 !important;
    line-height: 1.45 !important;
    color: var(--white-2) !important;
    margin-bottom: 10px !important;
    transition: color 0.3s ease !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-post-item > a:hover .blog-item-title {
    color: #ffdb70 !important;
}

/* Excerpt text */
.blog-post-item .blog-text {
    font-size: 13.5px !important;
    line-height: 1.65 !important;
    color: var(--light-gray) !important;
    font-weight: 300 !important;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 16px !important;
    flex-grow: 1;
}

/* Read More CTA */
.blog-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--orange-yellow-crayola);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.3px;
    transition: gap 0.3s ease, color 0.3s ease;
    margin-top: auto;
}

.blog-cta ion-icon {
    font-size: 16px;
    transition: transform 0.3s ease;
}

.blog-post-item > a:hover .blog-cta {
    gap: 10px;
}

.blog-post-item > a:hover .blog-cta ion-icon {
    transform: translateX(4px);
}

/* Blog grid layout */
.blog-posts-list {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)) !important;
    gap: 24px !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .blog-posts-list {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }

    .blog-post-item .blog-banner-box {
        height: 200px !important;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .blog-post-item .blog-banner-box {
        height: 200px !important;
    }
}

/* Blog modal title and content text colors for dark theme */
.blog-modal-content h4 {
    color: var(--white-2) !important;
}

.blog-modal-content {
    color: var(--light-gray) !important;
}

.blog-modal-close {
    color: var(--light-gray) !important;
}

.blog-modal-close:hover {
    color: #ffdb70 !important;
}


/* =============================================
   PREMIUM SKILLS SECTION REDESIGN
   ============================================= */

/* Skills page title */
.skill .skills-title {
    color: var(--white-2) !important;
    font-size: 26px !important;
    margin-bottom: 28px;
    position: relative;
    padding-bottom: 12px;
}

.skill .skills-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, #ffdb70, #d4a84b);
    border-radius: 3px;
}

/* Category styling */
.skill .skill-category {
    margin-bottom: 28px !important;
}

.skill .skill-category-title {
    font-size: 16px !important;
    font-weight: 600 !important;
    color: var(--white-2) !important;
    letter-spacing: 0.3px;
    padding-bottom: 10px;
    margin-bottom: 16px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
    position: relative;
}

.skill .skill-category-title::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, #ffdb70, transparent);
}

/* Skills list - 2 column grid */
.skill .skills-list.content-card {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px 20px !important;
    padding: 20px !important;
    background: rgba(255, 255, 255, 0.02) !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    border-radius: 14px !important;
}

/* Individual skill item */
.skill .skills-item {
    padding: 0 !important;
}

.skill .skills-item .title-wrapper {
    display: flex !important;
    align-items: center !important;
    gap: 0 !important;
    margin-bottom: 8px !important;
}

.skill .skills-item .title-wrapper ion-icon,
.skill .skills-item .title-wrapper img {
    width: 22px !important;
    height: 22px !important;
    font-size: 20px !important;
    margin-right: 10px !important;
    flex-shrink: 0;
}

.skill .skills-item .title-wrapper .h5 {
    font-size: 13.5px !important;
    font-weight: 500 !important;
    color: var(--white-2) !important;
    flex-grow: 1;
}

.skill .skills-item .title-wrapper data {
    font-size: 12px !important;
    font-weight: 600 !important;
    color: var(--vegas-gold) !important;
    margin-left: auto;
}

/* Progress bar redesign */
.skill .skill-progress-bg {
    width: 100% !important;
    height: 5px !important;
    background: rgba(255, 255, 255, 0.06) !important;
    border-radius: 10px !important;
    overflow: hidden;
    position: relative;
}

.skill .skill-progress-fill {
    height: 100% !important;
    background: linear-gradient(90deg, #d4a84b, #ffdb70) !important;
    border-radius: 10px !important;
    position: relative;
    transition: width 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
}

.skill .skill-progress-fill::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 10px;
    height: 10px;
    background: #ffdb70;
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(255, 219, 112, 0.5);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.skill .skills-item:hover .skill-progress-fill::after {
    opacity: 1;
}

/* Responsive */
@media (max-width: 768px) {
    .skill .skills-list.content-card {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }
}


/* =============================================
   UPGRADE #7 — STAGGERED REVEAL ANIMATIONS
   ============================================= */

/* Staggered entrance base */
.stagger-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.stagger-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger from left variant */
.stagger-reveal-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.stagger-reveal-left.revealed {
    opacity: 1;
    transform: translateX(0);
}

/* Stagger scale-up variant */
.stagger-reveal-scale {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.stagger-reveal-scale.revealed {
    opacity: 1;
    transform: scale(1);
}

/* Apply stagger delays via CSS custom property */
.stagger-reveal[style*="--stagger-delay"],
.stagger-reveal-left[style*="--stagger-delay"],
.stagger-reveal-scale[style*="--stagger-delay"] {
    transition-delay: var(--stagger-delay, 0ms);
}


/* =============================================
   UPGRADE #8 — FLOATING AVAILABLE BADGE
   ============================================= */

.available-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(76, 175, 80, 0.12);
    border: 1px solid rgba(76, 175, 80, 0.3);
    border-radius: 20px;
    margin-top: 12px;
    font-size: 11px;
    color: #81c784;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-weight: 500;
}

.available-badge .pulse-dot {
    width: 8px;
    height: 8px;
    background: #4caf50;
    border-radius: 50%;
    position: relative;
    flex-shrink: 0;
}

.available-badge .pulse-dot::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    background: rgba(76, 175, 80, 0.4);
    animation: pulseDot 2s ease-in-out infinite;
}

@keyframes pulseDot {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.8);
        opacity: 0;
    }
}


/* =============================================
   EXTRA — ENHANCED SKILL PROGRESS BARS
   ============================================= */

.skill-progress-fill {
    position: relative;
    overflow: hidden;
}

.skill-progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    animation: shimmer 2.5s ease-in-out infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 200%; }
}


/* =============================================
   EXTRA — NAVBAR HOVER GLOW
   ============================================= */

.navbar-link {
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

.navbar-link:hover {
    text-shadow: 0 0 12px rgba(255, 219, 112, 0.3);
}

.navbar-link.active {
    text-shadow: 0 0 16px rgba(255, 219, 112, 0.4);
}


/* =============================================
   EXTRA — FORM INPUT FOCUS GLOW
   ============================================= */

.form-input {
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-input:focus {
    box-shadow: 0 0 0 2px rgba(255, 219, 112, 0.15),
                0 4px 20px rgba(0, 0, 0, 0.1);
}

/* Send button hover enhancement */
.form-btn:not(:disabled) {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.form-btn:not(:disabled):hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 219, 112, 0.2);
}


/* =============================================
   EXTRA — SOCIAL LINK HOVER EFFECTS
   ============================================= */

.social-link {
    transition: transform 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}

.social-link:hover {
    transform: translateY(-3px) scale(1.15);
    color: #ffdb70 !important;
    filter: drop-shadow(0 4px 8px rgba(255, 219, 112, 0.3));
}


/* =============================================
   EXTRA — CONTACT ITEM HOVER
   ============================================= */

.contact-item {
    transition: transform 0.3s ease, background 0.3s ease;
    border-radius: 10px;
    padding: 4px 8px;
    margin: -4px -8px;
}

.contact-item:hover {
    transform: translateX(6px);
    background: rgba(255, 255, 255, 0.02);
}


/* =============================================
   PERFORMANCE — Reduce motion
   ============================================= */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .stagger-reveal,
    .stagger-reveal-left,
    .stagger-reveal-scale {
        opacity: 1 !important;
        transform: none !important;
    }
}


/* =============================================
   PREMIUM CONTACT SECTION REDESIGN
   ============================================= */

/* Contact intro text */
.contact-intro {
    color: var(--light-gray) !important;
    font-size: 15px;
    font-weight: 300;
    line-height: 1.7;
    margin-bottom: 28px;
}

/* Contact info cards grid */
.contact-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 32px;
}

.contact-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    text-decoration: none;
    transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                background 0.35s ease,
                border-color 0.35s ease,
                box-shadow 0.35s ease;
    cursor: default;
}

a.contact-card {
    cursor: pointer;
}

.contact-card:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 219, 112, 0.15);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2),
                0 0 20px rgba(255, 219, 112, 0.04);
}

.contact-card-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 219, 112, 0.1);
    border: 1px solid rgba(255, 219, 112, 0.15);
    border-radius: 12px;
    flex-shrink: 0;
    transition: background 0.3s ease;
}

.contact-card:hover .contact-card-icon {
    background: rgba(255, 219, 112, 0.18);
}

.contact-card-icon ion-icon {
    font-size: 20px;
    color: #ffdb70;
}

.contact-card-label {
    display: block;
    font-size: 11px;
    font-weight: 500;
    color: var(--light-gray-70);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 3px;
}

.contact-card-value {
    display: block;
    font-size: 14px;
    font-weight: 400;
    color: var(--white-2);
    transition: color 0.3s ease;
}

a.contact-card:hover .contact-card-value {
    color: #ffdb70;
}

/* Enhanced form title */
.contact-form .form-title {
    position: relative;
    padding-bottom: 12px;
    margin-bottom: 24px !important;
}

.contact-form .form-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, #ffdb70, #d4a84b);
    border-radius: 3px;
}

/* Enhanced form inputs */
.contact-form .form-input {
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    transition: border-color 0.3s ease,
                box-shadow 0.3s ease,
                background 0.3s ease !important;
}

.contact-form .form-input:focus {
    background: rgba(255, 255, 255, 0.05) !important;
    border-color: rgba(255, 219, 112, 0.4) !important;
    box-shadow: 0 0 0 3px rgba(255, 219, 112, 0.08),
                0 4px 20px rgba(0, 0, 0, 0.1) !important;
}

.contact-form .form-input::placeholder {
    color: var(--light-gray-70);
}

/* Responsive contact cards */
@media (max-width: 768px) {
    .contact-cards {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .contact-cards {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }

    .contact-card {
        flex-direction: column;
        text-align: center;
        padding: 20px 14px;
    }
}
