@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@700&family=Montserrat:wght@400;700&family=Fira+Mono:wght@400;700&display=swap');

/* Background video styles */
#bg-video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    z-index: -1;
    pointer-events: none;
    min-width: 100%;
    min-height: 100%;
    background: #000;
}

html, body, #home, section {
    background: none !important;
    background-image: none !important;
    background-color: transparent !important;
    min-height: 100vh;
    color: #f4f6fb;
    font-family: 'Montserrat', 'Segoe UI', 'Roboto', Arial, sans-serif;
    letter-spacing: 0.01em;
    overflow-x: hidden;
}
body {
    min-height: 100vh;
    background: none;
}

#about, #projects, #links {
    background: transparent !important;
    box-shadow: none !important;
}

section {
    padding-top: 70px;
    position: relative;
    z-index: 1;
    background: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
}

#home {
    min-height: 100vh;
    background: linear-gradient(135deg, #181A20 70%, #232946 100%);
    display: flex;
    align-items: center;
    justify-content: flex-start;
    position: relative;
    overflow: hidden;
    padding-left: 8vw;
}
#home::before {
    content: '';
    position: absolute;
    top: -10%; left: -10%;
    width: 120%; height: 120%;
    background: radial-gradient(circle at 60% 40%, #0d6efd55 0%, transparent 70%),
                radial-gradient(circle at 20% 80%, #7c3aed55 0%, transparent 70%);
    z-index: 0;
    animation: bg-move 12s linear infinite alternate;
}
.background{
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: -1;
    filter: drop-shadow(0 0 4px #0d6efd88);
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 30px;
    text-align: center;
    max-width: 600px;
    width: 100%;
}
@media (max-width: 768px) {
    #home {
        padding-left: 4vw;
        justify-content: center;
    }
    .hero-content {
        max-width: 100vw;
        padding: 0 3vw;
    }
    .hero-name {
        font-size: 2.1rem;
    }
    .hero-subtitle {
        font-size: 1rem;
    }
    .hero-buttons {
        flex-direction: column;
        gap: 0.7em;
    }
}

.hero-name {
    font-family: 'Orbitron', 'Montserrat', sans-serif;
    font-size: 4.2rem;
    font-weight: 700;
    color: #000000;
    letter-spacing: 2.5px;
    text-shadow: 0 0 28px #ffffff, 0 0 64px #ffffff55;
    margin-bottom: 0.3em;
    line-height: 1.1;
}

.hero-subtitle {
    font-family: 'Fira Mono', 'Consolas', monospace;
    font-size: 1.18rem;
    color: #000000;
    background: none;
    letter-spacing: 0.1em;
    margin-bottom: 1.2em;
    min-height: 2.2em;
    white-space: pre;
    border-right: 2px solid #000000;
    overflow: hidden;
    display: inline-block;
    animation: blink-cursor 1s steps(1) infinite;
    text-shadow: 0 0 8px #000000cc, 0 0 16px #00000055;
}
@keyframes blink-cursor {
    0%, 100% { border-color: #000000; }
    50% { border-color: transparent; }
}

.hero-buttons {
    margin-top: 2em;
    display: flex;
    gap: 1.2em;
}
.hero-btn {
    font-family: 'Montserrat', 'Segoe UI', Arial, sans-serif;
    font-size: 1.13rem;
    padding: 0.7em 2.1em;
    border-radius: 32px;
    font-weight: 700;
    letter-spacing: 0.7px;
    background: #000000;
    color: #fff;
    box-shadow: 0 0 16px #00000088;
    border: 2px solid #ffffff;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s, transform 0.15s;
    outline: none;
    margin-right: 0.5em;
    text-shadow: 0 0 6px #fff9, 0 0 12px #0d6efd99;
}
.hero-btn:last-child {
    background: #000000;
    color: #ffffff;
    border: 2px solid #ffffff;
    box-shadow: 0 0 16px #00000088;
    text-shadow: 0 0 6px #ffffffbb, 0 0 12px #00000099;
}
.hero-btn:hover, .hero-btn:focus {
    background: #e3e3e3;
    color: #000000;
    box-shadow: 0 0 36px #000000cc, 0 0 16px #00000099;
    transform: translateY(-2px) scale(1.06);
}

@keyframes bg-move {
    0% { transform: scale(1) translateY(0); }
    100% { transform: scale(1.1) translateY(-30px); }
}

.navbar {
    background: transparent !important;
    box-shadow: none;
    border-bottom: none;
    transition: background 0.35s, box-shadow 0.35s, border-bottom 0.35s;
}
.navbar.navbar-scrolled {
    background: rgba(0,0,0,0.8) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 2px 24px rgba(0,0,0,0.3);
    border-bottom: 1px solid rgba(255,255,255,0.2);
}
.navbar-brand {
    font-weight: 700;
    font-size: 1.4rem;
    letter-spacing: 1px;
    color: #000000 !important;
    text-shadow: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.navbar-logo {
    height: 32px;
    width: auto;
    max-width: 32px;
    object-fit: contain;
}

.navbar-brand-text {
    font-weight: 700;
    font-size: 1.4rem;
    letter-spacing: 1px;
    color: #000000 !important;
    text-shadow: none;
}

.navbar.navbar-scrolled .navbar-brand {
    color: #ffffff !important;
}
.navbar.navbar-scrolled .navbar-brand-text {
    color: #ffffff !important;
}
.nav-link {
    color: #000000 !important;
    transition: color 0.2s, text-shadow 0.2s;
}
.navbar.navbar-scrolled .nav-link {
    color: #ffffff !important;
}
.nav-link.active, .nav-link:focus, .nav-link:hover {
    color: #333333 !important;
    text-shadow: none;
    font-weight: 700;
}
.navbar.navbar-scrolled .nav-link.active, 
.navbar.navbar-scrolled .nav-link:focus, 
.navbar.navbar-scrolled .nav-link:hover {
    color: #ffffff !important;
    font-weight: 700;
}

h1, h2, h5 {
    font-family: 'Montserrat', 'Segoe UI', Arial, sans-serif;
    font-weight: 700;
    letter-spacing: 1px;
}

.display-3 {
    text-shadow: 0 0 16px #0d6efd33, 0 2px 2px #23294688;
}

.lead {
    color: #b8c1ec;
    font-size: 1.3rem;
}

/* Remove conflicting section backgrounds and enforce a uniform background for all sections */
#about, #projects, #links, #qualifications, section {
    background: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
}

/* Keep cards/blocks dark - but exclude skills-cpp-block which needs frosted glass */
.projects-cs-block, .about-html-block {
    background: #181A20;
    border-radius: 20px;
    box-shadow: 0 0 32px #0d6efd33, 0 4px 32px #7c3aed33;
}

.projects-cs-block {
    padding: 3.2em 2.2em 2.5em 2.2em;
    font-family: 'Fira Mono', 'Consolas', monospace;
    color: #f4f6fb;
    font-size: 1.18rem;
    margin: 2.5em auto 2.5em auto;
    max-width: 1100px;
    width: 100%;
    position: relative;
    transition: box-shadow 0.3s, padding 0.3s, font-size 0.3s, max-width 0.3s;
    overflow-x: auto;
}

.cs-tag {
    display: block;
    color: #0d6efd;
    text-shadow: 0 0 8px #0d6efdcc, 0 0 24px #7c3aed99;
    font-size: 1.12em;
    margin-bottom: 0.7em;
    margin-top: 0.7em;
    font-family: 'Fira Mono', 'Consolas', monospace;
    letter-spacing: 0.05em;
    font-weight: 700;
    }
.cs-func{
    color: #13abc9;
    text-shadow: 0 0 8px #7c3aedcc, 0 0 16px #0d6efd99;
}
.html-tag {
    display: block;
    color: #000000;
    /* text-shadow: 0 0 8px #0d6efdcc, 0 0 24px #7c3aed99; */
    font-size: 1.18em;
    margin-bottom: 0.7em;
    margin-top: 0.7em;
    font-family: 'Fira Mono', 'Consolas', monospace;
    letter-spacing: 0.05em;
    font-weight: 700;
}
.about-html-block .html-tag:first-child {
    margin-top: 0;
}
.about-html-content {
    padding-left: 2.2em;
    color: #000000;
    margin-bottom: 0.7em;
    font-size: 1.08em;
    line-height: 1.7;
    border-left: 2px solid #00000044;
}


#qualifications {
    box-shadow: 0 4px 32px #7c3aed11;
    border-radius: 24px;
    animation: fadeInUp 1.5s 0.2s cubic-bezier(.4,1.2,.6,1) both;
}

/* Remove duplicate .skills-cpp-block rule - keeping only the comprehensive frosted glass one */

@media (max-width: 1199px) and (min-width: 992px) {
    .skills-cpp-block {
        max-width: 960px;
        font-size: 1.2rem;
        padding: 3em 2em 2.5em 2em;
        /* Keep frosted glass - PROTECTED */
        background: rgba(255, 255, 255, 0.35) !important;
        backdrop-filter: blur(12px) !important;
        -webkit-backdrop-filter: blur(12px) !important;
        border: 2px solid rgba(255, 255, 255, 0.35) !important;
        border-radius: 24px !important;
        box-shadow: none !important;
    }
}
@media (max-width: 1200px) {
    .skills-cpp-block {
        max-width: 98vw;
        padding: 2.5em 1em 2em 1em;
        font-size: 1.07rem;
        /* Keep frosted glass - PROTECTED */
        background: rgba(255, 255, 255, 0.35) !important;
        backdrop-filter: blur(12px) !important;
        -webkit-backdrop-filter: blur(12px) !important;
        border: 2px solid rgba(255, 255, 255, 0.35) !important;
        border-radius: 24px !important;
        box-shadow: none !important;
    }
}

.cpp-tag {
    display: block;
    color: #000000;
    text-shadow: 0 0 8px #ffffffcc, 0 0 24px #fefefe99;
    font-size: 1.12em;
    margin-bottom: 0.7em;
    margin-top: 0.7em;
    font-family: 'Fira Mono', 'Consolas', monospace;
    letter-spacing: 0.05em;
    font-weight: 700;
}
.skills-cpp-block .cpp-tag:first-child {
    margin-top: 0;
}
.cpp-var {
    color: #000000;
    text-shadow: 0 0 8px #ffffffcc, 0 0 16px #ffffff99;
}
.skills-cpp-content {
    padding-left: 2.2em;
    color: #b8c1ec;
    margin-bottom: 0.7em;
    font-size: 1.08em;
    line-height: 1.7;
    border-left: 2px solid #0d6efd44;
    min-height: 8em;
    white-space: pre;
}


.list-group-item {
    background: transparent;
    color: #f4f6fb;
    border: none;
    border-left: 4px solid #0d6efd;
    margin-bottom: 8px;
    font-size: 1.1rem;
    transition: border-color 0.3s;
}
.list-group-item:hover {
    border-color: #7c3aed;
    background: #23294655;
}

.project-card {
    background: #000 !important;
    color: #fff !important;
    border: 2px solid #fff;
    box-shadow: none !important;
    transition: transform 0.25s cubic-bezier(.4,1.2,.6,1), box-shadow 0.2s, border 0.2s;
    opacity: 1;
    transform: none;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    min-height: 180px;
    text-align: left;
    position: relative;
    padding: 1.3em 1.2em 1.2em 1.2em;
    margin-bottom: 0;
}

.project-card-link {
    text-decoration: none !important;
    color: inherit !important;
    display: block;
    cursor: pointer;
}
.project-card-link:link, .project-card-link:visited, .project-card-link:hover, .project-card-link:active {
    text-decoration: none !important;
    color: inherit !important;
    outline: none !important;
}
.project-title, .project-desc, .project-tags, .project-tag {
    text-decoration: none !important;
    color: inherit;
}

.project-img { display: none !important; }

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4em;
    margin-top: 1.1em;
}
.project-tag {
    display: inline-block;
    font-size: 0.98em;
    font-family: 'Fira Mono', 'Consolas', monospace;
    font-weight: 700;
    border-radius: 7px;
    padding: 0.21em 0.85em;
    margin-right: 0.2em;
    margin-bottom: 0.2em;
    color: #181A20;
    background: #f4f6fb;
    box-shadow: 0 0 8px #0d6efd22;
    letter-spacing: 0.02em;
    border: none;
    text-shadow: none;
    transition: background 0.2s, color 0.2s;
}
.project-tag-csharp { background: #9b099b; color: #fff; }
.project-tag-react { background: #17b3da; color: #fff; }
.project-tag-html { background: #e44d26; color: #fff; }
.project-tag-css { background: #0252e7; color: #fff; }
.project-tag-js { background: #f7df1e; color: #232946; }
.project-tag-expo { background: #272626; color: #ffffff;}
.project-tag-ts { background: #3178c6; color: #fff; }
.project-tag-kotlin { background: #7f52ff; color: #fff; }

.card {
    background: linear-gradient(120deg, #232946 80%, #0d6efd22 100%);
    color: #f4f6fb;
    border: none;
    border-radius: 18px;
    box-shadow: 0 2px 16px #0d6efd22;
    transition: transform 0.35s cubic-bezier(.4,1.2,.6,1), box-shadow 0.3s;
    opacity: 0;
    transform: translateY(40px) scale(0.98);
    animation: cardFadeIn 1.2s cubic-bezier(.4,1.2,.6,1) forwards;
}
.card:nth-child(1) { animation-delay: 0.2s; }
.card:nth-child(2) { animation-delay: 0.4s; }
.card:nth-child(3) { animation-delay: 0.6s; }
.card:hover {
    transform: translateY(-12px) scale(1.04);
    box-shadow: 0 8px 32px #0d6efd44, 0 2px 24px #7c3aed33;
}

.btn {
    border-radius: 24px;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: background 0.3s, color 0.3s, box-shadow 0.3s, transform 0.2s;
    box-shadow: 0 2px 12px #0d6efd22;
}
.btn-outline-primary {
    color: #0d6efd;
    border-color: #0d6efd;
    background: #181A20;
}
.btn-outline-primary:hover {
    background: #0d6efd;
    color: #fff;
    box-shadow: 0 0 12px #0d6efd88;
    transform: scale(1.05);
}
.btn-outline-dark {
    color: #7c3aed;
    border-color: #7c3aed;
    background: #181A20;
}
.btn-outline-dark:hover {
    background: #7c3aed;
    color: #fff;
    box-shadow: 0 0 12px #7c3aed88;
    transform: scale(1.05);
}
.btn-outline-secondary {
    color: #f4f6fb;
    border-color: #f4f6fb;
    background: #181A20;
}
.btn-outline-secondary:hover {
    background: #f4f6fb;
    color: #232946;
    box-shadow: 0 0 12px #f4f6fb88;
    transform: scale(1.05);
}

footer {
    font-size: 0.98rem;
    background: #232946;
    color: #b8c1ec;
    border-top: 1px solid #0d6efd33;
    box-shadow: 0 -2px 24px #0d6efd11;
}

/* Animations */
@keyframes fadeInUp {
    0% { opacity: 0; transform: translateY(40px); }
    100% { opacity: 1; transform: translateY(0); }
}
@keyframes cardFadeIn {
    0% { opacity: 0; transform: translateY(40px) scale(0.98); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

.about-html-block {
    padding: 4em 4vw 3em 4vw;
    font-family: 'Fira Mono', 'Consolas', monospace;
    color: #f4f6fb;
    font-size: 1.28rem;
    margin: 2.5em auto 2.5em auto;
    max-width: 1100px;
    width: 100%;
    position: relative;
    transition: box-shadow 0.3s, padding 0.3s, font-size 0.3s, max-width 0.3s;
    overflow-x: auto;
}

@media (max-width: 1200px) {
    .about-html-block {
        max-width: 98vw;
        padding: 2.5em 1em 2em 1em;
        font-size: 1.07rem;
    }
}

section:not(:last-child)::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    margin: 40px auto 0 auto;
    border-radius: 2px;
    background: linear-gradient(90deg, #000000 0%, #000000 100%);
    opacity: 0.18;
}

/* Neon/Glow accent for headings */
h2, h5 {
    text-shadow: 0 0 8px #0d6efd55, 0 2px 4px #181A2088;
}


.spline-3d-wrapper {
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%) translateX(8vw);
    width: 760px;
    height: 600px;
    max-width: 60vw;
    max-height: 90vh;
    z-index: 0;
    pointer-events: none;
    overflow: visible;
}

spline-viewer {
    width: 100%;
    height: 100%;
    border-radius: 0;
    box-shadow: none;
    background: none;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
}

/* Remove overlays and apply frosted glass effect to hero and cards */
#home::before, .hero-content::before {
    display: none !important;
    content: none !important;
}

.hero-content {
    background: rgba(255,255,255,0.18);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 2px solid rgba(255,255,255,0.35);
    border-radius: 24px;
    box-shadow: none !important;
    position: relative;
    z-index: 2;
}

.projects-cs-block, .about-html-block {
    background: rgba(255,255,255,0.35) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 2px solid rgba(255,255,255,0.35);
    border-radius: 24px;
    box-shadow: none !important;
}

/* Copy About section styling exactly for Skills section */
.skills-cpp-block {
    /* Frosted glass effect - PROTECTED */
    background: rgba(255, 255, 255, 0.35) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border: 2px solid rgba(255, 255, 255, 0.35) !important;
    border-radius: 24px !important;
    box-shadow: none !important;
    
    /* Layout and typography */
    padding: 4em 4vw 3em 4vw;
    font-family: 'Fira Mono', 'Consolas', monospace;
    color: #000000;
    font-size: 1.28rem;
    margin: 2.5em auto 2.5em auto;
    max-width: 1100px;
    width: 100%;
    position: relative;
    transition: box-shadow 0.3s, padding 0.3s, font-size 0.3s, max-width 0.3s;
    overflow-x: auto;
}

.skills-cpp-block .cpp-tag {
    display: block;
    color: #000000;
    font-size: 1.18em;
    margin-bottom: 0.7em;
    margin-top: 0.7em;
    font-family: 'Fira Mono', 'Consolas', monospace;
    letter-spacing: 0.05em;
    font-weight: 700;
}

.skills-cpp-block .cpp-var {
    color: #000000;
    font-weight: 700;
}

.skills-cpp-block .skills-cpp-content {
    padding-left: 2.2em;
    color: #000000;
    margin-bottom: 0.7em;
    font-size: 1.08em;
    line-height: 1.7;
    border-left: 2px solid #00000044;
}

/* Remove section animation that causes disappearing */
section {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
}

/* Remove .skills-cpp-block from all media queries */
@media (max-width: 1200px) {
    .hero-content {
        max-width: 550px;
    }
    .projects-cs-block, .about-html-block {
        max-width: 960px;
    }
}

@media (max-width: 992px) {
    #home {
        justify-content: center;
        text-align: center;
        padding: 4em 2em;
    }
    .hero-content {
        max-width: 100%;
        align-items: center;
    }
    #home {
        flex-direction: column;
        justify-content: center;
        padding: 2em 0;
    }
    .spline-3d-wrapper {
        position: relative;
        transform: none;
        width: 100vw;
        max-width: 90vw;
        height: 320px;
        margin-top: 2em;
        z-index: 1;
        pointer-events: auto;
    }
    spline-viewer {
        pointer-events: auto;
    }
    .hero-content::before {
        display: none;
    }
    .projects-cs-block, .about-html-block {
        padding: 2.5em 1.5em;
        font-size: 1.05rem;
    }
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero-name {
        font-size: 2.5rem;
    }
    .hero-subtitle {
        font-size: 1.1rem;
    }
    .projects-cs-block, .about-html-block {
        font-size: 1rem;
    }
    .projects-grid {
        grid-template-columns: 1fr;
    }
    .footer {
        padding: 1.5em 1em;
    }
}

@media (max-width: 576px) {
    .hero-name {
        font-size: 2rem;
    }
    .hero-subtitle {
        font-size: 1rem;
        min-height: 3.5em;
    }
    .hero-buttons {
        flex-direction: column;
        width: 100%;
        gap: 1em;
    }
    .hero-btn {
        width: 100%;
        padding: 0.8em 1em;
    }
    .cs-heading {
        font-size: 1.2rem;
    }
    .projects-cs-block, .about-html-block {
        padding: 2em 1em;
        font-size: 0.9rem;
    }
}

/* Section entrance animation */
section {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s cubic-bezier(.4,1.2,.6,1), transform 0.7s cubic-bezier(.4,1.2,.6,1);
}
section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Remove animated overlays for a uniform background */
section::before, #home::before {
    display: none !important;
}

section {
    background: linear-gradient(135deg, #181A20 70%, #232946 100%) !important;
}

::-webkit-scrollbar {
    width: 8px;
    background: #232946;
}
::-webkit-scrollbar-thumb {
    background: #0d6efd55;
    border-radius: 4px;
}

/* Project section heading black, cards black with white text */
.cs-heading, .cs-tag, .cs-func {
    color: #000 !important;
    text-shadow: none !important;
}

.project-card {
    background: #000 !important;
    color: #fff !important;
    border: 2px solid #fff;
    box-shadow: none !important;
}
.project-card * {
    color: #fff !important;
    text-shadow: none !important;
}

/* Python class styling for Links section */
.links-python-block {
    background: rgba(255,255,255,0.18) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 2px solid rgba(255,255,255,0.35);
    border-radius: 24px;
    box-shadow: none !important;
    padding: 4em 4vw 3em 4vw;
    font-family: 'Fira Mono', 'Consolas', monospace;
    color: #000000;
    font-size: 1.28rem;
    margin: 2.5em auto 2.5em auto;
    max-width: 1100px;
    width: 100%;
    position: relative;
    transition: box-shadow 0.3s, padding 0.3s, font-size 0.3s, max-width 0.3s;
    overflow-x: auto;
}

.python-tag {
    display: block;
    color: #000000;
    font-size: 1.18em;
    margin-bottom: 0.7em;
    margin-top: 0.7em;
    font-family: 'Fira Mono', 'Consolas', monospace;
    letter-spacing: 0.05em;
    font-weight: 700;
}

.python-class {
    color: #000000;
    font-weight: 700;
}

.python-indent {
    display: block;
    color: #000000;
    font-size: 1.08em;
    margin-bottom: 0.5em;
    margin-left: 2em;
    font-family: 'Fira Mono', 'Consolas', monospace;
    letter-spacing: 0.05em;
}

.python-attr {
    color: #000000;
    font-weight: 700;
}

.python-string {
    color: #000000;
    font-style: italic;
}

.python-link {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s;
}

.python-link:hover {
    color: #333333;
    text-decoration: underline;
}

.python-link:visited {
    color: inherit;
}

.links-python-content {
    padding-left: 2.2em;
    color: #000000;
    margin-bottom: 0.7em;
    font-size: 1.08em;
    line-height: 1.7;
    border-left: 2px solid #00000044;
}

.links-buttons {
    text-align: center;
    margin-top: 2rem;
}

@media (max-width: 1200px) {
    .links-python-block {
        max-width: 98vw;
        padding: 2.5em 1em 2em 1em;
        font-size: 1.07rem;
    }
}

/* COMPREHENSIVE RESPONSIVE DESIGN */

/* Large Desktop (1400px and up) */
@media (min-width: 1400px) {
    .hero-content {
        max-width: 700px;
    }
    .projects-cs-block, .skills-cpp-block, .about-html-block, .links-python-block {
        max-width: 1200px;
        font-size: 1.4rem;
    }
    .hero-name {
        font-size: 5rem;
    }
    .hero-subtitle {
        font-size: 1.4rem;
    }
}

/* Desktop (1200px - 1399px) */
@media (max-width: 1399px) and (min-width: 1200px) {
    .hero-content {
        max-width: 600px;
    }
    .projects-cs-block, .skills-cpp-block, .about-html-block, .links-python-block {
        max-width: 1100px;
        font-size: 1.28rem;
    }
}

/* Tablet Landscape (992px - 1199px) */
@media (max-width: 1199px) and (min-width: 992px) {
    .hero-content {
        max-width: 550px;
    }
    .projects-cs-block, .about-html-block, .links-python-block {
        max-width: 960px;
        font-size: 1.2rem;
        padding: 3em 2em 2.5em 2em;
    }
    .skills-cpp-block {
        max-width: 960px;
        font-size: 1.2rem;
        padding: 3em 2em 2.5em 2em;
        /* Preserve frosted glass */
        background: rgba(255, 255, 255, 0.35) !important;
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border: 2px solid rgba(255, 255, 255, 0.35);
        border-radius: 24px;
        box-shadow: none !important;
    }
    .spline-3d-wrapper {
        width: 600px;
        height: 450px;
    }
}

/* Tablet Portrait (768px - 991px) */
@media (max-width: 991px) and (min-width: 768px) {
    #home {
        flex-direction: column;
        justify-content: center;
        text-align: center;
        padding: 2em 1em;
    }
    .hero-content {
        max-width: 100%;
        padding: 0 2vw;
        margin-bottom: 2em;
    }
    .hero-name {
        font-size: 3.5rem;
    }
    .hero-subtitle {
        font-size: 1.2rem;
    }
    .spline-3d-wrapper {
        position: relative;
        transform: none;
        width: 100%;
        max-width: 500px;
        height: 350px;
        margin: 0 auto;
    }
    .projects-cs-block, .about-html-block, .links-python-block {
        max-width: 95vw;
        padding: 2.5em 1.5em 2em 1.5em;
        font-size: 1.1rem;
    }
    .skills-cpp-block {
        max-width: 95vw;
        padding: 2.5em 1.5em 2em 1.5em;
        font-size: 1.1rem;
        /* Keep frosted glass - PROTECTED */
        background: rgba(255, 255, 255, 0.35) !important;
        backdrop-filter: blur(12px) !important;
        -webkit-backdrop-filter: blur(12px) !important;
        border: 2px solid rgba(255, 255, 255, 0.35) !important;
        border-radius: 24px !important;
        box-shadow: none !important;
    }
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    .navbar-brand {
        font-size: 1.2rem;
    }
}

/* Mobile Large (576px - 767px) */
@media (max-width: 767px) and (min-width: 576px) {
    #home {
        flex-direction: column;
        justify-content: center;
        text-align: center;
        padding: 1.5em 1em;
        min-height: 100vh;
    }
    .hero-content {
        max-width: 100%;
        padding: 0 3vw;
        margin-bottom: 1.5em;
    }
    .hero-name {
        font-size: 2.8rem;
        letter-spacing: 2px;
    }
    .hero-subtitle {
        font-size: 1.1rem;
        min-height: 2.5em;
    }
    .hero-buttons {
        flex-direction: column;
        gap: 1em;
        align-items: center;
    }
    .hero-btn {
        width: 200px;
        padding: 0.8em 1.5em;
        font-size: 1rem;
    }
    .spline-3d-wrapper {
        position: relative;
        transform: none;
        width: 100%;
        max-width: 400px;
        height: 300px;
        margin: 0 auto;
    }
    .projects-cs-block, .about-html-block, .links-python-block {
        max-width: 95vw;
        padding: 2em 1em 1.5em 1em;
        font-size: 1rem;
        margin: 2em auto;
    }
    .skills-cpp-block {
        max-width: 95vw;
        padding: 2em 1em 1.5em 1em;
        font-size: 1rem;
        margin: 2em auto;
        /* Keep frosted glass - PROTECTED */
        background: rgba(255, 255, 255, 0.35) !important;
        backdrop-filter: blur(12px) !important;
        -webkit-backdrop-filter: blur(12px) !important;
        border: 2px solid rgba(255, 255, 255, 0.35) !important;
        border-radius: 24px !important;
        box-shadow: none !important;
    }
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .project-card {
        min-height: 160px;
        padding: 1.2em 1em 1em 1em;
    }
    .navbar-brand {
        font-size: 1.1rem;
    }
    .nav-link {
        font-size: 0.9rem;
        padding: 0.5rem 0.8rem !important;
    }
    .python-indent, .cpp-tag, .html-tag, .cs-tag {
        font-size: 1rem;
    }
    .python-indent {
        margin-left: 1.5em;
    }
}

/* Mobile Small (up to 575px) */
@media (max-width: 575px) {
    #home {
        flex-direction: column;
        justify-content: center;
        text-align: center;
        padding: 1em 0.5em;
        min-height: 100vh;
    }
    .hero-content {
        max-width: 100%;
        padding: 0 4vw;
        margin-bottom: 1em;
    }
    .hero-name {
        font-size: 2.2rem;
        letter-spacing: 1.5px;
        margin-bottom: 0.5em;
    }
    .hero-subtitle {
        font-size: 1rem;
        min-height: 2.2em;
        margin-bottom: 1em;
    }
    .hero-buttons {
        flex-direction: column;
        gap: 0.8em;
        align-items: center;
        margin-top: 1.5em;
    }
    .hero-btn {
        width: 180px;
        padding: 0.7em 1.2em;
        font-size: 0.95rem;
        border-radius: 25px;
    }
    .spline-3d-wrapper {
        position: relative;
        transform: none;
        width: 100%;
        max-width: 350px;
        height: 250px;
        margin: 0 auto;
    }
    .projects-cs-block, .about-html-block, .links-python-block {
        max-width: 98vw;
        padding: 1.5em 0.8em 1.2em 0.8em;
        font-size: 0.9rem;
        margin: 1.5em auto;
        border-radius: 16px;
    }
    .skills-cpp-block {
        max-width: 98vw;
        padding: 1.5em 0.8em 1.2em 0.8em;
        font-size: 0.9rem;
        margin: 1.5em auto;
        border-radius: 16px;
        /* Keep frosted glass - PROTECTED */
        background: rgba(255, 255, 255, 0.35) !important;
        backdrop-filter: blur(12px) !important;
        -webkit-backdrop-filter: blur(12px) !important;
        border: 2px solid rgba(255, 255, 255, 0.35) !important;
        box-shadow: none !important;
    }
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }
    .project-card {
        min-height: 140px;
        padding: 1em 0.8em 0.8em 0.8em;
        border-radius: 12px;
    }
    .project-title {
        font-size: 1.1rem;
    }
    .project-desc {
        font-size: 0.9rem;
    }
    .project-tag {
        font-size: 0.8rem;
        padding: 0.15em 0.6em;
    }
    .navbar-brand {
        font-size: 1rem;
    }
    .nav-link {
        font-size: 0.85rem;
        padding: 0.4rem 0.6rem !important;
    }
    .python-indent, .cpp-tag, .html-tag, .cs-tag {
        font-size: 0.9rem;
    }
    .python-indent {
        margin-left: 1em;
    }
    .python-attr, .cpp-var, .html-tag, .cs-func {
        font-size: 0.9rem;
    }
    .python-string, .cpp-tag, .html-tag, .cs-tag {
        font-size: 0.9rem;
    }
    .links-python-content, .skills-cpp-content, .about-html-content {
        font-size: 0.85rem;
        padding-left: 1.5em;
    }
    .btn {
        font-size: 0.85rem;
        padding: 0.5rem 1rem;
        border-radius: 20px;
    }
    .footer {
        font-size: 0.85rem;
        padding: 1rem 0.5rem;
    }
}

/* Extra Small Mobile (up to 375px) */
@media (max-width: 375px) {
    .hero-name {
        font-size: 1.8rem;
        letter-spacing: 1px;
    }
    .hero-subtitle {
        font-size: 0.9rem;
    }
    .hero-btn {
        width: 160px;
        padding: 0.6em 1em;
        font-size: 0.9rem;
    }
    .projects-cs-block, .about-html-block, .links-python-block {
        padding: 1.2em 0.6em 1em 0.6em;
        font-size: 0.85rem;
    }
    .skills-cpp-block {
        padding: 1.2em 0.6em 1em 0.6em;
        font-size: 0.85rem;
        /* Keep frosted glass - PROTECTED */
        background: rgba(255, 255, 255, 0.35) !important;
        backdrop-filter: blur(12px) !important;
        -webkit-backdrop-filter: blur(12px) !important;
        border: 2px solid rgba(255, 255, 255, 0.35) !important;
        border-radius: 24px !important;
        box-shadow: none !important;
    }
    .project-card {
        min-height: 120px;
        padding: 0.8em 0.6em 0.6em 0.6em;
    }
    .navbar-brand {
        font-size: 0.9rem;
    }
    .nav-link {
        font-size: 0.8rem;
        padding: 0.3rem 0.5rem !important;
    }
}

/* Landscape Mobile (height less than 500px) */
@media (max-height: 500px) and (orientation: landscape) {
    #home {
        min-height: 100vh;
        padding: 0.5em 1em;
    }
    .hero-name {
        font-size: 2rem;
        margin-bottom: 0.3em;
    }
    .hero-subtitle {
        font-size: 0.9rem;
        margin-bottom: 0.8em;
    }
    .hero-buttons {
        margin-top: 1em;
    }
    .hero-btn {
        padding: 0.5em 1em;
        font-size: 0.9rem;
    }
    .spline-3d-wrapper {
        height: 200px;
    }
}

/* Ensure video background works on all devices */
@media (max-width: 768px) {
    #bg-video {
        object-position: center;
    }
}

/* Touch-friendly interactions for mobile */
@media (hover: none) and (pointer: coarse) {
    .hero-btn:hover, .project-card:hover, .btn:hover {
        transform: none;
    }
    .nav-link:hover {
        color: inherit !important;
    }
}

/* Linux Terminal Startup Animation */
.terminal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #000;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Fira Mono', 'Consolas', 'Monaco', monospace;
}

.terminal-window {
    width: 100vw;
    height: 100vh;
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 0;
    box-shadow: none;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.terminal-header {
    background: #2a2a2a;
    padding: 8px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #333;
}

.terminal-title {
    color: #00ff00;
    font-size: 26px;
    font-weight: bold;
}

.terminal-controls {
    display: flex;
    gap: 8px;
}

.control {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ff5f56;
}
.control:nth-child(2) {
    background: #ffbd2e;
}
.control:nth-child(3) {
    background: #27ca3f;
}

.terminal-content {
    padding:16px;
    height: calc(100% - 40px);
    overflow-y: auto;
    color: #00ff00;
    font-size: 20px;
    line-height:1.4;
}

.terminal-line {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.prompt {
    color: #00ff00;
    margin-right: 8px;
    font-weight: bold;
}

.command {
    color: #00ff00;
    margin-right: 4px;
}

.cursor {
    width:8px;
    height: 16px;
    background: #00ff00;
    animation: blink1 infinite;
}

@keyframes blink {
    0%,50% { opacity: 1 }
    51%, 100% { opacity:0 }
}

.terminal-output {
    margin-top: 16px;
    color: #00ff00;
}

.terminal-output .line {
    margin-bottom: 4px;
}

.loading-bar-container {
    margin-top:20px;
    width: 10%;
    height: 4px;
    background: #333;
    border-radius: 2;
    overflow: hidden;
}

.loading-bar {
    height: 100%;
    background: #00ff00;
    width: 0%;
    transition: width 0.1s;
}

/* Hide main content initially */
.main-content {
    opacity: 0;
    transition: opacity 0.5;
}

.main-content.show {
    opacity:1;
}

/* Terminal typing animation */
.typing {
    border-right:2px solid #00ff00;
    animation: typing 0.1s steps(1) infinite;
}

@keyframes typing {
  0%,50% { border-color: #0000 }
    51%, 100% { border-color: transparent; }
}
