/* Services Page Styles */
/* Minimal base pulled from style.css to avoid including it on this page */
:root {
    --primary: #0016BB;
    --secondary: #2c3e50;
    --accent: #D8460A;
    --light: #ecf0f1;
    --dark: #2c3e50;
    --gray: #7f8c8d;
    --header-height: 80px;
    --header-scroll-height: 70px;
    /* rgb helpers used in gradients here */
    --primary-rgb: 0, 22, 187;
    --accent-rgb: 216, 70, 10;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

.section-title h2 {
    font-size: 2.5rem;
    color: var(--secondary);
    margin-bottom: 15px;
}

.section-title:after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--primary);
}

/* Header + Nav essentials for this page only */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background: rgba(255, 255, 255, 0.95);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

header.header--scrolled {
    height: var(--header-scroll-height);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.header-container {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo h1 {
    font-size: 24px;
    font-weight: 700;
    color: #005792;
    margin-left: 10px;
}

nav ul {
    display: flex;
    gap: 30px;
    align-items: center;
    list-style: none;
}

nav ul li a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    padding: 8px 0;
    transition: all 0.3s ease;
    position: relative;
}

nav ul li a:hover { color: #005792; }

/* Mobile nav */
.mobile-menu-btn { display: none; font-size: 24px; color: #005792; cursor: pointer; }

@media (max-width: 992px) {
    .mobile-menu-btn { display: block; }
    nav {
        position: fixed;
        top: var(--header-height);
        left: 0;
        width: 100%;
        background: #fff;
        padding: 20px;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        transform: translateY(-150%);
        transition: transform 0.3s ease;
    }
    nav.active { transform: translateY(0); }
    nav ul { flex-direction: column; gap: 15px; }
    nav ul li { width: 100%; text-align: center; }
}
.services-hero {
    margin-top: var(--header-height, 80px);
    position: relative;
    height: 60vh;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.services-hero video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

.services-hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: white;
}

.services-hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.services-hero-content p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2;
}

#services-page {
    position: relative;
    z-index: 4;
}

.service-section {
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
    scroll-margin-top: var(--header-height, 80px);
}

.service-section:nth-child(even) {
    background: linear-gradient(
        to right,
        rgba(var(--primary-rgb), 0.03),
        rgba(var(--accent-rgb), 0.03)
    );
}

.service-content {
    display: flex;
    align-items: center;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
}

.service-section.reverse .service-content {
    flex-direction: row-reverse;
}

.service-text {
    flex: 1;
    padding: 2rem;
}

.service-image {
    flex: 1;
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    transform: perspective(1000px) rotateY(-5deg);
    transition: transform 0.5s ease;
}

.service-section.reverse .service-image {
    transform: perspective(1000px) rotateY(5deg);
}

.service-image:hover {
    transform: perspective(1000px) rotateY(0deg) !important;
}

.service-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-image:hover img {
    transform: scale(1.05);
}

.service-text h3 {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.service-text h3 i {
    font-size: 1.5rem;
    padding: 1rem;
    background: var(--primary);
    color: white;
    border-radius: 12px;
}

.service-intro {
    font-size: 1.2rem;
    color: var(--secondary);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.service-features {
    list-style: none;
    padding: 0;
    margin-bottom: 2rem;
}

.service-features li {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.1rem;
    color: var(--dark);
}

.service-features li i {
    color: var(--accent);
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 2rem;
    background: var(--primary);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 22, 187, 0.2);
}

.cta-button:hover {
    background: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(216, 70, 10, 0.25);
}

.cta-button i {
    transition: transform 0.3s ease;
}

.cta-button:hover i {
    transform: translateX(5px);
}

/* Responsive Design */
@media (max-width: 992px) {
    .service-content {
        flex-direction: column !important;
        gap: 2rem;
        padding: 0 1rem;
    }

    .service-text, .service-image {
        width: 100%;
    }

    .service-image {
        transform: none !important;
    }

    .service-section {
        padding: 4rem 0;
    }
}

@media (max-width: 768px) {
    .service-text h3 {
        font-size: 1.75rem;
    }

    .service-intro {
        font-size: 1.1rem;
    }

    .service-features li {
        font-size: 1rem;
    }

    .service-image img {
        height: 300px;
    }
}

/* Animation Classes */
.service-section {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.service-section.aos-animate {
    opacity: 1;
    transform: translateY(0);
}

/* === Services Cards Grid (modern) === */
#services-cards {
	padding: 80px 0;
}

.services-cards-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 30px;
}

.service-card {
	background: #ffffff;
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 16px 40px rgba(0,0,0,0.08);
	transition: transform 0.35s ease, box-shadow 0.35s ease;
	cursor: pointer;
}

.service-card:hover {
	transform: translateY(-6px);
	box-shadow: 0 24px 60px rgba(0,0,0,0.12);
}

.service-card-image {
	position: relative;
	height: 200px;
	overflow: hidden;
}

.service-card-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.6s ease;
}

.service-card:hover .service-card-image img {
	transform: scale(1.06);
}

.service-card-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(0,0,0,0.0) 0%, rgba(7,18,61,0.6) 100%);
	opacity: 0;
	display: flex;
	align-items: flex-end;
	justify-content: center;
	padding: 16px;
	transition: opacity 0.35s ease;
}

.service-card:hover .service-card-overlay {
	opacity: 1;
}

.view-details-btn {
	background: rgba(255,255,255,0.92);
	color: var(--dark);
	border: none;
	border-radius: 999px;
	padding: 10px 18px;
	font-weight: 600;
	cursor: pointer;
	box-shadow: 0 8px 20px rgba(0,0,0,0.15);
	transition: all 0.25s ease;
}

.view-details-btn:hover {
	filter: brightness(1.03);
	transform: translateY(-2px);
}

.service-card-content {
	padding: 22px;
}

.service-card-icon {
	width: 52px;
	height: 52px;
	border-radius: 14px;
	background: linear-gradient(135deg, var(--primary), #6a7bff);
	color: #fff;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 8px 20px rgba(0,22,187,0.25);
}

.service-card-content h3 {
	margin: 14px 0 8px;
	color: var(--secondary);
}

.service-card-content p {
	color: var(--gray);
}

.service-card-features {
	list-style: none;
	margin: 14px 0 16px;
	padding: 0;
}

.service-card-features li {
	display: flex;
	align-items: center;
	gap: 8px;
	color: var(--secondary);
	margin-bottom: 8px;
}

.service-card-features i {
	color: var(--accent);
}

.service-card-cta {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	text-decoration: none;
	color: #fff;
	background: linear-gradient(135deg, #0016BB 0%, #00c2ff 100%);
	padding: 10px 16px;
	border-radius: 999px;
	font-weight: 600;
	box-shadow: 0 8px 20px rgba(0, 22, 187, 0.25);
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.service-card-cta:hover {
	transform: translateY(-2px);
	box-shadow: 0 14px 28px rgba(0, 22, 187, 0.3);
}

/* === Service Modals === */
.service-modal {
	position: fixed;
	inset: 0;
	background: rgba(7, 18, 61, 0.65);
	backdrop-filter: blur(4px);
	display: none;
	align-items: center;
	justify-content: center;
	z-index: 2000;
	opacity: 0;
	transition: opacity 0.25s ease;
}

.service-modal.is-open {
	display: flex;
	opacity: 1;
}

.modal-content {
	position: relative;
	width: min(1000px, 92%);
	background: #fff;
	border-radius: 18px;
	overflow: hidden;
	box-shadow: 0 30px 80px rgba(0,0,0,0.25);
	animation: modalIn 0.35s ease both;
}

@keyframes modalIn {
	0% { transform: translateY(20px) scale(0.98); opacity: 0; }
	100% { transform: translateY(0) scale(1); opacity: 1; }
}

.modal-close {
	position: absolute;
	top: 14px;
	right: 16px;
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
	color: #fff;
	background: rgba(0,0,0,0.35);
	width: 38px;
	height: 38px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	transition: transform 0.2s ease, background 0.2s ease;
	z-index: 2;
}

.modal-close:hover { transform: scale(1.05); background: rgba(0,0,0,0.5); }

.modal-header {
	background: linear-gradient(135deg, rgba(0,22,187,0.95), rgba(0,194,255,0.95));
	color: #fff;
	padding: 24px 24px 20px;
}

.modal-header-content {
	display: flex;
	align-items: center;
	gap: 16px;
}

.modal-icon {
	width: 56px;
	height: 56px;
	border-radius: 14px;
	background: rgba(255,255,255,0.15);
	display: flex;
	align-items: center;
	justify-content: center;
}

.modal-icon i { font-size: 22px; color: #fff; }

.modal-title h2 { margin: 0 0 6px; }
.modal-title p { margin: 0; opacity: 0.9; }

.modal-body {
	display: grid;
	grid-template-columns: 1.1fr 0.9fr;
	gap: 22px;
	padding: 22px;
	align-items: start;
}

.modal-image img {
	width: 100%;
	height: 320px;
	object-fit: cover;
	border-radius: 12px;
}

.modal-details h3 { color: var(--secondary); margin-bottom: 10px; }
.modal-details p { color: var(--dark); margin-bottom: 12px; }

.modal-features {
	list-style: none;
	padding: 0;
	margin: 10px 0 18px;
}

.modal-features li {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 8px;
	color: var(--secondary);
}

.modal-features i { color: var(--accent); }

.modal-cta {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	text-decoration: none;
	color: #fff;
	background: linear-gradient(135deg, #0016BB, #00c2ff);
	padding: 12px 18px;
	border-radius: 999px;
	font-weight: 600;
	box-shadow: 0 10px 24px rgba(0,22,187,0.25);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.modal-cta:hover { transform: translateY(-2px); box-shadow: 0 16px 30px rgba(0,22,187,0.3); }

@media (max-width: 900px) {
	.modal-body { grid-template-columns: 1fr; }
	.modal-image img { height: 240px; }
}

/* Mobile Styles for Services Cards */
@media (max-width: 992px) {
	/* Services Cards Mobile Layout - 2 cards per row for all mobile devices including tablets */
	.services-cards-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 0.75rem;
	}
	
	.service-card {
		/* Disable hover effects on mobile */
		transform: none !important;
		box-shadow: 0 16px 40px rgba(0,0,0,0.08) !important;
	}
	
	/* Always show view details button on mobile - no hover required */
	.service-card-overlay {
		opacity: 1 !important;
	}
	
	/* Disable image scaling on mobile */
	.service-card .service-card-image img {
		transform: none !important;
	}
	
	/* Reduce card content padding for better fit */
	.service-card-content {
		padding: 16px;
	}
	
	.service-card-content h3 {
		font-size: 1.1rem;
		margin: 10px 0 6px;
	}
	
	.service-card-content p {
		font-size: 0.85rem;
	}
	
	.service-card-features li {
		font-size: 0.8rem;
		margin-bottom: 6px;
	}
	
	.service-card-icon {
		width: 40px;
		height: 40px;
	}
	
	.service-card-cta {
		padding: 8px 12px;
		font-size: 0.8rem;
	}
}

/* Additional mobile styles for very small screens - keep 2 columns but make even smaller */
@media (max-width: 480px) {
	.services-cards-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 0.5rem;
	}
	
	.service-card-content {
		padding: 12px;
	}
	
	.service-card-content h3 {
		font-size: 1rem;
		margin: 8px 0 4px;
	}
	
	.service-card-content p {
		font-size: 0.75rem;
		line-height: 1.4;
	}
	
	.service-card-features li {
		font-size: 0.7rem;
		margin-bottom: 4px;
	}
	
	.service-card-icon {
		width: 32px;
		height: 32px;
	}
	
	.service-card-icon i {
		font-size: 0.9rem;
	}
	
	.service-card-cta {
		padding: 6px 10px;
		font-size: 0.75rem;
	}
	
	.view-details-btn {
		padding: 6px 12px;
		font-size: 0.75rem;
	}
	
	.service-card-image {
		height: 150px;
	}
}

/* Only switch to single column on very small screens */
@media (max-width: 360px) {
	.services-cards-grid {
		grid-template-columns: 1fr;
		gap: 1rem;
	}
	
	.service-card-content {
		padding: 16px;
	}
	
	.service-card-content h3 {
		font-size: 1.1rem;
	}
	
	.service-card-content p {
		font-size: 0.9rem;
	}
	
	.service-card-features li {
		font-size: 0.85rem;
	}
	
	.service-card-icon {
		width: 44px;
		height: 44px;
	}
	
	.service-card-cta {
		padding: 10px 16px;
		font-size: 0.9rem;
	}
	
	.service-card-image {
		height: 180px;
	}
}

/* Mobile Modal Styles */
@media (max-width: 768px) {
	.modal-content {
		width: 95%;
		margin: 20px;
		max-height: 90vh;
		overflow-y: auto;
	}
	
	.modal-header {
		padding: 20px 20px 16px;
	}
	
	.modal-header-content {
		flex-direction: column;
		text-align: center;
		gap: 12px;
	}
	
	.modal-icon {
		width: 48px;
		height: 48px;
	}
	
	.modal-title h2 {
		font-size: 1.5rem;
	}
	
	.modal-title p {
		font-size: 0.9rem;
	}
	
	.modal-body {
		padding: 20px;
		gap: 16px;
	}
	
	.modal-image img {
		height: 200px;
	}
	
	.modal-details h3 {
		font-size: 1.2rem;
	}
	
	.modal-details p {
		font-size: 0.9rem;
	}
	
	.modal-features li {
		font-size: 0.9rem;
	}
	
	.modal-cta {
		padding: 10px 16px;
		font-size: 0.9rem;
	}
}

@media (max-width: 480px) {
	.modal-content {
		width: 98%;
		margin: 10px;
		max-height: 95vh;
	}
	
	.modal-header {
		padding: 16px;
	}
	
	.modal-body {
		padding: 16px;
	}
	
	.modal-image img {
		height: 180px;
	}
	
	.modal-title h2 {
		font-size: 1.3rem;
	}
	
	.modal-title p {
		font-size: 0.85rem;
	}
}