.portfolio-content, .admin-content {
    display: flex;
    flex-direction: column;
    gap: 120px;
    background-color: var(--color-black);
    padding: 120px 40px;
}

.portfolio-header, .admin-header, .about-header {
    margin-bottom: 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.portfolio-header h1, .admin-header h1, .about-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #D1EE51;
    margin-bottom: 0.5rem;
    font-family: 'Trap', sans-serif;
}

.portfolio-grid {
    display: flex;
    flex-direction: column;
    gap: 30px;
    align-items: center;
    
    width: 100%;
    margin: 0 auto;
}

.portfolio-item {
    border-radius: 12px;
    overflow: visible;
    transition: transform 0.1s ease-out;
    transform-style: preserve-3d;
    transform-origin: center;
    perspective: 1000px;
    max-width: 350px;
    width: 100%;
}

.portfolio-item:hover {
    transition: transform 0.1s ease-out;
}

.portfolio-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.work-image-container {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    object-fit: cover;
    width: 100%;
    aspect-ratio: 2 / 1; /* Default 1:2 ratio for screens above 425px */
}

.portfolio-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    border-radius: 12px;
}

.portfolio-item:hover img {
    transform: scale(1.02);
}

.portfolio-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0px;
    gap: 10px;
    width: 100%;
    height: 75px;
    flex: none;
    order: 1;
    align-self: stretch;
    flex-grow: 0;
}

.portfolio-info h3 {
    width: 100%;
    height: 25px;
    font-family: 'DM Sans', sans-serif;
    font-style: normal;
    font-weight: 600;
    font-size: 18px;
    line-height: 140%;
    color: #FFFFFF;
    flex: none;
    order: 0;
    align-self: stretch;
    flex-grow: 0;
    margin: 0;
}

.portfolio-info .category {
    color: var(--color-white-70);
    font-size: 18px;
    letter-spacing: 1px;
    font-weight: 400;
    font-family: 'DM Sans', sans-serif;
    display: none; /* Hide category as it's replaced by description */
}

.portfolio-info .description {
    width: 100%;
    height: 50px;
    font-family: 'DM Sans', sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 18px;
    line-height: 140%;
    color: #FFFFFF;
    opacity: 0.5;
    flex: none;
    order: 1;
    align-self: stretch;
    flex-grow: 0;
    margin: 0;
}

.work-meta {
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

/* Work Tags */
.work-tags {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 0px;
    gap: 10px;
    position: absolute;
   
    right: 20px;
    top: 20px;
}

.work-tag {
    box-sizing: border-box;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    padding: 8px 14px;
    gap: 10px;
    height: 36px;
    background: rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 100px;
    flex: none;
    flex-grow: 0;
    font-family: 'DM Sans', sans-serif;
    font-style: normal;
    font-weight: 500;
    font-size: 14px;
    line-height: 140%;
    display: flex;
    align-items: flex-end;
    text-align: center;
    color: #FFFFFF;
    opacity: 0.8;
}

/* Add Work Form Styles */
.add-work-form {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 4px 20px var(--color-black-20);
    max-width: 800px;
    margin: 0 auto;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.add-work-form .form-group {
    margin-bottom: 1.5rem;
}

.add-work-form label {
    font-weight: 600;
    color: #D1EE51;
    margin-bottom: 0.5rem;
    display: block;
    font-family: 'Trap', sans-serif;
}

.add-work-form input[type="text"],
.add-work-form textarea {
    width: 100%;
    padding: 1rem 1.2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    transition: all 0.3s ease;
    font-size: 1rem;
    background-color: rgba(255, 255, 255, 0.05);
    color: white;
}

.add-work-form input[type="file"] {
    padding: 1rem;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    border: 2px dashed var(--color-white-10);
    cursor: pointer;
    transition: all 0.3s ease;
    color: rgba(255, 255, 255, 0.7);
}

.add-work-form input[type="text"]:focus,
.add-work-form textarea:focus,
.add-work-form input[type="file"]:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px var(--color-primary-10);
}

.add-work-form .btn-primary {
    background-color: #D1EE51;
    border: none;
    padding: 1rem 2rem;
    font-weight: 600;
    border-radius: 10px;
    transition: all 0.3s ease;
    width: 100%;
    margin-top: 1rem;
    color: var(--color-text-dark);
}

.add-work-form .btn-primary:hover {
    background-color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px var(--color-primary-20);
}

.add-work-form .form-text {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

/* About page specific styles */
.service-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2rem;
    height: 100%;
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px var(--color-white-10);
}

.service-card i {
    color: #D1EE51;
}

.service-card h3 {
    color: #D1EE51;
    font-family: 'Trap', sans-serif;
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.service-card p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

.acid-circle {
    width: 250px;
    height: 250px;
    background-color: #D1EE51;
    border-radius: 50%;
    margin: 0 auto 20px;
    transition: transform 0.3s ease;
}

.team-member:hover .acid-circle {
    transform: scale(1.05);
}

.team-member h3 {
    color: white;
    font-family: 'Trap', sans-serif;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.team-member p {
    color: rgba(255, 255, 255, 0.7) !important;
}

.mission-section {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.mission-text {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
    font-size: 1.1rem;
    max-width: 800px;
    margin: 0 auto;
}

@media (min-width: 2000px) {
    .portfolio-content {
        padding: 120px 100px;
    }
}



/* Large tablet/small desktop styles */
@media (min-width: 426px) {
    .portfolio-item {
        max-width: none; /* Remove 350px constraint for screens above 425px */
    }
}


@media (max-width: 768px) {
    
    .portfolio-content {
        padding: 120px var(--page-inline-padding-sm);
        gap: 60px;
    }

    .portfolio-grid {
        display: flex;
        flex-direction: column;
        gap: 30px;
        max-width: none; 
        width: 100%;
    }
    
    .portfolio-item {
        height: auto;
        width: 100%;
        flex-direction: column;
        gap: 20px;
    }

    .work-image-container {
        width: 100%;
        position: relative;
    }

    .portfolio-item img {
        position: static;
        width: 100%;
        height: 100%;
        left: auto;
        top: auto;
    }

    .portfolio-info {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        padding: 0px;
        gap: 10px;
        width: 100%;
        height: 75px;
    }

    .work-meta {
        display: flex;
        flex-direction: column;
        gap: 10px;
        width: 100%;
        height: auto;
    }

    .work-meta > div:first-child {
        width: 100%;
        height: auto;
    }

    .portfolio-info h3 {
        width: 100%;
        height: 25px;
    }

    .portfolio-info .description {
        width: 100%;
        height: 50px;
    }
    
    .portfolio-header h1, .admin-header h1, .about-header h1 {
        font-size: 2rem;
    }
    
    .add-work-form {
        padding: 1.5rem;
    }
    
    .acid-circle {
        width: 200px;
        height: 200px;
    }
    
    .mission-text {
        font-size: 1rem;
    }

    .work-tags {
        width: auto;
        max-width: calc(100% - 20px);
        right: 10px;
        top: 10px;
    }
}




@media (max-width: 425px) {

    .portfolio-info h3 {
        font-size: 16px;
    }

    .portfolio-info .description {
        font-size: 16px;
    }

    .work-tags {
        gap: 5px;
    }

    .work-tag {
        padding: 6px 10px;
        font-size: 12px;
    }

    .work-image-container {
        aspect-ratio: 1 / 1; /* 1:1 ratio for screens up to 425px */
    }
    
    .portfolio-grid {
        max-width: 350px; /* Constrain grid width on small screens */
    }
}
    
    
