/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Performance optimizations */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'JetBrains Mono', monospace;
    line-height: 1.6;
    color: #000000;
    background: linear-gradient(180deg, #fafbfc 0%, #f8f9fa 30%, #ffffff 100%);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}


.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}


/* Hero Section */
.hero {
    min-height: 100vh;
    background: #ffffff;
    color: #000000;
    padding: 60px 40px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: linear-gradient(180deg, rgba(107, 114, 128, 0.08) 0%, rgba(107, 114, 128, 0.04) 30%, transparent 100%);
    z-index: 0;
    border-radius: 12px;
}

.hero-container {
    max-width: 1000px;
    margin: 0 auto;
    width: 100%;
    display: grid;
    grid-template-areas: 
        "label ."
        "title navigation"
        "animation ."
        "description .";
    grid-template-columns: 2.5fr 1fr;
    grid-template-rows: auto auto auto auto;
    gap: 16px;
    min-height: calc(100vh - 120px);
    align-items: start;
    position: relative;
    z-index: 1;
    padding: 40px 60px;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 20px;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.15),
        0 8px 25px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.6),
        inset 0 -1px 0 rgba(0, 0, 0, 0.05);
    overflow: visible;
}




.section-label {
    grid-area: label;
    font-size: 0.9rem;
    color: #999999;
    font-weight: 400;
    font-family: 'JetBrains Mono', monospace;
    align-self: start;
    padding-top: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.label-accent {
    width: 2px;
    height: 12px;
    background: linear-gradient(180deg, #e5e7eb 0%, #d1d5db 50%, #e5e7eb 100%);
    border-radius: 1px;
    opacity: 0.6;
}


.hero-title {
    grid-area: title;
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.07;
    letter-spacing: -0.02em;
    margin: 0;
    text-align: left;
    align-self: start;
    font-family: 'JetBrains Mono', monospace;
    white-space: nowrap;
}

.name {
    display: block;
    margin-bottom: 0;
    font-family: 'IBM Plex Sans', sans-serif;
    font-weight: 700;
}

.animated-text-block {
    margin-bottom: 0;
    margin-top: 0.07em;
    grid-area: animation;
}

@media (max-width: 768px) {
    .hero-container {
        padding: 30px 40px;
        max-width: 90%;
    }
    
    .label-accent {
        height: 8px;
    }
    
    .animated-text-block {
        margin-top: 0.05em;
        margin-bottom: 0.05em;
    }
    
    .hero-title {
        margin-bottom: 0px;
    }
    
    .hero-description {
        margin-top: 0px;
        margin-bottom: 0px;
    }
    
    .hero-navigation {
        margin-top: 0px;
    }
}

.animated-text {
    font-family: 'Space Mono', monospace;
    font-size: 2.5rem;
    font-weight: 500;
    color: #ffffff;
    background-color: #000000;
    padding: 0.2em 0.4em;
    border-radius: 4px;
    display: inline-block;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin: 0 0 3rem 0;
    position: relative;
    min-width: fit-content;
    max-width: 400px;
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
    min-height: 3.5rem;
}

.animated-text::after {
    content: '|';
    color: #ffffff;
    animation: blink 1s infinite;
    font-weight: 300;
}

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

.hero-description {
    grid-area: description;
    max-width: 400px;
    width: auto;
    align-self: start;
    position: relative;
    margin-top: -1.5rem;
}

.hero-description p {
    font-size: 1.1rem;
    color: #000000;
    font-weight: 400;
    font-family: 'JetBrains Mono', monospace;
    line-height: 1.3;
    margin: 0;
}

.hero-navigation {
    grid-area: navigation;
    display: flex;
    flex-direction: column;
    align-self: start;
    justify-content: flex-start;
    margin-top: 0;
    gap: 0;
    max-width: 200px;
    justify-self: start;
    margin-left: 40px;
    margin-right: 0;
    text-align: left;
    padding-top: 0px;
}

.nav-item {
    color: #000000;
    text-decoration: none;
    font-size: 1.1rem;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 400;
    padding: 0.75rem 0;
    position: relative;
    transition: all 0.2s ease;
    border-bottom: 1px solid #e5e7eb;
    text-align: left;
}

.nav-item:last-child {
    border-bottom: none;
}

.nav-item:hover {
    color: #333333;
    padding-left: 0.5rem;
}

.nav-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 1px;
    background: #000000;
    transition: width 0.2s ease;
}

.nav-item:hover::before {
    width: 0.5rem;
}

/* Section Styles */
section {
    padding: 0;
}

/* Page Styles for dedicated pages */
.page-container {
    width: 100%;
    margin: 0;
    padding: 60px 40px;
    min-height: 100vh;
    background: linear-gradient(180deg, #fafbfc 0%, #f8f9fa 30%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}


.page-header {
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.page-header .section-label {
    font-size: 0.9rem;
    color: #999999;
    font-weight: 400;
    font-family: 'JetBrains Mono', monospace;
    margin: 0;
    padding: 0;
    line-height: 1.2;
    height: auto;
    display: flex;
    align-items: center;
    align-self: center;
    padding-top: 0;
}

.back-link {
    color: #666666;
    text-decoration: none;
    font-size: 0.9rem;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 400;
    margin: 0;
    padding: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    transition: color 0.3s ease;
    line-height: 1.2;
    height: auto;
}

.back-link:hover {
    color: #000000;
}

.back-link .material-icons {
    font-size: 0.9rem;
    line-height: 1.2;
    font-weight: 400;
    font-family: 'Material Icons' !important;
    font-style: normal !important;
    font-variant: normal !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    word-wrap: normal !important;
    white-space: nowrap !important;
    direction: ltr !important;
    vertical-align: baseline;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #000000;
    margin: 0;
}

/* Resume Styles */

.resume-content {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 60px;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 
        0 25px 80px rgba(0, 0, 0, 0.25),
        0 12px 35px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.6),
        inset 0 -1px 0 rgba(0, 0, 0, 0.05);
    overflow: visible;
}

.resume-section h2 {
    font-size: 1.6rem;
    font-weight: 600;
    color: #000000;
    margin-bottom: 1.5rem;
    border-bottom: 2px dashed #666666;
    padding-bottom: 0.5rem;
    font-family: 'IBM Plex Sans', sans-serif;
}

.resume-item {
    margin-bottom: 2rem;
}

.resume-item h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #000000;
    margin-bottom: 0.25rem;
    font-family: 'IBM Plex Sans', sans-serif;
}

.company {
    color: #666666;
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 600;
}

.resume-item p:not(.company) {
    color: #333333;
    line-height: 1.6;
    font-size: 0.9rem;
    font-family: 'IBM Plex Sans', sans-serif;
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.skill-category h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #000000;
    margin-bottom: 0.5rem;
    font-family: 'IBM Plex Sans', sans-serif;
}

.skill-category p {
    color: #666666;
    font-size: 0.9rem;
    line-height: 1.5;
    font-family: 'IBM Plex Sans', sans-serif;
}

/* Contact Section Styles */

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #333333;
    font-size: 0.95rem;
    font-family: 'IBM Plex Sans', sans-serif;
}

.contact-item i {
    color: #000000;
    width: 20px;
    text-align: center;
    font-size: 1rem;
}

.download-link {
    color: #000000;
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease;
    font-family: 'IBM Plex Sans', sans-serif;
}

.download-link:hover {
    border-bottom-color: #000000;
}

/* Professional Summary */
.summary-text {
    color: #333333;
    line-height: 1.7;
    font-size: 0.95rem;
    margin: 0;
    text-align: justify;
    font-family: 'IBM Plex Sans', sans-serif;
}

/* Achievement Lists */
.achievement-list {
    margin: 0.75rem 0 0 0;
    padding-left: 0;
    list-style: none;
}

.achievement-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    color: #333333;
    line-height: 1.6;
    font-size: 0.9rem;
    font-family: 'IBM Plex Sans', sans-serif;
}

.achievement-list li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: #000000;
    font-weight: bold;
}

/* Education Awards - Base Layout */
.education-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
    min-height: auto;
}

.education-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.education-awards {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-end;
    min-width: 200px;
    align-self: flex-start;
    max-height: fit-content;
    flex-shrink: 0;
}

/* Common Award Badge Styles */
.award-badge {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 0.8rem;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 500;
    color: #495057;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    width: 240px;
    height: 40px;
    box-sizing: border-box;
    overflow: visible;
}

.award-icon {
    font-size: 1rem;
    color: #000000;
    font-weight: bold;
    width: 16px;
    text-align: center;
    flex-shrink: 0;
}

.award-text {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    letter-spacing: 0.025em;
    flex: 1;
    text-align: left;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Desktop Award Badge */
.award-badge:hover {
    background: #e9ecef;
    border-color: #dee2e6;
    transform: translateX(-2px);
}

/* Desktop Tooltip */
.award-tooltip-desktop {
    position: absolute;
    right: 100%;
    top: 50%;
    transform: translateY(-50%);
    margin-right: 12px;
    background: #000000;
    color: #ffffff;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 0.75rem;
    line-height: 1.3;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.award-tooltip-desktop::after {
    content: '';
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    border: 4px solid transparent;
    border-left-color: #000000;
}

.award-badge:hover .award-tooltip-desktop {
    opacity: 1;
    visibility: visible;
}

/* Mobile Tooltip - Small Extension */
.award-tooltip-mobile {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: 8px;
    background: #000000;
    color: #ffffff;
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 0.75rem;
    line-height: 1.4;
    white-space: normal;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    max-width: 280px;
    min-width: 200px;
    text-align: center;
    display: none; /* Hide mobile tooltips on desktop by default */
}

.award-tooltip-mobile::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 4px solid transparent;
    border-top-color: #000000;
}

.award-badge:hover .award-tooltip-mobile {
    opacity: 1;
    visibility: visible;
}

/* Mobile Responsive Layout */
@media (max-width: 768px) {
    .education-content {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .education-awards {
        flex-direction: row;
        justify-content: flex-start;
        flex-wrap: wrap;
        min-width: auto;
        gap: 0.5rem;
    }
    
    .award-badge {
        padding: 0.6rem 0.8rem;
        font-size: 0.75rem;
        width: 237px;
        height: 40px;
    }
    
    .award-text {
        font-size: 0.7rem;
    }
    
    .award-icon {
        font-size: 0.9rem;
        width: 14px;
    }
    
    /* Hide desktop tooltips on mobile */
    .award-tooltip-desktop {
        display: none;
    }
    
    /* Show mobile tooltips on mobile */
    .award-tooltip-mobile {
        display: block;
        max-width: 250px;
        min-width: 180px;
        padding: 8px 12px;
        font-size: 0.7rem;
    }
    
    /* Disable desktop hover effects on mobile */
    .award-badge:hover {
        background: #f8f9fa;
        border-color: #e9ecef;
        transform: none;
    }
}

/* Certifications Grid */
.certifications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.cert-item {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #000000;
}

.cert-item h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #000000;
    margin-bottom: 0.25rem;
    font-family: 'IBM Plex Sans', sans-serif;
}

.cert-item .company {
    color: #666666;
    font-size: 0.85rem;
    margin-bottom: 0;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 600;
}

/* Enhanced Resume Item Styling */
.resume-item {
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px dashed #666666;
}

.resume-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.resume-item h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #000000;
    margin-bottom: 0.25rem;
    font-family: 'IBM Plex Sans', sans-serif;
}

/* Enhanced Skills Grid */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.skill-category {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #000000;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.skill-category:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.skill-category h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: #000000;
    margin-bottom: 0.75rem;
    font-family: 'IBM Plex Sans', sans-serif;
}

.skill-category p {
    color: #666666;
    font-size: 0.85rem;
    line-height: 1.6;
    margin: 0;
    font-family: 'IBM Plex Sans', sans-serif;
}

/* Skills List Styles */
.skills-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.skill-item {
    padding: 0.75rem 1rem;
    background: #f8f9fa;
    border-radius: 6px;
    border-left: 4px solid #000000;
    color: #333333;
    font-weight: 500;
    font-size: 0.85rem;
    transition: all 0.2s ease;
    font-family: 'IBM Plex Sans', sans-serif;
}

.skill-item:hover {
    background: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Tools Grid Styles */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.tool-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: #ffffff;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    transition: all 0.2s ease;
    font-size: 0.8rem;
}

.tool-item:hover {
    background: #f8f9fa;
    border-color: #000000;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.tool-item i {
    font-size: 2rem;
    color: #666666;
    margin-bottom: 0.5rem;
}

.tool-item:hover i {
    color: #333333;
    transform: scale(1.1);
}

.r-logo {
    width: 2rem;
    height: 2rem;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.r-logo svg {
    width: 100%;
    height: 100%;
}

.tool-item:hover .r-logo {
    transform: scale(1.1);
}

.tool-item span {
    color: #333333;
    font-weight: 500;
    text-align: center;
    font-size: 0.85rem;
    font-family: 'IBM Plex Sans', sans-serif;
}

/* Projects Styles */
.projects-content {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 60px;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 
        0 25px 80px rgba(0, 0, 0, 0.25),
        0 12px 35px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.6),
        inset 0 -1px 0 rgba(0, 0, 0, 0.05);
    overflow: visible;
}

/* Card Layout */
.projects-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    width: 100%;
    max-width: 1000px;
    margin: 0;
    position: relative;
}

.project-card {
    background: rgba(255, 255, 255, 0.12);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    display: flex;
    flex-direction: column;
    height: auto;
    min-height: 225px;
    width: 100%;
    margin: 0;
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.project-card:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-12px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Card hover effect - only skill tags turn light blue */
.project-card:hover .skill-tag {
    background: #dbeafe !important;
    border-color: #93c5fd !important;
    color: #1e40af !important;
}

.project-image-container {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
    flex-shrink: 0;
}

.project-image {
    width: 100%;
    height: 100%;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    filter: grayscale(100%);
    overflow: hidden;
}

.project-card:hover .project-image {
    filter: grayscale(0%);
    transform: scale(1.05);
}

.project-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.image-fade-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(transparent, rgba(255, 255, 255, 0.08));
    pointer-events: none;
    transition: all 0.4s ease;
}

.project-card:hover .image-fade-overlay {
    background: linear-gradient(transparent, rgba(255, 255, 255, 0.12));
}

.image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 2.5rem;
    color: #9ca3af;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-card:hover .image-placeholder {
    color: #6b7280;
    transform: scale(1.1);
}

.project-content {
    padding: 19px;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.project-info {
    display: flex;
    flex-direction: column;
    flex: 1;
    justify-content: flex-start;
}

.project-info h3 {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.95rem;
    font-weight: 700;
    color: #000000;
    margin-bottom: 0.5rem;
    line-height: 1.2;
    transition: all 0.3s ease;
    text-align: left;
}

.project-info p {
    font-family: 'JetBrains Mono', monospace;
    color: #333333;
    line-height: 1.4;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    text-align: left;
}

.project-description {
    max-height: 3.6em; /* Approximately 3 lines */
    overflow: hidden;
    position: relative;
    line-height: 1.6;
    margin-bottom: 0;
}

.project-description::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 0.8em; /* Reduced height for later fade start */
    background: linear-gradient(transparent, rgba(255, 255, 255, 0.95));
    pointer-events: none;
}

/* Project Modal */
.project-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.project-modal.active {
    display: flex;
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    animation: fadeIn 0.3s ease;
}

.modal-content {
    position: relative;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    max-width: 700px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.3);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.7);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.modal-close:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: scale(1.1);
}

.modal-close i {
    font-size: 1.2rem;
    color: #fff;
    font-weight: bold;
}

.modal-image-container {
    width: 100%;
    height: 46vh;
    overflow: hidden;
    border-radius: 20px 20px 0 0;
}

.modal-image {
    width: 100%;
    height: 100%;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: grayscale(0%);
    transition: all 0.3s ease;
    overflow: hidden;
}

.modal-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    transition: opacity 0.3s ease;
}

/* Special styling for magazine images to show whole image with negative space */
.modal-img[src*="monthly-trailblazer-magazine"] {
    object-fit: contain;
    object-position: center;
}

/* Carousel Controls */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.7);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    color: white;
    font-size: 1.2rem;
}

.carousel-btn:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: translateY(-50%) scale(1.1);
}

.carousel-prev {
    left: 15px;
}

.carousel-next {
    right: 15px;
}

.carousel-indicators {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.carousel-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-indicator.active {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.2);
}

.carousel-indicator:hover {
    background: rgba(255, 255, 255, 0.8);
}

.modal-info {
    padding: 30px;
}

.modal-info h2 {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.2rem;
    font-weight: 700;
    color: #000000;
    margin-bottom: 0.8rem;
    line-height: 1.3;
}

.modal-info p {
    font-family: 'JetBrains Mono', monospace;
    color: #333333;
    line-height: 1.6;
    font-size: 0.9rem;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from { 
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }
    to { 
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}



/* Project Download Button */
.project-download {
    margin-top: 15px;
    display: flex;
    justify-content: flex-start;
}

.download-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 0, 0, 0.1);
    color: #000000;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    font-family: 'JetBrains Mono', monospace;
    padding: 8px 16px;
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.download-btn:hover {
    background: rgba(0, 0, 0, 0.15);
    border-color: rgba(0, 0, 0, 0.3);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.download-btn i {
    font-size: 0.8rem;
}

/* Modal Download Button */
.modal-download {
    margin-top: 20px;
    display: flex;
    justify-content: center;
}

.modal-download-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(0, 0, 0, 0.1);
    color: #000000;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    font-family: 'JetBrains Mono', monospace;
    padding: 10px 20px;
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.modal-download-btn:hover {
    background: rgba(0, 0, 0, 0.15);
    border-color: rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.modal-download-btn i {
    font-size: 0.72rem;
}

/* Modal Description Paragraphs */
.modal-info p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.modal-info p:last-child {
    margin-bottom: 0;
}

/* Modal Skills Section - Compact skills display */
.modal-skills-section {
    padding: 15px 30px;
    border-top: 1px solid #e5e7eb;
    background: #f8f9fa;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.modal-skills-section-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    font-weight: 600;
    color: #374151;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.25rem;
}

.modal-skills-section-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
}

/* Modal Actions Section - Bottom section for links and downloads */
.modal-actions {
    padding: 15px 30px 20px 30px;
    border-top: 1px solid #e5e7eb;
    background: #f8f9fa;
    border-radius: 0 0 20px 20px;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.modal-actions-section {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.modal-actions-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    font-weight: 600;
    color: #374151;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.2rem;
}

.modal-actions-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.modal-actions-downloads {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.modal-external-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.8rem;
    background: #000000;
    border: 1px solid #000000;
    border-radius: 6px;
    color: #ffffff;
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 500;
    font-family: 'JetBrains Mono', monospace;
    transition: all 0.3s ease;
    cursor: pointer;
}

.modal-external-link:hover {
    background: #374151;
    border-color: #374151;
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.modal-external-link i {
    font-size: 0.7rem;
    color: #ffffff;
}

.modal-download-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.8rem;
    background: #000000;
    border: 1px solid #000000;
    border-radius: 6px;
    color: #ffffff;
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 500;
    font-family: 'JetBrains Mono', monospace;
    transition: all 0.3s ease;
    cursor: pointer;
}

.modal-download-btn:hover {
    background: #374151;
    border-color: #374151;
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.modal-download-btn i {
    font-size: 0.7rem;
    color: #ffffff;
}

/* Legacy project-item styles for backward compatibility */
.project-item {
    border-bottom: 2px dashed #666666;
    padding-bottom: 2rem;
    margin-bottom: 1rem;
}

.project-item:last-child {
    border-bottom: none;
}

.project-item h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #000000;
    margin-bottom: 0.5rem;
}

.project-item p:not(.project-tech) {
    color: #333333;
    line-height: 1.6;
    margin-bottom: 1rem;
}

/* Blog Styles */
.blog-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 60px;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 
        0 25px 80px rgba(0, 0, 0, 0.25),
        0 12px 35px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.6),
        inset 0 -1px 0 rgba(0, 0, 0, 0.05);
    overflow: visible;
}

/* New Blog Design Styles */

.blog-posts-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.blog-post-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 0.75rem 0;
    border-bottom: 1px solid #e5e7eb;
    transition: all 0.3s ease;
}

.blog-post-item:last-child {
    border-bottom: none;
}

.blog-post-item:hover {
    background: rgba(0, 0, 0, 0.02);
    margin: 0 -1.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
}

.blog-post-link {
    text-decoration: none;
    flex: 1;
    margin-right: 2rem;
}

.blog-post-title {
    font-size: 1.1rem;
    font-weight: 400;
    color: #000000;
    margin: 0;
    line-height: 1.4;
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    transition: color 0.3s ease;
}

.blog-post-link:hover .blog-post-title {
    color: #0052a3;
    text-decoration: underline;
}

.blog-post-date {
    font-size: 0.9rem;
    color: #999999;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 400;
    white-space: nowrap;
    flex-shrink: 0;
}

/* Legacy blog styles for backward compatibility */
.blog-post {
    border-bottom: 2px dashed #666666;
    padding-bottom: 2rem;
    margin-bottom: 1rem;
}

.blog-post:last-child {
    border-bottom: none;
}

.blog-post h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #000000;
    margin-bottom: 0.5rem;
}

.blog-meta {
    color: #666666;
    font-size: 0.9rem;
    font-family: 'JetBrains Mono', monospace;
    margin-bottom: 1rem;
}

.blog-post p:not(.blog-meta) {
    color: #333333;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.read-more {
    color: #000000;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    font-family: 'JetBrains Mono', monospace;
    transition: color 0.3s ease;
}

.read-more:hover {
    color: #666666;
}

/* Individual Blog Post Styles */
.blog-post-content {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 60px;
    background: transparent;
    overflow: visible;
}

.blog-article {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.article-header {
    text-align: left;
    margin-bottom: 2rem;
}

.article-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: #000000;
    margin: 0 0 1rem 0;
    line-height: 1.2;
    font-family: 'JetBrains Mono', monospace;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.article-date {
    font-size: 0.9rem;
    color: #999999;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 400;
}

.article-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    line-height: 1.7;
}

.article-content h2 {
    font-size: 1.4rem;
    font-weight: 600;
    color: #000000;
    margin: 2rem 0 1rem 0;
    font-family: 'JetBrains Mono', monospace;
}

.article-content p {
    font-size: 1rem;
    color: #333333;
    margin: 0;
    line-height: 1.7;
    font-family: 'JetBrains Mono', monospace;
}

.article-quote {
    margin: 2rem 0;
    padding: 1.5rem 2rem;
    background: #f8f9fa;
    border-left: 4px solid #000000;
    border-radius: 0 8px 8px 0;
    font-style: italic;
}

.article-quote p {
    font-size: 1.1rem;
    color: #333333;
    margin: 0 0 0.5rem 0;
    line-height: 1.6;
}

.article-quote cite {
    font-size: 0.9rem;
    color: #666666;
    font-family: 'JetBrains Mono', monospace;
    font-style: normal;
    font-weight: 500;
}


/* Animations */
@keyframes float {
    0%, 100% {
        transform: translateY(-50%) translateX(0px);
    }
    50% {
        transform: translateY(-50%) translateX(20px);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        padding: 2rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .nav-toggle.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .hero {
        padding: 40px 20px;
        min-height: 100vh;
    }

    .hero::before {
        height: 250px;
    }

    .hero-container {
        grid-template-areas: 
            "label"
            "title"
            "description"
            "navigation";
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto auto auto;
        gap: 20px;
        text-align: left;
        min-height: calc(100vh - 80px);
        align-items: flex-start;
        padding: 20px 0;
    }

    .section-label {
        position: static;
        margin-bottom: 0px;
    }


    .hero-description {
        margin-top: 0;
    }

    .hero-navigation {
        margin-top: 0;
        justify-content: flex-start;
    }

    .hero-title {
        font-size: 2.5rem;
        align-self: flex-start;
    }
    
    .animated-text {
        font-size: 2rem;
        max-width: 100%;
    }

    .hero-description {
        max-width: 100%;
        align-self: flex-start;
        margin-top: 0px;
    }

    .hero-navigation {
        justify-content: flex-start;
        gap: 2rem;
        align-self: flex-start;
        margin-top: 0px;
    }
    
    .page-container {
        padding: 40px 20px;
    }
    
    
    .page-title {
        font-size: 2rem;
    }

    .page-header {
        align-items: center;
        margin-bottom: 1.5rem;
    }

    .page-header .section-label {
        align-self: center;
        padding-top: 0;
    }
    
    /* Tablet responsive for projects */
    .projects-grid {
        grid-template-columns: 1fr 1fr;
        gap: 22px;
        max-width: 100%;
    }
    
    .project-image-container {
        height: 200px;
    }
    
    .project-content {
        padding: 18px;
    }
    
    .project-info h3 {
        font-size: 0.85rem;
    }
    
    .project-info p {
        font-size: 0.75rem;
    }
    
    .project-role,
    .project-date {
        font-size: 0.7rem !important;
    }

}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .hero {
        padding: 30px 15px;
    }
    
    .hero-container {
        padding: 20px 30px;
        max-width: 95%;
    }

    .hero::before {
        height: 200px;
    }

    .hero-container {
        gap: 0px;
        padding-top: 15px;
    }

    .hero-title {
        font-size: 2rem;
    }
    
    .animated-text {
        font-size: 1.6rem;
        max-width: 100%;
    }

    .hero-navigation {
        flex-direction: column;
        gap: 0;
        align-items: flex-start;
    }
    
    .nav-item {
        padding: 0.5rem 0;
        font-size: 0.9rem;
    }
    
    .page-container {
        padding: 30px 15px;
    }
    
    .resume-content,
    .projects-content,
    .blog-content,
    .updates-content,
    .photos-content {
        padding: 20px 30px;
        max-width: 95%;
    }
    
    /* Mobile blog styles */
    
    .blog-post-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
        padding: 1rem 0;
    }
    
    .blog-post-link {
        margin-right: 0;
        margin-bottom: 0.5rem;
    }
    
    .blog-post-title {
        font-size: 1rem;
        line-height: 1.3;
    }
    
    .blog-post-date {
        font-size: 0.85rem;
        align-self: flex-start;
    }
    
    /* Mobile blog post styles */
    .blog-post-content {
        padding: 0 30px;
        max-width: 95%;
    }
    
    .article-title {
        font-size: 1.8rem;
        line-height: 1.3;
    }
    
    .article-content h2 {
        font-size: 1.2rem;
        margin: 1.5rem 0 0.75rem 0;
    }
    
    .article-content p {
        font-size: 0.95rem;
        line-height: 1.6;
    }
    
    .article-quote {
        margin: 1.5rem 0;
        padding: 1rem 1.5rem;
    }
    
    .article-quote p {
        font-size: 1rem;
    }
    
    /* Mobile tooltip adjustments for very small screens */
    .award-tooltip-mobile {
        max-width: 220px;
        min-width: 160px;
        padding: 6px 10px;
        font-size: 0.65rem;
        line-height: 1.3;
    }
    
    /* Mobile responsive for projects */
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 19px;
        max-width: 100%;
    }
    
    .project-image-container {
        height: 180px;
    }
    
    .project-content {
        padding: 15px;
    }
    
    .project-info h3 {
        font-size: 0.8rem;
    }
    
    .project-info p {
        font-size: 0.7rem;
    }
    
    .project-role,
    .project-date {
        font-size: 0.65rem !important;
    }
    
    .image-placeholder {
        font-size: 2rem;
    }
    
    .modal-content {
        margin: 10px;
        max-height: 90vh;
    }
    
    .modal-image-container {
        height: 40.25vh;
    }
    
    .modal-info {
        padding: 20px;
    }
    
    
    .page-title {
        font-size: 1.8rem;
    }
    
    .page-header {
        align-items: center;
        margin-bottom: 1rem;
    }
    
    .back-link,
    .page-header .section-label {
        font-size: 0.85rem;
        line-height: 1.2;
        font-weight: 400;
        font-family: 'JetBrains Mono', monospace;
        height: auto;
        display: flex;
        align-items: center;
        margin: 0;
        padding: 0;
    }

    .page-header .section-label {
        align-self: center;
        padding-top: 0;
    }

    .back-link .material-icons {
        font-size: 0.85rem;
        line-height: 1.2;
    }
    
    .skills-grid {
        grid-template-columns: 1fr;
    }
    
    .skills-list {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .skill-item {
        padding: 0.6rem 0.8rem;
        font-size: 0.8rem;
    }
    
    .tools-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 0.5rem;
    }
    
    .tool-item {
        padding: 0.8rem;
        font-size: 0.75rem;
        gap: 0.5rem;
    }
    
    .tool-item i {
        font-size: 1.5rem;
    }
    
    .r-logo {
        width: 1.5rem;
        height: 1.5rem;
    }
    
    .tool-item span {
        font-size: 0.75rem;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .resume-content,
    .projects-content,
    .blog-content,
    .updates-content,
    .photos-content {
        padding: 30px 40px;
        max-width: 90%;
    }
    
    .certifications-grid {
        grid-template-columns: 1fr;
    }
    
    .achievement-list li {
        padding-left: 1.25rem;
        font-size: 0.85rem;
    }
    
    .summary-text {
        text-align: left;
        font-size: 0.9rem;
    }

}

/* 3D Spinner Loader */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.page-loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.spinner {
    width: 44px;
    height: 44px;
    animation: spinner-y0fdc1 2s infinite ease;
    transform-style: preserve-3d;
}

.spinner > div {
    height: 100%;
    position: absolute;
    width: 100%;
    border: 2px solid #282c35;
}

.spinner div:nth-of-type(1) {
    transform: translateZ(-22px) rotateY(180deg);
}

.spinner div:nth-of-type(2) {
    transform: rotateY(-270deg) translateX(50%);
    transform-origin: top right;
}

.spinner div:nth-of-type(3) {
    transform: rotateY(270deg) translateX(-50%);
    transform-origin: center left;
}

.spinner div:nth-of-type(4) {
    transform: rotateX(90deg) translateY(-50%);
    transform-origin: top center;
}

.spinner div:nth-of-type(5) {
    transform: rotateX(-90deg) translateY(50%);
    transform-origin: bottom center;
}

.spinner div:nth-of-type(6) {
    transform: translateZ(22px);
}

@keyframes spinner-y0fdc1 {
    0% {
        transform: rotate(45deg) rotateX(-25deg) rotateY(25deg);
    }

    50% {
        transform: rotate(45deg) rotateX(-385deg) rotateY(25deg);
    }

    100% {
        transform: rotate(45deg) rotateX(-385deg) rotateY(385deg);
    }
}




/* Social Media Links - Floating on right side of main frame */
.social-links {
    position: absolute;
    right: -64px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 20px;
    z-index: 1000;
    transition: all 0.3s ease;
}

/* Neumorphism Social Button Styling */
.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: #e0e0e0;
    border-radius: 16px;
    text-decoration: none;
    transition: all 0.2s ease;
    position: relative;
    cursor: pointer;

    /* Neumorphism shadow */
    box-shadow: 6px 6px 12px #bebebe,
                -6px -6px 12px #ffffff;
}

.social-btn:hover {
    background: #e0e0e0;
    transform: translateY(-1px);

    /* Enhanced shadow on hover */
    box-shadow: 8px 8px 16px #bebebe,
                -8px -8px 16px #ffffff;
}

.social-btn:active {
    transform: translateY(1px);

    /* Inset shadow when clicked */
    box-shadow: inset 3px 3px 6px #bebebe,
                inset -3px -3px 6px #ffffff;
}

.social-btn svg {
    width: 20px;
    height: 20px;
    fill: #666666;
    transition: all 0.2s ease;
}

.social-btn:hover svg {
    fill: #333333;
    transform: scale(1.1);
}

.social-btn:active svg {
    transform: scale(0.95);
}


/* Email Button Specific Styling */
.email-btn {
    border: none;
    cursor: pointer;
}

/* Email Popup Overlay */
.email-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
}

.email-popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Email Popup */
.email-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: 500px;
    max-width: 90vw;
    background: #ffffff;
    border-radius: 12px;
    border: 2px solid #333333;
    padding: 0;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2);
}

.email-popup.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

/* Email Popup Header */
.email-popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px 15px 30px;
    border-bottom: 1px solid #e0e0e0;
    background: #ffffff;
    border-radius: 12px 12px 0 0;
}

.email-popup-header h3 {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 700;
    color: #333333;
    font-family: 'JetBrains Mono', monospace;
}

.email-popup-close {
    background: transparent;
    border: 1px solid #e0e0e0;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.email-popup-close:hover {
    background: #f5f5f5;
    border-color: #cccccc;
}

.email-popup-close:active {
    background: #e0e0e0;
}

.email-popup-close .material-icons {
    font-size: 18px;
    color: #666666;
}

/* Email Popup Content */
.email-popup-content {
    padding: 20px 30px 30px 30px;
    background: #ffffff;
    border-radius: 0 0 12px 12px;
}

.email-item {
    margin-bottom: 16px;
    padding: 18px 20px;
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    transition: all 0.2s ease;
}

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

.email-item:hover {
    background: #f0f2f5;
    border-color: #cccccc;
}

.email-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #666666;
    margin-bottom: 6px;
    font-family: 'JetBrains Mono', monospace;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.email-link {
    font-size: 0.85rem;
    color: #0066cc;
    text-decoration: underline;
    font-family: 'JetBrains Mono', monospace;
    transition: color 0.2s ease;
    display: block;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    max-width: 100%;
}

.email-link:hover {
    color: #0052a3;
    text-decoration: underline;
}

/* Mobile Social Element (hidden on desktop) */
.mobile-social-element {
    display: none;
}


/* Control buttons styles for mobile */
.control-btn.social-btn {
    width: 40px;
    height: 40px;
    border-radius: 6px;
    border: none;
    background: transparent;
    color: #666666;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
    z-index: 1000;
    margin: 0 auto;
}

.control-btn.social-btn:hover {
    background: transparent;
    transform: scale(1.1);
    color: #333333;
}

.control-btn.social-btn .material-icons {
    font-size: 20px;
    line-height: 1;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .social-links {
        display: none;
    }

    /* Email popup mobile adjustments */
    .email-popup {
        width: calc(100% - 60px);
        max-width: calc(100% - 60px);
        margin: 0 auto;
        min-width: 280px;
    }

    .email-popup-header {
        padding: 15px 20px 10px 20px;
    }

    .email-popup-content {
        padding: 15px 20px 20px 20px;
    }

    .email-item {
        padding: 15px 15px;
        margin-bottom: 12px;
        overflow: hidden;
        word-wrap: break-word;
    }

    .email-link {
        font-size: 0.8rem;
        line-height: 1.4;
        word-break: break-all;
        overflow-wrap: anywhere;
        white-space: normal;
    }

    /* Show mobile download buttons */
    .mobile-download-buttons {
        display: flex;
    }

    .mobile-social-element {
        position: static;
        transform: none;
        right: auto;
        top: auto;
        margin: 20px;
        width: calc(100% - 40px);
        max-width: none;
        height: auto;
        flex-direction: row;
        justify-content: center;
        padding: 15px;
        gap: 12px;
        border-radius: 20px;
        border: 1px solid rgba(255, 255, 255, 0.4);
        display: flex;
    }

    .mobile-social-element::before {
        display: none;
    }

    .mobile-social-element .social-btn {
        width: 50px;
        height: 50px;
        background: transparent;
        border-radius: 6px;
        margin: 0;
    }

    .mobile-social-element .social-btn svg {
        width: 24px;
        height: 24px;
        fill: #333333;
    }

    .mobile-social-element .control-btn.social-btn {
        width: 50px;
        height: 50px;
    }

    .mobile-social-element .control-btn.social-btn .material-icons {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .social-links {
        display: none;
    }

    /* Email popup adjustments for very small screens */
    .email-popup {
        width: calc(100% - 40px);
        max-width: calc(100% - 40px);
        margin: 0 auto;
        min-width: 260px;
    }

    .email-popup-header {
        padding: 12px 15px 8px 15px;
    }

    .email-popup-header h3 {
        font-size: 1.2rem;
    }

    .email-popup-content {
        padding: 12px 15px 15px 15px;
    }

    .email-item {
        padding: 12px 12px;
        margin-bottom: 10px;
        overflow: hidden;
        word-wrap: break-word;
        box-sizing: border-box;
    }

    .email-label {
        font-size: 0.8rem;
        margin-bottom: 4px;
    }

    .email-link {
        font-size: 0.75rem;
        line-height: 1.3;
        word-break: break-all;
        overflow-wrap: anywhere;
        white-space: normal;
        max-width: 100%;
        display: block;
        box-sizing: border-box;
    }

    /* Mobile download buttons adjustments for small screens */
    .mobile-download-buttons {
        flex-direction: column;
        gap: 0.75rem;
        margin-bottom: 1.5rem;
    }

    .download-btn {
        min-width: 120px;
        padding: 10px 16px;
        font-size: 0.85rem;
    }

    .download-text {
        font-size: 0.8rem;
    }

    .mobile-social-element {
        margin: 15px;
        width: calc(100% - 30px);
        padding: 12px;
        gap: 10px;
    }

    .mobile-social-element .social-btn {
        width: 45px;
        height: 45px;
    }

    .mobile-social-element .social-btn svg {
        width: 22px;
        height: 22px;
    }

    .mobile-social-element .control-btn.social-btn {
        width: 45px;
        height: 45px;
    }

    .mobile-social-element .control-btn.social-btn .material-icons {
        font-size: 22px;
    }
    
    /* Modal adjustments for very small screens */
    .modal-image-container {
        height: 34.5vh;
    }
}

/* Extra small screens - iPhone SE and similar */
@media (max-width: 375px) {
    .email-popup {
        width: calc(100% - 30px);
        max-width: calc(100% - 30px);
        margin: 0 auto;
        min-width: 240px;
    }

    .email-popup-header {
        padding: 10px 12px 6px 12px;
    }

    .email-popup-header h3 {
        font-size: 1.1rem;
    }

    .email-popup-content {
        padding: 10px 12px 12px 12px;
    }

    .email-item {
        padding: 10px 10px;
        margin-bottom: 8px;
    }

    .email-label {
        font-size: 0.75rem;
        margin-bottom: 3px;
    }

    .email-link {
        font-size: 0.7rem;
        line-height: 1.2;
    }
}

/* Mobile Download Buttons */
.mobile-download-buttons {
    display: flex; /* Temporarily show on all devices for testing */
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 0 20px;
}

.download-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 12px 20px;
    background: #e0e0e0;
    border-radius: 12px;
    text-decoration: none;
    color: #333333;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    position: relative;
    cursor: pointer;
    min-width: 140px;
    justify-content: center;
    border: none;
    font-family: inherit;

    /* Neumorphism shadow */
    box-shadow: 4px 4px 8px #bebebe,
                -4px -4px 8px #ffffff;
}

.download-btn:hover {
    background: #e0e0e0;
    transform: translateY(-1px);
    color: #000000;

    /* Enhanced shadow on hover */
    box-shadow: 6px 6px 12px #bebebe,
                -6px -6px 12px #ffffff;
}

.download-btn:active {
    transform: translateY(1px);

    /* Inset shadow when clicked */
    box-shadow: inset 2px 2px 4px #bebebe,
                inset -2px -2px 4px #ffffff;
}

.download-btn .material-icons {
    font-size: 20px;
    color: #666666;
    transition: all 0.2s ease;
}

.download-btn:hover .material-icons {
    color: #333333;
    transform: scale(1.1);
}

.download-btn:active .material-icons {
    transform: scale(0.95);
}

.download-text {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    letter-spacing: 0.025em;
}

/* Updates Page Styles - Matching Existing Theme */
.updates-content {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 60px;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 
        0 25px 80px rgba(0, 0, 0, 0.25),
        0 12px 35px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.6),
        inset 0 -1px 0 rgba(0, 0, 0, 0.05);
    overflow: visible;
}

/* Updates Filter Container */
.updates-filter-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 2rem;
    position: relative;
}

.filter-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    border: 2px solid #000000;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    font-weight: 500;
    color: #000000;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.filter-btn:hover {
    background: #000000;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.filter-btn.active {
    background: #000000;
    color: #ffffff;
}

.filter-btn.active:hover {
    background: #333333;
}

.filter-icon {
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.filter-btn:hover .filter-icon {
    transform: scale(1.1);
}

.filter-text {
    font-weight: 500;
    letter-spacing: 0.025em;
}

.section-description {
    font-size: 1.1rem;
    color: #666666;
    margin-bottom: 3rem;
    line-height: 1.6;
}

.updates-timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem 0;
}

/* Timeline Line */
.updates-timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #000000;
    transform: translateX(-50%);
}


.update-item {
    position: relative;
    margin-bottom: 2rem;
    display: flex;
    align-items: flex-start;
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s ease;
    width: 100%;
}

.update-item.animate {
    opacity: 1;
    transform: translateY(0);
}

/* Alternating layout - proper alignment */
.update-item:nth-child(odd) {
    justify-content: flex-start;
}

.update-item:nth-child(even) {
    justify-content: flex-end;
}

.update-item:nth-child(odd) .update-content {
    margin-left: 0;
    margin-right: 3rem;
    width: calc(50% - 1.5rem);
    max-width: calc(50% - 1.5rem);
}

.update-item:nth-child(even) .update-content {
    margin-right: 0;
    margin-left: 3rem;
    width: calc(50% - 1.5rem);
    max-width: calc(50% - 1.5rem);
}

/* Timeline dot */
.update-item::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: #000000;
    border-radius: 50%;
    z-index: 2;
}

.update-content {
    background: transparent;
    padding: 0;
    border-radius: 0;
    border: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.update-content:hover {
    background: transparent;
    transform: none;
    box-shadow: none;
}

.update-date {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    color: #999999;
    margin-bottom: 0.25rem;
    font-weight: 400;
}

.update-content h3 {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #000000;
    line-height: 1.3;
}

.update-content p {
    font-family: 'JetBrains Mono', monospace;
    color: #333333;
    line-height: 1.6;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
}

/* Expandable text styles */
.update-preview {
    font-family: 'JetBrains Mono', monospace;
    color: #333333;
    line-height: 1.6;
    margin-bottom: 0.5rem;
    display: block;
    font-size: 0.9rem;
    position: relative;
    overflow: hidden;
    max-height: 4.8em; /* Approximately 3 lines */
}

/* Fade effect for preview text to indicate more content */
.update-preview::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1.6em; /* Height of one line */
    background: linear-gradient(transparent, rgba(255, 255, 255, 0.95));
    pointer-events: none;
}

.update-full-text {
    font-family: 'JetBrains Mono', monospace;
    color: #333333;
    line-height: 1.6;
    margin-bottom: 0.5rem;
    display: none;
    font-size: 0.9rem;
}

.update-content.expanded .update-preview {
    display: none;
}

.update-content.expanded .update-full-text {
    display: block;
}


/* Featured updates - star and border styling */
.update-item.featured .update-content {
    border: 2px solid #000000;
    border-radius: 8px;
    padding: 1rem;
    background: #fafafa;
    position: relative;
}

.update-item.featured .update-content h3 {
    color: #000000;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.update-item.featured .update-content h3::before {
    content: "✦";
    color: #000000;
    font-size: 1rem;
    font-weight: bold;
    width: 16px;
    text-align: center;
    flex-shrink: 0;
}

/* Loading and error states */
.empty-state,
.error-state {
    text-align: center;
    padding: 3rem 2rem;
    color: #666666;
}

.empty-state h3,
.error-state h3 {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: #333333;
}

.empty-state p,
.error-state p {
    font-family: 'JetBrains Mono', monospace;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.retry-btn {
    background: #000000;
    color: #ffffff;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 0.25rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.retry-btn:hover {
    background: #333333;
    transform: translateY(-1px);
}

.read-more-btn {
    color: #000000;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    text-decoration: underline;
    transition: color 0.3s ease;
    font-family: 'JetBrains Mono', monospace;
}

.read-more-btn:hover {
    color: #666666;
}



/* Photos Page Styles */
.photos-content {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 60px;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.15),
        0 8px 25px rgba(0, 0, 0, 0.1);
    overflow: visible;
}

.photos-section h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #000000;
}

.photo-categories {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.category-btn {
    padding: 0.75rem 1.5rem;
    background: #f3f4f6;
    color: #374151;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.category-btn.active,
.category-btn:hover {
    background: #000000;
    color: #ffffff;
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.photo-item {
    position: relative;
    aspect-ratio: 4/3;
    background: #f9fafb;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
}

.photo-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.photo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    color: #9ca3af;
    font-size: 1.1rem;
    font-weight: 500;
}

.photo-placeholder i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.7;
}

.photo-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: #ffffff;
    padding: 2rem 1.5rem 1.5rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.photo-item:hover .photo-overlay {
    transform: translateY(0);
}

.photo-overlay h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.photo-overlay p {
    font-size: 0.9rem;
    opacity: 0.9;
    line-height: 1.4;
}

.photos-cta {
    text-align: center;
    padding: 3rem 2rem;
    background: #f9fafb;
    border-radius: 12px;
}

.photos-cta h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #000000;
}

.photos-cta p {
    color: #666666;
    line-height: 1.6;
}




/* Mobile responsive for new pages */
@media (max-width: 768px) {
    .updates-content,
    .photos-content {
        padding: 20px 15px;
        max-width: 95%;
    }
    
    .photos-section h1 {
        font-size: 2rem;
    }
    
    .updates-timeline {
        padding: 1rem 0;
    }
    
    .updates-filter-container {
        margin-bottom: 1.5rem;
    }
    
    .filter-btn {
        padding: 0.6rem 0.8rem;
        font-size: 0.85rem;
    }
    
    .update-item {
        flex-direction: column !important;
        text-align: left;
        margin-bottom: 2rem;
        padding: 0 1rem;
    }
    
    .update-item::before {
        left: 1rem;
        top: 1.5rem;
        transform: translateX(-50%);
    }
    
    .update-content {
        margin: 0 !important;
        padding: 0;
        width: calc(100% - 2rem) !important;
        max-width: calc(100% - 2rem) !important;
        margin-left: 2rem !important;
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
    }
    
    .updates-timeline::before {
        left: 1rem;
        transform: none;
    }
    
    .update-date {
        font-size: 0.8rem;
        margin-bottom: 0.2rem;
    }
    
    .update-content h3 {
        font-size: 1rem;
        margin-bottom: 0.4rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
        max-width: 100%;
    }
    
    .update-preview,
    .update-full-text {
        font-size: 0.85rem;
        line-height: 1.5;
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
        max-width: 100%;
    }
    
    /* Mobile fade effect adjustment */
    .update-preview::after {
        height: 1.5em; /* Adjusted for mobile line height */
    }
    
    .read-more-btn {
        font-size: 0.75rem;
    }
    
    .photo-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .photo-categories {
        justify-content: center;
    }
}

/* Notification System */
.notification {
    position: fixed;
    top: 100px;
    right: 20px;
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    z-index: 10000;
    transform: translateX(400px);
    transition: transform 0.3s ease;
    max-width: 400px;
}

.notification-success {
    background: #10b981;
}

.notification-error {
    background: #ef4444;
}

.notification-info {
    background: #3b82f6;
}

.notification-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.notification-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

/* Section reveal animations */
section {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

section.revealed {
    opacity: 1;
    transform: translateY(0);
}

.hero {
    opacity: 1;
    transform: none;
}

/* Page loading animation */
body {
    opacity: 0;
    transition: opacity 0.5s ease;
}

body.loaded {
    opacity: 1;
}

/* Footer Styles */
.site-footer {
    position: relative;
    background: transparent;
    padding: 2rem 0;
    text-align: center;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    color: #999999;
    font-weight: 400;
    margin-top: 1rem;
}

.site-footer p {
    margin: 0;
    padding: 0;
}

/* Page Footer Styles - Subtle and Low-key */
.page-footer {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: transparent;
    padding: 0.5rem 0;
    text-align: center;
    font-family: 'Space Mono', monospace;
    font-size: 0.65rem;
    color: #999999;
    font-weight: 300;
    margin: 0;
    border-top: none;
    z-index: 10;
    opacity: 0.7;
    width: auto;
}

.page-footer p {
    margin: 0;
    padding: 0;
    letter-spacing: 0.3px;
}

/* Additional spacing for subpages - Add padding to content containers */
.blog-content,
.projects-content,
.resume-content,
.updates-content,
.media-content {
    padding-bottom: 4rem !important;
}

.page-container .page-footer,
.blog-content .page-footer,
.projects-content .page-footer,
.resume-content .page-footer,
.updates-content .page-footer,
.media-content .page-footer {
    margin-top: 2rem;
}

/* Mobile responsive footer */
@media (max-width: 768px) {
    .site-footer {
        margin-top: 0.5rem;
        padding: 1.5rem 0;
        font-size: 0.75rem;
    }
    
    .page-footer {
        position: relative;
        bottom: auto;
        padding: 0.4rem 0;
        font-size: 0.6rem;
        opacity: 0.6;
        margin: 1.5rem 0 0 0;
    }
    
    /* Mobile spacing for subpages - Add padding to content containers */
    .blog-content,
    .projects-content,
    .resume-content,
    .updates-content,
    .media-content {
        padding-bottom: 3rem !important;
    }
    
    .page-container .page-footer,
    .blog-content .page-footer,
    .projects-content .page-footer,
    .resume-content .page-footer,
    .updates-content .page-footer,
    .media-content .page-footer {
        margin-top: 1.5rem;
    }
}

/* Media Page Styles - Minimalist Layout */
.media-content {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 60px;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 
        0 25px 80px rgba(0, 0, 0, 0.25),
        0 12px 35px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.6),
        inset 0 -1px 0 rgba(0, 0, 0, 0.05);
    overflow: visible;
}

.media-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.media-item {
    border-bottom: 1px solid #e5e7eb;
    transition: all 0.3s ease;
}

.media-item:last-child {
    border-bottom: none;
}

.media-item:hover {
    background: rgba(0, 0, 0, 0.02);
    margin: 0 -1.5rem;
    padding: 0 1.5rem;
    border-radius: 8px;
}

.media-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    text-decoration: none;
    color: #000000;
    transition: all 0.3s ease;
}

.media-link:hover {
    color: #333333;
}

.media-title {
    font-size: 1rem;
    font-weight: 400;
    color: inherit;
    line-height: 1.4;
    font-family: 'JetBrains Mono', monospace;
    flex: 1;
    margin-right: 2rem;
}

.media-year {
    font-size: 0.9rem;
    color: #999999;
    font-family: 'JetBrains Mono', monospace;
    font-weight: 400;
    white-space: nowrap;
    flex-shrink: 0;
}

/* Mobile responsive for media page */
@media (max-width: 768px) {
    .media-content {
        padding: 20px 15px;
        max-width: 95%;
    }
    
    .media-item:hover {
        margin: 0 -1rem;
        padding: 0 1rem;
    }
    
    .media-link {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
        padding: 0.75rem 0;
    }
    
    .media-title {
        font-size: 0.8rem;
        margin-right: 0;
        margin-bottom: 0.1rem;
    }
    
    .media-year {
        font-size: 0.7rem;
        align-self: flex-start;
        margin-top: 0.1rem;
    }
}

@media (max-width: 480px) {
    .media-content {
        padding: 15px 10px;
        max-width: 98%;
    }
    
    .media-item:hover {
        margin: 0 -0.75rem;
        padding: 0 0.75rem;
    }
    
    .media-link {
        padding: 0.6rem 0;
    }
    
    .media-title {
        font-size: 0.8rem;
        line-height: 1.3;
    }
    
    .media-year {
        font-size: 0.65rem;
        align-self: flex-start;
        margin-top: 0.1rem;
    }
}

/* Project Metadata Styling - Bold Role and Date */
.project-role,
.modal-role {
    font-weight: 700 !important;
    color: #000000 !important;
    font-family: 'JetBrains Mono', monospace !important;
    margin-bottom: 0.2rem !important;
    font-size: 0.75rem !important;
}

.project-date,
.modal-date {
    font-weight: 700 !important;
    color: #000000 !important;
    font-family: 'JetBrains Mono', monospace !important;
    margin-bottom: 0.75rem !important;
    font-size: 0.75rem !important;
}

/* Closer spacing for project title and metadata */
.project-info h3 {
    margin-bottom: 0.15rem !important;
}

/* Modal Image Spacing - Consistent spacing around images */
.modal-image-container {
    width: 100%;
    height: 50vh;
    overflow: hidden;
    border-radius: 20px 20px 0 0;
    padding: 20px;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-image {
    width: 100%;
    height: 100%;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    filter: grayscale(0%);
    transition: all 0.3s ease;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.modal-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    transition: opacity 0.3s ease;
    padding: 10px;
}

/* Skills Tags Styling - Compact single line */
.project-skills,
.modal-skills {
    margin-top: 0.5rem;
}

.skills-label,
.modal-skills-label {
    display: none; /* Hide the "Skills:" label */
}

.skills-container,
.modal-skills-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    padding-bottom: 0.2rem;
}

.skill-tag {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    background: #f8f9fa;
    border: 1px solid #d1d5db;
    border-radius: 12px;
    font-size: 0.65rem;
    font-weight: 500;
    color: #6b7280;
    font-family: 'JetBrains Mono', monospace;
    transition: all 0.3s ease;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
}

.skill-tag:hover {
    background: #dbeafe;
    border-color: #93c5fd;
    color: #1e40af;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

/* Modal skills section hover effect */
.modal-skills-section .skill-tag:hover {
    background: #dbeafe;
    border-color: #93c5fd;
    color: #1e40af;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

/* All skill tags use the same grey styling */
.skill-tag-technical,
.skill-tag-mathematics,
.skill-tag-economics,
.skill-tag-leadership,
.skill-tag-research,
.skill-tag-general {
    background: #f8f9fa;
    border-color: #d1d5db;
    color: #6b7280;
}

/* Modal skills section - permanently light blue */
.modal-skills-section .skill-tag {
    background: #dbeafe !important;
    border-color: #93c5fd !important;
    color: #1e40af !important;
}

.modal-skills-section .skill-tag:hover {
    background: #bfdbfe !important;
    border-color: #60a5fa !important;
    color: #1e3a8a !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

/* Mobile responsive adjustments for skills */
@media (max-width: 768px) {
    .modal-content {
        max-width: 90vw;
        max-height: 85vh;
    }
    
    .modal-image-container {
        padding: 15px;
        height: 45vh;
    }
    
    .modal-img {
        padding: 8px;
    }
    
    .modal-info h2 {
        font-size: 1.1rem;
    }
    
    .modal-info p {
        font-size: 0.85rem;
    }
    
    .modal-skills-section {
        padding: 12px 20px;
    }
    
    .modal-skills-section-label {
        font-size: 0.7rem;
    }
    
    .modal-actions {
        padding: 12px 20px 15px 20px;
    }
    
    .modal-actions-label {
        font-size: 0.7rem;
    }
    
    .modal-external-link,
    .modal-download-btn {
        font-size: 0.7rem;
        padding: 0.35rem 0.7rem;
    }
    
    .skill-tag {
        font-size: 0.6rem;
        padding: 0.15rem 0.4rem;
    }
    
    .skills-container,
    .modal-skills-container {
        gap: 0.25rem;
    }
}

@media (max-width: 480px) {
    .modal-content {
        max-width: 95vw;
        max-height: 80vh;
    }
    
    .modal-image-container {
        padding: 10px;
        height: 40vh;
    }
    
    .modal-img {
        padding: 5px;
    }
    
    .modal-info h2 {
        font-size: 1rem;
    }
    
    .modal-info p {
        font-size: 0.8rem;
    }
    
    .modal-skills-section {
        padding: 10px 15px;
    }
    
    .modal-skills-section-label {
        font-size: 0.65rem;
    }
    
    .modal-actions {
        padding: 10px 15px 12px 15px;
    }
    
    .modal-actions-label {
        font-size: 0.65rem;
    }
    
    .modal-external-link,
    .modal-download-btn {
        font-size: 0.65rem;
        padding: 0.3rem 0.6rem;
    }
    
    .skill-tag {
        font-size: 0.55rem;
        padding: 0.1rem 0.3rem;
    }
}