:root {
    --site-scale: 0.80;
    --bg-color: #282828;
    --text-color: #ffffff;
    --nav-bg: rgba(217, 217, 217, 0.14);

    /* Default Theme */
    --theme-primary: #3b82f6;
    /* Blue */
    --footer-layer-1: #0048bf;
    --footer-layer-2: #4285f4;
    --footer-layer-3: #00a8fd;
    --footer-layer-4: #848aaf;
    --footer-layer-5: #ffffff;
}

body[data-theme="blue"] {
    --theme-primary: #3b82f6;
    --footer-layer-1: #0048bf;
    --footer-layer-2: #4285f4;
    --footer-layer-3: #00a8fd;
    --footer-layer-4: #848aaf;
    --footer-layer-5: #ffffff;
}

body[data-theme="red"] {
    --theme-primary: #ef4444;
    --footer-layer-1: #9f1239;
    --footer-layer-2: #ef4444;
    --footer-layer-3: #f87171;
    --footer-layer-4: #f9c4c4;
    --footer-layer-5: #ffffff;
}

body[data-theme="orange"] {
    --theme-primary: #f97316;
    --footer-layer-1: #9a3412;
    --footer-layer-2: #f97316;
    --footer-layer-3: #fb923c;
    --footer-layer-4: #f7ceb0;
    --footer-layer-5: #ffffff;
}

body[data-theme="yellow"] {
    --theme-primary: #eab308;
    --footer-layer-1: #854d0e;
    --footer-layer-2: #eab308;
    --footer-layer-3: #facc15;
    --footer-layer-4: #f3dfb1;
    --footer-layer-5: #ffffff;
}

body[data-theme="purple"] {
    --theme-primary: #a855f7;
    --footer-layer-1: #6b21a8;
    --footer-layer-2: #a855f7;
    --footer-layer-3: #c084fc;
    --footer-layer-4: #dbc0f3;
    --footer-layer-5: #ffffff;
}

body[data-theme="green"] {
    --theme-primary: #22c55e;
    --footer-layer-1: #166534;
    --footer-layer-2: #22c55e;
    --footer-layer-3: #4ade80;
    --footer-layer-4: #b7e4c8;
    --footer-layer-5: #ffffff;
}

body[data-theme="pink"] {
    --theme-primary: #ec4899;
    --footer-layer-1: #9d174d;
    --footer-layer-2: #ec4899;
    --footer-layer-3: #f472b6;
    --footer-layer-4: #f6c8e0;
    --footer-layer-5: #ffffff;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Paytone One', sans-serif;
    zoom: var(--site-scale);
    overflow-x: hidden;
    /* Extra height to demonstrate scrolling */
    min-height: 200vh;
}

@supports not (zoom: 1) {
    body {
        transform: scale(var(--site-scale));
        transform-origin: top center;
        width: calc(100% / var(--site-scale));
    }
}

header.navbar {
    position: sticky;
    top: 50px;
    /* Slight padding from top based on design */
    z-index: 1000;
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 0 20px;
}

.nav-container {
    width: 100%;
    max-width: 1200px;
    height: 100px;
    /* Slightly adjusted to center items better */
    background-color: var(--nav-bg);
    border-radius: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.logo a {
    font-size: 48px;
    color: var(--text-color);
    text-decoration: none;
    line-height: normal;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav-links a {
    font-size: 32px;
    color: var(--text-color);
    text-decoration: none;
    line-height: normal;
    transition: color 0.3s ease;
}

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

/* Theme Button */
.theme-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--theme-primary);
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s;
    margin-left: 20px;
}

.theme-btn:hover {
    transform: scale(1.1);
}

/* Demo sections */
main {
    padding-top: 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.intro-section {
    width: 100%;
    max-width: 1200px;
    padding: 0 20px;
    margin-top: 50px;
}

.intro-box {
    border: 4px solid var(--text-color);
    padding: 40px 50px;
    text-align: center;
    border-radius: 2px;
}

.main-title {
    font-size: 76px;
    color: var(--text-color);
    font-weight: normal;
    line-height: normal;
}

.sub-title {
    font-family: 'Public Sans', sans-serif;
    font-size: 38px;
    font-weight: 400;
    color: var(--theme-primary);
    margin-top: 15px;
    margin-bottom: 35px;
    transition: color 0.3s ease;
    height: 60px;
    /* Fixed height to prevent layout shift */
}

#animated-title {
    display: inline-block;
    transition: opacity 0.5s ease;
}

.social-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    margin-bottom: 20px;
}

.social-icon {
    width: 52px;
    height: 52px;
    object-fit: contain;
    transition: transform 0.2s ease, filter 0.2s ease;
}

.social-icon:hover {
    transform: scale(1.1);
    filter: brightness(1.2);
}

.intro-description {
    font-family: 'Public Sans', sans-serif;
    font-size: 26px;
    font-weight: 400;
    line-height: normal;
    color: var(--text-color);
    max-width: 1000px;
    margin: 20px auto 0;
    text-align: left;
}

.intro-description p {
    margin-bottom: 0;
    /* Remove default margin for consistent Figma spacing */
}

.intro-graphics {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-top: 60px;
    width: 100%;
    padding: 0;
}

.graphic-item {
    display: flex;
    justify-content: center;
    align-items: flex-end;
}

.graphic-aircraft {
    flex: 0 0 auto;
}

.graphic-face {
    flex: 0 0 auto;
    margin-right: 60px;
}

.graphic-architecture {
    flex: 0 0 auto;
}

.intro-graphics svg {
    max-width: 100%;
    flex: 1;
    height: auto;
}

.section-title {
    text-align: center;
    font-size: 4rem;
    color: var(--theme-primary);
    margin-top: 50px;
    transition: color 0.3s ease;
}

/* Skills Section Styles */
.skills-section {
    width: 100%;
    margin-top: 10px;
    padding-top: 40px;
}

.skills-banner {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.skills-line {
    width: 82%;
    height: 54px;
}

.skills-line-gray {
    background-color: #d9d9d9;
    margin-bottom: 4px;
    /* 58px center-to-center difference - 54px height = 4px gap */
}

.skills-line-theme {
    background-color: var(--footer-layer-1);
    transition: background-color 0.5s ease;
}

.skills-title-box {
    position: absolute;
    background-color: var(--bg-color);
    /* #282828 overlay */
    width: 244px;
    height: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
    /* Centers it across both lines vertically */
    top: 50%;
    transform: translateY(-50%);
}

.skills-title {
    font-family: 'Paytone One', sans-serif;
    font-size: 64px;
    color: var(--theme-primary);
    font-weight: 400;
    line-height: normal;
    margin: 0;
    transition: color 0.5s ease;
    white-space: nowrap;
}

.skills-content {
    background-color: #000000;
    width: 100%;
    min-height: 933px;
    /* Based on Figma node 261:301 */
    margin-top: -70px;
    /* Pull it up under the banner to match positioning */
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 100px;
    position: relative;
    overflow: hidden;
}

.skills-grid-wrapper {
    position: relative;
    width: 1180px;
    /* Matches the vector width */
    height: 888px;
    /* Matches the vector height */
    display: flex;
    justify-content: center;
    border: 6px solid #ffffff;
    box-sizing: border-box;
    background: linear-gradient(90deg, #2d2d2f 0%, #282828 100%);
    overflow: hidden;
}

.skills-connectors {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 1281px;
    height: 888px;
    z-index: 1;
}

.skills-image-container {
    position: relative;
    z-index: 2;
    margin-top: 260px;
    /* Aligns the image down where it belongs over the vector nodes */
    width: 620px;
    height: 583px;
    border: 6px solid #ffffff;
    background-color: transparent;
    display: flex;
    justify-content: center;
    align-items: center;
}

.skills-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

/* Skill Boxes */
.skill-box {
    position: absolute;
    border: 1px solid #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 2;

}


.programming-box {
    left: 30px;
    /* 120 - 83 vector offset */
    top: 26px;
    /* 1603 - 1577 vector offset */
    width: 530px;
    height: 203px;
    gap: 32px;
}

.framework-box {
    right: 30px;
    top: 26px;
    width: 530px;
    height: 203px;
    gap: 32px;
}

.devops-rect-box {
    left: 30px;
    /* 384 - 83, relative to 259:290 frame */
    top: 261px;
    /* 1838 - 1577, relative to 259:290 frame */
    width: 225px;
    height: 589px;
    z-index: 2;
}

.devops-cloud-title {
    position: absolute;
    left: 45px;
    /* 159 - 83, relative to 259:290 frame */
    top: 284px;
    /* 1861 - 1577, relative to 259:290 frame */
    width: 176px;
    height: 100px;
    margin: 0;
    font-family: 'Paytone One', sans-serif;
    font-size: 30px;
    font-weight: 400;
    line-height: normal;
    text-align: center;
    color: var(--theme-primary);
    white-space: pre;
    z-index: 3;
    transition: color 0.5s ease;
}

.devops-cloud-stack {
    margin: 0;
    width: 119px;
    font-family: 'Public Sans', sans-serif;
    font-size: 32px;
    font-weight: 700;
    line-height: normal;
    text-align: center;
    color: #ffffff;
    white-space: pre-wrap;
}

.platforms-rect-box {
    right: 30px;
    /* 1333 - 83, relative to 259:290 frame */
    top: 259px;
    /* 1836 - 1577, relative to 259:290 frame */
    width: 225px;
    height: 589px;
    z-index: 2;
}

.platforms-tools-title {
    position: absolute;
    right: 50px;
    /* 1333 - 83, relative to 259:290 frame */
    top: 284px;
    /* 1861 - 1577, relative to 259:290 frame */
    width: 183px;
    height: 100px;
    margin: 0;
    font-family: 'Paytone One', sans-serif;
    font-size: 30px;
    font-weight: 400;
    line-height: normal;
    text-align: center;
    color: var(--theme-primary);
    white-space: nowrap;
    z-index: 3;
    transition: color 0.5s ease;
}

.platforms-tools-stack {
    margin: 0;
    width: 263px;
    font-family: 'Public Sans', sans-serif;
    font-size: 26px;
    font-weight: 700;
    line-height: normal;
    text-align: center;
    color: #ffffff;
    white-space: pre-wrap;
}

.skill-box-title {
    font-family: 'Paytone One', sans-serif;
    font-size: 32px;
    color: var(--theme-primary);
    font-weight: 400;
    line-height: normal;
    margin: 0;
    text-align: center;
    white-space: nowrap;
    transition: color 0.5s ease;
}

.skill-box-text {
    font-family: 'Public Sans', sans-serif;
    font-size: 32px;
    color: #ffffff;
    font-weight: 700;
    line-height: normal;
    margin: 0;
    text-align: center;
}

/* Projects Section Styles */
.projects-section {
    width: 100%;
    margin-top: 80px;
    padding-top: 20px;
}

.projects-banner {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.projects-line {
    width: 82%;
    /* ~1281px on 1440px frame */
    height: 54px;
}

.projects-line-blue {
    background-color: var(--footer-layer-1);
    margin-bottom: 4px;
    transition: background-color 0.5s ease;
}

.projects-line-gray {
    background-color: #d9d9d9;
}

.projects-title-box {
    position: absolute;
    width: 333px;
    height: 80px;
    background-color: var(--bg-color);
    display: flex;
    justify-content: center;
    align-items: center;
    top: 50%;
    transform: translateY(-50%);
}

.projects-title {
    margin: 0;
    font-family: 'Paytone One', sans-serif;
    font-size: 64px;
    font-weight: 400;
    line-height: normal;
    color: var(--theme-primary);
    transition: color 0.5s ease;
}

.projects-content {
    min-height: 1720px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 64px;
    padding-top: 38px;
}

.project-panel {
    position: relative;
    width: 1281px;
    height: 1164px;
    border: 4px solid #ffffff;
    box-sizing: border-box;
    background: linear-gradient(90deg, #2d2d2f 0%, #282828 100%);
}

.project-logo-link {
    position: absolute;
    left: 52px;
    top: 52px;
    width: 180px;
    height: 180px;
    display: block;
}

.project-logo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
    display: block;
}

.project-name {
    position: absolute;
    left: 331px;
    /* 414 - 83 */
    top: 51px;
    /* 2712 - 2661 */
    width: 425px;
    margin: 0;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 64px;
    font-weight: 700;
    line-height: normal;
    color: var(--theme-primary);
    text-decoration: underline;
}

.project-description {
    position: absolute;
    left: 331px;
    /* 414 - 83 */
    top: 152px;
    /* 2813 - 2661 */
    width: 911px;
    margin: 0;
    font-family: 'Public Sans', sans-serif;
    font-size: 32px;
    font-weight: 400;
    line-height: normal;
    color: #ffffff;
    letter-spacing: 1.6px;
}

.architecture-showcase {
    position: absolute;
    top: 394px;
    left: 50%;
    transform: translateX(-50%);
    width: 1038px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.architecture-image {
    width: 100%;
    height: auto;
    border: 4px solid #ffffff;
    display: block;
}

.architecture-label {
    margin-top: 26px;
    margin-bottom: 0;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 50px;
    font-weight: 700;
    line-height: 1;
    color: #ffffff;
    text-align: center;
}

.fractal-panel {
    height: 360px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 0;
}

.fractal-strip {
    width: 100%;
    height: 180px;
    border-bottom: 4px solid #ffffff;
    background: linear-gradient(90deg, #2d2d2f 0%, #282828 100%);
}

.fractal-title {
    margin-top: 38px;
    margin-bottom: 0;
    font-family: 'Public Sans', sans-serif;
    font-size: 32px;
    font-weight: 700;
    line-height: normal;
    color: #00a8fd;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
    white-space: nowrap;
}

.fractal-description {
    margin-top: 26px;
    margin-bottom: 0;
    width: 690px;
    font-family: 'Public Sans', sans-serif;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.15;
    color: #ffffff;
    text-align: center;
}

.info-panel {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 52px 96px;
}

.panel-divider {
    position: absolute;
    top: 56px;
    width: 2px;
    height: calc(100% - 112px);
    object-fit: fill;
    opacity: 0.95;
    pointer-events: none;
}

.panel-divider-left {
    left: 72px;
}

.panel-divider-right {
    right: 72px;
}

.msme-panel {
    height: 380px;
    gap: 26px;
}

.info-title {
    margin: 0;
    max-width: 760px;
    font-family: 'Public Sans', sans-serif;
    font-size: 46px;
    font-weight: 700;
    line-height: 1.05;
    color: #00a8fd;
    text-align: center;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 5px;
}

.info-description {
    margin: 0;
    max-width: 980px;
    font-family: 'Public Sans', sans-serif;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.15;
    color: #ffffff;
    text-align: center;
}

.explore-panel {
    height: 320px;
    gap: 24px;
}

.explore-title {
    margin: 0;
    font-family: 'Public Sans', sans-serif;
    font-size: 52px;
    font-weight: 700;
    line-height: 1;
    color: #00a8fd;
    text-align: center;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 6px;
}

.explore-description {
    margin: 0;
    max-width: 920px;
    font-family: 'Public Sans', sans-serif;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.18;
    color: #ffffff;
    text-align: center;
}

.tri-projects-panel {
    height: 360px;
    display: grid;
    grid-template-columns: 1fr 1.25fr 1fr;
    align-items: stretch;
    padding: 18px 32px;
}

.tri-column {
    min-height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 12px 34px;
}

.tri-column+.tri-column {
    border-left: 2px solid rgba(255, 255, 255, 0.88);
}

.tri-title-link {
    display: inline-flex;
    align-items: flex-start;
    gap: 8px;
    margin: 0;
    font-family: 'Public Sans', sans-serif;
    font-size: 32px;
    font-weight: 700;
    line-height: 1.02;
    color: #ffffff;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
    text-align: center;
}

.tri-title-link:hover,
.tri-title-link:focus-visible {
    color: #0033ff;
}

.tri-title-link-center {
    max-width: 470px;
    font-size: 24px;
}

.tri-description {
    margin: 20px 0 0;
    max-width: 375px;
    font-family: 'Public Sans', sans-serif;
    font-size: 24px;
    font-weight: 400;
    line-height: 1.08;
    color: #ffffff;
    text-align: center;
}

.tri-description-center {
    max-width: 475px;
}

/* Achievements Section Styles */
.achievements-section {
    width: 90%;
    margin-top: 10px;
    margin-bottom: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
}

.achievements-hr {
    width: 100%;
    height: 6px;
    border: 0;
    margin: 0;
    background-color: #ffffff;
}

.achievements-title {
    margin: 0;
    font-family: 'Paytone One', sans-serif;
    font-size: 64px;
    font-weight: 400;
    line-height: normal;
    color: var(--theme-primary);
    transition: color 0.5s ease;
}

.achievement-card {
    width: 100%;
    max-width: 1500px;
    padding: 22px 28px 18px;
    border: 4px solid #ffffff;
    background: linear-gradient(90deg, #2d2d2f 0%, #282828 100%);
    box-shadow: 0 20px 42px rgba(0, 0, 0, 0.35);
}

.achievement-card+.achievement-card {
    margin-top: 12px;
}

.achievement-horizontal-strip {
    width: 100%;
    max-width: 1500px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
    border: 4px solid #ffffff;
    background: linear-gradient(90deg, #2d2d2f 0%, #282828 100%);
    box-shadow: 0 20px 42px rgba(0, 0, 0, 0.35);
}

.achievement-horizontal-item {
    position: relative;
    min-height: 250px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 28px;
    padding: 28px 24px;
}

.achievement-horizontal-item+.achievement-horizontal-item {
    border-left: none;
}

.achievement-horizontal-item+.achievement-horizontal-item::before {
    content: "";
    position: absolute;
    left: 0;
    top: 14px;
    bottom: 14px;
    width: 2px;
    background-color: rgba(255, 255, 255, 0.88);
    pointer-events: none;
}

.achievement-horizontal-title {
    margin: 0;
    font-family: 'Paytone One', sans-serif;
    font-size: 36px;
    font-weight: 400;
    line-height: 1.15;
    text-align: center;
    color: #ffffff;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 5px;
}

.achievement-horizontal-description {
    margin: 0;
    max-width: 430px;
    font-family: 'Public Sans', sans-serif;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.14;
    text-align: center;
    color: #ffffff;
}

.achievement-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.achievement-heading-wrap {
    display: flex;
    align-items: center;
    gap: 18px;
}

.achievement-sih-logo {
    width: 56px;
    height: 56px;
    object-fit: contain;
}

.achievement-heading {
    margin: 0;
    font-family: 'Paytone One', sans-serif;
    font-size: clamp(30px, 3vw, 52px);
    font-weight: 400;
    color: #ffffff;
    line-height: 1;
}

.achievement-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 20px;
    border-radius: 999px;
    border: 3px solid #ffffff;
    font-family: 'Public Sans', sans-serif;
    font-size: clamp(22px, 1.35vw, 34px);
    font-weight: 700;
    color: #ffffff;
    line-height: 1;
}

.achievement-content-wrap {
    display: grid;
    grid-template-columns: minmax(330px, 1fr) minmax(420px, 1.45fr);
    gap: 22px;
    align-items: stretch;
}

.achievement-content-wrap-reverse .achievement-description-wrap {
    order: 1;
}

.achievement-content-wrap-reverse .achievement-carousel {
    order: 2;
}

.achievement-carousel {
    position: relative;
    overflow: hidden;
    border: 4px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    background: #141414;
    min-height: 330px;
}

.achievement-carousel-track {
    display: flex;
    height: 100%;
    width: 100%;
    transition: transform 0.75s ease-in-out;
    will-change: transform;
}

.achievement-slide {
    min-width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.achievement-description-wrap {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 14px;
    width: 100%;
}

.achievement-description {
    margin: 0;
    width: 100%;
    font-family: 'Public Sans', sans-serif;
    font-size: clamp(27px, 1.53vw, 34px);
    font-weight: 700;
    line-height: 1.18;
    color: #ffffff;
}

.achievement-link {
    width: fit-content;
    margin-top: 10px;
    font-family: 'Public Sans', sans-serif;
    font-size: clamp(36px, 2.25vw, 50px);
    font-weight: 400;
    line-height: 1;
    color: #ffffff;
    text-decoration: underline;
    text-decoration-thickness: 3px;
    text-underline-offset: 8px;
    transition: color 0.3s ease;
}

.achievement-link:hover,
.achievement-link:focus-visible {
    color: var(--theme-primary);
}

/* Books Section Styles */
.books-section {
    --books-max-width: 1281px;
    width: 100%;
    margin-top: 22px;
    margin-bottom: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.books-divider {
    width: min(var(--books-max-width), 90%);
    height: 0;
    border: 0;
    margin: 0;
    border-top: 4px solid #ffffff;
}

.books-title {
    margin: 18px 0 0;
    font-family: 'Paytone One', sans-serif;
    font-size: 64px;
    font-weight: 400;
    line-height: normal;
    color: var(--theme-primary);
    transition: color 0.5s ease;
    text-align: center;
}

.books-panel {
    position: relative;
    width: min(var(--books-max-width), 90%);
    aspect-ratio: 1281 / 1214;
    min-height: 1214px;
    margin-top: 37px;
    border: 4px solid #ffffff;
    background: linear-gradient(90deg, #2d2d2f 0%, #282828 100%);
    overflow: hidden;
}

.books-intro {
    position: absolute;
    top: 3.38%;
    left: 50%;
    transform: translateX(-50%);
    width: 52.93%;
    margin: 0;
    font-family: 'Public Sans', sans-serif;
    font-size: 24px;
    font-weight: 700;
    line-height: normal;
    text-align: center;
    color: #ffffff;
}

.books-cover {
    position: absolute;
    display: block;
    object-fit: cover;
}

.books-cover-101 {
    left: 10.30%;
    top: 12.44%;
    width: 21.70%;
    height: 35.91%;
}

.books-cover-102 {
    left: 35.83%;
    top: 12.44%;
    width: 27.64%;
    height: 35.91%;
}

.books-cover-103 {
    left: 67.29%;
    top: 12.44%;
    width: 22.40%;
    height: 35.91%;
}

.books-cover-105 {
    left: 3.90%;
    top: 52.80%;
    width: 27.95%;
    height: 39.29%;
}

.books-cover-107 {
    left: 34.35%;
    top: 52.72%;
    width: 30.52%;
    height: 39.70%;
}

.books-cover-104 {
    left: 67.21%;
    top: 52.72%;
    width: 29.12%;
    height: 38.47%;
}

/* About Section Styles */
.about-section {
    --about-max-width: 1281px;
    width: 100%;
    margin-top: 8px;
    margin-bottom: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.about-divider {
    width: min(var(--about-max-width), 90%);
    height: 0;
    border: 0;
    margin: 0;
    border-top: 4px solid #ffffff;
}

.about-title {
    margin: 26px 0 0;
    font-family: 'Paytone One', sans-serif;
    font-size: 64px;
    font-weight: 400;
    line-height: normal;
    color: var(--theme-primary);
    transition: color 0.5s ease;
    text-align: center;
}

.about-panel {
    width: min(var(--about-max-width), 90%);
    border: 4px solid #ffffff;
    background: linear-gradient(90deg, #2d2d2f 0%, #282828 100%);
}

.about-panel-top {
    position: relative;
    height: 322px;
    margin-top: 41px;
}

.about-academic-title {
    position: absolute;
    top: 30px;
    left: 39px;
    margin: 0;
    font-family: 'Public Sans', sans-serif;
    font-size: 36px;
    font-weight: 700;
    line-height: normal;
    color: #ffffff;
    white-space: nowrap;
}

.about-academic-card {
    position: absolute;
    top: 23.60%;
    left: 2.34%;
    width: 78.22%;
    min-height: 67.08%;
    padding: 20px 24px;
    border: 2px solid rgba(255, 255, 255, 0.48);
    border-left: 6px solid var(--theme-primary);
    background: rgba(0, 0, 0, 0.24);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(1.5px);
    -webkit-backdrop-filter: blur(1.5px);
}

.about-degree,
.about-meta,
.about-summary {
    margin: 0;
    font-family: 'Public Sans', sans-serif;
    line-height: normal;
    color: #ffffff;
}

.about-degree {
    font-size: 29px;
    font-weight: 700;
}

.about-meta {
    margin-top: 10px;
    font-size: 24px;
    font-weight: 700;
    color: var(--theme-primary);
    transition: color 0.5s ease;
}

.about-summary {
    margin-top: 14px;
    font-size: 20px;
    font-weight: 400;
    line-height: 1.3;
    max-width: 97%;
}

.about-panel-bottom {
    position: relative;
    height: 280px;
    border-top: 0;
}

.about-experience-title {
    position: absolute;
    top: 40px;
    left: 38px;
    margin: 0;
    font-family: 'Public Sans', sans-serif;
    font-size: 36px;
    font-weight: 700;
    line-height: normal;
    color: #ffffff;
    white-space: nowrap;
}

.about-experience-text {
    position: absolute;
    top: 104px;
    left: 39px;
    width: 93.29%;
    margin: 0;
    font-family: 'Public Sans', sans-serif;
    font-size: 32px;
    font-weight: 500;
    line-height: normal;
    color: #ffffff;
}

/* Connect Section Styles */
.connect-section {
    --connect-max-width: 1281px;
    width: 100%;
    margin-top: 52px;
    margin-bottom: 90px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.connect-divider {
    width: min(var(--connect-max-width), 90%);
    height: 0;
    border: 0;
    margin: 0;
    border-top: 4px solid #ffffff;
}

.connect-content {
    width: min(var(--connect-max-width), 90%);
    margin-top: 40px;
    display: grid;
    grid-template-columns: 355px minmax(0, 1fr);
    column-gap: 21px;
    align-items: start;
}

.connect-title {
    margin: 0;
    font-family: 'Paytone One', sans-serif;
    font-size: 86px;
    font-weight: 400;
    line-height: 1;
    color: var(--theme-primary);
    transition: color 0.5s ease;
}

.connect-description {
    margin: 23px 0 0;
    font-family: 'Public Sans', sans-serif;
    font-size: 24px;
    font-weight: 500;
    line-height: normal;
    color: #ffffff;
}

/* Footer Layer Styles */
.footer-layers {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.footer-layer {
    width: min(1440px, 100%);
    transition: background-color 0.5s ease;
}

.footer-layer-1 {
    height: 102px;
    background-color: var(--footer-layer-1);
}

.footer-layer-2 {
    height: 80px;
    background-color: var(--footer-layer-2);
}

.footer-layer-3 {
    height: 67px;
    background-color: var(--footer-layer-3);
}

.footer-layer-4 {
    height: 44px;
    background-color: var(--footer-layer-4);
}

.footer-layer-5 {
    height: 22px;
    background-color: var(--footer-layer-5);
}

@media (max-width: 1200px) {
    .achievement-card {
        padding: 20px;
    }

    .achievement-content-wrap {
        grid-template-columns: 1fr;
    }

    .achievement-content-wrap-reverse .achievement-description-wrap,
    .achievement-content-wrap-reverse .achievement-carousel {
        order: initial;
    }

    .achievement-carousel {
        min-height: 300px;
        max-height: 340px;
    }

    .achievement-horizontal-strip {
        grid-template-columns: 1fr;
    }

    .achievement-horizontal-item+.achievement-horizontal-item {
        border-left: none;
        border-top: 2px solid rgba(255, 255, 255, 0.88);
    }

    .achievement-horizontal-item+.achievement-horizontal-item::before {
        content: none;
    }

    .achievement-horizontal-item {
        min-height: 220px;
    }

    .books-intro {
        width: calc(100% - 72px);
        font-size: 22px;
    }

    .about-panel-top {
        height: 300px;
    }

    .about-panel-bottom {
        height: 260px;
    }

    .about-academic-title {
        left: 28px;
        font-size: 32px;
    }

    .about-academic-card {
        top: 26%;
        left: 2.5%;
        width: 95%;
        min-height: 64%;
        padding: 16px 18px;
    }

    .about-degree {
        font-size: 23px;
    }

    .about-meta {
        margin-top: 8px;
        font-size: 20px;
    }

    .about-summary {
        margin-top: 10px;
        font-size: 17px;
        max-width: 100%;
    }

    .about-experience-title {
        left: 28px;
        font-size: 32px;
    }

    .about-experience-text {
        top: 92px;
        left: 28px;
        width: calc(100% - 56px);
        font-size: 24px;
        line-height: 1.2;
    }

    .connect-content {
        margin-top: 32px;
        grid-template-columns: 290px minmax(0, 1fr);
        column-gap: 18px;
    }

    .connect-title {
        font-size: 70px;
    }

    .connect-description {
        margin-top: 18px;
        font-size: 21px;
        line-height: 1.2;
    }

    .footer-layer-1 {
        height: 84px;
    }

    .footer-layer-2 {
        height: 66px;
    }

    .footer-layer-3 {
        height: 55px;
    }

    .footer-layer-4 {
        height: 36px;
    }

    .footer-layer-5 {
        height: 18px;
    }
}

@media (max-width: 768px) {
    .achievements-section {
        width: 94%;
    }

    .achievements-title {
        font-size: 48px;
    }

    .achievement-card-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .achievement-heading-wrap {
        gap: 12px;
    }

    .achievement-sih-logo {
        width: 44px;
        height: 44px;
    }

    .achievement-description-wrap {
        gap: 12px;
    }

    .achievement-link {
        margin-top: 8px;
    }

    .achievement-description {
        font-size: 21px;
        line-height: 1.22;
    }

    .achievement-link {
        font-size: 34px;
    }

    .achievement-horizontal-item {
        min-height: 190px;
        gap: 16px;
        padding: 22px 16px;
    }

    .achievement-horizontal-title {
        font-size: 32px;
    }

    .achievement-horizontal-description {
        font-size: 21px;
        line-height: 1.2;
    }

    .books-title {
        font-size: 48px;
    }

    .about-title {
        font-size: 48px;
    }

    .books-panel {
        margin-top: 24px;
        aspect-ratio: auto;
        min-height: auto;
        padding: 22px 12px 20px;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 14px;
    }

    .books-intro {
        position: static;
        transform: none;
        width: min(100%, 540px);
        font-size: 18px;
    }

    .books-cover {
        position: static;
        width: min(100%, 300px);
        height: auto;
        max-width: 100%;
    }

    .about-panel-top {
        height: 240px;
        margin-top: 24px;
    }

    .about-panel-bottom {
        height: 220px;
    }

    .about-academic-title {
        top: 20px;
        left: 20px;
        font-size: 24px;
    }

    .about-academic-card {
        top: 26%;
        left: 2.8%;
        width: 94.4%;
        min-height: 66%;
        padding: 12px 12px;
        border-left-width: 4px;
    }

    .about-degree {
        font-size: 17px;
    }

    .about-meta {
        margin-top: 6px;
        font-size: 14px;
    }

    .about-summary {
        margin-top: 8px;
        font-size: 13px;
        line-height: 1.28;
    }

    .about-experience-title {
        top: 18px;
        left: 20px;
        font-size: 24px;
    }

    .about-experience-text {
        top: 54px;
        left: 20px;
        width: calc(100% - 40px);
        font-size: 15px;
        line-height: 1.3;
    }

    .connect-section {
        margin-top: 36px;
        margin-bottom: 70px;
    }

    .connect-content {
        margin-top: 24px;
        grid-template-columns: 1fr;
        row-gap: 12px;
    }

    .connect-title {
        font-size: 56px;
    }

    .connect-description {
        margin-top: 0;
        font-size: 18px;
        line-height: 1.28;
    }

    .footer-layer-1 {
        height: 64px;
    }

    .footer-layer-2 {
        height: 50px;
    }

    .footer-layer-3 {
        height: 42px;
    }

    .footer-layer-4 {
        height: 28px;
    }

    .footer-layer-5 {
        height: 14px;
    }
}

/* Global Responsive Refinements */
@media (max-width: 1200px) {
    :root {
        --site-scale: 0.92;
    }

    .intro-section {
        max-width: 1000px;
        margin-top: 28px;
    }

    .intro-box {
        padding: 28px 30px;
    }

    .main-title {
        font-size: 62px;
    }

    .sub-title {
        font-size: 31px;
        height: 48px;
        margin-bottom: 24px;
    }

    .intro-description {
        font-size: 21px;
        max-width: 880px;
    }

    .intro-graphics {
        margin-top: 34px;
        gap: 16px;
    }

    .projects-content {
        min-height: auto;
        gap: 40px;
    }

    .project-panel {
        width: min(1281px, 92%);
        height: auto;
        padding: 28px 24px;
    }

    .project-logo-link,
    .project-name,
    .project-description,
    .architecture-showcase {
        position: static;
        left: auto;
        top: auto;
        transform: none;
        width: 100%;
        max-width: 100%;
    }

    .project-logo-link {
        width: 150px;
        height: 150px;
        margin: 0 auto 14px;
    }

    .project-name {
        width: 100%;
        font-size: 44px;
        text-align: center;
        text-decoration-thickness: 2px;
    }

    .project-description {
        width: 100%;
        margin-top: 10px;
        font-size: 24px;
        text-align: center;
        letter-spacing: 0.3px;
    }

    .architecture-showcase {
        margin: 24px auto 0;
        width: min(100%, 900px);
    }

    .architecture-label {
        margin-top: 18px;
        font-size: 38px;
    }

    .tri-projects-panel {
        height: auto;
        grid-template-columns: 1fr;
        padding: 0;
    }

    .tri-column {
        padding: 24px 22px;
    }

    .tri-column+.tri-column {
        border-left: 0;
        border-top: 2px solid rgba(255, 255, 255, 0.88);
    }
}

@media (max-width: 992px) {
    :root {
        --site-scale: 1;
    }

    header.navbar {
        position: sticky;
        top: 10px;
        padding: 10px;
        z-index: 1000;
    }

    .nav-container {
        height: auto;
        border-radius: 24px;
        flex-direction: column;
        gap: 14px;
        padding: 16px;
    }

    .logo a {
        font-size: 36px;
    }

    .nav-links {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: 14px 20px;
    }

    .nav-links a {
        font-size: 24px;
    }

    .theme-btn {
        width: 34px;
        height: 34px;
        margin-left: 6px;
    }

    main {
        padding-top: 20px;
    }

    .skills-content {
        min-height: auto;
        margin-top: -24px;
        padding: 42px 12px 24px;
    }

    .skills-grid-wrapper {
        width: 100%;
        height: auto;
        border-width: 4px;
        display: grid;
        grid-template-columns: 1fr;
        gap: 14px;
        padding: 16px;
    }

    .skills-connectors {
        display: none;
    }

    .programming-box,
    .framework-box,
    .devops-rect-box,
    .platforms-rect-box,
    .devops-cloud-title,
    .platforms-tools-title,
    .skills-image-container {
        position: static;
        left: auto;
        right: auto;
        top: auto;
        margin: 0;
    }

    .programming-box,
    .framework-box,
    .devops-rect-box,
    .platforms-rect-box {
        width: 100%;
        height: auto;
        min-height: 130px;
        padding: 14px;
        gap: 10px;
        justify-content: center;
    }

    .programming-box {
        order: 1;
    }

    .framework-box {
        order: 2;
    }

    .skills-image-container {
        order: 3;
        margin-inline: auto;
    }

    .devops-rect-box {
        order: 4;
    }

    .platforms-rect-box {
        order: 5;
    }

    .devops-cloud-title,
    .platforms-tools-title {
        display: none;
    }

    .devops-rect-box::before,
    .platforms-rect-box::before {
        display: block;
        margin: 0 0 12px;
        font-family: 'Paytone One', sans-serif;
        font-size: 34px;
        font-weight: 400;
        line-height: 1.08;
        text-align: center;
        color: var(--theme-primary);
    }

    .devops-rect-box::before {
        content: "DevOps & Cloud";
    }

    .platforms-rect-box::before {
        content: "Platforms & Tools";
    }

    .devops-cloud-title,
    .platforms-tools-title {
        width: 100%;
        height: auto;
        font-size: 30px;
        white-space: normal;
    }

    .devops-cloud-stack,
    .platforms-tools-stack {
        width: 100%;
        font-size: 24px;
        line-height: 1.25;
        text-align: center;
    }

    .skills-image-container {
        width: 100%;
        max-width: 620px;
        aspect-ratio: 620 / 583;
        height: auto;
    }
}

@media (max-width: 576px) {
    body {
        overflow-x: hidden;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .logo a {
        font-size: 28px;
    }

    .nav-links a {
        font-size: 16px;
    }

    .theme-btn {
        width: 30px;
        height: 30px;
    }

    .intro-section {
        padding: 0 12px;
        margin-top: 10px;
    }

    .intro-box {
        padding: 24px 14px;
        border-width: 2px;
    }

    .main-title {
        font-size: clamp(32px, 8vw, 42px);
    }

    .sub-title {
        font-size: clamp(18px, 5vw, 22px);
        height: auto;
        min-height: 34px;
        margin-top: 8px;
        margin-bottom: 20px;
    }

    .social-links {
        gap: 16px;
        margin-bottom: 14px;
        flex-wrap: wrap;
    }

    .social-icon {
        width: 36px;
        height: 36px;
    }

    .intro-description {
        font-size: 16px;
        line-height: 1.5;
        margin-top: 10px;
        padding: 0 10px;
    }

    .intro-graphics {
        flex-direction: column;
        align-items: center;
        gap: 30px;
        margin-top: 30px;
    }

    .graphic-face {
        margin-right: 0;
    }

    .graphic-aircraft,
    .graphic-face,
    .graphic-architecture {
        width: min(100%, 300px);
        height: auto;
    }

    .skills-title,
    .projects-title,
    .achievements-title,
    .books-title,
    .about-title,
    .connect-title {
        font-size: clamp(32px, 8vw, 44px);
    }

    .skills-title-box,
    .projects-title-box {
        width: max-content;
        padding: 0 20px;
        height: 54px;
    }

    .skills-grid-wrapper {
        border-width: 2px;
        border-radius: 8px;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
        padding: 12px;
    }

    .skill-box-title {
        font-size: clamp(18px, 5vw, 24px);
        white-space: normal;
        text-align: center;
    }

    .skill-box-text {
        font-size: clamp(15px, 4.5vw, 20px);
        line-height: 1.4;
    }

    .devops-rect-box::before,
    .platforms-rect-box::before {
        margin-bottom: 8px;
        font-size: clamp(20px, 6vw, 26px);
    }

    .devops-cloud-stack,
    .platforms-tools-stack {
        font-size: clamp(16px, 4.5vw, 20px);
    }

    .project-panel {
        padding: 20px 14px;
        border-width: 2px;
        border-radius: 8px;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    }

    .project-logo-link {
        width: 90px;
        height: 90px;
        margin-bottom: 12px;
    }

    .project-name {
        font-size: clamp(24px, 6vw, 30px);
    }

    .project-description {
        font-size: 16px;
        line-height: 1.5;
        margin-top: 16px;
    }

    .architecture-label {
        font-size: clamp(18px, 5vw, 24px);
    }

    .tri-title-link {
        font-size: clamp(20px, 5vw, 24px);
        white-space: normal;
        margin-bottom: 8px;
    }

    .tri-title-link-center {
        font-size: clamp(18px, 4.5vw, 20px);
    }

    .tri-description,
    .tri-description-center {
        max-width: 100%;
        font-size: 15px;
        line-height: 1.45;
    }

    .books-panel {
        padding: 20px 12px;
        gap: 16px;
        border-width: 2px;
        border-radius: 8px;
    }

    .books-intro {
        width: min(100%, 320px);
        font-size: 15px;
        line-height: 1.45;
    }

    .books-cover {
        width: min(100%, 220px);
    }

    .achievement-card {
        padding: 16px;
        border-width: 2px;
        border-radius: 8px;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    }

    .achievement-horizontal-strip {
        border-width: 2px;
        border-radius: 8px;
    }
}