/* ============================================
   ENHANCED PROJECTS PAGE DESIGN
   Modern, Elegant, User-Friendly
   ============================================ */

/* Projects Content Visibility Fix */
.projects-content {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    min-height: 100vh;
    background: transparent;
}

.section {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Hero Section Enhancement */
.projects-hero {
    position: relative;
    padding: 120px 0 80px;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.15;
}

.hero-shape {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    filter: blur(60px);
    animation: float 8s ease-in-out infinite;
}

.hero-shape.shape-1 {
    width: 300px;
    height: 300px;
    top: -100px;
    left: 10%;
    animation-delay: 0s;
}

.hero-shape.shape-2 {
    width: 400px;
    height: 400px;
    top: 50%;
    right: 10%;
    animation-delay: 2s;
}

.hero-shape.shape-3 {
    width: 250px;
    height: 250px;
    bottom: -50px;
    left: 50%;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) scale(1); }
    50% { transform: translateY(-30px) scale(1.1); }
}

.hero-content-wrapper {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--primary-color);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.hero-stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    min-width: 120px;
    transition: all 0.3s ease;
}

.hero-stat-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary-color);
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

/* Section Header Enhancement */
.section-header-wrapper {
    display: flex !important;
    align-items: center;
    gap: 20px;
    margin-bottom: 50px;
    padding-bottom: 20px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
    visibility: visible !important;
    opacity: 1 !important;
}

.section-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 15px;
    font-size: 1.5rem;
    color: white;
    flex-shrink: 0;
}

.section-description {
    color: rgba(255, 255, 255, 0.6);
    font-size: 1rem;
    margin-top: 5px;
}

/* Featured Projects Grid */
.featured-projects-grid {
    display: grid !important;
    gap: 40px;
    margin-bottom: 60px;
    visibility: visible !important;
    opacity: 1 !important;
    min-height: 300px;
}

/* Featured Project Card Enhancement */
.featured-project {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.featured-project .project-showcase {
    position: relative;
    padding: 0;
    overflow: hidden;
    border: 2px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s ease;
}

.featured-project .project-showcase:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.project-badge-corner {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 10;
}

.project-badge-corner .badge {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #000;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.project-content-wrapper {
    padding: 40px;
}

/* Project Header Enhancement */
.project-header {
    display: flex;
    align-items: flex-start;
    gap: 25px;
    margin-bottom: 30px;
}

.project-icon-large {
    flex-shrink: 0;
}

.bot-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    font-size: 2.5rem;
    position: relative;
    overflow: visible;
}

.bot-icon.telegram-bot {
    background: linear-gradient(135deg, #0088cc, #00a0e9);
    color: white;
    box-shadow: 0 10px 30px rgba(0, 136, 204, 0.3);
}

.bot-icon.security-bot {
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.3);
}

.bot-icon.love-bot {
    background: linear-gradient(135deg, #ec4899, #f43f5e);
    color: white;
    box-shadow: 0 10px 30px rgba(236, 72, 153, 0.3);
}

.music-note {
    position: absolute;
    font-size: 1rem;
    opacity: 0;
    animation: noteFloat 3s ease-in-out infinite;
}

.music-note.note-1 {
    top: -10px;
    right: -10px;
    animation-delay: 0s;
}

.music-note.note-2 {
    bottom: -10px;
    left: -10px;
    animation-delay: 1.5s;
}

@keyframes noteFloat {
    0%, 100% { 
        transform: translateY(0) scale(0);
        opacity: 0;
    }
    50% { 
        transform: translateY(-20px) scale(1);
        opacity: 1;
    }
}

.project-title-group {
    flex: 1;
}

.project-name {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 5px;
    line-height: 1.3;
}

.project-category {
    font-size: 1rem;
    color: var(--primary-color);
    font-weight: 500;
    margin: 0;
}

/* Project Description */
.project-description {
    margin-bottom: 30px;
}

.project-description p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.8);
}

/* Bot Demo Enhancement */
.bot-demo {
    margin-bottom: 30px;
}

.demo-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px 10px 0 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: none;
    font-weight: 600;
    color: var(--primary-color);
}

.demo-terminal {
    background: #1a1a2e;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0 0 10px 10px;
    padding: 20px;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
}

.demo-line {
    margin: 8px 0;
    color: #00ff00;
    animation: typingEffect 0.5s ease-in;
}

@keyframes typingEffect {
    from { opacity: 0; transform: translateX(-10px); }
    to { opacity: 1; transform: translateX(0); }
}

/* Preview Enhancement */
.project-preview {
    margin-bottom: 30px;
}

.preview-header-label {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px 10px 0 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: none;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0;
}

/* Features Enhancement */
.project-features {
    margin-bottom: 30px;
}

.features-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.features-title::before {
    content: '';
    width: 4px;
    height: 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.feature-item:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--primary-color);
    transform: translateX(5px);
}

.feature-item i {
    font-size: 1.3rem;
    color: var(--primary-color);
    flex-shrink: 0;
}

.feature-item span {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
}

/* Project Footer Enhancement */
.project-footer {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.tech-tag {
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    font-size: 0.85rem;
    color: var(--primary-color);
    font-weight: 500;
    transition: all 0.3s ease;
}

.tech-tag:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.project-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
}

.live-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    background: #22c55e;
    color: white;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    margin-left: 5px;
}

.live-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    background: white;
    border-radius: 50%;
    margin-right: 4px;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Other Projects Card Enhancement */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.project-card {
    padding: 30px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary-color);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.project-card-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 15px;
    font-size: 1.8rem;
    color: white;
    margin-bottom: 20px;
}

.project-card .project-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.project-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--text-color);
}

.project-card p {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    margin-bottom: 20px;
    flex: 1;
}

.project-card .project-tech {
    margin-bottom: 20px;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.9rem;
}

/* Stats Enhancement */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

.stat-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 15px;
    font-size: 1.5rem;
    color: white;
    flex-shrink: 0;
}

.stat-content h3 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.stat-content p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .projects-hero {
        padding: 80px 0 60px;
    }
    
    .hero-stats {
        gap: 20px;
    }
    
    .hero-stat-item {
        min-width: 100px;
        padding: 15px;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
    
    .section-header-wrapper {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .project-content-wrapper {
        padding: 25px;
    }
    
    .project-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .bot-icon {
        width: 70px;
        height: 70px;
        font-size: 2rem;
    }
    
    .project-name {
        font-size: 1.5rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .project-actions {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-badge {
        font-size: 0.8rem;
        padding: 6px 16px;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    .page-subtitle {
        font-size: 1rem;
    }
    
    .project-badge-corner {
        top: 10px;
        right: 10px;
    }
    
    .project-badge-corner .badge {
        padding: 6px 12px;
        font-size: 0.7rem;
    }
}
