/* Base styles */
html {
    overflow: hidden;
    height: 100%;
    position: fixed;
    width: 100%;
    --vh: 1vh;
}

body { 
    margin: 0; 
    overflow: hidden; 
    background: black; 
    font-size: 16px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    transition: background 0.3s ease;
    font-family: 'Segoe UI', Arial, sans-serif;
    box-sizing: border-box;
    height: 100vh;
    height: calc(var(--vh, 1vh) * 100);
    position: fixed;
    width: 100%;
    -webkit-overflow-scrolling: touch;
}

/* Prevent touch scrolling on iOS */
* {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

/* Allow text selection for specific elements */
.content, .side-content, .side-content-inner {
    -webkit-user-select: text;
    -khtml-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

/* Canvas and overlay */
canvas { 
    display: block; 
} 

.overlay { 
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    pointer-events: none; 
    background: radial-gradient(circle at center, transparent 30%, rgba(0,0,0,0.65) 100%); 
    z-index: 2; 
} 

/* Content container */
.content { 
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100vh;
    height: calc(var(--vh, 1vh) * 100);
    color: white; 
    transition: opacity 1s ease-out; 
    z-index: 10; 
    max-width: 100vw;
    box-sizing: border-box;
    overflow-x: hidden;
} 

.content.hidden { 
    opacity: 0; 
    pointer-events: none; 
} 

/* Header styles */
.header { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    padding: 2rem; 
    pointer-events: all; 
    font-family: 'Segoe UI', Arial, sans-serif;
} 

.logo {
  font-family: 'Double Feature', cursive, sans-serif !important;
  font-size: 1.5rem;
  letter-spacing: 0.01em;
  font-weight: normal;
  line-height: 1.1;
  color: #7a0a18 !important;
} 

/* Navigation styles */
.nav {
    display: inline-flex;
    gap: 2.5em;
    justify-content: flex-end;
    align-items: flex-end;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}

.nav-item {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    width: fit-content;
}

.nav-item:last-child {
    margin-right: 3.5rem;
}

.nav-link {
    display: inline-block;
    position: relative;
    font-size: 1.3em;
}

.nav-link::after { 
    content: ''; 
    position: absolute; 
    bottom: 0; 
    left: 0; 
    width: 0; 
    height: 2px; 
    background: white; 
    transition: width 0.3s ease; 
} 

.nav-link:hover::after { 
    opacity: 1;
} 

/* Dotted text effect - Modified for better visibility */
.dotted-text, .title {
    font-family: inherit;
    font-size: clamp(2rem, 5vw, 6rem);
    letter-spacing: 0.03em;
    position: relative;
    color: white;
    mix-blend-mode: difference;
    /* background-image: none; */
    /* background: none; */
}

/* Light theme adjustments */
.light-theme .dotted-text,
.light-theme .title {
    color: black;
}

/* Responsive adjustments */
@media screen and (max-width: 900px) {
    .dotted-text::after, .title::after {
        /* background-image: 
            radial-gradient(circle at center, 
                currentColor 0.12rem,
                transparent 0.12rem
            ); */
        background-size: 0.4rem 0.4rem;
    }
}

@media screen and (max-width: 480px) {
    .dotted-text::after, .title::after {
        /* background-image: 
            radial-gradient(circle at center, 
                currentColor 0.1rem,
                transparent 0.1rem
            ); */
        background-size: 0.35rem 0.35rem;
    }
    
    .title {
        font-size: 2rem;
    }
}

/* Contact styles */
.contact {
    opacity: 0.8;
    --pixel-size: 1px;
    font-size: 1.125rem;
    font-weight: 400;
    letter-spacing: 0.02em;
}

/* Main content */
.main { 
    padding: 4rem 2rem; 
    max-width: 800px; 
} 

.title, .chapter-title, .subtitle, .header, .nav-link, .chapter-content, body {
    font-family: 'Rock Salt', cursive, sans-serif !important;
}

.title, .chapter-title {
    font-size: clamp(2.2rem, 4.5vw, 5.5rem);
    letter-spacing: 0.04em;
}

.subtitle, .chapter-content {
    font-size: 1.5rem;
    letter-spacing: 0.03em;
}

.title.visible { 
    opacity: 1; 
    transform: rotate(-30deg) translateY(0); 
} 

.subtitle {
    position: absolute;
    right: 3vw;
    left: auto;
    top: 50%;
    transform: translateY(-50%);
    max-width: 28vw;
    text-align: left;
    z-index: 12;
    font-size: 1.1rem;
    letter-spacing: 0.03em;
}

.subtitle.visible { 
    opacity: 1; 
    transform: translateY(0); 
} 

.subtitle.bad-handwriting {
    font-family: 'Mathevas', cursive, sans-serif !important;
    font-size: 2.1rem !important;
    line-height: 2.5rem !important;
    font-weight: 400 !important;
    color: #fff;
    letter-spacing: 0.04em;
    word-spacing: 0.2em;
    text-align: center !important;
    background: none;
    text-shadow: 1px 2px 0 #0002;
    filter: contrast(1.1) grayscale(0.1);
    display: block;
    margin-top: -2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    transform: rotate(-8deg) skewX(-8deg);
}

.subtitle.bad-handwriting span {
    display: inline-block;
    /* Each letter gets a random transform for messiness */
    transform: translateY(calc(var(--messy-y, 0) * 1px)) rotate(calc(var(--messy-rot, 0) * 1deg));
}

.subtitle.bad-handwriting.messy-ready {
    visibility: visible;
}

.title {
    margin-bottom: 0.1em;
}

.main {
    padding-top: 1em;
}

/* Side content */
.side-content { 
    position: fixed; 
    top: 0; 
    width: 50%; 
    height: 100%; 
    color: white; 
    opacity: 0; 
    transition: all 1s ease-out; 
    pointer-events: none; 
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    font-family: 'Segoe UI', Arial, sans-serif;
    max-width: 100vw;
    overflow-x: hidden;
}

.side-content-inner {
    padding: 6rem 4rem;
    flex: 1;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    max-width: 100vw;
    box-sizing: border-box;
    overflow-x: hidden;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.side-content-inner::-webkit-scrollbar {
    display: none;
}

.work-content { 
    right: 0; 
} 

.about-content { 
    left: 0; 
    text-align: left; 
} 

.side-content.visible { 
    opacity: 1; 
    pointer-events: all; 
} 

.side-title { 
    font-size: 3rem; 
    margin: 0 0 2rem 0; 
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.02em;
    font-family: 'Dancing Script', cursive, sans-serif;
} 

.side-text { 
    font-size: 1.1rem; 
    line-height: 1.6; 
    margin-bottom: 2rem;
    font-weight: 400; 
} 
/* Light theme adjustments */
.light-theme .side-content,
.light-theme .side-title,
.light-theme .side-text,
.light-theme .project-list {
    color: black;
}

/* Ensure dotted text effect works in both themes */
.light-theme .side-title.dotted-text {
    background: radial-gradient(circle at center, black .11rem, transparent 0);
    background-size: .4rem .4rem;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
/* Back button */
.back-button { 
    position: fixed; 
    top: 2rem; 
    left: 2rem; 
    color: white; 
    text-decoration: none; 
    cursor: pointer; 
    opacity: 0; 
    transition: all 0.3s ease; 
    pointer-events: none; 
    z-index: 20; 
    padding: 10px 20px; 
    border: 1px solid rgba(255,255,255,0.2); 
    border-radius: 25px; 
    backdrop-filter: blur(10px); 
    background: rgba(0,0,0,0.2);
    font-family: 'Segoe UI', Arial, sans-serif;
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.02em;
} 

.back-button.visible { 
    opacity: 1; 
    pointer-events: all; 
} 

.back-button:hover { 
    background: rgba(255,255,255,0.1); 
    transform: translateY(-2px); 
}

/* Footer style improvements */
.footer, .local-time, .social-links, .social-links a {
  font-family: 'Rock Salt', cursive, sans-serif !important;
  font-size: 1.15rem;
  letter-spacing: 0.03em;
}

.footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding: 2rem 2rem 1.5rem 2rem;
  background: none;
  box-shadow: none;
}

.local-time {
  opacity: 0.85;
  margin-bottom: 0.5rem;
}

.social-links {
  display: flex;
  gap: 2rem;
  align-items: center;
  flex-wrap: wrap;
  padding-right: 2rem;
  margin-bottom: 0.5rem;
}

.social-links a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s, transform 0.2s;
  display: flex;
  align-items: center;
  gap: 0.3em;
  font-size: 1.15rem;
}

.social-links a:hover {
  color: #7a0a18;
  transform: translateY(-2px) scale(1.08);
  text-shadow: 0 2px 8px #7a0a1815;
}

/* Noise dot effect */
/* .ndot {
    position: relative;
    overflow: hidden;
} */

/* Theme toggle */
.theme-toggle {
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    z-index: 200;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.2);
    background: rgba(0,0,0,0.2);
    backdrop-filter: blur(10px);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

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

.theme-toggle svg {
    width: 24px;
    height: 24px;
    color: white;
    transition: all 0.3s ease;
    stroke: white;
    fill: none;
}

/* Light theme styles */
body.light-theme {
    background: white;
}

.light-theme .content,
.light-theme .nav-link,
.light-theme .logo,
.light-theme .contact,
.light-theme .local-time,
.light-theme .social-links a,
.light-theme .back-button,
.light-theme .subtitle,
.light-theme .chapter-content,
.light-theme .side-text,
.light-theme .chapter-title,
.light-theme .chronicle-title,
.light-theme .chapter-date,
.light-theme .epilogue,
.light-theme .adventure-continues,
.light-theme .certificate-card h4,
.light-theme .certificate-card p,
.light-theme .project-card h3,
.light-theme .project-card p,
.light-theme .project-links a {
    color: black !important;
}

.light-theme .title,
.light-theme .dotted-text {
    background: black;
    background-size: .4rem .4rem;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.light-theme .back-button {
    border: 1px solid rgba(0,0,0,0.2);
    background: rgba(255,255,255,0.2);
}

.light-theme .overlay {
    background: radial-gradient(circle at center, transparent 40%, rgba(255,255,255,0.4) 100%);
}

.light-theme .theme-toggle {
    border: 1px solid rgba(0,0,0,0.2);
    background: rgba(255,255,255,0.2);
}

.light-theme .theme-toggle svg {
    color: black;
    stroke: black;
    fill: none;
}

/* Additional light theme improvements */
.light-theme .nav-link::after {
    background: black;
}

.light-theme .nav-link-underline svg path {
    stroke: black;
}

.light-theme .scribble-underline path {
    stroke: black;
}

.light-theme .social-icon {
    color: black;
}

.light-theme .tech-tag {
    background: rgba(0, 0, 0, 0.1);
    color: black;
    border: 1px solid rgba(0, 0, 0, 0.2);
}

.light-theme .certificate-card {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.light-theme .project-card {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

/* Keep logo white in both themes */
.light-theme .logo {
    color: #7a0a18 !important;
}

/* Responsive styles */
/* Keep existing base styles up to responsive styles */

/* Updated responsive styles */
/* ... Keep existing base styles up to media queries ... */

/* Mobile Responsive Styles */
@media screen and (max-width: 900px) {
    /* Base adjustments */
    html, body {
        overflow: hidden;
        height: 100vh;
        height: calc(var(--vh, 1vh) * 100);
        position: fixed;
        width: 100%;
        -webkit-overflow-scrolling: touch;
    }
    
    .chronicle-title {
        font-size: 2rem;
        margin-bottom: 2rem;
        padding-bottom: 0.75rem;
    }

    .chapter {
        margin-bottom: 2rem;
    }

    .chapter-title {
        font-size: 1.25rem;
        margin-bottom: 0.375rem;
    }

    /* Canvas adjustments */
    canvas {
        /* position: fixed !important; */
        z-index: -1;
    }

    /* Header adjustments */
    .header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        padding: 1rem;
        /* background: rgba(0, 0, 0, 0.5); */
        backdrop-filter: blur(10px);
        margin: 0;
        width: calc(100% - 2rem);
        z-index: 100;
    }


    .logo {
        font-size: 1.25rem;
    }

    .contact {
        font-size: 0.875rem;
        word-break: break-word;
    }

    /* Navigation adjustments */
    .nav {
        flex-direction: row;
        gap: 1.5rem;
        width: 100%;
        overflow-x: auto;
        padding-bottom: 0.5rem;
        -webkit-overflow-scrolling: touch;
    }

    .nav-link {
        font-size: 0.9rem;
        white-space: nowrap;
        padding: 0.5rem 0;
        right: 0rem;
    }

    /* Main content adjustments */
    .main {
        padding: 1rem;
        margin-top: 2rem;
    }

    .title {
        font-size: 2.5rem;
        margin-bottom: 2rem;
        line-height: 1.2;
    }

    .subtitle {
        position: static;
        max-width: 90vw;
        margin: 2rem auto 0 auto;
        text-align: center;
        transform: none;
        right: auto;
    }

    /* Side content adjustments */
    .side-content {
        position: fixed;
        width: 100%;
        height: 100vh;
        height: calc(var(--vh, 1vh) * 100);
        padding: 1rem;
        overflow-y: auto;
        /* background: rgba(0, 0, 0, 0.9); */
        backdrop-filter: blur(10px);
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
    }

    .side-content-inner {
        padding: 1rem;
        padding-top: 4rem;
        height: auto;
        overflow-y: auto;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
    }

    .side-title {
        font-size: 2rem;
        margin-bottom: 1.5rem;
    }

    .side-text {
        font-size: 0.875rem;
        line-height: 1.6;
        margin-bottom: 1.5rem;
    }

    /* Footer adjustments */
    .footer {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        padding: 1rem;
        /* background: rgba(0, 0, 0, 0.5);
        backdrop-filter: blur(10px); */
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }

    .social-links {
        display: flex;
        flex-wrap: wrap;
        gap: 1rem;
        margin-right: 0;
    }

    .social-links a {
        font-size: 0.875rem;
    }

    .local-time {
        font-size: 0.875rem;
    }

    /* Controls adjustments */
    .theme-toggle {
        top: 1rem;
        right: 1rem;
        width: 36px;
        height: 36px;
    }

    .back-button {
        top: 1rem;
        left: 1rem;
        font-size: 0.875rem;
        padding: 0.5rem 1rem;
        z-index: 1000;
    }
}

/* Additional small screen optimizations */
@media screen and (max-width: 480px) {
    html, body {
        overflow: hidden;
        height: 100vh;
        height: calc(var(--vh, 1vh) * 100);
        position: fixed;
        width: 100%;
    }
    
    .title {
        font-size: 4rem;
    }

    .side-title {
        font-size: 1.75rem;
    }

    .header {
        padding: 0.75rem;
    }
    .chronicle-title {
        font-size: 1.75rem;
        margin-bottom: 1.5rem;
        padding-bottom: 0.5rem;
    }

    .chapter {
        margin-bottom: 1.5rem;
    }

    .chapter-title {
        font-size: 1.125rem;
        margin-bottom: 0.25rem;
    }

    .nav {
        gap: 1rem;
    }

    .footer {
        padding: 0.75rem;
    }

    /* Improve touch targets */
    .nav-link,
    .social-links a {
        padding: 0.5rem;
        margin: -0.5rem;
        right: 0rem;
    }
}

/* Theme-specific mobile adjustments */
/* @media screen and (max-width: 900px) {
    .light-theme .header,
    .light-theme .footer {
        background: rgba(255, 255, 255, 0.5);
    }

    .light-theme .side-content {
        background: rgba(255, 255, 255, 0.9);
    }
} */

/* Main title font */
.side-title.dotted-text {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    margin: 0 0 2rem 0;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.02em;
}

/* Experience title fonts */
.project-list .side-text {
    font-family: 'Inter', sans-serif;
}

/* Individual project titles (01., 02., etc) */
.project-list .side-text strong,
.project-list .side-text b {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    display: block;
    margin-top: 1rem;
}

/* Company names */
.project-list .side-text em,
.project-list .side-text i {
    font-family: 'Source Sans Pro', sans-serif;
    font-style: normal;
    font-weight: 500;
}

/* To ensure fonts are available, add these to your HTML head */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700&family=Inter:wght@400;500&family=Montserrat:wght@600&family=Source+Sans+Pro:wght@500&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Caveat+Brush&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Permanent+Marker&display=swap');

.chronicle-title {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    line-height: 1.3;
    border-bottom: 1px solid #ddd;
    padding-bottom: 1rem;
}

.chapter {
    margin-bottom: 3rem;
}

.chapter-title {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.chapter-date {
    font-style: italic;
    color: #666;
    margin-bottom: 1.5rem;
}

.chapter-content {
    margin-bottom: 2rem;
    text-align: justify;
    font-family: 'Segoe UI', Arial, sans-serif;
    font-size: 1.15rem;
}

.epilogue {
    margin-top: 4rem;
    font-style: italic;
}

.adventure-continues {
    text-align: center;
    margin-top: 3rem;
    font-style: italic;
    color: #666;
}

.certificates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 1.5rem 0;
}

.certificate-card {
    background: transparent;
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    transition: transform 0.3s ease;
}

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

.cert-image {
    width: 170px;
    height: 170px;
    object-fit: contain;
    margin-bottom: 1rem;
}

.certificate-card h4 {
    margin: 0.5rem 0;
    color: #e0e0e0;
}

.certificate-card p {
    font-size: 0.9rem;
    color: #a0a0a0;
    margin: 0;
}
/* Projects content specific styles */
/* Projects content - keep it centered and overlay-style */
.projects-content {
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    max-width: 900px;
    text-align: center;
    background: rgba(0, 0, 0, 0.1);  /* Very subtle background */
    border-radius: 20px;
    backdrop-filter: blur(5px);
}

.projects-inner {
    padding: 3rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    max-height: 80vh;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.projects-inner::-webkit-scrollbar {
    display: none;
}

.projects-title {
    font-size: 2.2rem;
    margin-bottom: 2rem;
    font-weight: 700;
    text-align: center;
}

.section-title {
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
    color: #fff;
    text-align: center;
}

.project-section {
    margin-bottom: 2rem;
    width: 100%;
}

/* Make project cards more compact */
.project-card {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    padding: 1.2rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.promptcraft-card:hover {
    background: rgba(0, 0, 0, 0.75);  /* Darker for better text contrast */
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.25);
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.6);
}


.project-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    color: #fff;
}

.project-card p {
    line-height: 1.4;
    margin-bottom: 0.8rem;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.9rem;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    justify-content: center;
}

.tech-tag {
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* More compact skills section */
.tech-arsenal {
    width: 100%;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-top: 1rem;
}

.skill-category {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    transition: all 0.3s ease;
}

.skill-category:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-2px);
}

.skill-category h4 {
    color: #fff;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.skill-category p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.8rem;
    line-height: 1.3;
}

/* Light theme adjustments */
.light-theme .projects-content {
    background: rgba(255, 255, 255, 0.1);
}

.light-theme .projects-title,
.light-theme .section-title,
.light-theme .project-card h3,
.light-theme .skill-category h4 {
    color: black;
}

.light-theme .project-card,
.light-theme .skill-category {
    background: rgba(0, 0, 0, 0.08);
    border-color: rgba(0, 0, 0, 0.15);
}

.light-theme .project-card:hover,
.light-theme .skill-category:hover {
    background: rgba(0, 0, 0, 0.12);
    border-color: rgba(0, 0, 0, 0.25);
}

.light-theme .project-card p,
.light-theme .skill-category p {
    color: rgba(0, 0, 0, 0.8);
}

.light-theme .tech-tag {
    background: rgba(0, 0, 0, 0.15);
    color: black;
    border-color: rgba(0, 0, 0, 0.2);
}

/* Mobile responsive */
@media screen and (max-width: 900px) {
    .projects-content {
        width: 95%;
        top: 50%;
    }
    
    .projects-inner {
        padding: 2rem 1rem;
        max-height: 85vh;
    }
    
    .projects-title {
        font-size: 1.8rem;
    }
    
    .section-title {
        font-size: 1.4rem;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 480px) {
    .projects-content {
        width: 98%;
    }
    
    .projects-inner {
        padding: 1.5rem 1rem;
    }
    
    .projects-title {
        font-size: 1.6rem;
    }
}
/* Force higher contrast if background is bright like the animated 3D ball */
.promptcraft-card {
    position: relative;
    z-index: 5;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: white;
    backdrop-filter: blur(12px);
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.4);
    margin-bottom   : -10rem; /* ✅ Add this */
}


.promptcraft-card h3,
.promptcraft-card p {
    color: #fff;
}

.promptcraft-card a {
    color: #aadfff;
    font-size: 0.85rem;
    margin-right: 1rem;
    text-decoration: none;
}

.promptcraft-card a:hover {
    text-decoration: underline;
}

.project-links {
    margin-top: 0.6rem;
}
.tweet-embed {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 1.5rem;
}

.project-links {
  margin-top: 1rem;
}

.project-links a {
  font-size: 0.9rem;
  color: #aadfff;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.project-links a:hover {
  color: #fff;
  text-decoration: underline;
}

body, .subtitle, .chapter-content {
    font-family: 'Segoe UI', Arial, sans-serif;
}

.title {
    transform: rotate(-30deg);
}

.bad1 {
    font-family: 'Rock Salt', cursive;
    display: inline-block;
    transform: rotate(-22deg) scale(1.08);
    color: #fff;
    letter-spacing: 0.05em;
}
.bad2 {
    font-family: 'Permanent Marker', cursive;
    display: inline-block;
    transform: rotate(13deg) scale(0.97);
    color: #eee;
    letter-spacing: 0.08em;
}
.bad3 {
    font-family: 'Gloria Hallelujah', cursive;
    display: inline-block;
    transform: rotate(-10deg) scale(1.12);
    color: #fafafa;
    letter-spacing: 0.03em;
}

@font-face {
  font-family: 'Edo';
  src: url('./edo.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

.title.bad-handwriting {
  font-family: 'Edo', cursive, sans-serif !important;
  color: #7a0011 !important;
  font-size: clamp(2.2rem, 6vw, 5.5rem);
  letter-spacing: 0.04em;
  text-shadow: none;
  background: none;
  line-height: 1.1;
  font-weight: 400;
  display: block;
  margin-top: 0;
}
.title.bad-handwriting .hand-letter {
  font-family: 'Edo', cursive, sans-serif !important;
  color: #7a0011 !important;
}

.hand-letter {
    display: inline-block;
    font-family: 'Rock Salt', 'Permanent Marker', 'Gloria Hallelujah', cursive, sans-serif;
    font-size: inherit;
    color: #fff;
    transition: all 0.2s;
}
.hand-letter:nth-child(1) { transform: translateY(-2px); }
.hand-letter:nth-child(2) { transform: translateY(3px); }
.hand-letter:nth-child(3) { transform: translateY(-1px); }
.hand-letter:nth-child(4) { transform: translateY(2px); }
.hand-letter:nth-child(5) { transform: translateY(-3px); }
.hand-letter:nth-child(6) { transform: translateY(1px); }
.hand-letter:nth-child(7) { transform: translateY(-2px); }
.hand-letter:nth-child(8) { transform: translateY(2px); }
.hand-letter:nth-child(9) { transform: translateY(-1px); }
.hand-letter:nth-child(10) { transform: translateY(2px); }
.hand-letter:nth-child(11) { transform: translateY(-2px); }
.hand-letter:nth-child(12) { transform: translateY(1px); }
.hand-letter:nth-child(13) { transform: translateY(-1px); }
.hand-letter:nth-child(14) { transform: translateY(2px); }
.hand-letter:nth-child(15) { transform: translateY(-2px); }
.hand-letter:nth-child(16) { transform: translateY(1px); }
.hand-letter:nth-child(17) { transform: translateY(-1px); }
.hand-letter:nth-child(18) { transform: translateY(2px); }
.hand-letter:nth-child(19) { transform: translateY(-2px); }

.scribble-underline {
    display: block;
    margin: 0.5rem 0 0 0;
    width: 100%;
    max-width: 420px;
    height: 30px;
    pointer-events: none;
    filter: drop-shadow(0 2px 2px rgba(0,0,0,0.2));
}

.bottom-quote {
  position: static;
  left: 50%;
  bottom: 3em;
  transform: translateX(-50%);
  font-family: 'Gloria Hallelujah', 'Rock Salt', cursive;
  font-size: 1.3em;
  color: #fff;
  padding: 0;
  z-index: 1000;
  text-align: center;
  letter-spacing: 0.02em;
  max-width: 90vw;
  white-space: pre-line;
  background: none;
  border-radius: 0;
  box-shadow: none;
}

.quote-mark {
  font-size: 1.5em;
  vertical-align: top;
  font-family: inherit;
  opacity: 0.7;
}

.nav-link-underline {
  width: 90%;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  pointer-events: none;
  margin-top: 0.1em;
}

.nav-link-underline svg {
  display: block;
  width: 100%;
  height: 8px;
}

@media (max-width: 600px) {
    html, body {
        overflow: hidden;
        height: 100vh;
        height: calc(var(--vh, 1vh) * 100);
        position: fixed;
        width: 100%;
    }
    
    .content {
        position: fixed !important;
        height: 100vh !important;
        height: calc(var(--vh, 1vh) * 100) !important;
        overflow: hidden !important;
        width: 100% !important;
    }
    .main {
        padding-top: 1.5rem !important;
        overflow: hidden !important;
        height: 100vh !important;
        height: calc(var(--vh, 1vh) * 100) !important;
    }
    .main .title,
    .main .title.bad-handwriting {
        font-size: 2.6rem !important;
        line-height: 2.8rem !important;
        font-weight: 700 !important;
        margin-bottom: 2.5rem !important;
        padding-bottom: 0 !important;
        transform: none !important;
        letter-spacing: 0.04em !important;
    }
    .main .hand-letter {
        font-size: 2.6rem !important;
        font-weight: 700 !important;
        line-height: 2.8rem !important;
        color: #fff !important;
        text-shadow: 1px 1px 2px #0008;
    }
    .main .subtitle, .main .bad-handwriting {
        font-size: 1rem !important;
        line-height: 1.4 !important;
        margin-top: 2.5rem !important;
        padding-top: 0 !important;
        position: static !important;
        top: auto !important;
        right: auto !important;
        left: auto !important;
        transform: none !important;
        max-width: 100% !important;
        text-align: left !important;
    }
    .nav {
        overflow-x: auto;
        scrollbar-width: none; /* Firefox */
        -ms-overflow-style: none; /* IE and Edge */
    }
    .nav::-webkit-scrollbar {
        display: none; /* Chrome, Safari, Opera */
    }
    .nav-item:last-child {
        margin-right: 2.5rem;
    }
}

@font-face {
  font-family: 'Double Feature';
  src: url('./DoubleFeature20.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

.logo, .light-theme .logo {
  color: #7a0a18 !important;
}

@font-face {
  font-family: 'Mathevas';
  src: url('./Kabur.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

@media (max-width: 600px) {
  .theme-toggle {
    top: 0.7rem;
    right: 0.7rem;
  }
}

#architectureCanvas {
    background: transparent;
    margin: 32px auto 0 auto;
    display: block;
    /* No border, no shadow, no border-radius */
}

.skill-design-title {
    font-family: 'Mathevas', cursive;
    font-size: 2.6rem;
    color: #7a0a18;
    display: inline-block;
    margin-bottom: 12px;
    letter-spacing: 0.04em;
}
.light-theme .skill-design-title {
    color: #7a0a18;
}
#bingoCanvas, #architectureCanvas {
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 24px;
    width: 100%;
    max-width: 1200px;
    height: auto;
}

.architecture-title {
    font-family: 'Mathevas', cursive;
    font-size: 2.1rem;
    color: #7a0a18;
    margin-bottom: 18px;
    text-align: center;
    letter-spacing: 0.04em;
}
.light-theme .architecture-title {
    color: #7a0a18;
}
.architecture-subtitle {
    font-family: 'Mathevas', cursive;
    font-size: 1.4rem;
    color: #fff;
    margin-top: 24px;
    margin-bottom: 6px;
    letter-spacing: 0.03em;
}
.light-theme .architecture-subtitle {
    color: #111;
}
.key-skill {
    border-bottom: 2px solid #fff;
    font-weight: 700;
    color: #fff;
    background: none;
    padding: 0 2px;
}
.light-theme .key-skill {
    border-bottom: 2px solid #111;
    color: #111;
}
.architecture-explanation p {
    font-size: 1.3rem;
    line-height: 2;
    color: #fafafa;
    text-shadow: 0 1px 4px rgba(0,0,0,0.18);
    margin-bottom: 16px;
}
.light-theme .architecture-explanation p {
    color: #181818;
    text-shadow: 0 1px 4px rgba(255,255,255,0.10);
}

.architecture-title, .architecture-subtitle, .architecture-explanation p, .architecture-explanation {
    font-family: 'Mathevas', cursive !important;
}

.certifications-section, .certifications-section h2, .certifications-section h3, .certifications-section p {
    font-family: 'Mathevas', cursive !important;
}

.cert-list {
    margin-top: 32px;
}

.cert-item {
    margin-bottom: 28px;
}

.cert-item .key-skill {
    font-size: 1.5rem;
    border-bottom: 2px solid #fff;
    font-weight: 700;
    padding-bottom: 2px;
    display: inline-block;
    margin-bottom: 6px;
}

.light-theme .cert-item .key-skill {
    border-bottom: 2px solid #111;
    color: #111;
}

.cert-details {
    font-size: 1.1rem;
    font-weight: 400;
    color: #fafafa;
    margin-top: 8px;
    margin-left: 8px;
    border: none;
    text-shadow: 0 1px 4px rgba(0,0,0,0.18);
    font-family: 'Mathevas', cursive !important;
}

.light-theme .cert-details {
    color: #181818;
    text-shadow: 0 1px 4px rgba(255,255,255,0.10);
}

@media (max-width: 700px) {
    #bingoCanvas {
        max-width: 98vw;
    }
    #architectureCanvas {
        max-width: 98vw;
    }
}

#bg {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
}

.foreground-canvas {
    position: relative;
    z-index: 10;
    background: transparent;
}

.bingo-message {
  font-family: 'Mathevas', cursive;
  font-size: 1.7rem;
  color: #fff;
  text-align: center;
  margin: 0 auto 32px auto;
  max-width: 800px;
  line-height: 2.1;
  letter-spacing: 0.02em;
  word-break: break-word;
  max-width: 100vw !important;
  box-sizing: border-box;
  overflow-x: hidden;
}
.light-theme .bingo-message {
  color: #111;
}
.bingo-smile {
  font-size: 1.2em;
  vertical-align: middle;
}
@media (max-width: 600px) {
  .bingo-message {
    font-size: 1.1rem;
    line-height: 1.7;
    padding: 0 8px;
  }
}

.bingo-message,
#architectureCanvas,
.foreground-canvas,
canvas {
  max-width: 100vw !important;
  box-sizing: border-box;
  overflow-x: hidden;
}

.content, .side-content, .side-content-inner {
  max-width: 100vw;
  box-sizing: border-box;
  overflow-x: hidden;
}

@media (max-width: 700px) {
  .home-page,
  .home-page body {
    height: 100vh;
    width: 100vw;
    overflow: hidden !important;
    position: relative;
    margin: 0;
    padding: 0;
  }
  .home-page .content,
  .home-page .main,
  .home-page .side-content,
  .home-page .side-content-inner {
    height: 100vh !important;
    min-height: 100vh !important;
    max-height: 100vh !important;
    width: 100vw !important;
    max-width: 100vw !important;
    overflow: hidden !important;
    box-sizing: border-box;
    margin: 0 !important;
    padding: 0 !important;
  }
  .home-page #bg,
  .home-page .overlay,
  .home-page .foreground-canvas,
  .home-page canvas {
    height: 100vh !important;
    max-height: 100vh !important;
    width: 100vw !important;
    max-width: 100vw !important;
    overflow: hidden !important;
    box-sizing: border-box;
    margin: 0 !important;
    padding: 0 !important;
    position: absolute;
    left: 0;
    top: 0;
  }
}

.boondoggle-message {
  font-family: 'Mathevas', cursive;
  font-size: 1.7rem;
  color: #fff;
  text-align: center;
  margin: 0 auto 32px auto;
  max-width: 800px;
  line-height: 2.1;
  letter-spacing: 0.02em;
  word-break: break-word;
  max-width: 100vw !important;
  box-sizing: border-box;
  overflow-x: hidden;
}
.light-theme .boondoggle-message {
  color: #111;
}

.projects-showcase, .projects-showcase h2, .projects-showcase h3, .projects-showcase p {
    font-family: 'Mathevas', cursive !important;
}

.project-item {
    margin-bottom: 40px;
    padding: 24px;
    /* background: rgba(255, 255, 255, 0.05); */
    /* border-radius: 12px; */
    /* border: 1px solid rgba(255, 255, 255, 0.1); */
    transition: all 0.3s ease;
}

.project-item:hover {
    /* background: rgba(255, 255, 255, 0.08); */
    transform: translateY(-2px);
    /* border-color: rgba(255, 255, 255, 0.2); */
}

.project-description {
    font-size: 1.3rem;
    line-height: 2;
    color: #fafafa;
    text-shadow: 0 1px 4px rgba(0,0,0,0.18);
    margin-bottom: 16px;
    font-family: 'Mathevas', cursive !important;
}

.light-theme .project-description {
    color: #181818;
    text-shadow: 0 1px 4px rgba(255,255,255,0.10);
}

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.project-link a {
    color: #7a0a18;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    font-family: 'Mathevas', cursive !important;
}

.project-link a:hover {
    color: #fff;
    text-shadow: 0 0 8px rgba(122, 10, 24, 0.6);
}

.light-theme .project-link a {
    color: #7a0a18;
}

.light-theme .project-link a:hover {
    color: #000;
}

.social-proof {
    margin-top: 60px;
}

.light-theme .project-item {
    /* background: rgba(0, 0, 0, 0.05); */
    /* border-color: rgba(0, 0, 0, 0.1); */
}

.light-theme .project-item:hover {
    /* background: rgba(0, 0, 0, 0.08); */
    /* border-color: rgba(0, 0, 0, 0.2); */
}

/* Remove Kabur.ttf from projects-content */
/* .projects-content, .projects-content * {
    font-family: 'Mathevas', cursive !important;
} */

/* Apply Kabur.ttf only to Experience section */
.work-content, .work-content * {
    font-family: 'Mathevas', cursive !important;
}

.work-content ul, .work-content li {
    font-family: 'Mathevas', cursive !important;
}

