/* ===========================
   AI Services Hero Section
=========================== */

.services{
    position: relative;
    padding: 140px 20px;
    overflow: hidden;

    background:
        linear-gradient(rgba(10,15,25,.75), rgba(10,15,25,.85)),
        url("../assets/background/aiservicebg.webp");

    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed; /* Optional Parallax Effect */
}

.services-overlay{
    position: relative;
    z-index: 2;
}

.section-header{
    max-width: 850px;
    margin: 0 auto;
    text-align: center;
}

.section-badge{
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    margin-bottom: 22px;

    background: rgba(77,143,255,.15);
    border: 1px solid rgba(77,143,255,.35);
    border-radius: 5px;

    color: #4D8FFF;
    font-size: .95rem;
    font-weight: 600;

    backdrop-filter: blur(10px);
}

.section-header h2{
    font-size: clamp(2.6rem,5vw,4.2rem);
    font-weight: 700;
    color: #fff;
    line-height: 1.15;
    margin-bottom: 22px;
}

.section-header h2 span{
    background: linear-gradient(90deg, #4D8FFF, #7C4DFF);

    background-clip: text;
    -webkit-background-clip: text;

    color: transparent;
    -webkit-text-fill-color: transparent;
}

.section-header p{
    max-width: 760px;
    margin: auto;
    color: rgba(255,255,255,.85);
    font-size: 1.08rem;
    line-height: 1.9;
}

/* Responsive */

@media (max-width:768px){

    .services{
        padding:100px 20px;
        background-attachment:scroll;
    }

    .section-header h2{
        font-size:2.3rem;
    }

    .section-header p{
        font-size:1rem;
    }

}

/* ==========================================
   AI Services - Premium Dark Cards
========================================== */

.services-container{
    max-width:1000px;
    margin:50px auto 0;
    padding:0 15px;

    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
    gap:18px;
}

/* ==========================================
   Card
========================================== */

.service-box{
    position:relative;
    padding:18px;
    border-radius:8px;

    background:linear-gradient(145deg,#0F172A,#1E293B);
    border:1px solid rgba(77,143,255,.25);

    backdrop-filter:blur(12px);

    overflow:hidden;
    transition:all .35s ease;
}

/* Blue Glow */

.service-box::after{
    content:"";
    position:absolute;
    top:-70px;
    right:-70px;

    width:140px;
    height:140px;

    background:#4D8FFF;
    filter:blur(80px);

    opacity:.15;
    transition:.35s;
}

/* Hover */

.service-box:hover{
    transform:translateY(-8px);
    background:linear-gradient(145deg,#172554,#1E3A8A);
    border-color:#4D8FFF;
    box-shadow:0 15px 40px rgba(77,143,255,.25);
}

.service-box:hover::before{
    opacity:1;
}

.service-box:hover::after{
    opacity:.35;
}

/* ==========================================
   Title
========================================== */

.service-box h3{
    color:#ffffff;
    font-size:1.1rem;
    font-weight:700;
    line-height:1.4;
    margin-bottom:10px;
}

/* ==========================================
   Description
========================================== */

.service-box p{
    color:#cbd5e1;
    font-size:.85rem;
    line-height:1.6;
    margin-bottom:15px;
}

/* ==========================================
   Features
========================================== */

.service-box ul{
    list-style:none;
    padding:0;
    margin:0 0 18px;
}

.service-box ul li{
    display:flex;
    align-items:center;
    gap:8px;

    color:#e2e8f0;
    font-size:.82rem;
    margin-bottom:8px;
}

.service-box ul li::before{
    content:"✓";

    width:18px;
    height:18px;

    display:flex;
    align-items:center;
    justify-content:center;

    border-radius:50%;

    background:linear-gradient(135deg,#4D8FFF,#7C4DFF);

    color:#fff;
    font-size:.65rem;
    font-weight:bold;

    flex-shrink:0;
}

/* ==========================================
   Button
========================================== */

.btn{
    display:inline-block;

    padding:9px 18px;

    background:linear-gradient(135deg,#4D8FFF,#7C4DFF);

    color:#fff;
    text-decoration:none;
    font-size:.82rem;
    font-weight:600;

    border-radius:6px;

    transition:.3s ease;
}

.btn:hover{
    transform:translateY(-2px);
    box-shadow:0 10px 25px rgba(77,143,255,.45);
}

/* ==========================================
   Responsive
========================================== */

/* Large Desktop */

@media (min-width:1200px){

    .services-container{
        grid-template-columns:repeat(4,1fr);
    }

}

/* Tablet */

@media (max-width:991px){

    .services-container{
        grid-template-columns:repeat(2,1fr);
    }

}

/* Mobile */

@media (max-width:768px){

    .services-container{
        grid-template-columns:1fr;
        gap:16px;
    }

    .service-box{
        padding:16px;
    }

    .service-box h3{
        font-size:1rem;
    }

    .service-box p,
    .service-box ul li{
        font-size:.8rem;
    }

    .btn{
        width:100%;
        text-align:center;
    }

}

/* ============================================
   CONTACT & HIRE SECTION - COMPACT
   ============================================ */

.contact-hire-section {
    padding: 50px 20px;
    background: linear-gradient(160deg, #060b18 0%, #0d1b2a 30%, #1a1a3e 60%, #0a0e1a 100%);
    position: relative;
    overflow: hidden;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Simple background glow - smaller */
.contact-hire-section::before {
    content: '';
    position: absolute;
    top: -20%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(67, 97, 238, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    animation: glowFloat 20s ease-in-out infinite alternate;
    pointer-events: none;
}

.contact-hire-section::after {
    content: '';
    position: absolute;
    bottom: -20%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(114, 9, 183, 0.04) 0%, transparent 70%);
    border-radius: 50%;
    animation: glowFloat 25s ease-in-out infinite alternate-reverse;
    pointer-events: none;
}

@keyframes glowFloat {
    0% {
        transform: translate(0, 0) scale(1);
    }
    100% {
        transform: translate(3%, 3%) scale(1.1);
    }
}

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

/* ----- Tag / Badge - SMALLER ----- */
.contact-hire-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 16px;
    background: rgba(67, 97, 238, 0.10);
    border: 1px solid rgba(67, 97, 238, 0.15);
    border-radius: 5px; /* Changed to 5px */
    color: #00bfff;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 16px;
    transition: all 0.3s ease;
}

.contact-hire-tag:hover {
    background: rgba(67, 97, 238, 0.18);
    border-color: rgba(67, 97, 238, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(67, 97, 238, 0.1);
}

.contact-hire-tag::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    background: #00ff88;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(0, 255, 136, 0.3);
    animation: blinkDot 1.8s ease-in-out infinite;
}

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

/* ----- Heading - SMALLER ----- */
.contact-hire-content h2 {
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 12px 0;
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.contact-hire-content h2::after {
    content: '✨';
    display: inline-block;
    margin-left: 8px;
    font-size: 0.6em;
    animation: sparkle 3s ease-in-out infinite;
}

@keyframes sparkle {
    0%, 100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
    50% {
        transform: scale(1.1) rotate(15deg);
        opacity: 0.7;
    }
}

/* ----- Description - SMALLER ----- */
.contact-hire-content p {
    color: #8892a8;
    font-size: clamp(0.9rem, 0.9vw, 1rem);
    line-height: 1.6;
    max-width: 500px;
    margin: 0 auto 28px;
    font-weight: 300;
    letter-spacing: 0.3px;
}

/* ----- Actions / Buttons ----- */
.hire-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

/* ----- Button Styles - SMALLER with 5px radius ----- */
.hire-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 5px; /* Changed to 5px */
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

/* Primary Button */
.hire-btn.primary {
    background: linear-gradient(135deg, #4361ee, #7209b7);
    color: #ffffff;
    border: none;
    box-shadow: 0 3px 20px rgba(67, 97, 238, 0.3);
    border-radius: 5px; /* Changed to 5px */
}

.hire-btn.primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #00bfff, #4361ee, #7209b7);
    background-size: 200% 200%;
    opacity: 0;
    transition: opacity 0.4s ease;
    border-radius: 5px; /* Changed to 5px */
}

.hire-btn.primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 6px 30px rgba(67, 97, 238, 0.4);
}

.hire-btn.primary:hover::before {
    opacity: 1;
}

.hire-btn.primary span,
.hire-btn.primary * {
    position: relative;
    z-index: 1;
}

.hire-btn.primary span {
    font-size: 1.1rem;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.hire-btn.primary:hover span {
    transform: translateX(4px) rotate(-8deg) scale(1.05);
}

/* Secondary Button */
.hire-btn.secondary {
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    border: 1.5px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 5px; /* Changed to 5px */
}

.hire-btn.secondary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.08);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 5px; /* Changed to 5px */
}

.hire-btn.secondary:hover {
    transform: translateY(-3px);
    border-color: rgba(67, 97, 238, 0.5);
    box-shadow: 0 6px 25px rgba(67, 97, 238, 0.15);
    background: rgba(255, 255, 255, 0.08);
}

.hire-btn.secondary:hover::before {
    opacity: 1;
}

.hire-btn.secondary * {
    position: relative;
    z-index: 1;
}

/* Focus states for accessibility */
.hire-btn:focus-visible {
    outline: 2px solid #00bfff;
    outline-offset: 3px;
    border-radius: 5px; /* Changed to 5px */
}

/* ============================================
   RESPONSIVE DESIGN - COMPACT
   ============================================ */

/* Tablets */
@media (max-width: 768px) {
    .contact-hire-section {
        padding: 40px 16px;
    }

    .contact-hire-content h2 {
        font-size: 1.8rem;
    }

    .contact-hire-content h2::after {
        font-size: 0.5em;
        margin-left: 6px;
    }

    .contact-hire-content p {
        font-size: 0.9rem;
        padding: 0 10px;
        margin-bottom: 24px;
    }

    .hire-actions {
        flex-direction: column;
        gap: 10px;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }

    .hire-btn {
        width: 100%;
        justify-content: center;
        padding: 12px 24px;
        font-size: 0.85rem;
        border-radius: 5px; /* Changed to 5px */
    }

    .contact-hire-tag {
        font-size: 0.6rem;
        padding: 4px 14px;
        letter-spacing: 1.5px;
        border-radius: 5px; /* Changed to 5px */
    }
}

/* Mobile */
@media (max-width: 480px) {
    .contact-hire-section {
        padding: 35px 14px;
    }

    .contact-hire-content h2 {
        font-size: 1.5rem;
    }

    .contact-hire-content h2::after {
        display: none;
    }

    .contact-hire-content p {
        font-size: 0.85rem;
        line-height: 1.6;
        margin-bottom: 20px;
        padding: 0 5px;
    }

    .hire-actions {
        max-width: 100%;
        gap: 10px;
    }

    .hire-btn {
        padding: 10px 18px;
        font-size: 0.8rem;
        gap: 6px;
        border-radius: 5px; /* Changed to 5px */
    }

    .hire-btn.primary span {
        font-size: 0.95rem;
    }

    .contact-hire-tag {
        font-size: 0.55rem;
        padding: 4px 12px;
        letter-spacing: 1px;
        gap: 6px;
        border-radius: 5px; /* Changed to 5px */
        margin-bottom: 14px;
    }

    .contact-hire-tag::before {
        width: 5px;
        height: 5px;
    }
}

/* Small phones */
@media (max-width: 360px) {
    .contact-hire-section {
        padding: 30px 10px;
    }

    .contact-hire-content h2 {
        font-size: 1.3rem;
    }

    .contact-hire-content p {
        font-size: 0.75rem;
        line-height: 1.5;
        margin-bottom: 16px;
    }

    .hire-btn {
        padding: 8px 14px;
        font-size: 0.75rem;
        gap: 5px;
        border-radius: 5px; /* Changed to 5px */
    }

    .hire-btn.primary span {
        font-size: 0.85rem;
    }

    .contact-hire-tag {
        font-size: 0.5rem;
        padding: 3px 10px;
        letter-spacing: 0.5px;
        gap: 5px;
        border-radius: 5px; /* Changed to 5px */
    }

    .contact-hire-tag::before {
        width: 4px;
        height: 4px;
    }
}

/* ============================================
   REDUCED MOTION
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    .contact-hire-section::before,
    .contact-hire-section::after {
        animation: none;
    }

    .contact-hire-tag {
        transition: none !important;
    }

    .contact-hire-tag::before {
        animation: none;
        opacity: 1;
    }

    .contact-hire-tag:hover {
        transform: none !important;
    }

    .contact-hire-content h2::after {
        animation: none;
    }

    .hire-btn {
        transition: none !important;
    }

    .hire-btn.primary::before,
    .hire-btn.secondary::before {
        transition: none !important;
    }

    .hire-btn:hover {
        transform: none !important;
    }

    .hire-btn.primary:hover span {
        transform: none !important;
    }

    .hire-btn.primary {
        box-shadow: 0 3px 20px rgba(67, 97, 238, 0.2);
    }
}

/* Print styles */
@media print {
    .contact-hire-section {
        background: #ffffff !important;
        padding: 30px 20px !important;
        border: 1px solid #ddd;
    }

    .contact-hire-content h2 {
        color: #1a1a2e !important;
    }

    .contact-hire-content p {
        color: #555 !important;
    }

    .hire-btn {
        border: 1px solid #333 !important;
        color: #333 !important;
        background: transparent !important;
        box-shadow: none !important;
        border-radius: 5px !important;
    }

    .hire-btn.primary {
        color: #333 !important;
    }

    .contact-hire-tag {
        background: transparent !important;
        border: 1px solid #333 !important;
        color: #333 !important;
        border-radius: 5px !important;
    }

    .contact-hire-tag::before {
        background: #333 !important;
        box-shadow: none !important;
    }

    .contact-hire-content h2::after {
        content: '' !important;
    }
}