/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #36BCF7;
    --primary-dark: #2A9BD9;
    --primary-light: #5CC8FF;
    --secondary-color: #1A1A1A;
    --text-primary: #FFFFFF;
    --text-secondary: #B0B0B0;
    --bg-primary: #0A0A0A;
    --bg-secondary: #111111;
    --bg-card: #1E1E1E;
    --border-color: #333333;
    --gradient-primary: linear-gradient(135deg, #36BCF7 0%, #5CC8FF 100%);
    --gradient-secondary: linear-gradient(135deg, #1A1A1A 0%, #333333 100%);
    --gradient-bg: linear-gradient(135deg, #0A0A0A 0%, #0F0F1A 25%, #1A1A2E 50%, #16213E 75%, #0A0A0A 100%);
    --gradient-bg-animated: linear-gradient(-45deg, #0A0A0A, #0F0F1A, #1A1A2E, #16213E, #0A0A0A);
    --shadow-primary: 0 8px 32px rgba(54, 188, 247, 0.3);
    --shadow-secondary: 0 4px 16px rgba(0, 0, 0, 0.4);
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(600px 200px at 20% 30%, rgba(255, 255, 255, 0.03), transparent 60%),
        radial-gradient(500px 180px at 80% 70%, rgba(255, 255, 255, 0.02), transparent 65%),
        radial-gradient(800px 400px at 10% 80%, rgba(54, 188, 247, 0.08), transparent 70%),
        radial-gradient(600px 300px at 90% 20%, rgba(54, 188, 247, 0.06), transparent 65%),
        radial-gradient(400px 200px at 50% 50%, rgba(54, 188, 247, 0.04), transparent 60%);
    pointer-events: none;
    z-index: 0;
    animation: skillsGlow 12s ease-in-out infinite alternate;
}



/* Dynamic Background Particles */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

/* Blue Space Elements */
.space-element {
    position: fixed;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(54, 188, 247, 0.15) 0%, rgba(54, 188, 247, 0.05) 50%, transparent 100%);
    pointer-events: none;
    z-index: 0;
    animation: spaceFloat 20s ease-in-out infinite;
}

.space-element:nth-child(1) {
    width: 300px;
    height: 300px;
    top: -10%;
    left: -15%;
    animation: spaceFloat 25s ease-in-out infinite, spaceGlow 8s ease-in-out infinite;
}

.space-element:nth-child(2) {
    width: 200px;
    height: 200px;
    top: 60%;
    right: -15%;
    animation: spaceFloat 30s ease-in-out infinite reverse, spaceGlow 10s ease-in-out infinite;
}

.space-element:nth-child(3) {
    width: 150px;
    height: 150px;
    top: -5%;
    right: -10%;
    animation: spaceFloat 35s ease-in-out infinite, spaceGlow 12s ease-in-out infinite;
}

.space-element:nth-child(4) {
    width: 250px;
    height: 250px;
    bottom: -15%;
    left: -10%;
    animation: spaceFloat 28s ease-in-out infinite reverse, spaceGlow 9s ease-in-out infinite;
}

.space-element:nth-child(5) {
    width: 180px;
    height: 180px;
    top: 70%;
    left: -12%;
    animation: spaceFloat 32s ease-in-out infinite, spaceGlow 11s ease-in-out infinite;
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: rgba(255, 255, 255, 0.8);
    clip-path: polygon(50% 0%, 65% 40%, 100% 50%, 65% 60%, 50% 100%, 35% 60%, 0% 50%, 35% 40%);
    box-shadow: 0 0 4px rgba(255, 255, 255, 0.4);
    animation: particleFloat 20s linear infinite;
    transform-origin: center;
    bottom: -10px;
    will-change: transform, opacity;
    backface-visibility: hidden;
}

.particle:nth-child(odd) {
    background: rgba(255, 255, 255, 0.7);
    box-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
    animation: particleFloat 25s linear infinite, particleTwinkle 4s ease-in-out infinite;
    width: 3px;
    height: 3px;
}

.particle:nth-child(3n) {
    background: rgba(200, 230, 255, 0.8);
    box-shadow: 0 0 6px rgba(255, 255, 255, 0.4);
    animation: particleFloat 30s linear infinite, particlePulse 5s ease-in-out infinite;
    width: 4px;
    height: 4px;
}

.particle:nth-child(4n) {
    background: rgba(255, 250, 200, 0.8);
    box-shadow: 0 0 7px rgba(255, 255, 255, 0.3);
    animation: particleFloat 35s linear infinite, particleGlow 6s ease-in-out infinite;
    width: 5px;
    height: 5px;
}

.particle:nth-child(5n) {
    background: rgba(255, 255, 255, 0.6);
    box-shadow: 0 0 3px rgba(255, 255, 255, 0.3);
    animation: particleFloat 40s linear infinite, particleShimmer 7s ease-in-out infinite;
    width: 2px;
    height: 2px;
}

@keyframes particleFloat {
    0% {
        transform: translateY(0) translateX(0) scale(0);
        opacity: 0;
    }

    10% {
        opacity: 0.8;
        transform: translateY(-10vh) translateX(10px) scale(0.8);
    }

    30% {
        transform: translateY(-30vh) translateX(30px) scale(0.9);
    }

    50% {
        transform: translateY(-50vh) translateX(50px) scale(1);
    }

    70% {
        transform: translateY(-70vh) translateX(70px) scale(0.9);
    }

    90% {
        opacity: 0.8;
        transform: translateY(-90vh) translateX(90px) scale(0.8);
    }

    100% {
        transform: translateY(-100vh) translateX(100px) scale(0);
        opacity: 0;
    }
}

@keyframes particleTwinkle {

    0%,
    100% {
        opacity: 0.4;
        transform: scale(0.9);
    }

    50% {
        opacity: 0.8;
        transform: scale(1.1);
    }
}

@keyframes particlePulse {

    0%,
    100% {
        opacity: 0.5;
        box-shadow: 0 0 4px rgba(255, 255, 255, 0.3);
    }

    50% {
        opacity: 0.9;
        box-shadow: 0 0 8px rgba(255, 255, 255, 0.6);
    }
}

@keyframes particleGlow {

    0%,
    100% {
        opacity: 0.3;
        filter: brightness(1);
    }

    50% {
        opacity: 0.7;
        filter: brightness(1.3);
    }
}

@keyframes particleShimmer {

    0%,
    100% {
        opacity: 0.3;
        transform: rotate(0deg);
    }

    25% {
        opacity: 0.7;
        transform: rotate(90deg);
    }

    50% {
        opacity: 0.5;
        transform: rotate(180deg);
    }

    75% {
        opacity: 0.8;
        transform: rotate(270deg);
    }
}

@keyframes particleFlicker {

    0%,
    100% {
        opacity: 0.4;
    }

    10% {
        opacity: 0.8;
    }

    20% {
        opacity: 0.3;
    }

    30% {
        opacity: 0.9;
    }

    40% {
        opacity: 0.2;
    }

    50% {
        opacity: 0.7;
    }

    60% {
        opacity: 0.4;
    }

    70% {
        opacity: 0.6;
    }

    80% {
        opacity: 0.3;
    }

    90% {
        opacity: 0.5;
    }
}

/* Floating Rocket */
.floating-heart {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    cursor: pointer;
    transition: all 0.3s ease;
    animation: rocketFloat 4s ease-in-out infinite;
}

.floating-heart span {
    font-size: 2rem;
    filter: drop-shadow(0 4px 8px rgba(54, 188, 247, 0.4));
}

.floating-heart:hover {
    transform: scale(1.2) rotate(15deg);
}

.heart-tooltip {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--bg-card);
    border: 1px solid var(--primary-color);
    border-radius: 12px;
    padding: 16px;
    margin-top: 10px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    box-shadow: var(--shadow-primary);
}

.heart-tooltip::before {
    content: '';
    position: absolute;
    top: -8px;
    right: 20px;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid var(--primary-color);
}

.floating-heart:hover .heart-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.heart-tooltip p {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 4px;
}

.heart-tooltip small {
    color: var(--text-secondary);
    font-size: 0.8rem;
}

@keyframes rocketFloat {
    0% {
        transform: translateY(0px) rotate(0deg) scale(1);
    }

    25% {
        transform: translateY(-15px) rotate(8deg) scale(1.1);
    }

    50% {
        transform: translateY(-25px) rotate(0deg) scale(1.05);
    }

    75% {
        transform: translateY(-15px) rotate(-8deg) scale(1.1);
    }

    100% {
        transform: translateY(0px) rotate(0deg) scale(1);
    }
}

/* Navigation */
.navbar {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1100px;
    background: rgba(10, 10, 10, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    z-index: 100;
    padding: 1.5rem 2rem;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.05) inset;
    transition: all 0.3s ease;
}

.navbar::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 52px;
    background: radial-gradient(120% 60% at 50% -20%, rgba(54, 188, 247, 0.25), transparent 60%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.navbar:hover {
    background: rgba(10, 10, 10, 0.22);
    border-color: rgba(54, 188, 247, 0.35);
    box-shadow:
        0 18px 60px rgba(54, 188, 247, 0.35),
        0 0 0 3px rgba(54, 188, 247, 0.3) inset,
        0 12px 40px rgba(0, 0, 0, 0.5);
}

.navbar:hover::before {
    opacity: 1;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap;
    padding: 0 2rem;
}

.nav-logo {
    margin-left: auto;
    flex: 0 0 auto;
}

.nav-menu {
    order: 1;
}

.nav-logo {
    order: 2;
}

.nav-logo .logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    flex: 0 1 auto;
}

.nav-menu a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 700;
    transition: color 0.3s ease;
    position: relative;
    padding: 0.4rem 0.8rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    line-height: 1;
    border: 1px solid transparent;
    /* prevent layout shift on hover */
    text-transform: uppercase;
    font-size: 1.3rem;
}

.nav-menu a:hover {
    color: var(--primary-color);
}

.nav-menu a::after {
    display: none;
}

.nav-menu a:hover::after {
    display: none;
}

/* Hide name in navbar */
.nav-logo {
    display: none;
}

/* Hero default background (no full-page photo) */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 2rem 2rem;
    background: transparent;
    position: relative;
    overflow: hidden;
    z-index: 2;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-left {
    text-align: center;
}

/* Hero profile image: large, centered, glow */
.profile-image {
    display: block;
    margin-bottom: 1.25rem;
}

.profile-img {
    width: clamp(220px, 28vw, 360px);
    height: auto;
    border-radius: 16px;
    border: none;
    object-fit: cover;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45), 0 0 0 8px rgba(54, 188, 247, 0.35);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.profile-img:hover {
    transform: scale(1.05) rotate(3deg) translateX(4px);
    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.5), 0 0 0 10px rgba(54, 188, 247, 0.42);
}

.profile-info .name {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.profile-info .title {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 2rem;
    font-weight: 600;
    position: relative;
    overflow: visible;
    background: linear-gradient(90deg, rgba(54, 188, 247, 0.75), #ffffff 35%, rgba(54, 188, 247, 0.75) 70%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: roleSheen 4s linear infinite;
}

.profile-info .title::before {
    content: none;
}

.profile-info .title::after {
    content: none;
}

@keyframes titleGlow {

    0%,
    100% {
        text-shadow: 0 0 20px rgba(54, 188, 247, 0.5);
        transform: scale(1);
    }

    50% {
        text-shadow: 0 0 40px rgba(54, 188, 247, 0.9), 0 0 60px rgba(54, 188, 247, 0.7);
        transform: scale(1.05);
    }
}

/* Subtle text-only sheen animation for About role title */
@keyframes roleSheen {
    0% {
        background-position: -150% 0;
    }

    100% {
        background-position: 150% 0;
    }
}

@keyframes titleSweep {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
        opacity: 0;
    }

    50% {
        opacity: 1;
    }

    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
        opacity: 0;
    }
}

@keyframes titleShine {
    0% {
        left: -100%;
        opacity: 0;
    }

    50% {
        opacity: 1;
    }

    100% {
        left: 100%;
        opacity: 0;
    }
}

.social-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    border-color: var(--primary-color);
    background: rgba(54, 188, 247, 0.1);
    transform: translateY(-2px);
}

.social-link.tinted {
    background: rgba(54, 188, 247, 0.1);
    border-color: rgba(54, 188, 247, 0.3);
}

.social-link i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.hero-right {
    padding-left: 2rem;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

/* Tiny language superscript for greeting */
.lang-sup {
    position: relative;
    top: -1.4em;
    margin-left: 1px;
    font-size: 0.25em;
    letter-spacing: 0.5px;
    padding: 0px 2px;
    border-radius: 3px;
    color: #a8dfff;
    border: 1px solid rgba(54, 188, 247, 0.5);
    background: rgba(54, 188, 247, 0.12);
    vertical-align: baseline;
}

/* Always-visible language badge */
.lang-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-size: 0.65em;
    line-height: 1;
    padding: 2px 6px;
    border-radius: 999px;
    border: 1px solid rgba(54, 188, 247, 0.45);
    background: rgba(54, 188, 247, 0.12);
    color: #bfe8ff;
    vertical-align: middle;
}

/* Inline superscript language note */
.lang-note-wrap {
    top: -0.6em;
    position: relative;
    margin-left: 5px;
    font-size: 0.30em;
    color: #a8dfff;
}

.lang-note {
    text-decoration: none;
    border-bottom: 1px dotted rgba(168, 223, 255, 0.6);
    cursor: help;
    letter-spacing: 0.2px;
}

/* Sliding Text Animation */
.sliding-text-container {
    height: 3rem;
    overflow: hidden;
    position: relative;
    margin-top: 0.5rem;
    /* Fade mask for the "vanish" effect */
    mask-image: linear-gradient(to bottom, transparent 0%, black 20%, black 80%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 20%, black 80%, transparent 100%);
}

.sliding-text-content {
    animation: slideUp 15s ease-in-out infinite;
}

.sliding-item {
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

.wave-hand {
    display: inline-block;
    animation: wave 2s ease-in-out infinite;
    transform-origin: 70% 70%;
}

@keyframes wave {

    0%,
    100% {
        transform: rotate(0deg);
    }

    10%,
    30% {
        transform: rotate(14deg);
    }

    20% {
        transform: rotate(-8deg);
    }

    40% {
        transform: rotate(14deg);
    }

    50% {
        transform: rotate(-4deg);
    }

    60% {
        transform: rotate(10deg);
    }

    70% {
        transform: rotate(0deg);
    }
}

@keyframes slideUp {

    0%,
    16% {
        transform: translateY(0);
    }

    20%,
    36% {
        transform: translateY(-3rem);
    }

    40%,
    56% {
        transform: translateY(-6rem);
    }

    60%,
    76% {
        transform: translateY(-9rem);
    }

    80%,
    96% {
        transform: translateY(-12rem);
    }

    100% {
        transform: translateY(-15rem);
    }
}

/* Responsive adjustments for long text */
@media (max-width: 768px) {
    .sliding-item {
        font-size: 1.2rem;
        height: 2rem;
    }

    .sliding-text-container {
        height: 2rem;
    }

    .sliding-text-content {
        animation: slideUpMobile 15s ease-in-out infinite !important;
    }

    .sliding-text-container {
        height: 2rem !important;
        overflow: hidden !important;
    }

    .sliding-item {
        height: 2rem !important;
        white-space: nowrap !important;
        font-size: 1.2rem !important;
    }
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.cta-button {
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.cta-button.primary {
    background: var(--gradient-primary);
    color: black;
    box-shadow: var(--shadow-primary);
}

.cta-button.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(54, 188, 247, 0.4);
}

.cta-button.secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.cta-button.secondary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 5;
}

/* Section Titles */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    animation: titlePulse 4s ease-in-out infinite;
    text-transform: uppercase;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 2px;
    animation: titleLine 3s ease-in-out infinite;
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-top: -1.5rem;
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
    position: relative;
    z-index: 5;
}

@keyframes titlePulse {

    0%,
    100% {
        filter: drop-shadow(0 0 10px rgba(54, 188, 247, 0.3));
    }

    50% {
        filter: drop-shadow(0 0 20px rgba(54, 188, 247, 0.6));
    }
}

@keyframes titleLine {

    0%,
    100% {
        width: 100px;
        opacity: 0.7;
    }

    50% {
        width: 150px;
        opacity: 1;
    }
}

/* About Section */
.about {
    padding: 6rem 0;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: relative;
}

.about::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        rgba(0, 0, 0, 0.2),
        radial-gradient(400px 200px at 20% 30%, rgba(54, 188, 247, 0.1), transparent 60%),
        radial-gradient(300px 150px at 80% 70%, rgba(54, 188, 247, 0.08), transparent 50%);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: -1;
}

.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: start;
}

.about-text p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.stat {
    text-align: center;
    padding: 1.5rem;
    background: var(--bg-card);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.stat h3 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat p {
    color: var(--text-secondary);
    margin: 0;
}

.about-philosophy h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.about-philosophy ul {
    list-style: none;
}

.about-philosophy li {
    color: var(--text-secondary);
    margin-bottom: 0.8rem;
    padding-left: 1.5rem;
    position: relative;
}

.about-philosophy li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

/* Skills Section */
.skills {
    padding: 6rem 0;
    background: transparent;
}

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

.skill-category {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.3s ease;
}

.skill-category:hover {
    border-color: var(--primary-color);
    transform: translateY(-4px);
    box-shadow: var(--shadow-secondary);
}

.skill-category h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.skill-items {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

/* Skills rectangular style */
.skill-item {
    background: rgba(200, 200, 200, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: var(--primary-color);
    padding: 0.85rem;
    border-radius: 14px;
    font-size: 0.95rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    transition: all 0.25s ease;
    aspect-ratio: 1 / 1;
}

.skill-item.tinted {
    background: rgba(54, 188, 247, 0.12);
    border-color: rgba(54, 188, 247, 0.28);
    box-shadow: 0 6px 16px rgba(54, 188, 247, 0.18);
}

/* Sharper skill logos - sized relative to text */
.skill-item {
    font-size: 1rem;
}

/* Skill logo-only tiles sizing */
.skill-item img {
    width: 64%;
    height: 64%;
    filter: grayscale(0%);
    object-fit: contain;
}

.skill-item:hover img {
    transform: scale(1.08);
}

/* Slightly larger Google Cloud and AWS for legibility */
.skill-item img.logo-gcp {
    width: 42px;
    height: 42px;
}

.skill-item img.logo-aws {
    width: 40px;
    height: 40px;
}

.skill-item:hover {
    background: rgba(54, 188, 247, 0.2);
    border-color: var(--primary-color);
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 30px rgba(54, 188, 247, 0.4);
}

.skill-item:hover img {
    filter: grayscale(0%);
    transform: scale(1.1);
}

/* Projects Section */
.projects {
    padding: 6rem 0;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: relative;
}

.projects::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        rgba(0, 0, 0, 0.2),
        radial-gradient(350px 180px at 70% 20%, rgba(54, 188, 247, 0.1), transparent 60%),
        radial-gradient(250px 120px at 30% 80%, rgba(54, 188, 247, 0.08), transparent 50%);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: -1;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    perspective: 1000px;
}

.project-card {
    background: rgba(20, 20, 22, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    cursor: pointer;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

/* Spotlight Effect */
.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(800px circle at var(--mouse-x) var(--mouse-y),
            rgba(255, 255, 255, 0.04),
            transparent 40%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
    z-index: 1;
}

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

.project-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(600px circle at var(--mouse-x) var(--mouse-y),
            rgba(54, 188, 247, 0.25),
            transparent 40%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
    z-index: 1;
}

.project-card:hover::after {
    opacity: 1;
}

.project-card:hover {
    transform: translateY(-10px);
    border-color: rgba(54, 188, 247, 0.6);
    box-shadow:
        0 20px 40px -10px rgba(0, 0, 0, 0.6),
        0 0 30px rgba(54, 188, 247, 0.3),
        0 0 15px rgba(54, 188, 247, 0.1) inset;
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 2;
}

.project-header h3 {
    color: var(--text-primary);
    font-size: 1.4rem;
    font-weight: 700;
    transition: all 0.3s ease;
    letter-spacing: -0.5px;
}

.project-card:hover .project-header h3 {
    color: var(--primary-color);
    text-shadow:
        0 0 25px rgba(54, 188, 247, 0.6),
        0 0 10px rgba(54, 188, 247, 0.4);
}

.project-card p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.8;
    font-size: 1.05rem;
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
    text-align: justify;
    text-justify: inter-word;
    letter-spacing: 0.3px;
}

.project-card:hover p {
    color: #fff;
    text-shadow: 0 0 1px rgba(255, 255, 255, 0.2);
}

.project-stats {
    display: flex;
    gap: 1rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.project-stats span {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.project-stats i {
    color: var(--primary-color);
}

/* Project GitHub hover badge */
.project-badge {
    position: absolute;
    right: 20px;
    bottom: 20px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 999px;
    background: rgba(20, 20, 20, 0.8);
    border: 1px solid rgba(54, 188, 247, 0.3);
    color: #fff;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(10px);
    pointer-events: none;
    z-index: 5;
    font-weight: 500;
    font-size: 0.9rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.project-card:hover .project-badge {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    background: linear-gradient(135deg, rgba(54, 188, 247, 0.2), rgba(54, 188, 247, 0.1));
    border-color: rgba(54, 188, 247, 0.8);
    box-shadow: 0 0 20px rgba(54, 188, 247, 0.4);
}

.project-badge i {
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.project-badge:hover i {
    transform: rotate(360deg);
}

/* Language badges for Terminal-pal project */
.project-lang-badge {
    position: absolute;
    top: 12px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(54, 188, 247, 0.1);
    border: 2px solid rgba(54, 188, 247, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.3s ease;
    backdrop-filter: blur(8px);
    z-index: 10;
}

/* Position Python badge on the right */
.python-badge {
    right: 12px;
}

/* Position Java badge on the right */
.java-badge {
    right: 12px;
}

/* Position Kotlin badge on the right */
.kotlin-badge {
    right: 12px;
}

/* Position Flutter badge on the right */
.flutter-badge {
    right: 12px;
}

/* Position Dart badge to the left of Flutter badge */
.dart-badge {
    right: 50px;
}

/* Position SQL badge to the left of Kotlin badge */
.sql-badge {
    right: 50px;
}

/* Position PyTorch badge to the left of Python badge */
.pytorch-badge {
    right: 50px;
}

/* Position Node.js badge on the right */
.nodejs-badge {
    right: 12px;
}

/* Position npm badge to the left of Node.js badge */
.npm-badge {
    right: 50px;
}

/* Position AI badge to the left of language badges */
.ai-badge {
    right: 50px;
}

/* Position OCR badge to the left of language badges */
.ocr-badge {
    right: 50px;
}

/* Special positioning for projects with 3 badges */
.three-badges-project .flutter-badge,
.three-badges-project .python-badge,
.three-badges-project .kotlin-badge {
    right: 12px;
}

.three-badges-project .dart-badge,
.three-badges-project .pytorch-badge,
.three-badges-project .sql-badge {
    right: 50px;
}

.three-badges-project .ai-badge,
.three-badges-project .ocr-badge {
    right: 88px;
}

.project-card:hover .project-lang-badge {
    opacity: 1;
    transform: scale(1);
}

/* Make logos always visible by default */
.project-lang-badge {
    opacity: 1;
    transform: scale(1);
}

.python-badge img,
.java-badge img,
.kotlin-badge img,
.flutter-badge img,
.dart-badge img,
.sql-badge img,
.pytorch-badge img,
.nodejs-badge img,
.npm-badge img {
    width: 18px;
    height: 18px;
    filter: grayscale(100%) brightness(0.7);
    transition: all 0.3s ease;
}

.ai-badge i,
.ocr-badge i {
    font-size: 16px;
    color: #36BCF7;
    transition: all 0.3s ease;
}

.project-card:hover .python-badge,
.project-card:hover .java-badge,
.project-card:hover .kotlin-badge,
.project-card:hover .flutter-badge,
.project-card:hover .dart-badge,
.project-card:hover .sql-badge,
.project-card:hover .pytorch-badge,
.project-card:hover .nodejs-badge,
.project-card:hover .npm-badge {
    background: rgba(54, 188, 247, 0.2);
    border-color: rgba(54, 188, 247, 0.6);
    box-shadow: 0 4px 12px rgba(54, 188, 247, 0.3);
}

.project-card:hover .ai-badge,
.project-card:hover .ocr-badge {
    background: rgba(54, 188, 247, 0.2);
    border-color: rgba(54, 188, 247, 0.6);
    box-shadow: 0 4px 12px rgba(54, 188, 247, 0.3);
}

.project-card:hover .python-badge img,
.project-card:hover .java-badge img,
.project-card:hover .kotlin-badge img,
.project-card:hover .flutter-badge img,
.project-card:hover .dart-badge img,
.project-card:hover .sql-badge img,
.project-card:hover .pytorch-badge img,
.project-card:hover .nodejs-badge img,
.project-card:hover .npm-badge img {
    transform: scale(1.1);
    filter: grayscale(0%) brightness(1.2);
}

.project-card:hover .ai-badge i,
.project-card:hover .ocr-badge i {
    transform: scale(1.1);
    color: #5CC8FF;
    text-shadow: 0 0 8px rgba(54, 188, 247, 0.6);
}

.project-card:hover .project-badge {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    background: rgba(54, 188, 247, 0.2);
    border-color: rgba(54, 188, 247, 0.6);
    box-shadow: 0 4px 15px rgba(54, 188, 247, 0.3);
}

.project-badge i {
    color: var(--primary-color);
}

/* Contact Section */
.contact {
    padding: 6rem 0;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: relative;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        rgba(0, 0, 0, 0.2),
        radial-gradient(300px 150px at 50% 50%, rgba(54, 188, 247, 0.1), transparent 60%),
        radial-gradient(200px 100px at 10% 90%, rgba(54, 188, 247, 0.08), transparent 50%);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: -1;
}

.contact-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
}

.contact-info h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.contact-info p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-method {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
}

.contact-method i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

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

.contact-cta h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.npx-command {
    background: var(--bg-card);
    border: 1px solid var(--primary-color);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.npx-command code {
    color: var(--primary-color);
    font-family: 'Courier New', monospace;
    font-size: 1rem;
}

/* Tiny message popover */
.message-wrap {
    position: relative;
    display: inline-block;
}

.message-popover {
    position: absolute;
    bottom: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%);
}

.message-popover-inner {
    width: 320px;
    max-width: 86vw;
    background: rgba(16, 18, 24, 0.9);
    border: 1px solid rgba(54, 188, 247, 0.35);
    border-radius: 14px;
    padding: 0.9rem;
    z-index: 20;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.55), 0 0 0 2px rgba(54, 188, 247, 0.18) inset;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.message-popover::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid rgba(54, 188, 247, 0.35);
}

.msg-input {
    width: 100%;
    margin: 0.35rem 0;
    padding: 0.6rem 0.7rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(0, 0, 0, 0.4);
    color: #fff;
}

.msg-input:focus {
    outline: none;
    border-color: rgba(54, 188, 247, 0.6);
}

.copy-btn {
    background: var(--primary-color);
    border: none;
    color: white;
    padding: 0.5rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.copy-btn:hover {
    background: var(--primary-dark);
}

.contact-cta p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Footer */
.footer {
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-top: 1px solid var(--border-color);
    padding: 3rem 0 1rem;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: -1;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.footer-left h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.footer-left p {
    color: var(--text-secondary);
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
}

@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .footer-right {
        width: 100%;
        align-items: flex-start;
    }

    .footer-links {
        flex-wrap: wrap;
        gap: 1rem;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .hero-right {
        padding-left: 0;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    /* Override inline styles for About layout on small screens */
    #about .about-content {
        grid-template-columns: 1fr !important;
    }

    #about .profile-info {
        text-align: center !important;
    }

    #about .profile-image {
        margin: 0 auto;
    }

    .about .profile-image {
        margin: 0 auto;
    }

    .about .profile-info {
        text-align: center;
    }

    .about .profile-info .name {
        font-size: 2.2rem;
    }

    .about .profile-info .title {
        font-size: 1.3rem;
        margin-bottom: 1.25rem;
    }

    .about .hero-subtitle {
        font-size: 1rem;
        line-height: 1.65;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .nav-menu {
        display: flex;
        flex-wrap: wrap;
        gap: 1rem;
        justify-content: center;
    }

    .nav-menu a {
        font-size: 1rem;
        padding: 0.3rem 0.6rem;
    }

    .hero-cta {
        justify-content: center;
    }

    .about-stats {
        grid-template-columns: 1fr;
    }

    .navbar {
        width: 96%;
        padding: 1rem 1rem;
        top: 10px;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .profile-img {
        width: clamp(140px, 38vw, 220px);
    }

    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .skills-grid.flat {
        grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
        gap: 0.5rem;
    }

    .skill-item {
        padding: 0.5rem;
    }

    .gallery-grid {
        column-count: 1;
    }

    .message-popover {
        left: 0;
        right: auto;
    }
}

@media (max-width: 600px) {
    .container {
        padding: 0 1rem !important;
    }

    .hero {
        padding: 120px 1.5rem 6rem !important;
        /* Enforced reduced breadth and extended length */
        min-height: 100vh !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
    }

    .profile-img {
        width: 70px !important;
        height: 70px !important;
    }

    .hero-title {
        font-size: 1rem !important;
    }

    .section-title {
        font-size: 1.1rem !important;
    }

    .navbar {
        width: 98% !important;
        padding: 0.5rem 0.5rem !important;
        top: 5px !important;
    }

    .nav-menu {
        gap: 0.3rem !important;
    }

    .nav-menu a {
        font-size: 0.75rem !important;
        padding: 0.2rem 0.4rem !important;
    }

    .about-content {
        gap: 1rem !important;
    }

    .about {
        padding: 3rem 0 !important;
    }

    .about .profile-info .name {
        font-size: 1.3rem !important;
    }

    .about .profile-info .title {
        font-size: 0.9rem !important;
    }

    .about .hero-subtitle {
        font-size: 0.8rem !important;
    }

    .hero-subtitle {
        font-size: 0.8rem !important;
    }

    .sliding-item {
        font-size: 0.85rem !important;
        height: 1.2rem !important;
    }

    .sliding-text-container {
        height: 1.2rem !important;
    }

    .sliding-text-content {
        height: 1.2rem !important;
        animation: slideUpMobileSmall 15s ease-in-out infinite !important;
    }

    .profile-info .name {
        font-size: 1.5rem !important;
    }

    .profile-info .title {
        font-size: 1rem !important;
    }

    .npx-command {
        flex-direction: column !important;
        gap: 0.5rem !important;
        align-items: flex-start !important;
        font-size: 0.8rem !important;
    }

    .message-popover-inner {
        min-width: 200px !important;
    }

    /* Skills Network Visibility */
    .skills-network-container {
        height: 300px !important;
        width: 100% !important;
        display: flex !important;
        opacity: 1 !important;
        visibility: visible !important;
    }

    /* Icon Square Minimization */
    .icon-square {
        width: 48px !important;
        height: 48px !important;
    }

    .icon-square i {
        font-size: 1.2rem !important;
    }
}

/* Icon grid and square social buttons */
.icon-grid {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* Enlarge social icons */
.icon-square {
    width: 64px;
    height: 64px;
    border-radius: 14px;
    flex-direction: column;
}

.icon-square i {
    font-size: 1.6rem;
}

.icon-square span {
    font-size: 0.9rem;
    line-height: 1;
    color: #fff;
    opacity: 0.9;
}

.icon-square:hover {
    transform: translateY(-2px);
    border-color: rgba(54, 188, 247, 0.5);
    box-shadow: 0 8px 24px rgba(54, 188, 247, 0.25);
}

.brand-github {
    background: rgba(20, 20, 20, 0.65);
}

.brand-linkedin {
    background: rgba(10, 102, 194, 0.35);
}

/* Hero badges */
.hero-badges {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin: 0.75rem 0 1rem;
}

.badge {
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    background: rgba(54, 188, 247, 0.14);
    border: 1px solid rgba(54, 188, 247, 0.35);
    color: var(--primary-light);
    font-size: 0.85rem;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    box-shadow: 0 0 15px rgba(54, 188, 247, 0.2);
}

.badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: badgeShine 2s ease-in-out infinite;
}

.badge::after {
    white-space: nowrap;
}

.wave-hand {
    display: inline-block;
    animation: wave 2s ease-in-out infinite;
    transform-origin: 70% 70%;
}

@keyframes wave {

    0%,
    100% {
        transform: rotate(0deg);
    }

    10%,
    30% {
        transform: rotate(14deg);
    }

    20% {
        transform: rotate(-8deg);
    }

    40% {
        transform: rotate(14deg);
    }

    50% {
        transform: rotate(-4deg);
    }

    60% {
        transform: rotate(10deg);
    }

    70% {
        transform: rotate(0deg);
    }
}

@keyframes starShine {

    0%,
    100% {
        box-shadow: 0 0 15px rgba(54, 188, 247, 0.3);
        transform: scale(1);
    }

    50% {
        box-shadow: 0 0 30px rgba(54, 188, 247, 0.8), 0 0 45px rgba(54, 188, 247, 0.6);
        transform: scale(1.08);
    }
}

@keyframes starSweep {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
        opacity: 0;
    }

    50% {
        opacity: 1;
    }

    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
        opacity: 0;
    }
}

@keyframes badgeShine {
    0% {
        left: -100%;
        opacity: 0;
    }

    50% {
        opacity: 1;
    }

    100% {
        left: 100%;
        opacity: 0;
    }
}

/* LangChain badge effect */
.lc-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    background: rgba(54, 188, 247, 0.14);
    border: 1px solid rgba(54, 188, 247, 0.35);
    color: var(--primary-light);
    animation: pulseGlow 2.2s ease-in-out infinite;
}

.lc-chip img {
    width: 16px;
    height: 16px;
    object-fit: contain;
}

@keyframes pulseGlow {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(54, 188, 247, 0.35);
    }

    50% {
        box-shadow: 0 0 0 8px rgba(54, 188, 247, 0.08);
    }
}

/* Flat skills grid smaller tiles */
.skills-grid.flat {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 0.75rem;
}

.skill-item {
    padding: 0.6rem;
    border-radius: 10px;
}

.skill-item img {
    width: 56%;
    height: 56%;
}

/* Project card clickable hint */
.project-card {
    cursor: pointer;
    background: rgba(25, 25, 25, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
}

/* Skills intro text */
.skills-intro {
    color: var(--text-secondary);
    font-size: 1.05rem;
    margin: 0 0 1.25rem 0;
}

/* Projects: hide stars and language, emphasize description */
.project-lang {
    display: none;
}

.project-stats {
    display: none;
}

.project-card p {
    margin-top: 0.25rem;
    font-size: 1.08rem;
    line-height: 1.6;
    color: #d3d9e3;
}

/* Contact squares */
.contact-grid {
    grid-auto-rows: 1fr;
}

.contact-card {
    aspect-ratio: 1 / 1;
    flex-direction: column;
    gap: 0.5rem;
}

.contact-card i {
    font-size: 2rem;
}

.contact-card span {
    font-size: 1rem;
}

/* Hero social icon squares - crisp and branded */
.icon-grid {
    gap: 0.75rem;
}

.icon-square {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

.icon-square i {
    font-size: 1.5rem;
    color: #fff;
}

.icon-square span {
    display: none;
}

.brand-github {
    background: #0f0f10;
}

.brand-linkedin {
    background: #0a66c2;
}

.icon-square:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(54, 188, 247, 0.25);
    border-color: rgba(54, 188, 247, 0.5);
}

/* Full-height sections for consistent page size (exclude achievements & contact) */
.about,
.skills,
.projects,
.achievements {
    padding: 6rem 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.about .container,
.skills .container,
.projects .container,
.achievements .container {
    width: 100%;
}

/* Achievements Section */
.achievements {
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
    padding: 6rem 0;
}

.achievements::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        rgba(0, 0, 0, 0.2),
        radial-gradient(400px 200px at 60% 40%, rgba(54, 188, 247, 0.1), transparent 60%),
        radial-gradient(300px 150px at 40% 60%, rgba(54, 188, 247, 0.08), transparent 50%);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: -1;
}

.achievements-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    margin-top: 3rem;
}

.achievement-card {
    background: rgba(54, 188, 247, 0.05);
    border: 4px solid rgba(54, 188, 247, 0.2);
    border-radius: 20px;
    padding: 2rem;
    transition: all 0.3s ease;
    position: relative;
    cursor: pointer;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 350px;
}

.achievement-card:hover {
    background: rgba(54, 188, 247, 0.15);
    border-color: var(--primary-color);
    transform: translateY(-10px) scale(1.03);
    box-shadow:
        0 20px 50px rgba(54, 188, 247, 0.4),
        0 0 0 3px rgba(54, 188, 247, 0.3) inset;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.achievement-title {
    color: #FFFFFF;
    font-size: 1.2rem;
    font-weight: 600;
    margin-top: auto;
    text-align: center;
    transition: all 0.3s ease;
    line-height: 1.4;
    padding-top: 1rem;
}

.achievement-card:hover .achievement-title {
    color: #E6F3FF;
    text-shadow: 0 0 15px rgba(54, 188, 247, 0.6);
}

.achievement-image {
    width: 100%;
    aspect-ratio: 4/3;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    margin-bottom: 1rem;
    position: relative;
}

.achievement-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
}

.achievement-card:hover .achievement-image img {
    transform: scale(1.08);
    filter: brightness(1.2) contrast(1.1);
}

/* Grid cards for second row (2x2 layout like 3rd row) */
.achievement-card.grid-card {
    grid-column: span 1;
    min-height: 350px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem;
}

.achievement-card.grid-card .achievement-image {
    width: 100%;
    aspect-ratio: 4/3;
    margin-bottom: 1rem;
}

.achievement-card.grid-card .achievement-title {
    margin-top: auto;
    text-align: center;
    font-size: 1.1rem;
    line-height: 1.4;
}

/* Large card for the last achievement */
.achievement-card.large-card {
    grid-column: span 3;
    min-height: 450px;
    background: transparent;
    border: none;
    padding: 0;
    box-shadow: none;
}

/* Dual images container */
.dual-images-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1rem;
    width: 100%;
    position: relative;
}

/* Split frame divider */
.dual-images-container::after {
    display: none;
}

.dual-image-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(54, 188, 247, 0.06);
    border: 4px solid rgba(54, 188, 247, 0.2);
    border-radius: 20px;
    padding: 1rem;
    transition: all 0.3s ease;
}

.achievement-image-adaptive {
    width: 100%;
    aspect-ratio: 3/2;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
    margin-bottom: 0.5rem;
}

.achievement-image-adaptive img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
}

.achievement-card.large-card:hover .achievement-image-adaptive img {
    transform: scale(1.08);
    filter: brightness(1.2) contrast(1.1);
}

/* 2nd row (large split card): limit zoom to hovered half only */
.achievements-grid>.achievement-card:nth-child(4):hover .achievement-image-adaptive img {
    transform: none;
    filter: none;
}

.achievements-grid>.achievement-card:nth-child(4) .dual-image-item:hover .achievement-image-adaptive img {
    transform: scale(1.08);
    filter: brightness(1.2) contrast(1.1);
}

/* Separate zoom for each half in 2nd row */
.achievements-grid>.achievement-card:nth-child(4) .dual-image-item:not(:hover) .achievement-image-adaptive img {
    transform: none;
    filter: none;
}

.achievement-subtitle {
    color: #E6F3FF;
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
    margin: 0;
    transition: all 0.3s ease;
}

.achievement-card.large-card:hover .achievement-subtitle {
    color: #FFFFFF;
    text-shadow: 0 0 8px rgba(54, 188, 247, 0.4);
}

/* First row: tighter layout and slightly smaller titles (no layout change elsewhere) */
.achievements-grid>.achievement-card:nth-child(-n+3) {
    padding: 1.25rem;
}

.achievements-grid>.achievement-card:nth-child(-n+3) .achievement-image {
    margin-bottom: 0.6rem;
}

.achievements-grid>.achievement-card:nth-child(-n+3) .achievement-title {
    font-size: 1.05rem;
}

/* Hover glow for split halves without changing layout */
.achievement-card.large-card:hover .dual-image-item {
    background: rgba(54, 188, 247, 0.12);
    border-color: var(--primary-color);
    box-shadow: 0 16px 44px rgba(54, 188, 247, 0.28), 0 0 0 3px rgba(54, 188, 247, 0.22) inset;
}

/* Limit glow to only hovered half for the 2nd-row large card (4th child) */
.achievements-grid>.achievement-card:nth-child(4):hover .dual-image-item {
    background: rgba(54, 188, 247, 0.06);
    border-color: rgba(54, 188, 247, 0.2);
    box-shadow: none;
}

.achievements-grid>.achievement-card:nth-child(4) .dual-image-item:hover {
    background: rgba(54, 188, 247, 0.12);
    border-color: var(--primary-color);
    box-shadow: 0 16px 44px rgba(54, 188, 247, 0.28), 0 0 0 3px rgba(54, 188, 247, 0.22) inset;
}

@media (max-width: 1024px) {
    .achievements-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .achievement-card.grid-card {
        grid-column: span 1;
        min-height: 300px;
    }

    .achievement-card.large-card {
        grid-column: span 2;
    }

    .dual-images-container {
        gap: 1rem;
    }

    .achievement-image-adaptive {
        aspect-ratio: 4/3;
    }
}

@media (max-width: 768px) {
    .achievements-grid {
        grid-template-columns: 1fr;
    }

    .achievement-card.grid-card {
        grid-column: span 1;
        min-height: 280px;
    }

    .achievement-card.large-card {
        grid-column: span 1;
    }

    .dual-images-container {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .achievement-title {
        font-size: 1.1rem;
    }

    .achievement-image {
        aspect-ratio: 4/2;
    }

    .achievement-image-adaptive {
        aspect-ratio: 4/2;
    }

    .achievement-card {
        min-height: 300px;
    }

    .achievement-card.wide-card {
        min-height: 500px;
    }

    .achievement-card.large-card {
        min-height: 1000px;
    }

    .achievement-subtitle {
        font-size: 0.9rem;
    }
}

/* Certifications Section */
.certifications-section {
    margin-top: 4rem;
    padding: 2rem 0;
}

.certifications-table {
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(54, 188, 247, 0.2);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(54, 188, 247, 0.1);
    transform: none;
    max-width: 98%;
    margin: 0 auto;
}

/* Gallery Section */
.gallery {
    padding: 4rem 0;
    background: transparent;
    position: relative;
}

.gallery::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        rgba(0, 0, 0, 0.2),
        radial-gradient(350px 180px at 70% 20%, rgba(54, 188, 247, 0.1), transparent 60%),
        radial-gradient(250px 120px at 30% 80%, rgba(54, 188, 247, 0.08), transparent 50%);
    backdrop-filter: blur(5px);
}

.gallery-grid {
    column-count: 3;
    column-gap: 1.5rem;
}

.gallery-fixed {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.gallery-fixed .gallery-card {
    break-inside: auto;
    display: block;
    margin: 0;
}

.gallery-fixed .gallery-image img {
    width: 100%;
    height: 260px;
    object-fit: cover;
}

.gallery-fixed {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.gallery-fixed .gallery-card {
    break-inside: auto;
    margin: 0;
}

.gallery-fixed .gallery-image img {
    height: 280px;
    width: 100%;
    object-fit: cover;
}

.gallery-card {
    break-inside: avoid;
    display: inline-block;
    width: 100%;
    margin: 0 0 1.5rem;
    background: rgba(54, 188, 247, 0.05);
    border: 4px solid rgba(54, 188, 247, 0.2);
    border-radius: 20px;
    padding: 0.6rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.gallery-card:hover {
    background: rgba(54, 188, 247, 0.15);
    border-color: var(--primary-color);
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 50px rgba(54, 188, 247, 0.35), 0 0 0 3px rgba(54, 188, 247, 0.25) inset;
}

.gallery-image {
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
}

.gallery-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.gallery-image.short {
    max-height: 280px;
}

.gallery-image.short img {
    height: 280px;
    object-fit: cover;
}

.gallery-card:hover .gallery-image img {
    transform: scale(1.06);
    filter: brightness(1.1) contrast(1.05);
}

.gallery-card.less-zoom:hover .gallery-image img {
    transform: scale(1.02);
}

.gallery-image.contain img {
    object-fit: contain;
    background: rgba(255, 255, 255, 0.02);
}

/* Random frame shapes */
.frame-soft {
    border-radius: 18px;
}

.frame-pill {
    border-radius: 28px;
}

.frame-cut {
    border-radius: 10px 26px 14px 22px;
}

.frame-chamfer {
    border-radius: 22px 12px 22px 12px;
}

.tilt-1 {
    transform: rotate(0.4deg);
}

.tilt-2 {
    transform: rotate(-0.6deg);
}

.tilt-3 {
    transform: rotate(0.2deg);
}

.gallery-card:hover.tilt-1,
.gallery-card:hover.tilt-2,
.gallery-card:hover.tilt-3 {
    transform: translateY(-8px) scale(1.02) rotate(0deg);
}

/* Info tile to fill gaps */
.gallery-info {
    break-inside: avoid;
    display: inline-block;
    width: 100%;
    margin: 0 0 1.5rem;
    padding: 1rem 1.25rem;
    border-radius: 16px;
    background: rgba(20, 20, 20, 0.6);
    border: 1px solid rgba(54, 188, 247, 0.35);
    color: #E6F3FF;
    box-shadow: 0 6px 20px rgba(54, 188, 247, 0.25);
    font-size: 0.95rem;
    line-height: 1.4;
}

.gallery-info code {
    color: #36BCF7;
    word-break: break-all;
}

@media (max-width: 1024px) {
    .gallery-grid {
        column-count: 2;
    }
}

@media (max-width: 600px) {
    .gallery-grid {
        column-count: 1;
    }
}

.cert-header {
    display: grid;
    grid-template-columns: 1.5fr 3.5fr 1.8fr 1.2fr;
    background: rgba(54, 188, 247, 0.1);
    border-bottom: 1px solid rgba(54, 188, 247, 0.3);
    position: relative;
}

.cert-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(54, 188, 247, 0.6), transparent);
}

.cert-header-cell {
    padding: 0.8rem 1.2rem;
    font-weight: 700;
    color: #36BCF7;
    text-align: left;
    font-size: 1rem;
    text-shadow: 0 0 10px rgba(54, 188, 247, 0.3);
    position: relative;
}

.cert-header-cell::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent, rgba(54, 188, 247, 0.05), transparent);
    pointer-events: none;
}

.cert-row {
    display: grid;
    grid-template-columns: 1.5fr 3.5fr 1.8fr 1.2fr;
    border-bottom: 1px solid rgba(54, 188, 247, 0.1);
    transition: all 0.3s ease;
    position: relative;
}

.cert-row:hover {
    background: rgba(54, 188, 247, 0.05);
    transform: translateX(5px);
    box-shadow: 0 5px 20px rgba(54, 188, 247, 0.1);
}

.cert-row:last-child {
    border-bottom: none;
}

.cert-cell {
    padding: 0.7rem 1.2rem;
    color: #E6F3FF;
    text-align: left;
    font-size: 0.9rem;
    line-height: 1.4;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    transition: all 0.3s ease;
}

.cert-row:hover .cert-cell {
    color: #FFFFFF;
    text-shadow: 0 0 5px rgba(54, 188, 247, 0.3);
}

.credential-link {
    color: #36BCF7;
    text-decoration: none;
    padding: 0.4rem 0.8rem;
    border: 1px solid rgba(54, 188, 247, 0.3);
    border-radius: 6px;
    background: rgba(54, 188, 247, 0.1);
    transition: all 0.3s ease;
    font-size: 0.8rem;
    font-weight: 500;
    white-space: nowrap;
    display: inline-block;
    width: auto;
    min-width: fit-content;
}

.credential-link:hover {
    background: rgba(54, 188, 247, 0.2);
    border-color: rgba(54, 188, 247, 0.6);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(54, 188, 247, 0.3);
}

@media (max-width: 768px) {
    .certifications-table {
        margin: 0 1rem;
    }

    .cert-header,
    .cert-row {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .cert-header-cell,
    .cert-cell {
        padding: 1rem 0.5rem;
        font-size: 0.9rem;
    }

    .cert-header {
        display: none;
    }

    .cert-row {
        border: 1px solid rgba(54, 188, 247, 0.2);
        border-radius: 12px;
        margin-bottom: 1rem;
        padding: 1rem;
    }

    .cert-cell {
        text-align: left;
        justify-content: flex-start;
        padding: 0.5rem 0;
    }

    .cert-cell::before {
        content: attr(data-label) ': ';
        font-weight: 600;
        color: #36BCF7;
        margin-right: 0.5rem;
    }
}



/* Contact tiles hover glow + pointer */
.contact-card {
    cursor: pointer;
}

.contact-card:hover {
    transform: translateY(-6px);
    border-color: rgba(54, 188, 247, 0.6);
    box-shadow: 0 16px 48px rgba(54, 188, 247, 0.3), 0 0 0 4px rgba(54, 188, 247, 0.15) inset;
}

/* Skills Section - 3D Sphere */
.skills-3d {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 4rem 0;
}

.skills-3d-layout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: 1200px;
    gap: 2rem;
    z-index: 2;
}

/* Text Content */
.skills-text-content {
    flex: 1;
    max-width: 500px;
    padding: 2rem;
    text-align: left;
}

.skills-text-content .section-title {
    font-size: 2.2rem !important;
    /* Reduced from 3rem */
    margin-bottom: 1rem !important;
    line-height: 1.6 !important;
    /* Increased line height */
    background: var(--gradient-primary) !important;
    /* Changed to blue gradient */
    -webkit-background-clip: text !important;
    background-clip: text !important;
    color: transparent !important;
}

.skills-text-content .skills-intro {
    font-size: 0.95rem;
    /* Reduced from 1.1rem */
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
    text-align: justify;
    /* Justified */
}

.skills-tags-static {
    display: flex;
    flex-wrap: nowrap;
    /* Force single line */
    gap: 0.5rem;
    /* Reduced gap */
    margin-bottom: 2rem;
    overflow-x: auto;
    /* Allow scroll if needed on very small screens */
    scrollbar-width: none;
    /* Hide scrollbar */
}

.skills-tags-static::-webkit-scrollbar {
    display: none;
}

.skills-tags-static .badge {
    font-size: 0.65rem !important;
    /* Further reduced */
    padding: 0.25rem 0.6rem !important;
    /* Further reduced padding */
    white-space: nowrap;
    border-radius: 50px;
    /* Ensure rounded pill shape */
    background: rgba(54, 188, 247, 0.1) !important;
    border: 1px solid rgba(54, 188, 247, 0.3) !important;
    color: #fff !important;
}

.skills-cta-container {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1rem;
    align-items: center;
    /* Ensure vertical alignment */
}

.skills-cta-container .cta-button {
    padding: 0.8rem 1.5rem;
    /* Slightly reduced padding for better fit */
    font-size: 0.95rem;
}

.cta-button.secondary {
    background: rgba(54, 188, 247, 0.1);
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    box-shadow: 0 4px 12px rgba(54, 188, 247, 0.1);
}

.cta-button.secondary:hover {
    background: rgba(54, 188, 247, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(54, 188, 247, 0.2);
    color: #fff;
}

/* Network Container */
.skills-network-container {
    flex: 1;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

#skillsNetwork {
    width: 100%;
    height: 100%;
    display: block;
}

/* Responsive */
@media (max-width: 992px) {
    .skills-network-container {
        height: 400px;
        width: 100%;
    }
}

.tag-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    transform-style: preserve-3d;
    backface-visibility: hidden;
    will-change: transform, opacity;
}

.tag-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.3));
    pointer-events: none;
    /* Prevent image dragging */
}

/* Responsive */
@media (max-width: 992px) {
    .skills-3d-layout {
        flex-direction: column;
        text-align: center;
    }

    .skills-text-content {
        text-align: left !important;
        max-width: 100%;
        padding: 1rem;
    }

    .skills-tags-static {
        justify-content: flex-start !important;
    }

    .skills-sphere-container {
        height: 400px;
        width: 100%;
    }

    #tagcloud {
        width: 350px;
        height: 350px;
    }

    .tag-item {
        width: 45px;
        height: 45px;
    }
}

@keyframes spaceGlow {

    0%,
    100% {
        opacity: 0.3;
        background: radial-gradient(circle, rgba(54, 188, 247, 0.15) 0%, rgba(54, 188, 247, 0.05) 50%, transparent 100%);
    }

    50% {
        opacity: 0.6;
        background: radial-gradient(circle, rgba(54, 188, 247, 0.25) 0%, rgba(54, 188, 247, 0.1) 50%, transparent 100%);
    }
}

/* Skills two-column layout */
.skills-layout {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    align-items: start;
}

.skills-left {
    padding-top: 1rem;
}

/* Logo grayscale default, color on hover */
.skill-item img {
    filter: grayscale(100%) contrast(0.9) opacity(0.9);
}

.skill-item:hover img {
    filter: grayscale(0%);
}

/* Ensure Express logo (often dark) remains visible on dark theme */
.skill-item img.logo-express {
    filter: invert(1) grayscale(0%) brightness(1.2) contrast(1);
}

.skill-item:hover img.logo-express {
    filter: invert(1) brightness(1.35) contrast(1.05);
}

@media (max-width: 992px) {
    .skills-layout {
        grid-template-columns: 1fr;
    }

    .skills-left {
        text-align: center;
    }
}

/* GitHub white mark sizing tweak */
.logo-github {
    width: 50% !important;
    height: 50% !important;
    object-fit: contain;
}

/* Contact grid identical to skills style */
.contact .skills-grid {
    margin-top: 0.5rem;
}

.contact-item,
.contact .skill-item {
    cursor: pointer;
}

.contact .skill-item img {
    filter: grayscale(100%) contrast(0.9) opacity(0.9);
}

.contact .skill-item:hover img {
    filter: grayscale(0%);
}

/* Connect tiles: enlarge logos and hide labels */
.contact-grid .skill-item span {
    display: none;
}

.contact-grid .skill-item img {
    width: 70%;
    height: 70%;
    filter: grayscale(100%) contrast(0.9) opacity(0.9);
}

.contact-grid .skill-item:hover img {
    filter: grayscale(0%);
}

/* Connect: smaller tiles and colorful logos */
#connect .contact-grid {
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 0.6rem;
}

#connect .skill-item {
    padding: 0.45rem;
    border-radius: 10px;
    aspect-ratio: 1 / 1;
}

#connect .skill-item img {
    width: 70%;
    height: 70%;
    filter: none !important;
    opacity: 1;
}

#connect .skill-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(54, 188, 247, 0.25);
}

#connect .sweet-note {
    color: var(--text-secondary);
    text-align: center;
    margin: 0.5rem 0 1rem;
    font-size: 1.05rem;
}

#connect .section-title {
    text-align: center;
}

#connect .container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Mini contact grids placed under hero and about name */
.contact-grid.mini {
    display: flex !important;
    flex-direction: row !important;
    gap: 0.4rem !important;
    justify-content: center;
    margin: 0.75rem auto 0;
}

.contact-grid.mini .skill-item {
    width: 64px;
    height: 64px;
    padding: 0.4rem;
    border-radius: 10px;
}

.contact-grid.mini .skill-item img {
    width: 70%;
    height: 70%;
    filter: none !important;
    opacity: 1;
}

.contact-grid.mini .skill-item span {
    display: none;
}

.about .contact-grid.mini {
    justify-content: center;
}

/* Connect two-column layout */
.connect-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: start;
    gap: 3rem;
    background: rgba(18, 18, 20, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    padding: 2.5rem;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.connect-left {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.connect-right {
    display: flex;
    justify-content: center;
}

/* Top row social icons aligned with Quick Connect */
.contact-grid.top-row {
    display: grid;
    grid-auto-flow: column;
    grid-template-columns: none;
    gap: 0.4rem;
    justify-content: flex-start;
    justify-items: center;
    margin: 0 0 1rem 0;
}

.contact-grid.top-row .skill-item {
    width: 56px;
    height: 56px;
    padding: 0.35rem;
    border-radius: 10px;
}

.contact-grid.top-row .skill-item img {
    width: 70%;
    height: 70%;
    filter: none !important;
    opacity: 1;
}

.contact-grid.top-row .skill-item span {
    display: none;
}

.contact-grid.one-line {
    grid-template-columns: repeat(5, 1fr);
    grid-auto-rows: 1fr;
}

#connect .skill-item {
    width: 90px;
    height: 90px;
}

#connect .skill-item img {
    width: 70%;
    height: 70%;
}

@media (max-width: 900px) {
    .connect-layout {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .contact-grid.one-line {
        grid-template-columns: repeat(5, minmax(60px, 1fr));
        justify-items: center;
    }

    #connect .skill-item {
        width: 70px;
        height: 70px;
    }
}

/* Force one-line horizontal row for connect logos */
.contact-grid.one-line {
    display: flex !important;
    flex-direction: row !important;
    gap: 0.4rem !important;
    justify-content: center;
}

.contact-grid {
    gap: 0 !important;
}

#connect .skill-item {
    width: 64px;
    height: 64px;
}

#connect .skill-item img {
    width: 80%;
    height: 80%;
}

/* Connect enhancements */
.connect-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.connect-subtitle {
    font-size: 1.3rem;
    color: #E6F3FF;
    margin-bottom: 1rem;
    font-weight: 500;
}

.connect-description {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.contact-info {
    margin-bottom: 2rem;
}

.contact-email {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.contact-email i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.contact-email a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-email a:hover {
    color: #5CC8FF;
}

.social-links-connect {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.social-links-connect a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: rgba(54, 188, 247, 0.1);
    border: 1px solid rgba(54, 188, 247, 0.3);
    border-radius: 12px;
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.35rem;
}

.social-links-connect a:hover {
    background: rgba(54, 188, 247, 0.2);
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(54, 188, 247, 0.3);
}

/* Contact Form Styling */
.contact-form {
    width: 100%;
    max-width: 400px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-group {
    margin-bottom: 1.2rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 12px;
    color: #fff;
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(54, 188, 247, 0.1);
    background: rgba(0, 0, 0, 0.5);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.submit-btn {
    width: 100%;
    padding: 1rem 1.5rem;
    background: var(--gradient-primary);
    border: none;
    border-radius: 12px;
    color: black;
    font-size: 1.1rem;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 8px 24px rgba(54, 188, 247, 0.3);
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(54, 188, 247, 0.4);
}

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

.submit-btn i {
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.submit-btn:hover i {
    transform: translateX(3px);
}

/* CLI contact method */
.cli-row {
    margin-top: 1.5rem;
}

.cli-hint {
    margin-bottom: 0.8rem;
}

.cli-command {
    display: flex;
    gap: 0.5rem;
    align-items: stretch;
    max-width: 380px;
    background: rgba(16, 18, 24, 0.7);
    border: 1px solid rgba(54, 188, 247, 0.35);
    border-radius: 12px;
    padding: 0.4rem;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
}

.cli-input {
    flex: 1;
    background: transparent;
    border: none;
    color: #E6F3FF;
    padding: 0.6rem 0.8rem;
    border-radius: 8px;
    font-family: 'Courier New', monospace;
    font-size: 0.95rem;
}

.cli-input:focus {
    outline: none;
}

.cli-copy {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: var(--primary-color);
    color: #0a0a0a;
    border: none;
    border-radius: 10px;
    padding: 0 0.9rem;
    cursor: pointer;
    font-weight: 600;
}

.cli-copy:hover {
    filter: brightness(1.1);
}

@media (max-width: 768px) {
    .connect-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 1.5rem;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .social-links-connect {
        justify-content: center;
    }
}

/* Tooltip styling for connect icons */
.contact-item {
    position: relative;
}

.contact-item .tooltip {
    position: absolute;
    bottom: -26px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(10, 10, 10, 0.9);
    border: 1px solid rgba(54, 188, 247, 0.35);
    color: #fff;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 0.75rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.contact-item:hover .tooltip {
    opacity: 1;
}

/* Refine connect visuals - toned down */
.connect-card {
    background: rgba(20, 20, 20, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 1rem 1.25rem;
    backdrop-filter: blur(8px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

.connect-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    transform: none;
}

.contact-item .tooltip {
    background: rgba(20, 20, 20, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Experiences Section */
.experiences {
    padding: 6rem 0;
    background: transparent;
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.experiences::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        rgba(0, 0, 0, 0.2),
        radial-gradient(400px 200px at 30% 40%, rgba(54, 188, 247, 0.1), transparent 60%),
        radial-gradient(300px 150px at 70% 60%, rgba(54, 188, 247, 0.08), transparent 50%);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: -1;
}

.experiences-intro {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.experiences-timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Vertical line connecting experiences */
.experiences-timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, rgba(54, 188, 247, 0.3) 0%, rgba(54, 188, 247, 0.6) 50%, rgba(54, 188, 247, 0.3) 100%);
    transform: translateX(-50%);
    border-radius: 2px;
}

.experience-card {
    margin-bottom: 3rem;
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

/* Alternate left-right layout */
.experience-card:nth-child(odd) {
    grid-template-columns: 1fr 1fr;
}

.experience-card:nth-child(even) {
    grid-template-columns: 1fr 1fr;
    direction: rtl;
}

.experience-card:nth-child(even) .experience-content {
    direction: ltr;
}

.experience-marker {
    position: absolute;
    left: 50%;
    top: 30px;
    width: 24px;
    height: 24px;
    background: var(--primary-color);
    border: 4px solid var(--bg-primary);
    border-radius: 50%;
    transform: translateX(-50%);
    box-shadow: 0 0 0 8px rgba(54, 188, 247, 0.2);
    animation: markerPulse 2s ease-in-out infinite;
    z-index: 10;
}

@keyframes markerPulse {

    0%,
    100% {
        box-shadow: 0 0 0 8px rgba(54, 188, 247, 0.2);
        transform: translateX(-50%) scale(1);
    }

    50% {
        box-shadow: 0 0 0 16px rgba(54, 188, 247, 0.1);
        transform: translateX(-50%) scale(1.1);
    }
}

.experience-content {
    background: rgba(30, 30, 30, 0.6);
    border: 1px solid rgba(54, 188, 247, 0.25);
    border-radius: 16px;
    padding: 2rem;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.experience-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

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

.experience-card:hover .experience-content {
    background: rgba(54, 188, 247, 0.08);
    border-color: var(--primary-color);
    transform: translateY(-8px);
    box-shadow:
        0 15px 40px rgba(54, 188, 247, 0.2),
        0 0 0 1px rgba(54, 188, 247, 0.1) inset;
}

.experience-header {
    margin-bottom: 1rem;
}

.experience-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

.experience-card:hover .experience-title {
    color: #5CC8FF;
    text-shadow: 0 0 10px rgba(54, 188, 247, 0.5);
}

.experience-company {
    display: inline-block;
    font-size: 1.1rem;
    font-weight: 600;
    color: #E6F3FF;
    background: rgba(54, 188, 247, 0.1);
    padding: 0.4rem 0.9rem;
    border-radius: 8px;
    border: 1px solid rgba(54, 188, 247, 0.3);
    margin-bottom: 0.5rem;
}

.experience-duration {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-top: 0.5rem;
}

.experience-duration i {
    color: var(--primary-color);
}

.experience-description {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.7;
    margin: 1.5rem 0;
    text-align: justify;
    transition: all 0.3s ease;
}

.experience-card:hover .experience-description {
    color: #d3d9e3;
}

.experience-skills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 1rem;
}

/* Timeline Wrapper */
.timeline-wrapper {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem 0;
    display: flex;
    gap: 2rem;
}

/* Vertical Line Track */
/* Vertical Line Track */
.timeline-line-track {
    position: absolute;
    left: 29px;
    top: 0;
    bottom: 0;
    width: 2px;
    height: 100%;
    z-index: 0;
}

.timeline-line-bg {
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
}

.timeline-beam {
    position: absolute;
    top: 0;
    left: 0;
    width: 2px;
    /* Match track width */
    height: 100px;
    background: var(--primary-color);
    /* Solid theme color */
    opacity: 0;
    transition: top 0.1s linear, opacity 0.3s ease;
    box-shadow: none;
    /* No neon glow */
    border-radius: 0;
    filter: none;
}

/* Timeline Entries */
.timeline-entries {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 4rem;
    position: relative;
    z-index: 1;
}

.timeline-entry {
    display: flex;
    gap: 2rem;
}

.timeline-marker-col {
    flex: 0 0 60px;
    display: flex;
    justify-content: center;
    padding-top: 0.5rem;
}

.timeline-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--bg-primary);
    border: 2px solid var(--text-secondary);
    /* Simple bulletin style */
    box-shadow: 0 0 0 4px var(--bg-primary);
    z-index: 2;
    transition: all 0.3s ease;
}

.timeline-entry:hover .timeline-dot {
    border-color: var(--primary-color);
    background: var(--primary-color);
    box-shadow: 0 0 0 4px var(--bg-primary);
}

.timeline-content-col {
    flex: 1;
}

.timeline-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.timeline-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    align-items: center;
}

.timeline-company {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.3rem;
    /* Increased size */
}

.timeline-date {
    opacity: 0.8;
    font-size: 0.95rem;
}

.timeline-description {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    text-align: justify;
    /* Justified content */
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .timeline-wrapper {
        gap: 1rem;
    }

    .timeline-line-track {
        left: 19px;
    }

    .timeline-marker-col {
        flex: 0 0 40px;
    }

    .timeline-entry {
        gap: 1rem;
    }
}

.exp-skill-badge {
    display: inline-block;
    padding: 0.4rem 0.9rem;
    background: rgba(54, 188, 247, 0.15);
    border: 1px solid rgba(54, 188, 247, 0.4);
    border-radius: 20px;
    color: #36BCF7;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.experience-card:hover .exp-skill-badge {
    background: rgba(54, 188, 247, 0.25);
    border-color: rgba(54, 188, 247, 0.6);
    transform: translateY(-2px);
}

/* Responsive Design for Experiences */
@media (max-width: 1024px) {
    .experiences-timeline::before {
        left: 20px;
    }

    .experience-card {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding-left: 60px;
    }

    .experience-card:nth-child(even) {
        direction: ltr;
        padding-left: 60px;
    }

    .experience-marker {
        left: 0;
    }
}

@media (max-width: 768px) {
    .experiences {
        padding: 1rem 0;
    }

    .experiences-timeline {
        padding: 0 0.5rem;
    }

    .experiences-timeline::before {
        left: 15px;
    }

    .experience-card {
        grid-template-columns: 1fr;
        gap: 0.5rem;
        padding-left: 40px;
        margin-bottom: 1rem;
    }

    .experience-card:nth-child(even) {
        padding-left: 40px;
    }

    .experience-marker {
        left: 0;
        width: 14px;
        height: 14px;
    }

    .experience-content {
        padding: 0.8rem;
    }

    .experience-title {
        font-size: 1rem;
    }

    .experience-company {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .experiences-timeline::before {
        left: 10px;
    }

    .experience-card {
        padding-left: 40px;
    }

    .experience-marker {
        width: 16px;
        height: 16px;
        top: 25px;
    }

    .experience-content {
        padding: 1rem;
    }

    .experience-title {
        font-size: 1.1rem;
    }

    .experience-company {
        font-size: 0.9rem;
    }
}

/* =========================================
   PREMIUM MOBILE OPTIMIZATION (EXTREME VERTICALITY)
   ========================================= */

@media (max-width: 768px) {

    /* --- Thicker Accessible Mobile Navigation (3 per row) --- */
    .navbar {
        width: 95%;
        padding: 1rem;
        top: 15px;
        border-radius: 30px;
        background: rgba(15, 15, 20, 0.96);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
        display: flex;
        align-items: center;
        justify-content: center;
        height: auto;
        /* Allow height to grow for 2 rows */
    }

    .nav-container {
        padding: 0;
        width: 100%;
    }

    .nav-menu {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        /* Exactly 3 per row */
        gap: 0.5rem;
        width: 100%;
        padding: 0;
    }

    .nav-menu li {
        display: flex;
        justify-content: center;
    }

    .nav-menu a {
        font-size: 0.75rem;
        /* Adjusted for grid fit */
        font-weight: 600;
        padding: 0.6rem 0.2rem;
        /* Tighter padding */
        width: 100%;
        text-align: center;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        color: rgba(255, 255, 255, 0.8);
        background: rgba(255, 255, 255, 0.05);
        border-radius: 12px;
        transition: all 0.3s ease;
        white-space: nowrap;
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .nav-menu a:hover,
    .nav-menu a:active {
        background: var(--primary-color);
        color: #000;
        box-shadow: 0 0 10px var(--primary-color);
    }

    .nav-logo {
        display: none;
    }

    /* --- General Layout & Spacing --- */
    .container {
        padding: 0 0.8rem;
        /* Ultra tight horizontal padding */
    }

    .section-title {
        font-size: 1.4rem;
        /* Ultra minimal title */
        margin-bottom: 4rem;
        /* Massive vertical space */
        letter-spacing: -0.5px;
    }

    .section-subtitle {
        font-size: 0.8rem;
        /* Ultra minimal subtitle */
        margin-top: -2rem;
        margin-bottom: 6rem;
        /* Massive vertical space */
        padding: 0 0.5rem;
        line-height: 1.5;
        opacity: 0.75;
    }

    /* --- Hero Section --- */
    .hero {
        padding-top: 220px;
        /* Huge top space */
        padding-bottom: 8rem;
        /* Huge bottom space */
        min-height: auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        overflow-x: hidden;
    }

    .hero-container {
        display: flex;
        flex-direction: column;
        gap: 4rem;
        /* Huge gap between image and text */
        width: 100%;
        max-width: 100%;
        padding: 0 0.5rem;
    }

    .hero-left {
        order: 2;
        padding: 0;
        width: 100%;
    }

    .hero-right {
        order: 1;
        padding: 0;
        display: flex;
        justify-content: center;
        width: 100%;
    }

    .hero-title {
        font-size: 1.3rem;
        /* Ultra small title */
        line-height: 1.4;
        margin-bottom: 1.5rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
        padding: 0 0.5rem;
    }

    .sliding-text-container {
        height: 1.6rem;
        margin-bottom: 3rem;
        /* More space */
        width: 100%;
    }

    .sliding-item {
        font-size: 0.85rem;
        /* Tiny sliding text */
        height: 1.6rem;
        white-space: nowrap;
    }

    /* --- Profile Image Optimization --- */
    .profile-image {
        margin: 0 auto 3rem;
        /* Huge space below image */
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .profile-img {
        width: 200px;
        /* Smaller image */
        height: 200px;
        max-width: 65vw;
        object-fit: cover;
        object-position: top center;
        border-radius: 20px;
        box-shadow:
            0 10px 30px rgba(0, 0, 0, 0.5),
            0 0 0 3px rgba(54, 188, 247, 0.3);
        /* Thinner frame */
    }

    /* Specific fix for About section image */
    .about .profile-img {
        width: 100%;
        max-width: 220px;
        height: auto;
        aspect-ratio: 1/1;
        object-fit: cover;
        object-position: top center;
        margin: 0 auto;
        display: block;
        box-shadow:
            0 10px 30px rgba(0, 0, 0, 0.5),
            0 0 0 3px rgba(54, 188, 247, 0.3);
    }

    /* --- Achievements Section --- */
    .achievements-grid {
        grid-template-columns: 1fr;
        gap: 6rem;
        /* Massive gap */
    }

    .achievement-card {
        min-height: auto;
        padding: 0.8rem;
        /* Ultra minimized padding */
        border-width: 1px;
    }

    .achievement-card.large-card {
        grid-column: span 1;
    }

    .dual-images-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .achievement-image {
        aspect-ratio: 16/9;
        margin-bottom: 0.8rem;
    }

    .achievement-title {
        font-size: 0.9rem;
        /* Tiny title */
    }

    /* --- Projects Section --- */
    .projects-grid {
        perspective: none;
        gap: 6rem;
        /* Massive gap */
    }

    .project-card {
        transform: none !important;
        margin-bottom: 0;
        padding: 0.8rem;
        /* Ultra minimized padding */
        background: rgba(20, 20, 22, 0.9);
        border: 1px solid rgba(54, 188, 247, 0.15);
        box-shadow: 0 8px 20px -5px rgba(0, 0, 0, 0.5);
    }

    /* Mobile "Breathing" Glow Animation */
    @keyframes mobileGlow {

        0%,
        100% {
            box-shadow: 0 0 15px rgba(54, 188, 247, 0.1);
            border-color: rgba(54, 188, 247, 0.2);
        }

        50% {
            box-shadow: 0 0 25px rgba(54, 188, 247, 0.25);
            border-color: rgba(54, 188, 247, 0.4);
        }
    }

    .project-card {
        animation: mobileGlow 4s ease-in-out infinite;
    }

    .project-card::before,
    .project-card::after {
        display: none;
        /* Remove mouse tracking on mobile */
    }

    .project-header h3 {
        font-size: 0.9rem;
        /* Tiny title */
    }

    /* --- Experience Timeline --- */
    .timeline-wrapper {
        padding: 0;
    }

    .timeline-line-track {
        left: 15px;
        /* Tighter track */
    }

    .timeline-beam {
        left: -14px;
        width: 1px;
        /* Thinner beam */
    }

    .timeline-entries {
        gap: 2rem;
        /* Reduced gap from 8rem to 2rem */
    }

    .timeline-marker-col {
        flex: 0 0 30px;
        justify-content: flex-start;
        padding-top: 0.3rem;
    }

    .timeline-dot {
        width: 8px;
        /* Smaller dot */
        height: 8px;
        background: var(--primary-color);
        box-shadow: 0 0 6px rgba(54, 188, 247, 0.5);
    }

    .timeline-content-col {
        padding-left: 0.5rem;
    }

    .timeline-title {
        font-size: 0.9rem;
        /* Tiny title */
        margin-bottom: 0.2rem;
    }

    .timeline-company {
        font-size: 0.75rem;
        /* Tiny text */
        color: #fff;
    }

    .timeline-description {
        font-size: 0.75rem;
        line-height: 1.4;
        margin-bottom: 0.5rem;
    }

    .experience-skills {
        gap: 0.3rem;
    }

    .exp-skill-badge {
        font-size: 0.6rem;
        padding: 0.2rem 0.5rem;
    }

    /* --- Certifications --- */
    .certifications-table {
        background: transparent;
        border: none;
        box-shadow: none;
        backdrop-filter: none;
    }

    .cert-row {
        background: rgba(25, 25, 30, 0.8);
        border: 1px solid rgba(54, 188, 247, 0.1);
        backdrop-filter: blur(12px);
        margin-bottom: 1.5rem;
        /* Reduced spacing from 3rem */
        padding: 0.8rem;
        /* Ultra minimized padding */
        border-radius: 12px;
        display: flex;
        flex-direction: column;
        gap: 0.4rem;
        position: relative;
        overflow: hidden;
    }

    .cert-row::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 2px;
        /* Thinner line */
        background: linear-gradient(90deg, var(--primary-color), transparent);
        opacity: 0.6;
    }

    .cert-cell {
        padding: 0;
        border: none;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }

    .cert-cell::before {
        content: attr(data-label);
        font-size: 0.55rem;
        /* Tiny label */
        text-transform: uppercase;
        letter-spacing: 1px;
        color: var(--primary-color);
        margin-bottom: 0.1rem;
        font-weight: 600;
        opacity: 0.8;
    }

    .credential-link {
        width: 100%;
        text-align: center;
        margin-top: 0.4rem;
        padding: 0.4rem;
        /* Ultra minimized padding */
        background: rgba(54, 188, 247, 0.05);
        border: 1px solid rgba(54, 188, 247, 0.2);
        font-size: 0.7rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.3rem;
        /* Even smaller */
    }

    .sliding-item {
        font-size: 0.85rem;
    }

    .section-title {
        font-size: 1.4rem;
    }

    .project-header h3 {
        font-size: 0.95rem;
    }

    .project-card {
        padding: 0.8rem;
    }

    .nav-menu a {
        font-size: 0.55rem;
        padding: 0.2rem 0.25rem;
    }
}

/* Achievements Row Layout */
.achievements-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: 1rem 0;
}

.achievements-row {
    display: grid;
    gap: 2rem;
    width: 100%;
}

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

.achievements-row.row-2 {
    grid-template-columns: repeat(2, 1fr);
    /* Full width alignment - no max-width constraints */
}

@media (max-width: 1024px) {

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

@media (max-width: 768px) {

    .achievements-row.row-3,
    .achievements-row.row-2 {
        grid-template-columns: 1fr;
    }
}

/* 3D Card Container */
.achievement-card-3d {
    perspective: 1000px;
    height: 300px;
    /* Fixed height for uniformity */
    cursor: pointer;
    position: relative;
}

/* Inner Card Wrapper (The flipper) */
.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    /* Bouncy flip */
    transform-style: preserve-3d;
    border-radius: 1.5rem;
}

/* Flip on Hover */
.achievement-card-3d:hover .card-inner {
    transform: rotateY(180deg);
}

/* Front and Back Faces */
.card-front,
.card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    border-radius: 1.5rem;
    overflow: hidden;
    border: 1px solid rgba(54, 188, 247, 0.3);
    box-shadow: 0 0 15px rgba(54, 188, 247, 0.1);
    background: #1a1a1a;
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
}

/* Front Face Styling */
.card-front {
    padding: 0;
    /* Full frame image */
}

.card-img-wrapper {
    width: 100%;
    height: 100%;
    border-radius: 1.5rem;
    overflow: hidden;
    position: relative;
}

.card-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.achievement-card-3d:hover .card-img-wrapper img {
    transform: scale(1.1);
}

.card-front-title {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2rem 1rem 1rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.6) 60%, transparent 100%);
    font-size: 1.1rem;
    font-weight: 800;
    /* Bold */
    color: #36BCF7;
    /* Blue color */
    text-align: center;
    line-height: 1.3;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    z-index: 2;
}

/* Back Face Styling */
.card-back {
    background: #1a1a1a;
    transform: rotateY(180deg);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    border: 1px solid var(--primary-color);
    position: relative;
    overflow: hidden;
}

/* Background Image in Back Face */
.card-back-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    filter: blur(3px) grayscale(40%);
    opacity: 0.7;
}

/* Glass Overlay */
.card-back::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(26, 26, 26, 0.7);
    /* Grey transparent glass tint */
    z-index: 1;
    backdrop-filter: blur(2px);
    /* Additional blur for the glass feel */
}

.card-content {
    position: relative;
    z-index: 2;
    /* Ensure text is above the image and overlay */
    transform: translateZ(60px);
    /* Parallax depth for text */
    transform-style: preserve-3d;
}

.card-desc {
    font-size: 1rem;
    color: #ffffff;
    margin-bottom: 1.5rem;
    line-height: 1.5;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
    font-weight: 500;
}

.card-location {
    display: inline-block;
    padding: 0.4rem 1rem;
    background: rgba(54, 188, 247, 0.2);
    border: 1px solid rgba(54, 188, 247, 0.5);
    border-radius: 50px;
    font-size: 0.85rem;
    color: #fff;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

/* Magnetic & Parallax Classes (Applied by JS) */
.magnetic-active {
    transition: transform 0.1s ease-out;
    /* Faster transition for magnetic effect */
}

/* Hero Name Gradient */
.hero-name-gradient {
    background: linear-gradient(to right, #00d2ff 0%, #3a7bd5 100%);
    /* Cyan to Royal Blue */
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline-block;
    font-weight: 800;
}

@keyframes slideUpMobile {

    0%,
    16% {
        transform: translateY(0);
    }

    20%,
    36% {
        transform: translateY(-2rem);
    }

    40%,
    56% {
        transform: translateY(-4rem);
    }

    60%,
    76% {
        transform: translateY(-6rem);
    }

    80%,
    96% {
        transform: translateY(-8rem);
    }

    100% {
        transform: translateY(-10rem);
    }
}

@keyframes slideUpMobileSmall {

    0%,
    16% {
        transform: translateY(0);
    }

    20%,
    36% {
        transform: translateY(-1.2rem);
    }

    40%,
    56% {
        transform: translateY(-2.4rem);
    }

    60%,
    76% {
        transform: translateY(-3.6rem);
    }

    80%,
    96% {
        transform: translateY(-4.8rem);
    }

    100% {
        transform: translateY(-6.0rem);
    }
}