/* ==========================================================================
   PRANJAY GULERIA PORTFOLIO — CUSTOM STYLESHEET
   Aesthetic: Dark-mode Tech Editorial / Brutalist Data
   ========================================================================== */

/* --- Design Tokens & Variables --- */
:root {
    --bg-color: #080A0F;
    --surface-color: #0E1117;
    --accent-primary: #00FFB2;      /* Electric Mint */
    --accent-secondary: #FF6B35;    /* Warm Orange */
    --text-primary: #F0F4F8;
    --text-muted: #5A6A7A;
    --border-color: #1A2233;
    --border-glow: rgba(0, 255, 178, 0.12);
    --border-glow-secondary: rgba(255, 107, 53, 0.12);
    
    /* Typography */
    --font-display: 'Bebas Neue', sans-serif;
    --font-heading: 'DM Serif Display', serif;
    --font-body: 'JetBrains Mono', monospace;
    --font-label: 'Syne', sans-serif;
    
    /* Animation Easing */
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-bounce: cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* --- Base & Resets --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-body);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

body {
    position: relative;
    overflow-x: hidden;
    line-height: 1.6;
}

/* --- Utilities & Scrollbars --- */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: var(--bg-color);
}
::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* --- Background Texture & Grids --- */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    content: "";
    opacity: 0.025;
    z-index: 999;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* --- Interactive Background Grid & Spotlight --- */
.bg-grid-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.bg-grid-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(var(--border-color) 1px, transparent 1px),
        linear-gradient(90deg, var(--border-color) 1px, transparent 1px);
    background-size: 80px 80px;
    background-position: center center;
    opacity: 0.06;
}

.bg-spotlight {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(
        900px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
        rgba(0, 255, 178, 0.13),
        transparent 75%
    );
    transition: background 0.3s ease;
}

body.cursor-secondary-hover .bg-spotlight {
    background: radial-gradient(
        900px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
        rgba(255, 107, 53, 0.13),
        transparent 75%
    );
}

@media (max-width: 1024px) {
    .bg-spotlight {
        display: none;
    }
}

/* --- Custom Cursor (Desktop Only) --- */
.custom-cursor-dot {
    width: 6px;
    height: 6px;
    background-color: var(--accent-primary);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 9999;
    transition: width 0.2s, height 0.2s, background-color 0.2s;
    display: none;
}

.custom-cursor-ring {
    width: 32px;
    height: 32px;
    border: 1.5px solid var(--accent-primary);
    border-radius: 50%;
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 9998;
    transition: width 0.3s var(--ease-out-expo), height 0.3s var(--ease-out-expo), border-color 0.3s, background-color 0.3s;
    display: none;
}

/* Custom cursor hover states */
body.cursor-hover .custom-cursor-ring {
    width: 48px;
    height: 48px;
    background-color: rgba(0, 255, 178, 0.08);
    border-color: var(--accent-primary);
}

body.cursor-hover .custom-cursor-dot {
    width: 0px;
    height: 0px;
}

body.cursor-secondary-hover .custom-cursor-ring {
    width: 48px;
    height: 48px;
    background-color: rgba(255, 107, 53, 0.08);
    border-color: var(--accent-secondary);
}

body.cursor-secondary-hover .custom-cursor-dot {
    background-color: var(--accent-secondary);
}

/* --- Common Layout & Containers --- */
.section-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
}

section {
    padding: 120px 0;
    position: relative;
    border-bottom: 1px solid var(--border-color);
    overflow: hidden;
    z-index: 2;
    /* More transparent so global plexus canvas shows through strongly */
    background-color: rgba(8, 10, 15, 0.60);
}

.card {
    background-color: rgba(14, 17, 23, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 2.5rem;
    position: relative;
    transition: transform 0.4s var(--ease-out-expo), border-color 0.4s var(--ease-out-expo), box-shadow 0.4s var(--ease-out-expo);
}

.card:hover {
    border-color: var(--accent-primary);
    box-shadow: 0 12px 30px var(--border-glow);
}

/* Section background numbers */
.bg-section-number {
    font-family: var(--font-display);
    font-size: 26vw;
    font-weight: 900;
    color: var(--border-color);
    opacity: 0.12;
    position: absolute;
    right: 5%;
    bottom: -5%;
    line-height: 0.7;
    pointer-events: none;
    z-index: 1;
    user-select: none;
}

/* Section header styling */
.section-tag {
    font-family: var(--font-label);
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    color: var(--accent-primary);
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 1.5rem;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 400;
    color: var(--text-primary);
    margin-bottom: 4rem;
}

/* --- Custom Typography & Links --- */
a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s;
}

strong {
    color: var(--text-primary);
}

/* --- Buttons & CTAs --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.9rem 2.2rem;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 500;
    border-radius: 4px;
    cursor: pointer;
    transition: transform 0.3s var(--ease-out-expo), background-color 0.3s, border-color 0.3s, color 0.3s, box-shadow 0.3s;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background-color: transparent;
    border: 1px solid var(--accent-primary);
    color: var(--accent-primary);
}

.btn-primary:hover {
    background-color: var(--accent-primary);
    color: var(--bg-color);
    box-shadow: 0 0 25px rgba(0, 255, 178, 0.4);
}

.btn-secondary {
    background-color: var(--surface-color);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

.btn-secondary:hover {
    border-color: var(--text-primary);
    background-color: rgba(255, 255, 255, 0.05);
}

.btn-tertiary {
    background-color: transparent;
    border: 1px solid transparent;
    color: var(--text-muted);
}

.btn-tertiary:hover {
    color: var(--text-primary);
}

.btn-arrow, .btn-arrow-up, .btn-arrow-right {
    margin-left: 0.5rem;
    display: inline-block;
    transition: transform 0.3s var(--ease-out-expo);
}

.btn-primary:hover .btn-arrow-right {
    transform: translateX(5px);
}
.btn-primary:hover .btn-arrow {
    transform: translateY(3px);
}

/* --- Fixed Header Navigation --- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    border-bottom: 1px solid transparent;
    transition: background-color 0.4s, border-color 0.4s, backdrop-filter 0.4s, padding 0.4s;
    padding: 1.8rem 0;
}

.site-header.scrolled {
    background-color: rgba(8, 10, 15, 0.85);
    border-color: var(--border-color);
    backdrop-filter: blur(20px);
    padding: 1rem 0;
}

.header-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-display);
    font-size: 1.8rem;
    letter-spacing: 0.05em;
    color: var(--text-primary);
    font-weight: bold;
}

.logo:hover {
    color: var(--accent-primary);
}

.desktop-nav {
    display: flex;
    gap: 2.5rem;
}

.nav-link {
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: var(--text-muted);
    position: relative;
    padding: 0.2rem 0;
}

.nav-link::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1.5px;
    background-color: var(--accent-primary);
    transition: width 0.3s var(--ease-out-expo);
}

.nav-link:hover {
    color: var(--text-primary);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.nav-link.active {
    color: var(--accent-primary);
}

/* Hamburger mobile button */
.menu-toggle-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 16px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 110;
}

.menu-line {
    width: 100%;
    height: 1.5px;
    background-color: var(--text-primary);
    transition: transform 0.3s, opacity 0.3s;
}

/* --- Mobile Fullscreen Navigation Overlay --- */
.mobile-nav-overlay {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background-color: var(--bg-color);
    z-index: 200;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: right 0.5s var(--ease-out-expo);
}

.mobile-nav-overlay.open {
    right: 0;
}

.close-menu-btn {
    position: absolute;
    top: 2rem;
    right: 2rem;
    font-size: 2rem;
    background: transparent;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    align-items: center;
}

.mobile-link {
    font-family: var(--font-display);
    font-size: 3rem;
    letter-spacing: 0.05em;
    color: var(--text-primary);
    transition: color 0.3s;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.mobile-link span {
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--accent-primary);
}

.mobile-link:hover {
    color: var(--accent-primary);
}

/* --- [01] Hero Section --- */
.hero-section {
    height: 100vh;
    min-height: 650px;
    display: flex;
    align-items: center;
    padding: 0;
    border-bottom: 1px solid var(--border-color);
}

.animated-grid-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(var(--border-color) 1px, transparent 1px),
        linear-gradient(90deg, var(--border-color) 1px, transparent 1px);
    background-size: 80px 80px;
    background-position: center center;
    opacity: 0.15;
    pointer-events: none;
    z-index: 1;
}

.hero-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    padding-top: 5rem;
    position: relative;
    z-index: 2;
}

/* --- Global Plexus Canvas (Full Page) --- */
#global-plexus-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1;
    pointer-events: none;
    opacity: 0.90;
}

.hero-label-wrapper {
    margin-bottom: 1rem;
}

.hero-label {
    font-family: var(--font-label);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    color: var(--text-muted);
}

.hero-label .arrow {
    color: var(--accent-primary);
}

.hero-headline {
    font-family: var(--font-display);
    font-size: 11vw;
    line-height: 0.85;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    margin-bottom: 2.5rem;
    user-select: none;
}

.hero-word-line {
    display: block;
    overflow: hidden;
}

.hero-word {
    display: inline-block;
    transform: translateY(100%);
    animation: revealWord 1.2s var(--ease-out-expo) forwards;
}

.hero-word-line:nth-child(2) .hero-word {
    animation-delay: 0.15s;
    color: transparent;
    -webkit-text-stroke: 1.5px var(--text-primary);
}

@keyframes revealWord {
    0% { transform: translateY(100%); }
    100% { transform: translateY(0); }
}

.hero-subline-wrapper {
    margin-bottom: 3.5rem;
    border-left: 2px solid var(--accent-primary);
    padding-left: 1.5rem;
    max-width: 650px;
}

.terminal-text {
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--text-primary);
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.terminal-line {
    white-space: nowrap;
    overflow: hidden;
    display: block;
}

.terminal-line.typing::after, .terminal-line.blink-last:last-child::after {
    content: "▋";
    color: var(--accent-primary);
    animation: blink 1s step-end infinite;
    font-size: 0.85rem;
    margin-left: 0.2rem;
    vertical-align: middle;
}

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

.terminal-prompt {
    color: var(--accent-primary);
    font-weight: bold;
    margin-right: 0.5rem;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    z-index: 10;
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 2.5rem;
    left: 2rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    font-family: var(--font-body);
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    color: var(--text-muted);
}

.scroll-bar {
    width: 2px;
    height: 40px;
    background-color: var(--border-color);
    position: relative;
    overflow: hidden;
}

.scroll-bar::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 15px;
    background-color: var(--accent-primary);
    animation: scrollAnim 2s infinite var(--ease-out-expo);
}

@keyframes scrollAnim {
    0% { top: -15px; }
    50% { top: 40px; }
    100% { top: 40px; }
}

/* --- [02] About Section --- */
.about-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 5rem;
    align-items: flex-start;
}

.about-left {
    position: relative;
}

.about-quote {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    line-height: 1.25;
    color: var(--text-primary);
    border: none;
    font-style: italic;
    font-weight: 400;
}

.about-image-container {
    margin-top: 3rem;
    max-width: 380px;
    position: relative;
}

.about-image-frame {
    position: relative;
    border: 1px solid var(--border-color);
    padding: 0.5rem;
    background-color: var(--surface-color);
    border-radius: 4px;
    overflow: hidden;
    transition: border-color 0.4s var(--ease-out-expo), box-shadow 0.4s var(--ease-out-expo);
}

.about-portrait {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 2px;
    filter: none;
    transition: transform 0.5s var(--ease-out-expo);
}

.about-image-tech-label {
    position: absolute;
    bottom: 1.2rem;
    left: 1.2rem;
    font-family: var(--font-body);
    font-size: 0.7rem;
    color: var(--accent-primary);
    background-color: rgba(8, 10, 15, 0.85);
    border: 1px solid var(--border-color);
    padding: 0.35rem 0.7rem;
    border-radius: 2px;
    letter-spacing: 0.05em;
    pointer-events: none;
    z-index: 10;
}

.about-image-frame:hover {
    border-color: var(--accent-primary);
    box-shadow: 0 10px 30px var(--border-glow);
}

.about-image-frame:hover .about-portrait {
    transform: scale(1.02);
}

.about-bio {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
}

.about-bio p {
    margin-bottom: 1.2rem;
}

.about-bio p:last-child {
    margin-bottom: 0;
    color: var(--text-primary);
}

.terminal-facts {
    background-color: var(--surface-color);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    overflow: hidden;
}

.terminal-header {
    background-color: rgba(26, 34, 51, 0.4);
    padding: 0.6rem 1.2rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    border-bottom: 1px solid var(--border-color);
}

.term-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--border-color);
}

.terminal-header .term-dot:nth-child(1) { background-color: #FF5F56; }
.terminal-header .term-dot:nth-child(2) { background-color: #FFBD2E; }
.terminal-header .term-dot:nth-child(3) { background-color: #27C93F; }

.term-title {
    font-family: var(--font-body);
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-left: 0.8rem;
}

.terminal-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.fact-row {
    display: flex;
    font-size: 0.85rem;
    align-items: center;
}

.fact-key {
    color: var(--text-muted);
    width: 110px;
    font-weight: 500;
}

.fact-arrow {
    color: var(--accent-primary);
    margin-right: 1rem;
}

.fact-val {
    color: var(--text-primary);
}

.terminal-link {
    color: var(--accent-primary);
}

.terminal-link:hover {
    text-decoration: underline;
}

/* --- [03] Experience Section --- */
.timeline-container {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 3rem 0;
}

.timeline-line-wrapper {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 6px;
    transform: translateX(-50%);
}

.timeline-svg {
    height: 100%;
    width: 6px;
}

.timeline-item {
    display: flex;
    margin-bottom: 5rem;
    position: relative;
    width: 100%;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-date {
    width: 45%;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: flex-start;
    padding-right: 3rem;
    padding-top: 1rem;
}

.timeline-year {
    font-family: var(--font-label);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.3rem;
}

.timeline-duration {
    font-size: 0.8rem;
    color: var(--accent-secondary);
    margin-bottom: 0.5rem;
}

.timeline-company {
    font-family: var(--font-display);
    font-size: 1.8rem;
    letter-spacing: 0.05em;
    color: var(--text-muted);
}

.timeline-marker {
    position: absolute;
    left: 50%;
    top: 1.4rem;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: var(--bg-color);
    border: 3px solid var(--border-color);
    transform: translateX(-50%);
    z-index: 50;
    transition: border-color 0.3s, background-color 0.3s;
}

.timeline-item:hover .timeline-marker {
    border-color: var(--accent-primary);
    background-color: var(--accent-primary);
    box-shadow: 0 0 10px var(--accent-primary);
}

.timeline-content {
    width: 45%;
    margin-left: auto;
    padding: 2.2rem;
}

.timeline-card-header {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.timeline-role {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 400;
    color: var(--text-primary);
}

.timeline-loc {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.timeline-details {
    list-style: none;
    margin-bottom: 1.8rem;
}

.timeline-details li {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.8rem;
    position: relative;
    padding-left: 1.2rem;
}

.timeline-details li::before {
    content: "▫";
    position: absolute;
    left: 0;
    color: var(--accent-primary);
    font-weight: bold;
}

.timeline-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    font-family: var(--font-body);
    font-size: 0.7rem;
    color: var(--text-primary);
    background-color: var(--surface-color);
    border: 1px solid var(--border-color);
    padding: 0.25rem 0.5rem;
    border-radius: 2px;
}

/* Adjust timeline layout alternating or simple */
.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
}

.timeline-item:nth-child(even) .timeline-date {
    align-items: flex-start;
    padding-right: 0;
    padding-left: 3rem;
}

.timeline-item:nth-child(even) .timeline-content {
    margin-left: 0;
    margin-right: auto;
}

/* --- [04] Featured Projects Section --- */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
}

.project-card {
    padding: 0;
    overflow: hidden;
    min-height: 380px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.project-card.featured {
    grid-column: 1 / -1;
}

@media (min-width: 992px) {
    .project-card.featured {
        flex-direction: row;
        align-items: stretch;
    }
    
    .project-card.featured .project-media {
        width: 55%;
        border-bottom: none;
        border-right: 1px solid var(--border-color);
        aspect-ratio: auto;
    }

    .project-card.featured .project-body {
        width: 45%;
        justify-content: center;
        padding: 3.5rem;
    }
}

.project-media {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: rgba(14, 17, 23, 0.4);
    border-bottom: 1px solid var(--border-color);
    position: relative;
}

.project-media video, .project-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease-out-expo);
}

.project-card:hover .project-media video,
.project-card:hover .project-media img {
    transform: scale(1.05);
}

.project-body {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.project-num {
    font-family: var(--font-display);
    font-size: 2.5rem;
    color: var(--border-color);
    position: absolute;
    top: 1.5rem;
    right: 2rem;
    line-height: 1;
    z-index: 2;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
    transition: color 0.3s;
}

.project-card:hover .project-num {
    color: rgba(0, 255, 178, 0.2);
}

.project-highlight {
    font-family: var(--font-label);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: var(--accent-secondary);
    text-transform: uppercase;
    display: block;
    margin-bottom: 0.8rem;
}

.project-name {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 400;
    color: var(--text-primary);
    margin-bottom: 1.2rem;
    line-height: 1.2;
}

.project-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.project-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
    border-top: 1px dashed var(--border-color);
    padding-top: 1rem;
    margin-bottom: 1.5rem;
}

.project-link-wrapper {
    margin-bottom: 1.5rem;
}

.project-link-btn {
    font-family: var(--font-body);
    font-size: 0.8rem;
    color: var(--accent-primary);
    border: 1px solid var(--border-color);
    padding: 0.4rem 0.8rem;
    border-radius: 2px;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background-color: rgba(0, 255, 178, 0.02);
}

.project-link-btn:hover {
    border-color: var(--accent-primary);
    background-color: rgba(0, 255, 178, 0.08);
}

.project-link-btn .arrow-up {
    transition: transform 0.3s;
}

.project-link-btn:hover .arrow-up {
    transform: translate(2px, -2px);
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: auto;
}

.project-tags span {
    font-size: 0.7rem;
    color: var(--text-muted);
    background-color: rgba(26, 34, 51, 0.2);
    border: 1px solid var(--border-color);
    padding: 0.2rem 0.4rem;
    border-radius: 2px;
}

/* --- [05] Skills & Stack Section --- */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
    margin-bottom: 3.5rem;
}

.skills-block {
    padding: 3rem;
}

.skills-block-title {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 400;
    color: var(--text-primary);
    margin-bottom: 2.2rem;
    border-bottom: 1.5px solid var(--border-color);
    padding-bottom: 0.8rem;
}

.skills-list {
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
}

.skill-item {
    display: flex;
    flex-direction: column;
}

.skill-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.skill-name {
    color: var(--text-primary);
    font-weight: 500;
}

.skill-percentage {
    color: var(--accent-primary);
    font-family: var(--font-body);
}

.skill-bar-outer {
    height: 4px;
    background-color: var(--border-color);
    border-radius: 2px;
    overflow: hidden;
}

.skill-bar-inner {
    height: 100%;
    width: 0%;
    background-color: var(--accent-primary);
    border-radius: 2px;
    transition: width 1.4s var(--ease-bounce);
}

.skills-block:nth-child(2) .skill-bar-inner {
    background-color: var(--accent-secondary);
}

.skills-block:nth-child(2) .skill-percentage {
    color: var(--accent-secondary);
}

/* Tech Stack tags grid box */
.stack-box {
    padding: 3rem;
}

.stack-box-title {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 400;
    color: var(--text-primary);
    margin-bottom: 2rem;
}

.stack-tags-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.stack-tag-badge {
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: var(--text-muted);
    background-color: var(--bg-color);
    border: 1px solid var(--border-color);
    padding: 0.5rem 1rem;
    border-radius: 2px;
    transition: border-color 0.3s, color 0.3s, background-color 0.3s;
}

.stack-tag-badge:hover {
    border-color: var(--accent-primary);
    color: var(--text-primary);
    background-color: rgba(0, 255, 178, 0.03);
}

/* --- [05-A] Testimonial Section --- */
.testimonial-section {
    padding: 140px 0;
}

.testimonial-container {
    max-width: 900px;
}

.bg-quote-mark {
    font-family: var(--font-heading);
    font-size: 28rem;
    line-height: 1;
    color: var(--accent-primary);
    opacity: 0.05;
    position: absolute;
    top: -100px;
    left: -20px;
    pointer-events: none;
    z-index: 1;
    user-select: none;
}

.testimonial-wrapper {
    border: 1px solid var(--border-color);
    background-color: rgba(14, 17, 23, 0.7);
    padding: 4rem;
    border-radius: 4px;
    z-index: 2;
}

.testimonial-quote {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    line-height: 1.45;
    font-style: italic;
    color: var(--text-primary);
    margin-bottom: 2.5rem;
}

.testimonial-author-box {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.avatar-wrapper {
    position: relative;
    width: 56px;
    height: 56px;
}

.author-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--accent-primary);
}

.author-details {
    display: flex;
    flex-direction: column;
}

.author-identity {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.author-name {
    font-family: var(--font-label);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.linkedin-icon-link {
    color: var(--text-muted);
    display: inline-flex;
    align-items: center;
}

.linkedin-icon-link:hover {
    color: #0077b5; /* LinkedIn Blue */
}

.author-role {
    font-family: var(--font-body);
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.2rem;
}

.testimonial-meta {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* --- [06] Education Section --- */
.education-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
}

.education-card {
    padding: 3rem;
    display: flex;
    flex-direction: column;
}

.edu-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2rem;
    font-size: 0.8rem;
    font-family: var(--font-label);
}

.edu-status {
    color: var(--accent-primary);
    letter-spacing: 0.1em;
    font-weight: 600;
}

.edu-period {
    color: var(--text-muted);
}

.edu-degree {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 400;
    color: var(--text-primary);
    margin-bottom: 0.8rem;
}

.edu-school {
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 400;
    margin-bottom: 1.5rem;
}

.edu-location {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: auto;
    border-top: 1px dashed var(--border-color);
    padding-top: 1rem;
}

/* --- [07] Certifications Section --- */
.certifications-table-wrapper {
    padding: 0;
    overflow-x: auto;
    background-color: rgba(14, 17, 23, 0.4);
}

.certifications-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-family: var(--font-body);
    min-width: 600px;
}

.certifications-table th {
    font-family: var(--font-label);
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--accent-primary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 1.5rem 2.5rem;
    border-bottom: 2px solid var(--border-color);
}

.certifications-table td {
    padding: 1.5rem 2.5rem;
    font-size: 0.9rem;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-color);
    transition: color 0.3s, background-color 0.3s;
}

.certifications-table tr:last-child td {
    border-bottom: none;
}

.certifications-table tr:hover td {
    color: var(--text-primary);
    background-color: rgba(26, 34, 51, 0.15);
}

.cert-name {
    font-weight: 500;
}

.cert-issuer {
    font-style: normal;
}

/* --- [08] Contact Section --- */
.contact-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 5rem;
    align-items: center;
}

.contact-title-huge {
    font-family: var(--font-display);
    font-size: 7.5rem;
    line-height: 0.85;
    font-weight: 900;
    color: var(--text-primary);
    margin-bottom: 3.5rem;
    user-select: none;
}

.contact-title-huge .accent-text {
    color: var(--accent-primary);
}

.contact-cta-btn-wrapper {
    z-index: 10;
}

.btn-huge {
    padding: 1.2rem 3rem;
    font-size: 1.1rem;
    font-family: var(--font-label);
    font-weight: 700;
}

.contact-details-box {
    padding: 3rem;
}

.contact-detail-item {
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    padding: 1.5rem 0;
}

.contact-detail-item:first-child {
    padding-top: 0;
}

.contact-detail-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.detail-label {
    font-family: var(--font-label);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    width: 100px;
}

.detail-arrow {
    color: var(--accent-primary);
    margin-right: 1.5rem;
}

.detail-value {
    font-size: 0.9rem;
    color: var(--text-primary);
}

.detail-value:hover {
    color: var(--accent-primary);
    text-decoration: underline;
}

.location-arrow {
    color: var(--accent-secondary);
    margin: 0 0.5rem;
}

/* --- Footer --- */
.site-footer {
    padding: 3rem 0;
    border-top: 1px solid var(--border-color);
    background-color: var(--bg-color);
    position: relative;
    z-index: 2;
}

.footer-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* --- Animations: Reveal on Scroll Entry --- */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
}

/* Fallback when Javascript is disabled */
.no-js .scroll-reveal {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   RESPONSIVE DESIGN BREAKPOINTS
   ========================================================================== */

/* Tablet & Mobile Collapsing (< 1024px) */
@media (max-width: 1024px) {
    .bg-section-number {
        font-size: 32vw;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 3.5rem;
    }
    
    .timeline-line-wrapper {
        left: 0;
    }
    
    .timeline-item {
        flex-direction: column !important;
        margin-bottom: 4rem;
        padding-left: 2rem;
    }
    
    .timeline-date {
        width: 100% !important;
        align-items: flex-start !important;
        padding-right: 0 !important;
        padding-left: 0 !important;
        margin-bottom: 1.5rem;
    }
    
    .timeline-marker {
        left: 0;
        top: 1.4rem;
    }
    
    .timeline-content {
        width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .education-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
}

/* Mobile Breakpoint (< 768px) */
@media (max-width: 768px) {
    section {
        padding: 80px 0;
    }
    
    .section-container {
        padding: 0 1.2rem;
    }
    
    .section-title {
        font-size: 2.2rem;
        margin-bottom: 2.5rem;
    }
    
    .desktop-nav {
        display: none;
    }
    
    .menu-toggle-btn {
        display: flex;
    }
    
    .hero-headline {
        font-size: clamp(2.8rem, 15vw, 5.5rem);
        margin-bottom: 2rem;
    }
    
    .hero-subline-wrapper {
        margin-bottom: 2.5rem;
        padding-left: 1rem;
    }
    
    .terminal-text {
        font-size: 0.8rem;
    }

    .terminal-line {
        white-space: normal;
        word-break: break-word;
        padding-left: 1.2rem;
        text-indent: -1.2rem;
    }
    
    .about-quote {
        font-size: 2rem;
    }

    .about-image-container {
        margin-left: auto;
        margin-right: auto;
        max-width: 100%;
    }

    .timeline-content {
        padding: 1.5rem !important;
    }
    
    .testimonial-wrapper {
        padding: 1.8rem;
    }
    
    .testimonial-quote {
        font-size: 1.3rem;
    }

    /* Convert certifications table to stacked block layout to avoid overflow */
    .certifications-table-wrapper {
        border: none;
        background: transparent;
    }

    .certifications-table, 
    .certifications-table thead, 
    .certifications-table tbody, 
    .certifications-table th, 
    .certifications-table td, 
    .certifications-table tr {
        display: block;
        width: 100%;
        min-width: 0 !important;
    }
    
    .certifications-table thead {
        display: none;
    }
    
    .certifications-table tr {
        border: 1px solid var(--border-color);
        background-color: rgba(14, 17, 23, 0.4);
        margin-bottom: 1rem;
        padding: 1.2rem;
        border-radius: 4px;
    }
    
    .certifications-table td {
        border: none;
        padding: 0.2rem 0;
    }
    
    .cert-name {
        color: var(--text-primary);
        font-size: 0.95rem;
        font-weight: 600;
        display: block;
    }
    
    .cert-issuer {
        font-size: 0.8rem;
        color: var(--accent-primary);
        display: block;
        margin-top: 0.2rem;
    }
    
    .contact-title-huge {
        font-size: clamp(2.5rem, 12vw, 4.8rem);
        margin-bottom: 2.5rem;
    }

    .contact-details-box {
        padding: 1.5rem !important;
    }
    
    .contact-detail-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.4rem;
        padding: 1.2rem 0;
    }
    
    .detail-arrow {
        display: none;
    }
    
    .detail-label {
        width: auto;
        font-size: 0.7rem;
    }
    
    .detail-value {
        font-size: 0.95rem;
        word-break: break-all;
    }
    
    .footer-container {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}
