/* ================================================================
   SERVICES INTRO – FULL BACKGROUND IMAGE + OVERLAY
   ================================================================ */

.services-intro {
  position: relative;
  min-height: 100vh;          /* full viewport height – adjust as needed */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 100px 20px;
  overflow: hidden;
  isolation: isolate;
  background-color: #0b0d10;  /* fallback */
}

/* ----- Background image with overlay (using pseudo-element) ----- */
.services-intro::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url('images/services-bg.jpg'); /* ← YOUR IMAGE PATH */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;  /* keeps image fixed on scroll */
  z-index: -2;
}

/* ----- Dark overlay (using pseudo-element) ----- */
.services-intro::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(8, 12, 25, 0.75); /* matches your inline overlay */
  z-index: -1;
}

/* ----- Content (above overlay) ----- */
.services-intro-content {
  position: relative;
  z-index: 2;
  max-width: 820px;
  width: 100%;
}

.services-tag {
  display: inline-block;
  font-size: clamp(0.65rem, 1.2vw, 0.8rem);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #60a5fa;
  background: rgba(59, 130, 246, 0.15);
  padding: 0.35rem 1.2rem;
  border-radius: 5px;
  border: 1px solid rgba(59, 130, 246, 0.2);
  margin-bottom: 1rem;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.services-intro-content h2 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  font-family: 'Space Grotesk', monospace;
  color: #ffffff;
  line-height: 1.2;
  margin-bottom: 0.8rem;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.services-intro-content h2 span {
  background: linear-gradient(135deg, #3b82f6, #60a5fa);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  display: inline-block;
}

.services-intro-content p {
  font-size: clamp(0.9rem, 1.6vw, 1.1rem);
  color: rgba(255, 255, 255, 0.85);
  max-width: 650px;
  margin: 0 auto;
  line-height: 1.7;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.4);
}

/* ================================================================
   RESPONSIVE TWEAKS
   ================================================================ */

@media screen and (max-width: 768px) {
  .services-intro {
    min-height: 80vh;
    padding: 80px 20px;
  }
  .services-intro-content h2 {
    font-size: clamp(1.8rem, 6vw, 2.5rem);
  }
  .services-intro-content p {
    font-size: 0.95rem;
  }
}

@media screen and (max-width: 480px) {
  .services-intro {
    min-height: 70vh;
    padding: 60px 15px;
  }
  .services-intro-content h2 {
    font-size: clamp(1.5rem, 7vw, 2rem);
  }
  .services-intro-content p {
    font-size: 0.85rem;
  }
}

/* ================================================================
   SCROLL‑REVEAL (optional)
   ================================================================ */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.services-tag.reveal { transition-delay: 0.05s; }
.services-intro-content h2.reveal { transition-delay: 0.10s; }
.services-intro-content p.reveal { transition-delay: 0.18s; }

/* ================================================================
   REDUCED MOTION
   ================================================================ */
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}
/* ============================================
   SERVICES GRID
============================================ */

.services-grid{
    width:100%;
    max-width:1400px;
    margin:40px auto 0;

    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(160px,1fr));

    gap:24px;

    justify-items:center;
    align-items:center;

    padding:20px;
}

/* ============================================
   SERVICE CARD
============================================ */

.service-card{
    width:100%;
    max-width:160px;
    aspect-ratio:1/1;

    background:#fff;

    border-radius:12px;

    border:1px solid rgba(26,26,46,.08);

    box-shadow:
        0 2px 4px rgba(0,0,0,.05),
        0 8px 18px rgba(0,0,0,.08),
        0 18px 35px rgba(67,97,238,.08);

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

    text-align:center;

    padding:18px;

    text-decoration:none;

    color:#1a1a2e;

    transition:.35s ease;

    transform-style:preserve-3d;

    overflow:hidden;

    position:relative;
}

.service-card:hover{

    transform:
        perspective(700px)
        rotateX(6deg)
        translateY(-8px);

    box-shadow:
        0 10px 25px rgba(0,0,0,.10),
        0 25px 45px rgba(67,97,238,.18);

}

/* Gradient Border */
.service-card::before {
    content: "";
    position: absolute;
    inset: 0;
    padding: 1px;
    border-radius: 12px;

    background: linear-gradient(135deg, #4361ee, #7209b7);

    opacity: 0;
    transition: .35s;

    /* Standard property */
    mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);

    /* WebKit fallback */
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);

    -webkit-mask-composite: xor;
    mask-composite: exclude;
}

.service-card:hover::before {
    opacity: 1;
}
/* ============================================
   ICON
============================================ */

.service-icon{

    width:60px;
    height:60px;

    border-radius:14px;

    background:
    linear-gradient(
    135deg,
    rgba(67,97,238,.08),
    rgba(114,9,183,.08));

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

    margin-bottom:15px;

    transition:.35s;
}

.service-icon img{

    width:30px;
    height:30px;

    object-fit:contain;

    transition:.35s;
}

.service-card:hover .service-icon{

    transform:
    translateZ(20px)
    scale(1.08);

}

.service-card:hover .service-icon img{

    transform:
    scale(1.1)
    rotate(-3deg);

}

/* ============================================
   TITLE
============================================ */

.service-card h3{

    font-size:.95rem;

    font-weight:700;

    line-height:1.4;

    color:#1a1a2e;

    transition:.3s;

}

.service-card:hover h3{

    color:#4361ee;

}

/* ============================================
   REVEAL
============================================ */

.reveal{

    opacity:0;

    transform:translateY(30px);

    transition:
    opacity .7s ease,
    transform .7s ease;

}

.reveal.visible{

    opacity:1;

    transform:translateY(0);

}

.service-card:nth-child(1){transition-delay:.05s;}
.service-card:nth-child(2){transition-delay:.10s;}
.service-card:nth-child(3){transition-delay:.15s;}
.service-card:nth-child(4){transition-delay:.20s;}
.service-card:nth-child(5){transition-delay:.25s;}
.service-card:nth-child(6){transition-delay:.30s;}
.service-card:nth-child(7){transition-delay:.35s;}
.service-card:nth-child(8){transition-delay:.40s;}
.service-card:nth-child(9){transition-delay:.45s;}
.service-card:nth-child(10){transition-delay:.50s;}
.service-card:nth-child(11){transition-delay:.55s;}
.service-card:nth-child(12){transition-delay:.60s;}
.service-card:nth-child(13){transition-delay:.65s;}

/* ============================================
   RESPONSIVE
============================================ */

@media(max-width:768px){

.services-grid{

grid-template-columns:repeat(2,1fr);

gap:16px;

}

.service-card{

max-width:150px;

padding:16px;

}

.service-icon{

width:52px;
height:52px;

}

.service-icon img{

width:26px;
height:26px;

}

.service-card h3{

font-size:.85rem;

}

}

@media(max-width:480px){

.services-grid{

gap:12px;

padding:10px;

}

.service-card{

max-width:130px;

padding:14px;

}

.service-icon{

width:46px;
height:46px;

}

.service-icon img{

width:22px;
height:22px;

}

.service-card h3{

font-size:.75rem;

}

}


/* ============================================
   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;
    }
}