/* ============================================
   SERVICES PAGE SPECIFIC STYLES
   ============================================ */

/* ============================================
   HERO SECTION FIX - Services Page
   ============================================ */

.services-hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    padding: 8rem 5% 5rem;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #f5f9ff 0%, #ffffff 100%);
}

.services-hero .gradient-mesh {
    position: absolute;
    top: 0;
    right: 0;
    width: 60%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(0, 102, 255, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(0, 212, 255, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(0, 102, 255, 0.1) 0%, transparent 50%);
    animation: meshMove 20s ease-in-out infinite;
    z-index: 0;
}

/* Hero Content Styling */
.services-hero .hero-content {
    position: relative;
    z-index: 1;
}

.services-hero .section-tag {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: rgba(0, 102, 255, 0.1);
    color: var(--primary-blue);
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

/* Hero Heading - Homepage jaisi styling */
.services-hero h1 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--deep-blue);
}

/* First line - normal color */
.services-hero h1 {
    color: var(--deep-blue);
}

/* Span wali line - Gradient effect */
.services-hero h1 span {
    display: block;
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-top: 0.25rem;
}

/* Third line - normal color */
.services-hero h1::after {
    content: 'Institutions';
    display: block;
    color: var(--deep-blue);
    margin-top: 0.25rem;
}

/* Hero Subtitle */
.services-hero .hero-subtitle {
    font-size: 1.25rem;
    color: #64748b;
    margin-bottom: 2.5rem;
    line-height: 1.6;
    max-width: 600px;
}

/* Hero Stats */
.hero-stats {
    display: flex;
    gap: 3rem;
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 102, 255, 0.1);
}

.hero-stat {
    display: flex;
    flex-direction: column;
}

.stat-num {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
}

.stat-label {
    font-size: 0.9rem;
    color: #64748b;
    margin-top: 0.25rem;
}

/* Service Orb Animation */
.service-orb {
    position: relative;
    width: 300px;
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.orb-ring {
    position: absolute;
    border-radius: 50%;
    border: 2px solid rgba(0, 102, 255, 0.1);
    animation: orbRotate 20s linear infinite;
}

.ring-1 {
    width: 100%;
    height: 100%;
    border-color: rgba(0, 102, 255, 0.15);
    animation-duration: 20s;
}

.ring-2 {
    width: 75%;
    height: 75%;
    border-color: rgba(0, 212, 255, 0.2);
    animation-duration: 15s;
    animation-direction: reverse;
}

.ring-3 {
    width: 50%;
    height: 50%;
    border-color: rgba(0, 102, 255, 0.25);
    animation-duration: 10s;
}

.orb-core {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-cyan));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 20px 60px rgba(0, 102, 255, 0.3);
}

.orb-core svg {
    width: 40px;
    height: 40px;
}

@keyframes orbRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes meshMove {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -30px) scale(1.1); }
    66% { transform: translate(-20px, 20px) scale(0.9); }
}

/* Responsive */
@media (max-width: 768px) {
    .services-hero {
        min-height: auto;
        padding: 6rem 5% 3rem;
        text-align: center;
    }

    .services-hero h1 {
        font-size: clamp(2rem, 8vw, 3rem);
    }

    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
        align-items: center;
    }

    .service-orb {
        width: 200px;
        height: 200px;
    }
}

/* Service Detail Sections */
.service-detail-section {
    padding: 8rem 5%;
    padding-bottom: 2rem;
    padding-top: 2rem;
    position: relative;
    overflow: hidden;
}

.service-detail-section.alt-bg {
    background: linear-gradient(180deg, var(--soft-blue) 0%, var(--pure-white) 100%);
}

.service-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 6rem;
    align-items: center;
}

.service-container.reverse {
    direction: rtl;
}

.service-container.reverse > * {
    direction: ltr;
}

.service-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
}

.service-icon-large {
    position: relative;
    width: 200px;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-bg {
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-cyan));
    border-radius: 40px;
    transform: rotate(-5deg);
    opacity: 0.1;
    animation: iconFloat 6s ease-in-out infinite;
}

.service-icon-large.cyan-theme .icon-bg {
    background: linear-gradient(135deg, #00D4FF, #0066FF);
}

.service-icon-large.purple-theme .icon-bg {
    background: linear-gradient(135deg, #7c3aed, #a78bfa);
}

.service-icon-large.orange-theme .icon-bg {
    background: linear-gradient(135deg, #f97316, #fb923c);
}

.service-icon-large.green-theme .icon-bg {
    background: linear-gradient(135deg, #10b981, #34d399);
}

.service-icon-large.red-theme .icon-bg {
    background: linear-gradient(135deg, #ef4444, #f87171);
}

.icon-emoji {
    position: relative;
    font-size: 5rem;
    z-index: 1;
    animation: iconFloat 6s ease-in-out infinite;
    animation-delay: -3s;
}

@keyframes iconFloat {
    0%, 100% { transform: translateY(0) rotate(-5deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

/* Floating Cards */
.floating-card {
    position: absolute;
    background: white;
    padding: 1rem 1.5rem;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 102, 255, 0.15);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    animation: cardFloat 8s ease-in-out infinite;
}

.mini-icon {
    width: 36px;
    height: 36px;
    background: var(--soft-blue);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.mini-text {
    font-weight: 600;
    color: var(--deep-blue);
    font-size: 0.9rem;
}

.card-1 { top: 10%; left: 0; animation-delay: 0s; }
.card-2 { bottom: 20%; right: 0; animation-delay: -2s; }
.card-3 { top: 15%; right: 0; animation-delay: -1s; }
.card-4 { bottom: 15%; left: 0; animation-delay: -3s; }
.card-5 { top: 5%; left: 10%; animation-delay: -4s; }
.card-6 { bottom: 25%; right: 5%; animation-delay: -1.5s; }
.card-7 { top: 20%; right: 5%; animation-delay: -2.5s; }
.card-8 { bottom: 10%; left: 5%; animation-delay: -0.5s; }
.card-9 { top: 10%; left: 5%; animation-delay: -3.5s; }
.card-10 { bottom: 20%; right: 10%; animation-delay: -1s; }
.card-11 { top: 15%; right: 0; animation-delay: -2s; }
.card-12 { bottom: 15%; left: 10%; animation-delay: -4s; }

@keyframes cardFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

/* Service Content */
.service-content {
    padding: 2rem 0;
}

.service-tag {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    background: rgba(0, 102, 255, 0.1);
    color: var(--primary-blue);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.service-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--deep-blue);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.service-lead {
    font-size: 1.2rem;
    color: #64748b;
    line-height: 1.7;
    margin-bottom: 2.5rem;
}

.service-features {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.feature-block {
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 16px;
    border-left: 4px solid var(--primary-blue);
    transition: all 0.3s ease;
}

.feature-block:hover {
    transform: translateX(10px);
    box-shadow: 0 10px 30px rgba(0, 102, 255, 0.1);
}

.feature-block h4 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--deep-blue);
    margin-bottom: 0.5rem;
}

.feature-block p {
    font-size: 0.95rem;
    color: #64748b;
    line-height: 1.6;
}

.service-meta {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 102, 255, 0.1);
}

.meta-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.meta-label {
    font-size: 0.8rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.meta-value {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--deep-blue);
}

/* Why Services Section */
.why-services-section {
    padding: 8rem 5%;
    padding-bottom: 4rem;
    padding-top: 4rem;
    background: var(--deep-blue);
    color: white;
    position: relative;
    overflow: hidden;
}

.why-services-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(0, 102, 255, 0.1) 0%, transparent 70%);
    animation: rotate 30s linear infinite;
}

.why-container {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.why-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem;
}

.why-header .section-tag {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.why-header .section-title {
    color: white;
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1rem;
}

.why-header .section-subtitle {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.1rem;
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.advantage-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 2rem;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.advantage-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-blue), var(--accent-cyan));
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.advantage-card:hover::before {
    transform: scaleX(1);
}

.advantage-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.adv-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-cyan));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: white;
}

.adv-icon svg {
    width: 30px;
    height: 30px;
}

.advantage-card h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.advantage-card p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.adv-stat {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(0, 102, 255, 0.2);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent-cyan);
}

/* Process Section */
.process-section {
    padding: 8rem 5%;
    padding-bottom: 4rem;
    padding-top: 4rem;
    background: var(--pure-white);
}

.process-container {
    max-width: 1000px;
    margin: 0 auto;
}

.process-header {
    text-align: center;
    margin-bottom: 4rem;
}

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

.timeline-line {
    position: absolute;
    left: 40px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--primary-blue), var(--accent-cyan));
    opacity: 0.3;
}

.process-step {
    display: flex;
    gap: 2rem;
    margin-bottom: 3rem;
    position: relative;
}

.process-step:last-child {
    margin-bottom: 0;
}

.step-number {
    width: 80px;
    height: 80px;
    background: white;
    border: 2px solid var(--primary-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-blue);
    flex-shrink: 0;
    position: relative;
    z-index: 1;
    box-shadow: 0 10px 30px rgba(0, 102, 255, 0.15);
}

.step-content {
    padding-top: 1rem;
    flex: 1;
}

.step-content h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--deep-blue);
    margin-bottom: 0.75rem;
}

.step-content p {
    color: #64748b;
    line-height: 1.7;
    font-size: 1.05rem;
}

/* Service CTA Section */
.service-cta-section {
    padding: 6rem 5%;
    padding-bottom: 3rem;
    padding-top: 3rem;
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-cyan));
    position: relative;
    overflow: hidden;
}

.cta-bg-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.service-cta-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 1;
    color: white;
}

.service-cta-container h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.service-cta-container > p {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 3rem;
    line-height: 1.6;
}

.cta-options {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.cta-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.25rem 2.5rem;
    background: var(--deep-blue);
    color: white;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.cta-btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.cta-btn-primary svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.cta-btn-primary:hover svg {
    transform: translateX(5px);
}

.cta-btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.25rem 2.5rem;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.cta-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
}

.cta-btn-secondary svg {
    width: 20px;
    height: 20px;
}

.cta-trust {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    opacity: 0.9;
}

.trust-item svg {
    width: 20px;
    height: 20px;
}

/* Responsive */
@media (max-width: 1024px) {
    .service-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .service-container.reverse {
        direction: ltr;
    }

    .service-visual {
        order: -1;
        min-height: 300px;
    }

    .advantages-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .hero-stats {
        justify-content: center;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .services-hero {
        min-height: auto;
        padding: 6rem 5% 3rem;
        text-align: center;
    }

    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
        align-items: center;
    }

    .service-orb {
        width: 200px;
        height: 200px;
    }

    .floating-card {
        display: none;
    }

    .advantages-grid {
        grid-template-columns: 1fr;
    }

    .timeline-line {
        left: 25px;
    }

    .step-number {
        width: 50px;
        height: 50px;
        font-size: 1.1rem;
    }

    .process-step {
        gap: 1rem;
    }

    .cta-options {
        flex-direction: column;
        align-items: center;
    }

    .cta-btn-primary,
    .cta-btn-secondary {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }

    .cta-trust {
        flex-direction: column;
        gap: 1rem;
    }
}

/* Active Menu State */
.menu .link.active {
    width: 130px;
}

.menu .link.active::before,
.menu .link.active .link-title {
    transform: translateX(0);
    opacity: 1;
}

.menu .link.active .link-title {
    color: var(--primary-blue);
}

/* Smooth Scroll Offset */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 100px;
}