/* ============================================
   Global Accent Override - Blue (#2196F3)
   Replaces violet throughout the site
   ============================================ */

/* --- Global accent overrides --- */
.btn {
    background-color: #1976D2 !important;
}

.navbar-nav .nav-link.active {
    color: #42A5F5 !important;
}

/* ============================================
   Premium Spotlight Navbar
   ============================================ */

/* Glassmorphism backdrop */
.navbar.fixed-top {
    background: rgba(15, 15, 20, 0.75) !important;
    backdrop-filter: blur(20px) saturate(1.8);
    -webkit-backdrop-filter: blur(20px) saturate(1.8);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    transition: background 0.4s ease, box-shadow 0.4s ease;
}

/* Aurora glow - animated light bar at the bottom edge */
.navbar.fixed-top::after {
    background-image: linear-gradient(
        90deg,
        transparent 0%,
        rgba(33, 150, 243, 0) 10%,
        rgba(33, 150, 243, 0.4) 30%,
        rgba(66, 165, 245, 0.6) 50%,
        rgba(33, 150, 243, 0.4) 70%,
        rgba(33, 150, 243, 0) 90%,
        transparent 100%
    ) !important;
    height: 1px !important;
    opacity: 1 !important;
    filter: blur(0.5px);
    animation: navbar-aurora 4s ease-in-out infinite;
}

@keyframes navbar-aurora {
    0%   { transform: translateX(-30%); opacity: 0.6; }
    50%  { transform: translateX(30%); opacity: 1; }
    100% { transform: translateX(-30%); opacity: 0.6; }
}

/* Spotlight beam - follows hovered link */
.navbar-nav {
    position: relative;
}

.navbar-nav .nav-link {
    position: relative;
    transition: color 0.3s ease, opacity 0.3s ease, transform 0.2s ease !important;
}

/* Magnetic lift on hover */
.navbar-nav .nav-link:hover {
    transform: translateY(-1px);
    opacity: 1 !important;
    color: #fff !important;
}

/* Glowing underline - slides in on hover */
.navbar-nav .nav-link::before {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #42A5F5, transparent);
    border-radius: 2px;
    transform: translateX(-50%);
    transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 8px rgba(66, 165, 245, 0.5), 0 0 20px rgba(66, 165, 245, 0.2);
}

.navbar-nav .nav-link:hover::before,
.navbar-nav .nav-link.active::before {
    width: 80%;
}

/* Active link - pulsing dot indicator */
.navbar-nav .nav-link.active::after {
    content: '' !important;
    position: absolute !important;
    bottom: 4px !important;
    left: 50% !important;
    width: 4px !important;
    height: 4px !important;
    background: #42A5F5 !important;
    border-radius: 50% !important;
    transform: translateX(-50%) !important;
    box-shadow: 0 0 6px #42A5F5, 0 0 12px rgba(66, 165, 245, 0.4) !important;
    opacity: 1 !important;
    visibility: visible !important;
    animation: nav-dot-pulse 2s ease-in-out infinite !important;
}

@keyframes nav-dot-pulse {
    0%, 100% { box-shadow: 0 0 6px #42A5F5, 0 0 12px rgba(66, 165, 245, 0.4); }
    50%      { box-shadow: 0 0 10px #42A5F5, 0 0 24px rgba(66, 165, 245, 0.6); }
}

/* Brand name glow on hover */
.navbar-brand {
    transition: text-shadow 0.3s ease, color 0.3s ease !important;
}

.navbar-brand:hover {
    text-shadow: 0 0 12px rgba(66, 165, 245, 0.5), 0 0 24px rgba(66, 165, 245, 0.2) !important;
}

.badge-dark {
    background: #1565C0 !important;
}

/* ============================================
/* ==========================================
   Dot Preloader
   ========================================== */
.preloader {
    position: fixed;
    inset: 0;
    z-index: 999999;
    background: #212121 !important;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.preloader.loaded {
    opacity: 0 !important;
    visibility: hidden !important;
}

.pl {
    --bg: #212121;
    --primary1: #ffffff;
    --primary2: rgba(255, 255, 255, 0.8);
    --trans-dur: 0.3s;
    --fg-t: rgba(255, 255, 255, 0.5);
    
    box-shadow: 2em 0 2em rgba(0, 0, 0, 0.2) inset, -2em 0 2em rgba(255, 255, 255, 0.1) inset;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transform: rotateX(30deg) rotateZ(45deg);
    width: 20em;
    height: 20em;
    color: white;
    font-size: 16px;
}

.pl, .pl__dot {
    border-radius: 50%;
}

.pl__dot {
    animation-name: shadow724;
    box-shadow: 0.1em 0.1em 0 0.1em rgba(0,0,0,0.2), 0.3em 0 0.3em rgba(0, 0, 0, 0.3);
    top: calc(50% - 0.75em);
    left: calc(50% - 0.75em);
    width: 1.5em;
    height: 1.5em;
}

.pl__dot, .pl__dot:before, .pl__dot:after {
    animation-duration: 2s;
    animation-iteration-count: infinite;
    position: absolute;
}

.pl__dot:before, .pl__dot:after {
    content: '';
    display: block;
    left: 0;
    width: inherit;
    transition: background-color var(--trans-dur);
}

.pl__dot:before {
    animation-name: pushInOut1724;
    background-color: var(--bg);
    border-radius: inherit;
    box-shadow: 0.05em 0 0.1em rgba(255, 255, 255, 0.2) inset;
    height: inherit;
    z-index: 1;
}

.pl__dot:after {
    animation-name: pushInOut2724;
    background-color: var(--primary1);
    border-radius: 0.75em;
    box-shadow: 0.1em 0.3em 0.2em rgba(255, 255, 255, 0.4) inset, 0 -0.4em 0.2em rgba(0,0,0,0.1) inset, 0 -1em 0.25em rgba(0, 0, 0, 0.1) inset;
    bottom: 0;
    clip-path: polygon(0 75%, 100% 75%, 100% 100%, 0 100%);
    height: 3em;
    transform: rotate(-45deg);
    transform-origin: 50% 2.25em;
}

.pl__dot:nth-child(1) { transform: rotate(0deg) translateX(7em) rotate(0deg); z-index: 5; }
.pl__dot:nth-child(1), .pl__dot:nth-child(1):before, .pl__dot:nth-child(1):after { animation-delay: 0s; }
.pl__dot:nth-child(2) { transform: rotate(-30deg) translateX(7em) rotate(30deg); z-index: 4; }
.pl__dot:nth-child(2), .pl__dot:nth-child(2):before, .pl__dot:nth-child(2):after { animation-delay: -0.1666666667s; }
.pl__dot:nth-child(3) { transform: rotate(-60deg) translateX(7em) rotate(60deg); z-index: 3; }
.pl__dot:nth-child(3), .pl__dot:nth-child(3):before, .pl__dot:nth-child(3):after { animation-delay: -0.3333333333s; }
.pl__dot:nth-child(4) { transform: rotate(-90deg) translateX(7em) rotate(90deg); z-index: 2; }
.pl__dot:nth-child(4), .pl__dot:nth-child(4):before, .pl__dot:nth-child(4):after { animation-delay: -0.5s; }
.pl__dot:nth-child(5) { transform: rotate(-120deg) translateX(7em) rotate(120deg); z-index: 1; }
.pl__dot:nth-child(5), .pl__dot:nth-child(5):before, .pl__dot:nth-child(5):after { animation-delay: -0.6666666667s; }
.pl__dot:nth-child(6) { transform: rotate(-150deg) translateX(7em) rotate(150deg); z-index: 1; }
.pl__dot:nth-child(6), .pl__dot:nth-child(6):before, .pl__dot:nth-child(6):after { animation-delay: -0.8333333333s; }
.pl__dot:nth-child(7) { transform: rotate(-180deg) translateX(7em) rotate(180deg); z-index: 2; }
.pl__dot:nth-child(7), .pl__dot:nth-child(7):before, .pl__dot:nth-child(7):after { animation-delay: -1s; }
.pl__dot:nth-child(8) { transform: rotate(-210deg) translateX(7em) rotate(210deg); z-index: 3; }
.pl__dot:nth-child(8), .pl__dot:nth-child(8):before, .pl__dot:nth-child(8):after { animation-delay: -1.1666666667s; }
.pl__dot:nth-child(9) { transform: rotate(-240deg) translateX(7em) rotate(240deg); z-index: 4; }
.pl__dot:nth-child(9), .pl__dot:nth-child(9):before, .pl__dot:nth-child(9):after { animation-delay: -1.3333333333s; }
.pl__dot:nth-child(10) { transform: rotate(-270deg) translateX(7em) rotate(270deg); z-index: 5; }
.pl__dot:nth-child(10), .pl__dot:nth-child(10):before, .pl__dot:nth-child(10):after { animation-delay: -1.5s; }
.pl__dot:nth-child(11) { transform: rotate(-300deg) translateX(7em) rotate(300deg); z-index: 6; }
.pl__dot:nth-child(11), .pl__dot:nth-child(11):before, .pl__dot:nth-child(11):after { animation-delay: -1.6666666667s; }
.pl__dot:nth-child(12) { transform: rotate(-330deg) translateX(7em) rotate(330deg); z-index: 6; }
.pl__dot:nth-child(12), .pl__dot:nth-child(12):before, .pl__dot:nth-child(12):after { animation-delay: -1.8333333333s; }

.pl__text {
    font-size: 0.75em;
    max-width: 5rem;
    position: relative;
    text-shadow: 0 0 0.1em var(--fg-t);
    transform: rotateZ(-45deg);
}

@keyframes shadow724 {
    from {
        animation-timing-function: ease-in;
        box-shadow: 0.1em 0.1em 0 0.1em rgba(0,0,0,0.2), 0.3em 0 0.3em rgba(0, 0, 0, 0.3);
    }
    25% {
        animation-timing-function: ease-out;
        box-shadow: 0.1em 0.1em 0 0.1em rgba(0,0,0,0.2), 0.8em 0 0.8em rgba(0, 0, 0, 0.4);
    }
    50%, to {
        box-shadow: 0.1em 0.1em 0 0.1em rgba(0,0,0,0.2), 0.3em 0 0.3em rgba(0, 0, 0, 0.3);
    }
}

@keyframes pushInOut1724 {
    from {
        animation-timing-function: ease-in;
        background-color: var(--bg);
        transform: translate(0, 0);
    }
    25% {
        animation-timing-function: ease-out;
        background-color: var(--primary2);
        transform: translate(-71%, -71%);
    }
    50%, to {
        background-color: var(--bg);
        transform: translate(0, 0);
    }
}

@keyframes pushInOut2724 {
    from {
        animation-timing-function: ease-in;
        background-color: var(--bg);
        clip-path: polygon(0 75%, 100% 75%, 100% 100%, 0 100%);
    }
    25% {
        animation-timing-function: ease-out;
        background-color: var(--primary1);
        clip-path: polygon(0 25%, 100% 25%, 100% 100%, 0 100%);
    }
    50%, to {
        background-color: var(--bg);
        clip-path: polygon(0 75%, 100% 75%, 100% 100%, 0 100%);
    }
}

/* ============================================
   Global Animation Smoothing Overrides
   ============================================ */
.wow {
    animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1) !important;
    animation-duration: 1.2s !important;
}

/* Base Material Card Classes (reusable) */
.material-card {
    background: linear-gradient(145deg, #252525 0%, #1e1e1e 100%);
    border: 1px solid rgba(33, 150, 243, 0.08);
    border-radius: 12px;
    box-shadow:
        0 2px 6px rgba(0, 0, 0, 0.35),
        0 4px 14px rgba(0, 0, 0, 0.15);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.material-card:hover {
    transform: translateY(-5px);
    border-color: rgba(33, 150, 243, 0.18);
    background: linear-gradient(145deg, #2a2a2a 0%, #222222 100%);
    box-shadow:
        0 8px 20px rgba(0, 0, 0, 0.4),
        0 4px 24px rgba(33, 150, 243, 0.08);
}

.material-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(180deg, #1976D2, #42A5F5, #1976D2);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 10;
}

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

/* ============================================
   Material Design Resume Section
   ============================================ */

/* --- Card Elevation & Surface --- */
.section-resume .resume-list.b-box {
    background: linear-gradient(145deg, #252525 0%, #1e1e1e 100%);
    border: 1px solid rgba(33, 150, 243, 0.08);
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.35), 0 4px 14px rgba(0,0,0,0.15);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.section-resume .resume-list.b-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(180deg, #1976D2, #42A5F5, #1976D2);
    opacity: 0;
    transition: opacity 0.35s ease;
}

.section-resume .resume-list.b-box:hover {
    transform: translateY(-5px);
    border-color: rgba(33, 150, 243, 0.18);
    background: linear-gradient(145deg, #2a2a2a 0%, #222222 100%);
    box-shadow: 0 8px 20px rgba(0,0,0,0.4), 0 4px 24px rgba(33,150,243,0.08);
}

.section-resume .resume-list.b-box:hover::before {
    opacity: 1;
}

/* --- Typography --- */
.section-resume .resume-list h5 {
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: #f0f0f0;
    margin-bottom: 4px;
}

.section-resume .resume-list p {
    color: #9e9e9e;
    font-size: 14px;
    line-height: 1.8;
}

/* --- Badge / Chip --- */
.section-resume .badge-dark {
    background: linear-gradient(135deg, rgba(21, 101, 192, 0.45), rgba(33, 150, 243, 0.2)) !important;
    color: #90CAF9 !important;
    border: 1px solid rgba(33, 150, 243, 0.2);
    border-radius: 20px;
    padding: 5px 14px;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.3px;
    backdrop-filter: blur(4px);
    transition: all 0.3s ease;
}

.section-resume .resume-list:hover .badge-dark {
    background: linear-gradient(135deg, rgba(21, 101, 192, 0.6), rgba(33, 150, 243, 0.3)) !important;
    border-color: rgba(33, 150, 243, 0.35);
    color: #BBDEFB !important;
}

/* --- Section Sub-heads --- */
.section-resume .section-subHead {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: #42A5F5;
    font-weight: 600;
    position: relative;
    padding-bottom: 14px;
}

.section-resume .section-subHead::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 32px;
    height: 2px;
    background: linear-gradient(90deg, #1976D2, transparent);
    border-radius: 2px;
}

/* --- Progress Bars --- */
.section-resume .progress {
    background-color: rgba(33, 150, 243, 0.06);
    border-radius: 4px;
    overflow: hidden;
    height: 6px !important;
}

.section-resume .progress-bar {
    background: linear-gradient(90deg, #0D47A1 0%, #1976D2 50%, #42A5F5 100%) !important;
    opacity: 1;
    border-radius: 4px;
    position: relative;
}

.section-resume .progress-bar::after {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 30px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15));
    border-radius: 4px;
}

/* --- Coding Skills labels --- */
.section-resume .resume-list h6:not(.badge) {
    color: #c8c8c8;
    font-weight: 500;
    font-size: 13px;
    letter-spacing: 0.3px;
}

/* --- Skills wrapper (no hover lift) --- */
.section-resume .resume-list.b-box:not(.hover-state):hover {
    transform: none;
    box-shadow:
        0 2px 6px rgba(0, 0, 0, 0.35),
        0 4px 14px rgba(0, 0, 0, 0.15);
}

/* ============================================
   Material UI Upgrade for Skills Section
   ============================================ */
.services-flip .services-list {
    background: #252525;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(33, 150, 243, 0.05);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.services-list-front {
    border-radius: 12px;
    background-color: #252525 !important;
    border: none !important;
}

.services-list-back {
    border-radius: 12px;
    background: linear-gradient(145deg, #1976D2 0%, #0D47A1 100%) !important;
}

.services-flip .services-list-back .services-list-icon i,
.services-flip .services-list-back .flip-content h5,
.services-flip .services-list-back .flip-content p {
    color: #ffffff !important;
}

.services-flip .services-list-back .flip-content a {
    color: #90CAF9 !important;
    font-weight: 600;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.services-flip .services-list-back .flip-content a:hover {
    color: #ffffff !important;
}

.services-flip .services-list-back .flip-content p {
    opacity: 0.9;
    font-size: 14px;
    line-height: 1.6;
}

.services-flip:hover .services-list {
    box-shadow: 0 12px 30px rgba(33, 150, 243, 0.2);
    /* Restore flip while adding the box shadow */
    transform: rotate3d(1, 0, 0, 180deg);
}

.services-list-front::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, #42A5F5, transparent);
    opacity: 0.7;
}

/* ============================================
   Material UI Upgrade for Projects Section (.blog-list)
   ============================================ */
.section-blog .blog-list.b-box {
    background: linear-gradient(145deg, #252525 0%, #1e1e1e 100%);
    border: 1px solid rgba(33, 150, 243, 0.08);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.section-blog .blog-list.b-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #1976D2, #42A5F5);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 10;
}

.section-blog .blog-list.b-box:hover {
    transform: translateY(-8px);
    border-color: rgba(33, 150, 243, 0.2);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5), 0 4px 15px rgba(33, 150, 243, 0.15);
}

.section-blog .blog-list.b-box:hover::before {
    opacity: 1;
}

.section-blog .blog-list--img img {
    border-radius: 12px 12px 0 0;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.section-blog .blog-list.b-box:hover .blog-list--img img {
    transform: scale(1.05);
}

.section-blog .blog-list--desc p {
    color: #a0a0a0;
    line-height: 1.7;
}

.section-blog .blog-cat {
    color: #42A5F5 !important;
    font-size: 13px;
    letter-spacing: 0.5px;
}

/* ============================================
   Material UI Upgrade for Testimonials
   ============================================ */
.single-testimonials-in.b-box {
    background: linear-gradient(145deg, #252525 0%, #1e1e1e 100%);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
    padding: 30px;
}

.single-testimonials-in p {
    font-style: italic;
    color: #bbb;
    line-height: 1.8;
}

.single-testimonials-in span {
    color: #42A5F5;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* ============================================
   Performance optimization related tweaks
   ============================================ */
/* Ensure elements that are animating via opacity use compositing */
.wow {
    will-change: transform, opacity;
}

img[loading="lazy"] {
    transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   Global Viewport & Responsive Hardening
   ============================================ */
html, body {
    overflow-x: hidden;
    width: 100%;
}

/* ============================================
   Fix 1: Hero Image - Full Bleed on All Screens
   ============================================ */
.section-home {
    width: 100vw !important;
    max-width: 100vw !important;
    margin-left: calc(-50vw + 50%) !important;
    background-size: cover !important;
    background-position: top center !important;
    left: 0;
    right: 0;
}

/* ============================================
   Fix 2: Text Overspill - Badges & Cards
   ============================================ */
.badge-dark,
.section-resume .badge-dark {
    white-space: normal !important;
    word-break: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
    display: inline-block;
    text-align: left;
}

.blog-list--desc p,
.section-resume .resume-list p,
.flip-content p {
    overflow-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
}

/* ============================================
   Fix 3: Project Slider - Proper Layout & Arrows
   ============================================ */

/* The section itself needs relative positioning for arrow anchoring */
.section-blog .container {
    position: relative;
}

/* The swiper stays clipped - NO overflow visible */
.section-blog .swiper-container.swiper-blog {
    padding-bottom: 50px;
    overflow: hidden;
}

/* Arrows anchored to the section container, not the swiper */
.section-blog .swiper-button-next,
.section-blog .swiper-button-prev {
    color: #42A5F5 !important;
    width: 48px;
    height: 48px;
    background: rgba(25, 118, 210, 0.15);
    border: 1px solid rgba(66, 165, 245, 0.25);
    border-radius: 50%;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    top: 45%;
    z-index: 20;
}

.section-blog .swiper-button-next:hover,
.section-blog .swiper-button-prev:hover {
    background: rgba(25, 118, 210, 0.35);
    border-color: rgba(66, 165, 245, 0.6);
    transform: scale(1.12);
    box-shadow: 0 4px 20px rgba(33, 150, 243, 0.2);
}

.section-blog .swiper-button-next::after,
.section-blog .swiper-button-prev::after {
    font-size: 18px !important;
    font-weight: bold;
}

/* Position arrows at the very edge of the viewport-visible area */
.section-blog .swiper-button-next {
    right: -24px !important;
}

.section-blog .swiper-button-prev {
    left: -24px !important;
}

/* ============================================
   "Swipe to see more!" Glassmorphism Pill
   ============================================ */
.swipe-hint-pill {
    display: flex;
    justify-content: center;
    margin-top: 28px;
}

.swipe-hint-pill span {
    display: inline-block;
    background: rgba(25, 118, 210, 0.12);
    backdrop-filter: blur(12px) saturate(1.4);
    -webkit-backdrop-filter: blur(12px) saturate(1.4);
    border: 1px solid rgba(66, 165, 245, 0.2);
    border-radius: 30px;
    padding: 10px 28px;
    color: #90CAF9;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 1.5px;
    animation: gentlePulse 3s ease-in-out infinite;
}

@keyframes gentlePulse {
    0%, 100% { opacity: 0.7; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.03); }
}

/* ============================================
   Fix 4: Apple Glassmorphism Liquid Text
   GPU-accelerated, uses only composited props
   ============================================ */
@keyframes liquidShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.overlay h1 {
    background: linear-gradient(
        120deg,
        rgba(255,255,255,1) 0%,
        rgba(200,225,255,0.9) 20%,
        rgba(66,165,245,0.8) 40%,
        rgba(255,255,255,1) 55%,
        rgba(144,202,249,0.85) 70%,
        rgba(255,255,255,1) 100%
    );
    background-size: 300% 300%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: liquidShift 8s ease-in-out infinite;
    will-change: background-position;
    filter: drop-shadow(0 2px 12px rgba(66,165,245,0.15));
    letter-spacing: 2px;
}

.overlay span {
    background: linear-gradient(
        90deg,
        rgba(255,255,255,0.7) 0%,
        rgba(200,225,255,0.9) 50%,
        rgba(255,255,255,0.7) 100%
    );
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: liquidShift 6s ease-in-out infinite;
    will-change: background-position;
    letter-spacing: 5px;
    text-transform: uppercase;
    font-weight: 300;
}

/* Glassmorphic frosted panel - hidden on desktop, shown on mobile */
.overlay-wrap {
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-radius: 20px;
    border: none;
    padding: 30px 50px !important;
}

/* ============================================
   Glassmorphism: CV Button
   ============================================ */
.btn-outline.hover-state,
.section-freelance .btn {
    background: rgba(25, 118, 210, 0.15) !important;
    backdrop-filter: blur(12px) saturate(1.4);
    -webkit-backdrop-filter: blur(12px) saturate(1.4);
    border: 1px solid rgba(66, 165, 245, 0.3) !important;
    border-radius: 35px;
    color: #90CAF9 !important;
    padding: 18px 55px;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 2px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-outline.hover-state:hover,
.section-freelance .btn:hover {
    background: rgba(25, 118, 210, 0.35) !important;
    border-color: rgba(66, 165, 245, 0.6) !important;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(33, 150, 243, 0.2);
}

/* ============================================
   Glassmorphism: Contact Detail Panels
   ============================================ */
.contact-details--panel.b-box {
    background: rgba(25, 118, 210, 0.08) !important;
    backdrop-filter: blur(14px) saturate(1.3);
    -webkit-backdrop-filter: blur(14px) saturate(1.3);
    border: 1px solid rgba(66, 165, 245, 0.12) !important;
    border-radius: 16px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.contact-details--panel.b-box:hover {
    background: rgba(25, 118, 210, 0.15) !important;
    border-color: rgba(66, 165, 245, 0.3) !important;
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(33, 150, 243, 0.12);
}

.contact-details--panel i {
    color: #42A5F5 !important;
}

.contact-details--panel a {
    color: #90CAF9 !important;
    text-decoration: none !important;
}

.contact-details--panel a:hover {
    color: #BBDEFB !important;
}

/* ============================================
   Glassmorphism: Contact Form Inputs
   ============================================ */
.section-contact .form-control.b-box {
    background: rgba(255, 255, 255, 0.04) !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(66, 165, 245, 0.12) !important;
    border-radius: 10px;
    color: #ffffff !important;
    transition: all 0.3s ease;
}

.section-contact .form-control.b-box:focus {
    background: rgba(255, 255, 255, 0.07) !important;
    border-color: rgba(66, 165, 245, 0.4) !important;
    box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.1);
    outline: none;
}

.section-contact .form-control.b-box::placeholder {
    color: rgba(255, 255, 255, 0.35);
}

/* Submit button */
.section-contact .submitBnt.btn {
    background: rgba(25, 118, 210, 0.2) !important;
    backdrop-filter: blur(12px) saturate(1.4);
    -webkit-backdrop-filter: blur(12px) saturate(1.4);
    border: 1px solid rgba(66, 165, 245, 0.25);
    border-radius: 30px;
    color: #90CAF9 !important;
    padding: 12px 45px;
    font-weight: 600;
    letter-spacing: 1px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.section-contact .submitBnt.btn:hover {
    background: rgba(25, 118, 210, 0.4) !important;
    border-color: rgba(66, 165, 245, 0.6);
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(33, 150, 243, 0.2);
}

/* ============================================
   Glassmorphism: Map Container
   ============================================ */
.contact-map--container.b-box {
    border: 1px solid rgba(66, 165, 245, 0.12) !important;
    border-radius: 16px;
    overflow: hidden;
}

/* ============================================
   Glassmorphism: Footer
   ============================================ */
.footer.section-light {
    background: rgba(15, 15, 20, 0.6) !important;
    backdrop-filter: blur(16px) saturate(1.5);
    -webkit-backdrop-filter: blur(16px) saturate(1.5);
    border-top: 1px solid rgba(66, 165, 245, 0.08);
}

.footer .copyright {
    color: rgba(255, 255, 255, 0.5);
}

.footer .copyright a {
    color: #42A5F5;
    transition: color 0.3s ease;
}

.footer .copyright a:hover {
    color: #90CAF9;
}

@media (max-width: 992px) {
    .section-resume .resume-list.b-box {
        padding: 20px !important;
    }

    .section-blog .swiper-button-next {
        right: -10px !important;
    }
    .section-blog .swiper-button-prev {
        left: -10px !important;
    }
}

@media (max-width: 768px) {
    /* Fluid hero heading */
    .overlay h1 {
        font-size: clamp(2.5rem, 10vw, 5rem) !important;
        line-height: 1.2;
    }

    .overlay span {
        font-size: 14px !important;
        letter-spacing: 2px;
    }

    .overlay-wrap {
        padding: 20px 25px !important;
        margin: 0 15px;
        /* Glassmorphism enabled on mobile only */
        background: rgba(0, 0, 0, 0.2);
        backdrop-filter: blur(12px) saturate(1.4);
        -webkit-backdrop-filter: blur(12px) saturate(1.4);
        border: 1px solid rgba(255, 255, 255, 0.08);
    }

    /* Hero full bleed fix for mobile */
    .section-home {
        margin-left: 0 !important;
        width: 100% !important;
    }

    /* Resume cards */
    .section-resume .resume-list h5 {
        font-size: 16px;
    }

    .section-resume .resume-list p {
        font-size: 13px;
    }

    /* Slider arrows smaller on mobile, inside edges */
    .section-blog .swiper-button-next,
    .section-blog .swiper-button-prev {
        width: 36px;
        height: 36px;
    }

    .section-blog .swiper-button-next {
        right: 2px !important;
    }
    .section-blog .swiper-button-prev {
        left: 2px !important;
    }

    .section-blog .swiper-button-next::after,
    .section-blog .swiper-button-prev::after {
        font-size: 14px !important;
    }

    /* Touch-friendly service flip cards */
    .services-flip .services-list {
        min-height: 250px;
    }
}

@media (max-width: 480px) {
    .overlay h1 {
        font-size: clamp(2rem, 12vw, 3.5rem) !important;
    }

    .section-blog .swiper-button-next,
    .section-blog .swiper-button-prev {
        width: 30px;
        height: 30px;
    }

    .section-blog .swiper-button-next::after,
    .section-blog .swiper-button-prev::after {
        font-size: 12px !important;
    }
}

/* ============================================
   New UI Enhancements: Hero, About Stats, Certs
   ============================================ */

/* Typing Animation */
.hero-typing-line {
    font-size: 24px;
    font-weight: 300;
    color: #90CAF9;
    letter-spacing: 2px;
    margin-top: 15px;
    height: 36px;
}
.hero-typing-cursor {
    animation: blink 1s step-end infinite;
}
@keyframes blink {
    50% { opacity: 0; }
}

/* Dual CTAs in Hero */
.btn-hero-primary {
    background: #1976D2 !important;
    border: none !important;
    padding: 15px 40px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    border-radius: 30px !important;
    margin: 10px;
    box-shadow: 0 4px 15px rgba(25, 118, 210, 0.4) !important;
}
.btn-hero-primary:hover {
    background: #42A5F5 !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 25px rgba(66, 165, 245, 0.5) !important;
}

.btn-hero-outline {
    background: transparent !important;
    border: 2px solid #42A5F5 !important;
    padding: 13px 40px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    border-radius: 30px !important;
    margin: 10px;
}
.btn-hero-outline:hover {
    background: rgba(66, 165, 245, 0.1) !important;
    transform: translateY(-3px) !important;
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: #fff;
    opacity: 0.7;
    transition: opacity 0.3s;
}
.scroll-indicator:hover {
    opacity: 1;
}
.scroll-indicator-mouse {
    width: 24px;
    height: 40px;
    border: 2px solid #fff;
    border-radius: 12px;
    margin: 0 auto 8px;
    position: relative;
}
.scroll-indicator-wheel {
    width: 4px;
    height: 8px;
    background: #fff;
    border-radius: 2px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollWheel 2s infinite;
}
.scroll-indicator-text {
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
}
@keyframes scrollWheel {
    0% { transform: translate(-50%, 0); opacity: 1; }
    100% { transform: translate(-50%, 15px); opacity: 0; }
}

/* About Section Stats */
.about-stat-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    transition: transform 0.3s, background 0.3s;
}
.about-stat-card:hover {
    transform: translateY(-5px);
    background: rgba(66, 165, 245, 0.05);
    border-color: rgba(66, 165, 245, 0.3);
}
.about-stat-number {
    font-size: 42px;
    font-weight: 700;
    color: #42A5F5;
    display: inline-block;
}
.about-stat-plus {
    font-size: 32px;
    font-weight: 700;
    color: #42A5F5;
}
.about-stat-label {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #bbb;
    margin-bottom: 0;
}

/* Certifications Section */
.section-certifications {
    background: #151515 !important;
}
.cert-card {
    background: #1e1e1e;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    transition: transform 0.4s, box-shadow 0.4s;
    height: 100%;
}
.cert-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border-color: rgba(66, 165, 245, 0.3);
}
.cert-card-icon {
    font-size: 48px;
    margin-bottom: 15px;
}
.cert-card-title {
    font-size: 18px;
    color: #fff;
    margin-bottom: 5px;
}
.cert-card-subtitle {
    font-size: 14px;
    color: #aaa;
    margin-bottom: 15px;
}
.cert-card-link {
    color: #42A5F5;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s;
}
.cert-card-link:hover {
    color: #90CAF9;
}

/* Skill Tags */
.skill-tag-container { display: flex; flex-wrap: wrap; gap: 10px; }
.skill-tag { background: rgba(66, 165, 245, 0.1); border: 1px solid rgba(66, 165, 245, 0.3); color: #90CAF9; padding: 8px 16px; border-radius: 20px; font-size: 14px; font-weight: 500; transition: all 0.3s ease; cursor: default; }
.skill-tag:hover { background: rgba(66, 165, 245, 0.2); transform: translateY(-2px); box-shadow: 0 4px 10px rgba(66, 165, 245, 0.2); }

/* Certification logo images */
.cert-logo {
    width: 48px;
    height: 48px;
    object-fit: contain;
    border-radius: 8px;
}

/* Social Connect Section */
.section-social {
    background: #151515;
}

.social-cards-row {
    gap: 16px;
}

/* Stage 1 (default): Pill showing icon + name */
.social-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 22px 12px 16px;
    min-width: 150px;
    background: rgba(25, 118, 210, 0.08) !important;
    backdrop-filter: blur(14px) saturate(1.3);
    -webkit-backdrop-filter: blur(14px) saturate(1.3);
    border: 1px solid rgba(66, 165, 245, 0.12) !important;
    border-radius: 40px;
    text-decoration: none !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.social-card:hover {
    border-radius: 16px;
    padding: 16px 22px;
    min-width: 180px;
    background: rgba(255,255,255,0.08);
    border-color: var(--accent, #42A5F5);
    box-shadow: 0 4px 20px rgba(0,0,0,0.3), 0 0 16px color-mix(in srgb, var(--accent, #42A5F5) 20%, transparent);
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
}

.social-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    font-size: 18px;
    color: var(--accent, #90CAF9);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.social-card:hover .social-card-icon {
    font-size: 22px;
    width: 36px;
    height: 36px;
}

/* Platform name - always visible */
.social-card-name {
    font-size: 14px;
    font-weight: 600;
    color: #e0e0e0;
    white-space: nowrap;
    transition: color 0.3s ease;
}

.social-card:hover .social-card-name {
    color: #fff;
    font-size: 15px;
    font-weight: 700;
}

/* Detail section - hidden by default, shown on hover */
.social-card-detail {
    display: flex;
    flex-direction: column;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.4s ease 0.05s, opacity 0.3s ease 0.1s;
}

.social-card:hover .social-card-detail {
    max-height: 60px;
    opacity: 1;
}

.social-card-handle {
    font-size: 12px;
    color: var(--accent, #90CAF9);
    line-height: 1.5;
}

.social-card-stat {
    font-size: 11px;
    color: rgba(255,255,255,0.4);
    line-height: 1.4;
}

/* Stat prefix & suffix styling */
.about-stat-prefix {
    font-size: 1.4rem;
    font-weight: 600;
    color: #42A5F5;
}
.about-stat-suffix {
    font-size: 1.8rem;
    font-weight: 700;
    color: #42A5F5;
}

@media (max-width: 768px) {
    .social-card {
        padding: 8px 16px 8px 12px;
    }
    .social-card-icon {
        width: 28px;
        height: 28px;
        font-size: 16px;
    }
    .social-card-name {
        font-size: 13px;
    }
    .social-cards-row {
        gap: 10px;
    }
}

/* ============================================
   Perspective Grid – Single Canvas (all sections)
   ============================================ */
.section:not(.section-home),
.section-dark {
    position: relative;
    overflow: hidden;
}
.section:not(.section-home) > *,
.section-dark > * {
    position: relative;
    z-index: 2;
}
#pgrid-canvas {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 1;
    pointer-events: none;
}


/* ============================================
   Liquid Metal Button Effect (Bottom Half)
   ============================================ */
.section-contact .btn,
.section-testimony .btn,
.section-freelance .btn {
    position: relative;
    overflow: hidden;
    border: none !important;
    z-index: 1;
}

.section-contact .btn::before,
.section-testimony .btn::before,
.section-freelance .btn::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: inherit;
    background: linear-gradient(135deg, #666 0%, #ccc 15%, #888 30%, #eee 50%, #999 70%, #ddd 85%, #777 100%);
    background-size: 400% 400%;
    animation: liquid-shimmer 3s ease infinite;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.section-contact .btn:hover::before,
.section-testimony .btn:hover::before,
.section-freelance .btn:hover::before {
    opacity: 1;
}

@keyframes liquid-shimmer {
    0%   { background-position: 0% 50%; }
    25%  { background-position: 100% 0%; }
    50%  { background-position: 100% 100%; }
    75%  { background-position: 0% 100%; }
    100% { background-position: 0% 50%; }
}

.section-contact .btn:hover,
.section-testimony .btn:hover,
.section-freelance .btn:hover {
    color: #111 !important;
    text-shadow: 0 0 2px rgba(255,255,255,0.6);
    box-shadow: 0 4px 20px rgba(255,255,255,0.15), 0 0 40px rgba(66,165,245,0.1) !important;
    transform: translateY(-2px);
    transition: all 0.3s ease;
}


