.navbar, 
.card, 
.project-card, 
.timeline-card, 
.interactive-bg
{
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    
    will-change: background-color, color, backdrop-filter;
}

:root {
    --accent-color: #2563eb;
    --accent-color-rgb: 37, 99, 235;
    --gold: #D4AF37;
    --gold-dark: #B8860B;
    --border-color: #e2e8f0;
    --bg-light: #f8fafc;
    --black: #1e293b;
    --canada-red: #D80621;
    --canada-red-glow: rgba(216, 6, 33, 0.4);
    --bg-color: #f8fafc; 
    --blob-color-1: rgba(59, 130, 246, 0.08); 
    --blob-color-2: rgba(220, 38, 38, 0.06); 
    --blob-color-3: rgba(212, 175, 55, 0.06); 
}

.navbar {
    height: 58px;
    min-height: 55px;
    padding: 0;
    background: rgba(255, 255, 255, 0.3) !important;
    backdrop-filter: blur(15px) saturate(180%);
    -webkit-backdrop-filter: blur(15px) saturate(180%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999999999;
    border: none !important;
}

.navbar .container, 
.navbar .container-fluid {
    height: 100%;
    display: flex;
    align-items: center;
}

.navbar-brand {
    color: #212d40 !important;
    font-size: 1.5rem;
    font-weight: 800 !important;
    letter-spacing: -0.5px;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.navbar-brand:hover {
    color: #000000 !important;
}

.navbar-toggler {
    border: none;
    padding: 0;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.interactive-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1; 
    background: var(--bg-color);
    overflow: hidden;
    filter: blur(80px); 
}

.glow-blob {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    pointer-events: none;
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform;
}

.glow-blob:nth-child(1) { background: var(--blob-color-1); top: -10%; left: -10%; }
.glow-blob:nth-child(2) { background: var(--blob-color-2); bottom: -10%; right: -10%; }
.glow-blob:nth-child(3) { background: var(--blob-color-3); top: 50%; left: 50%; transform: translate(-50%, -50%); }

.glow-cursor {
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(63, 115, 228, 0.35) 0%, transparent 70%);
    border-radius: 55%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    will-change: left, top;
    transition: width 0.3s ease; 
}

body {
    position: relative;
    color: #1e293b;
}

main.container {
    padding-top: 75px !important; 
}

.desc-text {
    color: #323b4a !important;
    font-weight: 480;
}

.control-header-system {
    position: fixed;
    top: 75px;
    left: 0;
    width: 100%;
    z-index: 2500;
    pointer-events: none;
}
.control-header-system .container {
    pointer-events: none;
}
.fixed-back-container, .floating-menu-wrapper {
    pointer-events: auto;
    z-index: 9999 !important;
}

.floating-control-pill:hover { transform: translateY(-3px); }

.floating-control-pill {
    width: 138px !important;
    height: 58px !important; 
    padding: 0 !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(25px) saturate(200%);
    -webkit-backdrop-filter: blur(25px) saturate(200%);
    border: 1.5px solid rgba(255, 255, 255, 0.7);
    box-shadow: 0 12px 28px rgba(0,0,0,0.1), inset 0 3px 6px rgba(255, 255, 255, 0.5);
    transition: 0.3s ease;
}

.expandable-pill {
    position: relative;
    width: 138px;
    height: 58px;
    
    display: flex;
    flex-direction: column;
    justify-content: center;

    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(25px) saturate(200%);
    -webkit-backdrop-filter: blur(25px) saturate(200%);
    border: 1.5px solid rgba(255, 255, 255, 0.7);
    border-radius: 100px;
    overflow: hidden !important; 
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.1), inset 0 3px 6px rgba(255, 255, 255, 0.5);
}

.expandable-pill:hover { transform: translateY(-3px); }

.expandable-pill.active {
    width: 255px; 
    height: 255px; 
    border-radius: 30px;
    overflow: visible !important;
    justify-content: flex-start;
}

.pill-trigger-area {
    position: relative; 
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    padding: 0;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.expandable-pill.active .pill-trigger-area {
    justify-content: flex-end; 
    padding-right: 25px;
}

.theme-toggle, .menu-trigger {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    z-index: 100;
    position: relative;
    cursor: pointer;
}

.theme-toggle::before, .theme-toggle::after,
.menu-trigger::before, .menu-trigger::after {
    display: none !important; 
}

.dynamic-menu-title {
    position: absolute;
    left: 25px; 
    top: 50%; 
    font-size: 0.75rem;
    font-weight: 800;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 2px;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-50%) translateX(-10px);
}

.expandable-pill.active .dynamic-menu-title {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) translateX(0);
    transition: opacity 0.4s ease 0.3s, transform 0.4s ease 0.3s, visibility 0s 0.3s;
}

.theme-toggle {
    width: 40px;
    height: 40px;
    opacity: 1;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}


.expandable-pill.active .theme-toggle {
    width: 0;
    opacity: 0;
    margin-right: -30px; 
    transform: scale(0) translateX(-20px);
    pointer-events: none;
    transition: all 0.2s ease; 
}

.menu-trigger {
    width: 32px;
    height: 28px;
    flex-direction: column;
    gap: 6px;
}

.menu-trigger span {
    display: block;
    width: 22px;
    height: 2px;
    background: #1e293b;
    border-radius: 2px;
    margin: 0;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.expandable-pill.active .pill-trigger-area {
    justify-content: flex-end; 
    padding-right: 25px; 
}

.menu-trigger.active span:nth-child(1) { 
    transform: translateY(8px) rotate(45deg) !important; 
}

.menu-trigger.active span:nth-child(2) { 
    opacity: 0 !important; 
    transform: scale(0) !important; 
}

.menu-trigger.active span:nth-child(3) { 
    transform: translateY(-8px) rotate(-45deg) !important; 
}

.pill-menu-content {
    position: absolute;
    top: 35px;
    left: -5px;
    width: 100%;
    
    padding: 10px 15px; 
    pointer-events: none;
    opacity: 0;
    transform: translateY(8x);
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 10;
}

.expandable-pill.active .pill-menu-content {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    transition: opacity 0.4s ease 0.3s, transform 0.4s ease 0.3s;
}

.pill-menu-content a {
    display: flex; align-items: center; gap: 12px; padding: 12px 18px; margin: 2px 0;
    color: #475569; text-decoration: none; font-weight: 700; border-radius: 15px; transition: 0.2s;
}
.pill-menu-content a:hover { background: rgba(255, 255, 255, 0.5); transform: translateX(5px); color: var(--accent-color); }

main, .container {
    flex: 1 0 auto;
}

footer {
    flex-shrink: 0;
}

.award-border {
    background: rgba(255, 253, 240, 0.5) !important; 
    backdrop-filter: blur(20px) saturate(200%);
    -webkit-backdrop-filter: blur(20px) saturate(200%);
    
    border: 1.75px solid rgba(212, 175, 55, 0.5) !important;
    border-radius: 24px !important;
    
    box-shadow: 
        0 8px 25px rgba(212, 175, 55, 0.2), 
        inset 0 1px 1px rgba(255, 255, 255, 0.9) !important;
        
    transition: all 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.award-border:hover {
    transform: translateY(-12px) scale(1.02);
    
    border-color: rgba(212, 175, 55, 0.8) !important;
    
    box-shadow: 
        0 20px 45px rgba(212, 175, 55, 0.35), 
        inset 0 1px 0 rgba(255, 255, 255, 1) !important;
}

.award-border::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.1) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.col-lg-4 .card {
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.col-lg-4 .card:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1) !important;
    transform: translateY(-3px);
}

.col-lg-4 .card:first-child:hover {
    border: 1px solid var(--accent-color);
}

body.dark-mode .card.bg-danger-subtle {
    background: rgba(40, 0, 0, 0.4) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

body.dark-mode .card.bg-danger-subtle:hover {
    background: rgba(60, 0, 0, 0.6) !important; 
    border-color: rgba(220, 38, 38, 0.5) !important;
    box-shadow: 0 15px 40px rgba(220, 38, 38, 0.25) !important;
    transform: translateY(-5px);
}

body.dark-mode .card.bg-danger-subtle h5,
body.dark-mode .card.bg-danger-subtle:hover h5 {
    color: #fca5a5 !important;
}

body.dark-mode .card.bg-danger-subtle p,
body.dark-mode .card.bg-danger-subtle:hover p {
    color: #cbd5e1 !important;
}

.project-card {
    background: rgba(255, 255, 255, 0.5) !important;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    
    border: 1px solid rgba(255, 255, 255, 0.6) !important;
    border-radius: 24px !important; 
    
    overflow: hidden;
    height: 100%;
    position: relative;
    transition: all 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
    
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.05),
        inset 0 1px 1px rgba(255, 255, 255, 0.8);
}

.project-card:hover {
    transform: translateY(-12px) scale(1.02);
}

.project-media-container {
    border-top-left-radius: 23px; 
    border-top-right-radius: 23px;
    margin: 1px; 
    overflow: hidden;
}

.project-card .card-body {
    padding: 1.5rem;
    background: transparent;
    overflow-y: visible !important;
}

.project-media-container::after {
    display: none !important; 
}

.project-media-container img,
.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s cubic-bezier(0.25, 1, 0.35, 1);
    will-change: transform;
}

.project-card:hover .project-media-container img,
.project-card:hover .carousel-item.active img {
    transform: scale(1.1);
}

.project-media-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.2) 100%);
    opacity: 0;
    transition: opacity 0.6s ease;
    pointer-events: none;
}

.project-card:hover .project-media-container::after {
    opacity: 1;
}

.proof-button {
    display: flex;
    align-items: center;
    padding: 8px 16px;
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    color: #475569;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.proof-button i {
    font-size: 0.9rem;
    color: var(--accent-color);
}

.proof-button span {
    letter-spacing: 0.3px;
}

.proof-button:hover {
    background-color: white;
    border-color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.proof-button .fa-chevron-right {
    opacity: 0.3;
    transition: transform 0.2s ease;
}

.proof-button:hover .fa-chevron-right {
    opacity: 1;
    transform: translateX(3px);
}

aside .card {
    background: rgba(255, 255, 255, 0.45) !important;
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.6) !important;
    border-radius: 24px !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04) !important;
    transition: transform 0.3s ease;
}

aside .card:hover {
    transform: translateY(-5px);
}

.badge.border {
    background: rgba(255, 255, 255, 0.5) !important;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.7) !important;
    color: #475569 !important;
    border-radius: 10px !important;
}

.bg-danger-subtle {
    background: rgba(220, 38, 38, 0.08) !important; 
    border-left: 5px solid rgba(220, 38, 38, 0.5) !important;
}

.teammate-pill {
    background: rgba(255, 255, 255, 0.6) !important;
    border: 1px solid rgba(255, 255, 255, 0.8);
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    color: #334155;
    transition: all 0.3s ease;
}

.teammate-pill.linked:hover {
    background: rgba(37, 99, 235, 0.1) !important;
    color: #2563eb;
    border-color: rgba(37, 99, 235, 0.3);
}

.teammate-pill {
    display: inline-flex;
    align-items: center;
    padding: 4px 14px;
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 50px;
    font-size: 0.85rem;
    color: #475569;
    text-decoration: none;
    transition: all 0.2s ease;
}

.teammate-pill.linked {
    cursor: pointer;
}

.teammate-pill.linked:hover {
    background-color: #eef2ff;
    border-color: #2563eb;
    color: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.small-icon {
    font-size: 0.75rem;
    opacity: 0.5;
    transition: opacity 0.2s ease;
}

.teammate-pill.linked:hover .small-icon {
    opacity: 1;
}

.ratio {
    border-top-left-radius: 14px;
    border-top-right-radius: 14px;
    overflow: hidden;
    transition: filter 0.3s ease, transform 0.3s ease;
}

.project-card:hover .ratio {
    transform: scale(1.02);
}

.carousel-control-prev, .carousel-control-next {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.project-card:hover .carousel-control-prev,
.project-card:hover .carousel-control-next {
    opacity: 0.7;
}

.timeline-container {
    position: relative;
    padding-left: 0;
    margin-left: 20px;
}

.timeline-container::before {
    content: '';
    position: absolute;
    left: 0;
    top: 24px;
    bottom: 0;
    width: 2px;
    background-color: var(--border-color);
    z-index: 1;
}

.competition-line::before {
    background-color: #2563eb;
    box-shadow: 0 0 8px rgba(37, 99, 235, 0.3);
}

.certificate-line::before {
    background-color: #10b981;
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.3);
}

.line-segment {
    display: none !important;
}

.timeline-row {
    position: relative;
    margin-bottom: 2.5rem;
    padding-left: 45px;
    perspective: 1200px;
    z-index: 2;
}

.timeline-card {
    background: rgba(255, 255, 255, 0.45) !important;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    
    border: 1px solid rgba(255, 255, 255, 0.6) !important;
    border-radius: 20px !important; 
    
    padding: 1.5rem;
    position: relative;
    
    box-shadow: 
        0 10px 25px rgba(0, 0, 0, 0.04),
        inset 0 1px 1px rgba(255, 255, 255, 0.8) !important;
        
    transition: all 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
    z-index: 2;
}

.timeline-row:hover .timeline-card {
    background: color-mix(in srgb, var(--accent-color), transparent 85%) !important;
    border-color: var(--accent-color) !important;
    transform: translateY(-8px) scale(1.01);
    
    box-shadow: 0 15px 35px color-mix(in srgb, var(--accent-color), transparent 80%) !important;
}

body.dark-mode .timeline-row:hover .timeline-dot {
    background-color: var(--accent-color) !important;
    
    box-shadow: 0 0 15px var(--accent-color), 
                0 0 5px rgba(255, 255, 255, 0.5) !important;
    
    transform: translateX(-50%) scale(1.2);
}

.timeline-dot {
    position: absolute;
    left: 1px;
    transform: translateX(-50%);
    top: 24px;
    width: 28px;
    height: 28px;
    background-color: white;
    border: 3.5px solid var(--accent-color);
    border-radius: 50%;
    z-index: 10;
    transition: all 0.3s ease-out;
}

.timeline-row:hover .timeline-dot {
    background-color: var(--accent-color);
    transform: translateX(-50%) scale(1.2);

}

@keyframes gold-breath {
    0%, 100% { box-shadow: inset 0 0 8px rgba(212, 175, 55, 0.3), 0 0 12px var(--gold), 0 0 20px rgba(212, 175, 55, 0.4); }
    50% { box-shadow: inset 0 0 12px rgba(212, 175, 55, 0.7), 0 0 20px var(--gold), 0 0 35px rgba(212, 175, 55, 0.7); }
}

.reset-btn-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 30px;
    
    border-radius: 100px !important;
    
    background: rgba(255, 255, 255, 0.4) !important;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1.5px solid rgba(255, 255, 255, 0.7) !important;
    
    color: var(--black) !important;
    font-weight: 800;
    font-size: 0.95rem;
    text-decoration: none;
    
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    cursor: pointer;
}

.reset-btn-pill:hover {
    transform: translateY(-4px) scale(1.02);
    background: rgba(255, 255, 255, 0.6) !important;
    border-color: var(--accent-color) !important;
    color: var(--accent-color) !important;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

body.dark-mode .reset-btn-pill {
    background: rgba(15, 23, 42, 0.7) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    color: #cbd5e1 !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

body.dark-mode .reset-btn-pill:hover {
    background: rgba(30, 41, 59, 0.9) !important;
    border-color: #60a5fa !important;
    color: #ffffff !important;
}

.filter-btn {
    background: rgba(255, 255, 255, 0.5); 
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.65);
    border-radius: 50px;
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    padding: 10px 24px;
    font-size: 0.85rem;
    font-weight: 700;
    color: #475569;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.filter-btn:hover {
    transform-origin: center center !important;
    transform: translateY(-4px) !important; 
    box-shadow: 
        0 12px 24px rgba(0, 0, 0, 0.08);
}

.filter-btn.btn-gold {
    background: rgba(255, 255, 255, 0.5); 
    color: var(--gold-dark) !important;
}

.filter-btn.btn-canada {
    border-color: transparent !important;
    background: rgba(255, 255, 255, 0.5) !important;
    color: var(--canada-red) !important;
}

.filter-btn.active {
    background: color-mix(in srgb, var(--black), transparent 20%) !important;
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
    border: 1px solid color-mix(in srgb, var(--black), transparent 70%);
    color: white;
    box-shadow: 
        0 8px 25px -5px color-mix(in srgb, var(--black), transparent 40%),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.filter-btn.btn-gold.active {
    background: linear-gradient(
        135deg, 
        color-mix(in srgb, var(--gold), transparent 15%) 0%, 
        color-mix(in srgb, var(--gold-dark), transparent 15%) 100%
    ) !important;
    box-shadow: 
        0 8px 25px -5px color-mix(in srgb, var(--gold), transparent 40%),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    border-color: color-mix(in srgb, var(--gold), transparent 60%);
    color: white !important;
}

.filter-item {
    transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes filterFlyIn {
    0% { opacity: 0; transform: translateY(20px) scale(0.98); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

.filter-btn.all.active {
    background: var(--black) !important;
    color: white !important;
    border-color: var(--black) !important;
}

.btn-canada {
    border-color: var(--canada-red);
    color: var(--canada-red);
}

.btn-canada.active {
    background: var(--canada-red) !important;
    color: white !important;
    border-color: var(--canada-red) !important;
}

.btn-canada::after {
    content: '🍁';
    position: absolute;
    right: 6px;
    bottom: 2px;
    font-size: 1.4rem;
    opacity: 0.2;
    transform: rotate(-15deg);
    pointer-events: none;
    border-color: var(--canada-red) !important;
}

.btn-canada.active::after {
    opacity: 0;
}

.timeline-date {
    font-size: 0.75rem;
    font-weight: 800;
    color: #64748b;
    background: #f1f5f9;
    padding: 4px 12px;
    border-radius: 6px;
    margin-bottom: 0.8rem;
    display: inline-block;
}

.event-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}

.site-footer {
    margin-top: 5rem;
    padding: 3rem 1rem;
    background: #ffffff;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.footer-content {
    max-width: 800px;
    margin: 0 auto;
}

.copyright {
    font-size: 0.85rem;
    color: #64748b;
    margin-bottom: 1.5rem;
}

.hero {
    padding: 160px 0 100px; 
    background: transparent; 
    position: relative;
    perspective: 1000px;
}

.hero h1 {
    font-size: 4rem; 
    letter-spacing: -2px;
    color: #1e293b;
    margin-bottom: 15px;
}

.hero .lead {
    font-weight: 600;
    color: #64748b !important;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 1rem;
}

.hero .btn-primary::before,
.hero .btn-outline-dark::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
    z-index: -1;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.4s ease;
}

.hero .btn-primary {
    height: 58px !important;
    padding: 0 40px !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 100px !important;
    
    font-size: 1.15rem !important;
    font-weight: 800 !important;
    letter-spacing: -0.3px;
    color: var(--accent-color) !important;

    background: rgba(255, 255, 255, 0.45) !important;
    backdrop-filter: blur(20px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
    border: 1.5px solid rgba(255, 255, 255, 0.7) !important;
    
    box-shadow: 
        0 15px 35px rgba(0, 0, 0, 0.1), 
        inset 0 3px 6px rgba(255, 255, 255, 0.5) !important;
        
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
    position: relative;
    overflow: hidden;
    z-index: 1;
    
    padding: 16px 40px !important; 
    min-width: 170px !important;
    font-size: 1.2rem !important;
    font-weight: 700 !important;
    border-radius: 50px !important;
    transition: all 0.3s ease !important;
    transform: translateZ(50px) !important; 
    -webkit-transform: translateZ(50px) !important;
    cursor: pointer;
    text-decoration: none;
}

.hero .btn-primary, 
.hero .btn-outline-dark {
    min-width: 200px !important;
}

.hero .btn-primary::before {
    background: radial-gradient(circle, rgba(37, 99, 235, 0.15) 0%, transparent 70%);
}

.hero .btn-outline-dark {
    background: rgba(255, 255, 255, 0.4);
    color: #475569;
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05), inset 0 1px 0 rgba(255, 255, 255, 0.8);
    height: 58px;
    font-size:1.15rem;
    padding: 16px 40px !important; 
    min-width: 170px !important;
    font-size: 1.2rem !important;
    font-weight: 700 !important;
    border-radius: 50px !important;
    transition: all 0.3s ease !important;
    transform: translateZ(50px) !important; 
    -webkit-transform: translateZ(50px) !important;
    position: relative;
    z-index: 1;
    overflow: hidden; 
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.65);
    cursor: pointer;
    text-decoration: none;
}

.hero .btn-outline-dark::before {
    background: radial-gradient(circle, rgba(30, 41, 59, 0.12) 0%, transparent 70%);
}

.hero .btn-primary:hover::before,
.hero .btn-outline-dark:hover::before {
    transform: translate(-50%, -50%) scale(1.5);
    opacity: 1;
}

.award-banner {
    background: linear-gradient(45deg, #ffd700, #ffae00);
    color: #5b4300;
    font-weight: 700;
    font-size: 0.75rem;
    padding: 5px 12px;
    border-radius: 50px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 15px;
}

@media (max-width: 768px) {
    .timeline-row { padding-left: 35px; }
    .timeline-container { margin-left: 20px; }
    .site-footer { padding: 2rem 1rem; }
}

#about .timeline-card {
    background: rgba(255, 255, 255, 0.45) !important;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.6) !important;
    border-radius: 24px !important;
    padding: 2.5rem !important;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.8) !important;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.timeline-card:hover {
    transform: translateY(-8px) scale(1.01);
    background: rgba(255, 255, 255, 0.55) !important;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 1) !important;
}

#about .desc-text {
    font-size: 1.1rem;
    color: #334155; 
    line-height: 1.8;
    font-weight: 500;
    margin: 0;
}

#about h3 i {
    color: var(--accent-color) !important;
    filter: drop-shadow(0 0 8px rgba(37, 99, 235, 0.3));
}

body.dark-mode {
    --bg-color: #0f172a !important;
    background-color: var(--bg-color) !important;
    color: #cbd5e1 !important;
}

body.dark-mode .interactive-bg {
    background: #020617 !important;
    filter: blur(100px) brightness(1.2);
}

body.dark-mode .interactive-bg .glow-blob {
    opacity: 0.4;
}

body.dark-mode h1, body.dark-mode h2, body.dark-mode h3, 
body.dark-mode h4, body.dark-mode h5, body.dark-mode h6,
body.dark-mode .navbar-brand,
body.dark-mode .event-name {
    color: #f8fafc !important;
    text-shadow: 0 0 15px rgba(0, 0, 0, 0.8) !important;
}

body.dark-mode p, 
body.dark-mode span, 
body.dark-mode div, 
body.dark-mode a, 
body.dark-mode i, 
body.dark-mode .desc-text, 
body.dark-mode .text-muted, 
body.dark-mode .lead {
    color: #cbd5e1 !important;
    text-shadow: none !important;
}

body.dark-mode .navbar,
body.dark-mode .project-card,
body.dark-mode .timeline-card,
body.dark-mode #about .timeline-card,
body.dark-mode aside .card,
body.dark-mode .menu-dropdown,
body.dark-mode .fixed-back-container .uni-back-link,
body.dark-mode .expandable-pill, 
body.dark-mode .floating-control-pill {
    background: rgba(15, 23, 42, 0.85) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6) !important;
}

body.dark-mode .award-border .badge.bg-warning {
    background: #fbbf24 !important;
    color: #000000 !important;
    font-weight: 800 !important;
    border: none !important;
    text-shadow: none !important;
}

body.dark-mode #trophy-room .shelf-grid .trophy-item .trophy-icon,
body.dark-mode #trophy-room .shelf-grid .trophy-item:hover .trophy-icon {
    color: rgba(255, 174, 0, 0.7) !important;
    -webkit-text-fill-color: rgba(255, 174, 0, 0.7) !important;
    
    filter: none !important;
    -webkit-filter: none !important;
    filter: drop-shadow(0 0 10px rgba(255, 174, 0, 0.6)) !important;
    
    color-scheme: light; 
    
    background-color: transparent !important;
}

body.dark-mode .award-border .badge.bg-warning i,
body.dark-mode .award-border .fa-trophy {
    color: #000000 !important;
    text-shadow: none !important;
    filter: none !important;
}

body.dark-mode .badge.bg-warning {
    color: #000000 !important;
    background-color: #D4AF37 !important;
}

body.dark-mode .badge.bg-warning i {
    color: #000000 !important;
}

body.dark-mode .hero .btn-primary {
    background: rgba(37, 99, 235, 0.2) !important;
    border: 1px solid rgba(59, 130, 246, 0.5) !important;
    color: #60a5fa !important;
    box-shadow: 0 0 15px rgba(37, 99, 235, 0.3) !important;
}

body.dark-mode .hero .btn-outline-dark {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: #cbd5e1 !important;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2) !important;
}

body.dark-mode .hero .btn-outline-dark:hover {
    background: rgba(255, 255, 255, 0.15) !important;
    border-color: #ffffff !important;
    color: #ffffff !important;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.2) !important;
}

body.dark-mode .timeline-card:hover {
    box-shadow: 0 20px 50px rgba(0,0,0,0.8), inset 0 1px 0 rgba(255,255,255,0.1) !important;
}

body.dark-mode .award-border {
    background: rgba(20, 15, 0, 0.7) !important;
    border-color: rgba(212, 175, 55, 0.5) !important;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.2) !important;
}

body.dark-mode .bg-danger-subtle {
    background: rgba(40, 0, 0, 0.6) !important;
    border-left-color: #ef4444 !important;
}

body.dark-mode .badge.border,
body.dark-mode .teammate-pill,
body.dark-mode .proof-button,
body.dark-mode .filter-btn {
    background: rgba(255, 255, 255, 0.05);
    color: #e2e8f0 !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
}

body.dark-mode .teammate-pill:hover,
body.dark-mode .proof-button:hover,
body.dark-mode .filter-btn:hover {
    background: rgba(255, 255, 255, 0.15) !important;
    color: white !important;
}

body.dark-mode .filter-btn.active {
    background: #3b82f6 !important;
    color: white !important;
    border-color: #3b82f6 !important;
}

body.dark-mode .filter-btn.btn-gold.active {
    background: linear-gradient(
        135deg, 
        rgba(212, 175, 55, 0.85) 0%, 
        rgba(184, 134, 11, 0.95) 100%
    ) !important;
    border-color: #D4AF37 !important;
    color: #ffffff !important;
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
}

body.dark-mode .filter-btn.btn-canada {
    background: rgba(216, 6, 33, 0.15) !important; 
    border: 1px solid rgba(216, 6, 33, 0.4) !important;
    color: #ff8a98 !important;
}

body.dark-mode .filter-btn.btn-canada:hover {
    background: rgba(216, 6, 33, 0.25) !important;
    border-color: rgba(216, 6, 33, 0.6) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 15px rgba(216, 6, 33, 0.2) !important;
}

body.dark-mode .filter-btn.btn-gold {
    background: rgba(212, 175, 55, 0.15) !important;
    border: 1px solid rgba(212, 175, 55, 0.4) !important;
    color: #FCE694 !important;
}

body.dark-mode .filter-btn.btn-gold i {
    color: #FCE694 !important;
}

body.dark-mode .filter-btn.btn-gold.active i {
    color: white !important;
}

body.dark-mode .timeline-container::before {
    background-color: rgba(255, 255, 255, 0.1) !important;
}

body.dark-mode .timeline-dot {
    background-color: #0f172a !important;
    box-shadow: 0 0 10px var(--accent-color) !important;
}

body.dark-mode .menu-trigger span {
    background: #fff;
}

body.dark-mode .timeline-date {
    background-color: #e2e8f0 !important;
    color: #000000 !important;
    font-weight: 800 !important;
    border: 1px solid #cbd5e1 !important;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2) !important;
}

.hero .container {
    transition: transform 0.1s ease-out;
    transform-style: preserve-3d;
}

.hero .btn-primary:hover {
    transform: translateY(-3px) scale(1.02) translateZ(50px) !important;
    -webkit-transform: translateY(-3px) scale(1.02) translateZ(50px) !important;
    
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.4) !important;
}

.hero .btn-outline-dark:hover {
    transform: translateY(-3px) scale(1.02) translateZ(50px) !important;
    -webkit-transform: translateY(-3px) scale(1.02) translateZ(50px) !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1) !important;
}

body.dark-mode .hero .btn-primary:hover {
    transform: translateY(-3px) scale(1.02) translateZ(50px) !important;
    box-shadow: 0 0 25px rgba(37, 99, 235, 0.6) !important;
    color: #ffffff !important;
}

body.dark-mode .hero .btn-outline-dark:hover {
    border-color: #ffffff !important;
    color: #ffffff !important;
    box-shadow: 0 10px 25px rgba(255, 255, 255, 0.1) !important;
    transform: translateY(-3px) scale(1.02) translateZ(50px) !important;
}

.site-footer {
    padding: 15px 0;
    background: rgba(255, 255, 255, 0.75) !important;
    backdrop-filter: blur(15px) saturate(180%);
    -webkit-backdrop-filter: blur(15px) saturate(180%);
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    color: #1e293b;
}

body.dark-mode .site-footer {
    background: rgba(15, 23, 42, 0.85) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.footer-main-row {
    font-size: 0.85rem;
    margin-bottom: 2px;
}

.footer-sep {
    margin: 0 8px;
    opacity: 0.3;
}

p.snow {
    margin: 0;
    color: #676767;
    font-size: 0.8rem;
    opacity: 0.6;
    letter-spacing: 0.2px;
    transition: opacity 0.3s ease, color 0.3s ease;
}

a.snow:hover {
    opacity: 1;
    color: #000000 !important;
}

.footer-link {
    color: inherit;
    opacity: 0.6;
    font-size: 1rem;
    margin: 0 10px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.footer-link:hover {
    opacity: 1;
    color: #0A66C2;
    transform: translateY(-2px);
    display: inline-block;
}

.git-lab:hover {
        color: #FC6D26;
}
.git-hub:hover {
    color: #24292E;
}

body.dark-mode .pill-menu-content a { color: #cbd5e1; }
body.dark-mode .theme-toggle { color: #fbbf24; }
body.dark-mode .dynamic-menu-title { color: rgba(255, 255, 255, 0.6); }

main.project-detail-content { padding-top: 160px !important; min-height: 100vh; }

.gold-glow .timeline-card {
    background: rgba(255, 253, 240, 0.3) !important;
    backdrop-filter: blur(20px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
    
    border: 2px solid rgba(212, 175, 55, 0.6) !important;
    
    box-shadow: 
        0 10px 30px rgba(212, 175, 55, 0.15),
        inset 0 0 20px rgba(212, 175, 55, 0.2),
        inset 0 0 2px rgba(255, 255, 255, 0.5) !important;
}

body.dark-mode .gold-glow .timeline-card {
    background: rgba(15, 23, 42, 0.3) !important;
    border-color: rgba(212, 175, 55, 0.8) !important;
    
    box-shadow: 
        0 0 25px rgba(212, 175, 55, 0.3),
        inset 0 0 15px rgba(212, 175, 55, 0.2) !important;
}

.gold-glow .timeline-dot {
    border-color: #D4AF37 !important;
    background-color: white !important;
}

.gold-glow:hover .timeline-dot {
    background-color: #D4AF37 !important;
    transform: translateX(-50%) scale(1.2);
}

.gold-glow:hover .timeline-dot {
    background-color: #D4AF37 !important; 
    transform: translateX(-50%) scale(1.2);
}

.gold-glow:hover .timeline-card {
    background: rgba(255, 253, 240, 0.4) !important;
    border-color: #D4AF37 !important;
    transform: translateY(-8px) scale(1.01);
    box-shadow: 0 15px 45px rgba(212, 175, 55, 0.35) !important;
}


.project-card.award-border {
    background: rgba(255, 253, 240, 0.25) !important;
    backdrop-filter: blur(20px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
    
    border: 2px solid rgba(212, 175, 55, 0.6) !important;
    
    animation: gold-breath 3s infinite ease-in-out !important;
    
    overflow: visible !important;
}

body.dark-mode .project-card.award-border {
    background: rgba(15, 23, 42, 0.3) !important;
    border-color: rgba(212, 175, 55, 0.8) !important;
}

.project-card.award-border:hover {
    animation: none !important;
    transform: translateY(-12px) scale(1.02) !important;
    border-color: #D4AF37 !important;
    box-shadow: 
        0 20px 45px rgba(212, 175, 55, 0.35), 
        inset 0 0 20px rgba(212, 175, 55, 0.2) !important;
}

body.dark-mode .project-card.award-border .badge.bg-warning {
    color: #000000 !important;
}

body.dark-mode .project-card.award-border .badge.bg-warning i {
    color: #000000 !important;
}

html {
    -webkit-font-smoothing: antialiased;
    scroll-behavior: smooth;
    overflow-y: scroll !important; 
    overflow-x: hidden !important;
    cursor: default;
}

body {
    overflow: hidden !important; 
    margin: 0;
}

.interactive-bg {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100dvh !important;
    z-index: -1 !important;
    pointer-events: none !important;
    overflow: hidden !important;
}

@keyframes RainFall {
    0% { transform: translateY(-10vh) rotate(0deg) scale(1); opacity: 1; }
    100% { transform: translateY(110vh) rotate(360deg) scale(1.5); opacity: 0; }
}

.emoji-drop {
    position: fixed;
    top: -10%;
    z-index: 99999 !important;
    pointer-events: none;
    user-select: none;
    animation: RainFall linear forwards;
}

.typing-cursor {
    display: inline-block;
    color: var(--accent-color);
    font-weight: 600;
    margin-left: 2px;
    position: relative;
    top: -3px;
    animation: blink 1s step-end infinite;
}

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

body.dark-mode .typing-text,
body.dark-mode .typing-cursor { 
    color: #60a5fa !important; 
}

#progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 5px;
    background: #0052D4;
    z-index: 10001;
    width: 0%;
    transition: width 0.1s ease-out;
}

.dark-mode #progress-bar, 
[data-theme='dark'] #progress-bar {
    background: #ffffff !important;
    box-shadow: 0 0 20px rgba(255, 255, 255, 1), 0 0 10px rgba(255, 255, 255, 0.8) !important;
    height: 10px;
}

body.dark-mode .filter-btn.btn-canada.active {
    background-color: #FF1A35 !important;
    border-color: #FF1A35 !important;
    color: #ffffff !important;
    box-shadow: 0 0 20px rgba(255, 26, 53, 0.6) !important;
}

#about-me {
    scroll-margin-top: 100px;
}

#projects {
    scroll-margin-top: 100px;
}

.next-challenge-widget {
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(25px) saturate(200%);
    -webkit-backdrop-filter: blur(25px) saturate(200%);
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 24px;
    padding: 2.5rem 2rem;
    position: relative;
    overflow: hidden;
    text-align: center;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05), inset 0 2px 5px rgba(255, 255, 255, 0.5);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.next-challenge-widget:hover {
    transform: translateY(-5px);
}

body.dark-mode .next-challenge-widget {
    background: rgba(15, 23, 42, 0.6);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4), inset 0 1px 1px rgba(255, 255, 255, 0.1);
}

.countdown-display {
    font-size: 2rem;
    font-weight: 650;
    letter-spacing: -1px;
    line-height: 1.15;
    text-align: right;
}

.next-challenge-widget {
    padding: 3rem 4rem !important;
    border-radius: 30px;
}

@media (max-width: 992px) {
    .countdown-display {
        font-size: 1.8rem;
    }
}

.row.g-3 {
    --bs-gutter-x: 1rem;
    --bs-gutter-y: 1rem;
}

@media (max-width: 768px) {
    .next-challenge-widget {
        padding: 2rem 1.5rem !important;
        text-align: center !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
    }

    .widget-content {
        width: 100% !important;
        margin: 0 auto !important;
        padding: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
    }

    .info-side {
        width: 100% !important;
        margin-bottom: 1.5rem !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
    }

    .timer-side {
        width: 100% !important;
        display: flex !important;
        justify-content: center !important;
        margin: 0 auto !important;
    }

    .countdown-display {
        display: block !important;
        text-align: center !important;
        width: 100% !important;
        font-size: 1.6rem !important;
    }
}

.digit-flip {
    display: inline-block;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.2s;
}

.digit-changing {
    transform: translateY(-10px);
    opacity: 0;
}

.h-badge {
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 0.65rem;
    font-weight: 850;
    text-transform: uppercase;
    display: inline-block;
    letter-spacing: 0.5px;
    background: rgba(206, 206, 206, 0.45); 
    color: rgb(81, 81, 81); 
}

body.dark-mode .gold-glow .event-name {
    color: #D4AF37 !important;
}

.card, 
.project-card, 
.timeline-card,
.next-challenge-widget {
    position: relative;
}

.card::after, 
.project-card::after, 
.timeline-card::after,
.next-challenge-widget::after {
    content: '';
    position: absolute;
    top: 0; 
    left: 0; 
    width: 100%;
    height: 0px;
    
    border-top-left-radius: inherit;
    border-top-right-radius: inherit;
    
    border-bottom-left-radius: 40% 6px;
    border-bottom-right-radius: 60% 10px;
    
    background: linear-gradient(to bottom, rgba(255,255,255,0.95), rgba(255,255,255,0.7));
    box-shadow: inset 0 -2px 4px rgba(148, 163, 184, 0.2), 
                0 4px 10px rgba(255, 255, 255, 0.4); 
    filter: blur(0.5px);
    pointer-events: none;
    z-index: 50;
    
    transition: height 6s cubic-bezier(0.25, 1, 0.5, 1), opacity 3s ease-in;
    opacity: 0;
}

.project-card:nth-child(even)::after,
.timeline-card:nth-child(even)::after,
.card:nth-child(even)::after {
    border-bottom-left-radius: 70% 12px;
    border-bottom-right-radius: 30% 5px;
}

body.blizzard-mode .card::after, 
body.blizzard-mode .project-card::after, 
body.blizzard-mode .timeline-card::after,
body.blizzard-mode .next-challenge-widget::after {
    height: 18px;
    opacity: 1;
}

.interactive-bg {
    transition: filter 3s ease !important;
}

body.blizzard-mode .interactive-bg {
    filter: blur(20px) brightness(0.6) !important;
}


#terminal-overlay {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%; 
    height: 100%;
    background-color: rgba(5, 5, 5, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 9999999;
    color: #00ff00;
    font-family: 'Courier New', Courier, monospace;
    padding: 2rem;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    
    opacity: 0;
    transform: scaleY(0.01);
    transition: transform 0.3s cubic-bezier(0.86, 0, 0.07, 1), opacity 0.3s;
}

#terminal-overlay.active {
    opacity: 1;
    transform: scaleY(1);
}

.terminal-output {
    white-space: pre-wrap;
    line-height: 1.5;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.terminal-input-line {
    display: flex;
    align-items: center;
    font-size: 1.1rem;
}

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

#terminal-input-field {
    background: transparent;
    border: none;
    color: #00ff00;
    font-family: 'Courier New', Courier, monospace;
    font-size: 1.1rem;
    flex-grow: 1;
    outline: none;
}

.term-keyword { color: #3b82f6; font-weight: bold; }
.term-error { color: #ff3333; }

body.terminal-active .navbar,
body.terminal-active .site-footer,
body.terminal-active footer,
body.terminal-active .interactive-bg {
    opacity: 0 !important;
    pointer-events: none !important;
    transition: opacity 0.3s ease;
}

body.terminal-active {
    overflow: hidden !important;
    height: auto;
}

#terminal-overlay {
    overflow-y: auto;
    -ms-overflow-style: none;  
    scrollbar-width: none; 
    background-color: rgba(5, 5, 5, 0.97) !important; 
}

#terminal-overlay::-webkit-scrollbar {
    display: none;
}

body.dark-mode #terminal-overlay,
body.dark-mode #terminal-overlay *,
body.dark-mode #terminal-input-field,
body.dark-mode .terminal-prompt {
    color: #00ff00 !important;
    background-color: transparent;
}

.terminal-nav-link {
    color: rgba(37, 37, 37, 0.7);
    transition: all 0.3s ease;
    text-decoration: none;
    display: flex;
    align-items: center;
}

.terminal-nav-link:hover {
    color: #000000 !important;
    filter: drop-shadow(0 0 5px rgba(0, 0, 0, 0.3));
    transform: translateY(-1px);
}

.dark-mode .terminal-nav-link:hover {
    color: #ffffff !important;
}

.terminal-icon {
    stroke-width: 2.5;
}

.minimal-ticker {
    width: 100%;
    overflow: hidden;
    padding: 20px 0; 
    background: transparent;
    
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.ticker-track {
    display: flex;
    width: max-content;
    animation: scroll-loop 40s linear infinite;
}

.ticker-text {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 0.8rem;
    font-weight: 500;
    color: #888888;
    letter-spacing: 0.1em;
    padding: 0 50px;
    text-transform: uppercase;
    display: inline-block;
}

@keyframes scroll-loop {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.minimal-ticker {
    width: 100%;
    overflow: hidden;
    padding: 10px 0;
    background: transparent;
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.site-footer {
    padding-top: 0;
    padding-bottom: 20px;
}

.footer-main-row {
    margin-top: 10px;
    font-size: 0.85rem;
}


.footer-social-row {
    margin-top: 5px !important;
}

.footer-link {
    margin: 0 8px;
    font-size: 1.1rem;
}

.ticker-track {
    display: flex;
    width: max-content;
    animation: scroll-loop 40s linear infinite;
}

.ticker-text {
    font-family: -apple-system, system-ui, sans-serif;
    font-size: 0.8rem;
    font-weight: 500;
    color: #888;
    letter-spacing: 0.1em;
    padding: 0 50px;
    text-transform: uppercase;
    white-space: nowrap;
}

@keyframes scroll-loop {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

#trophy-room {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(10, 10, 12, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

#trophy-room.active {
    opacity: 1;
}

.trophy-content {
    position: relative;
    width: 90%;
    max-width: 1000px;
    max-height: 85vh;
    overflow-y: auto;
    padding: 40px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
}

.close-btn {
    position: absolute;
    top: 20px; right: 25px;
    background: none; border: none;
    color: #fff; font-size: 1.5rem;
    cursor: pointer; opacity: 0.5;
    transition: 0.3s;
}

.close-btn:hover {
    opacity: 1; transform: scale(1.1); color: #ffae00;
}

.trophy-title {
    text-align: center; color: #fff;
    font-size: 2rem; font-weight: 900; letter-spacing: 4px;
    margin-bottom: 5px;
}

.trophy-subtitle {
    text-align: center; color: #aaa;
    font-size: 0.8rem; letter-spacing: 2px;
    margin-bottom: 40px; text-transform: uppercase;
}

.shelf-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 30px 20px;
}

.trophy-icon {
    font-size: 2.5rem;
    color: rgba(255, 174, 0, 0.7);
    margin-bottom: 15px;
    filter: drop-shadow(0 0 5px rgba(255,174,0,0.2));
    transition: 0.3s;
}

.trophy-item {
    display: flex; flex-direction: column; align-items: center;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(255, 174, 0, 0.2);
    transition: transform 0.3s ease, border-color 0.3s ease;
    height: 100%;
}

.trophy-item:hover {
    transform: translateY(-10px);
    border-color: rgba(255, 174, 0, 0.8);
}

.trophy-info {
    text-align: center; display: flex; flex-direction: column;
    flex-grow: 1; width: 100%;
}

.t-year {
    font-size: 0.6rem; color: #888; letter-spacing: 1px;
    margin-top: auto;
}

.trophy-item:hover .trophy-icon {
    color: #ffae00; filter: drop-shadow(0 0 15px rgba(255,174,0,0.6));
}

.t-name {
    font-size: 0.75rem; color: #ddd; font-weight: bold; margin-bottom: 3px; line-height: 1.2;
}

.trophy-content::-webkit-scrollbar {
    width: 14px;
}

.trophy-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 10px;
    margin-block: 25px;
}

.trophy-content::-webkit-scrollbar-thumb {
    background: rgba(255, 174, 0, 0.3);
    border-radius: 10px;
    border: 4px solid transparent;
    background-clip: padding-box;
}

.trophy-content::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 174, 0, 0.8);
    border: 4px solid transparent;
    background-clip: padding-box;
}

#android-toast {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(50, 50, 50, 0.95);
    color: #fff;
    padding: 12px 24px;
    border-radius: 50px;
    font-size: 0.85rem;
    z-index: 10000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    font-family: 'Roboto', sans-serif;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
}

#android-toast.show {
    opacity: 1;
}

.desc-text strong {
    font-size: 1.01em;
    font-weight: 750;
    color: #333;
}

body.dark-mode .desc-text strong {
    color: #ffffff;
}

.project-media-container {
    background-color: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-media-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
