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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #e0e0e0;
    background: #0a0a0a;
}

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

/* Header */
header {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: white;
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
}

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

.nav-links a {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s;
}

.nav-links a:hover {
    opacity: 0.8;
    text-decoration: underline;
    text-underline-offset: 5px;
}

.nav-links li.active a {
    text-decoration: underline;
    text-underline-offset: 5px;
}

.mobile-menu {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.mobile-menu span {
    width: 25px;
    height: 3px;
    background: white;
    margin: 3px 0;
    transition: 0.3s;
}

/* Main Content */
.main-content {
    margin-top: 80px;
    padding: 40px 0;
}

.project-header {
    text-align: center;
    margin-bottom: 3rem;
    padding: 3rem 2rem;
    background: linear-gradient(135deg, #111111 0%, #1a1a1a 100%);
    border-radius: 20px;
    border: 1px solid #333;
}

.project-title {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    color: #ffffff;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out forwards;
}

.project-subtitle {
    font-size: 1.4rem;
    color: #bb86fc;
    margin-bottom: 2rem;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 0.2s forwards;
}

.project-tags {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 0.4s forwards;
}

.tag {
    background: linear-gradient(135deg, #bb86fc 0%, #6200ea 100%);
    color: white;
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: 0 4px 15px rgba(187, 134, 252, 0.3);
}

.project-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.project-info {
    background: #111111;
    padding: 2.5rem;
    border-radius: 15px;
    border: 1px solid #333;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.project-info h3 {
    color: #bb86fc;
    margin-bottom: 1.5rem;
    font-size: 1.6rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.project-description {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 2.5rem;
    color: #c0c0c0;
}

.project-features {
    list-style: none;
    margin-bottom: 2.5rem;
}

.project-features li {
    padding: 0.8rem 0;
    border-bottom: 1px solid #333;
    position: relative;
    padding-left: 2rem;
    font-size: 1.05rem;
    transition: all 0.3s ease;
}

.project-features li:hover {
    color: #bb86fc;
    padding-left: 2.5rem;
}

.project-features li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #bb86fc;
    font-weight: bold;
    font-size: 1.2rem;
}

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

.project-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #bb86fc 0%, #6200ea 100%);
    color: white;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 30px;
    transition: all 0.3s ease;
    font-weight: 500;
    box-shadow: 0 4px 15px rgba(187, 134, 252, 0.3);
}

.project-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(187, 134, 252, 0.4);
}

.project-link.secondary {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    box-shadow: 0 4px 15px rgba(255,255,255,0.1);
}

.project-link.secondary:hover {
    background: rgba(255,255,255,0.2);
    box-shadow: 0 8px 25px rgba(255,255,255,0.2);
}

.project-gallery {
    background: #111111;
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid #333;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    margin-bottom: 2.5rem;
}

.project-gallery h3{
    margin-bottom: 1rem;
}

.gallery-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
}

.gallery-main {
    position: relative;
    margin-bottom: 1.5rem;
    overflow: hidden;
    box-shadow: 0 8px 20px #bb86fc;
    width: 31.8%;
    height: 220px; 
    cursor: pointer;
    border-radius: 10px;
}

.gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    display: block;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.gallery-main:hover img {
    transform: scale(1.02);
}

/* Lightbox Overlay */
#lightbox-overlay {
  position: fixed;
  display: none; 
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.9);
  justify-content: center;
  align-items: center;
  z-index: 2000;
}

#lightbox-overlay img {
  max-width: 90%;
  max-height: 80%;
  border-radius: 10px;
  box-shadow: 0 0 30px rgba(0,0,0,0.8);
}

#lightbox-close {
  position: absolute;
  top: 40px;
  right: 60px;
  font-size: 3rem;
  color: white;
  cursor: pointer;
  z-index: 2100;
  transition: transform 0.2s ease;
}

#lightbox-close:hover {
  transform: scale(1.2);
}

.image-caption {
    text-align: center;
    color: #888;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.gallery-thumbnails {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 1rem;
}

.thumbnail {
    height: 80px;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid #333;
    transition: all 0.3s ease;
    cursor: pointer;
}

.thumbnail:hover {
    border-color: #bb86fc;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(187, 134, 252, 0.3);
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tech-stack {
    background: #111111;
    padding: 2.5rem;
    border-radius: 15px;
    border: 1px solid #333;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    margin-bottom: 3rem;
}

.tech-stack h3 {
    color: #bb86fc;
    margin-bottom: 2rem;
    font-size: 1.8rem;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

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

.tech-item {
    background: #1a1a1a;
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    border: 1px solid #333;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.tech-item:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(187, 134, 252, 0.1), transparent);
    transition: left 0.5s ease;
}

.tech-item:hover:before {
    left: 100%;
}

.tech-item:hover {
    transform: translateY(-5px);
    border-color: #bb86fc;
    box-shadow: 0 8px 25px rgba(187, 134, 252, 0.3);
}

.tech-item i {
    font-size: 2.5rem;
    margin-bottom: 0.8rem;
    color: #bb86fc;
}

.tech-item span {
    font-size: 1rem;
    font-weight: 500;
}

.project-stats {
    background: #111111;
    padding: 2.5rem;
    border-radius: 15px;
    border: 1px solid #333;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    margin-bottom: 3rem;
}

.project-stats h3 {
    color: #bb86fc;
    margin-bottom: 2rem;
    font-size: 1.8rem;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

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

.stat-item {
    background: #1a1a1a;
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    border: 1px solid #333;
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-3px);
    border-color: #bb86fc;
    box-shadow: 0 5px 15px rgba(187, 134, 252, 0.2);
}

.stat-number {
    font-size: 2rem;
    font-weight: bold;
    color: #bb86fc;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    color: #888;
}

/* Footer */
footer {
    background: #000000;
    color: white;
    padding: 2rem 0;
    text-align: center;
    border-top: 1px solid #333;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.social-link {
    color: white;
    font-size: 1.5rem;
    transition: color 0.3s ease;
}

.social-link:hover {
    color: #bb86fc;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
        flex-direction: column;
        padding: 1rem;
        box-shadow: 0 2px 20px rgba(0,0,0,0.3);
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        text-decoration: none !important;
        padding: 0.8rem 0;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        transition: color 0.3s ease;
    }
    
    .nav-links li:last-child a {
        border-bottom: none;
    }
    
    .nav-links li.active a {
        text-decoration: none !important;
        color: #bb86fc;
        font-weight: bold;
    }
    
    .nav-links a:hover {
        text-decoration: none !important;
        color: #bb86fc;
    }

    .mobile-menu {
        display: flex;
    }

    .project-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .project-title {
        font-size: 2.5rem;
    }

    .project-subtitle {
        font-size: 1.2rem;
    }

    .project-links {
        flex-direction: column;
    }

    .nav-links {
        display: none;
    }

    .tech-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    }

    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }

    .project-header {
        padding: 2rem 1rem;
    }

    .project-info,
    .project-gallery,
    .tech-stack,
    .project-stats {
        padding: 2rem;
    }

    .gallery-main {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .project-title {
        font-size: 2rem;
    }

    .project-subtitle {
        font-size: 1.1rem;
    }

    .project-tags {
        gap: 0.5rem;
    }

    .tag {
        padding: 6px 16px;
        font-size: 0.8rem;
    }

    .gallery-thumbnails {
        grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    }

    .thumbnail {
        height: 60px;
    }

    .gallery-main {
        width: 100%;
    }
}