/* Service Detail Page Styles */


/* Unified background system for smooth transitions */
.service-detail-page {
    background: linear-gradient(180deg, 
        #0f0f23 0%, 
        #1a1a2e 15%, 
        #16213e 30%, 
        #0f3460 45%, 
        #0a1929 60%, 
        #0f0f23 75%, 
        #1a1a2e 90%, 
        #16213e 100%
    );
    position: relative;
}

.service-detail-page::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 20%, rgba(105, 5, 233, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(124, 1, 221, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(192, 112, 255, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

/* Import homepage variables and base styles */
:root {
    --primary-purple: #6905E9;
    --primary-hover: #5b05cc;
    --primary-dimmed: #5105b9;
    --accent-color: #7C01DD;
    --light-accent: #C070FF;
    --secondary-color: #BCBCBC;
    --accent-yellow: #c89700;
    --accent-orange: #fd7e14;
    --accent-blue: #0066CC;
    --accent-green: #28a745;
    --accent-teal: #20c997;
    --primary-gradient: linear-gradient(135deg, #6905E9 0%, #7C01DD 100%);
    --secondary-gradient: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    --accent-gradient: linear-gradient(135deg, #C070FF 0%, #bf9305 100%);
    --accent-blue-gradient: linear-gradient(135deg, #0066CC 0%, #6905E9 100%);
    --accent-green-gradient: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    --dark-gradient: linear-gradient(135deg, rgba(6, 5, 43, 0.9) 0%, rgba(6, 5, 43, 0.7) 100%);
    --light-gradient: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
    --glass-gradient: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    --text-dark: #212529;
    --text-light: #ffffff;
    --text-muted: rgba(255, 255, 255, 0.85);
    --text-muted-dark: rgba(33, 37, 41, 0.7);
    --text-accent: #C070FF;
    --shadow-light: 0 4px 20px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 8px 30px rgba(0, 0, 0, 0.15);
    --shadow-heavy: 0 15px 50px rgba(0, 0, 0, 0.2);
    --shadow-glow: 0 0 30px rgba(105, 5, 233, 0.3);
    --text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    --border-radius: 15px;
    --border-radius-lg: 25px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Service Hero Section */
.service-hero {
    position: relative;
    min-height: 100vh;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding-top: 100px; /* Increased padding to ensure icon never goes under navbar */
}

/* CTA buttons - Desktop: left-aligned, Mobile: centered */
.service-hero-cta {
    flex-direction: column !important;
    gap: 1rem;
    align-items: flex-start !important; /* Left-aligned on desktop */
    justify-content: flex-start !important;
    text-align: left !important;
    width: 100% !important;
    display: flex !important;
}

.service-hero-cta .btn {
    width: auto !important;
    max-width: none !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Override Bootstrap margin classes */
.service-hero-cta .btn.me-3 {
    margin-right: 0 !important;
    margin-left: 0 !important;
}

/* Scroll indicator positioning for service detail pages */
.scroll-indicator {
    position: absolute !important;
    bottom: 20px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    z-index: 10 !important;
    cursor: pointer;
}

/* Responsive navbar spacing */
@media (max-width: 1199.98px) {
    .service-hero {
        padding-top: 90px; /* Slightly less padding on smaller screens */
    }
}

@media (max-width: 768px) {
    .service-hero {
        padding-top: 80px; /* Even less padding on mobile */
        padding-bottom: 100px; /* Add bottom padding to prevent overlap with scroll indicator */
    }
    
    /* Mobile layout adjustments */
    .service-hero-visual {
        margin-top: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .service-visual-card {
        padding: 1.5rem 1rem;
        margin-bottom: 1.5rem;
    }
    
    .service-visual-card h3 {
        font-size: 1.25rem;
        margin-bottom: 0.75rem;
    }
    
    .service-visual-card p {
        font-size: 0.9rem;
        margin-bottom: 0;
    }
    
    .service-visual-icon img {
        max-width: 80px;
        margin-bottom: 1rem;
    }
    
    /* Ensure scroll indicator has proper spacing */
    .scroll-indicator {
        position: absolute !important;
        bottom: 20px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        z-index: 10 !important;
    }
    
    /* Adjust hero content for mobile */
    .hero-content-safe {
        min-height: calc(100vh - 60px);
        padding-bottom: 80px; /* Extra space for scroll indicator */
    }
    
    /* Mobile service hero text adjustments */
    .service-hero-title {
        font-size: 2rem;
        margin-bottom: 0.75rem;
        line-height: 1.2;
    }
    
    .service-hero-subtitle {
        font-size: 1rem;
        margin-bottom: 1.25rem;
        line-height: 1.4;
    }
    
    .service-icon {
        margin-bottom: 1rem;
    }
    
    .service-icon img {
        max-width: 60px;
    }
    
    /* Mobile CTA buttons - Force centering */
    .service-hero-text {
        text-align: center !important;
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
    }
    
    .service-hero-cta {
        align-items: center !important; /* Override desktop left-alignment */
        justify-content: center !important;
        text-align: center !important;
        margin: 0 auto !important;
    }
    
    .service-hero-cta .btn {
        width: 100% !important;
        max-width: 280px !important;
        margin: 0 auto !important; /* Center each button */
        padding: 0.75rem 2rem !important; /* Smaller padding for mobile */
        font-size: 0.95rem !important; /* Slightly smaller text */
    }
    
    /* Override Bootstrap margin classes on mobile */
    .service-hero-cta .btn.me-3 {
        margin-right: 0 !important;
        margin-left: 0 !important;
    }
    
    /* Ensure the entire hero content is centered */
    .service-hero-content .row {
        justify-content: center !important;
    }
    
    .service-hero-content .col-lg-6 {
        display: flex !important;
        justify-content: center !important;
    }
}

/* Extra small mobile devices */
@media (max-width: 576px) {
    .service-hero {
        padding-bottom: 120px; /* More space for very small screens */
    }
    
    .service-visual-card {
        padding: 1.5rem 1rem;
    }
    
    .service-visual-card h3 {
        font-size: 1.25rem;
    }
    
    .service-visual-card p {
        font-size: 0.9rem;
    }
    
    .service-hero-title {
        font-size: 1.75rem;
        margin-bottom: 0.5rem;
    }
    
    .service-hero-subtitle {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }
    
    .service-icon img {
        max-width: 50px;
    }
    
    .service-hero-cta .btn {
        max-width: 260px !important;
        padding: 0.6rem 1.5rem !important;
        font-size: 0.9rem !important;
        margin: 0 auto !important;
    }
    
    /* Force centering on extra small screens */
    .service-hero-text {
        text-align: center !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        width: 100% !important;
    }
    
    .service-hero-cta {
        align-items: center !important;
        justify-content: center !important;
        margin: 0 auto !important;
    }
}

/* Bootstrap 5 utility classes for navbar spacing */
.navbar-spacing {
    padding-top: 80px;
}

@media (max-width: 1199.98px) {
    .navbar-spacing {
        padding-top: 70px;
    }
}

@media (max-width: 768px) {
    .navbar-spacing {
        padding-top: 60px;
    }
}

/* Ensure hero content doesn't go under navbar */
.hero-content-safe {
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
}

@media (max-width: 1199.98px) {
    .hero-content-safe {
        min-height: calc(100vh - 70px);
    }
}

@media (max-width: 768px) {
    .hero-content-safe {
        min-height: calc(100vh - 60px);
    }
}

/* Bootstrap 5 utility classes for consistent navbar spacing */
.pt-navbar {
    padding-top: 80px !important;
}

@media (max-width: 1199.98px) {
    .pt-navbar {
        padding-top: 70px !important;
    }
}

@media (max-width: 768px) {
    .pt-navbar {
        padding-top: 60px !important;
    }
}

/* Safe viewport height that accounts for navbar */
.vh-navbar {
    min-height: calc(100vh - 80px) !important;
}

@media (max-width: 1199.98px) {
    .vh-navbar {
        min-height: calc(100vh - 70px) !important;
    }
}

@media (max-width: 768px) {
    .vh-navbar {
        min-height: calc(100vh - 60px) !important;
    }
}

.service-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(6, 5, 43, 0.8) 0%, rgba(6, 5, 43, 0.6) 100%);
    z-index: 1;
}

.service-hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
}

.service-hero-text {
    color: var(--text-light);
}

.service-icon img {
    max-width: 80px;
    height: auto;
    filter: brightness(0) invert(1);
    transition: var(--transition);
}

.service-hero-title {
    font-size: 3rem; /* Reduced from 3.5rem */
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    text-shadow: var(--text-shadow);
    letter-spacing: -0.02em;
}

.service-hero-subtitle {
    font-size: 1.25rem;
    font-weight: 300;
    line-height: 1.6;
    margin-bottom: 2rem;
    color: var(--text-muted);
}

.service-hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}

.service-hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

/* Hide service visual card on mobile */
@media (max-width: 991.98px) {
    .service-hero-visual {
        display: none !important;
    }
}

.service-visual-card {
    background: var(--glass-gradient);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-lg);
    padding: 3rem;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-visual-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.6s ease;
    z-index: 1;
}

.service-visual-card:hover::before {
    left: 100%;
}

.service-visual-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-glow), var(--shadow-heavy);
    border-color: rgba(105, 5, 233, 0.3);
}

.service-visual-icon {
    position: relative;
    z-index: 2;
    margin-bottom: 1.5rem;
}

.service-visual-icon img {
    max-width: 120px;
    height: auto;
    filter: brightness(0) invert(1);
    transition: var(--transition);
}

.service-visual-card:hover .service-visual-icon img {
    transform: scale(1.1) rotate(5deg);
    filter: brightness(0) invert(1) drop-shadow(0 0 20px rgba(105, 5, 233, 0.5));
}

.service-visual-card h3 {
    color: var(--text-light);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    position: relative;
    z-index: 2;
}

.service-visual-card p {
    color: var(--text-muted);
    font-size: 1.1rem;
    position: relative;
    z-index: 2;
}

/* Floating Shapes Animation */
.floating-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
}

.shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    animation: float 8s ease-in-out infinite;
}

.shape:nth-child(1) {
    width: 80px;
    height: 80px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.shape:nth-child(2) {
    width: 120px;
    height: 120px;
    top: 60%;
    right: 15%;
    animation-delay: 2s;
}

.shape:nth-child(3) {
    width: 60px;
    height: 60px;
    top: 30%;
    right: 30%;
    animation-delay: 4s;
}

.shape:nth-child(4) {
    width: 100px;
    height: 100px;
    bottom: 20%;
    left: 20%;
    animation-delay: 6s;
}

@keyframes float {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg) scale(1); 
    }
    25% { 
        transform: translateY(-10px) rotate(90deg) scale(1.05); 
    }
    50% { 
        transform: translateY(-20px) rotate(180deg) scale(1.1); 
    }
    75% { 
        transform: translateY(-10px) rotate(270deg) scale(1.05); 
    }
}

/* Scroll Indicator */
.scroll-indicator {
    z-index: 2;
}

.scroll-mouse {
    width: 30px;
    height: 50px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 15px;
    position: relative;
    margin: 0 auto;
}

.scroll-wheel {
    width: 4px;
    height: 8px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 2px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 2s infinite;
}

@keyframes scroll {
    0% { opacity: 0; transform: translateX(-50%) translateY(0); }
    50% { opacity: 1; }
    100% { opacity: 0; transform: translateX(-50%) translateY(20px); }
}

.scroll-text {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
    text-align: center;
    margin-top: 0.5rem;
}

/* Service Overview Section */
.service-overview-section {
    padding: 5rem 0;
    background: transparent;
    position: relative;
}

.service-overview-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(105, 5, 233, 0.3), transparent);
}

.section-title {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    letter-spacing: -0.01em;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
    text-align: center;
    margin-bottom: 3rem;
    font-weight: 300;
    line-height: 1.6;
}

/* Service Includes Section */
.service-includes-section {
    padding: 5rem 0;
    background: transparent;
    position: relative;
}

.service-includes-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(124, 1, 221, 0.3), transparent);
}

.include-item {
    display: flex;
    align-items: center;
    padding: 1.5rem;
    background: var(--glass-gradient);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    transition: var(--transition);
    height: 100%;
}

.include-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
    border-color: rgba(105, 5, 233, 0.3);
}

.include-icon {
    margin-right: 1rem;
    color: var(--accent-green);
    font-size: 1.5rem;
}

.include-content h4 {
    color: var(--text-light);
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
}

/* Service Why Need Section */
.service-why-need-section {
    padding: 5rem 0;
    background: transparent;
    position: relative;
}

.service-why-need-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(192, 112, 255, 0.3), transparent);
}

.why-need-item {
    display: flex;
    align-items: center;
    padding: 1.5rem;
    background: var(--glass-gradient);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    transition: var(--transition);
    height: 100%;
}

.why-need-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
    border-color: rgba(105, 5, 233, 0.3);
}

.why-need-icon {
    margin-right: 1rem;
    color: var(--accent-color);
    font-size: 1.5rem;
}

.why-need-content h4 {
    color: var(--text-light);
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
}

/* Service Process Section */
.service-process-section {
    padding: 5rem 0;
    background: transparent;
    position: relative;
}

.process-timeline {
    position: relative;
    padding: 2rem 0;
}

.process-timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--primary-gradient);
    transform: translateX(-50%);
}

.process-step {
    display: flex;
    align-items: flex-start;
    margin-bottom: 4rem;
    position: relative;
    padding-top: 2rem;
}

.process-step:nth-child(even) {
    flex-direction: row-reverse;
}

.process-step:nth-child(even) .process-step-content {
    text-align: right;
    margin-right: 2rem;
    margin-left: 0;
}

.process-step:nth-child(odd) .process-step-content {
    text-align: left;
    margin-left: 2rem;
    margin-right: 0;
}

.process-step-number {
    position: absolute;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    width: 60px;
    height: 60px;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    border: 4px solid var(--text-dark);
}

.process-step-number span {
    color: var(--text-light);
    font-size: 1.5rem;
    font-weight: 700;
}

.process-step-icon {
    width: 80px;
    height: 80px;
    background: var(--glass-gradient);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 2rem;
    transition: var(--transition);
    position: relative;
    z-index: 2;
}

.process-step-icon i {
    font-size: 2rem;
    color: var(--accent-color);
}

.process-step:hover .process-step-icon {
    transform: scale(1.1);
    box-shadow: var(--shadow-glow);
    border-color: rgba(105, 5, 233, 0.5);
}

.process-step-content {
    flex: 1;
    background: var(--glass-gradient);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    padding: 2rem;
    transition: var(--transition);
}

.process-step:hover .process-step-content {
    transform: translateY(-5px);
    box-shadow: var(--shadow-medium);
    border-color: rgba(105, 5, 233, 0.3);
}

.process-step-content h4 {
    color: var(--text-light);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.process-step-content p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
}

/* Components are now used directly without wrappers */

/* Service CTA Section */
.service-cta-section {
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

.service-cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.cta-content {
    position: relative;
    z-index: 2;
}

.cta-title {
    color: var(--text-light);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: var(--text-shadow);
}

.cta-description {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.cta-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    align-items: center;
}

/* Hover Effects */
.hover-lift {
    transition: var(--transition);
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-heavy);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .service-hero-title {
        font-size: 3rem;
    }
    
    .section-title {
        font-size: 2.25rem;
    }
}

@media (max-width: 768px) {
    .service-hero {
        min-height: 80vh;
    }
    
    .service-hero-title {
        font-size: 2.5rem;
    }
    
    .service-hero-subtitle {
        font-size: 1.1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .service-hero-cta {
        flex-direction: column;
        align-items: stretch;
    }
    
    .service-hero-cta .btn {
        width: 100%;
        margin-bottom: 1rem;
    }
    
    .process-timeline::before {
        left: 30px;
    }
    
    .process-step {
        flex-direction: column !important;
        align-items: flex-start;
        padding-left: 4rem;
        padding-top: 3rem;
    }
    
    .process-step:nth-child(even) {
        flex-direction: column !important;
    }
    
    .process-step:nth-child(even) .process-step-content {
        text-align: left;
        margin-right: 0;
        margin-left: 0;
        margin-top: 1rem;
    }
    
    .process-step:nth-child(odd) .process-step-content {
        text-align: left;
        margin-left: 0;
        margin-right: 0;
        margin-top: 1rem;
    }
    
    .process-step-number {
        left: 30px;
        top: 0;
        transform: translateX(-50%);
        z-index: 10;
    }
    
    .process-step-icon {
        margin: 0 0 1rem 0;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    .cta-buttons .btn {
        width: 100%;
        margin-bottom: 1rem;
    }
}

@media (max-width: 576px) {
    .service-hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .cta-title {
        font-size: 2rem;
    }
    
    .process-step {
        padding-left: 3rem;
        padding-top: 2.5rem;
    }
    
    .process-step-number {
        left: 20px;
        top: 0;
        width: 40px;
        height: 40px;
        transform: translateX(-50%);
    }
    
    .process-step-number span {
        font-size: 1.2rem;
    }
    
    .process-step-icon {
        width: 60px;
        height: 60px;
    }
    
    .process-step-icon i {
        font-size: 1.5rem;
    }
}
