/* Services Page Styles */
.services-page {
    padding-top: 100px; /* Account for fixed header */
}

/* Web Development Section */
.web-development-section {
    background: linear-gradient(127.39deg, #0E1741 30.88%, #FFFFFF 99.07%);
    padding: 150px 0;
    position: relative;
    overflow: hidden;
}

.web-development-section .text-content {
    z-index: 2;
    position: relative;
}

.web-development-section .section-subtitle {
    color: var(--text-primary);
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    line-height: 150%;
    letter-spacing: 0%;
}

.web-development-section .section-title {
    background: linear-gradient(90deg, #FFFFFF 0%, #999999 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 2rem;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-style: Medium;
    font-size: 40px;
    line-height: 140%;
    letter-spacing: 0%;
    max-width: 570px;
}

.web-development-section .section-description {
    color: var(--text-primary);
    margin-bottom: 3rem;
    font-family: 'Menlo', 'Monaco', 'Consolas', 'Liberation Mono', 'Courier New', monospace;
    font-weight: 400;
    font-style: Regular;
    font-size: 16px;
    line-height: 160%;
    letter-spacing: 0%;
    max-width: 850px;
    padding-bottom: 30px;
}
.web-development-section .web-development-image {
    position: absolute;
    top: 10%;
    right: 0;
    mix-blend-mode: luminosity;
}

/* Services Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
}

.service-card {
    background: #FFFFFF8C;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 35px;
    display: flex;
    gap: 25px;
    transition: all 0.3s ease;
    backdrop-filter: blur(30px)
}

.service-card:hover {
    transform: translateY(-4px);
    background: rgb(255 255 255 / 85%);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.service-icon {
    flex-shrink: 0;
}

.service-content h3 {
    color: #000000;
    margin-bottom: 12px;
    font-family: 'Inter', sans-serif;
    font-style: Semi Bold;
    font-size: 23px;
    line-height: 140%;
    letter-spacing: 0%;
}

.service-content p {
    color: #000000;
    margin: 0;
    font-family: 'Menlo', 'Monaco', 'Consolas', 'Liberation Mono', 'Courier New', monospace;
    font-weight: 400;
    font-style: Regular;
    font-size: 14px;
    line-height: 150%;
    letter-spacing: 0%;

}

/* Background Graphics */
.background-graphics {
    position: relative;
    height: 100%;
}

.graphic {
    position: absolute;
    opacity: 0.1;
}

.graphic.server-rack {
    width: 200px;
    height: 300px;
    background: linear-gradient(45deg, #007aff, #00d4ff);
    border-radius: 8px;
    top: 20%;
    right: 10%;
    animation: float 6s ease-in-out infinite;
}

.graphic.data-center {
    width: 150px;
    height: 200px;
    background: linear-gradient(45deg, #007aff, #00d4ff);
    border-radius: 8px;
    bottom: 20%;
    right: 20%;
    animation: float 6s ease-in-out infinite reverse;
}

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

/* AI Solutions Section */
.ai-solutions-section {
    background: linear-gradient(180deg, #B0D8F3 0%, #724997 100%);
    padding: 130px 0;
    position: relative;
    overflow: hidden;
}
.ai-solutions-section .ai-solutions-image {
    position: absolute;
    top: 6%;
    left: 0;
    mix-blend-mode: luminosity;
}

.ai-solutions-section .text-content {
    z-index: 2;
    position: relative;
}

.ai-solutions-section .section-subtitle {
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    opacity: 0.8;
    text-align: end;
}

.ai-solutions-section .section-title {
    color: var(--text-primary);
    margin-bottom: 2rem;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-style: Medium;
    font-size: 40px;
    line-height: 140%;
    letter-spacing: 0%;
    text-align: right;
}

.ai-solutions-section .section-description {
    color: var(--text-primary);
    margin-bottom: 3rem;
    font-family: 'Menlo', 'Monaco', 'Consolas', 'Liberation Mono', 'Courier New', monospace;
    font-weight: 400;
    font-style: Regular;
    font-size: 16px;
    line-height: 160%;
    letter-spacing: 0%;
    text-align: right;
    max-width: 660px;
    margin-left: auto;
}

/* AI Services Grid */
.ai-services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.ai-service-card:nth-child(1) {
    border-left: none;
}

.ai-service-card {
    background: #FFFFFF8C;
    backdrop-filter: blur(30px);
    transition: all 0.3s ease;
    border-left: 1px solid #ffffff;
}

.ai-service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(142, 68, 173, 0.2);
}
.ai-service-card img {
    width: 100%;
    height: 100px;
    mix-blend-mode: luminosity;
    object-fit: cover;
    display: block;
}
.ai-service-card-image {
    background-color: #FFFFFF;
    position: relative;
}
.ai-service-card-image:before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: #ffffff40;
    width: 100%;
    height: 100%;
    z-index: 1;
}
.ai-service-card h3 {
    color: #000000;
    margin-bottom: 20px;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-style: Semi Bold;
    font-size: 23px;
    line-height: 140%;
    letter-spacing: 0%;
}

.ai-service-card p {
    color: #000000;
    margin: 0;
    font-family: 'Menlo', 'Monaco', 'Consolas', 'Liberation Mono', 'Courier New', monospace;
    font-weight: 400;
    font-style: Regular;
    font-size: 14px;
    line-height: 150%;
    letter-spacing: 0%;
    padding-bottom: 30px;
}

.ai-service-card-content {
    padding: 30px;
}

.robot-head {
    position: relative;
    margin-bottom: 40px;
}

.robot-face {
    font-size: 8rem;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.3));
    animation: robotGlow 4s ease-in-out infinite;
}

.robot-wires {
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 40px;
    background: linear-gradient(to bottom, #007aff, #00d4ff);
    border-radius: 2px;
}

.robot-wires::before,
.robot-wires::after {
    content: '';
    position: absolute;
    width: 4px;
    height: 30px;
    background: linear-gradient(to bottom, #007aff, #00d4ff);
    border-radius: 2px;
}

.robot-wires::before {
    left: -20px;
    transform: rotate(-15deg);
}

.robot-wires::after {
    right: -20px;
    transform: rotate(15deg);
}

@keyframes robotGlow {
    0%, 100% { filter: drop-shadow(0 10px 20px rgba(0, 122, 255, 0.3)); }
    50% { filter: drop-shadow(0 10px 20px rgba(0, 122, 255, 0.6)); }
}

/* AI Background Graphics */
.ai-background-graphics {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    width: 100%;
}

.ai-background-graphics .graphic {
    height: 80px;
    background: linear-gradient(45deg, #8e44ad, #9b59b6);
    border-radius: 8px;
    opacity: 0.3;
    animation: aiFloat 8s ease-in-out infinite;
}

.ai-background-graphics .graphic:nth-child(2) {
    animation-delay: -2s;
}

.ai-background-graphics .graphic:nth-child(3) {
    animation-delay: -4s;
}

.ai-background-graphics .graphic:nth-child(4) {
    animation-delay: -6s;
}


/* Fintech Innovations Section */
.fintech-innovations-section {
    background: linear-gradient(127.39deg, #FFFFFF 2.23%, #F56353 74.86%);
    padding: 150px 0;
    position: relative;
    overflow: hidden;
}

.fintech-innovations-section .text-content {
    z-index: 2;
    position: relative;
}

.fintech-innovations-section .section-subtitle {
    color: #000000;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    line-height: 150%;
    letter-spacing: 0%;
}

.fintech-innovations-section .section-title {
    color: #000000;
    margin-bottom: 2rem;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-style: Medium;
    font-size: 40px;
    line-height: 140%;
    letter-spacing: 0%;
    max-width: 800px;
}

.fintech-innovations-section .section-description {
    color: #000000;
    margin-bottom: 3rem;
    font-family: 'Menlo', 'Monaco', 'Consolas', 'Liberation Mono', 'Courier New', monospace;
    font-weight: 400;
    font-style: Regular;
    font-size: 16px;
    line-height: 160%;
    letter-spacing: 0%;
    max-width: 970px;
    padding-bottom: 30px;
}
.fintech-innovations-section .fintech-innovations-image {
    position: absolute;
    bottom: 0;
    right: 0;
    mix-blend-mode: screen;
}

.fintech-innovations-section .services-grid {
    grid-template-columns: repeat(14, 1fr);
}

.fintech-innovations-section .services-grid .service-card:nth-child(1) {
    grid-column-start: 1;
    grid-column-end: 9;
}

.fintech-innovations-section .services-grid .service-card:nth-child(2) {
    grid-column-start: 9;
    grid-column-end: 15;
}

.fintech-innovations-section .services-grid .service-card:nth-child(3) {
    grid-column-start: 1;
    grid-column-end: 7;
}
.fintech-innovations-section .services-grid .service-card:nth-child(4) {
    grid-column-start: 7;
    grid-column-end: 15;
}

@keyframes aiFloat {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(2deg); }
}

/* Responsive Design */
@media (max-width: 1200px) {
    .web-development-section .section-title,
    .ai-solutions-section .section-title {
        font-size: 3rem;
    }
    
    .service-card {
        padding: 20px;
    }
}

@media (max-width: 992px) {
    
    .web-development-section .section-title,
    .ai-solutions-section .section-title {
        font-size: 2.5rem;
    }
    
    .services-grid,
    .ai-services-grid {
        grid-template-columns: 1fr !important;
        max-width: 600px;
        margin: 0 auto;
        margin-top: 180px;
    }
    .fintech-innovations-section .fintech-innovations-image {
        width: 100%;
        top: 25%;
    }
    .fintech-innovations-section .services-grid .service-card {
        grid-column-start: unset !important;
        grid-column-end: unset !important;
    }
    .ai-service-card {
        border: none !important;
    }
    .web-development-section .web-development-image {
        top: 22%;
        width: 100%;
    }
    .ai-solutions-section .ai-solutions-image {
        top: 15%;
        width: 100%;
    }

    .ai-services-grid {
        gap: 25px;
    }
    
    .robot-face {
        font-size: 6rem;
    }
}

@media (max-width: 768px) {
    .services-page {
        padding-top: 100px;
    }
    
    .web-development-section,
    .ai-solutions-section {
        padding: 60px 0;
    }
    
    .web-development-section .section-title,
    .ai-solutions-section .section-title {
        font-size: 2rem;
    }
    
    .web-development-section .section-description,
    .ai-solutions-section .section-description {
        font-size: 1rem;
    }
    
    .service-card {
        padding: 16px;
        flex-direction: column;
    }
    
    .service-content h3,
    .ai-service-card h3 {
        font-size: 1.1rem;
    }
    
    .service-content p,
    .ai-service-card p {
        font-size: 0.9rem;
    }
    
    .robot-face {
        font-size: 4rem;
    }
    
    .ai-background-graphics {
        gap: 15px;
    }
    
    .ai-background-graphics .graphic {
        height: 60px;
    }

    .ai-service-card-content {
        padding: 30px 15px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1.5rem;
    }
    
    .web-development-section .section-title,
    .ai-solutions-section .section-title {
        font-size: 1.75rem;
    }

    .service-card {
        padding: 30px 14px;
    }
    
    .robot-face {
        font-size: 3rem;
    }
    
    .ai-background-graphics {
        gap: 10px;
    }
    
    .ai-background-graphics .graphic {
        height: 50px;
    }
}

/* Smooth scrolling and animations */
.services-page * {
    scroll-behavior: smooth;
}

.service-card,
.ai-service-card {
    will-change: transform;
}

/* Focus states for accessibility */
.service-card:focus,
.ai-service-card:focus {
    outline: 2px solid var(--primary-blue);
    outline-offset: 2px;
}

/* Print styles */
@media print {
    .services-page {
        padding-top: 0;
    }
    
    .web-development-section,
    .ai-solutions-section {
        background: white !important;
        color: black !important;
    }
    
    .service-card,
    .ai-service-card {
        background: #f5f5f5 !important;
        border: 1px solid #ddd !important;
    }
}
