/* Reset and base styles */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    padding: 0;
    width: 100%;
    min-height: 100%;
    font-family: Arial, sans-serif;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
}

/*
 * Fixed background container
 * Using a fixed position background that stays in place while content scrolls
 */
body {
    position: relative;
    color: #ffffff;
    /* Remove overflow: hidden to allow scrolling */
}

/* Create fixed background that doesn't scroll with content */
body::before {
    content: "";
    position: fixed;
    /* Changed from absolute to fixed */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(125deg,
            lightskyblue,
            /* Vibrant orange - #ff7b00 */
            darkblue,
            /* Deep purple - #9c27b0 */
            #00bcd4,
            steelblue);
    background-size: 400% 400%;
    animation: gradientFlow 15s ease infinite;
    z-index: -2;
}

/* Animated gradient keyframes */
@keyframes gradientFlow {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/*
 * Subtle pattern overlay
 * Also fixed position to stay in place during scrolling
 */
body::after {
    content: "";
    position: fixed;
    /* Changed from absolute to fixed */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        repeating-linear-gradient(45deg,
            rgba(255, 255, 255, 0.03),
            rgba(255, 255, 255, 0.03) 1px,
            transparent 1px,
            transparent 10px);
    z-index: -1;
    opacity: 0.4;
    animation: patternPulse 10s ease-in-out infinite;
}

/* Subtle pattern pulsing animation */
@keyframes patternPulse {
    0% {
        opacity: 0.3;
    }

    50% {
        opacity: 0.5;
    }

    100% {
        opacity: 0.3;
    }
}

/* Header styles */
header {
    padding: 20px;
    position: relative;
    /* Ensure it's above the background */
    z-index: 1;
}

.name-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.first-name,
.last-name {
    display: inline-block;
}

.profile-photo {
    border-radius: 50%;
    width: 100px;
    height: 100px;
    object-fit: cover;
}

/* Main content area */
main {
    position: relative;
    z-index: 1;
    min-height: 60vh;
    /* Ensure there's space for content */
    padding: 20px;
}

/* Footer styles */
footer {
    position: relative;
    z-index: 1;
    padding: 20px;
    margin-top: auto;
}

.follow-me {
    text-align: center;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

/*
 * Blur layer - also fixed position
 * Modify the HTML to include this div right after <body> tag
 */
.blur-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backdrop-filter: blur(0px);
    z-index: -1;
    animation: blurChange 20s ease-in-out infinite;
    pointer-events: none;
    /* Ensures clicks pass through */
}

@keyframes blurChange {
    0% {
        backdrop-filter: blur(0px);
    }

    25% {
        backdrop-filter: blur(1px);
    }

    50% {
        backdrop-filter: blur(2px);
    }

    75% {
        backdrop-filter: blur(1px);
    }

    100% {
        backdrop-filter: blur(0px);
    }
}

/* Global mobile adjustments */
@media (max-width: 768px) {
    body::before {
        background-size: 300% 300%;
    }

    main {
        padding: 12px 16px 20px;
    }

    header {
        padding: 6px 16px;
    }

    .name-container {
        flex-direction: row;
        gap: 10px;
    }

    header h1 {
        font-size: 0.9rem;
    }

    .profile-photo {
        width: 42px;
        height: 42px;
    }

    footer {
        margin-top: 32px;
    }

    .follow-me {
        padding: 16px;
        gap: 12px;
    }

    footer h4 {
        font-size: 0.7rem;
    }

    footer .btn-outline-secondary {
        padding: 6px 12px;
        font-size: 0.75rem;
    }
}

@media (max-width: 480px) {
    main {
        padding: 10px 12px 16px;
    }

    header h1 {
        font-size: 0.85rem;
    }
}

/* Header styles */
header {
    background-color: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 8px 20px;
    text-align: center;
    font-size: 1em;
    color: #f5f5f5;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Main content styles */
main {
    flex: 1;
    padding: 16px 20px 20px;
}

/* Footer - 2026 slim bar */
footer {
    margin-top: 48px;
    padding: 0;
    background: transparent;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    position: relative;
    width: 100%;
}

footer::before {
    display: none;
}

footer p {
    display: none;
}

.follow-me {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 20px 24px;
    flex-wrap: wrap;
}

footer h4 {
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: rgba(255, 255, 255, 0.4);
    margin: 0;
}

.footer .social-links,
footer .social-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

/* Footer social buttons - compact */
footer .btn-outline-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.25s ease;
}

footer .btn-outline-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
    color: #fff;
    transform: translateY(-1px);
}

a {
    color: #ffcc00;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Container to align name and photo */
.name-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

/* Header styles for name */
header h1 {
    font-size: 1.1rem;
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.7) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-align: center;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-weight: 600;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.first-name,
.last-name {
    display: block;
    line-height: 1.2;
}

/* Profile photo styling */
.profile-photo {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.15);
}


@keyframes fadeInMoveDown {
    0% {
        opacity: 0;
        transform: translateY(-35px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Styles for the introduction text */
/* Styles for the introduction text */
.intro-text {
    font-size: 1.5em;
    /* Increased size */
    line-height: 1.8;
    margin: 0 auto;
    color: #f5f5f5;
    background-color: transparent;
    /* Handled by glass card */
    padding: 0;
    text-align: justify;
    font-style: italic;
    animation: fadeInMoveDown 1.5s ease-out forwards;
}

/* Highlight keywords */
.intro-text strong {
    color: #ffcc00;
}

.button-container {
    display: flex;
    justify-content: center;
    /* Centers buttons horizontally */
    align-items: center;
    /* Centers buttons vertically (in case of different heights) */
    gap: 15px;
    /* Adds space between buttons */
    margin-top: 20px;
}

/*Base button styles */
/*Base button styles */
.btn {
    padding: 15px 35px;
    /* Larger */
    font-size: 1.1em;
    border-radius: 50px;
    /* Pill shape */
    text-decoration: none;
    font-weight: 800;
    /* Bolder */
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    display: inline-block;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

/* Primary Button (filled) */
.btn-primary {
    background: linear-gradient(45deg, #ffcc00, #ff9900);
    color: #1a1a1a;
    border: none;
    box-shadow: 0 4px 15px rgba(255, 204, 0, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(45deg, #ffdb33, #ffcc00);
    box-shadow: 0 6px 20px rgba(255, 204, 0, 0.5);
    /* Glowing effect */
    transform: translateY(-3px);
}

/* Secondary Button (outline) - Footer social links */
.btn-outline-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-outline-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Initially hidden state */
.hidden {
    opacity: 0;
    transform: translateY(70px);
    /* Shift it further down for a more noticeable animation */
    transition: opacity 1.7s ease-out, transform 1.7s ease-out;
    /* Increased duration for a slower effect */
}

/* Visible state for animation */
.visible {
    opacity: 1;
    transform: translateY(0);
    /* Return to normal position */
}


/* General styles for the achievements container */
#achievements {
    /* Container styles handled by .content-glass-card in HTML */
    padding: 10px;
    /* Minimal padding inside glass */
    margin: 50px auto;
    color: #f5f5f5;
    max-width: 900px;
    /* Match others */
}

/* Styling the Achievements heading */
#achievements h3 {
    font-size: 2em;
    /* Make heading larger */
    text-align: center;
    /* Center-align the heading */
    color: #ffcc00;
    /* Use a highlight color for emphasis */
    margin-bottom: 20px;
    /* Add space below the heading */
    letter-spacing: 1px;
    /* Slight spacing between letters */
    text-transform: uppercase;
    /* Make the heading uppercase */
}

/* Styling the list of achievements */
#achievements ul {
    list-style: none;
    /* Remove default list bullets */
    padding: 0;
}

#achievements ul li {
    font-size: 1.2em;
    /* Slightly increase font size */
    margin-bottom: 10px;
    /* Add space between list items */
    padding-left: 20px;
    position: relative;
    line-height: 1.6;
    /* Increase line height for better readability */
    font-weight: 300;
}

/* Add a custom trophy icon before each list item */
#achievements ul li {
    padding-left: 50px;
    /* Moves text to the right */
    position: relative;
    /* Ensures positioning works properly */
}

#achievements ul li::before {
    content: '🏆';
    /* Trophy emoji */
    position: absolute;
    left: 0;
    color: #ffcc00;
    /* Golden color */
    font-size: 1.5em;
    line-height: 1.6;
}


/* Subtle hover effect on list items */
#achievements ul li:hover {
    color: #ffcc00;
    /* Highlight text on hover */
    transition: color 0.3s ease;
    /* Smooth color transition */
}

/* General Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 25px;
    font-size: 1em;
    border-radius: 50px;
    /* Pill shape */
    text-decoration: none;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* Primary Button (Home, About, Portfolio) */
.btn-primary {
    background: linear-gradient(135deg, #ffcc00, #ff8c00);
    /* Gold to Orange */
    color: #222;
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #ffdb4d, #ffa500);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 204, 0, 0.4);
    color: #000;
}

/* Project Links Container */
.project-links {
    margin-top: auto;
    display: flex;
    gap: 15px;
}

.btn-github {
    flex: 1;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-github:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: #fff;
    transform: translateY(-2px);
}

.btn-website {
    flex: 1;
    background: linear-gradient(135deg, #00b4db, #0083b0);
    /* Blue Gradient */
    color: white;
    border: none;
}

.btn-website:hover {
    background: linear-gradient(135deg, #00c6ff, #0072ff);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 180, 219, 0.4);
}

/* ============================================================================
   PORTFOLIO PAGE - 2026 MODERN DESIGN
   ============================================================================ */

/* Portfolio page base + variables */
.full-screen-portfolio {
    --bg-base: #09090b;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --card-bg: rgba(255, 255, 255, 0.03);
    --card-border: rgba(255, 255, 255, 0.08);
    --card-hover: rgba(255, 255, 255, 0.06);
    --accent-gradient: linear-gradient(135deg, #818cf8 0%, #c084fc 100%);
    min-height: 100vh;
    padding: 100px 24px 80px;
    box-sizing: border-box;
    position: relative;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

/* Background: dark gradient with subtle animation */
.full-screen-portfolio::before {
    content: "";
    position: fixed;
    inset: 0;
    background: 
        radial-gradient(ellipse 100% 80% at 50% -30%, rgba(99, 102, 241, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse 80% 60% at 0% 100%, rgba(16, 185, 129, 0.08) 0%, transparent 40%),
        radial-gradient(ellipse 70% 50% at 100% 80%, rgba(245, 158, 11, 0.06) 0%, transparent 40%),
        linear-gradient(180deg, #09090b 0%, #0c0c10 50%, #0a0a0e 100%);
    z-index: -2;
}

/* Subtle noise texture */
.full-screen-portfolio::after {
    content: "";
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    opacity: 0.03;
    pointer-events: none;
    z-index: -1;
}

/* Back button */
.fixed-home-btn {
    position: fixed;
    top: 24px;
    left: 24px;
    z-index: 1000;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 100px;
    color: rgba(255, 255, 255, 0.7);
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.fixed-home-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
    color: #fff;
    transform: translateX(-4px);
}

.fixed-home-btn i {
    font-size: 0.75rem;
    transition: transform 0.3s ease;
}

.fixed-home-btn:hover i {
    transform: translateX(-2px);
}

/* Portfolio container */
.portfolio-container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
}

/* ===== HERO SECTION ===== */
.portfolio-hero {
    width: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 2rem;
    padding: 0 0 2rem;
    margin-bottom: 3rem;
    border-bottom: 1px solid var(--card-border);
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-text {
    text-align: left;
}

.portfolio-title {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin: 0 0 0.4rem 0;
    color: var(--text-secondary);
    -webkit-text-fill-color: unset;
    background: none;
}

.portfolio-tagline {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin: 0;
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* Bento Grid Stats - inline row */
.portfolio-stats-bento {
    display: flex;
    gap: 0.75rem;
    flex-shrink: 0;
}

/* Modern Glass Cards - compact chips */
.glass-panel {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 0.75rem;
    padding: 0.75rem 1.25rem;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
}

.glass-panel:hover {
    background: var(--card-hover);
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 6px 20px -6px rgba(0, 0, 0, 0.4);
}

.portfolio-stats-bento .stat-number {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.portfolio-stats-bento .stat-label {
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

/* Responsive: stack on small screens */
@media (max-width: 768px) {
    .portfolio-hero {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.25rem;
    }
    .portfolio-stats-bento {
        width: 100%;
    }
}

/* ===== TIMELINE ===== */
.timeline-container {
    position: relative;
    padding-left: 56px;
}

.timeline-line {
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, 
        rgba(99, 102, 241, 0.5) 0%,
        rgba(99, 102, 241, 0.2) 50%,
        transparent 100%);
    border-radius: 1px;
}

.timeline-year {
    position: relative;
    margin-bottom: 60px;
    animation: fadeInUp 0.6s ease-out backwards;
}

.timeline-year:nth-child(2) { animation-delay: 0.1s; }
.timeline-year:nth-child(3) { animation-delay: 0.2s; }
.timeline-year:nth-child(4) { animation-delay: 0.3s; }

.year-marker {
    position: absolute;
    left: -96px;
    top: 0;
    display: flex;
    align-items: center;
}

.year-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 28px;
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.02em;
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.3);
}

.year-projects {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* ===== PROJECT CARDS ===== */
.project-card {
    position: relative;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    padding: 32px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-card:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.12);
    transform: translateY(-4px);
    box-shadow: 
        0 20px 40px -12px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(99, 102, 241, 0.1);
}

/* Featured project */
.project-featured {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.08) 0%, rgba(139, 92, 246, 0.04) 100%);
    border-color: rgba(99, 102, 241, 0.2);
}

.project-featured:hover {
    border-color: rgba(99, 102, 241, 0.4);
    box-shadow: 
        0 20px 40px -12px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(99, 102, 241, 0.2),
        0 0 60px -20px rgba(99, 102, 241, 0.2);
}

.featured-badge {
    position: absolute;
    top: -1px;
    right: 24px;
    padding: 6px 14px;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    border-radius: 0 0 10px 10px;
    font-size: 0.7rem;
    font-weight: 600;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    display: flex;
    align-items: center;
    gap: 6px;
}

.featured-badge i {
    font-size: 0.6rem;
}

/* Project header - title with left accent */
.project-header {
    display: flex;
    align-items: stretch;
    gap: 0;
    margin-bottom: 16px;
}

.project-icon {
    flex-shrink: 0;
    width: 4px;
    min-height: 20px;
    margin-right: 16px;
    border-radius: 2px;
    align-self: stretch;
}

.project-icon i {
    display: none;
}

.project-icon[data-category="fullstack"] {
    background: linear-gradient(180deg, #6366f1 0%, #8b5cf6 100%);
}

.project-icon[data-category="web"] {
    background: linear-gradient(180deg, #10b981 0%, #34d399 100%);
}

.project-icon[data-category="ai"] {
    background: linear-gradient(180deg, #f59e0b 0%, #fbbf24 100%);
}

.project-icon[data-category="systems"] {
    background: linear-gradient(180deg, #ef4444 0%, #f87171 100%);
}

.project-icon[data-category="mobile"] {
    background: linear-gradient(180deg, #34d399 0%, #22c55e 100%);
}

.project-icon:not([data-category]) {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0.2) 100%);
}

.project-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
    letter-spacing: -0.02em;
    line-height: 1.35;
}

.project-description {
    font-size: 1rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.6);
    margin: 0 0 20px 0;
}

/* Tech stack */
.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}

.tech-badge {
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.2s ease;
}

.tech-badge:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

/* Project links */
.project-links {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.btn-project {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-github {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
}

.btn-github:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: #fff;
    transform: translateY(-2px);
}

.btn-live {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    border: none;
    color: #fff;
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.25);
}

.btn-live:hover {
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.35);
    transform: translateY(-2px);
}

.btn-project i {
    font-size: 0.9rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .full-screen-portfolio {
        padding: 80px 16px 60px;
    }
    
    .fixed-home-btn {
        top: 16px;
        left: 16px;
        padding: 8px 16px;
    }
    
    .fixed-home-btn span {
        display: none;
    }
    
    .portfolio-hero {
        margin-bottom: 2rem;
    }
    
    .portfolio-tagline {
        font-size: 1.15rem;
    }
    
    .portfolio-stats-bento .stat-number {
        font-size: 1.1rem;
    }
    
    .timeline-container {
        padding-left: 0;
    }
    
    .timeline-line {
        display: none;
    }
    
    .year-marker {
        position: relative;
        left: 0;
        margin-bottom: 20px;
    }
    
    .project-card {
        padding: 24px;
    }
    
    .project-header {
        align-items: stretch;
    }
    
    .project-icon {
        width: 4px;
        min-height: 20px;
    }
    
    .project-title {
        font-size: 1.25rem;
    }
    
    .project-links {
        flex-direction: column;
    }
    
    .btn-project {
        justify-content: center;
    }
}

/* ============================================================================
   INDEX / HOMEPAGE - 2026 MODERN DESIGN
   ============================================================================ */

.index-page {
    min-height: 100%;
    padding: 48px 24px 80px;
    box-sizing: border-box;
    position: relative;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Background: match portfolio dark theme */
.index-page::before {
    content: "";
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse 100% 80% at 50% -30%, rgba(99, 102, 241, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse 80% 60% at 0% 100%, rgba(16, 185, 129, 0.06) 0%, transparent 40%),
        radial-gradient(ellipse 70% 50% at 100% 80%, rgba(245, 158, 11, 0.05) 0%, transparent 40%),
        linear-gradient(180deg, #09090b 0%, #0c0c10 50%, #0a0a0e 100%);
    z-index: -2;
}

.index-page::after {
    content: "";
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    opacity: 0.03;
    pointer-events: none;
    z-index: -1;
}

.index-container {
    max-width: 800px;
    margin: 0 auto;
}

/* Hero */
.index-hero {
    text-align: center;
    margin-bottom: 64px;
    animation: fadeInUp 0.8s ease-out;
}

@keyframes indexFadeInUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}

.index-page .index-hero {
    animation: indexFadeInUp 0.8s ease-out;
}

.index-name-photo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-bottom: 28px;
}

.index-photo {
    width: 160px;
    height: 160px;
    border-radius: 12px;
    object-fit: cover;
    border: 3px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.index-name {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #fff;
    margin: 0;
    line-height: 1.2;
}

.index-intro {
    font-size: 1.1rem;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.7);
    margin: 0 0 36px 0;
    text-align: center;
}

.index-intro strong {
    color: rgba(255, 255, 255, 0.95);
    font-weight: 600;
}

.index-ctas {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
}

.btn-index {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 26px;
    border-radius: 14px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: 'Inter', sans-serif;
}

.btn-primary-index {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #fff;
}

.btn-primary-index:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.btn-accent-index {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    border: none;
    color: #fff;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.3);
}

.btn-accent-index:hover {
    box-shadow: 0 8px 28px rgba(99, 102, 241, 0.4);
    transform: translateY(-2px);
}

.btn-cv-index {
    background: rgba(220, 38, 38, 0.2);
    border: 1px solid rgba(220, 38, 38, 0.4);
    color: #fca5a5;
}

.btn-cv-index:hover {
    background: rgba(220, 38, 38, 0.3);
    border-color: rgba(220, 38, 38, 0.6);
    transform: translateY(-2px);
}

.btn-ghost-index {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.85);
}

.btn-ghost-index:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

/* Journal card */
.index-journal {
    animation: indexFadeInUp 0.6s ease-out 0.15s backwards;
}

.journal-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    padding: 32px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.journal-card:hover {
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.4);
}

.journal-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.35rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 8px 0;
}

.journal-title i {
    color: #a5b4fc;
    font-size: 1.1rem;
}

.journal-desc {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.5);
    margin: 0 0 24px 0;
}

.journal-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.journal-list li {
    margin: 0;
}

.journal-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    border-radius: 14px;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: background 0.25s ease, color 0.25s ease;
    margin-bottom: 6px;
}

.journal-link:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
}

.journal-link-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(99, 102, 241, 0.15);
    color: #a5b4fc;
    flex-shrink: 0;
}

.journal-link-title {
    flex: 1;
    font-weight: 500;
    font-size: 1rem;
}

.journal-link-arrow {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
    transition: transform 0.25s ease;
}

.journal-link:hover .journal-link-arrow {
    transform: translateX(4px);
    color: rgba(255, 255, 255, 0.8);
}

/* Retro "Me" popup - old computer terminal style */
.me-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.me-modal-overlay.me-modal-open {
    opacity: 1;
    visibility: visible;
}

.me-modal {
    position: relative;
    max-width: 480px;
    width: 100%;
    max-height: 85vh;
    overflow: hidden;
}

.me-terminal {
    background: #0a0a0a;
    border: 2px solid #33ff33;
    border-radius: 4px;
    box-shadow: 
        0 0 20px rgba(51, 255, 51, 0.2),
        inset 0 0 60px rgba(0, 0, 0, 0.5);
}

.me-terminal-header {
    background: #111;
    border-bottom: 1px solid #33ff33;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.me-terminal-dots {
    flex-shrink: 0;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #33ff33;
    box-shadow: 18px 0 0 #ffcc00, 36px 0 0 #ff3333;
}

.me-terminal-title {
    margin-left: auto;
    font-family: 'Courier New', Consolas, monospace;
    font-size: 0.7rem;
    color: #33ff33;
    letter-spacing: 1px;
}

.me-terminal-body {
    padding: 16px 18px 20px;
    font-family: 'Courier New', Consolas, monospace;
    font-size: 0.85rem;
    line-height: 1.6;
    color: #33ff33;
    min-height: 200px;
    max-height: 60vh;
    overflow-y: auto;
}

.me-terminal-body::-webkit-scrollbar {
    width: 8px;
}

.me-terminal-body::-webkit-scrollbar-track {
    background: #0a0a0a;
}

.me-terminal-body::-webkit-scrollbar-thumb {
    background: #33ff33;
    border-radius: 4px;
}

.me-output {
    margin: 0;
    white-space: pre-wrap;
    word-break: break-word;
}

.me-prompt {
    color: #ffcc00;
}

.me-cursor {
    color: #33ff33;
    animation: me-blink 1s step-end infinite;
}

@keyframes me-blink {
    50% { opacity: 0; }
}

.me-modal-close {
    position: absolute;
    top: -36px;
    right: 0;
    width: 32px;
    height: 32px;
    border: 2px solid #33ff33;
    background: #0a0a0a;
    color: #33ff33;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: background 0.2s, color 0.2s;
}

.me-modal-close:hover {
    background: #33ff33;
    color: #0a0a0a;
}

@media (max-width: 768px) {
    .index-page {
        padding: 32px 16px 60px;
    }
    .index-photo {
        width: 140px;
        height: 140px;
    }
    .index-ctas {
        flex-direction: column;
    }
    .btn-index {
        justify-content: center;
    }
    .journal-card {
        padding: 24px;
    }
    .me-modal-overlay {
        padding: 16px;
    }
    .me-terminal-body {
        font-size: 0.8rem;
        padding: 12px 14px 16px;
    }
}

/* ============================================================================
   ABOUT PAGE - 2026 MODERN DESIGN
   ============================================================================ */

.about-page {
    min-height: 100%;
    padding: 48px 24px 80px;
    box-sizing: border-box;
    position: relative;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.about-page::before {
    content: "";
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse 100% 80% at 50% -30%, rgba(99, 102, 241, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse 80% 60% at 0% 100%, rgba(16, 185, 129, 0.06) 0%, transparent 40%),
        radial-gradient(ellipse 70% 50% at 100% 80%, rgba(245, 158, 11, 0.05) 0%, transparent 40%),
        linear-gradient(180deg, #09090b 0%, #0c0c10 50%, #0a0a0e 100%);
    z-index: -2;
}

.about-page::after {
    content: "";
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    opacity: 0.03;
    pointer-events: none;
    z-index: -1;
}

.about-container-inner {
    max-width: 720px;
    margin: 0 auto;
}

.about-hero {
    text-align: center;
    margin-bottom: 48px;
    animation: indexFadeInUp 0.6s ease-out;
}

.about-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #fff;
    margin: 0 0 8px 0;
}

.about-tagline {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
}

.about-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    padding: 32px;
    margin-bottom: 24px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.about-card:hover {
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.35);
}

.about-card-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 20px 0;
}

.about-card-title i {
    color: #a5b4fc;
}

.about-text {
    font-size: 1.05rem;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.75);
    margin: 0 0 18px 0;
}

.about-text strong {
    color: rgba(255, 255, 255, 0.95);
    font-weight: 600;
}

.about-text-last {
    margin-bottom: 0;
}

.about-connect-inline {
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.about-connect-inline .about-connect-label {
    margin: 0;
}

.about-connect-inline .about-social {
    justify-content: flex-start;
}

.about-link {
    color: #a5b4fc;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.about-link:hover {
    color: #c7d2fe;
}

.about-achievements {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.about-achievements.visible {
    opacity: 1;
    transform: translateY(0);
}

.about-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.about-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.about-list li:last-child {
    border-bottom: none;
}

.about-list li i {
    color: rgba(245, 158, 11, 0.9);
    font-size: 0.9rem;
    flex-shrink: 0;
}

.about-actions {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.about-connect {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.about-connect-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: rgba(255, 255, 255, 0.45);
}

.about-social {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

.btn-about {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 22px;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: 'Inter', sans-serif;
}

.btn-about-cv {
    background: rgba(220, 38, 38, 0.15);
    border: 1px solid rgba(220, 38, 38, 0.35);
    color: #fca5a5;
}

.btn-about-cv:hover {
    background: rgba(220, 38, 38, 0.25);
    border-color: rgba(220, 38, 38, 0.5);
    transform: translateY(-2px);
}

.btn-about-ghost {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.85);
}

.btn-about-ghost:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: #fff;
    transform: translateY(-2px);
}

.btn-about-accent {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    border: none;
    color: #fff;
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.25);
}

.btn-about-accent:hover {
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.35);
    transform: translateY(-2px);
}

.btn-about-back {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.7);
}

.btn-about-back:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.25);
    color: #fff;
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .about-page {
        padding: 32px 16px 60px;
    }
    .about-card {
        padding: 24px;
    }
    .about-actions {
        margin-top: 32px;
    }
}

/* ============================================================================
   JOURNAL ENTRY PAGE - 2026 MODERN DESIGN
   ============================================================================ */

.journal-entry-page {
    min-height: 100%;
    padding: 48px 24px 80px;
    box-sizing: border-box;
    position: relative;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.journal-entry-page::before {
    content: "";
    position: fixed;
    inset: 0;
    background:
        radial-gradient(ellipse 100% 80% at 50% -30%, rgba(99, 102, 241, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse 80% 60% at 0% 100%, rgba(16, 185, 129, 0.06) 0%, transparent 40%),
        radial-gradient(ellipse 70% 50% at 100% 80%, rgba(245, 158, 11, 0.05) 0%, transparent 40%),
        linear-gradient(180deg, #09090b 0%, #0c0c10 50%, #0a0a0e 100%);
    z-index: -2;
}

.journal-entry-page::after {
    content: "";
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    opacity: 0.03;
    pointer-events: none;
    z-index: -1;
}

.journal-entry-container {
    max-width: 680px;
    margin: 0 auto;
}

.journal-entry-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 32px;
    padding: 8px 0;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s ease, transform 0.2s ease;
}

.journal-entry-back:hover {
    color: #fff;
    transform: translateX(-4px);
}

.journal-entry-back i {
    font-size: 0.8rem;
}

.journal-entry-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 32px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.journal-entry-card:hover {
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.35);
}

.journal-entry-header {
    margin-bottom: 28px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.journal-entry-title {
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #fff;
    margin: 0 0 12px 0;
    line-height: 1.3;
}

.journal-entry-date {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
}

.journal-entry-date i {
    color: #a5b4fc;
    font-size: 0.85rem;
}

.journal-entry-content {
    font-size: 1.05rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.85);
}

.journal-entry-content p {
    margin: 0 0 1em 0;
}

.journal-entry-content p:last-child {
    margin-bottom: 0;
}

.journal-entry-actions {
    display: flex;
    justify-content: center;
}

.journal-entry-actions .btn-about-back {
    margin: 0;
}

@media (max-width: 768px) {
    .journal-entry-page {
        padding: 32px 16px 60px;
    }
    .journal-entry-container {
        max-width: 100%;
    }
    .journal-entry-card {
        padding: 24px;
    }
    .journal-entry-title {
        font-size: 1.35rem;
    }
}

/* Modern Content Container (For other pages) */
.content-glass-card {
    background: rgba(20, 20, 20, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    margin: 2rem auto;
    max-width: 900px;
    color: #f5f5f5;
}

/* Enhance About Page */
.about-container {
    padding: 2rem 0;
}