/* ===== WEB DEVELOPMENT PAGE - DESIGN SYSTEM ALIGNED ===== */

/* GLOBAL DESIGN SYSTEM SPECS:
   - Font: Manrope (body), Plus Jakarta Sans (headings)
   - Primary: #0a0e27
   - Accent: #FDCD06 (minimal usage)
   - Container: max-width 1200px
   - Hero gradient: #0a0e27 → gray → white
   - Cards: white bg, subtle shadow, 20px border-radius
   - Section spacing: 100px vertical
   - Footer: #0a0e27, 40px border-radius top
*/

/* Page-specific overrides */
body.web-dev-page {
    background: var(--white);
    color: var(--gray-900);
    margin: 0;
    padding: 0;
}

body.web-dev-page #matrix-canvas {
    opacity: 0.02 !important;
    mix-blend-mode: multiply;
}

/* ===== HERO SECTION - MATCHING GLOBAL PATTERN ===== */
.web-hero {
    padding: 180px 0 120px;
    margin: 0;
    min-height: 850px;
    overflow: hidden;
    position: relative;
    /* EXACT SAME GRADIENT AS COMPANY PAGE */
    background: linear-gradient(180deg, var(--primary-bg) 0%, var(--primary-bg) 15%, var(--primary-bg) 30%, #ffffff 85%, #FFFFFF 92%, #FFFFFF 100%);
}

.web-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: none;
    pointer-events: none;
    z-index: 1;
}

.web-hero-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 2;
}

/* Badge - minimal yellow accent */
.hero-badge {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: var(--gray-700);
    margin-bottom: 24px;
    text-transform: uppercase;
}

/* Typography matching global scale */
.web-hero-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    color: #ffffff;
    letter-spacing: -1.5px;
}

.web-hero-description {
    font-family: 'Manrope', sans-serif;
    font-size: clamp(1rem, 2vw, 1.15rem);
    color: rgba(255, 255, 255, 0.9);
    max-width: 700px;
    margin: 0 auto 40px;
    line-height: 1.7;
    font-weight: 400;
}

/* Buttons matching global style */
.hero-cta-group {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 60px;
    flex-wrap: wrap;
}

.btn-primary,
.btn-secondary {
    padding: 0.8rem 2rem;
    border-radius: 8px;
    font-family: 'Manrope', sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--blue-900);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--blue-900);
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: var(--gray-900);
    border: 2px solid var(--gray-300);
}

.btn-secondary:hover {
    background: var(--gray-100);
    border-color: var(--gray-400);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    padding: 0.8rem 2rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--white);
}

/* Trust badges - subtle */
.hero-trust-badges {
    display: flex;
    gap: 60px;
    justify-content: center;
    flex-wrap: wrap;
}

.trust-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.trust-number {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--gray-900);
    line-height: 1;
}

.trust-label {
    font-size: 0.85rem;
    color: var(--gray-600);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

/* ===== SERVICES SECTION - DARK LIKE GLOBAL ===== */
.services-section {
    background: #0a0e27;
    padding: 100px 0;
    position: relative;
}

.services-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(253, 205, 6, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

.services-section .container {
    position: relative;
    z-index: 1;
}

.services-section .section-header {
    text-align: center;
    margin-bottom: 4rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.services-section .section-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--white) !important;
    margin-bottom: 0.8rem;
    letter-spacing: -0.5px;
}

.services-section .section-subtitle {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    font-weight: 400;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.section-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.8rem;
    letter-spacing: -0.5px;
}

.section-subtitle {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    font-weight: 400;
}

/* Cards matching global service cards */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.service-card {
    background: rgba(255, 255, 255, 0.05);
    padding: 36px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.service-card::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100%;
    background: linear-gradient(to top, rgba(30, 58, 138, 0.15) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
    transition: opacity 0.4s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.08);
}

.service-card:hover::before {
    opacity: 0.7;
}

.service-header {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.service-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    background: rgba(255, 255, 255, 0.15);
    transform: scale(1.05);
}

.service-icon svg {
    width: 28px;
    height: 28px;
    stroke: var(--white);
    stroke-width: 2;
}

.service-card h3 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--white);
    margin: 0;
    letter-spacing: -0.3px;
    line-height: 1.3;
    text-align: left;
}

.service-card p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.75;
    margin-bottom: 24px;
    position: relative;
    z-index: 1;
    font-size: 1rem;
    text-align: left;
}

.service-features {
    list-style: none;
    padding: 0;
    margin: 0;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.service-features li {
    padding: 8px 0;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.975rem;
    display: flex;
    align-items: center;
    line-height: 1.5;
}

.service-features li:before {
    content: "✓";
    color: #FDCD06;
    font-weight: bold;
    margin-right: 10px;
    font-size: 1rem;
}

/* ===== TECH STACK SECTION ===== */
.tech-stack-section {
    padding: 100px 0;
    background: var(--white);
}

.tech-categories {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.tech-category {
    background: var(--white);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid var(--gray-200);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.tech-category-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 28px;
    text-align: center;
}

.tech-logos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 32px;
    align-items: center;
}

.tech-logo-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    transition: transform 0.3s ease;
}

.tech-logo-item:hover {
    transform: translateY(-4px);
}

.tech-logo-item img {
    width: 100%;
    max-width: 80px;
    height: 64px;
    object-fit: contain;
    filter: grayscale(0%);
    transition: all 0.3s ease;
}

.tech-logo-item:hover img {
    filter: grayscale(0%) drop-shadow(0 4px 12px rgba(10, 14, 39, 0.15));
}

.tech-logo-item span {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--gray-700);
}

/* ===== PROCESS SECTION ===== */
.process-section {
    padding: 100px 0;
    background: #0a0e27;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.process-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 50%, rgba(253, 205, 6, 0.03), transparent 60%);
    pointer-events: none;
}

.process-section .container {
    position: relative;
    z-index: 1;
}

.process-section .section-header {
    text-align: center;
    margin-bottom: 60px;
}

.process-section .section-title {
    color: var(--white);
}

.process-section .section-subtitle {
    color: rgba(255, 255, 255, 0.7);
}

.process-timeline {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    padding-left: 0;
}

.process-timeline::before {
    content: '';
    position: absolute;
    left: 40px;
    top: 40px;
    bottom: 100px;
    width: 2px;
    background: linear-gradient(to bottom, 
        rgba(255, 255, 255, 0.3) 0%, 
        rgba(255, 255, 255, 0.15) 70%, 
        transparent 100%
    );
}

.process-step {
    display: flex;
    gap: 40px;
    margin-bottom: 70px;
    position: relative;
    align-items: flex-start;
}

.process-step:last-child {
    margin-bottom: 0;
}

.step-number {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.5) 0%, rgba(30, 58, 138, 0.3) 100%);
    border: 3px solid rgba(255, 255, 255, 0.25);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.75rem;
    font-weight: 800;
    flex-shrink: 0;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

.process-step:hover .step-number {
    transform: scale(1.05);
    border-color: rgba(253, 205, 6, 0.4);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
}

.step-content {
    flex: 1;
    padding-top: 4px;
}

.step-content h3 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 14px;
    line-height: 1.3;
    letter-spacing: -0.5px;
}

.step-content p {
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.8;
    margin-bottom: 20px;
    font-size: 1rem;
}

.step-deliverables {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.step-deliverables li {
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.875rem;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    list-style-type: none;
}

.step-deliverables li:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(253, 205, 6, 0.3);
    transform: translateY(-2px);
}

/* ===== WHY CHOOSE SECTION ===== */
.why-choose-section {
    padding: 100px 0;
    background: var(--gray-50);
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 28px;
    max-width: 1200px;
    margin: 0 auto;
}

.why-card {
    background: var(--white);
    padding: 32px;
    border-radius: 20px;
    border: 1px solid var(--gray-200);
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.why-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
    border-color: var(--gray-300);
}

.why-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    background: var(--gray-100);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.why-icon svg {
    width: 28px;
    height: 28px;
    stroke: var(--primary-bg);
    stroke-width: 2;
}

.why-card h3 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 12px;
}

.why-card p {
    color: var(--gray-600);
    line-height: 1.7;
}

/* ===== PORTFOLIO SHOWCASE SECTION ===== */
.portfolio-showcase {
    padding: 100px 0;
    background: var(--white);
    margin-bottom: 0;
}

/* ===== SHOWCASE SECTION ===== */
.showcase-section {
    padding: 100px 0;
    background: var(--white);
}

.showcase-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 32px;
    max-width: 1200px;
    margin: 0 auto;
}

.showcase-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--gray-200);
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.showcase-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

.showcase-image {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: var(--gray-100);
}

.showcase-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.showcase-card:hover .showcase-image img {
    transform: scale(1.05);
}

.showcase-overlay {
    position: absolute;
    top: 16px;
    left: 16px;
}

.showcase-category {
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--blue-900);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.showcase-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    padding: 6px 14px;
    background: var(--white);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--gray-900);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.showcase-content {
    padding: 28px;
}

.showcase-content h3 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 12px;
}

.showcase-content p {
    color: var(--gray-600);
    line-height: 1.6;
    margin-bottom: 20px;
}

.showcase-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.showcase-tags span {
    padding: 6px 12px;
    background: var(--gray-100);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--gray-700);
    border: 1px solid var(--gray-200);
}

.showcase-cta {
    text-align: center;
    margin-top: 48px;
}

/* ===== WHY CHOOSE SECTION ===== */
.faq-section {
    padding: 100px 0;
    background: var(--white);
}

.faq-container {
    max-width: 900px;
    margin: 0 auto;
}

/* Override body global FAQ styles */
body.web-dev-page .faq-item {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 16px;
    margin-bottom: 16px;
    transition: all 0.3s ease;
    overflow: hidden;
}

body.web-dev-page .faq-item:hover {
    border-color: var(--blue-900) !important;
    background: var(--blue-900) !important;
    color: var(--white) !important;
    transform: translateY(-4px) !important;
}

body.web-dev-page .faq-item:hover .faq-question {
    background: var(--blue-900);
}

body.web-dev-page .faq-item:hover .faq-answer {
    max-height: 300px;
    padding: 0 28px 24px 28px;
    background: var(--blue-900);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 28px;
    cursor: pointer;
    gap: 20px;
    transition: all 0.3s ease;
}

body.web-dev-page .faq-question h3 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--gray-900);
    transition: color 0.3s ease;
    margin: 0;
}

body.web-dev-page .faq-item:hover .faq-question h3 {
    color: var(--white) !important;
}

body.web-dev-page .faq-toggle {
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--gray-600);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

body.web-dev-page .faq-item:hover .faq-toggle {
    color: var(--white) !important;
}

body.web-dev-page .faq-item.active .faq-toggle {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    background: transparent;
}

body.web-dev-page .faq-item.active .faq-answer {
    max-height: 300px;
    padding: 0 28px 24px 28px;
}

body.web-dev-page .faq-answer p {
    color: var(--gray-600);
    line-height: 1.8;
    margin: 0;
    transition: color 0.3s ease;
}

body.web-dev-page .faq-item:hover .faq-answer p {
    color: var(--white) !important;
}

/* ===== FINAL CTA SECTION ===== */
.final-cta-section {
    padding: 100px 0;
    background: #0a0e27;
    color: var(--white);
    text-align: center;
}

.cta-content h2 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
    color: var(--white);
}

.cta-content p {
    font-size: 1.15rem;
    margin-bottom: 36px;
    opacity: 0.85;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    color: rgba(255, 255, 255, 0.85);
}

.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.cta-features {
    display: flex;
    gap: 40px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 600;
    font-size: 0.95rem;
}

.cta-feature svg {
    color: #FDCD06;
    width: 20px;
    height: 20px;
}

/* ===== SCROLL REVEAL ANIMATION ===== */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.reveal-on-scroll.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .web-hero {
        padding: 140px 0 80px;
        min-height: 70vh;
    }
    
    .hero-trust-badges {
        gap: 30px;
    }
    
    .trust-number {
        font-size: 2rem;
    }
    
    .services-grid,
    .why-grid,
    .showcase-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-cta-group {
        flex-direction: column;
    }
    
    .btn-primary,
    .btn-secondary {
        width: 100%;
        text-align: center;
    }
    
    .process-timeline::before {
        left: 30px;
    }
    
    .process-step {
        gap: 24px;
        margin-bottom: 50px;
    }
    
    .step-number {
        width: 60px;
        height: 60px;
        font-size: 1.25rem;
    }
    
    .step-content h3 {
        font-size: 1.35rem;
    }
    
    .step-content p {
        font-size: 0.95rem;
    }
    
    .tech-logos {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 24px;
    }
    
    .section-title {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    .services-grid,
    .why-grid,
    .showcase-grid {
        gap: 20px;
    }
    
    .service-card,
    .why-card,
    .testimonial-card {
        padding: 24px;
    }
    
    .tech-category {
        padding: 28px 20px;
    }
    
    .process-timeline::before {
        left: 20px;
    }
    
    .process-step {
        gap: 16px;
        margin-bottom: 40px;
    }
    
    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.1rem;
        border-width: 2px;
    }
    
    .step-content h3 {
        font-size: 1.2rem;
        margin-bottom: 10px;
    }
    
    .step-content p {
        font-size: 0.9rem;
        margin-bottom: 14px;
    }
    
    .step-deliverables {
        gap: 6px;
    }
    
    .step-deliverables li {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
}
