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

body {
    font-family: 'Inter', system-ui, sans-serif;
    background: linear-gradient(135deg, #06060f 0%, #0d0d24 50%, #0a0a1f 100%);
    color: white;
    overflow-x: hidden;
    line-height: 1.6;
}

h1, h2, h3, h4 {
    font-family: 'Space Grotesk', 'Inter', sans-serif;
}

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

/* Back link (matches other project pages) */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: #9a9ab0;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.25s, transform 0.25s;
    position: relative;
    z-index: 10;
}

.back-link:hover {
    color: #3cf7f7;
    transform: translateX(-3px);
}

/* Animated background particles */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: rgba(60, 247, 247, 0.5);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) translateX(0px); opacity: 0; }
    50% { transform: translateY(-20px) translateX(10px); opacity: 1; }
}

/* Navigation */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 20px 0;
    background: rgba(15, 15, 35, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.profile-img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 3px solid #3cf7f7;
    transition: all 0.3s ease;
    object-fit: cover;
}

.profile-img:hover {
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(60, 247, 247, 0.5);
}

.project-title-nav {
    font-weight: 600;
    font-size: 1.1rem;
    color: #3cf7f7;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 40px;
}

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

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

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

/* Hero Section */
.hero-section {
    padding: 120px 0 80px;
    position: relative;
    z-index: 10;
}

.hero-content {
    text-align: center;
    opacity: 0;
    animation: fadeInUp 1s ease-out forwards;
}

.project-badge {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(60, 247, 247, 0.1);
    border: 1px solid rgba(60, 247, 247, 0.3);
    border-radius: 25px;
    color: #3cf7f7;
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.project-main-title {
    font-size: 3.5rem;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #3cf7f7, #f472b6, #8b5cf6);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientShift 4s ease-in-out infinite;
}

.project-subtitle {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 800px;
    margin: 0 auto 40px;
}

/* Project Stats */
.project-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-top: 40px;
}

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

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: #3cf7f7;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
}

/* Gallery Section */
.gallery-section {
    padding: 80px 0;
    position: relative;
    z-index: 10;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 60px;
    color: #3cf7f7;
}

/* Image Slider */
.image-slider {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.slider-container {
    position: relative;
    height: 500px;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: all 0.5s ease-in-out;
}

.slide.active {
    opacity: 1;
}

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

.slide-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    padding: 40px 30px 20px;
    color: white;
    font-size: 1.2rem;
    font-weight: 600;
}

/* Slider Controls */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(60, 247, 247, 0.2);
    border: 1px solid #3cf7f7;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.prev-btn {
    left: 20px;
}

.next-btn {
    right: 20px;
}

.slider-btn:hover {
    background: rgba(60, 247, 247, 0.4);
    transform: translateY(-50%) scale(1.1);
}

/* Slider Indicators */
.slider-indicators {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active,
.indicator:hover {
    background: #3cf7f7;
    transform: scale(1.2);
}

/* Technology Stack */
.tech-stack {
    margin-top: 80px;
    text-align: center;
}

.tech-stack h3 {
    font-size: 2rem;
    margin-bottom: 40px;
    color: #3cf7f7;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 30px;
    max-width: 600px;
    margin: 0 auto;
}

.tech-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(60, 247, 247, 0.1);
    border-radius: 15px;
    padding: 30px 20px;
    text-align: center;
    transition: all 0.3s ease;
}

.tech-item:hover {
    transform: translateY(-5px);
    border-color: rgba(60, 247, 247, 0.3);
    background: rgba(255, 255, 255, 0.08);
}

.tech-item img {
    width: 50px;
    height: 50px;
    margin-bottom: 15px;
    object-fit: contain;
}

.tech-item span {
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
}

/* Content Section */
.content-section {
    padding: 80px 0;
    position: relative;
    z-index: 10;
}

.content-grid {
    display: grid;
    gap: 40px;
}

/* Content Cards */
.content-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(60, 247, 247, 0.1);
    border-radius: 20px;
    padding: 40px;
    transition: all 0.5s ease;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 1s ease-out forwards;
}

.content-card:nth-child(1) { animation-delay: 0.1s; }
.content-card:nth-child(2) { animation-delay: 0.2s; }
.content-card:nth-child(3) { animation-delay: 0.3s; }
.content-card:nth-child(4) { animation-delay: 0.4s; }
.content-card:nth-child(5) { animation-delay: 0.5s; }

.content-card:hover {
    transform: translateY(-5px);
    border-color: rgba(60, 247, 247, 0.3);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
}

.card-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #3cf7f7, #8b5cf6);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #06060f;
}

.card-header h2 {
    font-size: 1.8rem;
    color: #3cf7f7;
    margin: 0;
}

.card-content p {
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
}

.highlight {
    color: #3cf7f7;
    font-weight: 600;
}

/* Architecture Image */
.architecture-image {
    position: relative;
    margin: 30px 0;
    border-radius: 15px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.05);
}

.architecture-image img {
    width: 100%;
    height: auto;
    display: block;
}

.image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    padding: 30px 20px 15px;
    color: white;
    font-weight: 600;
    text-align: center;
}

/* Process Steps */
.process-steps {
    display: grid;
    gap: 25px;
}

.step {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 25px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 15px;
    border-left: 4px solid #3cf7f7;
}

.step-number {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #3cf7f7, #8b5cf6);
    color: #06060f;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.step-content h4 {
    color: #3cf7f7;
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.step-content p {
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

/* Feature List */
.feature-list {
    list-style: none;
    padding: 0;
}

.feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.feature-list li:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateX(10px);
}

.feature-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.feature-list strong {
    color: #3cf7f7;
}

/* Results Card */
.results-card {
    background: linear-gradient(135deg, rgba(60, 247, 247, 0.1), rgba(244, 114, 182, 0.1));
    border: 1px solid rgba(60, 247, 247, 0.3);
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.result-item {
    text-align: center;
    padding: 30px 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    border: 1px solid rgba(60, 247, 247, 0.2);
}

.result-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: #3cf7f7;
    margin-bottom: 10px;
}

.result-label {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

.achievements h4 {
    color: #3cf7f7;
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.achievement-list {
    list-style: none;
    padding: 0;
}

.achievement-list li {
    position: relative;
    padding: 10px 0 10px 30px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 10px;
}

.achievement-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 10px;
    color: #3cf7f7;
    font-weight: bold;
    width: 20px;
}

/* CTA Section */
.cta-section {
    padding: 80px 0;
    text-align: center;
    position: relative;
    z-index: 10;
}

.cta-content {
    max-width: 600px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #3cf7f7;
}

.cta-content p {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 40px;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    padding: 15px 35px;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, #3cf7f7, #8b5cf6);
    color: #06060f;
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid #3cf7f7;
}

.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.5s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.btn-secondary:hover {
    background: #3cf7f7;
    color: #06060f;
}

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

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 20px;
    }

    .nav-links {
        gap: 20px;
    }

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

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

    .project-stats {
        flex-direction: column;
        gap: 30px;
    }

    .stat-number {
        font-size: 2rem;
    }

    .slider-container {
        height: 300px;
    }

    .slide-caption {
        font-size: 1rem;
        padding: 20px 15px 10px;
    }

    .slider-btn {
        width: 40px;
        height: 40px;
    }

    .prev-btn {
        left: 10px;
    }

    .next-btn {
        right: 10px;
    }

    .tech-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .content-card {
        padding: 30px 25px;
    }

    .card-header {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .card-header h2 {
        font-size: 1.5rem;
    }

    .step {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .results-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .result-value {
        font-size: 2rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 200px;
    }
}

@media (max-width: 480px) {
    .hero-section {
        padding: 100px 0 60px;
    }

    .project-main-title {
        font-size: 2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .slider-container {
        height: 250px;
    }

    .tech-grid {
        grid-template-columns: 1fr;
    }

    .content-card {
        padding: 25px 20px;
    }

    .step {
        padding: 20px;
    }

    .cta-content h2 {
        font-size: 2rem;
    }
}

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

::-webkit-scrollbar-track {
    background: #0d0d24;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #3cf7f7, #8b5cf6);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #8b5cf6, #3cf7f7);
}

/* Loading states */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

/* Focus states for accessibility */
.btn:focus,
.slider-btn:focus,
.indicator:focus,
.nav-links a:focus {
    outline: 2px solid #3cf7f7;
    outline-offset: 2px;
    border-radius: 4px;
}

/* Footer */
.site-footer {
    position: relative;
    z-index: 10;
    border-top: 1px solid rgba(60, 247, 247, 0.14);
    background: rgba(7, 7, 24, 0.8);
    backdrop-filter: blur(10px);
    padding: 1.4rem 1.5rem;
}

.footer-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    color: #9a9ab0;
    font-size: 0.88rem;
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icons a {
    color: #9a9ab0;
    transition: color 0.25s, transform 0.25s;
    display: inline-flex;
}

.social-icons a:hover {
    color: #3cf7f7;
    transform: translateY(-3px);
}

/* Print styles */
@media print {
    .particles,
    .slider-btn,
    .slider-indicators,
    .cta-section {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
    
    .content-card {
        break-inside: avoid;
        border: 1px solid #ccc;
    }
}