/* Skill Map Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 50%, #16213e 100%);
    color: #ffffff;
    overflow: hidden;
}

.skill-map-container {
    position: relative;
    width: 100vw;
    height: 100vh;
    background: 
        radial-gradient(circle at 20% 20%, rgba(120, 119, 198, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 119, 198, 0.1) 0%, transparent 50%),
        linear-gradient(135deg, #0f0f23 0%, #1a1a2e 50%, #16213e 100%);
}

/* Grid Background */
.skill-map-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
}

/* Mini Map */
.mini-map {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 200px;
    height: 150px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1000;
}

.mini-map-content {
    position: relative;
    width: 100%;
    height: 100%;
    padding: 10px;
}

.mini-map-regions {
    position: absolute;
    width: 100%;
    height: 100%;
}

.mini-region {
    position: absolute;
    border-radius: 4px;
    opacity: 0.6;
}

.mini-region.frontend-region {
    top: 10%;
    left: 10%;
    width: 30%;
    height: 30%;
    background: linear-gradient(45deg, #667eea, #764ba2);
}

.mini-region.backend-region {
    top: 50%;
    left: 20%;
    width: 25%;
    height: 25%;
    background: linear-gradient(45deg, #f093fb, #f5576c);
}

.mini-region.database-region {
    top: 30%;
    left: 60%;
    width: 20%;
    height: 20%;
    background: linear-gradient(45deg, #4facfe, #00f2fe);
}

.mini-region.cloud-region {
    top: 60%;
    left: 70%;
    width: 25%;
    height: 25%;
    background: linear-gradient(45deg, #43e97b, #38f9d7);
}

.mini-region.ai-region {
    top: 20%;
    left: 80%;
    width: 15%;
    height: 15%;
    background: linear-gradient(45deg, #fa709a, #fee140);
}

.mini-nodes {
    position: absolute;
    width: 100%;
    height: 100%;
}

.mini-node {
    position: absolute;
    width: 6px;
    height: 6px;
    background: #fff;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mini-node:hover {
    transform: scale(1.5);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

.mini-node.socialize-node {
    top: 35%;
    left: 35%;
}

.mini-node.bigorders-node {
    top: 50%;
    left: 50%;
}

.mini-node.saafi-node {
    top: 30%;
    left: 70%;
}

.mini-node.ai-recruiter-node {
    top: 70%;
    left: 80%;
}

/* Legend */
.legend {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    padding: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1000;
}

.legend h3 {
    font-size: 14px;
    margin-bottom: 10px;
    color: #fff;
}

.legend-item {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    font-size: 12px;
}

.legend-color {
    width: 12px;
    height: 12px;
    border-radius: 2px;
    margin-right: 8px;
}

.frontend-color { background: linear-gradient(45deg, #667eea, #764ba2); }
.backend-color { background: linear-gradient(45deg, #f093fb, #f5576c); }
.database-color { background: linear-gradient(45deg, #4facfe, #00f2fe); }
.cloud-color { background: linear-gradient(45deg, #43e97b, #38f9d7); }
.ai-color { background: linear-gradient(45deg, #fa709a, #fee140); }

/* Main Map */
.map-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.skill-map {
    position: relative;
    width: 100%;
    height: 100%;
    transform-origin: center;
    transition: transform 0.3s ease;
}

/* Regions */
.region {
    position: absolute;
    border-radius: 20px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
}

.region:hover {
    transform: scale(1.02);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.1);
}

.region.active {
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 0 40px rgba(255, 255, 255, 0.2);
}

.frontend-region {
    top: 10%;
    left: 10%;
    width: 25%;
    height: 30%;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.2), rgba(118, 75, 162, 0.2));
    border-color: rgba(102, 126, 234, 0.5);
}

.backend-region {
    top: 50%;
    left: 15%;
    width: 20%;
    height: 25%;
    background: linear-gradient(135deg, rgba(240, 147, 251, 0.2), rgba(245, 87, 108, 0.2));
    border-color: rgba(240, 147, 251, 0.5);
}

.database-region {
    top: 25%;
    left: 60%;
    width: 18%;
    height: 20%;
    background: linear-gradient(135deg, rgba(79, 172, 254, 0.2), rgba(0, 242, 254, 0.2));
    border-color: rgba(79, 172, 254, 0.5);
}

.cloud-region {
    top: 60%;
    left: 70%;
    width: 22%;
    height: 28%;
    background: linear-gradient(135deg, rgba(67, 233, 123, 0.2), rgba(56, 249, 215, 0.2));
    border-color: rgba(67, 233, 123, 0.5);
}

.ai-region {
    top: 15%;
    left: 80%;
    width: 15%;
    height: 18%;
    background: linear-gradient(135deg, rgba(250, 112, 154, 0.2), rgba(254, 225, 64, 0.2));
    border-color: rgba(250, 112, 154, 0.5);
}

.region-label {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 5px;
    color: #fff;
}

.region-description {
    font-size: 12px;
    opacity: 0.8;
    line-height: 1.4;
}

/* Project Nodes */
.project-node {
    position: absolute;
    cursor: pointer;
    z-index: 100;
    transition: all 0.3s ease;
}

.project-node:hover {
    transform: scale(1.1);
}

.project-node.active {
    transform: scale(1.2);
}

.node-pulse {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(2);
        opacity: 0;
    }
}

.node-content {
    position: relative;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.5);
    transition: all 0.3s ease;
}

.node-content i {
    font-size: 24px;
    color: #fff;
}

.node-content:hover {
    box-shadow: 0 0 30px rgba(102, 126, 234, 0.8);
    transform: scale(1.1);
}

/* Node Sizes based on complexity */
.socialize-node .node-content {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #f093fb, #f5576c);
    box-shadow: 0 0 15px rgba(240, 147, 251, 0.5);
}

.bigorders-node .node-content {
    width: 65px;
    height: 65px;
    background: linear-gradient(135deg, #4facfe, #00f2fe);
    box-shadow: 0 0 25px rgba(79, 172, 254, 0.5);
}

.saafi-node .node-content {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #43e97b, #38f9d7);
    box-shadow: 0 0 30px rgba(67, 233, 123, 0.5);
}

.ai-recruiter-node .node-content {
    width: 55px;
    height: 55px;
    background: linear-gradient(135deg, #fa709a, #fee140);
    box-shadow: 0 0 20px rgba(250, 112, 154, 0.5);
}

/* Tooltips */
.node-tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 8px;
    padding: 12px;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.node-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: rgba(0, 0, 0, 0.9);
}

.project-node:hover .node-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-10px);
}

.node-tooltip h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 5px;
    color: #fff;
}

.node-tooltip p {
    font-size: 12px;
    opacity: 0.8;
    margin-bottom: 8px;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.tech-tags span {
    background: rgba(255, 255, 255, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 10px;
    color: #fff;
}

/* Connection Lines */
.connections {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 50;
}

.connection-line {
    stroke: rgba(255, 255, 255, 0.3);
    stroke-width: 2;
    stroke-dasharray: 5, 5;
    animation: dash 20s linear infinite;
    filter: url(#glow);
}

@keyframes dash {
    to {
        stroke-dashoffset: -100;
    }
}

.connection-line.active {
    stroke: rgba(255, 255, 255, 0.8);
    stroke-width: 3;
}

/* Project Modal */
.project-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

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

.modal-content {
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(20px);
    border-radius: 15px;
    padding: 0;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-header h2 {
    font-size: 24px;
    font-weight: 600;
    color: #fff;
}

.close-btn {
    background: none;
    border: none;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    padding: 5px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.modal-body {
    padding: 20px;
}

.project-info {
    color: #fff;
}

.project-description {
    margin-bottom: 20px;
    line-height: 1.6;
}

.project-tech-stack {
    margin-bottom: 20px;
}

.project-tech-stack h4 {
    margin-bottom: 10px;
    font-size: 16px;
    font-weight: 600;
}

.tech-stack-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tech-stack-tags span {
    background: linear-gradient(135deg, #667eea, #764ba2);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.project-links {
    display: flex;
    gap: 15px;
}

.project-links a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.project-links a:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

/* Map Controls */
.map-controls {
    position: absolute;
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 1000;
}

.control-btn {
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.control-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: scale(1.1);
}

/* Mobile First Responsive Design */

/* Responsive visibility classes */
.desktop-only {
    display: block;
}

.mobile-only {
    display: none;
}

/* Mobile Project Cards */
.project-cards-mobile {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 16px;
    margin: 16px;
}

.project-card-mobile {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    cursor: pointer;
    touch-action: manipulation;
    will-change: transform;
    min-height: 44px;
}

.project-card-mobile:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.project-card-mobile:active {
    transform: scale(0.98);
}

.project-thumbnail {
    height: 60px;
    width: 60px;
    background: linear-gradient(45deg, #4facfe, #0093E9);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    font-size: 24px;
    color: white;
}

.project-title-mobile {
    font-size: clamp(18px, 2.5vw, 22px);
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 8px;
    line-height: 1.3;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.project-description-mobile {
    font-size: clamp(14px, 2.5vw, 16px);
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 16px;
    max-height: 4.2em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

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

.tech-badge {
    background: rgba(79, 172, 254, 0.2);
    color: #4facfe;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    border: 1px solid rgba(79, 172, 254, 0.3);
}

.project-actions-mobile {
    display: flex;
    gap: 12px;
}

.project-link-mobile {
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, rgba(79, 172, 254, 0.9), rgba(0, 147, 233, 0.8));
    color: white;
    text-decoration: none;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    min-height: 44px;
    touch-action: manipulation;
}

.project-link-mobile:hover {
    background: linear-gradient(135deg, rgba(79, 172, 254, 1), rgba(0, 147, 233, 0.9));
    transform: translateY(-2px);
}

.project-link-mobile:active {
    transform: scale(0.95);
}

/* Base mobile styles */
.tech-regions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 16px;
    margin: 16px;
}

.region {
    min-height: 44px;
    padding: 16px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.2s ease;
    cursor: pointer;
    touch-action: manipulation;
    will-change: transform;
}

.region:active {
    transform: scale(0.95);
    opacity: 0.8;
}

.region-label {
    font-size: clamp(16px, 2.5vw, 18px);
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 8px;
    color: #ffffff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.region-description {
    font-size: clamp(14px, 2.5vw, 16px);
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.9);
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.region.expanded .region-description {
    opacity: 1;
    max-height: 200px;
    margin-top: 8px;
}

/* Project nodes mobile optimization */
.project-node {
    min-width: 44px;
    min-height: 44px;
}

.node-content {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
}

.node-content i {
    font-size: 18px;
}

/* Mini-map mobile optimization */
.mini-map {
    width: 120px;
    height: 90px;
    top: 8px;
    right: 8px;
    border-radius: 8px;
}

/* Legend mobile optimization */
.legend {
    top: 8px;
    left: 8px;
    padding: 12px;
    border-radius: 8px;
    max-width: calc(100vw - 32px);
}

.legend h3 {
    font-size: clamp(14px, 2.5vw, 16px);
    margin-bottom: 8px;
}

.legend-item {
    font-size: clamp(12px, 2.5vw, 14px);
    line-height: 1.4;
    margin-bottom: 6px;
    min-height: 20px;
    display: flex;
    align-items: center;
}

/* Modal mobile optimization */
.modal-content {
    width: calc(100vw - 32px);
    max-width: 400px;
    margin: 16px;
    border-radius: 16px;
}

.modal-header {
    padding: 16px 20px;
    min-height: 44px;
}

.modal-header h2 {
    font-size: clamp(16px, 2.5vw, 18px);
    line-height: 1.4;
}

.close-btn {
    min-width: 44px;
    min-height: 44px;
    width: 44px;
    height: 44px;
}

/* Map controls mobile optimization */
.map-controls {
    bottom: 16px;
    right: 16px;
    gap: 8px;
}

.control-btn {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    border-radius: 50%;
    font-size: 16px;
}

/* Touch-friendly interactions */
@media (hover: none) {
    .region:hover {
        transform: none;
    }
    
    .node-content:hover {
        transform: none;
    }
    
    .control-btn:hover {
        transform: none;
    }
    
    .send-button:hover {
        transform: none;
    }
}

/* Mobile Layout Switch */
@media screen and (max-width: 768px) {
    .desktop-only {
        display: none !important;
    }
    
    .mobile-only {
        display: block !important;
    }
    
    /* Hide tech regions on mobile */
    .tech-regions {
        display: none !important;
    }
    
    /* Show mobile project cards */
    .project-cards-mobile {
        display: grid !important;
    }
    
    /* Stagger card animations */
    .project-card-mobile {
        animation: slideInUp 0.6s ease forwards;
        opacity: 0;
        transform: translateY(30px);
    }
    
    .project-card-mobile:nth-child(1) { animation-delay: 0.1s; }
    .project-card-mobile:nth-child(2) { animation-delay: 0.2s; }
    .project-card-mobile:nth-child(3) { animation-delay: 0.3s; }
    .project-card-mobile:nth-child(4) { animation-delay: 0.4s; }
}

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

/* Tablet adaptations */
@media screen and (min-width: 768px) {
    .desktop-only {
        display: block !important;
    }
    
    .mobile-only {
        display: none !important;
    }
    
    .tech-regions {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        padding: 20px;
        margin: 20px;
    }
    
    .region {
        padding: 20px;
        border-radius: 16px;
    }
    
    .node-content {
        width: 50px;
        height: 50px;
    }
    
    .node-content i {
        font-size: 20px;
    }
    
    .mini-map {
        width: 150px;
        height: 120px;
        top: 10px;
        right: 10px;
    }
    
    .legend {
        top: 10px;
        left: 10px;
        padding: 15px;
    }
    
    .modal-content {
        width: 90%;
        max-width: 500px;
        margin: 20px;
    }
    
    .map-controls {
        bottom: 20px;
        right: 20px;
    }
    
    .control-btn {
        width: 40px;
        height: 40px;
    }
}

/* Desktop layout */
@media screen and (min-width: 1024px) {
    .tech-regions {
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
        padding: 24px;
        margin: 24px;
    }
    
    .region {
        padding: 24px;
        border-radius: 20px;
    }
    
    .node-content {
        width: 60px;
        height: 60px;
    }
    
    .node-content i {
        font-size: 24px;
    }
    
    .mini-map {
        width: 200px;
        height: 150px;
        top: 20px;
        right: 20px;
    }
    
    .legend {
        top: 20px;
        left: 20px;
        padding: 20px;
    }
    
    .modal-content {
        width: 80%;
        max-width: 600px;
        margin: 24px;
    }
    
    .map-controls {
        bottom: 24px;
        right: 24px;
    }
    
    .control-btn {
        width: 48px;
        height: 48px;
    }
}

/* Accessibility improvements */
.region:focus,
.node-content:focus,
.control-btn:focus,
.close-btn:focus {
    outline: 2px solid #4facfe;
    outline-offset: 2px;
}

/* ARIA labels for screen readers */
.region[aria-expanded="true"] .region-description {
    opacity: 1;
    max-height: 200px;
}

/* Performance optimizations */
.region,
.node-content,
.control-btn {
    will-change: transform;
    transform: translateZ(0);
}

/* Prevent horizontal scrolling on mobile */
.skill-map-container {
    overflow-x: hidden;
    max-width: 100vw;
}

/* Touch action optimizations */
.region,
.node-content,
.control-btn,
.close-btn,
.project-card-mobile,
.project-link-mobile {
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

/* Touch-friendly interactions for mobile */
@media (hover: none) {
    .project-card-mobile:hover {
        transform: none;
    }
    
    .project-link-mobile:hover {
        transform: none;
    }
}

/* Accessibility improvements for mobile cards */
.project-card-mobile:focus {
    outline: 2px solid #4facfe;
    outline-offset: 2px;
}

.project-link-mobile:focus {
    outline: 2px solid rgba(255, 255, 255, 0.5);
    outline-offset: 2px;
}

/* Prevent horizontal scrolling on mobile */
.skill-map-container {
    overflow-x: hidden;
    max-width: 100vw;
}

/* Landscape orientation adjustments */
@media screen and (max-width: 768px) and (orientation: landscape) {
    .project-cards-mobile {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
        padding: 12px;
    }
    
    .project-card-mobile {
        padding: 16px;
    }
    
    .project-thumbnail {
        height: 50px;
        width: 50px;
        font-size: 20px;
    }
    
    .project-title-mobile {
        font-size: clamp(16px, 2.5vw, 18px);
    }
    
    .project-description-mobile {
        font-size: clamp(12px, 2.5vw, 14px);
        -webkit-line-clamp: 2;
    }
}

/* Animation for node entry */
.project-node {
    animation: nodeEntry 0.8s ease-out forwards;
    opacity: 0;
    transform: scale(0);
}

.project-node:nth-child(1) { animation-delay: 0.1s; }
.project-node:nth-child(2) { animation-delay: 0.3s; }
.project-node:nth-child(3) { animation-delay: 0.5s; }
.project-node:nth-child(4) { animation-delay: 0.7s; }

@keyframes nodeEntry {
    to {
        opacity: 1;
        transform: scale(1);
    }
} 