/* ============================================
   Modern Service Page Styles
   Author: Code Node (pvt) ltd
   Created: 2024
============================================ */

:root {
    --primary-color: #262262;
    --secondary-color: #6366f1;
    --accent-color: #10b981;
    --dark-bg: #1a1a2e;
    --darker-bg: #16213e;
    --text-light: #e5e7eb;
    --text-gray: #9ca3af;
    --gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-2: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-3: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --gradient-4: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    --gradient-5: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    --gradient-6: linear-gradient(135deg, #262262 0%, #6366f1 100%);
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.3);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow-x: hidden;
    background: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #24243e 100%);
    min-height: 100vh;
}

/* ============================================
   Hero Section
============================================ */

.services-hero {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--dark-bg) 0%, var(--darker-bg) 100%);
    overflow: hidden;
    padding: 100px 20px 80px;
}

.services-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(99, 102, 241, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(16, 185, 129, 0.1) 0%, transparent 50%);
    animation: pulse 15s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg width="60" height="60" xmlns="http://www.w3.org/2000/svg"><circle cx="30" cy="30" r="1.5" fill="rgba(99,102,241,0.3)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 50px;
    color: var(--secondary-color);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 30px;
    backdrop-filter: blur(10px);
}

.hero-badge i {
    font-size: 16px;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    background: linear-gradient(135deg, #fff 0%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-description {
    font-size: 1.2rem;
    color: var(--text-gray);
    margin-bottom: 50px;
    line-height: 1.6;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
}

.stat-item h3 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 5px;
}

.stat-item p {
    font-size: 1rem;
    color: var(--text-gray);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--text-gray);
    font-size: 24px;
    animation: bounce 2s infinite;
    cursor: pointer;
    z-index: 2;
}

@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 Showcase Section
============================================ */

.services-showcase {
    padding: 80px 20px;
    background: linear-gradient(180deg, var(--darker-bg) 0%, var(--dark-bg) 100%);
    position: relative;
}

.services-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    gap: 40px;
}

/* ============================================
   Service Card
============================================ */

.service-card {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl),
                0 0 40px rgba(99, 102, 241, 0.2);
    border-color: rgba(99, 102, 241, 0.3);
}

.service-card-inner {
    display: flex;
    align-items: center;
    gap: 30px;
    padding: 40px;
    cursor: pointer;
}

.service-icon-wrapper {
    width: 80px;
    height: 80px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.service-icon-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: inherit;
    opacity: 0.2;
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.service-icon-wrapper i {
    font-size: 36px;
    color: #fff;
    z-index: 1;
}

.gradient-1 { background: var(--gradient-1); }
.gradient-2 { background: var(--gradient-2); }
.gradient-3 { background: var(--gradient-3); }
.gradient-4 { background: var(--gradient-4); }
.gradient-5 { background: var(--gradient-5); }
.gradient-6 { background: var(--gradient-6); }

.service-main-content {
    flex: 1;
}

.service-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
}

.service-tagline {
    font-size: 1rem;
    color: var(--text-gray);
    margin-bottom: 20px;
    line-height: 1.6;
}

.btn-expand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
}

.btn-expand:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-lg),
                0 0 20px rgba(99, 102, 241, 0.5);
}

.btn-expand i {
    transition: transform 0.3s ease;
}

.service-card.expanded .btn-expand i {
    transform: rotate(180deg);
}

/* ============================================
   Expanded Content
============================================ */

.service-expanded-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card.expanded .service-expanded-content {
    max-height: 3000px;
}

.content-inner {
    padding: 0 40px 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.service-intro {
    font-size: 1.05rem;
    color: var(--text-gray);
    line-height: 1.8;
    margin: 30px 0;
}

.features-section,
.packages-section {
    margin: 40px 0;
}

.features-section h3,
.packages-section h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.features-section h3 i,
.packages-section h3 i {
    color: var(--accent-color);
    font-size: 1.3rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.feature-item {
    background: rgba(255, 255, 255, 0.02);
    padding: 25px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.feature-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--secondary-color);
    transform: translateY(-5px);
}

.feature-item i {
    font-size: 28px;
    color: var(--secondary-color);
    margin-bottom: 15px;
    display: block;
}

.feature-item h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 10px;
}

.feature-item p {
    font-size: 0.95rem;
    color: var(--text-gray);
    line-height: 1.6;
}

/* ============================================
   Packages Section
============================================ */

.packages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.package-card {
    background: rgba(255, 255, 255, 0.03);
    padding: 30px;
    border-radius: 16px;
    border: 2px solid rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.package-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--secondary-color), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.package-card:hover::before {
    transform: translateX(100%);
}

.package-card:hover {
    border-color: var(--secondary-color);
    box-shadow: var(--shadow-lg),
                0 0 30px rgba(99, 102, 241, 0.2);
}

.package-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.package-card h4 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
}

.package-badge {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.package-card.basic .package-badge {
    background: rgba(99, 102, 241, 0.2);
    color: var(--secondary-color);
}

.package-card.standard .package-badge {
    background: rgba(16, 185, 129, 0.2);
    color: var(--accent-color);
}

.package-card.premium .package-badge {
    background: linear-gradient(135deg, #ffd89b 0%, #19547b 100%);
    color: #fff;
}

.package-card p {
    color: var(--text-gray);
    line-height: 1.7;
    font-size: 0.95rem;
}

/* ============================================
   CTA Section
============================================ */

.cta-section {
    margin-top: 40px;
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.btn-cta {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 40px;
    background: linear-gradient(135deg, var(--accent-color) 0%, #059669 100%);
    color: #fff;
    text-decoration: none;
    border-radius: 12px;
    font-size: 1.05rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.btn-cta::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-cta:hover::before {
    width: 300px;
    height: 300px;
}

.btn-cta:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl),
                0 0 30px rgba(16, 185, 129, 0.5);
}

.btn-cta i,
.btn-cta span {
    position: relative;
    z-index: 1;
}

.btn-cta i {
    font-size: 1.1rem;
}

/* ============================================
   Responsive Design
============================================ */

@media (max-width: 1024px) {
    .service-card-inner {
        padding: 30px;
    }
    
    .content-inner {
        padding: 0 30px 30px;
    }
    
    .features-grid,
    .packages-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    }
}

@media (max-width: 768px) {
    .services-hero {
        min-height: 60vh;
        padding: 80px 20px 60px;
    }
    
    .hero-stats {
        gap: 30px;
    }
    
    .stat-item h3 {
        font-size: 2rem;
    }
    
    .service-card-inner {
        flex-direction: column;
        text-align: center;
        padding: 25px;
    }
    
    .content-inner {
        padding: 0 25px 25px;
    }
    
    .service-title {
        font-size: 1.5rem;
    }
    
    .features-grid,
    .packages-grid {
        grid-template-columns: 1fr;
    }
    
    .features-section h3,
    .packages-section h3 {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .services-hero {
        padding: 60px 15px 40px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .service-card-inner {
        padding: 20px;
    }
    
    .content-inner {
        padding: 0 20px 20px;
    }
    
    .service-icon-wrapper {
        width: 60px;
        height: 60px;
    }
    
    .service-icon-wrapper i {
        font-size: 28px;
    }
    
    .btn-expand {
        padding: 10px 20px;
        font-size: 13px;
    }
    
    .btn-cta {
        padding: 14px 30px;
        font-size: 0.95rem;
    }
}

/* ============================================
   Animation Classes
============================================ */

[data-aos] {
    pointer-events: auto;
}

.fade-in {
    animation: fadeIn 0.8s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   Accessibility & Performance
============================================ */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus Styles */
.btn-expand:focus,
.btn-cta:focus {
    outline: 2px solid var(--secondary-color);
    outline-offset: 4px;
}

/* Print Styles */
@media print {
    .services-hero,
    .scroll-down,
    .btn-expand,
    .btn-cta {
        display: none;
    }
    
    .service-expanded-content {
        max-height: none !important;
    }
    
    .service-card {
        page-break-inside: avoid;
    }
}
