/* Services Section */
.services-section { 
    min-height: 90vh; 
    background: black; 
    padding: 80px 20px; 
    position: relative; /* Add relative positioning */
}

/* Background Strips - Changed from fixed to absolute */
.background-strips { 
    position: absolute; 
    top: 0; 
    left: 0; 
    right: 0; 
    bottom: 0; 
    overflow: hidden; 
    pointer-events: none; 
}
.strip { position: absolute; } /* Changed from fixed to absolute */
.strip-1 { top: -80px; left: -80px; width: 8px; height: 100%; background: linear-gradient(to bottom, rgba(20,83,45,.3), rgba(51,65,85,.2) 50%, transparent); transform: rotate(12deg); animation: float-1 8s ease-in-out infinite; }
.strip-1 .strip-blur { width: 100%; height: 100%; background: linear-gradient(to bottom, rgba(15,118,110,.4) 0%, transparent); filter: blur(2px); }
.strip-2 { top: 0; left: 25%; width: 4px; height: 100%; background: linear-gradient(to bottom, transparent 0%, rgba(13,148,136,.25) 50%, transparent); animation: float-2 6s ease-in-out infinite 1s; }
.strip-2 .strip-blur { width: 100%; height: 100%; background: linear-gradient(to bottom, transparent 0%, rgba(71,85,105,.3) 50%, transparent); filter: blur(2px); }
.strip-3 { top: -128px; right: 33.33%; width: 6px; height: 100%; background: linear-gradient(to bottom, rgba(15,118,110,.35), rgba(51,65,85,.25) 50%, transparent); transform: rotate(-12deg); animation: float-3 7s ease-in-out infinite 2s; }
.strip-3 .strip-blur { width: 100%; height: 100%; background: linear-gradient(to bottom, rgba(13,148,136,.4) 0%, transparent); filter: blur(2px); }
.strip-4 { top: 25%; left: -80px; width: calc(100% + 160px); height: 4px; background: linear-gradient(to right, transparent, rgba(13,148,136,.2) 50%, transparent); transform: rotate(3deg); animation: float-4 9s ease-in-out infinite .5s; }
.strip-4 .strip-blur { width: 100%; height: 100%; background: linear-gradient(to right, transparent, rgba(71,85,105,.25) 50%, transparent); filter: blur(2px); }
.strip-5 { bottom: 33.33%; right: -80px; width: 6px; height: 100%; background: linear-gradient(to bottom, transparent, rgba(15,118,110,.3) 50%, rgba(20,83,45,.2)); transform: rotate(15deg); animation: float-5 6.5s ease-in-out infinite 1.5s; }
.strip-5 .strip-blur { width: 100%; height: 100%; background: linear-gradient(to bottom, transparent, rgba(51,65,85,.35) 50%, transparent); filter: blur(2px); }
.strip-6 { top: 50%; left: 50%; width: 2px; height: 384px; background: linear-gradient(to bottom, rgba(13,148,136,.25), rgba(71,85,105,.2) 50%, transparent); transform: translate(-50%,-50%) rotate(45deg); animation: float-6 8.5s ease-in-out infinite 3s; }
.strip-6 .strip-blur { width: 100%; height: 100%; background: linear-gradient(to bottom, rgba(6,182,212,.3) 0%, transparent); filter: blur(2px); }
.strip-7 { top: 0; right: 25%; width: 2px; height: 100%; background: linear-gradient(to bottom, rgba(20,83,45,.15), transparent 50%, rgba(15,118,110,.15)); animation: float-7 10s ease-in-out infinite 2.5s; }
.strip-8 { bottom: 0; left: 33.33%; width: calc(100% + 160px); height: 2px; background: linear-gradient(to right, rgba(15,118,110,.15), transparent 50%, rgba(13,148,136,.15)); animation: float-8 7.5s ease-in-out infinite 4s; }

/* Container & Header */
.container-s { position: relative; z-index: 10; max-width: 1152px; margin: 0 auto; }
.header-s { text-align: center; margin-bottom: 64px; }
.header-s h2 { font-size: 4.25rem; font-weight: 700; color: #fff; margin-bottom: 24px; }
.header-s-accent { color: #d1d5db; }
.header-s p { font-size: 1.125rem; color: #9ca3af; max-width: 512px; margin: 0 auto 32px; line-height: 1.75; }
.header-s-line { height: 1px; width: 80px; background: #4b5563; border-radius: 9999px; margin: 0 auto; }

/* Services Grid & Cards */
.services-grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(280px,1fr)); }
@media (min-width:768px) { .services-grid { grid-template-columns: repeat(2,1fr); }}
@media (min-width:1024px) { .services-grid { grid-template-columns: repeat(4,1fr); }}
.service-card { 
    position: relative; 
    height: 320px; 
    padding: 32px; 
    border-radius: 16px; 
    cursor: pointer; 
    background: rgba(255,255,255,0.02); 
    box-shadow: 0 20px 40px -12px rgba(71,85,105,.125), 0 0 0 1px rgba(255,255,255,.05); 
    backdrop-filter: blur(8px); 
    opacity: 0; 
    transform: translateY(30px); 
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease;
    transform-style: preserve-3d;
    will-change: transform;
}
.service-card.fade-in { opacity: 1; transform: translateY(0); }
.service-card:hover { box-shadow: 0 25px 50px -12px rgba(71,85,105,.25); }
.card-glow { position: absolute; inset: 0; border-radius: 16px; background: linear-gradient(135deg,#334155,#1e293b,#0f172a); filter: blur(32px); transform: scale(1.05); opacity: 0; transition: opacity .5s ease; z-index: -1; }
.service-card.hovered .card-glow { opacity: .3; }
.card-content { position: relative; z-index: 10; display: flex; flex-direction: column; height: 100%; }
.icon-container { 
    width: 56px; 
    height: 56px; 
    border-radius: 12px; 
    background: rgba(255,255,255,.05); 
    backdrop-filter: blur(8px); 
    border: 1px solid rgba(255,255,255,.1); 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    margin-bottom: 24px; 
    transition: all .3s ease;
    flex-shrink: 0; /* Prevent container from shrinking */
}
.service-card.hovered .icon-container { transform: scale(1.1); background: rgba(255,255,255,.1); }
.icon { 
    width: 28px; 
    height: 28px; 
    color: rgba(255,255,255,.9); 
    filter: drop-shadow(0 1px 2px rgba(0,0,0,.1));
    /* Ensure consistent sizing regardless of SVG content */
    flex-shrink: 0;
    display: block;
    /* Force all SVGs to use the exact same dimensions */
    min-width: 28px;
    min-height: 28px;
    max-width: 28px;
    max-height: 28px;
    /* Ensure proper scaling of SVG content */
    object-fit: contain;
}
/* Additional specificity to override any inherited styles */
.icon-container .icon {
    width: 28px !important;
    height: 28px !important;
}
/* Ensure SVG elements inside icons maintain consistent sizing */
.icon svg {
    width: 100%;
    height: 100%;
    display: block;
}
h3 { font-size: 1.25rem; color: #fff; margin-bottom: 16px; font-weight: 600; }
p { flex-grow: 1; font-size: .875rem; line-height: 1.75; color: rgba(255,255,255,.8); }
.decorative-element { position: absolute; border-radius: 50%; background: rgba(255,255,255,.03); }
.decorative-1 { top: 24px; right: 24px; width: 64px; height: 64px; filter: blur(40px); }
.decorative-2 { bottom: 24px; left: 24px; width: 48px; height: 48px; filter: blur(24px); }
.accent-line { height: 2px; width: 32px; background: rgba(255,255,255,.2); border-radius: 9999px; margin-top: 24px; transition: all .3s ease; }
.service-card.hovered .accent-line { width: 100%; background: rgba(255,255,255,.4); }

@keyframes float-1{0%,100%{transform:rotate(12deg) translateY(0) translateZ(0)}50%{transform:rotate(12deg) translateY(-10px) translateZ(20px)}}
@keyframes float-2{0%,100%{transform:translateY(0) translateZ(0) scaleY(1)}50%{transform:translateY(-15px) translateZ(15px) scaleY(1.1)}}
@keyframes float-3{0%,100%{transform:rotate(-12deg) translateY(0) translateZ(0)}50%{transform:rotate(-12deg) translateY(-8px) translateZ(25px)}}
@keyframes float-4{0%,100%{transform:rotate(3deg) translateX(0) translateZ(0)}50%{transform:rotate(3deg) translateX(-12px) translateZ(18px)}}
@keyframes float-5{0%,100%{transform:rotate(15deg) translateY(0) translateZ(0)}50%{transform:rotate(15deg) translateY(-12px) translateZ(22px)}}
@keyframes float-6{0%,100%{transform:translate(-50%,-50%) rotate(45deg) translateZ(0)}50%{transform:translate(-50%,-50%) rotate(45deg) translateZ(30px) scale(1.1)}}
@keyframes float-7{0%,100%{transform:translateY(0) translateZ(0);opacity:.15}50%{transform:translateY(-20px) translateZ(10px);opacity:.25}}
@keyframes float-8{0%,100%{transform:translateX(0) translateZ(0);opacity:.15}50%{transform:translateX(-15px) translateZ(12px);opacity:.25}}

::-webkit-scrollbar{width:8px} ::-webkit-scrollbar-track{background:#1e293b} ::-webkit-scrollbar-thumb{background:linear-gradient(45deg,#0f766e,#374151);border-radius:4px} ::-webkit-scrollbar-thumb:hover{background:linear-gradient(45deg,#0d9488,#4b5563)}
@media(max-width:768px){.services-section{padding:60px 16px} .header h2{font-size:1.875rem} .header p{font-size:1rem} .service-card{height:280px;padding:24px} .services-grid{gap:16px}}