/* Web Development Page Specific Styles */

/* Page Header */
.page-header {
    position: relative;
    padding: 8rem 0 5rem;
    background: linear-gradient(135deg, var(--color-primary) 0%, #2a3c5d 50%, #3a4c6d 100%);
    color: var(--color-background);
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    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.1;
    z-index: 0;
}

.page-header-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    animation: fadeInUp 0.8s forwards;
}

.page-header h1 {
    font-size: 4rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: var(--color-background);
    line-height: 1.1;
}

.page-header h1 .highlight {
    color: var(--color-secondary);
    position: relative;
    display: inline-block;
}

.page-description {
    font-size: 1.5rem;
    max-width: 700px;
    margin: 0 auto;
    color: rgba(245, 241, 233, 0.9);
}

/* Service Detail Layout */
.service-detail {
    padding: 5rem 0;
    background-color: var(--color-background);
}

.service-detail-grid {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 3rem;
}

.service-detail-content {
    padding-right: 2rem;
}

/* Service Introduction */
.service-intro {
    margin-bottom: 4rem;
}

.service-intro h2 {
    font-size: 2.25rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: var(--color-primary);
    position: relative;
    display: inline-block;
}

.service-intro h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 80px;
    height: 3px;
    background: var(--color-secondary);
    border-radius: 3px;
}

.service-intro p {
    font-size: 1.2rem;
    line-height: 1.7;
    color: var(--color-text);
}

/* Service Features */
.service-features {
    margin-bottom: 4rem;
}

.feature-item-large {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
    align-items: flex-start;
    padding: 2rem;
    border-radius: 1rem;
    background: rgba(245, 241, 233, 0.5);
    border: 1px solid var(--color-border);
    transition: all 0.3s ease;
}

.feature-item-large:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transform: translateY(-5px);
    border-color: var(--color-secondary);
}

.feature-item-large .feature-icon {
    background: rgba(26, 43, 76, 0.1);
    width: 4rem;
    height: 4rem;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.feature-item-large:hover .feature-icon {
    background: var(--color-primary);
    color: var(--color-background);
    transform: scale(1.1) rotate(10deg);
}

.feature-content h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--color-primary);
}

.feature-content p {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--color-text-light);
}

/* Service Process */
.service-process {
    margin-bottom: 4rem;
}

.service-process h2 {
    font-size: 2.25rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: var(--color-primary);
    position: relative;
    display: inline-block;
}

.service-process h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 80px;
    height: 3px;
    background: var(--color-secondary);
    border-radius: 3px;
}

.process-intro {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 3rem;
    color: var(--color-text);
}

.process-steps {
    position: relative;
}

.process-steps::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 1.2rem;
    width: 2px;
    background: var(--color-border);
    z-index: 0;
}

.process-step {
    display: flex;
    gap: 2rem;
    margin-bottom: 2.5rem;
    position: relative;
    z-index: 1;
}

.step-number {
    width: 2.5rem;
    height: 2.5rem;
    background: var(--color-secondary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.step-content {
    padding-top: 0.25rem;
}

.step-content h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--color-primary);
}

.step-content p {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--color-text-light);
}

/* Technologies Section */
.service-technologies {
    margin-bottom: 4rem;
}

.service-technologies h2 {
    font-size: 2.25rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: var(--color-primary);
    position: relative;
    display: inline-block;
}

.service-technologies h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 80px;
    height: 3px;
    background: var(--color-secondary);
    border-radius: 3px;
}

.tech-intro {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 3rem;
    color: var(--color-text);
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.tech-card {
    padding: 2rem;
    border-radius: 1rem;
    background: rgba(245, 241, 233, 0.5);
    border: 1px solid var(--color-border);
    transition: all 0.3s ease;
}

.tech-card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transform: translateY(-5px);
    border-color: var(--color-secondary);
}

.tech-icon {
    width: 3rem;
    height: 3rem;
    background: rgba(26, 43, 76, 0.1);
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.tech-card:hover .tech-icon {
    background: var(--color-primary);
    color: var(--color-background);
    transform: scale(1.1);
}

.tech-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    color: var(--color-primary);
}

.tech-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tech-list li {
    margin-bottom: 0.75rem;
    position: relative;
    padding-left: 1.5rem;
    color: var(--color-text-light);
}

.tech-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--color-secondary);
    font-size: 1.2rem;
}

/* Sidebar Styles */
.service-sidebar {
    position: sticky;
    top: 6rem;
    align-self: start;
}

.sidebar-card, .cta-card {
    padding: 2rem;
    border-radius: 1rem;
    background: rgba(245, 241, 233, 0.5);
    border: 1px solid var(--color-border);
    margin-bottom: 2rem;
    transition: all 0.3s ease;
}

.sidebar-card:hover, .cta-card:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.sidebar-card h3, .cta-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--color-primary);
}

.service-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.service-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--color-border);
    transition: transform 0.3s ease;
}

.service-list li:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.service-list li i {
    color: var(--color-secondary);
    width: 1.25rem;
    height: 1.25rem;
    flex-shrink: 0;
}

.service-list li span {
    color: var(--color-text-light);
}

.service-list li:hover {
    transform: translateX(5px);
}

.cta-card {
    background: var(--color-primary);
    color: var(--color-background);
    text-align: center;
}

.cta-card h3 {
    color: var(--color-background);
}

.cta-card p {
    margin-bottom: 1.5rem;
    color: rgba(245, 241, 233, 0.9);
}

.btn-primary.full-width {
    width: 100%;
    justify-content: center;
}

/* Project Showcase */
.project-showcase {
    position: relative;
    overflow: visible !important; /* Override any 'overflow: hidden' */
}

.project-showcase .container {
    position: relative;
    z-index: 5;
}

.project-showcase::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    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='%231A2B4C' 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.3;
    pointer-events: none;
}

.showcase-cta .btn-secondary i {
    transition: transform 0.3s ease;
}

.showcase-cta .btn-secondary:hover i,
.showcase-cta .btn-secondary:focus i {
    transform: translateX(5px);
}

@keyframes btnRipple {
    0% {
        transform: scale(0);
        opacity: 1;
    }
    100% {
        transform: scale(4);
        opacity: 0;
    }
}

.showcase-cta .btn-secondary::after {
    content: '';
    position: absolute;
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.3);
    display: block;
    top: 50%;
    left: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%) scale(0);
    border-radius: 50%;
    opacity: 0;
}

.showcase-cta .btn-secondary:active::after {
    animation: btnRipple 0.6s ease-out;
}

.project-showcase .section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem;
}

.project-showcase .section-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--color-text);
}

.project-showcase .section-header p {
    color: var(--color-text-light);
    font-size: 1.125rem;
}

.showcase-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.showcase-item {
    border-radius: 1rem;
    overflow: hidden;
    background: var(--color-background);
    border: 1px solid var(--color-border);
    transition: all 0.3s ease;
}

.showcase-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border-color: var(--color-secondary);
}

.showcase-image {
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.showcase-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.showcase-item:hover .showcase-image img {
    transform: scale(1.1);
}

.showcase-content {
    padding: 1.5rem;
}

.showcase-category {
    display: inline-block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    background-color: rgba(26, 43, 76, 0.1);
    color: var(--color-primary);
    padding: 0.25rem 0.75rem;
    border-radius: 2rem;
    margin-bottom: 0.75rem;
}

.showcase-content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--color-text);
}

.showcase-content p {
    font-size: 0.95rem;
    color: var(--color-text-light);
    margin-bottom: 1.25rem;
    line-height: 1.6;
}

.showcase-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--color-primary);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    padding-bottom: 0.25rem;
}

.showcase-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-secondary);
    transition: width 0.3s ease;
}

.showcase-link:hover {
    gap: 0.75rem;
    color: var(--color-secondary);
}

.showcase-link:hover::after {
    width: 100%;
}

.showcase-cta {
    text-align: center;
    margin-top: 3rem;
    position: relative;
    z-index: 10;
}

.showcase-cta .btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    border-radius: 0.5rem;
    background: transparent;
    color: var(--color-primary);
    font-weight: 600;
    border: 2px solid var(--color-primary);
    transition: all 0.3s ease;
    text-decoration: none;
    cursor: pointer !important; /* Force cursor to be pointer */
    position: relative;
    z-index: 15; /* Even higher z-index */
    overflow: visible; /* Ensure no overflow is hidden */
}

.showcase-cta .btn-secondary:hover,
.showcase-cta .btn-secondary:focus {
    background: var(--color-primary);
    color: var(--color-background);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.showcase-cta .btn-secondary:active {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}



/* FAQ Section */
.faq-section {
    padding: 6rem 0;
    background-color: var(--color-background);
}

.faq-section .section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem;
}

.faq-section .section-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--color-text);
}

.faq-section .section-header p {
    color: var(--color-text-light);
    font-size: 1.125rem;
}

.faq-grid {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 1.5rem;
    border: 1px solid var(--color-border);
    border-radius: 0.75rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: var(--color-secondary);
}

.faq-question {
    padding: 1.5rem;
    background: rgba(245, 241, 233, 0.5);
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
}

.faq-question h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-primary);
    margin: 0;
}

.faq-toggle {
    background: none;
    border: none;
    cursor: pointer;
    width: 1.75rem;
    height: 1.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    transition: transform 0.3s ease;
}

.faq-answer {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-answer p {
    padding: 0 0 1.5rem;
    margin: 0;
    color: var(--color-text-light);
    line-height: 1.6;
}

.faq-item.active .faq-answer {
    max-height: 300px;
}

.faq-item.active .faq-toggle {
    transform: rotate(180deg);
}

.faq-item.active .faq-question {
    border-bottom: 1px solid var(--color-border);
}

/* CTA Section */
.cta-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, var(--color-primary) 0%, #2a3c5d 50%, #3a4c6d 100%);
    color: var(--color-background);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    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.1;
}

.cta-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 2.75rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--color-background);
}

.cta-content p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    color: rgba(245, 241, 233, 0.9);
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

.cta-section .btn-secondary {
    background-color: rgba(255, 255, 255, 0.15);
    color: var(--color-background);
    border: 1px solid var(--color-background);
    transition: all 0.3s ease;
    font-weight: 600;
}

.cta-section .btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Responsive Styles */
@media (max-width: 1200px) {
    .showcase-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 991px) {
    .service-detail-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .service-detail-content {
        padding-right: 0;
    }
    
    .service-sidebar {
        position: static;
    }
    
    .tech-grid {
        grid-template-columns: 1fr;
    }
    
    .page-header h1 {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .showcase-grid {
        grid-template-columns: 1fr;
    }
    
    .feature-item-large {
        flex-direction: column;
        align-items: flex-start;
        padding: 1.5rem;
    }
    
    .feature-item-large .feature-icon {
        margin-bottom: 1rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .page-header h1 {
        font-size: 2.5rem;
    }
    
    .page-description {
        font-size: 1.2rem;
    }
}

@media (max-width: 576px) {
    .page-header {
        padding: 6rem 0 3rem;
    }
    
    .service-detail {
        padding: 3rem 0;
    }
    
    .service-intro h2, 
    .service-process h2, 
    .service-technologies h2 {
        font-size: 1.75rem;
    }
    
    .service-intro p {
        font-size: 1rem;
    }
    
    .cta-content h2 {
        font-size: 2rem;
    }
    
    .cta-content p {
        font-size: 1.1rem;
    }

    .showcase-cta .btn-secondary {
        width: 100%;
        justify-content: center;
    }
}