body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #050506;
    color: #fff;
}

.container {
    max-width: 1400px;
    margin: auto;
    padding: 0 16px;
}

/* FOUNDER SECTION */
.founder-section {
    background: linear-gradient(180deg,#050506 0%, #070809 100%);
    border-left: 4px solid #5b21b6 ;
    padding: 32px;
    margin: 20px auto;
}

.founder-inner {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 40px;
    align-items: start;
}

.founder-left {
    display: flex;
    justify-content: center;
}

.photo-frame {
    width: clamp(220px, 30vw, 500px);
    height: clamp(220px, 30vw, 500px);
    border-radius: 50%;
    position: relative;
}

.photo-frame img {
    width: 100%;
    height: 100%;
    border-radius: 100%;
    object-fit: cover;
}

.photo-frame::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: transparent;
    box-shadow: none;
    z-index: -1;
}

.founder-name {
    font-size: clamp(22px, 3vw, 40px);
    color: #5b21b6 ;
    font-weight: 800;
}

.founder-title {
    font-size: clamp(14px, 1.5vw, 20px);
    margin-bottom: 12px;
}

.founder-list {
    line-height: 1.6;
}

.founder-links {
    margin-top: 12px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.founder-links a {
    display: inline-block;
    background: linear-gradient(174.482deg, #7c3aed 0%, #06b6d4 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    text-decoration: none;
}

.founder-bio {
    margin-top: 20px;
    line-height: 1.7;
    color: rgba(255,255,255,0.75);
    text-align: justify;
}

.founder-footer {
    margin-top: 20px;
    display: flex;
    justify-content: center;
}

.social-row {
    display: flex;
    gap: 12px;
}

.social-icon {
    color: #5b21b6 ;
    padding: 8px;
}

.btn {
    display: inline-block;
    margin-top: 30px;
    padding: 10px 20px;
    background: #5b21b6 ;
    color: #000;
    text-decoration: none;
    border-radius: 6px;
    font-weight: bold;
}

/* MOBILE */
@media (max-width: 600px) {
    .founder-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .founder-list {
        list-style: none;
        padding: 0;
    }

    .founder-links {
        align-items: center;
    }

    .nav ul {
        flex-wrap: wrap;
        gap: 10px;
    }
    /* Left-align content on small screens */
    .founder-right,
    .founder-list,
    .founder-links,
    .subtitle-text {
        text-align: left;
    }
    .founder-links {
        align-items: flex-start;
    }
}

/* TABLET / NEST HUB */
@media (min-width: 601px) and (max-width: 1024px) {
    .founder-inner {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }

    .photo-frame {
        width: 300px;
        height: 300px;
    }
}

/* DESKTOP */
@media (min-width: 1025px) {
    .founder-inner {
        grid-template-columns: 1.5fr 1fr;
    }
}

.title-gradien {
    display: block;
    background: linear-gradient(174.482deg, #7c3aed 0%, #06b6d4 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-align: left;
}

/* ABOUT SECTION */
.about-section {
    padding: 32px 0 40px;
    border-left: 4px solid #07c66b;
}
.about-inner {
    /* display: grid; */
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    align-items: start;
}
.about-left {
    display: block;
}
.recognition-gallery {
    overflow: hidden;
    width: 100%;
    position: relative;
}
.recognition-gallery::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 120px;
    height: 100%;
    pointer-events: none;
    /* overlay caused a dark fade on the right edge; disable it to remove the shade */
    display: none;
}
.recognition-track {
    display: flex;
    gap: 18px;
    align-items: stretch;
    animation: recognition-scroll 28s linear infinite;
}
.recognition-card {
    min-width: calc((100% - 36px) / 3);
    flex: 0 0 calc((100% - 36px) / 3);
    border-radius: 12px;
    overflow: hidden;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
}
.recognition-card img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
}
.recognition-gallery::-webkit-scrollbar,
.recognition-gallery::-moz-scrollbar {
    display: none;
}
@keyframes recognition-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
@media (max-width: 900px) {
    .recognition-card {
        min-width: 260px;
        flex: 0 0 260px;
    }
}
.carousel-item.video-thumb {
    position: relative;
    display: inline-block;
}

.carousel-item.video-thumb .play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.carousel-item.video-thumb .play-button::after {
    content: '▶';
    color: #ff0000;
    font-size: 24px;
    margin-left: 3px;
}

.carousel-item.video-thumb:hover .play-button {
    background: rgba(255, 255, 255, 1);
    transform: translate(-50%, -50%) scale(1.15);
    box-shadow: 0 6px 16px rgba(255, 0, 0, 0.4);
}

.video-title {
    margin-top: 8px;
    color: #00d07a;
    font-weight: 700;
}

@keyframes scroll-left {
    0% { transform: translateX(0); }
    99% { transform: translateX(-50%); }
    100% { transform: translateX(0); }
}

.about-right .about-intro {
    color: rgba(255,255,255,0.95);
    margin-bottom: 12px;
}
.about-list { list-style: none; padding-left: 0; color: rgba(255,255,255,0.9); }
.about-list li { margin-bottom: 8px; }

/* responsive: stack and pause animation on small screens */
@media (max-width: 900px) {
    .about-inner { grid-template-columns: 1fr; }
    .recognition-grid { grid-template-columns: 1fr; }
    /* Keep animation running on small screens, but slow it and reduce item sizes */
    .carousel-track { animation-duration: 28s; }
    .carousel-item { min-width: 260px; }
    .carousel-item img { height: 160px; }
    /* allow touch interactions when user wants to swipe */
    .video-carousel { -webkit-overflow-scrolling: touch; }
}

/* full-width list block below carousel */
.about-list-block {
    margin-top: 20px;
    padding-left: 8px;
}

.about-list-block .about-list { display: flex; flex-direction: column; gap: 0px; }

.about-list-block .about-right { margin-bottom: 10px; }

.about-list-block .about-intro {
    color: rgba(255,255,255,0.95);
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 12px;
    font-weight: 600;
}

.about-list {
    list-style: none;
    padding-left: 28px;
    margin: 0;
    color: rgba(255,255,255,0.95);
    font-size: 16px;
    line-height: 1.8;
}

.about-list li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 12px;
}

.about-list li::before {
    content: '🏆';
    position: absolute;
    left: 0;
    top: 0;
    font-size: 16px;
}

@media (min-width: 1100px) {
    .about-list { columns: 2; column-gap: 40px; }
    .about-list li { break-inside: avoid-column; }
}

/* Awards grid: three columns on desktop, stacked on mobile */
.awards-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 26px;
}
.award-col h3 {
    font-size: 20px;
    margin-bottom: 12px;
    display: inline-block;
    background: linear-gradient(174.482deg, #7c3aed 0%, #06b6d4 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}
.award-col ul { list-style: none; padding: 0; margin: 0; color: rgba(255,255,255,0.95); line-height: 1.8; }
/* .award-col li { margin-bottom: 8px; padding-left: 0; } */

@media (min-width: 900px) {
    .awards-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Articles section */
.articles-section {
    padding: 40px 0 60px;
    padding-left: 32px; /* create gap from left decorative border like Founder */
}
.articles-section .section-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.articles-section .view-all {
    background: linear-gradient(90deg,var(--accent-1),var(--accent-2));
    color: #ffffff;
    padding: 6px 10px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 700;
    font-size: 13px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* View All button styled to match `back-btn` in view-all.html */
.view-all-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 10px 20px; /* slightly taller, still wide */
    min-width: 84px;
    font-weight: 700;
    font-size: 13px;
    line-height: 1;
    color: #fff;
    background: linear-gradient(174.482deg, #7c3aed 0%, #06b6d4 100%);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(20,20,30,0.22); /* reduced shadow */
}
.view-all-btn:hover { transform: translateY(-2px); }

/* Hide the generic ::after line for articles so we can use an inline divider element */
.articles-section .section-title::after { display: none; }

/* Visual divider between title and View All button */
.articles-section .section-title .section-line {
    flex: 1 1 auto;
    height: 2px;
    margin: 0 14px;
    background: linear-gradient(90deg, var(--accent-1), var(--accent-2));
    border-radius: 2px;
}

@media (max-width: 640px) {
    .articles-section .view-all { padding: 5px 8px; font-size: 12px; }
}
.articles-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 18px; }
.article-card { display: block; background: rgba(255,255,255,0.02); border-radius: 12px; padding: 18px; color: inherit; text-decoration: none; transition: transform .18s ease, box-shadow .18s ease; border: 1px solid rgba(0,0,0,0.3); }
.article-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.42);
    /* apply the same subtle semi-transparent teal overlay used on All Articles */
    background: rgba(6,182,212,0.12);
    color: #ffffff;
}
.article-card:hover h3 { color: #ffffff; }
.article-card:hover .article-icon svg { color: #06b6d4; }
.article-figure img { width: 100%; height: 140px; object-fit: cover; border-radius: 8px; display:block; margin-bottom:12px; }
.article-icon { width: 92px; height: 92px; margin: 0 auto 25px; display: flex; align-items: center; justify-content: center; }
.article-icon svg { width: 56px; height: 56px; color: var(--accent-2); }
.article-card h3 { color: #fff; font-size: 18px; margin: 0 0 8px; }
.article-card h3 { color: #fff; font-size: 18px; margin: 0 0 8px; }
.article-card .muted { color: rgba(255,255,255,0.6); font-size: 14px; margin: 0; }

@media (max-width: 1100px) {
    .articles-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
    .articles-grid { grid-template-columns: 1fr; }
    .article-figure img { height: 200px; }
}

@media (max-width: 640px) {
    .articles-section { padding-left: 16px; }
}

/* Ensure About / Awards / Featured sections have the same left gap as Founder */
.founder-section,
.about-section,
.articles-section {
    padding-left: 32px;
}

/* ====== Skills / Certifications / Gallery styles appended ====== */

body {
    margin: 0;
    min-height: 100vh;
    background: #040506;
    color: #e7f8f2;
    font-family: "Inter", "Segoe UI", sans-serif;
    padding-bottom: 90px;
}

/* Ensure color variables exist when more.css is used standalone (fallbacks) */
:root {
    --panel-border: rgba(124, 58, 237, 0.45);
    --panel-inner-border: rgba(124, 58, 237, 0.15);
    --card-bg: rgba(255, 255, 255, 0.03);
    --card-border: rgba(255, 255, 255, 0.06);
    --panel-bg: rgba(255,255,255,0.02);
}

.skills-wrapper,
.certifications-wrapper,
.gallery-wrapper {
    max-width: 1220px;
    margin: 40px auto;
    padding: 30px;
    border: 1px solid var(--panel-border);
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(8, 13, 18, 0.95) 0%, rgba(5, 8, 13, 0.95) 100%);
    box-shadow: 0 0 60px rgba(124, 58, 237, 0.06), 0 0 30px rgba(6,182,212,0.03);
    position: relative;
    overflow: hidden;
}

.skills-wrapper::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 20% 10%, rgba(124,58,237,0.12), transparent 22%), radial-gradient(circle at 80% 15%, rgba(6,182,212,0.08), transparent 18%);
    pointer-events: none;
}

.skills-wrapper > * {
    position: relative;
    z-index: 1;
}

.section-title {
    display: flex;
    align-items: center;
    margin-bottom: 32px;
}

.section-title h4 {
    font-size: 1.45rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    margin: 0;
    color: #f5f7fb;
}

.section-title::after {
    content: "";
    flex: 1;
    height: 1px;
    margin-left: 18px;
    background: linear-gradient(90deg,var(--accent-1),var(--accent-2));
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.skill-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 22px;
    min-height: 170px;
    padding: 28px 20px;
    display: grid;
    place-items: center;
    text-align: center;
    gap: 18px;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.skill-card:hover {
    transform: translateY(-6px);
    border-color: rgba(124,58,237,0.28);
    box-shadow: 0 20px 45px rgba(124,58,237,0.06), 0 8px 30px rgba(6,182,212,0.03);
}

.skill-card i {
    font-size: 2rem;
}

.skill-card h3 {
    font-size: 1.35rem;
    line-height: 1.15;
    margin: 0;
    color: #ffffff;
}

.progress-columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-top: 32px;
}

.progress-block {
    padding: 20px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.skill-line {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    display: inline-block;
    background: linear-gradient(174.482deg, #7c3aed 0%, #06b6d4 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 12px;
}

.skill-line span:last-child {
    color: #ffffff;
}

.progress-bar-wrap {
    height: 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg,var(--accent-1),var(--accent-2));
}

.bottom-row {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 28px;
    align-items: center;
    margin-top: 42px;
}

.image-card {
    display: flex;
    justify-content: center;
}

.profile-image {
    width: 100%;
    max-width: 300px;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 50%;
    /* border: 4px solid rgba(24, 255, 134, 0.24); */
    box-shadow: linear-gradient(174.482deg, #7c3aed 0%, #06b6d4 100%);
}

.about-text p {
    margin: 0;
    color: #c9f7e6;
    line-height: 1.78;
    font-size: 0.98rem;
    text-align: justify;
}

.about-text span {
    display: inline-block;
    background: linear-gradient(174.482deg, #7c3aed 0%, #06b6d4 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    font-weight: 700;
}

@media (max-width: 1024px) {
    .skills-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .progress-columns {
        grid-template-columns: 1fr;
    }

    .bottom-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .skills-wrapper {
        padding: 18px;
    }

    .skill-card {
        min-height: 150px;
        padding: 22px 16px;
    }

    .section-title h4 {
        font-size: 1.2rem;
    }

    .bottom-row {
        gap: 18px;
    }
}

.certifications-wrapper {
    max-width: 1220px;
    margin: 40px auto;
    padding: 30px;
    border: 1px solid rgba(124, 58, 237, 0.25);
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(8, 13, 18, 0.95) 0%, rgba(5, 8, 13, 0.95) 100%);
    box-shadow: 0 0 60px rgba(124, 58, 237, 0.06), 0 0 30px rgba(6,182,212,0.03);
    position: relative;
    overflow: hidden;
}

.certifications-wrapper::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 20% 10%, rgba(124,58,237,0.12), transparent 22%), radial-gradient(circle at 80% 15%, rgba(6,182,212,0.08), transparent 18%);
    pointer-events: none;
}

.certifications-wrapper > *,
.gallery-wrapper > * {
    position: relative;
    z-index: 1;
}

.certification-counts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
    margin-top: 20px;
}

.count-box {
    background: rgba(7, 39, 181, 0.104);
    border: 1px solid var(--card-border);
    border-radius: 22px;
    padding: 28px 20px;
    text-align: center;
    display: grid;
    place-items: center;
    gap: 16px;
    min-height: 220px;
}

.count-box i {
    font-size: 2rem;
}

.count-box span {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    display: inline-block;
    background: linear-gradient(174.482deg, #7c3aed 0%, #06b6d4 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.count-box p {
    margin: 0;
    color: #c9f7e6;
    line-height: 1.6;
    font-size: 0.95rem;
}

.top {
    margin-top: 40px;
}

.resume-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.resume-item {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 18px 20px;
}

.resume-item p {
    margin: 0;
    color: #c9f7e6;
    line-height: 1.7;
    font-size: 0.95rem;
}

.resume-item span {
    color: #5b21b6;
    font-weight: 700;
}

.certifications-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin-top: 20px;
}

.icon-box {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 22px;
    padding: 28px 20px;
    min-height: 260px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    text-align: center;
}

.cert-logo-wrapper {
    width: 100%;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.cert-logo-wrapper img {
    max-width: 120px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.cert-logo-placeholder {
    display: none;
    width: 100%;
    min-height: 120px;
    align-items: center;
    justify-content: center;
    color: #5b21b6;
    font-size: 2rem;
}

.cert-logo-placeholder i {
    font-size: 2.4rem;
}

.icon-box p {
    margin: 0;
    color: #e1f9dc;
    line-height: 1.7;
    font-size: 0.95rem;
}

@media (max-width: 1024px) {
    .skills-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .progress-columns {
        grid-template-columns: 1fr;
    }

    .bottom-row {
        grid-template-columns: 1fr;
    }

    .certification-counts,
    .resume-list,
    .certifications-grid,
    .gallery-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .skills-wrapper,
    .certifications-wrapper,
    .gallery-wrapper {
        padding: 18px;
    }

    .skill-card {
        min-height: 150px;
        padding: 22px 16px;
    }

    .section-title h4 {
        font-size: 1.2rem;
    }

    .bottom-row {
        gap: 18px;
    }

    .certification-counts,
    .resume-list,
    .certifications-grid,
    .gallery-cards {
        grid-template-columns: 1fr;
    }
}

@media (width: 1024px) and (height: 600px) and (orientation: landscape) {
    .skills-grid,
    .certifications-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.zoom-area {
    overflow: hidden;
    width: 100%;
    height: 550px;
    position: relative;
    margin-top: 20px;
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.zoom-area img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 4s ease, transform-origin 4s ease;
    position: absolute;
    top: 0;
    left: 0;
}

.gallery-cards {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    margin-top: 24px;
    overflow-x: auto;
    padding-bottom: 10px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.gallery-cards::-webkit-scrollbar {
    display: none;
}

.gallery-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 22px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 240px;
    width: auto;
    min-width: 220px;
    max-width: 320px;
    flex: 0 0 auto;
    scroll-snap-align: start;
}

.gallery-card img {
    width: 100%;
    height: auto;
    max-height: 180px;
    object-fit: cover;
    background: #000;
}

.gallery-card p {
    margin: 0;
    padding: 14px 16px;
    color: #e1f9dc;
    font-size: 0.95rem;
    line-height: 1.5;
    flex: 1;
}

.page-footer {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    border-top: 1px solid rgba(124,58,237,0.2);
    color: #fff;
    text-align: center;
    padding: 14px 0;
    z-index: 1000;
}

.footer-content {
    font-size: 0.95rem;
    letter-spacing: 0.14em;
}

.text-warning {
    color: #ffbb2c;
}

.text-danger {
    color: #e80368;
}

.text-danger-emphasis {
    color: #ff5828;
}

.text-success-emphasis {
    color: #29cc61;
}

.text-info {
    color: #37c8ff;
}

/* ====== Normalize remaining page sections to the panel style ======
     Make `founder-section`, `articles-section`, `about-section`, and
     related blocks match the Skills/Categories card appearance. */

.founder-section,
.articles-section,
.about-section {
    max-width: 1220px;
    margin: 40px auto;
    padding: 30px;
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(8,13,18,0.95) 0%, rgba(5,8,13,0.95) 100%);
    box-shadow: 0 10px 40px rgba(9,255,137,0.04);
    position: relative;
    overflow: hidden;
}

.founder-section .section-title,
.articles-section .section-title,
.about-section .section-title {
    margin-bottom: 22px;
}

.founder-inner {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 32px;
    align-items: start;
}

.founder-left { justify-self: center; }
.founder-right { align-self: start; }

.photo-frame { width: clamp(220px, 30vw, 420px); height: clamp(220px, 30vw, 420px); }

.founder-list { line-height: 1.7; color: rgba(255,255,255,0.92); }
.founder-bio { margin-top: 20px; color: rgba(201,247,230,0.92); }

.articles-carousel { margin-top: 8px; }
.articles-carousel {
    margin-top: 8px;
    overflow: hidden; /* ensure track is clipped to viewport */
    position: relative;
    padding: 8px 0;
}
.articles-track {
    display: flex;
    gap: 20px;
    align-items: stretch;
    transition: transform 480ms cubic-bezier(.22,.9,.26,1);
    will-change: transform;
}
.article-card {
    flex: 0 0 360px; /* fixed width so slider advances exactly one card */
    min-width: 360px;
    max-width: 360px;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.04);
    border-radius: 16px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.article-card h3 { margin: 0; font-size: 1.05rem; color: #fff; }
.article-card .muted { color: rgba(255,255,255,0.6); }

/* Video carousels (used in About/Recognition/News) */
.video-carousel { overflow: hidden; width: 100%; border-radius: 12px; }
.carousel-track { display: flex; gap: 12px; align-items: center; }
.carousel-item { min-width: 240px; border-radius: 10px; overflow: hidden; }
.carousel-item img { display:block; width:100%; height:160px; object-fit:cover; }

.featured-news-gallery {
    overflow: hidden;
    width: 100%;
    position: relative;
}
.featured-news-gallery::after {
    /* overlay removed to prevent dark right-edge shadow */
    display: none;
}
.featured-news-track {
    display: flex;
    gap: 18px;
    align-items: stretch;
    animation: featured-news-scroll 28s linear infinite;
}
.featured-news-card {
    min-width: calc((100% - 36px) / 3);
    flex: 0 0 calc((100% - 36px) / 3);
    display: block;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 16px;
    overflow: hidden;
    transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
    text-decoration: none;
    color: inherit;
}
.featured-news-card:hover {
    transform: translateY(-6px);
    border-color: rgba(0,208,122,0.3);
    box-shadow: 0 18px 40px rgba(0,0,0,0.25);
}
.news-image img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    display: block;
}
.news-caption {
    padding: 18px 16px 20px;
}
.news-caption h4 {
    margin: 0;
    font-size: 1rem;
    line-height: 1.5;
    color: #ffffff;
}
.featured-news-gallery::-webkit-scrollbar,
.featured-news-gallery::-moz-scrollbar {
    display: none;
}
@keyframes featured-news-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
@media (max-width: 900px) {
    .featured-news-card {
        min-width: 320px;
        flex: 0 0 320px;
    }
}

/* Awards grid adjustments to match panel look */
.awards-grid { display:grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.award-col { background: rgba(255,255,255,0.02); border-radius: 12px; padding: 18px; border:1px solid rgba(255,255,255,0.04); }
.award-col h3 { color: #5b21b6; }

@media (max-width: 1024px) {
    .founder-inner { grid-template-columns: 1fr; }
    .skills-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .articles-track { overflow-x: auto; padding-bottom: 8px; }
}

/* Medium displays (Nest Hub / iPad mini ranges): show large portrait on left and content on right */
@media (min-width: 700px) and (max-width: 1400px) and (max-height: 900px) {
    .founder-inner {
        grid-template-columns: 1fr 1fr;
        align-items: center;
        gap: 36px;
    }
    .founder-left { grid-column: 1; justify-self: center; }
    .founder-right { grid-column: 2; justify-self: start; }
    .photo-frame {
        width: clamp(260px, 34vw, 520px);
        height: clamp(260px, 34vw, 520px);
    }
    .title-gradien { font-size: clamp(28px, 4vw, 42px); }
}

.founder-section,
.articles-section,
.about-section,
.skills-wrapper,
.certifications-wrapper,
.gallery-wrapper {
    border: 2px solid var(--panel-border) !important;
    border-radius: 20px;
    transition: all 0.35s ease;
    background: var(--panel-bg);
    overflow: hidden;
    position: relative;
    padding-left: 30px; /* adjust padding since no left border now */
}

/* Hover Effect for Big Sections */
.founder-section:hover,
.articles-section:hover,
.about-section:hover,
.skills-wrapper:hover,
.certifications-wrapper:hover,
.gallery-wrapper:hover {
    border-color: #7c3aed !important;
    box-shadow: 0 0 0 1px rgba(124, 58, 237, 0.3),
                0 20px 40px rgba(124, 58, 237, 0.25),
                0 10px 25px rgba(0, 0, 0, 0.5);
    transform: translateY(-6px);
}

/* Optional: Very subtle inner glow */
.founder-section::after,
.articles-section::after,
.about-section::after,
.skills-wrapper::after,
.certifications-wrapper::after,
.gallery-wrapper::after {
    content: '';
    position: absolute;
    inset: 0;
    border: 1px solid rgba(124, 58, 237, 0.15);
    border-radius: 20px;
    pointer-events: none;
}

/* Ensure section titles align flush with panels */
.founder-section .section-title,
.articles-section .section-title,
.about-section .section-title,
.skills-wrapper .section-title,
.certifications-wrapper .section-title,
.gallery-wrapper .section-title {
    margin-left: 0;
}


/* Indent inner content where required (titles, inner grids, lists) so text doesn't sit on the border */
.founder-section .section-title,
.about-section .section-title,
.articles-section .section-title,
.about-section .about-inner,
.about-section .about-list-block,
.about-section .awards-grid,
.about-section .video-carousel {
    padding-left: 8px;
}

@media (max-width: 640px) {
    .founder-section,
    .about-section,
    .articles-section {
        padding-left: 16px;
    }

    .founder-section .section-title,
    .about-section .section-title,
    .articles-section .section-title,
    .about-section .about-inner,
    .about-section .about-list-block,
    .about-section .awards-grid,
    .about-section .video-carousel {
        padding-left: 6px;
    }
}

/* Ensure consistent left gap for all main sections (desktop) */
main > section {
    padding-left: 32px;
}

/* Ensure mobile left padding applies to About / Awards / Featured sections */
@media (max-width: 640px) {
    .about-section,
    .founder-section,
    .articles-section,
    main > section {
        padding-left: 16px;
    }
}

/* Articles carousel: one card at a time */
.articles-carousel {
    overflow: hidden;
    margin-top: 18px;
    position: relative;
}
.articles-carousel::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 120px;
    height: 100%;
    pointer-events: none;
    /* disable right-edge gradient so carousel doesn't show a dark fade */
    display: none;
}
.articles-track {
    display: flex;
    gap: 20px;
    align-items: stretch;
    animation: articles-scroll 28s linear infinite;
}
.articles-track .article-card {
    flex: 0 0 320px;
    width: 320px;
}
@keyframes articles-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@media (max-width: 1100px) {
    .articles-track .article-card { flex: 0 0 calc(50% - 10px); width: auto; }
}
@media (max-width: 640px) {
    .articles-track .article-card { flex: 0 0 100%; }
}





.section-title h2 {
  font-size: 14px;
  font-weight: 500;
  padding: 0;
  line-height: 1px;
  margin: 0 0 10px 0;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #aaaaaa;
  font-family: "Poppins", sans-serif;
}

.section-title h2::after {
  content: "";
  width: 10%;
  height: 1px;
  display: inline-block;
  background: #ffffff;
  margin: 4px 10px;
}

.section-title p {
  margin: 0;
  margin: -15px 0 15px 0;
  font-size: 36px;
  font-weight: 700;
  text-transform: uppercase;
  font-family: "Poppins", sans-serif;
  color: #fff;
}
