/* Our Work Page Styles */

.work-page {
    padding-top: 80px;
}

/* Hero Section */
.work-hero {
    padding: 64px 0;
    background: linear-gradient(135deg, rgba(0, 113, 227, 0.03) 0%, rgba(0, 113, 227, 0.08) 100%);
    text-align: center;
}

.work-hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-block;
    background: #0071E3;
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 24px;
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.2;
    color: #1d1d1f;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.hero-description {
    font-size: 1.25rem;
    color: #6e6e73;
    line-height: 1.6;
}

/* Services Section */
.services-section {
    padding: 80px 0;
    background: white;
}

.services-grid {
    display: grid;
    gap: 48px;
}

.service-card {
    display: grid;
    grid-template-columns: 500px 1fr;
    gap: 48px;
    align-items: start;
    padding: 0 40px;
    border-radius: 20px;
    overflow: visible;
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-card:nth-child(even) {
    grid-template-columns: 1fr 500px;
}

.service-card:nth-child(even) .service-image {
    order: 2;
}

.service-card:nth-child(even) .service-content {
    order: 1;
}

.service-image {
    position: relative;
    width: 100%;
    height: 400px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 113, 227, 0.15);
    transition: box-shadow 0.3s ease;
}

.service-card:hover .service-image {
    box-shadow: 0 20px 60px rgba(0, 113, 227, 0.25);
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Service Carousel */
.service-carousel {
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
}

.carousel-track {
    display: flex;
    animation: carousel-slide 20s infinite ease-in-out;
}

.carousel-track img {
    min-width: 100%;
    height: 400px;
    object-fit: cover;
    transition: opacity 0.5s ease;
}

.service-card:hover .carousel-track {
    animation-play-state: paused;
}

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.service-carousel:hover .carousel-arrow {
    opacity: 1;
}

.carousel-arrow:hover {
    background: white;
    transform: translateY(-50%) scale(1.1);
}

.carousel-arrow svg {
    width: 20px;
    height: 20px;
    color: #0071E3;
}

.carousel-prev {
    left: 16px;
}

.carousel-next {
    right: 16px;
}

@keyframes carousel-slide {
    0%, 18% { transform: translateX(0); }
    20%, 38% { transform: translateX(-100%); }
    40%, 58% { transform: translateX(-200%); }
    60%, 78% { transform: translateX(-300%); }
    80%, 98% { transform: translateX(-400%); }
    100% { transform: translateX(0); }
}

/* Service Illustrations */
.service-illustration {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

/* Website Illustration */
.illustration-website {
    width: 100%;
    max-width: 350px;
}

.browser-window {
    background: white;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

.browser-header {
    background: #e8eaed;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.browser-dots {
    display: flex;
    gap: 6px;
}

.browser-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ff5f56;
}

.browser-dots span:nth-child(2) {
    background: #ffbd2e;
}

.browser-dots span:nth-child(3) {
    background: #27c93f;
}

.browser-url {
    flex: 1;
    background: white;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 11px;
    color: #5f6368;
}

.browser-content {
    padding: 24px;
    background: white;
    min-height: 200px;
}

.content-block {
    background: linear-gradient(90deg, #e8eaed 0%, #f1f3f4 100%);
    border-radius: 4px;
    margin-bottom: 16px;
    animation: pulse 2s ease-in-out infinite;
}

.content-block.header {
    height: 40px;
    width: 60%;
}

.content-row {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.content-block.small {
    height: 80px;
    flex: 1;
}

.content-block.large {
    height: 100px;
}

/* Software Illustration */
.illustration-software {
    width: 100%;
    max-width: 350px;
}

.code-editor {
    background: #1e1e1e;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    display: flex;
    height: 200px;
}

.editor-sidebar {
    width: 60px;
    background: #252526;
    padding: 16px 8px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.folder {
    width: 100%;
    height: 8px;
    background: #3c3c3c;
    border-radius: 2px;
}

.editor-main {
    flex: 1;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.code-line {
    height: 4px;
    background: linear-gradient(90deg, #569cd6 0%, #4ec9b0 100%);
    border-radius: 2px;
    width: 80%;
    animation: code-glow 3s ease-in-out infinite;
}

.code-line.short {
    width: 40%;
}

.code-line.medium {
    width: 60%;
}

.terminal {
    background: #0c0c0c;
    border-radius: 8px;
    padding: 16px;
    margin-top: 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.terminal-line {
    height: 4px;
    background: #00ff00;
    border-radius: 2px;
    width: 70%;
    margin-bottom: 8px;
}

.terminal-line.short {
    width: 40%;
}

.terminal-cursor {
    width: 8px;
    height: 16px;
    background: #00ff00;
    animation: blink 1s step-end infinite;
}

/* Graphics Illustration */
.illustration-graphics {
    width: 100%;
    max-width: 350px;
}

.design-canvas {
    background: white;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    position: relative;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.design-shape {
    animation: float 3s ease-in-out infinite;
}

.design-shape.circle {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    animation-delay: 0s;
}

.design-shape.square {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    border-radius: 8px;
    animation-delay: 0.5s;
}

.design-shape.triangle {
    width: 0;
    height: 0;
    border-left: 30px solid transparent;
    border-right: 30px solid transparent;
    border-bottom: 52px solid #4facfe;
    animation-delay: 1s;
}

.design-palette {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    background: white;
    padding: 12px 20px;
    border-radius: 24px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.color-dot {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.color-dot:hover {
    transform: scale(1.2);
}

.color-dot.blue {
    background: #0071E3;
}

.color-dot.green {
    background: #34c759;
}

.color-dot.orange {
    background: #ff9500;
}

.color-dot.purple {
    background: #af52de;
}

.design-tools {
    display: flex;
    gap: 12px;
    margin-top: 16px;
    justify-content: center;
}

.tool-icon {
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Consultation Illustration */
.illustration-consultation {
    width: 100%;
    max-width: 350px;
}

.consultation-scene {
    background: white;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    height: 200px;
    display: flex;
    align-items: flex-end;
    justify-content: space-around;
    position: relative;
}

.person {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    animation: bounce 2s ease-in-out infinite;
}

.person-1 {
    animation-delay: 0s;
}

.person-2 {
    animation-delay: 0.5s;
}

.person-head {
    width: 30px;
    height: 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
}

.person-body {
    width: 40px;
    height: 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 8px 8px 0 0;
}

.chart {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    height: 80px;
}

.chart-bar {
    width: 20px;
    background: linear-gradient(180deg, #0071E3 0%, #00a8ff 100%);
    border-radius: 4px 4px 0 0;
    animation: grow 2s ease-in-out infinite;
}

.lightbulb {
    position: absolute;
    top: 20px;
    right: 30px;
    animation: glow 2s ease-in-out infinite;
}

.bulb {
    width: 30px;
    height: 30px;
    background: #ffd700;
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.6);
}

.bulb-base {
    width: 20px;
    height: 10px;
    background: #c0c0c0;
    margin: 0 auto;
    border-radius: 0 0 4px 4px;
}

/* Animations */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.6;
    }
}

@keyframes code-glow {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

@keyframes blink {
    0%, 50% {
        opacity: 1;
    }
    51%, 100% {
        opacity: 0;
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

@keyframes grow {
    0%, 100% {
        transform: scaleY(1);
    }
    50% {
        transform: scaleY(0.8);
    }
}

@keyframes glow {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.1);
    }
}

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

.service-overlay {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, rgba(0, 113, 227, 0.95), rgba(0, 91, 181, 0.95));
    backdrop-filter: blur(10px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(0, 113, 227, 0.3);
    transition: transform 0.3s ease;
}

.service-card:hover .service-overlay {
    transform: scale(1.1);
}

.service-number {
    font-size: 24px;
    font-weight: 700;
    color: white;
}

.service-content {
    padding: 24px 0;
}

.service-title {
    font-size: 2rem;
    font-weight: 700;
    color: #1d1d1f;
    margin-bottom: 16px;
    letter-spacing: -0.01em;
}

.service-description {
    font-size: 1.125rem;
    color: #6e6e73;
    line-height: 1.7;
    margin-bottom: 32px;
}

.service-features {
    margin-bottom: 32px;
}

.service-features h4,
.service-tech h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 13px;
}

.service-features ul {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.service-features li {
    font-size: 15px;
    color: #6e6e73;
    padding-left: 24px;
    position: relative;
}

.service-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #0071E3;
    font-weight: 700;
}

.service-tech {
    margin-bottom: 32px;
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tech-tag {
    display: inline-block;
    background: rgba(0, 113, 227, 0.1);
    color: #0071E3;
    padding: 6px 14px;
    border-radius: 16px;
    font-size: 13px;
    font-weight: 500;
}

.service-cta {
    background: #0071E3;
    color: white;
    border: none;
    padding: 14px 32px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-cta:hover {
    background: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 113, 227, 0.3);
}

/* Process Section */
.process-section {
    padding: 80px 0;
    background: #f5f5f7;
}

.section-title-center {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1d1d1f;
    text-align: center;
    margin-bottom: 16px;
    letter-spacing: -0.01em;
}

.section-description {
    text-align: center;
    font-size: 1.125rem;
    color: #6e6e73;
    margin-bottom: 64px;
}

.process-timeline {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.process-step {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 32px;
    align-items: start;
}

.step-number {
    width: 80px;
    height: 80px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 700;
    color: #0071E3;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.step-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 12px;
}

.step-content p {
    font-size: 1rem;
    color: #6e6e73;
    line-height: 1.7;
}

/* Technologies Section */
.technologies-section {
    padding: 80px 0;
    background: white;
}

.tech-categories {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.tech-category {
    padding: 32px;
    text-align: center;
}

.tech-category h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 24px;
}

.tech-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tech-item {
    background: rgba(0, 113, 227, 0.08);
    color: #0071E3;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
}

/* CTA Section */
.work-cta-section {
    padding: 80px 0;
    background: #f5f5f7;
}

.cta-box {
    padding: 64px;
    border-radius: 20px;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.cta-box h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1d1d1f;
    margin-bottom: 16px;
}

.cta-box p {
    font-size: 1.125rem;
    color: #6e6e73;
    margin-bottom: 32px;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .service-card,
    .service-card:nth-child(even) {
        grid-template-columns: 1fr;
    }
    
    .service-card:nth-child(even) .service-image,
    .service-card:nth-child(even) .service-content {
        order: initial;
    }
    
    .service-features ul {
        grid-template-columns: 1fr;
    }
    
    .tech-categories {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .process-step {
        grid-template-columns: 60px 1fr;
        gap: 20px;
    }
    
    .step-number {
        width: 60px;
        height: 60px;
        font-size: 22px;
    }
    
    .tech-categories {
        grid-template-columns: 1fr;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    .cta-box {
        padding: 48px 32px;
    }
}

@media (max-width: 480px) {
    .service-image {
        height: 300px;
    }
}
