/* Theme: The Architect v2.0 (Terminal Edition)
    Author: Rajib Paul
*/

/* 1. VARIABLES */
:root {
    --bg-dark: #0f172a;
    /* Main Background */
    --bg-darker: #020617;
    /* Section Backgrounds */
    --bg-card: #1e293b;
    /* Card/Panel Background */

    --primary: #38bdf8;
    /* Cyan/Blue - Variables */
    --secondary: #a855f7;
    /* Purple - Keywords */
    --accent: #22c55e;
    /* Green - Strings */
    --alert: #ef4444;
    /* Red - Errors */

    --text-main: #e2e8f0;
    --text-muted: #64748b;

    --font-code: 'Fira Code', monospace;
    --font-sans: 'Inter', sans-serif;
}

/* GLOBAL RESET TO FIX RIGHT OVERFLOW */
html,
body {
    overflow-x: hidden;
    max-width: 100%;
    width: 100%;
    margin: 0;
    padding: 0;
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-sans);
}

/* Force Font Awesome Solid icons to have the correct weight */
.fas,
.fa-solid {
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900 !important;
}

/* Typography Overrides */
h1,
h2,
h3,
h4,
h5 {
    font-family: var(--font-sans);
    font-weight: 700;
    letter-spacing: -0.5px;
}

.font-monospace {
    font-family: var(--font-code) !important;
}

a {
    text-decoration: none;
    transition: 0.3s;
}

/* 2. NAVBAR */
.navbar {
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 15px 0;
    z-index: 9999;
    /* Highest priority */
}

/* FIX: HAMBURGER MENU VISIBILITY & ANIMATION */
.navbar-toggler {
    border: none !important;
    padding: 0 !important;
    outline: none !important;
    box-shadow: none !important;
    margin-right: 0;
    /* Fixes right alignment */
    z-index: 10000;
}

.hamburger-icon {
    width: 30px;
    height: 24px;
    position: relative;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.hamburger-icon span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: var(--primary);
    border-radius: 3px;
    transition: all 0.3s ease-in-out;
    opacity: 1;
    /* Force visibility */
}

/* State: OPEN (When 'collapsed' class is MISSING) */
.navbar-toggler[aria-expanded="true"] .hamburger-icon span:nth-child(1) {
    transform: translateY(10.5px) rotate(45deg);
}

.navbar-toggler[aria-expanded="true"] .hamburger-icon span:nth-child(2) {
    opacity: 0;
    transform: translateX(-20px);
}

.navbar-toggler[aria-expanded="true"] .hamburger-icon span:nth-child(3) {
    transform: translateY(-10.5px) rotate(-45deg);
}

.logo-glitch {
    font-family: var(--font-code);
    font-weight: 700;
    font-size: 1.4rem;
    color: var(--text-main) !important;
    position: relative;
    padding: 5px 0;
    /* Reduced padding for mobile safety */
}

.logo-glitch .brackets {
    color: var(--secondary);
}

.logo-glitch:hover .text {
    animation: glitch 0.3s cubic-bezier(.25, .46, .45, .94) both infinite;
    color: var(--primary);
}

@keyframes glitch {
    0% {
        transform: translate(0);
    }

    20% {
        transform: translate(-2px, 2px);
    }

    40% {
        transform: translate(-2px, -2px);
    }

    60% {
        transform: translate(2px, 2px);
    }

    80% {
        transform: translate(2px, -2px);
    }

    100% {
        transform: translate(0);
    }
}

.nav-link {
    font-family: var(--font-code);
    font-size: 0.9rem;
    color: var(--text-muted) !important;
    margin-left: 15px;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary) !important;
}

.nav-link .line-num {
    color: var(--bg-card);
    margin-right: 5px;
    user-select: none;
}

.nav-link:hover .line-num {
    color: var(--text-muted);
}

.btn-terminal {
    background: rgba(56, 189, 248, 0.1);
    color: var(--primary) !important;
    border: 1px solid var(--primary);
    padding: 5px 15px;
    border-radius: 4px;
    display: inline-block;
    text-align: center;
}

.btn-terminal:hover {
    background: var(--primary);
    color: var(--bg-dark) !important;
    box-shadow: 0 0 15px var(--primary);
}

/* 3. HERO SECTION */
.hero-section {
    position: relative;
    min-height: 100vh;
    width: 100%;
    background-color: var(--bg-darker);
    overflow: hidden;
    /* Crucial for preventing scroll */
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-image:
        linear-gradient(rgba(56, 189, 248, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(56, 189, 248, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    padding-top: 80px;
}

.hero-overlay-texture {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, transparent 0%, var(--bg-darker) 90%);
    pointer-events: none;
    z-index: 0;
}

.sys-loc span {
    --bs-text-opacity: 1;
    color: rgb(13 162 253);
}

@media (max-width: 991px) {
    /* ... keep your existing navbar-collapse and container rules here ... */

    /* ADD THIS BLOCK */
    .hero-section {
        /* Replace 'mobile-bg.jpg' with your actual file name */
        background-image: url('assets/images/sm_bg_1_.jpg');

        /* Ensures image covers the whole screen */
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
    }

    /* Make the overlay darker so your text remains readable on top of the image */
    .hero-overlay-texture {
        background: rgba(2, 6, 23, 0.70);
        /* 85% opacity dark blue/black */
    }
}

#text-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* Helper Elements */
.hero-hidden-title {
    opacity: 0;
    font-size: 1px;
    position: absolute;
}

.spacer-for-canvas {
    height: 100px;
    width: 100%;
}

.hero-desc {
    font-size: 1.1rem;
    color: #94a3b8;
    max-width: 600px;
}

/* HUD Context Bar */
.hud-top-bar {
    font-family: var(--font-code);
    font-size: 0.8rem;
    color: var(--text-muted);
    border-bottom: 1px solid rgba(56, 189, 248, 0.1);
    padding-bottom: 10px;
    width: 100%;
}

.blinking-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
    margin-right: 5px;
    box-shadow: 0 0 10px #22c55e;
    animation: blink 2s infinite;
}

/* Data Blocks */
.data-block {
    border-left: 2px solid var(--primary);
    background: rgba(15, 23, 42, 0.6);
    padding: 15px;
    font-family: var(--font-code);
    backdrop-filter: blur(5px);
    transition: 0.3s;
}

.right-block {
    border-left: none;
    border-right: 2px solid var(--secondary);
    text-align: right;
}

.block-title {
    color: var(--text-muted);
    font-size: 0.75rem;
    letter-spacing: 2px;
    margin-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 5px;
}

.data-list {
    list-style: none;
    padding: 0;
    margin: 0;
    color: var(--text-main);
    font-size: 0.85rem;
    text-align: left;
}

/*.data-list li { margin-bottom: 8px; opacity: 0.8; }*/
.data-list li {
    margin-bottom: 2px;
    opacity: 0.8;
}

.data-list li:hover {
    opacity: 1;
    color: var(--primary);
    padding-left: 5px;
    transition: 0.2s;
}

.stat-item {
    margin-bottom: 10px;
}

.stat-item .label {
    display: block;
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-bottom: 2px;
}

.progress-line {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
}

.progress-line .fill {
    height: 100%;
    background: var(--secondary);
    box-shadow: 0 0 10px var(--secondary);
}

/* Badges & Buttons */
.hero-badges {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.badge-tech {
    border: 1px solid rgba(56, 189, 248, 0.3);
    color: var(--primary);
    padding: 5px 15px;
    font-family: var(--font-code);
    font-size: 0.8rem;
    text-transform: uppercase;
    background: rgba(56, 189, 248, 0.05);
}

.btn-initialize {
    display: inline-block;
    padding: 15px 40px;
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
    font-family: var(--font-code);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    transition: 0.3s;
    text-decoration: none;
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.1);
}

.btn-initialize:hover {
    background: var(--primary);
    color: var(--bg-dark);
    box-shadow: 0 0 40px rgba(56, 189, 248, 0.6);
}

.scan-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary);
    box-shadow: 0 0 15px var(--primary);
    opacity: 0.5;
    animation: scan 4s infinite linear;
    z-index: 2;
    pointer-events: none;
}

@keyframes scan {
    0% {
        top: 0%;
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

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

.scroll-indicator-wrapper {
    position: absolute;
    /*bottom: 30px;*/

    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    opacity: 0.7;
    top: 65vh;
}

section#services {
    padding-top: 0;
    padding-bottom: 50px;
}

section#about {
    padding-bottom: 0;
}

@media (min-width: 1900px) {
    .scroll-indicator-wrapper {
        top: 55vh;
    }
}

.mouse-icon {
    width: 20px;
    height: 32px;
    border: 2px solid var(--text-muted);
    border-radius: 12px;
    margin: 0 auto 10px;
    position: relative;
}

.mouse-icon::after {
    content: '';
    position: absolute;
    top: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    background: var(--text-muted);
    border-radius: 50%;
    animation: scrollWheel 2s infinite;
}

.scroll-text {
    font-family: var(--font-code);
    font-size: 0.7rem;
    color: var(--text-muted);
    letter-spacing: 2px;
}

@keyframes scrollWheel {
    0% {
        top: 5px;
        opacity: 1;
    }

    100% {
        top: 20px;
        opacity: 0;
    }
}


/* 4. SECTIONS COMMON */
.section-padding {
    padding: 100px 0;
}

.bg-darker {
    background-color: var(--bg-darker);
}

.section-header {
    margin-bottom: 60px;
}

.section-header .tag {
    display: block;
    font-family: var(--font-code);
    color: var(--secondary);
    margin-bottom: 5px;
    opacity: 0.8;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--text-main);
}

.highlight {
    color: var(--primary);
    position: relative;
    display: inline-block;
}

.highlight::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 0;
    width: 100%;
    height: 8px;
    background: var(--primary);
    opacity: 0.2;
    z-index: -1;
}

/* 5. ABOUT, EXPERIENCE, PORTFOLIO & CONTACT STYLES */
/* (These remain largely standard, ensuring no overflow) */

.code-window {
    background: #1e1e1e;
    border-radius: 8px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    border: 1px solid #333;
}

.window-header {
    background: #252526;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #333;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 8px;
}

.red {
    background: #ff5f56;
}

.yellow {
    background: #ffbd2e;
}

.green {
    background: #27c93f;
}

.window-header .title {
    margin-left: auto;
    margin-right: auto;
    font-family: var(--font-code);
    font-size: 0.8rem;
    color: #999;
}

.window-body {
    padding: 20px;
}

.window-body pre {
    margin: 0;
    color: #d4d4d4;
    font-family: var(--font-code);
    font-size: 0.9rem;
    white-space: pre-wrap;
}

.language-json {
    color: #ce9178;
}

.market-btn {
    display: inline-block;
    border: 1px solid #333;
    padding: 10px 20px;
    color: var(--text-main);
    font-family: var(--font-code);
    font-size: 0.85rem;
    margin-right: 10px;
    border-radius: 4px;
    background: var(--bg-card);
    margin-bottom: 10px;
}

.market-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* Experience Timeline */
.experience {
    position: relative;
}

.experience .timeline {
    position: relative;
    width: 100%;
}

.experience .timeline::after {
    content: '';
    position: absolute;
    width: 2px;
    background: var(--secondary);
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1px;
    opacity: 0.5;
}

.experience .timeline .timeline-item {
    position: relative;
    background: inherit;
    width: 50%;
    margin-bottom: 30px;
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.experience .timeline .timeline-item.left {
    left: 0;
    padding-right: 30px;
    transform: translateX(-50px);
}

.experience .timeline .timeline-item.right {
    left: 50%;
    padding-left: 30px;
    transform: translateX(50px);
}

.experience .timeline .timeline-item.animate-in {
    opacity: 1;
    transform: translateX(0);
}

.experience .timeline .timeline-item::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    top: 24px;
    right: -8px;
    background: var(--bg-dark);
    border: 2px solid var(--primary);
    border-radius: 50%;
    z-index: 1;
    box-shadow: 0 0 10px var(--primary);
}

.experience .timeline .timeline-item.right::after {
    left: -8px;
}

.experience .timeline .timeline-item::before {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    top: 22px;
    right: 10px;
    z-index: 1;
    border: 10px solid;
    border-color: transparent transparent transparent rgba(255, 255, 255, 0.1);
}

.experience .timeline .timeline-item.right::before {
    left: 10px;
    border-color: transparent rgba(255, 255, 255, 0.1) transparent transparent;
}

.experience .timeline .timeline-date {
    position: absolute;
    width: 100%;
    top: 24px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary);
    font-family: var(--font-code);
    z-index: 1;
}

.experience .timeline .timeline-item.left .timeline-date {
    text-align: left;
    left: calc(100% + 45px);
}

.experience .timeline .timeline-item.right .timeline-date {
    text-align: right;
    right: calc(100% + 45px);
}

.experience .timeline .timeline-text {
    padding: 25px;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    position: relative;
    transition: 0.3s;
}

.tech-tags span {
    font-family: var(--font-code);
    font-size: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    padding: 4px 8px;
    margin-right: 5px;
    border-radius: 4px;
    color: var(--secondary);
    display: inline-block;
    margin-bottom: 5px;
}

/* Portfolio & Terminal */
.project-card {
    background: var(--bg-card);
    border-radius: 8px;
    overflow: hidden;
    height: 100%;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.card-image {
    position: relative;
    overflow: hidden;
    height: 220px;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/*
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: 0.3s;
}

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

.tech-stack-float i {
    font-size: 2rem;
    margin: 0 10px;
    color: var(--primary);
}
*/

/* 1. Make the overlay a Flex Container */
.project-card .overlay {
    /* Basic positioning */
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(15, 23, 42, 0.9); /* Dark background */
    opacity: 0;
    transition: all 0.3s ease;
    
    /* FLEX MAGIC: Center everything and stack vertically */
    display: flex;
    justify-content: center; 
    align-items: center;

    flex-direction: column;
}

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

/* 2. Style the Icon Container (Top Line) */
.tech-stack-float {
    display: flex;          /* Keeps icons in one row */
    gap: 15px;              /* Space between the two icons */
    margin-bottom: 15px;    /* Space between icons and the text below */
    transform: translateY(20px); /* Animation start position */
    transition: transform 0.3s ease;
}

.tech-stack-float i {
    font-size: 2rem;        /* Make icons visible */
    color: var(--primary);  /* Your Cyan color */
}

/* 3. Style the Text Container (Bottom Line) */
.overlay-text {
    color: var(--text-main);
    font-family: var(--font-code); /* Typewriter font */
    font-size: 0.9rem;
    text-align: center;
    padding: 0 15px;        /* Prevent text hitting edges */
    
    transform: translateY(20px); /* Animation start position */
    transition: transform 0.3s ease 0.1s; /* 0.1s delay for nice effect */
}

/* 4. Animation on Hover */
.project-card:hover .tech-stack-float,
.project-card:hover .overlay-text {
    transform: translateY(0);
}

.card-details {
    padding: 20px;
}

.btn-terminal-outline {
    display: inline-block;
    padding: 12px 30px;
    border: 1px dashed var(--text-muted);
    color: var(--text-muted);
    font-family: var(--font-code);
}

.console-box {
    background: #000;
    border: 1px solid #333;
    padding: 20px;
    font-family: var(--font-code);
    font-size: 0.9rem;
    height: 100%;
}

.console-output {
    color: var(--text-main);
    padding-left: 20px;
    border-left: 2px solid #333;
    margin: 10px 0;
}

.terminal-window {
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid #444;
    border-radius: 6px;
    overflow: hidden;
}

.terminal-header {
    background: #333;
    padding: 8px 15px;
    display: flex;
    align-items: center;
}

.terminal-header .buttons span {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 6px;
    background: #555;
}

.terminal-header .title {
    margin: 0 auto;
    color: #aaa;
    font-size: 0.8rem;
    font-family: var(--font-code);
}

.terminal-body {
    padding: 30px;
}

.term-input {
    background: transparent;
    border: none;
    color: var(--primary);
    width: 100%;
    outline: none;
    font-family: var(--font-code);
}

.btn-execute {
    background: var(--primary);
    color: #000;
    border: none;
    padding: 10px 20px;
    font-family: var(--font-code);
    font-weight: 700;
    cursor: pointer;
}

/* PORTFOLIO FILTER CONTAINER */
ul.container-filter {
    margin: 0 0 40px 0;
    padding: 0;
    text-align: center;
    display: flex;
    justify-content: center;
    list-style-type: none;
    flex-wrap: wrap;
}

ul.container-filter li {
    margin: 5px;
}

ul.container-filter li a {
    display: block;
    font-size: 13px;
    padding: 8px 20px;
    text-transform: uppercase;
    cursor: pointer;
    font-weight: 600;
    font-family: var(--font-code);
    /* Terminal font */
    letter-spacing: 1px;
    transition: all 0.3s;
    border: 1px solid rgba(56, 189, 248, 0.1);
    background: rgba(30, 41, 59, 0.5);
    /* Semi-transparent card bg */
    color: var(--text-muted) !important;
    border-radius: 4px;
}

ul.container-filter li a:hover {
    color: var(--primary) !important;
    border-color: var(--primary);
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.2);
}

ul.container-filter li a.active {
    color: var(--bg-darker) !important;
    background-color: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.4);
}

/* MASONRY SPACING */
.portfolio-masonry .portfolioContainer .port-spacing {
    padding: 12px;
}

/* Ensure images fit well in masonry */
.project-card {
    height: 100%;
    transition: transform 0.3s ease;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.project-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
}

@media(max-width: 575.98px) {
    ul.container-filter li a {
        padding: 6px 12px;
        font-size: 11px;
    }

    .portfolio-masonry .portfolioContainer .port-spacing {
        padding: 8px;
        /* Tighter for mobile 2-column */
    }
}

ul.container-filter li a.active::before {
    content: '> ';
}

/* Our Services Section */
.services-flip-box {
    -webkit-perspective: 1000px;
    perspective: 1000px
}

.services-flip-box .services-front-flip,
.services-flip-box .services-back-flip {
    transition: -webkit-transform .5s;
    transition: transform .5s;
    transition: transform .5s, -webkit-transform .5s;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden
}

.services-flip-box .services-front-flip {
    box-shadow: 0 10px 50px rgba(20, 50, 47, .03), 0 10px 40px rgba(0, 0, 0, .03);
    min-height: 218px;
    border-radius: 5px
}

.services-flip-box .services-front-flip .p-5 {
    padding-bottom: 10px
}

.services-flip-box .services-front-flip .services-desc p {
    font-size: 14px
}

.services-flip-box .services-back-flip {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    -webkit-transform: rotateY(180deg);
    transform: rotateY(180deg);
    border-radius: 5px;
    height: 230px !important
}

.services-flip-box .services-back-flip.bg-custom {
    background: #ff9800
}

.services-flip-box:hover .services-front-flip {
    -webkit-transform: rotateY(-180deg);
    transform: rotateY(-180deg)
}

.services-flip-box:hover .services-back-flip {
    -webkit-transform: rotateY(0deg);
    transform: rotateY(0deg)
}

.services-front-flip {
    background: var(--bg-card);
}

#contactForm .prompt {
    color: #c2af1b;
}

a.typewrite span.wrap{
    color: #ffffff !important;
}

/* 10. MOBILE RESPONSIVENESS (Refined) */
@media (max-width: 991px) {
    .section-padding {
        padding: 60px 0;
    }

    .navbar-collapse {
        background: var(--bg-dark);
        padding: 20px;
        border-top: 1px solid rgba(255, 255, 255, 0.05);
        max-height: 80vh;
        overflow-y: auto;
    }

    /* Strict container control for mobile */
    .container,
    .container-fluid {
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Timeline Mobile */
    .experience .timeline::after {
        left: 8px;
    }

    .experience .timeline .timeline-item {
        width: 100%;
        padding-left: 38px;
    }

    .experience .timeline .timeline-item.left,
    .experience .timeline .timeline-item.right {
        left: 0;
        padding-right: 0;
        transform: none;
    }

    .experience .timeline .timeline-item::after {
        left: 0;
    }

    .experience .timeline .timeline-item::before {
        left: 18px;
        border-color: transparent rgba(255, 255, 255, 0.05) transparent transparent;
    }

    .experience .timeline .timeline-date {
        position: relative;
        top: 0;
        left: 0;
        text-align: left;
        margin-bottom: 5px;
        display: block;
    }

    /* Fix Hero spacing */
    .spacer-for-canvas {
        height: 100px;
    }

    /* Ensure Canvas is VISIBLE but safely behind */
    #text-canvas {
        display: block !important;
    }

    .hero-hidden-title {
        opacity: 0;
    }
}

@media (max-width: 991px) {
    .hero-section .data-block {
        border-right: 2px solid var(--primary);
    }
    .experience .timeline .timeline-item.left .timeline-date {
        left: calc(75%);
    }
}


@media (max-width: 768px) {
    .spacer-for-canvas {
        height: 60px;
    }
    .hud-top-bar-parent{
        margin-top: -25px;
    }
    .hud-top-bar{
        margin-top: -25px;
    }
    .experience .timeline .timeline-item.left .timeline-date {
        left: calc(65%);
    }
}

