/* Services Page Specific Styles */


/* Services Hero Section */

.services-hero {
    height: 80vh;
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.9), rgba(59, 130, 246, 0.7)), url('assets/img/Balaji-Elite01-1-1536x1024.jpg') center/cover;
    position: relative;
    display: flex;
    align-items: center;
    color: white;
}


/* Service Overview Cards */

.service-overview-card {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
    text-align: center;
    border: 1px solid var(--border-color);
}

.service-overview-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.service-overview-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 2rem;
}

.service-overview-card h4 {
    color: var(--dark-color);
    margin-bottom: 1rem;
    font-size: 1.4rem;
    font-weight: 700;
}

.service-overview-card p {
    color: var(--text-muted);
    margin-bottom: 0;
    line-height: 1.6;
}


/* Project Categories */

.project-category {
    padding: 3rem 0;
    border-bottom: 1px solid var(--border-color);
}

.project-category:last-child {
    border-bottom: none;
}

.category-content {
    padding: 2rem 0;
}

.category-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(45deg, var(--accent-color), #f97316);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
}

.category-content h3 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.category-content .lead {
    color: var(--text-muted);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-list li {
    display: flex;
    align-items: center;
    margin-bottom: 0.8rem;
    font-size: 1rem;
    color: var(--text-color);
}

.feature-list li i {
    margin-right: 0.8rem;
    font-size: 1.1rem;
}


/* Infrastructure Cards */

.infrastructure-card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    overflow: hidden;
    height: 100%;
}

.infrastructure-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.infrastructure-image {
    height: 300px;
    overflow: hidden;
}

.infrastructure-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.infrastructure-card:hover .infrastructure-image img {
    transform: scale(1.05);
}

.infrastructure-content {
    padding: 2rem;
}

.infrastructure-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.8rem;
    margin: 0 auto 1.5rem auto;
    /* centers the circle itself */
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.infrastructure-icon:hover {
    transform: scale(1.15) rotate(10deg);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.25);
}

.infrastructure-content h4 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 1rem;
}

.infrastructure-content p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.infrastructure-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.infrastructure-features li {
    color: var(--text-color);
    margin-bottom: 0.5rem;
    padding-left: 1.2rem;
    position: relative;
    font-size: 0.95rem;
}

.infrastructure-features li::before {
    content: '•';
    color: var(--primary-color);
    position: absolute;
    left: 0;
    font-weight: bold;
}


/* Specialty Cards */

.specialty-card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.specialty-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent-color);
}

.specialty-header {
    background: linear-gradient(135deg, var(--accent-color), #f97316);
    color: white;
    padding: 2rem;
    text-align: center;
}

.specialty-icon {
    width: 70px;
    height: 70px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 1.8rem;
}

.specialty-header h4 {
    color: white;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0;
}

.specialty-content {
    padding: 2rem;
}

.specialty-content p {
    color: var(--text-muted);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.specialty-features {
    margin: 0;
}

.feature-item {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.feature-item i {
    color: var(--accent-color);
    margin-right: 0.8rem;
    font-size: 1rem;
    font-weight: bold;
}

.feature-item span {
    font-size: 0.95rem;
}


/* Responsive Design for Services Page */

@media (max-width: 768px) {
    .services-hero {
        height: 50vh;
    }
    .services-hero .hero-title {
        font-size: 2.5rem;
    }
    .category-content {
        padding: 1rem 0;
    }
    .category-content h3 {
        font-size: 1.6rem;
    }
    .project-category {
        padding: 2rem 0;
    }
    .infrastructure-content,
    .specialty-content {
        padding: 1.5rem;
    }
    .service-overview-card {
        padding: 2rem 1.5rem;
    }
}

@media (max-width: 576px) {
    .services-hero .hero-title {
        font-size: 2rem;
    }
    .services-hero .hero-buttons .btn {
        display: block;
        width: 100%;
        margin: 0.5rem 0;
    }
    .category-content h3 {
        font-size: 1.4rem;
    }
    .section-title {
        font-size: 2rem;
    }
    .infrastructure-content,
    .specialty-content {
        padding: 1rem;
    }
    .service-overview-card {
        padding: 1.5rem 1rem;
    }
}


/* Animation for service cards */

.service-overview-card,
.infrastructure-card,
.specialty-card {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.6s ease forwards;
}

.service-overview-card:nth-child(1) {
    animation-delay: 0.1s;
}

.service-overview-card:nth-child(2) {
    animation-delay: 0.2s;
}

.service-overview-card:nth-child(3) {
    animation-delay: 0.3s;
}

.infrastructure-card:nth-child(1) {
    animation-delay: 0.1s;
}

.infrastructure-card:nth-child(2) {
    animation-delay: 0.2s;
}

.infrastructure-card:nth-child(3) {
    animation-delay: 0.3s;
}

.specialty-card:nth-child(1) {
    animation-delay: 0.1s;
}

.specialty-card:nth-child(2) {
    animation-delay: 0.2s;
}

.specialty-card:nth-child(3) {
    animation-delay: 0.3s;
}


/* Enhanced hover effects */

.category-icon {
    transition: var(--transition);
}

.project-category:hover .category-icon {
    transform: rotate(10deg) scale(1.1);
}

.infrastructure-icon,
.specialty-icon {
    transition: var(--transition);
}

.infrastructure-card:hover .infrastructure-icon,
.specialty-card:hover .specialty-icon {
    transform: rotate(-10deg) scale(1.1);
}


/* Base Styles */

.services-hero {
    position: relative;
    height: 80vh;
    background: linear-gradient(135deg, rgba(30, 58, 138, 0.85), rgba(59, 130, 246, 0.7)), url('assets/img/Balaji-Elite01-1-1536x1024.jpg') center/cover no-repeat;
    display: flex;
    align-items: center;
    color: #fff;
    overflow: hidden;
}

.services-hero .hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
}

.services-hero .hero-content {
    position: relative;
    z-index: 2;
}

.services-hero .hero-title {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.services-hero .hero-subtitle {
    font-size: 1.25rem;
    line-height: 1.6;
    max-width: 700px;
}

.services-hero .hero-buttons {
    margin-top: 1.5rem;
}


/* Tablet (≤ 992px) */

@media (max-width: 992px) {
    .services-hero {
        height: 70vh;
        text-align: center;
        padding: 0 1rem;
    }
    .services-hero .hero-title {
        font-size: 2.5rem;
    }
    .services-hero .hero-subtitle {
        font-size: 1.1rem;
        margin: 0 auto;
    }
    .services-hero .hero-buttons {
        justify-content: center;
    }
}


/* Mobile (≤ 576px) */

@media (max-width: 576px) {
    .services-hero {
        height: auto;
        padding: 4rem 1rem 3rem;
    }
    .services-hero .hero-title {
        font-size: 1.8rem;
    }
    .services-hero .hero-subtitle {
        font-size: 1rem;
        line-height: 1.5;
    }
    .services-hero .hero-buttons .btn {
        display: block;
        width: 100%;
        margin: 0.5rem 0;
    }
}

.category-content {
    background: url("assets/img/service-three_pattern.png") center/cover no-repeat;
    border-radius: 12px;
    overflow: hidden;
    color: #fff;
    min-height: 100%;
}

.category-content .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.6);
    /* dark overlay for readability */
}

.category-content .content-inner {
    position: relative;
    z-index: 2;
}


/* Right top background image */

.top-right-bg {
    position: absolute;
    top: 0;
    right: 0;
    width: 350px;
    height: 350px;
    background: url('./assets/img/building-sketch.jpg') no-repeat center center/cover;
    border-bottom-left-radius: 50%;
    z-index: 1;
    opacity: 0.1;
    /* subtle effect */
}


/* Ensure text content stays above */

#projects-we-undertake .container {
    position: relative;
    z-index: 2;
}

.scroll-wrapper {
    overflow: hidden;
    white-space: nowrap;
    position: relative;
}

.scroll-content {
    display: flex;
    animation: scroll-left 25s linear infinite;
}

.scroll-content img {
    height: 200px;
    /* adjust height */
    margin: 0 15px;
    border-radius: 12px;
    object-fit: cover;
    flex-shrink: 0;
}

@keyframes scroll-left {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}


/* Responsive */

@media (max-width: 768px) {
    .scroll-content img {
        height: 120px;
        margin: 0 10px;
    }
}