* {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
            overflow-x: hidden;
            color: white;
            scroll-behavior: smooth;
        }

        /* Constellation Background Styles */
        #constellation-canvas {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index: 0;
            pointer-events: none;
        }

        /* Content Overlay */
        .content-overlay {
            position: relative;
            z-index: 1;
            min-height: 100vh;
        }

        /* Hero Section */
        .hero {
            position: relative; 
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            min-height: 100vh;
            text-align: center;
            padding: 2rem;
            /*backdrop-filter: blur(5px);
            background: rgba(0, 0, 0, 0.1); */
            background: transparent;
        }

        .profile-image {
            width: 200px;
            height: 200px;
            border-radius: 50%;
            object-fit: cover;
            border: 4px solid rgba(255, 255, 255, 0.3);
            box-shadow: 0 0 30px rgba(255, 255, 255, 0.2);
            margin-bottom: 2rem;
            transition: transform 0.3s ease;
        }

        .profile-image:hover {
            transform: scale(1.05);
        }

        .hero h1 {
            font-size: 3.5rem;
            font-weight: 650;
            margin-bottom: 0.5rem;
            text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
        }

        .hero .subtitle {
            font-size: 1.2rem;
            opacity: 0.9;
            margin-bottom: 0.5rem;
            font-weight: 400;
        }

        .hero .institution {
            font-size: 1.2rem;
            opacity: 0.9;
            margin-bottom: 3rem;
            font-weight: 400;
        }

        .resume-btn {
            background: rgba(255, 255, 255, 0.2);
            border: 2px solid rgba(255, 255, 255, 0.3);
            color: white;
            padding: 1rem 2.5rem;
            font-size: 1.1rem;
            border-radius: 50px;
            cursor: pointer;
            transition: all 0.3s ease;
            text-decoration: none;
            display: inline-block;
            margin-bottom: 3rem;
            backdrop-filter: blur(10px);
        }

        .resume-btn:hover {
            background: rgba(255, 255, 255, 0.3);
            transform: translateY(-2px);
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
        }

        .social-links {
            display: flex;
            gap: 2rem;
            margin-bottom: 4rem;
        }

        .social-icon {
            width: 50px;
            height: 50px;
            background: rgba(255, 255, 255, 0.2);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: white;
            text-decoration: none;
            transition: all 0.3s ease;
            backdrop-filter: blur(10px);
            font-size: 1.5rem;
        }

        .social-icon:hover {
            background: rgba(255, 255, 255, 0.3);
            transform: translateY(-3px) scale(1.1);
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
        }

        .scroll-indicator {
            position: absolute;
            bottom: 2rem;
            left: 50%;
            transform: translateX(-50%);
            width: 30px;
            height: 50px;
            border: 2px solid rgba(255, 255, 255, 0.5);
            border-radius: 25px;
            cursor: pointer;
            transition: all 0.3s ease;
            z-index: 5; 
        }

        .scroll-indicator::after {
            content: '';
            position: absolute;
            top: 8px;
            left: 50%;
            transform: translateX(-50%);
            width: 6px;
            height: 10px;
            background: rgba(255, 255, 255, 0.7);
            border-radius: 3px;
            animation: scroll-animation 2s infinite;
        }

        @keyframes scroll-animation {
            0% { transform: translateX(-50%) translateY(0); opacity: 0; }
            50% { opacity: 1; }
            100% { transform: translateX(-50%) translateY(10px); opacity: 0; }
        }

        /* Portfolio Section */
        .portfolio {
            min-height: 100vh;
            padding: 5rem 2rem;
            text-align: center;
            /*backdrop-filter: blur(5px);
            background: rgba(0, 0, 0, 0.1); */
        }

        .portfolio h2 {
            font-size: 4rem;
            font-weight: 300;
            margin-bottom: 4rem;
            text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
        }

        .portfolio-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 2rem;
            max-width: 1200px;
            margin: 0 auto;
        }

        .project-btn {
            background: rgba(255, 255, 255, 0.9);
            color: #333;
            border: none;
            padding: 1.5rem 2rem;
            border-radius: 15px;
            font-size: 1.1rem;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.3s ease;
            backdrop-filter: blur(10px);
            box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
            opacity: 0;
            transform: translateY(30px);
            animation: fadeInUp 0.6s ease forwards;
        }

        .project-btn:nth-child(1) { animation-delay: 0.1s; }
        .project-btn:nth-child(2) { animation-delay: 0.2s; }
        .project-btn:nth-child(3) { animation-delay: 0.3s; }
        .project-btn:nth-child(4) { animation-delay: 0.4s; }
        .project-btn:nth-child(5) { animation-delay: 0.5s; }

        @keyframes fadeInUp {
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .project-btn:hover {
            transform: translateY(-5px) scale(1.02);
            box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
            background: rgba(255, 255, 255, 1);
        }

        /* Modal Styles */
        .modal-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: 1000;
            opacity: 0;
            visibility: hidden;
            transition: all 0.3s ease;
            backdrop-filter: blur(5px);
        }

        .modal-overlay.active {
            opacity: 1;
            visibility: visible;
        }

        .modal {
            display: flex;
            flex-direction: column;
            overflow: hidden;
            background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.9));
            color: #333;
            border-radius: 20px;
            max-width: 600px;
            width: 90%;
            max-height: 80vh;
            overflow-y: auto;
            transform: scale(0.8);
            transition: transform 0.3s ease;
            backdrop-filter: blur(20px);
            box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
        }

        .modal-overlay.active .modal {
            transform: scale(1);
        }

        .modal-header {
            padding: 2rem 2rem 1rem;
            text-align: center;
            border-bottom: 1px solid rgba(0, 0, 0, 0.1);
        }

        .modal-title {
            font-size: 2rem;
            font-weight: 600;
            margin-bottom: 0;
            color: #333;
        }

        .modal-content {
            padding: 2rem;
            overflow-y: auto;
        }

        .modal-description {
            font-size: 1.1rem;
            line-height: 1.6;
            margin-bottom: 2rem;
            color: #555;
        }

        .modal-tags {
            display: flex;
            flex-wrap: wrap;
            gap: 0.8rem;
            margin-bottom: 2rem;
        }
        .modal-images {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
  margin-top: 1rem;
}

/* Image styling */
.modal-images img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 4px 18px rgba(0,0,0,0.12);
  transition: transform 0.2s ease;
}

.modal-images img:hover {
  transform: scale(1.02);
}

/* Optional caption support */
.modal-images figure {
  margin: 0;
}

.modal-images figcaption {
  font-size: 0.85rem;
  color: #666;
  margin-top: 6px;
  text-align: center;
}

/* Tags */
.tag {
    background: #808080;  /* changed from purple gradient */
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Close button */
.modal-close {
    width: 100%;
    background: #808080;  /* changed from purple gradient */
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 0 0 20px 20px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: #6f6f6f;  /* slightly darker grey for hover */
    /* transform removed already */
}


        /* Responsive Design */
        @media (max-width: 768px) {
            .hero h1 {
                font-size: 2.5rem;
            }
            
            .portfolio h2 {
                font-size: 3rem;
            }
            
            .portfolio-grid {
                grid-template-columns: 1fr;
                gap: 1.5rem;
            }
            
            .social-links {
                gap: 1.5rem;
            }
            
            .modal {
                width: 95%;
                margin: 1rem;
            }
        }

        @media (max-width: 480px) {
            .hero h1 {
                font-size: 2rem;
            }
            
            .portfolio h2 {
                font-size: 2.5rem;
            }
            
            .hero .subtitle {
                font-size: 1rem;
            }
        }
        .scroll-indicator.hidden {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
}
/* Lightbox overlay */
.lightbox {
  display: none; /* hidden by default */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  justify-content: center;
  align-items: center;
  z-index: 2000; /* above the modal */
}

.lightbox img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

  