/* ============================================================
   ALL PROJECTS PAGE STYLES
   ============================================================ */

/* Base Styles */
body {
    background: #0f1729;
    color: #e2e8f0;
    transition: background-color 0.3s ease, color 0.3s ease;
}

[data-theme="dark"] body {
    background: #0f1729;
    color: #e2e8f0;
}

/* Light Mode Override */
[data-theme="light"] body {
    background: #fafbfc;
    color: #0f172a;
}

/* Navigation Override */
#mainNav {
    background: transparent;
}

/* Hamburger Menu Styles */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
    transition: all 0.3s ease;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: white;
    border-radius: 2px;
    transition: all 0.3s ease;
}

[data-theme="light"] .hamburger span {
    background: #0f172a;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* ============================================================
   ALL PROJECTS SECTION
   ============================================================ */

.all-projects-section {
    min-height: 100vh;
    background: #0f1729;
    padding: 8rem 5% 5rem;
}

[data-theme="light"] .all-projects-section {
    background: #fafbfc;
}

.all-projects-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Section Header */
.all-projects-header {
    margin-bottom: 3rem;
}

.all-projects-title {
    font-family: 'DM Sans', sans-serif;
    font-size: clamp(2.5rem, 6vw, 3.5rem);
    font-weight: 400;
    color: white;
    margin-bottom: 2rem;
    letter-spacing: -0.02em;
}

[data-theme="light"] .all-projects-title {
    color: #0f172a;
}

/* Filter Tabs */
.filter-tabs {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.filter-tab {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-size: 0.9375rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
}

[data-theme="light"] .filter-tab {
    border: 1px solid rgba(15, 23, 42, 0.15);
    color: #64748b;
}

.filter-tab:hover {
    border-color: #7c3aed;
    color: white;
    background: rgba(124, 58, 237, 0.1);
}

[data-theme="light"] .filter-tab:hover {
    color: #0f172a;
}

.filter-tab.active {
    background: #7c3aed;
    border-color: #7c3aed;
    color: white;
}

.filter-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0 0.4rem;
}

.filter-tab.active .filter-count {
    background: rgba(255, 255, 255, 0.25);
}

/* ============================================================
   PROJECTS GRID
   ============================================================ */

.all-projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.all-project-card {
    background: #1a1f35;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    text-decoration: none;
    display: block;
}

[data-theme="light"] .all-project-card {
    background: white;
    border: 1px solid #e5e7eb;
}

.all-project-card:hover {
    transform: translateY(-8px);
    border-color: #7c3aed;
    box-shadow: 0 20px 60px rgba(124, 58, 237, 0.25);
}

[data-theme="light"] .all-project-card:hover {
    box-shadow: 0 20px 60px rgba(124, 58, 237, 0.15);
}

/* Project Image */
.all-project-image {
    width: 100%;
    height: 280px;
    background: #151b2e;
    overflow: hidden;
    position: relative;
}

[data-theme="light"] .all-project-image {
    background: #f5f7fa;
}

.all-project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.5s ease;
}

.all-project-card:hover .all-project-image img {
    transform: scale(1.05);
}

/* Project Content */
.all-project-content {
    padding: 1.75rem 2rem 2rem;
}

.all-project-content h3 {
    font-family: 'DM Sans', sans-serif;
    font-size: 1.375rem;
    font-weight: 500;
    color: white;
    margin-bottom: 0.75rem;
    letter-spacing: -0.01em;
}

[data-theme="light"] .all-project-content h3 {
    color: #0f172a;
}

.all-project-content p {
    font-size: 0.9375rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
}

[data-theme="light"] .all-project-content p {
    color: #64748b;
}

/* ============================================================
   FOOTER (from index.html)
   ============================================================ */

footer {
    background: #0f1729;
    padding: 4rem 5% 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

[data-theme="light"] footer {
    background: #fafbfc;
    border-top: 1px solid rgba(15, 23, 42, 0.1);
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
}

.footer-main {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-info h3 {
    font-family: 'DM Sans', sans-serif;
    font-size: 2rem;
    font-weight: 500;
    color: white;
    margin-bottom: 1rem;
}

[data-theme="light"] .footer-info h3 {
    color: #0f172a;
}

.footer-info p {
    font-size: 1rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 2rem;
}

[data-theme="light"] .footer-info p {
    color: #64748b;
}

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

.footer-link {
    width: 44px;
    height: 44px;
    background: #1a1f35;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
}

[data-theme="light"] .footer-link {
    background: white;
    border: 1px solid #e5e7eb;
    color: #64748b;
}

.footer-link:hover {
    background: #7c3aed;
    border-color: #7c3aed;
    color: white;
    transform: translateY(-3px);
}

.footer-link i {
    font-size: 1.125rem;
}

/* Contact Form in Footer */
.contact-form-wrapper {
    background: transparent;
}

.contact-form-wrapper .form-group {
    margin-bottom: 1.5rem;
}

.contact-form-wrapper label {
    display: block;
    font-size: 0.9375rem;
    color: white;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

[data-theme="light"] .contact-form-wrapper label {
    color: #0f172a;
}

.contact-form-wrapper input,
.contact-form-wrapper textarea {
    width: 100%;
    padding: 1rem 1.25rem;
    background: #1a1f35;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: white;
    font-family: 'Inter', sans-serif;
    font-size: 0.9375rem;
    transition: all 0.3s ease;
}

[data-theme="light"] .contact-form-wrapper input,
[data-theme="light"] .contact-form-wrapper textarea {
    background: white;
    border: 1px solid #e5e7eb;
    color: #0f172a;
}

.contact-form-wrapper input::placeholder,
.contact-form-wrapper textarea::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

[data-theme="light"] .contact-form-wrapper input::placeholder,
[data-theme="light"] .contact-form-wrapper textarea::placeholder {
    color: #94a3b8;
}

.contact-form-wrapper input:focus,
.contact-form-wrapper textarea:focus {
    outline: none;
    border-color: #7c3aed;
    background: #1f2642;
}

[data-theme="light"] .contact-form-wrapper input:focus,
[data-theme="light"] .contact-form-wrapper textarea:focus {
    background: #fafbfc;
}

.contact-form-wrapper textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-form-wrapper .submit-btn {
    width: 100%;
    padding: 1rem 2rem;
    background: #7c3aed;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9375rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.contact-form-wrapper .submit-btn:hover {
    background: #6d28d9;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(124, 58, 237, 0.4);
}

.contact-form-wrapper .submit-btn i {
    font-size: 1rem;
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

[data-theme="light"] .footer-bottom {
    border-top: 1px solid rgba(15, 23, 42, 0.1);
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9375rem;
    margin: 0;
}

[data-theme="light"] .footer-bottom p {
    color: #94a3b8;
}

/* ============================================================
   RESPONSIVE DESIGN
   ============================================================ */

@media (max-width: 968px) {
    .hamburger {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 280px;
        background: rgba(26, 31, 53, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 6rem 2rem 2rem;
        gap: 0.5rem;
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.3);
        transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1000;
    }

    [data-theme="light"] .nav-links {
        background: rgba(255, 255, 255, 0.98);
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li {
        width: 100%;
    }

    .nav-link {
        width: 100%;
        justify-content: flex-start;
        padding: 1rem 1.5rem;
        border-radius: 12px;
    }

    .nav-pill {
        padding: 0.7rem 1rem;
    }
}

@media (max-width: 1024px) {
    .all-projects-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-main {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    .all-projects-section {
        padding: 6rem 5% 4rem;
    }
    
    .all-projects-title {
        font-size: 2rem;
        margin-bottom: 1.5rem;
    }
    
    .filter-tabs {
        gap: 0.75rem;
    }
    
    .filter-tab {
        padding: 0.625rem 1.25rem;
        font-size: 0.875rem;
    }
    
    .all-project-image {
        height: 220px;
    }
    
    .all-project-content {
        padding: 1.5rem;
    }
    
    .all-project-content h3 {
        font-size: 1.25rem;
    }
    
    .footer-info h3 {
        font-size: 1.75rem;
    }
    
    footer {
        padding: 3rem 5% 2rem;
    }
}

@media (max-width: 480px) {
    .all-projects-grid {
        gap: 1.5rem;
    }
    
    .filter-tab {
        padding: 0.5rem 1rem;
        font-size: 0.8125rem;
    }
    
    .all-project-image {
        height: 180px;
    }
    
    .all-project-content {
        padding: 1.25rem;
    }
    
    .footer-links {
        justify-content: flex-start;
    }
    
    .footer-main {
        gap: 2rem;
    }
}
