

@font-face {
    font-family: 'Lahzeh';
    src: url('../font/Lahzeh-BoldSemiStretch.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Lahzeh';
    src: url('../font/Lahzeh-MediumSemiStretch.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Lahzeh';
    src: url('../font/Lahzeh-RegularSemiStretch.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

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

body {
    font-family: 'Lahzeh', 'Segoe UI', 'Tahoma', system-ui, sans-serif;
    background: #ffffff;
    color: #1a1a2e;
}

main {
    padding-top: 50px;
}

.page-header {
    text-align: center;
    padding: 60px 20px 30px;
    background: white;
    margin-top: 20px;
}

.page-header h1 {
    font-size: 2.8rem;
    font-weight: 700;
    color: #9b51e0;
    margin-bottom: 15px;
}

.page-header p {
    font-size: 1.1rem;
    color: #555;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
    font-weight: 400;
}

.sub-header {
    text-align: center;
    margin: 40px 20px 20px;
}

.sub-header h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #1a1a2e;
}

.sub-header p {
    color: #5b6b82;
    margin-top: 8px;
    font-weight: 400;
}

.filter-section {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin: 20px 20px 50px;
}

.filter-btn {
    background: #f5f5f7;
    border: none;
    padding: 10px 28px;
    border-radius: 40px;
    font-size: 0.9rem;
    font-weight: 500;
    font-family: 'Lahzeh', system-ui, sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #333;
}

.filter-btn.active {
    background: #9b51e0;
    color: white;
    box-shadow: 0 6px 14px rgba(155, 81, 224, 0.2);
}

.filter-btn:hover {
    background: #9b51e0;
    color: white;
    transform: translateY(-2px);
}

.portfolio-grid {
    max-width: 1300px;
    margin: 0 auto;
    padding: 20px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 35px;
}

.portfolio-card {
    background: white;
    border-radius: 24px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid #eee;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.portfolio-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 25px 45px rgba(155, 81, 224, 0.2);
    border-color: #d4c4f0;
}

.card-image {
    width: 100%;
    height: 220px;
    background: linear-gradient(135deg, #9b51e0, #7c3bc2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1rem;
    font-weight: 500;
    transition: transform 0.5s ease;
    flex-shrink: 0;
}

.portfolio-card:hover .card-image {
    transform: scale(1.02);
}

.card-content {
    padding: 24px;
    text-align: right;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-category {
    display: inline-block;
    background: #f0e6ff;
    color: #7c3aed;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 50px;
    margin-bottom: 12px;
    transition: all 0.3s ease;
    width: fit-content;
}

.portfolio-card:hover .card-category {
    background: #9b51e0;
    color: white;
}

.card-content h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    font-weight: 700;
    color: #1a1a2e;
}

.card-content p {
    color: #5a5a6e;
    line-height: 1.5;
    margin-bottom: 20px;
    font-size: 0.9rem;
    font-weight: 400;
    flex: 1;
}

.project-link {
    text-decoration: none;
    font-weight: 600;
    color: #9b51e0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    margin-top: auto;
    width: fit-content;
}

.project-link:hover {
    gap: 12px;
    color: #7c3bc2;
}

@media (max-width: 768px) {
    .page-header h1 {
        font-size: 2rem;
    }

    .sub-header h2 {
        font-size: 1.6rem;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .cta-section h2 {
        font-size: 1.5rem;
    }

    .cta-section {
        padding: 50px 20px;
    }

    main {
        padding-top: 30px;
    }
}

.cta-wrapper {
    position: relative;
    margin: 70px 20px;
    border-radius: 40px;
    overflow: hidden;
    background: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.cta-section {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 70px 30px;
    color: white;
}

.cta-section h2 {
    font-size: 2rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.cta-section p {
    opacity: 0.9;
    max-width: 450px;
    margin: 0 auto 25px;
    font-size: 1rem;
    font-weight: 400;
}

.cta-btn {
    display: inline-block;
    background: white;
    color: #9b51e0;
    padding: 14px 38px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    font-family: 'Lahzeh', system-ui, sans-serif;
}

.cta-btn:hover {
    transform: scale(1.03);
    background: #f8f0ff;
}

.floating-circles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.circle {
    position: absolute;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    pointer-events: none;
}

.circle1 {
    width: 200px;
    height: 200px;
    top: -60px;
    right: -60px;
    background: radial-gradient(circle, rgba(155, 81, 224, 0.3), transparent);
}

.circle2 {
    width: 280px;
    height: 280px;
    bottom: -100px;
    left: -80px;
    background: radial-gradient(circle, rgba(155, 81, 224, 0.25), transparent);
}

.circle3 {
    width: 130px;
    height: 130px;
    top: 40%;
    right: 10%;
    background: rgba(192, 132, 252, 0.15);
}

.circle4 {
    width: 90px;
    height: 90px;
    bottom: 20%;
    left: 15%;
    background: rgba(155, 81, 224, 0.2);
}

.project-btn {
    display: block;
    width: 100%;
    background: linear-gradient(135deg, #9b51e0, #7c3bc2);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    font-family: 'Lahzeh', system-ui, sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 15px;
    text-align: center;
}

.project-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(155, 81, 224, 0.3);
    background: linear-gradient(135deg, #7c3bc2, #9b51e0);
}

.project-btn:active {
    transform: translateY(0);
}

.card-content {
    padding: 24px;
    text-align: right;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-content p {
    color: #5a5a6e;
    line-height: 1.5;
    margin-bottom: 0;
    font-size: 0.9rem;
    font-weight: 400;
    flex: 1;
}

@media (max-width: 768px) {
    .project-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    .card-content {
        padding: 18px;
    }
}

.card-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}