/* ========================================
   PROJECTS PAGE STYLES
   Consistent with Craftweb Solutions Theme
   ======================================== */

/* Projects Hero Section */
.projects-hero {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    position: relative;
    overflow: hidden;
    padding: 120px 20px 60px;
}

.projects-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(59, 130, 246, 0.1) 0%, transparent 50%);
    animation: pulseGlow 4s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.05); }
}

.projects-hero-content {
    text-align: center;
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.projects-hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.projects-hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Projects Section */
.projects-section {
    padding: 80px 20px;
    background: var(--dark-bg);
}

.projects-category-wrapper {
    margin-bottom: 80px;
}

.category-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    gap: 15px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(59, 130, 246, 0.3);
}

.category-title i {
    color: var(--primary-color);
    font-size: 1.8rem;
}

/* Project Filter */
.project-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    margin-bottom: 60px;
    padding: 20px;
    background: rgba(30, 41, 59, 0.3);
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

.filter-btn {
    padding: 12px 28px;
    background: rgba(30, 41, 59, 0.6);
    border: 2px solid transparent;
    border-radius: 50px;
    color: var(--text-muted);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
}

.filter-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: var(--gradient-1);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
    z-index: 0;
}

.filter-btn i {
    position: relative;
    z-index: 1;
    font-size: 1.1rem;
}

.filter-btn span {
    position: relative;
    z-index: 1;
}

.filter-btn:hover {
    transform: translateY(-3px);
    border-color: var(--primary-color);
    color: var(--text-color);
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.3);
}

.filter-btn:hover::before {
    width: 200%;
    height: 200%;
    opacity: 0.1;
}

.filter-btn.active {
    background: var(--gradient-1);
    color: white;
    border-color: var(--primary-color);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
}

/* Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

/* Project Card */
.project-card {
    background: var(--card-bg);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(59, 130, 246, 0.1);
    position: relative;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-1);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    z-index: 1;
}

.project-card:hover::before {
    opacity: 0.05;
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(59, 130, 246, 0.3);
    border-color: var(--primary-color);
}

/* Project Image */
.project-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-card:hover .project-image img {
    transform: scale(1.1) rotate(2deg);
}

/* Project Overlay - Removed */
.project-overlay {
    display: none;
}

/* Project Number */
.project-number {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 800;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    z-index: 2;
}

/* Project Content */
.project-content {
    padding: 30px;
    position: relative;
    z-index: 2;
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 15px;
}

.project-content h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-color);
    line-height: 1.3;
    flex: 1;
}

/* Project Status */
.project-status {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.status-active {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.status-completed {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

/* Project Description */
.project-description {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 20px;
}

/* Project Tech Tags */
.project-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.tech-tag {
    padding: 6px 14px;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 20px;
    color: var(--primary-color);
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.tech-tag:hover {
    background: var(--gradient-1);
    color: white;
    border-color: transparent;
    transform: translateY(-2px);
}

/* Project Footer */
.project-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid rgba(59, 130, 246, 0.2);
    flex-wrap: wrap;
    gap: 15px;
}

.project-date {
    color: var(--text-muted);
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.project-date i {
    color: var(--primary-color);
}

.project-note {
    color: var(--text-muted);
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 8px;
    font-style: italic;
}

.project-note i {
    color: var(--warning-color);
}

/* Project Detail Button */
.project-detail-btn {
    padding: 10px 24px;
    background: var(--gradient-1);
    border: none;
    border-radius: 25px;
    color: white;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.project-detail-btn:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 20px rgba(59, 130, 246, 0.4);
}

/* View More Section */
.view-more-section {
    text-align: center;
    padding: 60px 20px;
    margin-top: 40px;
}

.view-more-text {
    font-size: 1.3rem;
    color: var(--text-muted);
    margin-bottom: 30px;
}

.btn-github {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 40px;
    background: var(--gradient-1);
    color: white;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-github::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn-github:hover::before {
    width: 300px;
    height: 300px;
}

.btn-github:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(59, 130, 246, 0.5);
}

.btn-github i {
    font-size: 1.5rem;
    position: relative;
    z-index: 1;
}

.btn-github span {
    position: relative;
    z-index: 1;
}

/* Filter Animation */
.project-card.filter-hidden {
    opacity: 0;
    transform: scale(0.8);
    pointer-events: none;
    position: absolute;
}

.project-card.filter-visible {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
    position: relative;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .projects-grid {
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .projects-hero {
        min-height: 50vh;
        padding: 100px 20px 40px;
    }

    .projects-hero-title {
        font-size: 2.5rem;
    }

    .projects-hero-subtitle {
        font-size: 1.1rem;
    }

    .category-title {
        font-size: 1.5rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .project-filter {
        flex-direction: column;
        gap: 10px;
    }

    .filter-btn {
        width: 100%;
        justify-content: center;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .project-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .project-footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .project-detail-btn {
        width: 100%;
        text-align: center;
    }
}

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

    .projects-section {
        padding: 40px 15px;
    }

    .project-content {
        padding: 20px;
    }

    .project-content h3 {
        font-size: 1.2rem;
    }

    .btn-github {
        padding: 15px 30px;
        font-size: 1rem;
    }
}

/* Animation for AOS */
[data-aos="zoom-in"] {
    transition-property: transform, opacity;
}

/* Loading Animation */
.projects-grid.loading .project-card {
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--gradient-1);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.4);
    opacity: 0;
    transform: translateY(100px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
}

.scroll-to-top.visible {
    opacity: 1;
    transform: translateY(0);
}

.scroll-to-top:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 12px 35px rgba(59, 130, 246, 0.6);
}

.scroll-to-top:active {
    transform: translateY(-2px) scale(1.05);
}

/* Mobile adjustments for scroll button */
@media (max-width: 768px) {
    .scroll-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
}

/* Security & Privacy Notice */
.security-notice {
    max-width: 900px;
    margin: 80px auto;
    padding: 50px;
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.6) 0%, rgba(15, 23, 42, 0.8) 100%);
    border-radius: 20px;
    border: 2px solid rgba(59, 130, 246, 0.3);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.security-notice::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 0%, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.notice-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    background: var(--gradient-1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: white;
    box-shadow: 0 10px 40px rgba(59, 130, 246, 0.4);
    position: relative;
    z-index: 1;
}

.security-notice h3 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.notice-message {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-muted);
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

.notice-message strong {
    color: var(--primary-color);
    font-weight: 600;
}

.notice-submessage {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-muted);
    opacity: 0.9;
    position: relative;
    z-index: 1;
}

/* Project Contact Section */
.project-contact-section {
    max-width: 800px;
    margin: 60px auto 80px;
    padding: 0 20px;
}

.contact-box {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
    border: 2px solid rgba(59, 130, 246, 0.3);
    border-radius: 25px;
    padding: 60px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.contact-box::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
    animation: rotateGradient 15s linear infinite;
}

@keyframes rotateGradient {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.contact-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 25px;
    background: var(--gradient-1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    box-shadow: 0 8px 30px rgba(59, 130, 246, 0.4);
    position: relative;
    z-index: 1;
}

.contact-box h3 {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

.contact-box > p {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 30px;
    position: relative;
    z-index: 1;
}

.contact-details {
    margin: 30px 0;
    position: relative;
    z-index: 1;
}

.email-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 35px;
    background: rgba(30, 41, 59, 0.8);
    border: 2px solid var(--primary-color);
    border-radius: 50px;
    color: var(--primary-color);
    font-size: 1.15rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(59, 130, 246, 0.2);
}

.email-link:hover {
    background: var(--gradient-1);
    color: white;
    border-color: transparent;
    transform: translateY(-3px);
    box-shadow: 0 10px 35px rgba(59, 130, 246, 0.4);
}

.email-link i {
    font-size: 1.3rem;
}

.contact-cta {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin: 25px 0 35px;
    position: relative;
    z-index: 1;
}

.btn-contact {
    display: inline-block;
    padding: 18px 45px;
    background: var(--gradient-1);
    color: white;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 30px rgba(59, 130, 246, 0.3);
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.btn-contact::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn-contact:hover::before {
    width: 300px;
    height: 300px;
}

.btn-contact:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(59, 130, 246, 0.5);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .security-notice {
        padding: 35px 25px;
        margin: 50px 20px;
    }

    .security-notice h3 {
        font-size: 1.6rem;
    }

    .notice-message {
        font-size: 1rem;
    }

    .notice-icon {
        width: 65px;
        height: 65px;
        font-size: 2rem;
    }

    .contact-box {
        padding: 40px 25px;
    }

    .contact-box h3 {
        font-size: 1.8rem;
    }

    .email-link {
        font-size: 1rem;
        padding: 15px 25px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .btn-contact {
        padding: 15px 35px;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .security-notice h3 {
        font-size: 1.4rem;
    }

    .notice-message,
    .notice-submessage {
        font-size: 0.95rem;
    }

    .contact-box h3 {
        font-size: 1.5rem;
    }

    .email-link {
        font-size: 0.9rem;
        padding: 12px 20px;
    }
}
