:root {
    --bg-primary: #0a0a0a;
    --bg-secondary: #1a1a1a;
    --bg-card: #242424;
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --text-muted: #888888;
    --accent-primary: #007bff;
    --accent-secondary: #0056b3;
    --accent-tertiary: #66b3ff;
    --border-color: #333333;
    --shadow-color: rgba(0, 0, 0, 0.5);
}

:root {
    --primary-blue: #007bff;
    --primary-blue-hover: #007bff;
    --dark-bg: #1a2234;
    --darker-bg: #1a2234;
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --text-muted: #888888;
    --border-color: #333333;
}

.featured-projects {
    padding: 3rem 0;
    position: relative;
}



.section-title {
    color: var(--accent-tertiary);
    font-weight: 800;
    font-size: 3rem;
    margin-bottom: 3rem;
    text-align: center;
    position: relative;
    background: none;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 4px;
    background: var(--primary-blue);
    border-radius: 2px;
}

.project-card .row {
    --bs-gutter-x: 6rem;
}

.project-card {
    padding: 2.5rem;
    margin-bottom: 3rem;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    animation: fadeInUp 0.6s ease-out;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
}

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

.project-image {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    margin-bottom: 1.5rem;
}

.project-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    transition: transform 0.4s ease;
    border-radius: 16px;
}

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

.project-title {
    color: var(--accent-tertiary);
    font-weight: 700;
    font-size: 1.3rem;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.project-description {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 1rem;
    line-height: 1.6;
}

.tools-section {
    margin-bottom: 2rem;
}

.tools-title {
    color: var(--accent-tertiary);
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.tools-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.tool-tag {
    background: transparent;
    color: var(--accent-tertiary);
    padding: 0.6rem 1.2rem;
    border-radius: 25px;
    font-size: 0.7rem;
    font-weight: 500;
    border: 1px solid var(--primary-blue);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.tool-tag:hover {
    background: var(--accent-tertiary);
    color: var(--primary-blue);
    transform: translateY(-2px);
}

.project-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.view-more-projects .btn-action {
    background: transparent;
    border: 2px solid #6b7280;
    color: #cbd5e0;
    padding: 1rem 2.5rem;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: none;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    display: inline-block;
}

.view-more-projects .btn-action::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.expand-btn:hover::before,
.view-more-projects .btn-action:hover::before {
    left: 100%;
}

.view-more-projects .btn-action:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    border-color: #9ca3af;
    color: #ffffff;
}

.expand-btn.expanded {
    border-color: #6b7280;
    color: #cbd5e0;
}

.expand-btn.expanded:hover {
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    border-color: #9ca3af;
    color: #ffffff;
}

.view-more-projects {
    text-align: center;
    margin-top: 3rem;
}
.view-more-projects .btn-action.btn-secondary-action {
    background: transparent !important;
    border: 2px solid #6b7280 !important;
    color: #cbd5e0 !important;
    padding: 1rem 2.5rem !important;
    font-size: 1rem !important;
    font-weight: 500 !important;
    border-radius: 8px !important;
    letter-spacing: 0.5px !important;
}

.view-more-projects .btn-action.btn-secondary-action:hover {
    background: rgba(255, 255, 255, 0.05) !important;
    border-color: #9ca3af !important;
    color: #ffffff !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .view-more-projects .btn-action {
        padding: 0.8rem 2rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .expand-btn,
    .view-more-projects .btn-action {
        padding: 0.8rem 1.5rem;
        font-size: 0.85rem;
        width: 100%;
        max-width: 280px;
    }
}
@media (max-width: 768px) {
    .section-title {
        font-size: 2.5rem;
    }
    .project-card {
        padding: 1.5rem;
        margin-bottom: 2rem;
    }
    .project-title {
        font-size: 1.5rem;
    }
    .project-actions {
        flex-direction: column;
    }
    .btn-action {
        text-align: center;
        justify-content: center;
    }
    .tools-container {
        gap: 0.5rem;
    }
    .tool-tag {
        font-size: 0.8rem;
        padding: 0.5rem 1rem;
    }
}

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


.service-spectrum {
    color: var(--accent-tertiary);
    font-family: 'Poppins', sans-serif;
}

.title {
    font-size: 3.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--primary-blue);
    background: none;
}

.subtitle {
    text-align: center;
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 3rem;
    color: var(--text-secondary);
    opacity: 0.8;
}

.service-card.hidden-service {
    display: none;
    opacity: 0;
    transform: translateY(20px);
}

.service-card.show {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.btn-view {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: var(--accent-color);
    color: #ffffff;
    text-decoration: none;
    border-radius: 25px;
    /* transition: transform 0.3s ease, box-shadow 0.3s ease; */
    align-self: flex-start;
    margin-top: auto;
}

.btn-view:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Expand Button Styles */
.expand-button-container {
    text-align: center;
    margin-top: 3rem;
}

.expand-btn {
    background: var(--primary-blue);
    border: none;
    color: var(--accent-tertiary);
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Poppins', sans-serif;
    /* box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2); */
}

.expand-btn:hover {
    transform: translateY(-3px);
    /* box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3); */
}

.btn-icon {
    transition: transform 0.3s ease;
    font-size: 1.2rem;
    color: var(--accent-tertiary);
}

.expand-btn.expanded {
    background: var(--accent-tertiary);
    color: var(--primary-blue);
}

.expand-btn.expanded .btn-icon {
    transform: rotate(180deg);
    color: var(--primary-blue);
}

@keyframes gradient-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

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

.service-card.show {
    animation: fadeInUp 0.5s ease forwards;
}

@media (max-width: 768px) {
    .title {
        font-size: 2.5rem;
    }
    .subtitle {
        font-size: 1rem;
    }
    .services-grid {
        grid-template-columns: 1fr;
        padding: 0 1rem;
    }
    .service-card {
        min-height: 250px;
    }
    .service-content {
        padding: 1.5rem;
    }
    .expand-btn {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .title {
        font-size: 2rem;
    }
    .service-card h2 {
        font-size: 1.2rem;
    }
    .service-card p {
        font-size: 0.9rem;
    }
    .expand-btn {
        padding: 0.7rem 1.2rem;
        font-size: 0.9rem;
    }
}

.project-actions .btn-secondary-action,
.project-actions .btn-tertiary-action {
    font-size: 1rem;
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
    color: #ffffff;
    background-color: transparent;
    border: 2px solid #007bff;
    border-radius: 0.375rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    margin-bottom: 0.5rem;
    font-weight: 400;
}

.project-actions .btn-secondary-action:hover,
.project-actions .btn-tertiary-action:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 10px rgba(0, 123, 255, 0.2);
    background-color: #ffffff;
    color: #007bff;
    text-decoration: none;
    border-color: #007bff;
}

.project-actions .btn-secondary-action i,
.project-actions .btn-tertiary-action i {
    font-size: 1rem;
    transition: all 0.3s ease;
}

.btn-action {
    padding: 0.75rem 1.5rem !important;
    border-radius: 0.375rem !important;
    font-weight: 400 !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    border: 2px solid #007bff !important;
    cursor: pointer !important;
    font-size: 1rem !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    margin-bottom: 0.5rem !important;
}

.btn-primary-action {
    background: #007bff !important;
    color: #ffffff !important;
    border: 2px solid #007bff !important;
}

.btn-primary-action:hover {
    background: #ffffff !important;
    color: #007bff !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 4px 10px rgba(0, 123, 255, 0.2) !important;
}

.btn-secondary-action,
.btn-tertiary-action {
    background: transparent !important;
    color: #ffffff !important;
    border: 2px solid #007bff !important;
}

.btn-secondary-action:hover,
.btn-tertiary-action:hover {
    background: #007bff !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 4px 10px rgba(0, 123, 255, 0.2) !important;
}

@media (max-width: 991px) {
    .project-actions .btn-action {
        margin-right: 0.5rem;
        margin-bottom: 1rem;
    }
}

@media (max-width: 576px) {
    .project-actions {
        flex-direction: column;
    }

    .project-actions .btn-action {
        display: block;
        width: 100%;
        margin-right: 0;
        margin-bottom: 0.75rem;
        text-align: center;
        justify-content: center;
    }
}
