/* Services Page Styles */

/* Smooth Scroll & Page Transition */
html {
    scroll-behavior: smooth;
}

body {
    animation: fadeIn 0.6s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hero Section */
.services-hero {
    padding: 12rem 0 8rem;
    /* background: linear-gradient(135deg, #f8fafc 0%, #e0e7ff 30%); */
    text-align: center;
    position: relative;
    overflow: hidden;
}

.services-hero #canvas-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    opacity: 2.3;
    overflow: hidden;
    pointer-events: none;
}

.services-hero #canvas-container canvas {
    width: 100% !important;
    height: 100% !important;
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
}

.services-hero .container {
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-block;
    background: rgba(59, 130, 246, 0.1);
    color: var(--accent-blue);
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 2rem;
    border: 1px solid rgba(59, 130, 246, 0.2);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.services-hero-title {
    font-size: 4.5rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 4rem;
    letter-spacing: -2px;
    line-height: 1.1;
}

.services-hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    font-weight: 400;
}

/* Hero Stats Cards */
.hero-stat-card {
    background: var(--secondary-bg);
    border-radius: 24px;
    padding: 2.5rem;
    gap: 2rem;
    box-shadow: rgba(0, 0, 0, 0.12) 0px 0.706592px 0.706592px -0.666667px, rgba(0, 0, 0, 0.12) 0px 1.80656px 1.80656px -1.33333px, rgba(0, 0, 0, 0.11) 0px 3.62176px 3.62176px -2px, rgba(0, 0, 0, 0.10) 0px 6.8656px 6.8656px -2.66667px, rgba(0, 0, 0, 0.08) 0px 13.6468px 13.6468px -3.33333px, rgba(0, 0, 0, 0.05) 0px 30px 30px -4px, rgb(255, 255, 255) 0px 3px 1px 0px inset;
    min-height: 280px;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-stat-card:hover {
    transform: translateY(-5px);
    box-shadow: rgba(0, 0, 0, 0.15) 0px 10px 40px;
}

.hero-stat-card-accent {
    background:var(--text-primary);
}

.hero-stat-card-dark {
    background: var(--text-primary);
    color: var(--primary-bg);
}

.hero-stat-visual {
    width: 120px;
    height: 120px;
    flex-shrink: 0;
}

.hero-stat-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
}

.hero-stat-content {
    flex: 1;
    text-align: left;
}

.hero-stat-content-center {
    flex: 1;
    text-align: left;
}

.hero-stat-number {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 0.5rem;
    color: var(--primary-bg);
}

.hero-stat-card-dark .hero-stat-number {
    color: var(--primary-bg);
}

.hero-stat-label {
    font-size: 1rem;
    font-weight: 500;
    color:rgba(255, 255, 255, 0.8);
    margin-bottom: 1.5rem;
}

.hero-stat-card-dark .hero-stat-label {
    color: rgba(255, 255, 255, 0.8);
}

.hero-stat-btn {
    padding: 0.75rem 1.75rem;
    border: 2px solid var(--text-primary);
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s ease;
}


.stars-review i {
    color:var(--text-secondary);
    font-size: 1.5rem;

}

.hero-stat-visual-right {
    width: 200px;
    height: 200px;
    position: absolute;
    right: -20px;
    bottom: -20px;
}

.hero-stat-visual-right img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0.9;
}

/* Services Section */
.services-section {
    padding: 6rem 0;
    background: var(--secondary-bg);
}

.service-item {
    border-bottom: 1px solid var(--border-color);
    padding: 0;
    transition: all 0.3s ease;
    overflow: hidden;
}

.service-item:hover {
    background: rgba(59, 130, 246, 0.02);
}

.service-item:last-child {
    border-bottom: none;
}

/* Service Header (Always Visible) */
.service-header {
    padding: 3rem ;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow:rgba(0, 0, 0, 0.12) 0px 0.706592px 0.706592px -0.666667px, rgba(0, 0, 0, 0.12) 0px 1.80656px 1.80656px -1.33333px, rgba(0, 0, 0, 0.11) 0px 3.62176px 3.62176px -2px, rgba(0, 0, 0, 0.10) 0px 6.8656px 6.8656px -2.66667px, rgba(0, 0, 0, 0.08) 0px 13.6468px 13.6468px -3.33333px, rgba(0, 0, 0, 0.05) 0px 30px 30px -4px, rgb(255, 255, 255) 0px 3px 1px 0px inset;  
}



/* Service Content (Collapsible) - no animation */
.service-content {
    display: none;
    overflow: hidden;
    padding: 0;
    opacity: 0;
}

.service-item.active .service-content {
    display: block;
    padding: 3rem;
    opacity: 1;
    box-shadow: rgba(0, 0, 0, 0.12) 0px 0.706592px 0.706592px -0.666667px, rgba(0, 0, 0, 0.12) 0px 1.80656px 1.80656px -1.33333px, rgba(0, 0, 0, 0.11) 0px 3.62176px 3.62176px -2px, rgba(0, 0, 0, 0.10) 0px 6.8656px 6.8656px -2.66667px, rgba(0, 0, 0, 0.08) 0px 13.6468px 13.6468px -3.33333px, rgba(0, 0, 0, 0.05) 0px 30px 30px -4px, rgb(255, 255, 255) 0px 3px 1px 0px inset;
}

/* Service Toggle Button */
.service-toggle-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid var(--text-primary);
    background: transparent;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    -webkit-tap-highlight-color: transparent;
}

/* Hover only on devices that support hover (not touch) */
@media (hover: hover) {
    .service-toggle-btn:hover {
        background: var(--text-primary);
        color: var(--primary-bg);
        transform: scale(1.1);
    }
}

/* Active state - button stays filled only when service is open */
.service-item.active .service-toggle-btn {
    background: var(--text-primary);
    color: var(--primary-bg);
}

/* Remove focus outline that might keep styles */
.service-toggle-btn:focus {
    outline: none;
}

/* Reset focus/active states only when service is NOT active */
.service-item:not(.active) .service-toggle-btn:focus,
.service-item:not(.active) .service-toggle-btn:active {
    background: transparent;
    color: var(--text-primary);
}

.service-toggle-btn i {
    font-size: 1.2rem;
    transition: transform 0.25s ease;
    display: inline-block;
}

/* Rotate arrow when service is active (smooth icon rotation only) */
.service-item.active .service-toggle-btn i {
    transform: rotate(90deg);
}

.service-image-box {
    width: 100%;
    max-width: 250px;
    height: 200px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: rgba(0, 0, 0, 0.3) 0px 10px 30px;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.service-image-box img {
    width: 100%;
    height: 100%;
    object-position: center;
    transition: transform 0.4s ease;
}

.service-item:hover .service-image-box img {
    transform: scale(1.05);
}

.service-details {
    position: relative;
}

.service-number {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--accent-blue);
    margin-bottom: 1rem;
    letter-spacing: 2px;
}

.service-main-title {
    font-size: 3rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 2rem;
    letter-spacing: 2px;
}

.service-info-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 3rem;
    position: relative;
}

.service-features {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    min-width: 200px;
}

.feature-item {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1.8;
}

.service-description-box {
    flex: 1;
    max-width: 500px;
}

.service-desc-text {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin: 0;
}

.service-arrow {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
    cursor: pointer;
}

.service-arrow i {
    font-size: 1.2rem;
    color: var(--text-primary);
    transition: transform 0.3s ease;
}

.service-item:hover .service-arrow {
    background: var(--accent-blue);
    border-color: var(--accent-blue);
}

.service-item:hover .service-arrow i {
    color: var(--primary-bg);
    transform: translateX(5px);
}

/* Impact Section */
.impact-section {
    padding: 8rem 0;
    /* background: var(--secondary-bg); */
}

.impact-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 1rem;
    letter-spacing: -1.5px;
}

.impact-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 4rem;
}

/* Project Tabs */
.project-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 4rem;
    flex-wrap: wrap;
}

.project-tab {
    padding: 0.75rem 1.75rem;
    color: var(--text-primary);
    border: none;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--card-shadow);
}

.project-tab:hover {
    background: var(--text-primary);
    color: var(--primary-bg);
    transform: translateY(-2px);
}

.project-tab.active {
    background: var(--text-primary);
    color: var(--primary-bg);
}

/* Project Content */
.project-content-wrapper {
    position: relative;
    min-height: 500px;
}

.project-content {
    display: none;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.project-content.active {
    display: flex;
    opacity: 1;
}

.project-image {
    width: 100%;
    height: auto;
    max-height: 450px;
    border-radius: 16px;
    overflow: hidden;
    background: var(--primary-bg);
    box-shadow: rgba(0, 0, 0, 0.12) 0px 0.706592px 0.706592px -0.666667px, 
                rgba(0, 0, 0, 0.12) 0px 1.80656px 1.80656px -1.33333px, 
                rgba(0, 0, 0, 0.11) 0px 3.62176px 3.62176px -2px, 
                rgba(0, 0, 0, 0.10) 0px 6.8656px 6.8656px -2.66667px, 
                rgba(0, 0, 0, 0.08) 0px 13.6468px 13.6468px -3.33333px, 
                rgba(0, 0, 0, 0.05) 0px 30px 30px -4px, 
                rgb(255, 255, 255) 0px 3px 1px 0px inset; 
}

.project-image img {
    width: 100%;
    height: auto;
    display: block;
    max-width: 100%;
}

.project-details {
    padding: 2rem;
    box-shadow: rgba(0, 0, 0, 0.12) 0px 0.706592px 0.706592px -0.666667px, 
                rgba(0, 0, 0, 0.12) 0px 1.80656px 1.80656px -1.33333px, 
                rgba(0, 0, 0, 0.11) 0px 3.62176px 3.62176px -2px, 
                rgba(0, 0, 0, 0.10) 0px 6.8656px 6.8656px -2.66667px, 
                rgba(0, 0, 0, 0.08) 0px 13.6468px 13.6468px -3.33333px, 
                rgba(0, 0, 0, 0.05) 0px 30px 30px -4px, 
                rgb(255, 255, 255) 0px 3px 1px 0px inset; 
    border-radius: 16px;
    background: var(--secondary-bg);
}

.project-number {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.project-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    letter-spacing: -0.5px;
}

.project-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.impact-stat-card {
    background: var(--primary-bg);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
        border: 1px solid var(--border-color);
    margin-bottom: 1rem;
}

.impact-stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--accent-blue);
    margin-bottom: 0.5rem;
}

.impact-stat-label {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

/* Appointment CTA Section */
.appointment-cta-section {
    padding: 4rem 0;
    margin-bottom: 4rem;
}

.appointment-cta-box {
    background: var(--secondary-bg);
    padding: 4rem 3rem;
    border-radius: 24px;
    box-shadow:  rgba(0, 0, 0, 0.12) 0px 0.706592px 0.706592px -0.666667px, rgba(0, 0, 0, 0.12) 0px 1.80656px 1.80656px -1.33333px, rgba(0, 0, 0, 0.11) 0px 3.62176px 3.62176px -2px, rgba(0, 0, 0, 0.10) 0px 6.8656px 6.8656px -2.66667px, rgba(0, 0, 0, 0.08) 0px 13.6468px 13.6468px -3.33333px, rgba(0, 0, 0, 0.05) 0px 30px 30px -4px, rgb(255, 255, 255) 0px 3px 1px 0px inset;;
    position: relative;
    overflow: hidden;
}

.appointment-badge {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: rgba(59, 130, 246, 0.1);
    color: var(--accent-blue);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}

.appointment-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.2;
    margin: 0;
    letter-spacing: -1px;
}

.appointment-btn {
    background: var(--text-primary);
    color: white;
    padding: 1.2rem 2.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.appointment-btn:hover {
    background: #1e293b;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.25);
}

.appointment-btn i {
    transition: transform 0.3s;
}

.appointment-btn:hover i {
    transform: translateX(5px);
}

