/* Service Details Page Styles */
:root {
    /* Mapped variables to use the theme from styles.css */
    --dark-bg: var(--bg-primary);
    --darker-bg: var(--bg-secondary);
    --card-bg: var(--bg-secondary);
    --text-color: var(--text-primary);
    --text-light: var(--text-secondary);
    --shadow: var(--shadow-md);

    /* Alias for accent-color to use styles.css's --secondary-color (teal) */
    /* Rules in this file using var(--accent-color) will now use teal. */
    /* If styles.css's orange --accent-color is preferred, remove this line. */
    --accent-color: var(--secondary-color);

    /* --primary-color & --primary-light are not defined here; they will be inherited from styles.css */
    /* --border-radius & --border-radius-lg are not defined here; they will be inherited from styles.css */
    /* styles.css defines --border-radius: 12px and --border-radius-lg: 20px */

    /* Specific transition for this file, if different from styles.css options */
    --transition: all 0.3s cubic-bezier(.4,2,.6,1);
}

/* Service Header */
.service-header {
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--accent-color) 100%);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm); /* Updated shadow */
    transition: transform 0.3s cubic-bezier(.4,2,.6,1);
}

.service-header .header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.back-button {
    display: flex;
    align-items: center;
    color: var(--text-light);
    font-size: 0.9rem;
    text-decoration: none;
    transition: var(--transition);
}

.logo-img {
    width: 150px;
    height: auto;
}

.back-button i {
    margin-right: 0.5rem;
}

.back-button:hover {
    color: var(--text-primary); /* Changed to ensure visibility */
}

.enterprise-badge {
    background-color: var(--accent-color); /* Changed to accent color (teal) */
    color: var(--text-primary);
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    border: 1px solid var(--primary-light); /* Added a subtle border */
    box-shadow: var(--shadow-sm); /* Added a subtle shadow */
}

/* Service Details Main Content */
.service-details {
    padding: 3rem 0;
    background: var(--dark-bg);
    min-height: calc(100vh - 60px);
}

.service-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
    display: flex;
    align-items: center;
}

.service-title i {
    margin-right: 1rem;
    color: var(--accent-color);
}

.badge {
    background-color: var(--accent-color);
    color: var(--text-primary); /* Updated text color */
    padding: 0.3rem 0.6rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    margin-left: 1rem;
}

.service-description {
    color: var(--text-light);
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 3rem;
    max-width: 900px;
}

/* Service Categories */
.service-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.category-card {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg); /* Updated shadow */
}

.category-icon {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.category-card h3 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.category-card p {
    color: var(--text-light);
    line-height: 1.6;
    margin-top: 1rem;
}

/* Development Process */
.development-section, 
.expertise-section {
    margin-bottom: 3rem;
}

.development-section h2,
.expertise-section h2,
.technology-stack h2 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--primary-color);
}

.process-list {
    list-style: none;
    padding: 0;
}

.process-list li {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    color: var(--text-light);
    font-size: 1.1rem;
}

.process-list li i {
    color: var(--accent-color);
    margin-right: 1rem;
}

/* Video Placeholder */
.video-placeholder {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    height: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 2rem;
    cursor: pointer;
    transition: var(--transition);
}

.video-placeholder:hover {
    background: var(--bg-tertiary); /* Updated background */
}

.video-placeholder i {
    font-size: 4rem;
    color: var(--primary-color);
}

/* Technology Stack */
.technology-stack {
    margin-bottom: 3rem;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 1.5rem;
}

.tech-item {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 1.5rem 1rem;
    text-align: center;
    transition: var(--transition);
}

.tech-item:hover {
    transform: translateY(-5px);
    background: #f7f7fa;
}

.tech-item:hover span {
    color: var(--dark-bg); /* Ensure text is readable on light hover background */
}

.tech-item i {
    font-size: 2rem;
    color: var(--accent-color);
    margin-bottom: 0.8rem;
    display: block;
}

.tech-item span {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* CTA Section */
.service-cta {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    padding: 3rem;
    text-align: center;
    margin-top: 4rem;
}

.service-cta h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.service-cta p {
    color: var(--text-light);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Global Styles */
body, html {
    width: 100%;
    height: 100%;
    overflow-x: hidden;
}

main.service-details {
    position: relative;
    width: 100%;
    min-height: 100vh;
    background: var(--bg-secondary, #18192b);
    overflow-x: hidden;
}

.WebDev video {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
    border-radius: 1rem;
    box-shadow: 0 4px 24px rgba(0,0,0,0.12);
}

/* Responsive Styles */
@media (max-width: 768px) {
    .service-title {
        font-size: 1.8rem;
    }
    
    .service-categories {
        grid-template-columns: 1fr;
    }
    
    .tech-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }
    
    .service-cta {
        padding: 2rem;
    }
}