/* ============================================
   PORTFOLIO-PAGE.CSS
   Dedicated Portfolio Page Styling
   ============================================ */

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', sans-serif;
    color: #172B4D;
    line-height: 1.6;
    background: #FFFFFF;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Navbar */
        .navbar {
            background: white;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
            position: sticky;
            top: 0;
            z-index: 1000;
        }

        .nav-container {
            max-width: 1400px;
            margin: 0 auto;
            padding: 0 40px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            height: 70px;
        }

        /* Logo */
        .logo {
            width: auto;
            height: 38px;
        }

        .logo-icon {
            width: auto;
            height: 32px;
        }

        /* Nav Menu */
        .nav-menu {
            display: flex;
            align-items: center;
            gap: 8px;
            list-style: none;
        }

        .nav-item {
            position: relative;
        }

        .nav-link {
            display: flex;
            align-items: center;
            gap: 6px;
            padding: 10px 16px;
            color: #172B4D;
            text-decoration: none;
            font-size: 16px;
            font-weight: 500;
            border-radius: 6px;
            transition: all 0.2s ease;
            cursor: pointer;
        }

        .nav-link:hover {
            background: #F4F5F7;
            color: #0052CC;
        }

        .nav-link.active {
            background: #E9F2FF;
            color: #0052CC;
        }

        .chevron {
            width: 16px;
            height: 16px;
            transition: transform 0.3s ease;
        }

        /* Dropdown Menu */
        .dropdown-menu {
            position: absolute;
            top: 100%;
            left: 0;
            background: white;
            border-radius: 12px;
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
            min-width: 280px;
            margin-top: 8px;
            opacity: 0;
            visibility: hidden;
            transform: translateY(-10px);
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            padding: 12px;
        }

        .dropdown-menu.active {
            opacity: 1;
            visibility: visible;
            transform: translateY(0);
        }

        .dropdown-section {
            padding: 8px 0;
        }

        .dropdown-title {
            font-size: 12px;
            font-weight: 600;
            color: #5E6C84;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            padding: 8px 12px;
            margin-bottom: 4px;
        }

        .dropdown-item {
            display: flex;
            align-items: flex-start;
            gap: 12px;
            padding: 12px;
            border-radius: 8px;
            text-decoration: none;
            color: #172B4D;
            transition: all 0.2s ease;
        }

        .dropdown-item:hover {
            background: #F4F5F7;
        }

        .dropdown-icon {
            width: 40px;
            height: 40px;
            min-width: 40px;
            background: #E9F2FF;
            border-radius: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: #0052CC;
        }

        .dropdown-content {
            flex: 1;
        }

        .dropdown-item-title {
            font-size: 15px;
            font-weight: 600;
            color: #172B4D;
            margin-bottom: 4px;
        }

        .dropdown-item-desc {
            font-size: 13px;
            color: #5E6C84;
            line-height: 1.4;
        }

        .dropdown-divider {
            height: 1px;
            background: #E0E0E0;
            margin: 8px 0;
        }

        /* Search & Actions */
        .nav-actions {
            display: flex;
            align-items: center;
            gap: 12px;
        }

        .search-btn {
            width: 40px;
            height: 40px;
            background: #F4F5F7;
            border: none;
            border-radius: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            color: #172B4D;
            transition: all 0.2s ease;
        }

        .search-btn:hover {
            background: #E9F2FF;
            color: #0052CC;
        }

        /* Mobile Menu Toggle */
        .mobile-toggle {
            display: none;
            width: 40px;
            height: 40px;
            background: #F4F5F7;
            border: none;
            border-radius: 8px;
            cursor: pointer;
            color: #172B4D;
        }

        /* Mega Menu (for More +) */
        .mega-menu {
            position: absolute;
            top: 100%;
            right: 0;
            background: white;
            border-radius: 12px;
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
            width: 600px;
            margin-top: 8px;
            opacity: 0;
            visibility: hidden;
            transform: translateY(-10px);
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            padding: 24px;
        }

        .nav-item:hover .mega-menu {
            opacity: 1;
            visibility: visible;
            transform: translateY(0);
        }

        .mega-menu-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 20px;
        }

        .mega-menu-column {
            display: flex;
            flex-direction: column;
            gap: 8px;
        }

        /* Responsive */
        @media (max-width: 968px) {
            .nav-menu {
                display: none;
            }

            .mobile-toggle {
                display: flex;
                align-items: center;
                justify-content: center;
            }

            .nav-container {
                padding: 0 20px;
            }
        }

        /* Mobile Menu */
        .mobile-menu {
            display: none;
            background: white;
            border-top: 1px solid #E0E0E0;
            padding: 16px;
        }

        .mobile-menu.active {
            display: block;
        }

        .mobile-nav-item {
            margin-bottom: 8px;
        }

        .mobile-nav-link {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 12px 16px;
            background: #F4F5F7;
            border-radius: 8px;
            text-decoration: none;
            color: #172B4D;
            font-weight: 500;
        }

        .mobile-dropdown {
            display: none;
            padding: 12px 0 12px 16px;
        }

        .mobile-dropdown.active {
            display: block;
        }

        .mobile-dropdown-item {
            display: block;
            padding: 10px 16px;
            color: #5E6C84;
            text-decoration: none;
            border-radius: 6px;
            margin-bottom: 4px;
        }

        .mobile-dropdown-item:hover {
            background: #F4F5F7;
            color: #172B4D;
        }

/* ============================================
   PAGE HEADER
   ============================================ */
.page-header {
    padding: 80px 0 60px;
    background: linear-gradient(180deg, #F7F8F9 0%, #FFFFFF 100%);
    text-align: center;
}

.breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 24px;
    font-size: 14px;
}

.breadcrumb a {
    color: #0052CC;
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumb a:hover {
    color: #0065FF;
}

.separator {
    color: #6B778C;
}

.current {
    color: #42526E;
    font-weight: 500;
}

.page-title {
    font-size: 48px;
    font-weight: 600;
    color: #172B4D;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.page-subtitle {
    font-size: 18px;
    color: #42526E;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ============================================
   PORTFOLIO STATS
   ============================================ */
.portfolio-stats {
    padding: 60px 0;
    background: #FFFFFF;
    border-bottom: 1px solid #EBECF0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

.stat-card {
    text-align: center;
    padding: 24px;
    background: #F7F8F9;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.stat-card:hover {
    background: #E9F2FF;
    transform: translateY(-4px);
}

.stat-number {
    font-size: 48px;
    font-weight: 700;
    color: #0052CC;
    margin-bottom: 8px;
}

.stat-number span {
    font-size: 32px;
}

.stat-label {
    font-size: 14px;
    color: #6B778C;
    font-weight: 500;
}

/* ============================================
   PORTFOLIO MAIN
   ============================================ */
.portfolio-main {
    padding: 80px 0;
    background: #FFFFFF;
}

/* Filter Section */
.filter-section {
    margin-bottom: 48px;
}

.filter-tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    flex-wrap: wrap;
    justify-content: center;
}

.filter-tab {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: #FFFFFF;
    border: 1px solid #EBECF0;
    border-radius: 3px;
    color: #42526E;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-tab:hover {
    border-color: #C1C7D0;
    color: #172B4D;
}

.filter-tab.active {
    background: #0052CC;
    border-color: #0052CC;
    color: white;
}

.tab-icon {
    font-size: 18px;
}

/* Filter Controls */
.filter-controls {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.search-box {
    position: relative;
    flex: 1;
    max-width: 400px;
}

.search-box input {
    width: 100%;
    padding: 12px 16px 12px 44px;
    border: 1px solid #EBECF0;
    border-radius: 3px;
    font-size: 14px;
    font-family: inherit;
    color: #172B4D;
    transition: all 0.2s ease;
}

.search-box input:focus {
    outline: none;
    border-color: #0052CC;
    box-shadow: 0 0 0 3px rgba(0, 82, 204, 0.1);
}

.search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    color: #6B778C;
    pointer-events: none;
}

.sort-select {
    padding: 12px 16px;
    border: 1px solid #EBECF0;
    border-radius: 3px;
    font-size: 14px;
    font-family: inherit;
    color: #172B4D;
    cursor: pointer;
    background: #FFFFFF;
    transition: all 0.2s ease;
}

.sort-select:focus {
    outline: none;
    border-color: #0052CC;
}

/* ============================================
   PORTFOLIO GRID
   ============================================ */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

/* Project Card */
.project-card {
    background: #FFFFFF;
    border: 1px solid #EBECF0;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-card:hover {
    border-color: #C1C7D0;
    box-shadow: 0 12px 32px rgba(9, 30, 66, 0.15);
    transform: translateY(-8px);
}

.project-image {
    position: relative;
    width: 100%;
    height: 280px;
    overflow: hidden;
}

.project-image .image-placeholder {
    width: 100%;
    height: 100%;
    background: #F4F5F7;
    border: 2px dashed #C1C7D0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #6B778C;
    font-size: 14px;
    font-weight: 500;
}

.project-image .image-placeholder small {
    font-size: 12px;
    margin-top: 8px;
}

.project-badges {
    position: absolute;
    top: 16px;
    right: 16px;
    display: flex;
    gap: 8px;
    flex-direction: column;
    align-items: flex-end;
}

.badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    backdrop-filter: blur(8px);
}

.badge-mobile {
    background: rgba(0, 82, 204, 0.9);
    color: white;
}

.badge-web {
    background: rgba(54, 179, 126, 0.9);
    color: white;
}

.badge-ecommerce {
    background: rgba(255, 153, 31, 0.9);
    color: white;
}

.badge-saas {
    background: rgba(101, 84, 192, 0.9);
    color: white;
}

.badge-featured {
    background: rgba(255, 196, 0, 0.9);
    color: #172B4D;
}

/* Project Content */
.project-content {
    padding: 24px;
}

.project-header {
    margin-bottom: 16px;
}

.project-title {
    font-size: 22px;
    font-weight: 600;
    color: #172B4D;
    margin-bottom: 12px;
}

.project-meta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #6B778C;
}

.meta-item svg {
    width: 16px;
    height: 16px;
    stroke-width: 2;
}

.project-description {
    font-size: 15px;
    color: #42526E;
    line-height: 1.6;
    margin-bottom: 16px;
}

.project-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.tag {
    padding: 4px 12px;
    background: #F4F5F7;
    border-radius: 3px;
    font-size: 12px;
    color: #42526E;
    font-weight: 500;
}

.project-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.btn-view {
    padding: 10px 20px;
    background: linear-gradient(135deg, #0052CC 0%, #0065FF 100%);
    color: white;
    text-decoration: none;
    border-radius: 3px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 82, 204, 0.3);
}

.btn-view:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 82, 204, 0.4);
}

.btn-icon {
    width: 40px;
    height: 40px;
    background: #F4F5F7;
    border: none;
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-icon svg {
    width: 20px;
    height: 20px;
    stroke: #42526E;
    stroke-width: 2;
    fill: none;
}

.btn-icon:hover {
    background: #FFE5E5;
}

.btn-icon:hover svg {
    stroke: #FF0000;
    fill: #FF0000;
}

/* ============================================
   LOAD MORE SECTION
   ============================================ */
.load-more-section {
    text-align: center;
    margin-top: 60px;
}

.btn-load-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    background: #FFFFFF;
    color: #0052CC;
    border: 2px solid #0052CC;
    border-radius: 3px;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-load-more svg {
    width: 20px;
    height: 20px;
    stroke-width: 2;
}

.btn-load-more:hover {
    background: #F4F5F7;
    transform: translateY(-2px);
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #0052CC 0%, #0065FF 100%);
    color: white;
    text-align: center;
}

.cta-title {
    font-size: 40px;
    font-weight: 600;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
}

.cta-text {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 32px;
    opacity: 0.9;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.cta-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.btn-primary {
    display: inline-block;
    padding: 16px 40px;
    background: #FFFFFF;
    color: #0052CC;
    text-decoration: none;
    border-radius: 3px;
    font-weight: 600;
    font-size: 18px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: #F4F5F7;
    transform: translateY(-2px);
}

.btn-secondary {
    display: inline-block;
    padding: 16px 40px;
    background: transparent;
    color: white;
    text-decoration: none;
    border-radius: 3px;
    font-weight: 600;
    font-size: 18px;
    border: 2px solid white;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: #172B4D;
    color: #f6f6f6;
    padding: 80px 20px 40px;
}

.footer-main {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-column {
    display: flex;
    flex-direction: column;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.footer-logo .logo {
    width: 40px;
    height: 40px;
    color: #f6f6f6;
}

.footer-logo .brand {
    font-size: 24px;
    font-weight: bold;
    color: #f6f6f6;
}

.footer-tagline {
    color: #f6f6f6;
    font-size: 16px;
    margin-bottom: 32px;
    line-height: 1.5;
}

.social-links {
    display: flex;
    gap: 16px;
}

.social-link {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #f6f6f6;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-link:hover {
    background: #5865f2;
    transform: translateY(-3px);
}

.social-link svg {
    width: 20px;
    height: 20px;
}

.footer-heading {
    font-size: 16px;
    font-weight: 600;
    color: #f6f6f6;
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #f6f6f6;
    text-decoration: none;
    font-size: 15px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #f6f6f6;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    flex-wrap: wrap;
    gap: 20px;
}

.footer-legal {
    display: flex;
    align-items: center;
    gap: 32px;
    flex-wrap: wrap;
}

.footer-legal p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
}

.footer-legal-links {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.footer-legal-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-legal-links a:hover {
    color: #f6f6f6;
}

.footer-language {
    display: flex;
    align-items: center;
}

.language-selector {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #f6f6f6;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    font-family: inherit;
}

.language-selector:hover {
    background: rgba(255, 255, 255, 0.15);
}

.language-selector svg {
    width: 20px;
    height: 20px;
}

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 1024px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .page-title {
        font-size: 40px;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }

    .mobile-toggle {
        display: block;
    }

    .page-header {
        padding: 60px 0 40px;
    }

    .page-title {
        font-size: 32px;
    }

    .page-subtitle {
        font-size: 16px;
    }

    .portfolio-stats {
        padding: 40px 0;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .portfolio-main {
        padding: 60px 0;
    }

    .filter-tabs {
        flex-direction: column;
    }

    .filter-tab {
        width: 100%;
        justify-content: center;
    }

    .filter-controls {
        flex-direction: column;
    }

    .search-box {
        max-width: 100%;
    }

    .cta-section {
        padding: 60px 0;
    }

    .cta-title {
        font-size: 28px;
    }

    .cta-text {
        font-size: 16px;
    }

    .cta-actions {
        flex-direction: column;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        text-align: center;
    }

    .footer-content {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .project-content {
        padding: 20px;
    }

    .project-title {
        font-size: 18px;
    }

    .project-description {
        font-size: 14px;
    }
}