/* ========================================
   PORTFOLIO PAGE STYLES
   ======================================== */

/* Portfolio Hero Section - Service Style */
.service-hero-large {
    position: relative;
    width: 100%;
    min-height: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary-color);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(20, 50, 40, 0.95), rgba(27, 67, 50, 0.93));
}

.hero-content-large {
    position: relative;
    z-index: 1;
    text-align: center;
    color: var(--white);
    max-width: 850px;
    padding: 3rem 2rem;
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-badge-modern {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, rgba(37, 211, 102, 0.2), rgba(45, 106, 79, 0.3));
    backdrop-filter: blur(10px);
    color: #25D366;
    padding: 0.65rem 1.5rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
    border: 2px solid rgba(37, 211, 102, 0.4);
    text-transform: uppercase;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.2);
    animation: fadeIn 0.8s ease-out 0.2s both;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.hero-badge-modern svg {
    width: 18px;
    height: 18px;
    stroke: #25D366;
    stroke-width: 2.5;
}

.hero-content-large h1 {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    color: var(--white);
    line-height: 1.1;
    font-family: 'Poppins', sans-serif;
    letter-spacing: -2px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    animation: fadeIn 0.8s ease-out 0.3s both;
}

.service-intro-large {
    font-size: 1.3rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
    line-height: 1.6;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.95);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    animation: fadeIn 0.8s ease-out 0.4s both;
}

/* Filter Section */
.filter-section {
    padding: 2.5rem 0 2rem;
    background: white;
    border-bottom: 1px solid #e5e7eb;
}

/* Mobile Dropdown Filter */
.filter-dropdown-mobile {
    display: none;
}

.filter-select {
    width: 100%;
    padding: 1rem 1.5rem;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    color: #374151;
    background: white;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%2325D366' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 20px;
    padding-right: 3rem;
    transition: all 0.3s ease;
}

.filter-select:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.15);
}

/* Desktop Button Filter */
.filter-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.filter-btn {
    background: white;
    border: 2px solid #e5e7eb;
    color: #6b7280;
    padding: 0.85rem 2.2rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: 'Poppins', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    display: inline-block;
}

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

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

.filter-btn:hover {
    border-color: var(--secondary-color);
    color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.25);
}

.filter-btn.active {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
    color: white;
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
    transform: translateY(-2px);
}

.filter-btn.active::before {
    display: none;
}

/* Portfolio Section */
.portfolio-section {
    padding: 3rem 0 4rem;
    background: #f9fafb;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(37, 211, 102, 0.02) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(45, 106, 79, 0.03) 0%, transparent 50%);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 1.25rem;
    margin: 0 auto;
}

.portfolio-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0;
    transform: translateY(30px) scale(0.95);
    animation: cardFadeIn 0.6s ease-out forwards;
    border: 1px solid #e5e7eb;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.portfolio-card:nth-child(1) {
    animation-delay: 0.1s;
}

.portfolio-card:nth-child(2) {
    animation-delay: 0.2s;
}

.portfolio-card:nth-child(3) {
    animation-delay: 0.3s;
}

.portfolio-card:nth-child(4) {
    animation-delay: 0.4s;
}

.portfolio-card:nth-child(5) {
    animation-delay: 0.5s;
}

.portfolio-card:nth-child(6) {
    animation-delay: 0.6s;
}

.portfolio-card:nth-child(n+7) {
    animation-delay: 0.7s;
}

@keyframes cardFadeIn {
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.portfolio-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(37, 211, 102, 0.1) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
    pointer-events: none;
}

.portfolio-card:hover::before {
    opacity: 1;
}

.portfolio-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow:
        0 20px 40px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(37, 211, 102, 0.3),
        0 0 30px rgba(37, 211, 102, 0.2);
    border-color: rgba(37, 211, 102, 0.3);
}

/* Card Image */
.card-image {
    position: relative;
    height: 400px;
    overflow: hidden;
    background: linear-gradient(135deg, #1a2520 0%, #0f1612 100%);
}

.card-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60%;
    background: linear-gradient(to top, rgba(10, 15, 13, 0.95) 0%, transparent 100%);
    z-index: 2;
    pointer-events: none;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    filter: brightness(0.85) contrast(1.1) saturate(1.1);
}

.portfolio-card:hover .card-image img {
    transform: scale(1.15);
    filter: brightness(1) contrast(1.15) saturate(1.2);
}

.image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(37, 211, 102, 0.3);
    background: linear-gradient(135deg, #1a2520 0%, #0f1612 100%);
}

/* Card Overlay */
.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(37, 211, 102, 0.15) 0%, rgba(27, 67, 50, 0.25) 100%);
    backdrop-filter: blur(2px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 3;
}

.portfolio-card:hover .card-overlay {
    opacity: 1;
    backdrop-filter: blur(4px);
}

.view-btn {
    background: white;
    color: var(--primary-color);
    border: 2px solid rgba(37, 211, 102, 0.3);
    padding: 1.1rem 2.5rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: 'Poppins', sans-serif;
    transform: translateY(30px) scale(0.9);
    opacity: 0;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.portfolio-card:hover .view-btn {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.view-btn:hover {
    background: var(--secondary-color);
    color: white;
    border-color: var(--secondary-color);
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 15px 40px rgba(37, 211, 102, 0.4);
}

.view-btn svg {
    width: 22px;
    height: 22px;
    transition: transform 0.3s ease;
}

.view-btn:hover svg {
    transform: rotate(90deg);
}

/* Card Content - Overlay on Image */
.card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    z-index: 2;
    transform: translateY(0);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.portfolio-card:hover .card-content {
    transform: translateY(-10px);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0;
}

.card-content h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.4rem;
    font-weight: 800;
    color: white;
    margin: 0;
    line-height: 1.2;
    flex: 1;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    letter-spacing: -0.5px;
}

.project-badge {
    display: none;
    align-items: center;
    background: rgba(37, 211, 102, 0.2);
    backdrop-filter: blur(10px);
    color: #25D366;
    padding: 0.45rem 1rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    white-space: nowrap;
    border: 1px solid rgba(37, 211, 102, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.2);
}

.card-content p {
    display: none;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.5;
    margin-bottom: 0.75rem;
    font-size: 0.9rem;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 0;
    border-top: none;
    position: absolute;
    bottom: 1.5rem;
    right: 1.5rem;
}

.completion-date {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.85rem;
    font-weight: 600;
    background: rgba(37, 211, 102, 0.15);
    backdrop-filter: blur(10px);
    padding: 0.4rem 0.9rem;
    border-radius: 50px;
    border: 1px solid rgba(37, 211, 102, 0.3);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.completion-date svg {
    width: 16px;
    height: 16px;
    color: var(--secondary-color);
}

/* Pagination - Modern Sleek Design */
.pagination-container {
    margin-top: 3.5rem;
    display: flex;
    justify-content: center;
    padding: 2rem 0;
}

.pagination-controls {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
    border: none;
}

.pagination-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: white;
    color: var(--primary-color);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.pagination-btn:hover:not(.disabled) {
    background: var(--secondary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.pagination-btn.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    color: #d1d5db;
    background: #f9fafb;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.pagination-info {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 1.5rem;
    height: 40px;
    background: transparent;
    border-radius: 0;
    color: #6b7280;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0;
    white-space: nowrap;
    min-width: auto;
    text-align: center;
    margin: 0 0.5rem;
    box-shadow: none;
    text-transform: none;
}

.pagination-btn svg {
    width: 18px;
    height: 18px;
    stroke-width: 2.5;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 6rem 2rem;
    max-width: 600px;
    margin: 0 auto;
}

.empty-icon {
    margin-bottom: 2rem;
    color: rgba(37, 211, 102, 0.4);
    opacity: 0.6;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }
}

.empty-state h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-color);
    margin-bottom: 1rem;
    letter-spacing: -1px;
}

.empty-state p {
    font-size: 1.125rem;
    color: #6b7280;
    line-height: 1.7;
    margin-bottom: 2.5rem;
}

.empty-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.empty-actions .btn-primary {
    background: var(--secondary-color);
    color: white;
    border: 2px solid var(--secondary-color);
}

.empty-actions .btn-primary:hover {
    background: #2ca562;
    border-color: #2ca562;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4);
}

.empty-actions .btn-secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.empty-actions .btn-secondary:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-3px);
}

/* CTA Section */
.portfolio-cta {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-color) 100%);
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

.portfolio-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.4;
}

.cta-content {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
}

.cta-text {
    flex: 1;
    color: white;
}

.cta-text h2 {
    font-family: 'Poppins', sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
    color: white;
}

.cta-text p {
    font-size: 1.125rem;
    opacity: 0.95;
    line-height: 1.6;
    color: white;
}

.cta-actions {
    flex-shrink: 0;
}

.btn-large {
    padding: 1.125rem 2.5rem;
    font-size: 1.125rem;
    font-weight: 600;
}

/* Button Styles (matching home.css) */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
}

.btn-primary {
    background: white;
    color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.3);
    background: var(--secondary-color);
    color: white;
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
    color: white;
    transform: translateY(-3px);
}

.btn svg {
    width: 20px;
    height: 20px;
}

/* Lightbox Styles */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    cursor: pointer;
}

.lightbox-content {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    transform: scale(0.9) translateY(30px);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.lightbox.active .lightbox-content {
    transform: scale(1) translateY(0);
}

.lightbox-close {
    position: absolute;
    top: -60px;
    right: 0;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 2;
}

.lightbox-close:hover {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: rotate(90deg);
}

.lightbox-content img {
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(37, 211, 102, 0.3);
}

.lightbox-info {
    background: rgba(20, 26, 23, 0.95);
    backdrop-filter: blur(10px);
    padding: 1.5rem 2rem;
    border-radius: 16px;
    text-align: center;
    border: 1px solid rgba(37, 211, 102, 0.2);
    max-width: 600px;
}

.lightbox-info h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
    margin: 0 0 0.75rem 0;
    letter-spacing: -0.5px;
}

.lightbox-info p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
}

@media (max-width: 768px) {
    .lightbox {
        padding: 1rem;
    }

    .lightbox-close {
        top: -50px;
        width: 44px;
        height: 44px;
    }

    .lightbox-close svg {
        width: 24px;
        height: 24px;
    }

    .lightbox-content img {
        max-height: 60vh;
    }

    .lightbox-info {
        padding: 1.25rem 1.5rem;
    }

    .lightbox-info h3 {
        font-size: 1.25rem;
    }

    .lightbox-info p {
        font-size: 0.9rem;
    }
}

/* Smooth transitions for filtering */
.portfolio-card {
    transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), display 0.3s ease;
}

/* Responsive Design */
@media (max-width: 968px) {
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .card-image {
        height: 350px;
    }

    .cta-content {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }

    .cta-text h2 {
        font-size: 2rem;
    }
}

@media (max-width: 768px) {
    .service-hero-large {
        min-height: 350px;
    }

    .hero-content-large {
        padding: 2rem 1.5rem;
    }

    .hero-content-large h1 {
        font-size: 2.5rem;
        letter-spacing: -1px;
    }

    .service-intro-large {
        font-size: 1.1rem;
    }

    .hero-badge-modern {
        font-size: 0.75rem;
        padding: 0.5rem 1.2rem;
    }

    .filter-section {
        padding: 2rem 0 1.5rem;
    }

    /* Show dropdown on mobile */
    .filter-dropdown-mobile {
        display: block;
    }

    /* Hide button filter on mobile */
    .filter-buttons {
        display: none;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .card-image {
        height: 420px;
    }

    .card-content h3 {
        font-size: 1.3rem;
    }

    .pagination-controls {
        gap: 0.5rem;
        padding: 0.4rem;
    }

    .pagination-btn {
        width: 42px;
        height: 42px;
    }

    .pagination-info {
        padding: 0.6rem 1.5rem;
        font-size: 0.875rem;
        min-width: 120px;
    }

    .empty-state {
        padding: 4rem 1.5rem;
    }

    .empty-state h2 {
        font-size: 2rem;
    }

    .empty-state p {
        font-size: 1rem;
    }

    .portfolio-cta {
        padding: 3rem 0;
    }

    .cta-text h2 {
        font-size: 1.75rem;
    }

    .cta-text p {
        font-size: 1rem;
    }

    .btn-large {
        padding: 1rem 2rem;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .hero-content-large h1 {
        font-size: 2rem;
    }

    .service-intro-large {
        font-size: 1rem;
    }

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

    .card-image {
        height: 380px;
    }

    .card-content {
        padding: 1.5rem 1.25rem 1.25rem;
    }

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

    .pagination-controls {
        gap: 0.35rem;
        padding: 0.35rem;
    }

    .pagination-btn {
        width: 38px;
        height: 38px;
    }

    .pagination-btn svg {
        width: 16px;
        height: 16px;
    }

    .pagination-info {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
        min-width: 100px;
    }

    .card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.65rem;
    }

    .project-badge {
        align-self: flex-start;
    }

    .empty-actions {
        flex-direction: column;
        width: 100%;
    }

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