body {
            margin: 0;
            font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
            background: #eef2f7;
            color: #1f2937;
            scroll-behavior: smooth;
        }

        header {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            min-height: 96px;
            background-color: #111827;
            color: #ffffff;
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 12px 24px;
            z-index: 1000;
            box-shadow: 0 12px 30px rgba(15, 23, 42, 0.18);
        }

        .header-brand {
            display: flex;
            align-items: center;
            gap: 18px;
            font-size: 20px;
            font-weight: 700;
        }

        .profile-photo {
            height: 80px;
            width: 80px;
            border-radius: 20px;
            object-fit: cover;
            object-position: center;
            border: 2px solid rgba(255, 255, 255, 0.18);
            transform: scale(1.15);
        }

        .tabs {
            display: flex;
            flex-wrap: wrap;
            gap: 12px;
            justify-content: center;
        }

      
        .tabs a {
            color: #e5e7eb;
            text-decoration: none;
            font-weight: 600;
            font-size: 15px;
            padding: 12px 20px;
            border: 2px solid rgba(255, 255, 255, 0.15);
            border-radius: 12px;
            transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
            background: rgba(255, 255, 255, 0.08);
            position: relative;
            overflow: hidden;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .tabs a::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent 0%, rgba(125, 211, 252, 0.3) 50%, transparent 100%);
            transition: left 0.5s ease;
            z-index: 0;
        }

        .tabs a > * {
            position: relative;
            z-index: 1;
        }

        .tabs a:hover::before {
            left: 100%;
        }

        .tabs a:hover,
        .tabs a:focus-visible {
            color: #7dd3fc;
            border-color: rgba(255, 255, 255, 0.2);
            background: rgba(255, 255, 255, 0.12);
        }

        .tabs a:active {
            transform: translateY(1px);
        }

        section {
            padding: 120px 24px 70px;
            max-width: 1180px;
            margin: 0 auto;
            scroll-margin-top: 110px;
        }

        .section-title {
            text-align: center;
            margin-bottom: 42px;
            font-size: 2.2rem;
            letter-spacing: -0.03em;
        }

        .publications {
            display: flex;
            flex-direction: column;
            gap: 24px;
            counter-reset: publication-counter;
        }

        .publication-card {
            position: relative;
            counter-increment: publication-counter;
        }

        .publication-card::before {
            content: counter(publication-counter);
            position: absolute;
            top: 16px;
            left: 16px;
            background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
            color: #ffffff;
            width: 36px;
            height: 36px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 700;
            font-size: 0.9rem;
            box-shadow: 0 4px 12px rgba(2, 132, 199, 0.3);
            z-index: 5;
        }

        .publication-card {
            width: 100%;
            background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
            border: 2px solid rgba(2, 132, 199, 0.15);
            border-radius: 20px;
            box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08), 0 0 0 1px rgba(2, 132, 199, 0.1);
            padding: 26px 26px 30px;
            display: flex;
            flex-direction: column;
            gap: 18px;
            padding-top: 50px;
            transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
            overflow: hidden;
            position: relative;
        }

        .publication-card::after {
            content: '';
            position: absolute;
            top: -50%;
            right: -50%;
            width: 200px;
            height: 200px;
            background: radial-gradient(circle, rgba(2, 132, 199, 0.1) 0%, transparent 70%);
            opacity: 0;
            transition: opacity 0.4s ease;
            pointer-events: none;
            border-radius: 50%;
            z-index: 0;
        }

        .publication-card:hover {
            transform: translateY(-8px) scale(1.01);
            box-shadow: 0 25px 50px rgba(2, 132, 199, 0.25), 0 0 40px rgba(2, 132, 199, 0.15);
            border-color: rgba(2, 132, 199, 0.4);
        }

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

        .publication-header {
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            justify-content: space-between;
            gap: 10px;
            padding-left: 50px;
        }

        .publication-title {
            font-size: 1.15rem;
            font-weight: 700;
            color: #111827;
            flex: 1 1 60%;
            min-width: 200px;
            display: flex;
            flex-direction: column;
            gap: 10px;
        }

        .publication-subtitle {
            display: flex;
            align-items: center;
            gap: 10px;
            flex-wrap: wrap;
        }

        .publication-conference-inline {
            font-size: 0.95rem;
            color: #334155;
            font-weight: 500;
        }

        .publication-authors {
            font-size: 0.95rem;
            color: #475569;
            line-height: 1.5;
        }

        .publication-meta {
            font-size: 0.82rem;
            color: #475569;
            text-align: right;
            background: rgba(15, 23, 42, 0.06);
            padding: 8px 12px;
            border-radius: 999px;
            white-space: nowrap;
        }

        .publication-paper-link {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background: rgba(2, 132, 199, 0.12);
            color: #0369a1;
            text-decoration: none;
            border: 1px solid rgba(2, 132, 199, 0.18);
            transition: background-color 0.2s ease, transform 0.2s ease;
        }

        .publication-paper-link:hover {
            background: rgba(2, 132, 199, 0.2);
            transform: translateY(-1px);
        }

        .publication-paper-link i {
            font-size: 1rem;
        }

        .publication-conference {
            font-size: 0.95rem;
            color: #334155;
            line-height: 1.6;
            display: none;
        }

        .publication-images {
            display: flex;
            flex-wrap: wrap;
            gap: 14px;
        }

        .publication-images img,
        .publication-images video {
            flex: 1 1 180px;
            min-width: 140px;
            border-radius: 16px;
            object-fit: cover;
            box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
        }

        .publication-images video {
            display: block;
            width: 100%;
            height: auto;
        }

        @media (max-width: 760px) {
            .publication-header {
                flex-direction: column;
                align-items: stretch;
                text-align: left;
            }

            .publication-meta {
                text-align: left;
            }

            .publication-images img {
                width: 100%;
            }
        }

        .projects {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 28px;
            counter-reset: project-counter;
        }

        .project {
            position: relative;
            counter-increment: project-counter;
        }

        .project::before {
            content: counter(project-counter);
            position: absolute;
            top: 12px;
            left: 14px;
            background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
            color: #ffffff;
            width: 32px;
            height: 32px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 700;
            font-size: 0.85rem;
            box-shadow: 0 4px 12px rgba(2, 132, 199, 0.3);
            z-index: 5;
        }

        .project {
            position: relative;
            border: 2px solid rgba(2, 132, 199, 0.15);
            border-radius: 20px;
            padding: 50px 22px 36px;
            background: linear-gradient(
                135deg,
                rgba(255,255,255,0.78) 0%,
                rgba(248,250,252,0.72) 100%
            );
            backdrop-filter: blur(8px);
            -webkit-backdrop-filter: blur(8px);
            box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08), 0 0 0 1px rgba(2, 132, 199, 0.1);
            transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
            display: flex;
            flex-direction: column;
            align-items: flex-start;
            text-align: left;
            overflow: hidden;
        }

        .project::after {
            content: '';
            position: absolute;
            top: -50%;
            right: -50%;
            width: 200px;
            height: 200px;
            background: radial-gradient(circle, rgba(2, 132, 199, 0.1) 0%, transparent 70%);
            opacity: 0;
            transition: opacity 0.4s ease;
            pointer-events: none;
            border-radius: 50%;
        }

        .project:hover {
            transform: translateY(-8px) scale(1.02);
            box-shadow: 0 25px 50px rgba(2, 132, 199, 0.25), 0 0 40px rgba(2, 132, 199, 0.15);
            border-color: rgba(2, 132, 199, 0.4);
        }

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

        .project-title {
            font-size: 1.1rem;
            font-weight: 700;
            margin-bottom: 10px;
            display: flex;
            align-items: center;
            gap: 10px;
            line-height: 1.2;
            padding-top: 8px;
        }

        .country-logo {
            height: 22px;
            width: auto;
        }

        .project-organization {
            font-size: 0.95rem;
            color: #475569;
            margin: 0 0 12px;
            text-decoration: underline;
        }

        .project-description {
            font-size: 0.96rem;
            line-height: 1.65;
            color: #475569;
            margin-bottom: 16px;
            min-height: 4.8rem; /* reserves space for 3 text lines */
            display: block;
            white-space: normal;
        }

        .project-footer {
            margin-top: auto;
            width: 100%;
            display: flex;
            flex-wrap: wrap;
            justify-content: space-between;
            gap: 10px;
            align-items: center;
        }

        .project-date {
            position: absolute;
            top: 18px;
            right: 18px;
            background: rgba(15, 23, 42, 0.06);
            padding: 8px 12px;
            border-radius: 999px;
            font-size: 0.82rem;
            color: #475569;
            white-space: nowrap;
        }

        .skills {
            order: 10;
        }

        .project-link {
            order: 30;
            margin-top: 20px;
            align-self: flex-start;
            background: transparent;
            padding: 0;
            font-size: 0;
        }

        .project-link .skill {
            background: rgba(2, 132, 199, 0.08);
            color: #0369a1;
            border-radius: 999px;
            padding: 8px 12px;
            font-size: 0.88rem;
            display: inline-flex;
            align-items: center;
            gap: 6px;
        }

        .project-link .skill i {
            color: #0369a1;
        }

        .project-link a {
            color: #0284c7;
        }

        .project-link a:hover {
            text-decoration: underline;
        }

        .gallery {
            position: relative;
            width: 100%;
            min-height: 220px;
            overflow: hidden;
            border-radius: 16px;
            background-color: #0f172a;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-bottom: 14px;
        }

        .gallery-items {
            display: flex;
            transition: transform 0.45s ease;
            width: 100%;
        }

        .gallery img,
        .gallery video {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .gallery-nav {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            font-size: 18px;
            width: 36px;
            height: 36px;
            color: #ffffff;
            background-color: rgba(15, 23, 42, 0.72);
            border-radius: 50%;
            display: none;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            z-index: 10;
        }

        .gallery:hover .gallery-nav {
            display: flex;
        }

        .gallery-nav.left-arrow {
            left: 12px;
        }

        .gallery-nav.right-arrow {
            right: 12px;
        }

        .skills {
            margin-top: 10px;
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            justify-content: flex-start;
        }

        .skill {
            display: inline-flex;
            align-items: center;
            font-size: 0.85rem;
            color: #334155;
            background: #f8fafc;
            border-radius: 999px;
            padding: 8px 10px;
        }

        .skill i {
            margin-right: 8px;
            color: #0ea5e9;
        }

        .section--highlight {
            background-color: #f8fafc;
            padding: 120px 24px 70px;
        }

        .section--centered {
            text-align: center;
        }

        .section-intro {
            max-width: 940px;
            margin: 0 auto 18px;
        }

        .section-intro-text {
            font-size: 1rem;
            color: #475569;
            max-width: 900px;
            margin: 0 auto;
            line-height: 1.75;
        }

        .contact-me-content {
            max-width: 900px;
            margin: 0 auto;
            text-align: center;
        }

        .contact-me-content ul {
            list-style: none;
            padding: 0;
        }

        .contact-me-content ul li {
            margin: 10px 0;
            font-size: 16px;
        }

        .contact-me-content ul li a {
            color: #0284c7;
            text-decoration: none;
            font-weight: 600;
        }

        .contact-me-content ul li a:hover {
            color: #0b75b8;
        }



         .section--highlight {
            background-color: rgba(248, 250, 252, 0.8);
            border-radius: 20px;
        }

        .section--centered {
            text-align: center;
        }

        .section-intro {
            max-width: 900px;
            margin: 0 auto;
        }

        .section-intro h2 {
            font-size: 2rem;
            margin-bottom: 20px;
            color: #111827;
        }

        .section-intro-text {
            font-size: 1rem;
            color: #475569;
            max-width: 900px;
            margin: 0 auto;
            line-height: 1.75;
        }

        .videos-grid {
            display: grid;
            grid-template-columns: repeat(3, minmax(0, 1fr));
            gap: 16px;
            align-items: start;
        }

        .video-card {
            padding: 10px;
        }

        .video-container {
            position: relative;
            width: 100%;

            /* responsive aspect ratio */
            aspect-ratio: 16 / 9;

            height: auto;
            padding: 0;

            overflow: hidden;
            border-radius: 12px;
            background: #000;
        }

        .video-preview,
        .video-preview img,
        .video-container iframe {
            position: absolute;
            inset: 0;

            width: 100%;
            height: 100%;

            object-fit: cover;
        }

        .video-info {
            padding: 12px 6px 4px;
        }

        .video-title {
            font-size: 0.9rem;
            line-height: 1.35;
        }

        .video-card:hover .video-title {
            color: #0284c7;
        }

        .video-description {
            font-size: 0.9rem;
            color: #64748b;
            line-height: 1.6;
            transition: color 0.3s ease;
        }

        .video-card:hover .video-description {
            color: #475569;
        }

        .contact-link {
            display: flex;
            align-items: center;
            gap: 16px;
            padding: 20px 24px;
            background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
            border: 2px solid rgba(2, 132, 199, 0.2);
            border-radius: 16px;
            text-decoration: none;
            transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
            box-shadow: 0 8px 24px rgba(2, 132, 199, 0.1);
            min-width: 260px;
            position: relative;
            overflow: hidden;
        }

        .contact-link::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(135deg, rgba(2, 132, 199, 0.1) 0%, rgba(2, 132, 199, 0.05) 100%);
            transition: left 0.4s ease;
            z-index: 0;
        }

        .contact-link:hover::before {
            left: 0;
        }

        .contact-link:hover {
            border-color: rgba(2, 132, 199, 0.5);
            box-shadow: 0 16px 40px rgba(2, 132, 199, 0.25);
            transform: translateY(-6px);
        }

        .contact-icon-box {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 50px;
            height: 50px;
            background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
            border-radius: 12px;
            color: #ffffff;
            font-size: 24px;
            flex-shrink: 0;
            box-shadow: 0 8px 16px rgba(2, 132, 199, 0.3);
            transition: all 0.3s ease;
            z-index: 1;
        }

        .contact-link:hover .contact-icon-box {
            transform: scale(1.12) rotate(5deg);
            box-shadow: 0 12px 24px rgba(2, 132, 199, 0.4);
        }

        .contact-text {
            display: flex;
            flex-direction: column;
            gap: 4px;
            z-index: 1;
        }

        .contact-label {
            font-size: 1rem;
            font-weight: 700;
            color: #111827;
        }

        .contact-detail {
            font-size: 0.85rem;
            color: #0284c7;
            font-weight: 500;
        }

        .contact-link:hover .contact-label {
            color: #0284c7;
        }

        #toggle-view {
            position: fixed;
            top: 108px;
            right: 24px;
            z-index: 1001;
            padding: 10px 18px;
            background-color: #0284c7;
            color: white;
            border: none;
            border-radius: 999px;
            font-size: 14px;
            cursor: pointer;
            box-shadow: 0 10px 25px rgba(2, 132, 199, 0.25);
            width: auto;
        }

        #toggle-view:hover {
            background-color: #0369a1;
        }

        .play-button {
            width: 52px;
            height: 52px;
            font-size: 18px;
        }

        .conferences-grid {
            display: grid;
            grid-template-columns: 1fr;
            gap: 20px;
            align-items: stretch;
        }

        .conference-card {
            position: relative;
            display: block;
            text-decoration: none;
            color: inherit;
            padding: 18px;
            border-radius: 20px;
            border: 2px solid rgba(2, 132, 199, 0.15);
            background: linear-gradient(135deg, rgba(255,255,255,0.78) 0%, rgba(248,250,252,0.72) 100%);
            backdrop-filter: blur(8px);
            -webkit-backdrop-filter: blur(8px);
            box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
            overflow: hidden;
            transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
        }

        .conference-gallery {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
            gap: 16px;
            align-items: stretch;
            margin-bottom: 20px;
        }

        .conference-image {
            width: 100%;
            height: 320px;
            object-fit: cover;
            border-radius: 20px;
            cursor: zoom-in;
            transition: transform 0.3s ease, box-shadow 0.3s ease;
            box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
            display: block;
        }

        .conference-image:hover {
            transform: scale(1.02);
            box-shadow: 0 20px 50px rgba(15, 23, 42, 0.14);
        }

        .conference-card:hover {
            transform: translateY(-6px);
            box-shadow: 0 25px 50px rgba(2, 132, 199, 0.22);
            border-color: rgba(2, 132, 199, 0.35);
        }

        .summer-school-card {
            display: grid;
            grid-template-columns: 1fr;
            gap: 24px;
        }

        .summer-school-gallery {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
            gap: 16px;
            align-items: stretch;
        }

        .summer-school-image {
            width: 100%;
            height: 280px;
            object-fit: cover;
            border-radius: 20px;
            cursor: zoom-in;
            transition: transform 0.3s ease, box-shadow 0.3s ease;
            box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
            display: block;
        }

        .summer-school-image:hover {
            transform: scale(1.02);
            box-shadow: 0 20px 50px rgba(15, 23, 42, 0.14);
        }

        .conference-icon {
            width: 64px;
            height: 64px;
            border-radius: 16px;
            display: flex;
            align-items: center;
            justify-content: center;
            background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
            color: #fff;
            font-size: 26px;
            box-shadow: 0 10px 20px rgba(2, 132, 199, 0.25);
            position: relative;
            z-index: 2;
        }
            height: 64px;
            border-radius: 16px;
            display: flex;
            align-items: center;
            justify-content: center;
            background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
            color: #fff;
            font-size: 26px;
            box-shadow: 0 10px 20px rgba(2, 132, 199, 0.25);
            position: relative;
            z-index: 2;
        }

        .conference-stack {
            position: relative;
            width: 100%;
            height: 260px;
            margin-top: 18px;
            overflow: visible;
        }

        .stack-card {
            position: absolute;

            width: 32%;
            height: 120px;

            object-fit: cover;

            border-radius: 16px;
            border: 2px solid rgba(255,255,255,0.92);

            box-shadow: 0 14px 32px rgba(15, 23, 42, 0.22);

            transition: transform 0.35s ease;
        }

        /* Spread across whole cell */
        .stack-1 {
            left: 0%;
            top: 110px;
            transform: rotate(-22deg);
            z-index: 1;
        }

        .stack-2 {
            left: 10%;
            top: 72px;
            transform: rotate(-16deg);
            z-index: 2;
        }

        .stack-3 {
            left: 22%;
            top: 38px;
            transform: rotate(-10deg);
            z-index: 3;
        }

        .stack-4 {
            left: 34%;
            top: 10px;
            transform: rotate(-3deg);
            z-index: 4;
        }

        .stack-5 {
            left: 48%;
            top: 16px;
            transform: rotate(4deg);
            z-index: 5;
        }

        .stack-6 {
            left: 60%;
            top: 52px;
            transform: rotate(12deg);
            z-index: 6;
        }

        .stack-7 {
            left: 70%;
            top: 94px;
            transform: rotate(20deg);
            z-index: 7;
        }

        .conference-card:hover .stack-1 {
            transform: translate(-6px, -10px) rotate(-26deg);
        }

        .conference-card:hover .stack-2 {
            transform: translate(-4px, -14px) rotate(-18deg);
        }

        .conference-card:hover .stack-3 {
            transform: translate(-2px, -18px) rotate(-12deg);
        }

        .conference-card:hover .stack-4 {
            transform: translate(0px, -22px) rotate(-4deg);
        }

        .conference-card:hover .stack-5 {
            transform: translate(2px, -20px) rotate(4deg);
        }

        .conference-card:hover .stack-6 {
            transform: translate(4px, -14px) rotate(12deg);
        }

        .conference-card:hover .stack-7 {
            transform: translate(6px, -8px) rotate(20deg);
        }
        
        .conference-text {
            margin-top: 12px;
            text-align: left;
        }

        .conference-title {
            font-size: 1.05rem;
            font-weight: 700;
            color: #111827;
            margin-bottom: 4px;
        }

        .conference-subtitle {
            font-size: 0.97rem;
            color: #176de6;
        }
        .conference-subsubtitle {
            font-size: 0.92rem;
            color: #475569;
        }

        .stack-card {
            cursor: zoom-in;
        }

        .image-modal {
            position: fixed;
            inset: 0;
            display: none;
            align-items: center;
            justify-content: center;
            z-index: 2000;
        }

        .image-modal.open {
            display: flex;
        }

        .image-modal-backdrop {
            position: absolute;
            inset: 0;
            background: rgba(15, 23, 42, 0.75);
            backdrop-filter: blur(8px);
        }

        .image-modal-content {
            position: relative;
            max-width: 90vw;
            max-height: 90vh;
            width: min(900px, 100%);
            padding: 18px;
            border-radius: 24px;
            background: rgba(255, 255, 255, 0.94);
            box-shadow: 0 30px 90px rgba(15, 23, 42, 0.32);
            z-index: 1;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 14px;
        }

        .image-modal-close {
            position: absolute;
            top: 16px;
            right: 16px;
            border: none;
            background: rgba(17, 24, 39, 0.92);
            color: #ffffff;
            width: 40px;
            height: 40px;
            border-radius: 50%;
            font-size: 1.4rem;
            cursor: pointer;
        }

        .image-modal img {
            max-width: 100%;
            max-height: 72vh;
            border-radius: 18px;
            object-fit: contain;
        }

        .image-modal-caption {
            width: 100%;
            text-align: center;
            color: #334155;
            font-size: 0.96rem;
        }

        .education-list {
            display: flex;
            flex-direction: column;
            gap: 24px;
            margin-top: 40px;
        }

        .education-strip {
            position: relative;

            display: flex;
            align-items: center;
            justify-content: space-between;

            gap: 24px;

            width: 95%;

            padding: 10px;

            border-radius: 24px;

            background: linear-gradient(
                135deg,
                rgba(255,255,255,0.78) 0%,
                rgba(248,250,252,0.72) 100%
            );

            backdrop-filter: blur(8px);
            -webkit-backdrop-filter: blur(8px);

            border: 2px solid rgba(2,132,199,0.15);

            box-shadow:
                0 16px 40px rgba(15,23,42,0.08),
                0 0 0 1px rgba(2,132,199,0.08);

            transition:
                transform 0.35s ease,
                box-shadow 0.35s ease,
                border-color 0.35s ease;
        }

        .education-strip:hover {
            transform: translateY(-6px);

            border-color: rgba(2,132,199,0.35);

            box-shadow:
                0 24px 48px rgba(2,132,199,0.18);
        }

        .education-main {
            display: flex;
            align-items: center;
            gap: 22px;
        }

        .education-logo {
            width: 78px;
            height: 78px;

            object-fit: contain;

            border-radius: 18px;

            background: rgba(255,255,255,0.8);

            padding: 8px;

            flex-shrink: 0;
        }

        .education-info {
            display: flex;
            flex-direction: column;
            gap: 8px;
        }

        .education-degree {
            font-size: 1.2rem;
            font-weight: 700;
            color: #111827;
        }

        .education-school {
            font-size: 1rem;
            font-weight: 600;
            color: #475569;
        }

        .education-cgpa {
            font-size: 0.95rem;
            font-weight: 700;
            color: #0284c7;
        }

        .education-date {
            position: absolute;

            top: 22px;
            right: 24px;

            background: rgba(15,23,42,0.06);

            padding: 8px 14px;

            border-radius: 999px;

            font-size: 0.85rem;
            color: #475569;
        }


        .publication-abstract {
            margin-top: 14px;

            padding: 16px 18px;

            border-radius: 16px;

            background: rgba(2,132,199,0.06);

            border-left: 4px solid rgba(2,132,199,0.55);

            font-size: 0.95rem;

            line-height: 1.75;

            color: #475569;

            text-align: justify;
        }

        .publication-abstract b {
            color: #111827;
        }


        .timeline-nav {
            position: fixed;
            top: 50%;
            right: 18px;
            transform: translateY(-50%);
            z-index: 1200;

            display: flex;
            flex-direction: column;
            gap: 14px;

            padding: 14px 10px 14px 14px;

            border-radius: 18px;
            background: rgba(17, 24, 39, 0.72);
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);

            border: 1px solid rgba(255, 255, 255, 0.12);
            box-shadow: 0 12px 30px rgba(15, 23, 42, 0.22);
        }

        .timeline-item {
            display: flex;
            align-items: center;
            gap: 10px;

            text-decoration: none;
            color: #e5e7eb;

            font-size: 0.88rem;
            font-weight: 600;

            white-space: nowrap;
        }

        .timeline-dot {
            width: 12px;
            height: 12px;
            border-radius: 50%;

            background: #7dd3fc;
            box-shadow: 0 0 0 4px rgba(125, 211, 252, 0.18);
            flex-shrink: 0;
        }

        .timeline-item:hover .timeline-dot {
            background: #ffffff;
        }

        .timeline-item:hover .timeline-label {
            color: #ffffff;
        }

        .timeline-item.active .timeline-dot {
            background: #0284c7;
            box-shadow: 0 0 0 5px rgba(2, 132, 199, 0.22);
        }

        .timeline-item.active .timeline-label {
            color: #ffffff;
        }

        .Internship-title {
            font-size: 1.2rem;
            font-weight: 700;
            color: #8a1616;
        }

        .Internship-location {
            font-size: 1rem;
            font-weight: 600;
            color: #475569;
        }

        .Internship-description {
            font-size: 0.95rem;
            font-weight: 700;
            color: #000000;
        }

        .Internship-date {
            position: absolute;

            top: 22px;
            right: 24px;

            background: rgba(15,23,42,0.06);

            padding: 8px 14px;

            border-radius: 999px;

            font-size: 0.85rem;
            color: #475569;
        }

        @media (max-width: 760px) {
            .education-strip {
                flex-direction: column;
                align-items: flex-start;
            }

            .education-main {
                flex-direction: column;
                align-items: flex-start;
            }

            .education-date {
                position: static;
                margin-bottom: 12px;
            }
            .Internship-date {
                position: static;
                margin-bottom: 12px;
            }
        }

       @media (max-width: 960px) {
            header {
                flex-direction: column;
                min-height: auto;
                gap: 16px;
            }

            .timeline-nav {
                right: 10px;
                padding: 12px 8px 12px 12px;
            }
            
            .tabs {
                width: 100%;
            }

            .tabs a {
                padding: 8px 14px;
                font-size: 13px;
            }

            section {
                padding: 80px 18px 50px;
            }

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

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

            #toggle-view {
                top: 140px;
                right: 18px;
            }
        }
        @media (max-width: 680px) {
            .tabs a {
                padding: 10px 12px;
                font-size: 14px;
            }
     
            .timeline-label {
                display: none;
            }

            #toggle-view {
                top: 82px;
                right: 16px;
                font-size: 13px;
                padding: 10px 14px;
            }
            .section-title {
                    font-size: 1.5rem;
                }
    
                section {
                    padding: 100px 16px 40px;
                }
                
                
                .videos-grid {
            display: grid;
            
            /* smaller cards */
            grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
            
            gap: 20px;
        }
        
        .video-card {
            background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
            border: 2px solid rgba(2, 132, 199, 0.15);
            border-radius: 20px;
            box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08), 0 0 0 1px rgba(2, 132, 199, 0.1);
            padding: 18px;
            overflow: hidden;
        }
        
        .video-container {
            position: relative;
            width: 100%;
            padding-top: 56.25%;
            border-radius: 16px;
            overflow: hidden;
            background: #0f172a;
            margin-bottom: 14px;
        }
        
        .video-container iframe {
            position: absolute;
            inset: 0;
            width: 100%;
            height: 100%;
            border: 0;
        }
        
        .video-title {
            font-size: 1.05rem;
            font-weight: 700;
            color: #111827;
            margin-bottom: 8px;
            text-align: left;
        }
        
        .video-description {
            font-size: 0.95rem;
            line-height: 1.6;
            color: #475569;
            text-align: left;
        }
        .video-preview {
            position: relative;
            width: 100%;
            height: 100%;
            cursor: pointer;
            background: #000;
        }
        
        .video-preview img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
        }
        
        .play-button {
            position: absolute;
            inset: 0;
            margin: auto;
            width: 72px;
            height: 72px;
            border: none;
            border-radius: 50%;
            background: rgba(0, 0, 0, 0.65);
            color: white;
            font-size: 24px;
            cursor: pointer;
        }
        
        .videos-grid {
            display: grid;
            
            /* smaller cards */
            grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
            
            gap: 20px;
        }
        
        .video-card {
            background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
            border: 2px solid rgba(2, 132, 199, 0.15);
            border-radius: 16px;
            overflow: hidden;
            box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08), 0 0 0 1px rgba(2, 132, 199, 0.1);
            transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
            position: relative;
        }
        
        .video-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 3px;
            background: linear-gradient(90deg, transparent 0%, #0284c7 50%, transparent 100%);
            opacity: 0;
            transition: opacity 0.4s ease;
            z-index: 10;
        }
        
        .video-card:hover {
            transform: translateY(-8px) scale(1.02);
            box-shadow: 0 25px 50px rgba(2, 132, 199, 0.25), 0 0 40px rgba(2, 132, 199, 0.15);
            border-color: rgba(2, 132, 199, 0.4);
        }
        
        .video-card:hover::before {
            opacity: 1;
        }
        
        .video-container {
            position: relative;
            width: 100%;
            padding-top: 56.25%;
            border-radius: 16px;
            overflow: hidden;
            background: #000;
        }
        
        .video-container iframe {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            border: none;
        }
        
        .video-preview {
            position: relative;
            width: 100%;
            height: 100%;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            overflow: hidden;
        }
        
        .video-preview img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
            transition: transform 0.4s ease;
        }
        
        .video-preview:hover img {
            transform: scale(1.04);
        }
        
        .video-preview::after {
            content: '';
            position: absolute;
            inset: 0;
            background: radial-gradient(circle at center, rgba(255, 255, 255, 0.12) 0%, transparent 55%);
            opacity: 0.85;
            pointer-events: none;
        }
        
        .play-button {
            position: absolute;
            z-index: 2;
            width: 60px;
            height: 60px;
            border-radius: 50%;
            border: none;
            background: rgba(2, 132, 199, 0.92);
            color: #ffffff;
            font-size: 1.2rem;
            display: grid;
            place-items: center;
            box-shadow: 0 15px 35px rgba(2, 132, 199, 0.35);
            transition: transform 0.25s ease, background 0.25s ease;
            cursor: pointer;
        }
        
        .video-preview:hover .play-button {
            transform: scale(1.1);
            background: rgba(2, 132, 199, 1);
        }
        .publications-page {
            background: #c7fefb;
        }
        .robotics-page {
            background: #feeee0;
        }
        
        .mechanical-page {
            background: #c7fefb;
        }
        .control-page {
            background: #feeee0;
        }
        .home-page {
            background:
            linear-gradient(rgba(238,242,247,0.92), rgba(238,242,247,0.92)),
            url("Backgrounds/home.jpg");
            
            background-size: cover;
            background-position: center 120px;
            background-attachment: fixed;
        }
    }