/* Basic reset and global styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

/* Cursor effect */
#cursor {
    width: 20px;
    height: 20px;
    background: radial-gradient(circle, rgba(64, 224, 255, 0.8) 0%, rgba(64, 224, 255, 0.2) 70%, transparent 100%);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    mix-blend-mode: screen;
    transition: all 0.1s ease;
}

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(64, 224, 255, 0.2);
}

.nav-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: #40e0ff;
    text-shadow: 0 0 10px rgba(64, 224, 255, 0.5);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 400;
    transition: all 0.3s ease;
    position: relative;
}

.nav-links a:hover {
    color: #40e0ff;
    text-shadow: 0 0 5px rgba(64, 224, 255, 0.5);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #40e0ff, #64b5f6);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

/* WebGL Background */
#webgl {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.3;
}

/* Main content */
#published {
    padding-top: 80px;
    position: relative;
    z-index: 10;
}

.max-w-7xl {
    max-width: 1280px;
}

.mx-auto {
    margin-left: auto;
    margin-right: auto;
}

.px-4 {
    padding-left: 1rem;
    padding-right: 1rem;
}

.py-16 {
    padding-top: 4rem;
    padding-bottom: 4rem;
}

.text-4xl {
    font-size: 2.25rem;
    line-height: 2.5rem;
}

.text-5xl {
    font-size: 3rem;
    line-height: 1.2;
}

.text-2xl {
    font-size: 1.5rem;
    line-height: 2rem;
}

.text-xl {
    font-size: 1.25rem;
    line-height: 1.75rem;
}

.font-bold {
    font-weight: 700;
}

.font-semibold {
    font-weight: 600;
}

.text-white {
    color: #ffffff;
}

.text-gray-400 {
    color: #9ca3af;
}

.text-blue-400 {
    color: #60a5fa;
}

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

.mb-2 {
    margin-bottom: 0.5rem;
}

.mb-4 {
    margin-bottom: 1rem;
}

.mb-8 {
    margin-bottom: 2rem;
}

.mb-12 {
    margin-bottom: 3rem;
}

.mt-2 {
    margin-top: 0.5rem;
}

.mt-4 {
    margin-top: 1rem;
}

.ml-4 {
    margin-left: 1rem;
}

.list-disc {
    list-style-type: disc;
}

.list-inside {
    list-style-position: inside;
}

.rounded-lg {
    border-radius: 0.5rem;
}

/* Project boxes */
.project-box {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(64, 224, 255, 0.2);
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.project-box:hover {
    border-color: rgba(64, 224, 255, 0.5);
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(64, 224, 255, 0.2);
}

.pdf-container {
    width: 100%;
    height: 800px;
    border: 2px solid rgba(64, 224, 255, 0.3);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(5px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.project-box button {
    background: linear-gradient(135deg, #40e0ff 0%, #64b5f6 100%);
    color: #000000;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(64, 224, 255, 0.3);
    white-space: nowrap;
}

.project-box button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(64, 224, 255, 0.4);
    background: linear-gradient(135deg, #64b5f6 0%, #40e0ff 100%);
}

/* Modal styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: linear-gradient(135deg, rgba(26, 26, 46, 0.95) 0%, rgba(22, 33, 62, 0.95) 100%);
    margin: 5% auto;
    padding: 2rem;
    border: 2px solid rgba(64, 224, 255, 0.3);
    border-radius: 15px;
    width: 90%;
    max-width: 1000px;
    max-height: 85vh;
    overflow-y: auto;
    backdrop-filter: blur(10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    animation: modalSlideIn 0.3s ease-out;
}

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

.close {
    color: #40e0ff;
    float: right;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.close:hover {
    color: #64b5f6;
    text-shadow: 0 0 10px rgba(64, 224, 255, 0.5);
}

.model-block {
    margin-top: 1rem;
}

.model-details {
    margin-top: 1.5rem;
}

.model-details ul {
    margin-top: 1rem;
}

.model-details li {
    margin-bottom: 0.5rem;
}

.list-circle {
    list-style-type: circle;
}

/* Back link styling */
.back-link {
    display: inline-block;
    padding: 12px 24px;
    background: linear-gradient(135deg, #40e0ff 0%, #64b5f6 100%);
    color: #000000;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(64, 224, 255, 0.3);
    margin-top: 2rem;
}

.back-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(64, 224, 255, 0.4);
    background: linear-gradient(135deg, #64b5f6 0%, #40e0ff 100%);
}

/* Responsive design */
@media (max-width: 768px) {
    .nav {
        padding: 1rem;
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-links {
        gap: 1rem;
    }
    
    .nav-links a {
        font-size: 0.9rem;
    }
    
    .text-5xl {
        font-size: 2rem;
    }
    
    .px-4 {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }

    .project-box {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }

    .modal-content {
        width: 95%;
        margin: 2% auto;
        padding: 1rem;
    }

    #published {
        padding-top: 120px;
    }
}

/* Animation for content */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#published > div {
    animation: fadeInUp 0.8s ease-out;
}

/* Glowing text effect */
h1, h2 {
    text-shadow: 0 0 20px rgba(64, 224, 255, 0.3);
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(16, 16, 16, 0.8);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #40e0ff, #64b5f6);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #64b5f6, #40e0ff);
}

/* Image styling */
.modal img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 0 auto;
    display: block;
}

/* Image grid styling */
.image-grid {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    padding: 10px;
    min-width: 340px;
    margin-bottom: 20px;
}

.image-item {
    width: 150px;
    text-align: center;<!-- <link rel="stylesheet" href="../../styles.css"> -->
    margin: 10px;
}

.image-item img {
    width: 150px;
    height: 150px;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s ease;
    object-fit: cover;
}

.image-item img:hover {
    transform: scale(1.05);
}

.image-caption {
    font-size: 0.9rem;
    line-height: 1.2;
    height: 60px;
    overflow: hidden;
    margin-top: 8px;
}

.project-card {
    background: #1a202c;
    border: 2px solid #4a5568;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}
.project-card img {
    width: 100%;
    max-width: 400px;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s ease;
    margin: 10px auto;
    display: block;
}
.project-card img:hover {
    transform: scale(1.05);
}
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.8);
}
.modal-content {
    margin: 5% auto;
    padding: 20px;
    background-color: #1a202c;
    width: 80%;
    max-width: 800px;
    border-radius: 8px;
}
.modal-content img {
    max-width: 100%;
    max-height: 80vh;
    display: block;
    margin: 0 auto;
    object-fit: contain;
}

.close {
    color: #fff;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}
.close:hover {
    color: #ccc;
}
#tools {
    padding-top: 80px; /* Offset for fixed nav */
    position: relative;
    z-index: 10; /* Above #webgl */
}
@media (max-width: 768px) {
    .project-card img {
        max-width: 300px;
    }
    .modal-content {
        width: 90%;
    }
    #tools {
        padding-top: 60px; /* Adjust for mobile nav */
    }
}


