/* Site navigation shell — wraps bar + tabs (no backdrop-filter so mobile drawer can cover viewport) */
.site-nav-shell {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    background: rgba(15, 23, 42, 0.97);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 4px 40px rgba(0, 0, 0, 0.4);
    padding: 0.7rem 3rem;
    padding-top: max(0.7rem, env(safe-area-inset-top, 0px));
    padding-left: max(3rem, env(safe-area-inset-left, 0px));
    padding-right: max(3rem, env(safe-area-inset-right, 0px));
}

/* Elegant Navigation Bar Styles */
.elegant-nav {
    width: auto;
    max-width: none;
    left: auto;
    right: auto;
    top: auto;
    position: static;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom: none;
    box-shadow: none;
    padding: 0;
    z-index: auto;
    flex-shrink: 0;
}
.elegant-nav .nav-content {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: auto;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    overflow: visible;
}
.elegant-nav .nav-avatar {
    display: flex;
    align-items: center;
    position: relative;
    overflow: visible;
}
/* Avatar Highlight Animation */
@keyframes avatarHighlight {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(56, 189, 248, 0.35), 0 0 0 3px rgba(56, 189, 248, 0.12);
        border-color: transparent;
    }
    50% {
        box-shadow: 0 0 20px 4px rgba(56, 189, 248, 0.4), 0 0 0 4px rgba(37, 99, 235, 0.2);
        border-color: #38bdf8;
    }
}
.elegant-nav .nav-avatar-img {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35), 0 0 0 2px rgba(56, 189, 248, 0.2);
    object-fit: cover;
    border: 2px solid transparent;
    background: linear-gradient(135deg, #0f172a, #0f172a) padding-box,
                linear-gradient(135deg, #38bdf8, #2563eb) border-box;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    animation: avatarHighlight 2.2s ease-in-out infinite;
}
.elegant-nav .nav-avatar-img:hover {
    transform: scale(1.06);
    box-shadow:
        0 6px 24px rgba(0, 0, 0, 0.4),
        0 0 0 3px rgba(56, 189, 248, 0.35);
}

/* Avatar Hint Bubble */
.avatar-hint-bubble {
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    background: rgba(10, 15, 28, 0.95);
    border: 1px solid rgba(56, 189, 248, 0.3);
    color: #e2e8f0;
    padding: 0.6rem 1rem;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.4);
    animation: bubbleBounce 2s ease-in-out infinite, bubblePulse 1.5s ease-in-out infinite;
    z-index: 1002;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.avatar-hint-bubble.show {
    opacity: 1;
    visibility: visible;
}

.avatar-hint-bubble .bubble-arrow {
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 10px solid rgba(10, 15, 28, 0.95);
}

@keyframes bubbleBounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(5px); }
}

@keyframes bubbleBounceMobile {
    0%, 100% { transform: translateX(0) translateY(0); }
    50% { transform: translateX(0) translateY(5px); }
}

@keyframes bubblePulse {
    0%, 100% { box-shadow: 0 8px 28px rgba(0, 0, 0, 0.4); }
    50% { box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45), 0 0 16px rgba(56, 189, 248, 0.15); }
}

/* Avatar Popup Styles */
.avatar-popup {
    position: absolute;
    top: calc(100% + 15px);
    left: 0;
    width: 300px;
    background: rgba(10, 15, 28, 0.96);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-radius: 18px;
    border: 1px solid var(--border-color);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    padding: 1.5rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1001;
}

.avatar-popup::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 20px;
    width: 16px;
    height: 16px;
    background: rgba(10, 15, 28, 0.96);
    border-left: 1px solid var(--border-color);
    border-top: 1px solid var(--border-color);
    transform: rotate(45deg);
}

.avatar-popup.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

/* Popup Overlay for Mobile */
.popup-overlay {
    display: none;
}

@media (max-width: 768px) {
    .popup-overlay {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.4);
        backdrop-filter: blur(4px);
        -webkit-backdrop-filter: blur(4px);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 1004;
        pointer-events: none;
    }
    
    .popup-overlay.active {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }
}

.popup-item span {
    word-break: break-word;
}

.popup-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.popup-avatar {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    object-fit: cover;
    border: 2px solid rgba(56, 189, 248, 0.3);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

.popup-info h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #f1f5f9;
    margin: 0 0 0.3rem 0;
}

.popup-title {
    font-size: 0.85rem;
    font-weight: 600;
    background: linear-gradient(135deg, #7dd3fc, #38bdf8);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.popup-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(56, 189, 248, 0.25), transparent);
    margin: 1rem 0;
}

.popup-details {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.popup-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #94a3b8;
    font-size: 0.9rem;
}

.popup-item i {
    width: 20px;
    color: #38bdf8;
    font-size: 0.85rem;
}

.popup-social {
    display: flex;
    gap: 0.75rem;
    padding-top: 0.5rem;
    justify-content: center;
}

.popup-social a {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: transparent;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #38bdf8;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.popup-social a:hover {
    background: transparent;
    color: #7dd3fc;
    transform: translateY(-2px) scale(1.1);
}

.site-nav-shell .nav-tabs-wrap {
    position: relative;
    flex: 1;
    display: flex;
    justify-content: flex-end;
    min-width: 0;
}

.site-nav-shell .nav-tabs {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    list-style: none;
    margin: 0;
    padding: 0;
    position: relative;
    flex: 1;
    justify-content: flex-end;
    contain: layout style;
}

.nav-highlight {
    position: absolute;
    top: 50%;
    left: 0;
    height: calc(100% - 2px);
    border-radius: 12px;
    background: rgba(56, 189, 248, 0.14);
    border: 1px solid rgba(56, 189, 248, 0.28);
    box-shadow: none;
    pointer-events: none;
    z-index: 0;
    opacity: 0;
    will-change: transform;
    transform: translate3d(0, -50%, 0);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.2s ease;
    width: 0;
}

.nav-highlight.is-visible {
    opacity: 1;
}

.nav-highlight.no-transition {
    transition: none;
}

.site-nav-shell .nav-tabs::before {
    display: none;
}

.site-nav-shell .nav-tabs li {
    margin: 0;
    position: relative;
    z-index: 1;
}
.site-nav-shell .nav-tabs a {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.65rem 1.4rem;
    border-radius: 12px;
    transition: color 0.3s ease, border-color 0.3s ease;
    position: relative;
    text-decoration: none;
    background: transparent;
    border: 1px solid transparent;
    z-index: 1;
    transform: none;
    box-shadow: none;
}

.site-nav-shell .nav-tabs a::before,
.site-nav-shell .nav-tabs a::after {
    display: none;
}

.site-nav-shell .nav-tabs a:hover {
    color: #fff;
    background: rgba(56, 189, 248, 0.08);
    border-color: var(--border-accent);
    transform: none;
    box-shadow: none;
}
.site-nav-shell .nav-tabs a.active {
    color: #fff;
    background: transparent;
    border-color: transparent;
    box-shadow: none;
    transform: none;
}

/* Hide mobile menu header on desktop */
.mobile-menu-header {
    display: none;
}

/* Company logos row below social icons */
.company-logos-row {
    display: flex;
    gap: 1.2rem;
    justify-content: center;
    align-items: center;
    margin-top: 0.7rem;
    margin-bottom: 0.2rem;
}
.company-logo {
    height: 52px;
    width: auto;
    border-radius: 12px;
    box-shadow: 0 2px 12px 0 rgba(56,189,248,0.10), 0 1.5px 8px 0 rgba(94,234,212,0.08);
    background: transparent;
    padding: 0;
    object-fit: contain;
    transition: transform 0.2s, box-shadow 0.2s;
}
.company-logo:hover {
    transform: scale(1.13) rotate(-2deg);
    box-shadow: 0 4px 18px 0 #38bdf8cc;
}
/* Move About Me section down */
#about {
    margin-top: 20px;
    padding-top: 40px;
}

/* Elegant floating orbs for visual depth */
.page-section::after {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.06), transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: -1;
}

/* Hamburger Menu Button */
.hamburger-menu {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: rgba(56, 189, 248, 0.08);
    border: 1px solid rgba(56, 189, 248, 0.22);
    border-radius: 10px;
    cursor: pointer;
    padding: 8px;
    gap: 5px;
    transition: background 0.3s ease, border-color 0.3s ease;
}

.hamburger-menu:hover {
    background: rgba(56, 189, 248, 0.14);
    border-color: rgba(56, 189, 248, 0.38);
}

.hamburger-menu span {
    display: block;
    width: 20px;
    height: 2px;
    background: #38bdf8;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.hamburger-menu.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger-menu.active span:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Navigation Styles */
@media (max-width: 768px) {
    .hamburger-menu {
        display: flex;
        z-index: 1003;
        position: relative;
    }
    
    .site-nav-shell {
        padding: 0.5rem 1rem;
        padding-top: max(0.5rem, env(safe-area-inset-top, 0px));
        padding-left: max(1rem, env(safe-area-inset-left, 0px));
        padding-right: max(1rem, env(safe-area-inset-right, 0px));
        display: block;
    }

    .elegant-nav .nav-content {
        width: 100%;
        justify-content: space-between;
    }

    .site-nav-shell .nav-tabs-wrap {
        flex: none;
        width: 100%;
    }
    
    .site-nav-shell .nav-tabs {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        min-height: 100vh;
        min-height: 100dvh;
        background: rgba(10, 15, 28, 0.98);
        backdrop-filter: blur(24px);
        -webkit-backdrop-filter: blur(24px);
        flex-direction: column;
        gap: 0;
        padding: 0;
        padding-top: max(80px, calc(60px + env(safe-area-inset-top, 0px)));
        padding-bottom: env(safe-area-inset-bottom, 0px);
        border: none;
        box-shadow: none;
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateX(100%);
        transition: opacity 0.35s ease, visibility 0.35s ease, transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1002;
        justify-content: flex-start;
        align-items: center;
        overflow-y: auto;
        flex: none;
    }

    .site-nav-shell .nav-tabs::before {
        display: none;
    }

    .nav-highlight {
        display: none;
    }
    
    .site-nav-shell .nav-tabs.active {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateX(0);
    }
    
    .site-nav-shell .nav-tabs li {
        width: 100%;
        max-width: 320px;
    }
    
    .site-nav-shell .nav-tabs a {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        text-align: center;
        font-size: 1.2rem;
        font-weight: 500;
        padding: 1.25rem 2rem;
        border-radius: 16px;
        margin: 0.5rem 0;
        border: 1px solid var(--border-color);
        background: rgba(15, 23, 42, 0.65);
        transition: background 0.3s ease, border-color 0.3s ease;
    }
    
    .site-nav-shell .nav-tabs li:last-child a {
        border-bottom: 1px solid var(--border-color);
    }
    
    .site-nav-shell .nav-tabs a:hover {
        background: rgba(56, 189, 248, 0.1);
        border-color: var(--border-accent);
        transform: none;
    }
    
    .site-nav-shell .nav-tabs a.active {
        background: rgba(56, 189, 248, 0.12);
        border-color: rgba(56, 189, 248, 0.3);
        border-radius: 16px;
        box-shadow: none;
    }
    
    /* Mobile Menu Header */
    .mobile-menu-header {
        display: block;
        width: 100%;
        text-align: center;
        padding: 0 1rem 1.5rem 1rem;
        margin-bottom: 0.5rem;
        border-bottom: 1px solid var(--border-color);
    }
    
    .mobile-menu-header span {
        font-size: 1.5rem;
        font-weight: 700;
        background: linear-gradient(135deg, #7dd3fc, #38bdf8);
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;
        letter-spacing: 0.05em;
        text-transform: uppercase;
    }
    
    .elegant-nav .nav-avatar {
        z-index: 1005;
    }

    .elegant-nav .nav-avatar-img {
        width: 36px;
        height: 36px;
    }
    
    .popup-overlay {
        z-index: 1004;
    }

    .avatar-popup {
        position: fixed;
        top: max(68px, calc(48px + env(safe-area-inset-top, 0px) + 12px));
        left: 50%;
        right: auto;
        transform: translateX(-50%) translateY(-8px) scale(0.96);
        width: min(300px, calc(100vw - 2rem));
        max-height: calc(100dvh - 100px);
        overflow-y: auto;
        z-index: 1005;
        border-radius: 18px;
        padding: 1.25rem;
        background: rgba(10, 15, 28, 0.98);
        border: 1px solid var(--border-color);
        box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55);
    }
    
    .avatar-popup::before {
        display: none;
    }
    
    .avatar-popup.active {
        transform: translateX(-50%) translateY(0) scale(1);
    }
    
    .avatar-hint-bubble {
        left: 0;
        right: auto;
        transform: translateX(0);
        max-width: calc(100vw - 5rem);
        white-space: normal;
        text-align: center;
        font-size: 0.75rem;
        padding: 0.5rem 0.8rem;
        animation: bubbleBounceMobile 2s ease-in-out infinite, bubblePulse 1.5s ease-in-out infinite;
    }
    
    .avatar-hint-bubble .bubble-arrow {
        left: 18px;
        right: auto;
        transform: translateX(0);
    }
    
    #about {
        margin-top: 20px;
        padding-top: 20px;
    }
    
    .page-wrapper {
        padding: 1rem;
        padding-top: max(100px, calc(80px + env(safe-area-inset-top, 0px)));
        padding-bottom: max(1rem, env(safe-area-inset-bottom, 0px));
    }
    
    .page-section {
        padding: 2rem 1.5rem;
        border-radius: 18px;
    }
    
    /* About Section Tablet Styles */
    .section-title {
        font-size: 1.5rem;
    }
    
    .project-summary-card {
        padding: 2rem 1.5rem;
        max-width: 100%;
    }

    .project-stats-hero {
        grid-template-columns: 60px minmax(0, 1fr);
        column-gap: 1rem;
    }

    .highlight-number.big {
        font-size: 2.35rem;
    }

    .highlight-suffix {
        font-size: 1.5rem;
    }
    
    .tech-bar {
        grid-template-columns: 120px 1fr 35px;
        gap: 0.6rem;
    }
    
    .tech-label {
        font-size: 0.9rem;
    }
    
    .content-section p {
        font-size: 1rem;
    }
    
    .what-im-doing {
        padding: 1.5rem;
    }
    
    .skills-list {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 1rem;
    }
    
    .skill-card {
        padding: 1rem 0.8rem;
    }
    
    .skill-card img {
        width: 40px;
        height: 40px;
    }
    
    .skill-card p {
        font-size: 0.8rem;
    }

    /* Services */
    .services-grid {
        gap: 1.25rem;
        margin-top: 1.5rem;
    }

    .service-card {
        padding: 1.5rem 1.25rem;
        border-radius: 16px;
        text-align: center;
    }

    .service-icon-container {
        margin-left: auto;
        margin-right: auto;
    }

    .service-info h4 {
        font-size: 1.05rem;
    }

    .service-info p {
        font-size: 0.88rem;
    }

    /* Experience / Resume */
    .resume-grid {
        gap: 1.25rem;
    }

    .resume-card {
        padding: 1.5rem 1.25rem;
        border-radius: 16px;
    }

    .card-content h4 {
        font-size: 1.05rem;
    }

    .timeline-details li {
        font-size: 0.88rem;
        padding-left: 1.25rem;
    }

    .resume-tags {
        gap: 0.35rem;
    }

    /* Contact */
    .contact-quick-links {
        gap: 0.6rem;
    }

    .contact-chip {
        flex: 1 1 calc(50% - 0.6rem);
        justify-content: center;
        min-width: 0;
        padding: 0.75rem 1rem;
        font-size: 0.85rem;
    }

    .contact-form {
        margin-top: 1.75rem;
        gap: 1.25rem;
    }

    .form-group input,
    .form-group textarea {
        font-size: 16px;
        padding: 0.9rem 1rem;
    }

    .submit-btn {
        padding: 1rem 1.5rem;
        min-height: 48px;
    }

    /* Hero & sections */
    .page-hero-title {
        font-size: clamp(1.35rem, 6vw, 1.85rem);
        padding: 0 0.25rem;
    }

    .page-hero-subtitle {
        font-size: 0.82rem;
        line-height: 1.5;
        padding: 0 0.25rem;
        margin-bottom: 1.25rem;
    }

    .section-title {
        font-size: 1.35rem;
        padding-left: 1rem;
    }

    .section-title::before {
        height: 20px;
    }

    .content-section .underline {
        margin: 0.5rem auto 1.75rem 1rem;
        width: 80px;
    }

    .highlights-row {
        grid-template-columns: 1fr;
        gap: 0.85rem;
    }

    .page-section {
        margin-bottom: 2rem;
    }

    .page-section:hover {
        transform: none;
    }

    .content-section {
        scroll-margin-top: 80px;
    }
}

@media (max-width: 480px) {
    .site-nav-shell {
        padding: 0.4rem 0.75rem;
        padding-top: max(0.4rem, env(safe-area-inset-top, 0px));
    }
    
    .site-nav-shell .nav-tabs a {
        font-size: 0.9rem;
        padding: 0.75rem 1rem;
    }
    
    .avatar-popup {
        width: min(280px, calc(100vw - 1.5rem));
        max-width: calc(100vw - 1.5rem);
        padding: 1.1rem;
    }
    
    .popup-header {
        gap: 0.75rem;
    }
    
    .popup-avatar {
        width: 50px;
        height: 50px;
        border-radius: 12px;
    }
    
    .popup-info h3 {
        font-size: 1rem;
    }
    
    .popup-title {
        font-size: 0.75rem;
    }
    
    .popup-item {
        font-size: 0.82rem;
    }
    
    .avatar-hint-bubble {
        left: 0;
        right: auto;
        transform: translateX(0);
        font-size: 0.7rem;
        padding: 0.4rem 0.7rem;
        border-radius: 10px;
        animation: bubbleBounceMobile 2s ease-in-out infinite, bubblePulse 1.5s ease-in-out infinite;
    }
    
    .avatar-hint-bubble .bubble-arrow {
        left: 16px;
        right: auto;
        transform: translateX(0);
    }
    
    #about {
        margin-top: 15px;
        padding-top: 15px;
    }
    
    .page-wrapper {
        padding: 0.75rem;
        padding-top: max(90px, calc(72px + env(safe-area-inset-top, 0px)));
        padding-bottom: max(0.75rem, env(safe-area-inset-bottom, 0px));
    }
    
    .page-section {
        padding: 1.5rem 1rem;
        border-radius: 16px;
    }
    
    /* About Section Mobile Styles */
    .section-title {
        font-size: 1.4rem;
        margin-bottom: 0.5rem;
    }
    
    .content-section .underline {
        margin: 0.5rem 0 1.5rem 0;
    }
    
    .project-summary-card {
        padding: 1.5rem 1rem;
        border-radius: 20px;
        max-width: 100%;
        margin-bottom: 1.5rem;
    }

    .project-stats-hero {
        grid-template-columns: 56px minmax(0, 1fr);
        column-gap: 0.85rem;
        padding-bottom: 1.25rem;
        text-align: left;
    }

    .highlight-stat-wrap {
        align-items: flex-start;
    }

    .highlight-number-row {
        justify-content: flex-start;
    }

    .highlight-icon.large {
        width: 56px;
        height: 56px;
        border-radius: 14px;
    }

    .highlight-icon.large img {
        width: 28px;
        height: 28px;
    }

    .highlight-number.big {
        font-size: 2.1rem;
    }

    .highlight-suffix {
        font-size: 1.35rem;
    }

    .highlight-sub {
        font-size: 0.72rem;
    }

    .project-summary-card .highlight-label {
        font-size: 0.82rem;
        letter-spacing: 0.14em;
    }
    
    .tech-bar {
        grid-template-columns: 1fr auto;
        grid-template-areas:
            "label count"
            "bar bar";
        gap: 0.35rem 0.5rem;
        align-items: center;
    }

    .tech-label {
        grid-area: label;
        font-size: 0.78rem;
        padding-left: 0;
    }

    .bar-bg {
        grid-area: bar;
        height: 12px;
    }

    .bar-count {
        grid-area: count;
        font-size: 0.85rem;
        text-align: right;
        padding-right: 0;
    }
    
    .content-section p {
        font-size: 0.95rem;
        line-height: 1.7;
        text-align: left;
    }
    
    .what-im-doing {
        padding: 1.5rem 1rem;
        border-radius: 18px;
        margin-top: 1.5rem;
    }
    
    .what-im-doing p {
        font-size: 0.95rem;
    }
    
    .skills-section {
        margin-top: 1.5rem;
    }

    .contact-chip {
        flex: 1 1 100%;
    }

    .service-card {
        padding: 1.25rem 1rem;
    }

    .service-icon-container {
        width: 56px;
        height: 56px;
        border-radius: 14px;
    }

    .service-icon {
        font-size: 1.35rem;
    }

    .resume-card {
        padding: 1.25rem 1rem;
    }

    .card-icon {
        font-size: 1.5rem;
        margin-bottom: 0.85rem;
    }

    .card-content .date {
        font-size: 0.75rem;
        padding: 0.3rem 0.75rem;
    }

    .page-hero-title {
        font-size: clamp(1.2rem, 7vw, 1.6rem);
        line-height: 1.3;
    }

    .page-hero-subtitle {
        font-size: 0.75rem;
        letter-spacing: 0.04em;
    }

    .hamburger-menu {
        width: 44px;
        height: 44px;
        min-width: 44px;
        min-height: 44px;
    }

    .content-section {
        scroll-margin-top: 72px;
    }
}

/* Project Summary Card and Tech Bars */
.project-summary-card {
    background: rgba(10, 15, 28, 0.88);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 20px;
    padding: 1.75rem 1.75rem 2rem;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    box-shadow:
        0 12px 40px rgba(0, 0, 0, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
    margin-bottom: 2.5rem;
    position: relative;
    overflow: hidden;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    opacity: 0;
    transform: translateY(16px);
    animation: pscCardEnter 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.1s forwards;
}

@keyframes pscCardEnter {
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.project-summary-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.18), rgba(51, 65, 85, 0.35));
    -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;
    pointer-events: none;
    z-index: 0;
}

.psc-shimmer {
    display: none;
}

.psc-ambient {
    display: none;
}

.psc-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0.45;
    animation: pscOrbFloat 7s ease-in-out infinite;
}

.psc-orb--1 {
    width: 120px;
    height: 120px;
    background: rgba(56, 189, 248, 0.08);
    top: -30px;
    right: -20px;
}

.psc-orb--2 {
    width: 90px;
    height: 90px;
    background: rgba(37, 99, 235, 0.07);
    bottom: 20%;
    left: -25px;
    animation-delay: -2.5s;
}

.psc-orb--3 {
    width: 70px;
    height: 70px;
    background: rgba(6, 182, 212, 0.25);
    bottom: -15px;
    right: 30%;
    animation-delay: -4s;
}

@keyframes pscOrbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(8px, -10px) scale(1.08); }
    66% { transform: translate(-6px, 6px) scale(0.95); }
}

.project-stats-hero {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    align-items: center;
    column-gap: 1.25rem;
    margin-bottom: 1.75rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.highlight-stat-wrap {
    min-width: 0;
}

.highlight-number-row {
    display: flex;
    align-items: baseline;
    gap: 0.15rem;
    line-height: 1;
    margin-bottom: 0.35rem;
}

.highlight-number.big {
    font-variant-numeric: tabular-nums;
    display: inline-block;
}

.highlight-suffix {
    font-size: 1.85rem;
    font-weight: 700;
    color: var(--accent-color);
    line-height: 1;
    display: inline-block;
    opacity: 1;
    animation: none;
}

.highlight-sub {
    display: block;
    font-size: 0.78rem;
    color: #94a3b8;
    letter-spacing: 0.04em;
    margin-top: 0.35rem;
    opacity: 0;
    animation: fadeBarIn 0.8s ease 1.6s forwards;
}

.project-summary-card:hover {
    border-color: rgba(56, 189, 248, 0.28);
    box-shadow:
        0 16px 48px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.highlight-icon.large {
    width: 72px;
    height: 72px;
    flex-shrink: 0;
    margin: 0;
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid var(--border-accent);
    animation: none;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
    position: relative;
}

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

@keyframes pscIconFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.icon-ring {
    display: none;
}

.highlight-icon.large img {
    width: 34px;
    height: 34px;
    animation: none;
}

.highlight-number.big {
    font-size: 2.75rem;
    font-weight: 800;
    color: #f8fafc;
    letter-spacing: -0.03em;
    margin-bottom: 0;
    font-variant-numeric: tabular-nums;
    animation: none;
    background: none;
    -webkit-text-fill-color: currentColor;
}

.project-summary-card .highlight-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: #94a3b8;
    font-weight: 600;
    margin-bottom: 0;
    display: block;
}

.tech-bars {
    width: 100%;
    margin-top: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding-left: 0.1rem;
    padding-right: 0.1rem;
    position: relative;
    z-index: 2;
}
.tech-bar {
    display: grid;
    grid-template-columns: 140px 1fr 38px;
    align-items: center;
    gap: 0.7rem;
    opacity: 0;
    transform: translateY(24px);
    animation: fadeBarIn 0.7s cubic-bezier(0.4,0,0.2,1) forwards;
}
.tech-bar:nth-child(1) { animation-delay: 0.1s; }
.tech-bar:nth-child(2) { animation-delay: 0.25s; }
.tech-bar:nth-child(3) { animation-delay: 0.4s; }
.tech-bar:nth-child(4) { animation-delay: 0.55s; }
.tech-bar:nth-child(5) { animation-delay: 0.7s; }
@keyframes fadeBarIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .project-summary-card,
    .psc-shimmer,
    .psc-orb,
    .highlight-icon.large,
    .highlight-icon.large img,
    .icon-ring,
    .highlight-number.big,
    .highlight-suffix,
    .highlight-sub,
    .bar-fill::after,
    .tech-bar {
        animation: none !important;
        transition: none !important;
    }

    .project-summary-card {
        opacity: 1;
        transform: none;
    }

    .highlight-sub {
        opacity: 1;
    }

    .tech-bar {
        opacity: 1;
        transform: none;
    }
}
.tech-label {
    font-size: 1.01rem;
    color: #bae6fd;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-align: left;
    padding-left: 0.2rem;
}
.bar-bg {
    width: 100%;
    background: rgba(15, 23, 42, 0.8);
    border-radius: 999px;
    height: 14px;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(51, 65, 85, 0.8);
    display: flex;
    align-items: center;
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.25);
}
.bar-fill {
    height: 100%;
    border-radius: 999px;
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.08);
    transition: width 1.4s cubic-bezier(0.22, 1, 0.36, 1);
    width: 0;
    opacity: 1;
    position: relative;
    z-index: 1;
    left: 0;
    margin-left: 0;
    overflow: hidden;
}
.bar-fill::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
    transform: translateX(-100%);
    animation: barShimmer 2.8s ease-in-out infinite;
}
.bar-fill.animated::after {
    animation: barShimmer 2.8s ease-in-out infinite;
}
@keyframes barShimmer {
    0% { transform: translateX(-100%); }
    55%, 100% { transform: translateX(200%); }
}
.bar-fill.animated {
    opacity: 1;
}
.bar-count {
    font-size: 1.01rem;
    color: #e0e7ef;
    font-weight: 700;
    min-width: 28px;
    text-align: right;
    padding-right: 0.2rem;
    font-variant-numeric: tabular-nums;
    transition: color 0.3s ease;
    display: inline-block;
}
.tech-bar:hover .bar-count {
    color: #38bdf8;
}
.bar-fill.flutter {
    background: linear-gradient(90deg, #0ea5e9, #38bdf8);
}
.bar-fill.nodejs {
    background: linear-gradient(90deg, #16a34a, #4ade80);
}
.bar-fill.shopify {
    background: linear-gradient(90deg, #334155, #475569);
}
.bar-fill.web {
    background: linear-gradient(90deg, #f59e0b, #fbbf24);
}
.bar-fill.other {
    background: linear-gradient(90deg, #475569, #64748b);
}
/* Profile card entrance animation */

/* Enhanced header card entrance: 3D flip and glow pulse */
.profile-card.animated {
    animation: cardFlipIn 1.1s cubic-bezier(0.4,0,0.2,1), cardGlowPulse 1.3s 0.2s cubic-bezier(0.4,0,0.2,1);
}
@keyframes cardFlipIn {
    0% {
        opacity: 0;
        transform: perspective(700px) rotateY(40deg) scale(0.92) translateY(-40px);
        filter: blur(6px);
    }
    60% {
        opacity: 1;
        transform: perspective(700px) rotateY(-8deg) scale(1.04) translateY(10px);
        filter: blur(0.5px);
    }
    80% {
        transform: perspective(700px) rotateY(3deg) scale(0.98) translateY(-4px);
        filter: blur(0);
    }
    100% {
        opacity: 1;
        transform: perspective(700px) rotateY(0deg) scale(1) translateY(0);
        filter: blur(0);
    }
}
@keyframes cardGlowPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(34,197,94,0.18), 0 20px 48px rgba(15, 23, 42, 0.75);
    }
    40% {
        box-shadow: 0 0 32px 8px rgba(34,197,94,0.32), 0 28px 60px rgba(15, 23, 42, 0.85);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(34,197,94,0.18), 0 20px 48px rgba(15, 23, 42, 0.75);
    }
}

.profile-pic.bounce-in {
    animation: bounceInPic 1.2s cubic-bezier(0.4,0,0.2,1);
}
@keyframes bounceInPic {
    0% { opacity: 0; transform: scale(0.7) translateY(-60px); }
    60% { opacity: 1; transform: scale(1.08) translateY(10px); }
    80% { transform: scale(0.96) translateY(-4px); }
    100% { opacity: 1; transform: scale(1) translateY(0); }
}

.profile-info.fade-in-info {
    opacity: 0;
    animation: fadeInInfo 1.1s 0.5s forwards;
}
@keyframes fadeInInfo {
    to { opacity: 1; }
}
/* Animation classes for main page */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.4,0,0.2,1), transform 0.8s cubic-bezier(0.4,0,0.2,1);
}
.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.slide-up {
    opacity: 0;
    transform: translateY(60px);
    transition: opacity 0.9s cubic-bezier(0.4,0,0.2,1), transform 0.9s cubic-bezier(0.4,0,0.2,1);
}
.slide-up.visible {
    opacity: 1;
    transform: translateY(0);
}
/* Mobile Responsive Project Cards */
@media (max-width: 768px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
        padding: 0 0.5rem;
    }
    
    .project-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 1.5rem 1.25rem;
        gap: 1rem;
        border-radius: 16px;
    }
    
    .project-card:hover {
        transform: translateY(-4px);
    }
    
    .project-icon {
        width: 56px;
        height: 56px;
        border-radius: 14px;
        margin-bottom: 0.25rem;
    }
    
    .project-icon i {
        font-size: 1.4rem;
    }
    
    .project-info {
        width: 100%;
    }
    
    .project-info h4 {
        font-size: 1.1rem;
        margin-bottom: 0.6rem;
        text-align: center;
    }
    
    .project-info p {
        font-size: 0.88rem;
        line-height: 1.6;
        text-align: center;
        color: #94a3b8;
    }
    
    .project-meta {
        justify-content: center;
        gap: 0.5rem;
        margin-top: 0.85rem;
    }
    
    .tech-badge {
        font-size: 0.65rem;
        padding: 0.3rem 0.65rem;
        border-radius: 6px;
    }
}

/* Small Mobile Devices */
@media (max-width: 480px) {
    .portfolio-grid {
        gap: 1rem;
        padding: 0 0.25rem;
    }
    
    .project-card {
        padding: 1.25rem 1rem;
        gap: 0.85rem;
        border-radius: 14px;
    }
    
    .project-card:hover {
        transform: translateY(-2px);
    }
    
    .project-icon {
        width: 50px;
        height: 50px;
        border-radius: 12px;
    }
    
    .project-icon i {
        font-size: 1.25rem;
    }
    
    .project-info h4 {
        font-size: 1rem;
    }
    
    .project-info p {
        font-size: 0.82rem;
        line-height: 1.55;
    }
    
    .project-meta {
        gap: 0.4rem;
        flex-wrap: wrap;
    }
    
    .tech-badge {
        font-size: 0.6rem;
        padding: 0.25rem 0.55rem;
    }
}


html {
    scroll-behavior: smooth;
    background: #020617;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

:root {
    --primary-color: #f1f5f9; 
    --accent-color: #38bdf8;
    --accent-secondary: #64748b;
    --accent-tertiary: #22d3ee;
    --background-color: #020617;
    --card-background: rgba(15, 23, 42, 0.75); 
    --text-color: #f1f5f9; 
    --text-secondary: #94a3b8; 
    --border-color: rgba(51, 65, 85, 0.65);
    --border-accent: rgba(56, 189, 248, 0.22);
    --border-radius: 24px;
    --container-padding: 1rem;
    --card-padding: 2rem;
    --gradient-primary: linear-gradient(135deg, #0ea5e9 0%, #2563eb 100%);
    --gradient-secondary: linear-gradient(135deg, #38bdf8 0%, #0ea5e9 100%);
    --gradient-accent: linear-gradient(135deg, #e2e8f0 0%, #38bdf8 100%);
    --shadow-light: 0 4px 20px rgba(0, 0, 0, 0.2);
    --shadow-medium: 0 12px 40px rgba(0, 0, 0, 0.35);
    --shadow-heavy: 0 25px 60px rgba(0, 0, 0, 0.45);
    --shadow-glow: 0 0 32px rgba(56, 189, 248, 0.12);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

img,
svg,
video {
    max-width: 100%;
    height: auto;
}

body {
    font-family: 'Poppins', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: linear-gradient(165deg, #020617 0%, #0b1120 45%, #0f172a 70%, #020617 100%);
    background-attachment: fixed;
    color: var(--text-color);
    line-height: 1.7;
    min-height: 100vh;
    padding: 0;
    margin: 0;
    position: relative;
    overflow-x: hidden;
    letter-spacing: 0.01em;
}

body.menu-open {
    overflow: hidden;
}

/* Elegant animated background with mesh gradient */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(ellipse 100% 80% at 10% 10%, rgba(56, 189, 248, 0.06) 0%, transparent 45%),
        radial-gradient(ellipse 80% 60% at 90% 20%, rgba(37, 99, 235, 0.05) 0%, transparent 45%),
        radial-gradient(ellipse 70% 70% at 30% 85%, rgba(14, 165, 233, 0.04) 0%, transparent 45%);
    pointer-events: none;
    z-index: -2;
    animation: meshGradientShift 20s ease-in-out infinite alternate;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(180deg, transparent 0%, rgba(2, 6, 23, 0.2) 100%);
    pointer-events: none;
    z-index: -1;
}

@keyframes meshGradientShift {
    0% { opacity: 0.7; transform: scale(1) rotate(0deg); }
    50% { opacity: 1; transform: scale(1.03) rotate(1deg); }
    100% { opacity: 0.8; transform: scale(1) rotate(0deg); }
}

/* Page Wrapper */
.page-wrapper {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 2rem;
    padding-top: 120px;
}

/* Page Sections - Elegant glassmorphism */
.page-section {
    position: relative;
    padding: 3.5rem 2.5rem;
    margin-bottom: 3.5rem;
    background: rgba(10, 15, 28, 0.72);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 22px;
    border: 1px solid var(--border-color);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.page-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 20px;
    right: 20px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(56, 189, 248, 0.35), rgba(37, 99, 235, 0.4), transparent);
    border-radius: 28px 28px 0 0;
}

.page-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 30%;
    right: 30%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.2), transparent);
}

.page-section:hover {
    border-color: rgba(56, 189, 248, 0.2);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
    padding-top: 100px;
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Profile Card */
.profile-card {
    background: radial-gradient(circle at top left, rgba(15,23,42,0.98), rgba(15,23,42,0.96));
    border-radius: var(--border-radius);
    padding: 1.2rem 1.2rem 1.1rem 1.2rem;
    margin-bottom: 2.5rem; /* Increased space below header */
    box-shadow: 0 20px 48px rgba(15, 23, 42, 0.75);
    position: relative;
    overflow: hidden;
    transition: all 0.35s ease;
}

.profile-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #2563eb, #0ea5e9);
}

.profile-card::after {
    content: '';
    position: absolute;
    top: -40%;
    right: -10%;
    width: 260px;
    height: 260px;
    background: radial-gradient(circle, rgba(56,189,248,0.18), transparent 60%);
    opacity: 0.7;
    pointer-events: none;
}

.profile-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 28px 60px rgba(15, 23, 42, 0.85);
}

.profile-card-top {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
}

.profile-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.7rem;
}

.profile-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
}

.profile-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    justify-content: center;
    margin-top: 0.2rem;
    text-align: center;
}

.profile-meta span {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    border: 1px solid rgba(148,163,184,0.5);
    color: #e5e7eb;
    background: rgba(15,23,42,0.9);
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.profile-meta span i {
    font-size: 0.7rem;
    color: #38bdf8;
}

.profile-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    justify-content: center;
    margin-top: 0.5rem;
}

.ghost-btn {
    padding: 0.7rem 1.4rem;
    border-radius: 15px;
    border: 1px solid rgba(148,163,184,0.7);
    background: transparent;
    color: #e5e7eb;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.25s ease;
}

.ghost-btn:hover {
    background: rgba(15,23,42,0.85);
    border-color: #38bdf8;
    color: #e5e7eb;
    transform: translateY(-2px);
}

.profile-pic {
    width: 220px;
    height: 220px;
    border-radius: 26px;
    margin-top: 18px;
    object-fit: cover;
    border: 2px solid rgba(148,163,184,0.4);
    box-shadow: 0 12px 28px rgba(15,23,42,0.8);
    position: relative;
    z-index: 1;
    transition: all 0.35s ease;
}

.profile-pic:hover {
    transform: translateY(-3px) scale(1.04);
    box-shadow: 0 24px 55px rgba(15,23,42,0.95);
}

.profile-pic.floating {
    animation: floatProfile 4s ease-in-out infinite;
}

@keyframes floatProfile {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
    100% {
        transform: translateY(0);
    }
}

.profile-info h1 {
    font-size: 2.1rem;
    font-weight: 700;
    color: #e5e7eb;
    margin-bottom: 0.2rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 0.03em;
}

.profile-info p {
    font-size: 0.85rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    background: rgba(15,23,42,0.96);
    border: 1px solid rgba(148,163,184,0.7);
    color: #e5e7eb;
    padding: 0.28rem 1.1rem;
    border-radius: 999px;
    display: inline-block;
    box-shadow: 0 12px 28px rgba(15,23,42,0.8);
    transition: all 0.3s ease;
}

.profile-info p:hover {
    transform: translateY(-1px);
    box-shadow: 0 0 18px rgba(148,163,184,0.6);
}

.contact-btn {
    background: linear-gradient(135deg, #2563eb, #0ea5e9);
    color: #fff;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-light);
    width: 100%;
    max-width: 200px;
    position: relative;
    overflow: hidden;
}

.contact-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.contact-btn:hover::before {
    left: 100%;
}

.contact-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.download-cv-btn {
    background: linear-gradient(135deg, #22c55e, #16a34a);
    color: #fff;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-light);
    width: 100%;
    max-width: 200px;
    position: relative;
    overflow: hidden;
    display: inline-block;
    text-decoration: none;
    text-align: center;
}

.download-cv-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -75%;
    width: 50%;
    height: 100%;
    background: linear-gradient(120deg, rgba(255,255,255,0.18) 0%, rgba(255,255,255,0.7) 50%, rgba(255,255,255,0.18) 100%);
    transform: skewX(-25deg);
    transition: left 0.6s cubic-bezier(0.4,0,0.2,1);
    pointer-events: none;
    z-index: 2;
}
.download-cv-btn:hover::after {
    left: 120%;
}

.download-cv-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.download-cv-btn:hover::before {
    left: 100%;
}

.download-cv-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

/* Social Links Center */
.social-links-center {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-top: 0.7rem;
    padding: 0.3rem 0 0.1rem 0;
}

.social-links-center a {
    color: var(--text-secondary);
    font-size: 1.5rem;
    transition: all 0.3s ease;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.social-links-center a::before {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(56, 189, 248, 0.2);
    transition: all 0.3s ease;
    z-index: -1;
}

.social-links-center a:hover::before {
    width: 45px;
    height: 45px;
}

.social-links-center a:hover {
    color: #38bdf8;
    transform: translateY(-3px) scale(1.1);
    text-shadow: 0 0 12px rgba(56,189,248,0.8);
}

.contact-details-container {
    border-top: 1px solid #dee2e6;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.5s ease-out;
}

.contact-details-container.visible {
    max-height: 500px;
    opacity: 1;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #dee2e6;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.5rem 0;
}

.contact-icon-wrapper {
    background: rgba(15,23,42,0.95);
    border-radius: 14px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-icon-wrapper i {
    color: #38bdf8;
    font-size: 1.2rem;
}

.contact-text span {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
    font-weight: 500;
    display: block;
}

.contact-text p,
.contact-text a {
    font-size: 1rem;
    color: var(--text-color);
    text-decoration: none;
    margin: 0;
    word-break: break-word;
}

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

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    padding-top: 1.5rem;
    flex-wrap: wrap;
}

.social-links a {
    color: var(--text-secondary);
    font-size: 1.2rem;
    transition: color 0.3s ease, transform 0.3s ease, text-shadow 0.3s ease;
    padding: 0.5rem;
}

.social-links a:hover {
    color: #38bdf8;
    transform: translateY(-3px);
    text-shadow: 0 0 8px rgba(56,189,248,0.8);
}

/* Content Card - Now transparent for direct page layout */
.content-card {
    background: transparent;
    border-radius: var(--border-radius);
    padding: 0;
    box-shadow: none;
    position: relative;
    overflow: visible;
    transition: all 0.3s ease;
}

.content-card::before {
    display: none;
}

.content-card:hover {
    transform: none;
    box-shadow: none;
}

/* Remove glow effect on content cards */
.glow {
    box-shadow: none;
    border: none;
    background-clip: unset;
    backdrop-filter: none;
}

.card-header {
    display: none; /* Hide card header since we're using page layout */
}

.active-section-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
    text-align: center;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: titleGlow 4s ease-in-out infinite;
}

@keyframes titleGlow {
    0%, 100% { text-shadow: 0 0 0 rgba(94,234,212,0.0); }
    50% { text-shadow: 0 0 18px rgba(94,234,212,0.7); }
}

.main-nav ul {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    list-style: none;
}

.main-nav a {
    display: block;
    padding: 0.8rem 1rem;
    text-decoration: none;
    color: var(--text-secondary);
    border-radius: 10px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    background: transparent;
}

.main-nav a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    transition: left 0.3s ease;
    z-index: -1;
}

.main-nav a:hover::before,
.main-nav a.active::before {
    left: 0;
}

.main-nav a:hover,
.main-nav a.active {
    color: white;
    transform: translateX(5px);
    box-shadow: var(--shadow-light);
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-secondary);
    transition: width 0.3s ease;
}

.main-nav a.active::after {
    width: 100%;
}

.content-section {
    animation: fadeIn 0.5s ease-out;
    margin-top: 2rem;
    scroll-margin-top: 100px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Section Title Styling */
.content-section .underline {
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, #38bdf8, #2563eb, transparent);
    margin: 0.6rem 0 2.5rem 1.2rem;
    border-radius: 4px;
    animation: expandWidth 0.8s ease-out;
}

/* Section Headers */
.page-hero-title {
    font-size: clamp(1.75rem, 4vw, 2.35rem);
    font-weight: 700;
    line-height: 1.25;
    margin: 0 0 0.5rem;
    text-align: center;
    letter-spacing: -0.02em;
    color: #f8fafc;
    opacity: 1;
    transform: none;
}

.page-hero-subtitle {
    font-size: 0.95rem;
    color: #94a3b8;
    text-align: center;
    letter-spacing: 0.06em;
    margin: 0 0 1.75rem;
    opacity: 1;
    transform: none;
}

.section-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0;
    color: #f1f5f9;
    position: relative;
    padding-left: 1.2rem;
    letter-spacing: 0.03em;
}

.section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 24px;
    background: linear-gradient(180deg, #2563eb, #0ea5e9);
    border-radius: 4px;
}

.highlights-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.highlight-card {
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 1.3rem 1.1rem 1.1rem 1.1rem;
    border: 1px solid rgba(56, 189, 248, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: transform 0.25s cubic-bezier(0.4,0,0.2,1), box-shadow 0.25s, border-color 0.25s;
    position: relative;
    overflow: hidden;
}

.highlight-card.pro::after {
    content: '';
    position: absolute;
    top: -30%;
    right: -30%;
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(56,189,248,0.13), transparent 70%);
    z-index: 0;
}

.highlight-card.pro {
    border: 1.5px solid #38bdf8;
}

.highlight-card:hover {
    transform: translateY(-8px) scale(1.04);
    box-shadow: 0 24px 54px rgba(15,23,42,0.85);
    border-color: #38bdf8;
}

.highlight-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #38bdf8 0%, #2563eb 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.5rem;
    box-shadow: 0 4px 16px rgba(56,189,248,0.18);
    z-index: 1;
}
.highlight-icon img {
    width: 28px;
    height: 28px;
    filter: drop-shadow(0 2px 6px rgba(15,23,42,0.18));
}

.highlight-number {
    font-size: 2.1rem;
    font-weight: 800;
    color: #e5e7eb;
    letter-spacing: 0.01em;
    z-index: 1;
}

.highlight-label {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #a5b4fc;
    font-weight: 600;
    z-index: 1;
}

.highlight-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(15,23,42,0.8);
    border-color: #38bdf8;
}

.highlight-number {
    font-size: 1.3rem;
    font-weight: 700;
    color: #e5e7eb;
}

.highlight-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-secondary);
}

@keyframes expandWidth {
    from {
        width: 0;
    }
    to {
        width: 60px;
    }
}

.content-section p {
    margin-bottom: 1rem;
    line-height: 1.8;
    color: #e5e7eb;
}


/* Legacy tab layout — sections are always visible for SEO */
.hidden {
    display: none !important;
}


/* What I'm Doing Section */
.what-im-doing {
    margin-top: 2rem;
    padding: 1.8rem 1.6rem;
    border-radius: 22px;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(148, 163, 184, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
    position: relative;
    overflow: hidden;
}

.what-im-doing::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -10%;
    width: 260px;
    height: 260px;
    background: radial-gradient(circle, rgba(56,189,248,0.15), transparent 60%);
    opacity: 0.7;
    pointer-events: none;
}

.what-im-doing p {
    font-size: 0.95rem;
    color: #e5e7eb;
    margin-bottom: 0;
}

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.8rem;
    color: #fff;
    position: relative;
    padding-left: 1.2rem;
    letter-spacing: 0.02em;
}

.section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 24px;
    background: linear-gradient(180deg, #2563eb, #0ea5e9);
    border-radius: 4px;
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.8rem;
    margin-top: 2rem;
}

.service-card {
    background: rgba(10, 15, 28, 0.82);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    padding: 2rem 1.8rem;
    border-radius: 18px;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #38bdf8, #2563eb);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.service-card::after {
    display: none;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    border-color: rgba(56, 189, 248, 0.28);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.45);
}

.service-icon-container {
    width: 64px;
    height: 64px;
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid var(--border-accent);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.2rem;
    transition: border-color 0.3s ease;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}

.service-card:hover .service-icon-container {
    transform: none;
    border-color: rgba(56, 189, 248, 0.45);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

.service-icon {
    color: #38bdf8;
    font-size: 1.6rem;
}

.service-info h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.service-info p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* Skills Section */
.skills-section {
    margin-top: 2rem;
}

.skills-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 1.2rem;
    margin-top: 2rem;
}

.skill-card {
    background: rgba(10, 15, 28, 0.82);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 1.4rem 1rem;
    border-radius: 18px;
    text-align: center;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.skill-card::before {
    display: none;
}

.skill-card:hover {
    border-color: rgba(56, 189, 248, 0.25);
    box-shadow: 0 10px 32px rgba(0, 0, 0, 0.35);
}

.skill-card img {
    width: 48px;
    height: 48px;
    margin-bottom: 0.75rem;
    transition: opacity 0.35s ease, transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 1;
}

.skill-card img.skill-icon-img:not(.is-loaded) {
    opacity: 0;
}

.skill-card img.skill-icon-img.is-loaded {
    opacity: 1;
}

.skill-card:hover img {
    transform: scale(1.1) translateY(-2px);
    filter: drop-shadow(0 6px 12px rgba(56, 189, 248, 0.2));
}

.skill-card p {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin: 0;
    transition: color 0.3s ease;
    position: relative;
    z-index: 1;
}

.skill-card:hover p {
    color: var(--primary-color);
}

/* Resume Section */
.resume-section {
    margin-bottom: 2rem;
}

.resume-title {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.resume-icon-wrapper {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.resume-title:hover .resume-icon-wrapper {
    transform: scale(1.1) rotate(5deg);
}

.resume-icon-wrapper i {
    color: white;
    font-size: 1.2rem;
}

.resume-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.8rem;
}

.resume-card {
    background: rgba(10, 15, 28, 0.82);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    padding: 2rem;
    border-radius: 18px;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.resume-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(180deg, #38bdf8, #2563eb);
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.35s ease;
}

.resume-card::after {
    display: none;
}

.resume-card:hover::before {
    transform: scaleY(1);
}

.resume-card:hover {
    border-color: rgba(56, 189, 248, 0.25);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.45);
}

.resume-card.wide {
    grid-column: 1 / -1;
}

.card-icon {
    color: #38bdf8;
    font-size: 1.8rem;
    margin-bottom: 1.2rem;
    transition: color 0.3s ease;
    position: relative;
    z-index: 1;
}

.resume-card:hover .card-icon {
    transform: none;
    color: #7dd3fc;
}

.card-content h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #f1f5f9;
    margin-bottom: 0.6rem;
    position: relative;
    z-index: 1;
}

.card-content .degree {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 0.6rem;
    font-weight: 500;
    position: relative;
    z-index: 1;
}

.card-content .date {
    font-size: 0.8rem;
    color: #e2e8f0;
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid rgba(56, 189, 248, 0.28);
    padding: 0.35rem 1rem;
    border-radius: 8px;
    display: inline-block;
    margin-bottom: 1rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    box-shadow: none;
    position: relative;
    z-index: 1;
}

.timeline-details {
    list-style: none;
    padding-left: 0;
    position: relative;
    z-index: 1;
}

.timeline-details li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.6rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.timeline-details li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.resume-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 1rem;
}

.resume-tag {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.18rem 0.6rem;
    border-radius: 999px;
    border: 1px solid rgba(148,163,184,0.6);
    color: #e5e7eb;
    background: rgba(15,23,42,0.9);
}

/* Portfolio Section */
.portfolio-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.8rem;
    margin-top: 2rem;
}

.project-card {
    background: rgba(10, 15, 28, 0.82);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    padding: 1.8rem;
    border-radius: 18px;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, #38bdf8, #2563eb);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.project-card::after {
    display: none;
}

.project-card:hover::before {
    transform: scaleX(1);
}

.project-card:hover {
    border-color: rgba(56, 189, 248, 0.28);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.45);
}

.project-icon {
    width: 64px;
    height: 64px;
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid var(--border-accent);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: border-color 0.3s ease;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 1;
}

.project-card:hover .project-icon {
    transform: none;
    border-color: rgba(56, 189, 248, 0.45);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

.project-icon i {
    color: #38bdf8;
    font-size: 1.6rem;
}

.project-info {
    min-width: 0;
    flex: 1;
}

.project-info h4 {
    font-size: 1.15rem;
    font-weight: 600;
    color: #f1f5f9;
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
    position: relative;
    z-index: 1;
}

.project-card:hover .project-info h4 {
    color: var(--accent-color);
}

.project-info p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 0;
    position: relative;
    z-index: 1;
}

.project-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.75rem;
    position: relative;
    z-index: 1;
}

.tech-badge {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 0.25rem 0.7rem;
    border-radius: 8px;
    border: 1px solid rgba(56, 189, 248, 0.25);
    color: #7dd3fc;
    background: rgba(56, 189, 248, 0.08);
    font-weight: 500;
    transition: all 0.3s ease;
}

.tech-badge:hover {
    background: rgba(56, 189, 248, 0.14);
    border-color: rgba(56, 189, 248, 0.4);
    color: #bae6fd;
}

/* Certifications Section */
.certifications-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.certification-card {
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 1.5rem;
    border-radius: 18px;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.25);
    transition: all 0.3s ease;
    border: 1px solid rgba(148, 163, 184, 0.2);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.certification-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--gradient-primary);
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.certification-card:hover::before {
    transform: scaleY(1);
}

.certification-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
    border-color: transparent;
}

.certification-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #2563eb, #0ea5e9);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.certification-card:hover .certification-icon {
    transform: scale(1.1) rotate(5deg);
}

.certification-icon i {
    color: white;
    font-size: 1.5rem;
}

.certification-info h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #e5e7eb;
    margin-bottom: 0.5rem;
}

.certification-issuer {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.3rem;
    font-weight: 500;
}

.certification-date {
    font-size: 0.8rem;
    color: #e5e7eb;
    background: rgba(15,23,42,0.95);
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    border: 1px solid rgba(148,163,184,0.7);
    display: inline-block;
    margin-bottom: 0.6rem;
}

.certification-description {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
    word-spacing: normal;
    white-space: normal;
    text-align: left;
}

.certification-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
    transition: all 0.3s ease;
    padding: 0.3rem 0.8rem;
    border-radius: 5px;
    background: transparent;
}

.certification-link:hover {
    background: var(--gradient-primary);
    color: white;
    transform: translateX(5px);
}

.certification-link i {
    color: inherit;
    font-size: 0.9rem;
}

/* Contact Form */
.contact-form {
    max-width: 100%;
    margin-top: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    color: #fff;
}

.contact-quick-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 1rem;
}

.contact-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    border-radius: 12px;
    border: 1px solid rgba(56, 189, 248, 0.22);
    color: #7dd3fc;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    background: rgba(56, 189, 248, 0.06);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.contact-chip i {
    font-size: 0.9rem;
    color: #38bdf8;
}

.contact-chip:hover {
    background: rgba(56, 189, 248, 0.12);
    border-color: rgba(56, 189, 248, 0.4);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    color: #bae6fd;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    margin-bottom: 0.6rem;
    color: #f1f5f9;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    transition: color 0.3s ease;
}

.form-group:focus-within label {
    color: var(--accent-color);
}

.form-group input,
.form-group textarea {
    padding: 1rem 1.2rem;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    font-size: 1rem;
    background: rgba(10, 15, 28, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #f1f5f9;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    width: 100%;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #64748b;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: rgba(56, 189, 248, 0.45);
    outline: none;
    box-shadow: 
        0 0 0 3px rgba(56, 189, 248, 0.1),
        0 4px 16px rgba(0, 0, 0, 0.25);
    background: rgba(10, 15, 28, 0.9);
}

.submit-btn {
    padding: 1.1rem 2.5rem;
    background: var(--gradient-primary);
    color: #fff;
    border: none;
    border-radius: 14px;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(14, 165, 233, 0.25);
    width: 100%;
    position: relative;
    overflow: hidden;
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.submit-btn:hover::before {
    left: 100%;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.download-resume-btn {
    text-align: center;
    margin-top: 30px;
}

.download-resume-btn a {
    background: linear-gradient(135deg, #2563eb, #0ea5e9);
    color: #fff;
    text-decoration: none;
    padding: 1rem 2rem;
    border-radius: 15px;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-light);
    position: relative;
    overflow: hidden;
}

.download-resume-btn a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.download-resume-btn a:hover::before {
    left: 100%;
}

.download-resume-btn a:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

/* Loading Animation */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.loading {
    animation: none;
}

/* Floating Animation */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

.floating {
    animation: float 3s ease-in-out infinite;
}

/* Glow Effect */
.glow {
    box-shadow: 0 0 20px rgba(33, 150, 243, 0.3);
}

.glow:hover {
    box-shadow: 0 0 30px rgba(33, 150, 243, 0.5);
}

/* Blog / Dev Log */
.blog-intro {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.75;
    margin-bottom: 2rem;
    max-width: 640px;
}

.blog-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.blog-card {
    background: rgba(10, 15, 28, 0.82);
    border: 1px solid var(--border-color);
    border-radius: 18px;
    overflow: hidden;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
    border-color: rgba(56, 189, 248, 0.28);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.4);
}

.blog-card-link {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1.5rem;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.blog-card-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid var(--border-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}

.blog-card-icon i {
    color: #38bdf8;
    font-size: 1.25rem;
}

.blog-card-body {
    min-width: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.blog-card-body h2,
.blog-card-body h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #f1f5f9;
    line-height: 1.4;
    margin: 0;
}

.blog-card-body p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.65;
    margin: 0;
}

.blog-date {
    font-size: 0.78rem;
    color: #38bdf8;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.blog-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.25rem;
}

.blog-read-more {
    margin-top: auto;
    padding-top: 0.5rem;
    font-size: 0.88rem;
    font-weight: 600;
    color: #38bdf8;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.blog-read-more i {
    font-size: 0.75rem;
    transition: transform 0.25s ease;
}

.blog-card:hover .blog-read-more i {
    transform: translateX(4px);
}

.blog-footer-cta {
    margin-top: 2rem;
    text-align: center;
}

.blog-view-all-btn {
    display: inline-block;
    text-decoration: none;
}

.blog-site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(15, 23, 42, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    padding: 0.85rem max(1rem, env(safe-area-inset-right, 0px)) 0.85rem max(1rem, env(safe-area-inset-left, 0px));
    padding-top: max(0.85rem, env(safe-area-inset-top, 0px));
}

.blog-site-header-inner {
    max-width: 760px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.blog-back-link,
.blog-header-cta {
    font-size: 0.88rem;
    font-weight: 500;
    color: #7dd3fc;
    text-decoration: none;
    white-space: nowrap;
}

.blog-back-link:hover,
.blog-header-cta:hover {
    color: #fff;
}

.blog-site-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #f1f5f9;
}

.blog-site-title--link {
    text-decoration: none;
}

.blog-site-title--link:hover {
    color: #38bdf8;
}

.blog-page {
    max-width: 760px;
    margin: 0 auto;
    padding: 2rem 1rem 3rem;
}

.blog-page-hero h1 {
    font-size: clamp(1.75rem, 5vw, 2.25rem);
    font-weight: 700;
    margin-bottom: 0.75rem;
    background: linear-gradient(135deg, #f8fafc, #7dd3fc, #38bdf8);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.blog-page-hero p {
    color: var(--text-secondary);
    line-height: 1.7;
}

.blog-article {
    max-width: 680px;
    margin: 0 auto;
    padding: 2rem 1rem 3rem;
}

.blog-article-header {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.blog-article-header h1 {
    font-size: clamp(1.5rem, 5vw, 2rem);
    font-weight: 700;
    line-height: 1.3;
    color: #f1f5f9;
    margin: 0.75rem 0;
}

.blog-article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 0.88rem;
    color: var(--text-secondary);
}

.blog-article-content {
    color: #e2e8f0;
    line-height: 1.8;
}

.blog-article-content h2 {
    font-size: 1.35rem;
    font-weight: 600;
    color: #f1f5f9;
    margin: 2rem 0 0.75rem;
}

.blog-article-content h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 1.5rem 0 0.5rem;
}

.blog-article-content p {
    margin-bottom: 1rem;
}

.blog-article-content ul,
.blog-article-content ol {
    margin: 0 0 1.25rem 1.25rem;
}

.blog-article-content li {
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.blog-article-content a {
    color: #38bdf8;
    text-decoration: underline;
}

.blog-article-content code {
    font-family: ui-monospace, monospace;
    font-size: 0.88em;
    background: rgba(56, 189, 248, 0.1);
    padding: 0.15em 0.4em;
    border-radius: 6px;
    color: #7dd3fc;
}

.blog-code {
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    margin: 1rem 0 1.5rem;
    overflow-x: auto;
}

.blog-code code {
    background: none;
    padding: 0;
    font-size: 0.85rem;
    color: #94a3b8;
    white-space: pre;
}

.blog-project-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0.5rem 1rem 0 0;
    padding: 0.5rem 1rem;
    border-radius: 10px;
    border: 1px solid rgba(56, 189, 248, 0.22);
    background: rgba(56, 189, 248, 0.06);
    text-decoration: none !important;
    color: #7dd3fc !important;
    font-size: 0.9rem;
}

.blog-article-footer {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
}

.blog-back-to-list {
    color: #38bdf8;
    text-decoration: none;
    font-weight: 500;
}

.blog-article-footer .download-cv-btn {
    display: inline-block;
    text-decoration: none;
    text-align: center;
}

@media (min-width: 640px) {
    .blog-card-link {
        flex-direction: row;
        align-items: flex-start;
    }
}

@media (max-width: 768px) {
    .blog-card-link {
        padding: 1.25rem;
    }

    .blog-article,
    .blog-page {
        padding: 1.5rem 0.85rem 2.5rem;
    }

    .blog-article-footer {
        flex-direction: column;
        align-items: stretch;
    }

    .blog-article-footer .download-cv-btn,
    .blog-project-link {
        width: 100%;
        justify-content: center;
    }
}

@media (hover: none) and (pointer: coarse) {
    .blog-card:hover {
        transform: none;
    }
}

/* Thank You page */
.thank-you-page {
    padding-left: max(1rem, env(safe-area-inset-left, 0px));
    padding-right: max(1rem, env(safe-area-inset-right, 0px));
    padding-bottom: max(2rem, env(safe-area-inset-bottom, 0px));
}

.thank-you-card {
    max-width: 480px;
    margin: max(80px, calc(60px + env(safe-area-inset-top, 0px))) auto 0 auto;
    text-align: center;
    padding: 1.5rem;
}

.thank-you-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.thank-you-title {
    color: #22c55e;
    font-size: clamp(1.6rem, 6vw, 2.2rem);
    margin-bottom: 0.5rem;
}

.thank-you-lead {
    color: var(--text-secondary);
    font-size: clamp(0.95rem, 3.5vw, 1.1rem);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.thank-you-copy {
    color: var(--text-color);
    font-size: clamp(0.9rem, 3.2vw, 1rem);
    line-height: 1.7;
}

.thank-you-copy a {
    color: #0ea5e9;
    text-decoration: underline;
}

.thank-you-btn {
    margin-top: 1.5rem;
    display: inline-block;
    width: 100%;
    max-width: 280px;
}

@media (max-width: 480px) {
    .thank-you-card {
        margin-top: max(60px, calc(48px + env(safe-area-inset-top, 0px)));
        padding: 1.25rem 1rem;
    }

    .thank-you-avatar {
        width: 84px;
        height: 84px;
    }
}

/* Compact desktop nav on medium-width screens */
@media (max-width: 960px) and (min-width: 769px) {
    .site-nav-shell {
        padding-left: max(1.25rem, env(safe-area-inset-left, 0px));
        padding-right: max(1.25rem, env(safe-area-inset-right, 0px));
    }

    .site-nav-shell .nav-tabs {
        gap: 0.35rem;
    }

    .site-nav-shell .nav-tabs a {
        padding: 0.55rem 0.85rem;
        font-size: 0.85rem;
    }

    .elegant-nav .nav-avatar-img {
        width: 44px;
        height: 44px;
    }
}

/* Tablet Styles */
@media (min-width: 768px) {
    :root {
        --container-padding: 2rem;
        --card-padding: 2rem;
    }

    .profile-card-top {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        text-align: left;
    }

    .profile-header {
        flex-direction: row;
        align-items: center;
        text-align: left;
    }

    .profile-info {
        align-items: flex-start;
    }

    .profile-meta {
        justify-content: flex-start;
        text-align: left;
    }

    .profile-pic {
        margin-right: 1.5rem;
    }

    .contact-btn {
        width: auto;
        position: absolute;
        top: 2rem;
        right: 2rem;
    }

    .card-header {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .active-section-title {
        text-align: left;
    }

    .main-nav ul {
        flex-direction: row;
        gap: 1.5rem;
    }

    .main-nav a {
        padding: 0.5rem 0;
        text-align: left;
        background: none;
    }

    .main-nav a::after {
        bottom: -17px;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .skills-list {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }

    .portfolio-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }

    .certifications-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }

    .contact-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }

    .resume-title {
        flex-direction: row;
        align-items: center;
        text-align: left;
    }

    .resume-card {
        flex-direction: row;
        align-items: flex-start;
    }

    .resume-card.wide {
        flex-direction: row;
    }

    .service-card {
        flex-direction: row;
        text-align: left;
        align-items: flex-start;
    }

    .service-icon-container {
        flex-shrink: 0;
    }

    .project-card {
        flex-direction: row;
        align-items: center;
    }

    .project-icon {
        text-align: left;
        flex-shrink: 0;
    }

    .project-info h4 {
        text-align: left;
    }

    .project-info p {
        text-align: left;
    }

    .certification-card {
        flex-direction: row;
        align-items: flex-start;
    }

    .certification-icon {
        flex-shrink: 0;
    }

    .contact-form {
        max-width: 600px;
    }

    .submit-btn {
        width: auto;
        align-self: flex-start;
    }

    .download-resume-btn a {
        width: auto;
    }
}

/* Desktop Styles */
@media (min-width: 1024px) {
    .container {
        padding: 0 2rem;
    }

    body {
        padding: 0;
    }

    .page-wrapper {
        padding: 2rem;
        padding-top: 100px;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    .skills-list {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 1.5rem;
    }

    .portfolio-grid {
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    }

    .certifications-grid {
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    }

    .contact-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Large Desktop Styles */
@media (min-width: 1200px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .portfolio-grid {
        grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    }

    .certifications-grid {
        grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    }
}

/* Extra Small Devices */
@media (max-width: 480px) {
    :root {
        --container-padding: 0.5rem;
        --card-padding: 1rem;
    }

    .active-section-title {
        font-size: 1.5rem;
    }

    .profile-info h1 {
        font-size: 1.4rem;
    }

    .contact-btn,
    .submit-btn,
    .download-resume-btn a {
        width: 100%;
        text-align: center;
    }

    .form-group input,
    .form-group textarea {
        font-size: 16px;
    }

    .contact-icon-wrapper {
        width: 40px;
        height: 40px;
    }

    .contact-icon-wrapper i {
        font-size: 1rem;
    }

    .project-info h4,
    .service-info h4 {
        font-size: 1rem;
    }

    .card-content h4 {
        font-size: 1rem;
    }

    .skills-list {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 0.8rem;
    }

    .skill-card {
        padding: 0.8rem;
    }

    .skill-card img {
        max-width: 35px;
        max-height: 35px;
    }

    .skill-card p {
        font-size: 0.8rem;
    }
}

/* Touch devices — prevent hover lifts and sticky hover states */
@media (hover: none) and (pointer: coarse) {
    .page-section:hover,
    .project-card:hover,
    .service-card:hover,
    .resume-card:hover,
    .skill-card:hover,
    .highlight-card:hover,
    .contact-chip:hover,
    .project-summary-card:hover,
    .submit-btn:hover {
        transform: none;
    }

    .site-nav-shell .nav-tabs a:hover {
        transform: none;
    }
}

/* Narrow phones */
@media (max-width: 360px) {
    .site-nav-shell {
        padding-left: max(0.6rem, env(safe-area-inset-left, 0px));
        padding-right: max(0.6rem, env(safe-area-inset-right, 0px));
    }

    .skills-list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0.55rem;
    }

    .skill-card {
        padding: 0.65rem 0.35rem;
    }

    .skill-card p {
        font-size: 0.68rem;
    }

    .project-meta {
        gap: 0.3rem;
    }

    .tech-badge {
        font-size: 0.55rem;
        padding: 0.2rem 0.45rem;
    }
}
  
    