@font-face {
    font-family: 'Mono';
    src: url('./src/fonts/mono-font.ttf') format('truetype-variations');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Mono';
    src: url('./src/fonts/mono-font.ttf') format('truetype-variations');
    font-weight: 100 900;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Mono';
    src: url('./src/fonts/mono-font.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Mono';
    src: url('./src/fonts/mono-font-light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

:root {
    --cursor-size: 20px;
    --follower-size: 40px;
    --text-color: #111111;
    --accent-color: #000000;
    --bg-color: #ecf0f1;
    --project-bg: #f8f9fa;
    --overlay-bg: rgba(17, 17, 17, 0.95);
    --loader-bg: #111111;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: none;
}

/* Ensure links are clickable */
a {
    cursor: none;
    pointer-events: auto;
}

body {
    background-color: var(--bg-color);
    font-family: 'Satoshi', sans-serif;
    min-height: 100vh;
    color: var(--text-color);
    overflow-x: hidden;
}

/* Page Loader */
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--loader-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

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

.loader-content {
    text-align: center;
}

.loader-text {
    font-family: 'Mono', monospace;
    font-size: 2.5rem;
    font-weight: 300;
    color: white;
    margin-bottom: 2rem;
    opacity: 0;
    animation: fadeInUp 1.2s ease 0.2s forwards;
    text-transform: lowercase;
    letter-spacing: 0.1em;
}

.loader-progress {
    width: 200px;
    height: 2px;
    background: rgba(255, 255, 255, 0.2);
    overflow: hidden;
    position: relative;
}

/* Split Container */
.split-container {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

/* Left Side */
.left-side {
    width: 50%;
    background-color: #000000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    position: relative;
    z-index: 2;
}

.left-side .content {
    text-align: left;
    max-width: 500px;
    width: 100%;
    color: white;
}

/* Right Side */
.right-side {
    width: 50%;
    background-color: var(--bg-color);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2rem;
    position: relative;
    z-index: 2;
    height: 80vh;
    align-self: center;
}

/* Projects Header */
.projects-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.featured-indicator {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.indicator-dot {
    width: 8px;
    height: 8px;
    background: var(--accent-color);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.indicator-text {
    font-family: 'Mono', monospace;
    font-size: 0.875rem;
    font-weight: 300;
    color: var(--text-color);
    opacity: 0.7;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.view-all-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-color);
    text-decoration: none;
    font-family: 'Mono', monospace;
    font-size: 0.875rem;
    font-weight: 300;
    padding: 0.5rem 1rem;
    border: 1px solid var(--text-color);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.view-all-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--text-color);
    transition: left 0.3s ease;
    z-index: 1;
}

.view-all-btn span,
.view-all-btn i {
    position: relative;
    z-index: 2;
    transition: color 0.3s ease;
}

.view-all-btn:hover::before {
    left: 0;
}

.view-all-btn:hover {
    color: var(--bg-color);
}

.view-all-btn:hover span,
.view-all-btn:hover i {
    color: var(--bg-color);
}

/* Grid Projects for Split Screen */
.right-side .grid-projects {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 1.5rem;
    width: 100%;
    height: 100%;
    max-height: 500px;
    position: relative;
}

.right-side .grid-item {
    background: var(--project-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: none;
    transition: all 0.6s ease;
    position: relative;
    overflow: hidden;
}

.project-image {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.image-placeholder {
    width: 80%;
    height: 80%;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 4px;
    position: relative;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.image-placeholder::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 50%;
}

.image-placeholder::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 50%;
}

.right-side .grid-item.large {
    grid-column: span 2;
    grid-row: span 1;
}

.right-side .grid-item:nth-child(1) {
    grid-column: 1 / 3;
    grid-row: 1 / 2;
}

.right-side .grid-item:nth-child(2) {
    grid-column: 1 / 2;
    grid-row: 2 / 3;
}

.right-side .grid-item:nth-child(3) {
    grid-column: 2 / 3;
    grid-row: 2 / 3;
}

.right-side .grid-item:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

/* Copy projects page overlay styles to home page */
.right-side .project-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    padding: 2rem;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.right-side .grid-item:hover .project-overlay {
    opacity: 1;
    transform: translateY(0);
}

.right-side .grid-item:hover .image-placeholder {
    opacity: 0.8;
}

.right-side .project-info {
    color: white;
    font-family: 'Mono', monospace;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1) 0.1s;
}

.right-side .grid-item:hover .project-info {
    opacity: 1;
    transform: translateY(0);
}

.right-side .project-number {
    font-size: 0.875rem;
    font-weight: 300;
    opacity: 0.7;
    display: block;
    margin-bottom: 0.5rem;
}

.right-side .project-info h3 {
    font-size: 1.25rem;
    font-weight: 300;
    margin-bottom: 0.25rem;
    line-height: 1.2;
}

.right-side .project-info p {
    font-size: 0.75rem;
    opacity: 0.8;
    font-weight: 300;
}

/* Removed old project overlay styles - using projects page styles instead */

/* Removed old grid content styles - replaced with new project overlay structure */

/* Grid Lines */
.grid-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.line {
    position: absolute;
    background: rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.line-right {
    top: 0;
    right: 0;
    width: 1px;
    height: 100%;
}

.line-bottom {
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
}

.right-side .grid-item:hover .line {
    background: rgba(255, 255, 255, 0.2);
}

/* Pulse Animation */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.7;
    }
}

.title-wrapper {
    position: relative;
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.description-wrapper {
    margin-bottom: 3rem;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s cubic-bezier(0.165, 0.84, 0.44, 1) 1.2s forwards;
}

.description-wrapper p {
    font-size: 1.125rem;
    line-height: 1.6;
    font-weight: 300;
    opacity: 0.8;
    max-width: 450px;
    font-family: 'Mono', monospace;
}

h1 {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: normal;
    letter-spacing: -0.03em;
    line-height: 1.1;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s cubic-bezier(0.165, 0.84, 0.44, 1) 0.4s forwards;
    margin-bottom: 1rem;
    font-family: 'Mono', monospace;
    font-weight: normal;
    color: white;
}

h1 br {
    content: "";
    display: block;
    margin: 0.2em 0;
}

.creative-dots {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    align-self: flex-start;
}

.creative-dots span {
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
    opacity: 0;
    transform: translateY(10px);
}

.creative-dots span:nth-child(1) {
    animation: 
        fadeInUp 0.8s cubic-bezier(0.165, 0.84, 0.44, 1) 0.3s forwards,
        dotPulse 2s infinite 0.3s;
}

.creative-dots span:nth-child(2) {
    animation: 
        fadeInUp 0.8s cubic-bezier(0.165, 0.84, 0.44, 1) 0.4s forwards,
        dotPulse 2s infinite 0.5s;
}

.creative-dots span:nth-child(3) {
    animation: 
        fadeInUp 0.8s cubic-bezier(0.165, 0.84, 0.44, 1) 0.5s forwards,
        dotPulse 2s infinite 0.7s;
}

.contact-wrapper {
    position: relative;
    z-index: 3;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s cubic-bezier(0.165, 0.84, 0.44, 1) 2s forwards;
    align-self: flex-start;
}

.email {
    font-size: 1.25rem;
    color: white;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.3s ease;
}

.email-text {
    position: relative;
    font-weight: normal;
    letter-spacing: -0.01em;
    font-family: 'Mono', monospace;
    font-weight: 300;
}

.email-text::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 1px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.email:hover .email-text::after {
    transform: scaleX(1);
    transform-origin: left;
}

.email-icon {
    transform: translateX(0);
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
    opacity: 0.5;
}

.email:hover .email-icon {
    transform: translateX(10px);
    opacity: 1;
}

.cursor {
    width: var(--cursor-size);
    height: var(--cursor-size);
    background: var(--text-color);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    mix-blend-mode: difference;
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cursor-follower {
    width: var(--follower-size);
    height: var(--follower-size);
    border: 1px solid var(--text-color);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9998;
    opacity: 0;
    transition: transform 0.1s, opacity 0.3s ease;
}

@keyframes dotPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.3;
    }
    50% {
        transform: scale(1.5);
        opacity: 0.8;
    }
}

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

/* Responsive Design */
@media (max-width: 1024px) {
    .split-container {
        flex-direction: column;
    }
    
    .left-side,
    .right-side {
        width: 100%;
        min-height: 50vh;
    }
    
    .left-side {
        padding: 3rem 2rem;
    }
    
    .right-side {
        padding: 2rem;
    }
    
    .title-wrapper {
        margin-bottom: 3rem;
    }
}

@media (max-width: 768px) {
    .left-side {
        padding: 2rem 1.5rem;
    }
    
    .right-side {
        padding: 1.5rem;
    }

    .title-wrapper {
        margin-bottom: 2rem;
    }

    h1 {
        font-size: clamp(1.125rem, 3.5vw, 2rem);
        letter-spacing: -0.02em;
    }

    .creative-dots span {
        width: 3px;
        height: 3px;
    }

    .email {
        font-size: 1rem;
    }

    .cursor, .cursor-follower {
        display: none;
    }
    
    .right-side .grid-projects {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .right-side .grid-item:nth-child(1) {
        grid-column: 1 / 3;
        grid-row: 1 / 2;
    }
    
    .right-side .grid-item:nth-child(2) {
        grid-column: 1 / 2;
        grid-row: 2 / 3;
    }
    
    .right-side .grid-item:nth-child(3) {
        grid-column: 2 / 3;
        grid-row: 2 / 3;
    }
    
    .right-side .grid-item:nth-child(4) {
        grid-column: 1 / 3;
        grid-row: 3 / 4;
    }
}

@media (max-width: 480px) {
    .left-side {
        padding: 1.5rem 1rem;
    }
    
    .right-side {
        padding: 1rem;
    }

    h1 {
        font-size: clamp(1rem, 3vw, 1.75rem);
    }

    .email {
        font-size: 0.875rem;
    }
    
    .right-side .grid-projects {
        gap: 0.75rem;
    }
    
    .right-side .grid-content {
        padding: 1rem;
    }
    
    .right-side .grid-number {
        font-size: 1.5rem;
    }
    
    .right-side .grid-item.large .grid-number {
        font-size: 2.5rem;
    }
    
    .right-side .grid-content h3 {
        font-size: 1rem;
    }
    
    .right-side .grid-item.large .grid-content h3 {
        font-size: 1.25rem;
    }
}

/* ===== PROJECTS PAGE STYLES ===== */

/* Projects Container */
.projects-container {
    min-height: 100vh;
    background: var(--bg-color);
    padding: 2rem;
    display: flex;
    flex-direction: column;
}

/* Project image and overlay styles for projects page */
.projects-container .project-image {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.projects-container .project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.projects-container .image-placeholder {
    width: 80%;
    height: 80%;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 4px;
    position: relative;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.projects-container .image-placeholder::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 50%;
}

.projects-container .image-placeholder::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 50%;
}

.projects-container .project-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    padding: 2rem;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.projects-container .grid-item:hover .project-overlay {
    opacity: 1;
    transform: translateY(0);
}

.projects-container .grid-item:hover .image-placeholder {
    opacity: 0.8;
}

.projects-container .project-info {
    color: white;
    font-family: 'Mono', monospace;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1) 0.1s;
}

.projects-container .grid-item:hover .project-info {
    opacity: 1;
    transform: translateY(0);
}

.projects-container .project-number {
    font-size: 0.875rem;
    font-weight: 300;
    opacity: 0.7;
    display: block;
    margin-bottom: 0.5rem;
}

.projects-container .project-info h3 {
    font-size: 1.25rem;
    font-weight: 300;
    margin-bottom: 0.25rem;
    line-height: 1.2;
}

.projects-container .project-info p {
    font-size: 0.75rem;
    opacity: 0.8;
    font-weight: 300;
}

/* Projects Header */
.projects-container .projects-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.back-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-color);
    text-decoration: none;
    font-family: 'Mono', monospace;
    font-size: 0.875rem;
    font-weight: 300;
    padding: 0.5rem 1rem;
    border: 1px solid var(--text-color);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.back-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--text-color);
    transition: left 0.3s ease;
    z-index: 1;
}

.back-btn span {
    position: relative;
    z-index: 2;
    transition: color 0.3s ease;
}

.back-btn:hover::before {
    left: 0;
}

.back-btn:hover span {
    color: var(--bg-color);
}

/* Projects Grid - Simple Grid Layout */
.projects-container .grid-projects {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    width: 100%;
    flex: 1;
    position: relative;
}

.projects-container .grid-item {
    background: var(--project-bg);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    min-height: 300px;
    transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.projects-container .grid-item.large {
    grid-column: span 2;
    grid-row: span 2;
    min-height: 400px;
}

.projects-container .grid-item:nth-child(1) {
    grid-column: 1 / 3;
    grid-row: 1 / 3;
}

.projects-container .grid-item:nth-child(2) {
    grid-column: 3 / 4;
    grid-row: 1 / 2;
}

.projects-container .grid-item:nth-child(3) {
    grid-column: 3 / 4;
    grid-row: 2 / 3;
}

.projects-container .grid-item:nth-child(4) {
    grid-column: 1 / 2;
    grid-row: 3 / 4;
}

.projects-container .grid-item:nth-child(5) {
    grid-column: 2 / 3;
    grid-row: 3 / 4;
}

.projects-container .grid-item:nth-child(6) {
    grid-column: 3 / 4;
    grid-row: 3 / 4;
}

/* Hover Effects */
/* Removed conflicting ::before overlay - replaced with new project overlay structure */

.projects-container .grid-item:hover {
    transform: scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Grid Content */
/* Removed old grid content styles - replaced with new project overlay structure */

/* Removed old grid content styles for projects page - replaced with new project overlay structure */

/* Expand Icon */
.expand-icon {
    position: absolute;
    bottom: 1.5rem;
    right: 1.5rem;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.8);
    z-index: 5;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.expand-icon i {
    font-size: 1rem;
    color: currentColor;
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.projects-container .grid-item:hover .expand-icon {
    opacity: 0;
    transform: scale(0.8);
}

.projects-container .grid-item:hover .expand-icon i {
    transform: rotate(0deg);
}

/* Expanded Content */
.expanded-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: scale(0.9);
    z-index: 10;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.expanded-details {
    text-align: center;
    max-width: 600px;
    width: 100%;
    padding: 3rem;
    opacity: 0;
    transform: translateY(30px);
    animation: slideInUp 0.6s cubic-bezier(0.165, 0.84, 0.44, 1) 0.2s forwards;
}

.expanded-details h2 {
    font-family: 'Mono', monospace;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 300;
    margin-bottom: 2rem;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.expanded-details p {
    font-size: clamp(1.125rem, 2vw, 1.5rem);
    line-height: 1.6;
    opacity: 0.9;
    margin-bottom: 2.5rem;
    font-weight: 300;
}

.expanded-details .project-tags {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2.5rem;
}

.expanded-details .project-tags span {
    font-family: 'Mono', monospace;
    font-size: 0.875rem;
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    opacity: 0.8;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.expanded-details .project-tags span:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.project-meta {
    display: flex;
    justify-content: center;
    gap: 2rem;
    font-family: 'Mono', monospace;
    font-size: 1rem;
    opacity: 0.7;
}

.project-meta span {
    padding: 0.75rem 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Close Button */
.close-btn {
    position: absolute;
    top: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 1.75rem;
    font-weight: 300;
    cursor: pointer;
    opacity: 0.7;
    transition: all 0.3s ease;
    z-index: 11;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-btn:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

/* Animations */
@keyframes slideInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design for Projects Page */
@media (max-width: 1024px) {
    .projects-container {
        padding: 1.5rem;
    }
    
    .projects-container .grid-projects {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .projects-container .grid-item:nth-child(1) {
        grid-column: 1 / 3;
        grid-row: 1 / 3;
    }
    
    .projects-container .grid-item:nth-child(2) {
        grid-column: 1 / 2;
        grid-row: 3 / 4;
    }
    
    .projects-container .grid-item:nth-child(3) {
        grid-column: 2 / 3;
        grid-row: 3 / 4;
    }
    
    .projects-container .grid-item:nth-child(4) {
        grid-column: 1 / 2;
        grid-row: 4 / 5;
    }
    
    .projects-container .grid-item:nth-child(5) {
        grid-column: 2 / 3;
        grid-row: 4 / 5;
    }
    
    .projects-container .grid-item:nth-child(6) {
        grid-column: 1 / 3;
        grid-row: 5 / 6;
    }
}

@media (max-width: 768px) {
    .projects-container {
        padding: 1rem;
    }
    
    .projects-container .grid-projects {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .projects-container .grid-item:nth-child(1) {
        grid-column: 1 / 2;
        grid-row: 1 / 3;
    }
    
    .projects-container .grid-item:nth-child(2) {
        grid-column: 1 / 2;
        grid-row: 3 / 4;
    }
    
    .projects-container .grid-item:nth-child(3) {
        grid-column: 1 / 2;
        grid-row: 4 / 5;
    }
    
    .projects-container .grid-item:nth-child(4) {
        grid-column: 1 / 2;
        grid-row: 5 / 6;
    }
    
    .projects-container .grid-item:nth-child(5) {
        grid-column: 1 / 2;
        grid-row: 6 / 7;
    }
    
    .projects-container .grid-item:nth-child(6) {
        grid-column: 1 / 2;
        grid-row: 7 / 8;
    }
    
    .expanded-details {
        padding: 2rem;
    }
    
    .expanded-details h2 {
        font-size: clamp(1.5rem, 5vw, 2.5rem);
    }
    
    .expanded-details p {
        font-size: clamp(1rem, 3vw, 1.25rem);
    }
    
    .expanded-details .project-tags {
        gap: 0.75rem;
    }
    
    .expanded-details .project-tags span {
        font-size: 0.8rem;
        padding: 0.6rem 1.2rem;
    }
    
    .project-meta {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
    
    .close-btn {
        width: 45px;
        height: 45px;
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .projects-container .grid-content {
        padding: 1.5rem;
    }
    
    .projects-container .grid-number {
        font-size: 2rem;
    }
    
    .projects-container .grid-item.large .grid-number {
        font-size: 3rem;
    }
    
    .projects-container .grid-content h3 {
        font-size: 1.125rem;
    }
    
    .projects-container .grid-item.large .grid-content h3 {
        font-size: 1.5rem;
    }
    
    .expanded-details {
        padding: 1.5rem;
    }
    
    .expanded-details h2 {
        font-size: clamp(1.25rem, 6vw, 2rem);
    }
    
    .expanded-details p {
        font-size: clamp(0.9rem, 4vw, 1.125rem);
    }
    
    .expanded-details .project-tags span {
        font-size: 0.75rem;
        padding: 0.5rem 1rem;
    }
    
    .project-meta {
        font-size: 0.875rem;
    }
    
    .project-meta span {
        padding: 0.6rem 1.2rem;
    }
}

/* ===== POPUP SYSTEM ===== */

/* Popup Overlay */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

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

/* Popup Content */
.popup-content {
    background: var(--text-color);
    color: white;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    transform: scale(0.8);
    transition: transform 0.3s ease;
    cursor: default;
}

.popup-overlay.active .popup-content {
    transform: scale(1);
}

/* Popup Close Button */
.popup-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 11;
    display: flex;
    align-items: center;
    justify-content: center;
}

.popup-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

/* Popup Body */
.popup-body {
    padding: 3rem 2rem 2rem;
}

.popup-body h2 {
    font-family: 'Mono', monospace;
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 300;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.popup-body p {
    font-size: clamp(1rem, 2vw, 1.25rem);
    line-height: 1.6;
    opacity: 0.9;
    margin-bottom: 2rem;
    font-weight: 300;
}

.popup-body .project-tags {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.popup-body .project-tags span {
    font-family: 'Mono', monospace;
    font-size: 0.75rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    opacity: 0.8;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.popup-body .project-tags span:hover {
    opacity: 1;
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.popup-body .project-meta {
    display: flex;
    justify-content: center;
    gap: 2rem;
    font-family: 'Mono', monospace;
    font-size: 0.875rem;
    opacity: 0.7;
}

.popup-body .project-meta span {
    padding: 0.5rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Responsive Popup */
@media (max-width: 768px) {
    .popup-content {
        width: 95%;
        max-height: 85vh;
    }
    
    .popup-body {
        padding: 2rem 1.5rem 1.5rem;
    }
    
    .popup-body h2 {
        font-size: clamp(1.25rem, 5vw, 2rem);
    }
    
    .popup-body p {
        font-size: clamp(0.9rem, 3vw, 1.125rem);
    }
    
    .popup-body .project-tags {
        gap: 0.75rem;
    }
    
    .popup-body .project-tags span {
        font-size: 0.7rem;
        padding: 0.4rem 0.8rem;
    }
    
    .popup-body .project-meta {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
    
    .popup-close {
        width: 35px;
        height: 35px;
        font-size: 1.25rem;
    }
}

@media (max-width: 480px) {
    .popup-body {
        padding: 1.5rem 1rem 1rem;
    }
    
    .popup-body h2 {
        font-size: clamp(1.125rem, 6vw, 1.5rem);
    }
    
    .popup-body p {
        font-size: clamp(0.8rem, 4vw, 1rem);
    }
    
    .popup-body .project-tags span {
        font-size: 0.65rem;
        padding: 0.3rem 0.6rem;
    }
    
    .popup-body .project-meta {
        font-size: 0.75rem;
    }
    
    .popup-body .project-meta span {
        padding: 0.4rem 0.8rem;
    }
}

/* Popup-specific cursor styles */
.popup-cursor .cursor-follower {
    border-color: white !important;
    border: 1px solid white !important;
    background: transparent !important;
}

.popup-cursor .cursor {
    background: white !important;
    mix-blend-mode: normal !important;
}
