/* ===========================
   CSS VARIABLES
   =========================== */
   :root {
    --primary: #081c34;
    --primary-hover: #0a2a55;
    --primary-light: #e8eef5;
}

/* ===========================
   SERVICES HERO
   =========================== */
#services-hero {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.5) 100%), url('../images/services.jpg') center/cover no-repeat;
    height: 85vh;
    position: relative;
    color: white;
    overflow: hidden;
}

#services-hero .hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
}

/* Animated Shapes */
.animated-shapes {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.shape {
    position: absolute;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    animation: float 20s infinite ease-in-out;
}

.shape-1 {
    width: 300px;
    height: 300px;
    top: -150px;
    left: -150px;
    animation-delay: 0s;
}

.shape-2 {
    width: 200px;
    height: 200px;
    top: 50%;
    right: -100px;
    animation-delay: 5s;
}

.shape-3 {
    width: 400px;
    height: 400px;
    bottom: -200px;
    left: 50%;
    animation-delay: 10s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.3;
    }
    50% {
        transform: translate(50px, -50px) scale(1.1);
        opacity: 0.6;
    }
}

/* Hero Badge */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 600;
    letter-spacing: 1px;
    font-size: 14px;
    text-transform: uppercase;
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: pulse 2s infinite;
}

.hero-badge i {
    color: #ffd700;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Hero Title */
.hero-title {
    font-size: 4.5rem;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    letter-spacing: -1px;
    line-height: 1.2;
}

.hero-subtitle {
    max-width: 700px;
    margin: 0 auto;
    opacity: 0.95;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

/* Scroll Indicator */
.hero-scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 32px;
    animation: bounce 2s infinite;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.8);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* ===========================
   SERVICES INTRO SECTION
   =========================== */
.services-intro {
    background: linear-gradient(to bottom, #f8f9fa 0%, #ffffff 100%);
}

.intro-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--primary);
    color: white;
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.intro-stats {
    display: flex;
    gap: 40px;
    margin-top: 30px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 5px;
}

.stat-label {
    color: #6c757d;
    font-size: 14px;
    font-weight: 500;
    margin: 0;
}

/* Intro Image */
.intro-image-wrapper {
    position: relative;
    padding: 20px;
}

.intro-image-bg {
    position: absolute;
    top: 0;
    right: 0;
    width: 90%;
    height: 90%;
    background: var(--primary);
    border-radius: 20px;
    z-index: 0;
}

.intro-image {
    position: relative;
    width: 100%;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    z-index: 1;
    transform: translate(-20px, 20px);
}

/* ===========================
   SERVICES LIST SECTION
   =========================== */
#services-list {
    background: #ffffff;
    position: relative;
}

#services-list::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 300px;
    background: linear-gradient(to bottom, #f8f9fa 0%, transparent 100%);
    pointer-events: none;
}

/* Section Badge */
.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--primary-light);
    color: var(--primary);
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 2px solid rgba(8, 28, 52, 0.1);
}

.section-desc {
    max-width: 600px;
    color: #6c757d;
}

/* ===========================
   SERVICE CARDS
   =========================== */
.services-card {
    position: relative;
    height: 480px;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.services-card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: var(--primary);
    border-radius: 20px;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

.services-card:hover::before {
    opacity: 1;
}

.services-card:hover {
    transform: translateY(-10px) scale(1.02);
}

/* Card Inner */
.services-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    background: white;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
}

.services-card:hover .services-card-inner {
    box-shadow: 0 20px 60px rgba(8, 28, 52, 0.3);
}

/* Image Wrapper */
.service-image-wrapper {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.service-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.services-card:hover .service-img {
    transform: scale(1.15) rotate(2deg);
}

.service-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.3) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.services-card:hover .service-overlay {
    opacity: 1;
}

/* Service Content */
.service-content {
    padding: 25px 20px 20px;
    text-align: center;
    position: relative;
    z-index: 2;
    min-height: 280px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.service-icon-wrapper {
    width: 70px;
    height: 70px;
    margin: -55px auto 0;
    background: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(8, 28, 52, 0.3);
    transition: all 0.4s ease;
    border: 4px solid white;
    flex-shrink: 0;
}

.services-card:hover .service-icon-wrapper {
    transform: translateY(-5px) rotate(360deg);
    box-shadow: 0 15px 40px rgba(8, 28, 52, 0.5);
    background: var(--primary-hover);
}

.service-icon {
    font-size: 32px;
    color: white;
}

.service-content h5 {
    font-size: 1.2rem;
    color: #212529;
    margin-bottom: 10px;
    transition: color 0.3s ease;
}

.services-card:hover .service-content h5 {
    color: var(--primary);
}

.service-excerpt {
    color: #6c757d;
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.6;
}

/* Hover Content */
.service-hover-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--primary);
    color: white;
    padding: 30px 20px;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    z-index: 3;
}

.services-card:hover .service-hover-content {
    transform: translateY(0);
}

.hover-icon {
    font-size: 40px;
    margin-bottom: 15px;
    opacity: 0.9;
}

.service-hover-content h6 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: white;
}

.service-hover-content p {
    font-size: 0.9rem;
    margin: 0;
    opacity: 0.95;
    line-height: 1.6;
}

/* ===========================
   CTA SECTION
   =========================== */
.services-cta {
    background: linear-gradient(to bottom, #ffffff 0%, #f8f9fa 100%);
    padding: 80px 0;
}

.cta-card {
    position: relative;
    background: var(--primary);
    border-radius: 30px;
    padding: 80px 40px;
    text-align: center;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(8, 28, 52, 0.3);
}

.cta-content {
    position: relative;
    z-index: 2;
}

.cta-card .btn-light {
    background: white;
    color: var(--primary);
    border: none;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.cta-card .btn-light:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    background: var(--primary-light);
    color: var(--primary-hover);
}

/* CTA Decoration */
.cta-decoration {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.cta-circle {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    animation: float 15s infinite ease-in-out;
}

.cta-circle-1 {
    width: 200px;
    height: 200px;
    top: -100px;
    right: 10%;
    animation-delay: 0s;
}

.cta-circle-2 {
    width: 150px;
    height: 150px;
    bottom: -75px;
    left: 15%;
    animation-delay: 5s;
}

.cta-circle-3 {
    width: 100px;
    height: 100px;
    top: 50%;
    left: -50px;
    animation-delay: 10s;
}

/* ===========================
   RESPONSIVE DESIGN
   =========================== */
@media (max-width: 992px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .intro-stats {
        gap: 20px;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .services-card {
        height: 460px;
    }
}

@media (max-width: 768px) {
    #services-hero {
        height: 70vh;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .intro-stats {
        flex-direction: column;
        gap: 20px;
        margin-top: 20px;
    }
    
    .intro-image {
        transform: translate(-10px, 10px);
    }
    
    .services-card {
        height: 440px;
    }
    
    .cta-card {
        padding: 60px 30px;
    }
    
    .cta-card h2 {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    #services-hero {
        height: 60vh;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-badge {
        font-size: 12px;
        padding: 8px 16px;
    }
    
    .section-badge {
        font-size: 12px;
        padding: 8px 16px;
    }
    
    .services-card {
        height: 420px;
    }
    
    .service-content h5 {
        font-size: 1.1rem;
    }
    
    .service-content {
        padding: 20px 15px 15px;
    }
}

/* ===========================
   CUSTOM SCROLLBAR
   =========================== */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-hover);
}