:root {
    --navy-dark: #0a1a2d;
    --navy-med: #152342;
    --blue-dark: #325786;
    --blue-light: #5f86bf;
    --cream: #e4e8d3;
    
    /* Project-specific gradient colors - change these per project */
    --project-primary: #6366f1;
    --project-secondary: #8b5cf6;
    --project-accent: #06b6d4;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #1a1a1a;
    color: #e0e0e0;
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Optimized floating particles */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image:
        radial-gradient(2px 2px at 20px 30px, rgba(95, 134, 191, 0.3), transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(255, 255, 255, 0.1), transparent),
        radial-gradient(1px 1px at 90px 40px, rgba(95, 134, 191, 0.2), transparent),
        radial-gradient(1px 1px at 130px 80px, rgba(255, 255, 255, 0.05), transparent);
    background-repeat: repeat;
    background-size: 150px 150px;
    animation: float 20s infinite linear;
    pointer-events: none;
    z-index: -1;
    will-change: transform;
}

/* Navigation */
nav {
    background: rgba(42, 42, 42, 0.5);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid #333;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.logo a {
    color: var(--blue-light);
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: bold;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: #e0e0e0;
    text-decoration: none;
    transition: color 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 8px;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--blue-light);
    background: rgba(95, 134, 191, 0.15);
}

/* Main Content */
main {
    margin-top: 72.8px;
}

/* Project Hero Section */
.project-hero {
    background: linear-gradient(135deg, var(--project-primary) 0%, var(--project-secondary) 50%, var(--project-accent) 100%);
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.project-hero::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(to bottom, transparent, #1a1a1a);
    z-index: 1;
}

.back-button {
    position: absolute;
    top: 2rem;
    left: 2rem;
    z-index: 2;
}

.back-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 50%;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.back-link:hover {
    background: rgba(0, 0, 0, 0.5);
    transform: translateX(-3px);
}

.hero-content {
    text-align: center;
    z-index: 2;
    max-width: 800px;
    padding: 0 2rem;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease forwards;
}

.project-logo {
    margin-top: 3rem;
    width: 100%;
    border-radius: 25px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border: 3px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(100px);
}

.project-title {
    font-size: 3.5rem;
    font-weight: bold;
    color: white;
    margin-bottom: 1rem;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.project-subtitle {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem 2rem;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: rgba(255, 255, 255, 0.95);
    color: #1a1a1a;
    backdrop-filter: blur(10px);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    background: white;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    transform: translateY(-3px) scale(1.05);
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

/* Project Container */
.project-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

/* Screenshots Section */
.screenshots-section {
    margin-bottom: 5rem;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease 0.4s forwards;
}

.screenshots-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.screenshot {
    background: linear-gradient(145deg, #2a2a2a, #1f1f1f);
    border-radius: 16px;
    padding: 1rem;
    border: 1px solid #404040;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.screenshot::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(95, 134, 191, 0.1), transparent);
    transition: left 0.6s ease;
}

.screenshot:hover::before {
    left: 100%;
}

.screenshot:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--blue-light);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.screenshot img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    transition: transform 0.3s ease;
}

.screenshot:hover img {
    transform: scale(1.05);
}

/* Content Grid */
.content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    align-items: start;
}

/* Main Content */
.main-content {
    opacity: 0;
    transform: translateX(-30px);
    animation: slideInLeft 0.8s ease 0.6s forwards;
}

.content-section {
    margin-bottom: 4rem;
}

.content-section h2 {
    font-size: 2.5rem;
    color: var(--blue-light);
    margin-bottom: 2rem;
    position: relative;
}

.content-section h2::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(45deg, var(--blue-light), var(--project-primary));
    border-radius: 2px;
}

.section-content {
    background: linear-gradient(145deg, #2a2a2a, #1f1f1f);
    border-radius: 20px;
    padding: 3rem;
    border: 1px solid #404040;
    position: relative;
    overflow: hidden;
}

.section-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(95, 134, 191, 0.05), transparent);
    animation: shimmer 4s infinite;
}

.section-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #d0d0d0;
    margin-bottom: 1.5rem;
}

.section-content p:last-child {
    margin-bottom: 0;
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
}

.feature-item {
    background: rgba(95, 134, 191, 0.05);
    border: 1px solid rgba(95, 134, 191, 0.2);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
    background: rgba(95, 134, 191, 0.1);
    border-color: var(--blue-light);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.feature-item h3 {
    color: var(--blue-light);
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.feature-item p {
    color: #b0b0b0;
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
}

/* Sidebar */
.sidebar {
    opacity: 0;
    transform: translateX(30px);
    animation: slideInRight 0.8s ease 0.8s forwards;
}

.tech-links-section,
.project-info-section {
    background: linear-gradient(145deg, #2a2a2a, #1f1f1f);
    border-radius: 20px;
    padding: 2rem;
    border: 1px solid #404040;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.tech-links-section::before,
.project-info-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(95, 134, 191, 0.1), transparent);
    border-radius: 50%;
    animation: pulse 3s infinite;
}

.sidebar h3 {
    color: var(--blue-light);
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

/* Tech Links */
.tech-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.tech-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.2rem;
    background: rgba(95, 134, 191, 0.05);
    border: 1px solid rgba(95, 134, 191, 0.2);
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.tech-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(95, 134, 191, 0.1), transparent);
    transition: left 0.6s ease;
}

.tech-link:hover::before {
    left: 100%;
}

.tech-link:hover {
    transform: translateX(8px) scale(1.02);
    border-color: var(--blue-light);
    background: rgba(95, 134, 191, 0.1);
}

.link-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.link-content {
    flex-grow: 1;
}

.link-title {
    display: block;
    color: var(--blue-light);
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 0.2rem;
}

.link-desc {
    display: block;
    color: #999;
    font-size: 0.9rem;
}

.link-arrow {
    font-size: 1.2rem;
    color: var(--blue-light);
    transition: transform 0.3s ease;
}

.tech-link:hover .link-arrow {
    transform: translateX(5px);
}

/* Project Info */
.info-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.info-label {
    color: #999;
    font-size: 0.9rem;
    font-weight: 500;
}

.info-value {
    color: #e0e0e0;
    font-weight: 600;
}

.status-active {
    color: #00ff88;
    background: rgba(0, 255, 136, 0.1);
    padding: 0.3rem 0.8rem;
    border-radius: 12px;
    border: 1px solid rgba(0, 255, 136, 0.3);
    font-size: 0.8rem;
}

/* Floating Particles */
.floating-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    background-image:
        radial-gradient(2px 2px at 20px 30px, rgba(95, 134, 191, 0.1), transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(255, 255, 255, 0.05), transparent),
        radial-gradient(1px 1px at 90px 40px, rgba(95, 134, 191, 0.08), transparent),
        radial-gradient(1px 1px at 130px 80px, rgba(255, 255, 255, 0.03), transparent);
    background-repeat: repeat;
    background-size: 200px 200px;
    animation: float 25s infinite linear;
}

/* Animations */
@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes shimmer {
    0% {
        left: -100%;
    }
    50% {
        left: 100%;
    }
    100% {
        left: -100%;
    }
}

@keyframes pulse {
    0% {
        opacity: 0.6;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.1);
    }
    100% {
        opacity: 0.6;
        transform: scale(1);
    }
}

@keyframes float {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(-200px, -200px);
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .content-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .sidebar {
        animation: fadeInUp 0.8s ease 0.6s forwards;
        transform: translateY(30px);
    }
    
    .screenshots-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-links {
        gap: 1rem;
    }
    
    .project-title {
        font-size: 2.5rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
    
    .project-container {
        padding: 2rem 1rem;
    }
    
    .section-content {
        padding: 2rem;
    }
    
    .back-button {
        top: 1rem;
        left: 1rem;
    }
    
    .back-link {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 480px) {
    .project-title {
        font-size: 2rem;
    }
    
    .project-subtitle {
        font-size: 1.1rem;
    }
    
    .content-section h2 {
        font-size: 2rem;
    }
    
    .section-content {
        padding: 1.5rem;
    }
    
    .tech-links-section,
    .project-info-section {
        padding: 1.5rem;
    }
}