/* ===========================
   Global Styles & Variables
   =========================== */

:root {
    --primary-red: #dc3545;
    --primary-green: #28a745;
    --dark-bg: #1a1a1a;
    --light-bg: #f8f9fa;
    --text-dark: #2c3e50;
    --text-muted: #6c757d;
    --dark-linear: linear-gradient(135deg, #1e2d3e, #243347);
    --border-radius: 1rem;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
}

.text-footer {
    color: #94a3b8 !important;
}

/* ===========================
   Navigation Bar
   =========================== */

.navbar {
    /* background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%) !important; 
    background: linear-gradient(135deg, #ad0a0a 0%, #071802 100%) !important;*/
    background: linear-gradient(135deg, #1e2d3e, #243347) !important;
    backdrop-filter: blur(10px);
    border-bottom: 2px solid rgba(220, 53, 69, 0.1);
}

.navbar-brand {
    font-size: 1.5rem;
    letter-spacing: 0.5px;
    transition: var(--transition);
    text-shadow: #660404 0px 3px 5px;
}

.navbar-brand:hover {
    transform: translateY(-2px);
}

.navbar-brand i {
    margin-right: 0.5rem;
}

.navbar-nav .nav-link {
    margin: 0 0.5rem;
    font-weight: 500;
    position: relative;
    transition: var(--transition);
    text-shadow: #311515b7 0px 3px 5px;
    margin: 5px;
}

.navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-red), var(--primary-green));
    transition: width 0.3s ease;
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    width: 100%;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-red) !important;
}

/* ===========================
   Hero Section
   =========================== */

.hero-section {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.7) 100%), url('../images/hero-bg.jpg') center/cover no-repeat;
    position: relative;
    overflow: hidden;
    min-height: 100vh;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(220, 53, 69, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.hero-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(40, 167, 69, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 8s ease-in-out infinite reverse;
}

.hero-section h1 {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    animation: slideInDown 0.8s ease;
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.hero-section p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    animation: slideInUp 0.8s ease 0.2s both;
    color: #e0e0e0;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.5);
}

.hero-section .d-flex {
    animation: slideInUp 0.8s ease 0.4s both;
}

.floating-box {
    animation: float 4s ease-in-out infinite;
    border: 2px solid rgba(220, 53, 69, 0.2);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

/* ===========================
   Services Section
   =========================== */

.services-section {
    position: relative;
    padding: 5rem 0;
}

.services-section h2 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
}

.service-card {
    background: white;
    border: 1px solid rgba(220, 53, 69, 0.1);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-red), var(--primary-green));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

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

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(220, 53, 69, 0.15) !important;
}

.service-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
}

.service-card h4 {
    color: var(--text-dark);
    font-size: 1.3rem;
}

/* ===========================
   Features Section
   =========================== */

.features-section {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    padding: 5rem 0;
}

.features-section h2 {
    font-size: 2.8rem;
    margin-bottom: 2rem;
}

.feature-box {
    border: 2px solid rgba(40, 167, 69, 0.2);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    animation: slideInLeft 0.8s ease;
}

.feature-list {
    animation: slideInRight 0.8s ease;
}

.feature-item {
    transition: var(--transition);
    padding: 1.5rem;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0);
}

.feature-item:hover {
    background: #ededed;
    transform: translateX(10px);
}

.feature-check {
    flex-shrink: 0;
    animation: scaleIn 0.5s ease;
}

.feature-item h5 {
    color: var(--text-dark);
    font-size: 1.1rem;
}

/* ===========================
   Team Section
   =========================== */

.team-section {
    padding: 5rem 0;
}

.team-section h2 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
}

.team-card {
    border: 1px solid rgba(220, 53, 69, 0.1);
    transition: var(--transition);
    overflow: hidden;
}

.team-image {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    transition: var(--transition);
}

.team-card:hover .team-image {
    transform: scale(1.05);
}

.team-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 50px rgba(220, 53, 69, 0.2) !important;
}

.team-card h5 {
    color: var(--text-dark);
    font-size: 1.2rem;
}

.team-card p.text-success,
.team-card p.text-danger {
    font-size: 0.95rem;
}

/* ===========================
   Contact Section
   =========================== */

.contact-section {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    padding: 5rem 0;
}

.contact-section h2 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
}

.contact-info {
    transition: var(--transition);
}

.contact-info:hover {
    transform: translateX(10px);
}

.contact-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.contact-info:hover .contact-icon {
    transform: scale(1.2) rotate(-10deg);
}

.contact-form input,
.contact-form textarea,
.contact-form select {
    border: 2px solid rgba(220, 53, 69, 0.1);
    transition: var(--transition);
    font-size: 1rem;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
    border-color: var(--primary-red);
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

/* ===========================
   Footer
   =========================== */

.footer {
    background: var(--dark-linear);
    border-top: 2px solid rgba(220, 53, 69, 0.2);
}

.footer h5,
.footer h6 {
    color: white;
    text-transform: uppercase;
}

.footer a {
    transition: var(--transition);
}

.footer a:hover {
    transform: translateY(-3px);
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.social-links a:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.2);
}

/* ===========================
   Buttons
   =========================== */

.btn-danger {
    background: linear-gradient(135deg, var(--primary-red) 0%, #c82333 100%);
    border: none;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: 0 10px 30px rgba(220, 53, 69, 0.3);
}

.btn-danger:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(220, 53, 69, 0.4);
    background: linear-gradient(135deg, #c82333 0%, #a01d2a 100%);
}

.btn-outline-success {
    border: 2px solid var(--primary-green);
    color: var(--primary-green);
    font-weight: 600;
    transition: var(--transition);
}

.btn-outline-success:hover {
    background: var(--primary-green);
    border-color: var(--primary-green);
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(40, 167, 69, 0.3);
}

/* ===========================
   Modal Styles
   =========================== */

.modal-content {
    border: none;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.modal-header {
    border-bottom: 2px solid rgba(220, 53, 69, 0.2);
}

.modal-title {
    color: var(--text-dark);
}

/* ===========================
   Animations
   =========================== */

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

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.5);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ===========================
   Utility Classes
   =========================== */

.hover-lift {
    transition: var(--transition);
}

.hover-lift:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15) !important;
}

.text-danger {
    color: var(--primary-red) !important;
}

.text-success {
    color: var(--primary-green) !important;
}

.bg-danger {
    background-color: var(--primary-red) !important;
}

.bg-success {
    background-color: var(--primary-green) !important;
}

/* Service Filter Mobile Scroll */
#serviceFilters, #portfolioFilters {
    overflow-x: auto;
    overflow-y: hidden;
    flex-wrap: nowrap !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 5px;
    scroll-behavior: smooth;
}

#serviceFilters::-webkit-scrollbar, #portfolioFilters::-webkit-scrollbar {
    display: none;
}

#serviceFilters .filter-btn, #portfolioFilters .portfolio-filter-btn {
    flex: 0 0 auto;
    white-space: nowrap;
}

#serviceFilters .filter-btn {
    flex-shrink: 0;
    background: var(--primary-green);
    color: #fff;
    border: 1.5px solid #696060;
}

#portfolioFilters .portfolio-filter-btn {
    flex-shrink: 0;
    background: var(--dark-linear);
    color: #fff;
    border: 1.5px solid #2e4160;
}

#serviceFilters .filter-btn:hover, #serviceFilters .filter-btn.active {
    background: var(--primary-red);
}

#portfolioFilters .portfolio-filter-btn:hover, #portfolioFilters .portfolio-filter-btn.active {
    background: var(--primary-red);
}

/* ===========================
   Responsive Design
   =========================== */

@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }
    .hero-section p {
        font-size: 1rem;
    }
    .services-section h2,
    .features-section h2,
    .team-section h2,
    .contact-section h2 {
        font-size: 2rem;
    }
    .d-flex {
        flex-direction: column !important;
    }
    .d-flex.gap-3 {
        gap: 1rem !important;
    }
    .btn-lg {
        padding: 0.75rem 1.5rem !important;
        font-size: 1rem !important;
    }
    .hero-section::before,
    .hero-section::after {
        display: none;
    }
    .feature-item {
        padding: 1rem;
    }
    .navbar-brand {
        font-size: 1.2rem;
    }
    #serviceFilters, #portfolioFilters {
        flex-direction: row !important;
        overflow-x: auto !important;
        flex-wrap: nowrap !important;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
        padding-bottom: 8px;
    }

    #serviceFilters::-webkit-scrollbar, #portfolioFilters::-webkit-scrollbar {
        display: none;
    }

    
}

@media (max-width: 576px) {
    .hero-section h1 {
        font-size: 2rem;
    }

    .display-5 {
        font-size: 1.8rem !important;
    }

    .services-section h2,
    .features-section h2,
    .team-section h2,
    .contact-section h2 {
        font-size: 1.6rem;
    }

    .service-card,
    .team-card {
        margin-bottom: 1rem;
    }

    .row.g-4 {
        gap: 1rem !important;
    }

    .container {
        padding: 0 1rem;
    }

    .min-vh-100 {
        min-height: auto !important;
        padding: 2rem 0;
    }
}

/* ===========================
   Dark Mode Support (Optional)
   =========================== */

@media (prefers-color-scheme: dark) {
    body {
        background: #1a1a1a;
        color: #e0e0e0;
    }

    .bg-light {
        background: #2d2d2d !important;
    }

    .bg-white {
        background: #2d2d2d !important;
        color: #e0e0e0;
    }

    .text-muted {
        color: #b0b0b0 !important;
    }

    .text-dark {
        color: #e0e0e0 !important;
    }
}

	/* ===== SERVICES FILTER ===== */
	.filter-btn {
		border: 2px solid #dee2e6;
		background: #fff;
		color: #555;
		border-radius: 30px;
		padding: 6px 18px;
		font-size: 0.85rem;
		font-weight: 600;
		cursor: pointer;
		transition: all 0.25s ease;
	}
	.filter-btn:hover,
	.filter-btn.active {
		background: #dc3545;
		border-color: #dc3545;
		color: #fff;
	}
	.filter-btn.active-green {
		background: #198754;
		border-color: #198754;
		color: #fff;
	}


.service-card {
    transition: all 0.3s ease;
    border: 1px solid #f1f1f1;
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.08) !important;
}

/* Icon */
.service-icon {
    width: 90px;
    height: 90px;
}

/* Tag */
.service-tag {
    font-size: 12px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 50px;
}

/* Tag Colors */
.tag-health {
    background: rgba(220, 53, 69, 0.12);
    color: #dc3545;
}

.tag-edu {
    background: rgba(13, 110, 253, 0.12);
    color: #0d6efd;
}

.tag-biz {
    background: rgba(25, 135, 84, 0.12);
    color: #198754;
}

.tag-finance {
    background: rgba(255, 193, 7, 0.18);
    color: #b78103;
}

.tag-const {
    background: rgba(111, 66, 193, 0.12);
    color: #6f42c1;
}

.tag-tech {
    background: rgba(13, 202, 240, 0.12);
    color: #0dcaf0;
}

	.service-card {
		transition: transform 0.25s ease, box-shadow 0.25s ease;
		border: 1px solid #f0f0f0;
	}
	.service-card:hover {
		transform: translateY(-6px);
		box-shadow: 0 12px 32px rgba(0,0,0,0.12) !important;
	}
	.service-icon i { display: block; }
	.service-tag {
		font-size: 0.5rem;
		font-weight: 700;
		letter-spacing: 0.5px;
		text-transform: uppercase;
		padding: 3px 10px;
		border-radius: 20px;
		display: inline-block;
		margin-bottom: 8px;
	}
	.tag-health   { background: #fde8ea; color: #c0392b; }
	.tag-edu      { background: #e8f5e9; color: #1a7a3c; }
	.tag-biz      { background: #e8f0fd; color: #1a56c4; }
	.tag-tech     { background: #f7a5fa; color: #550485; }
	.tag-finance  { background: #f3e8ff; color: #7e3af2; }
	.tag-const    { background: #fef3c7; color: #b45309; }

	/* hidden service cards */
	.service-card-wrap.hidden { display: none; }

	/* ===== PORTFOLIO / CLIENTS ===== */
	.portfolio-section { background: #0f1923; }
	.portfolio-section h2 { color: #fff; }
	.client-card {
		background: #1a2636;
		border: 1px solid #243347;
		border-radius: 14px;
		padding: 22px 18px;
		transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
		height: 100%;
	}
	.client-card:hover {
		transform: translateY(-5px);
		border-color: #dc3545;
		box-shadow: 0 8px 28px rgba(220,53,69,0.18);
	}
	.client-card .cat-badge {
		font-size: 0.68rem;
		font-weight: 700;
		text-transform: uppercase;
		letter-spacing: 0.6px;
		padding: 3px 10px;
		border-radius: 20px;
		display: inline-block;
		margin-bottom: 10px;
	}
	.client-card h6 { color: #e2e8f0; font-weight: 700; font-size: 0.95rem; margin-bottom: 4px; }
	.client-card p  { color: #7a8fa6; font-size: 0.8rem; margin: 0; }
	.client-icon {
		width: 100px; height: 100px;
		border-radius: 10px;
		display: flex; align-items: center; justify-content: center;
		margin-bottom: 14px;
		font-size: 3rem;
	}
	.portfolio-filter-btn {
		border: 1.5px solid #334155;
		background: transparent;
		color: #94a3b8;
		border-radius: 30px;
		padding: 5px 16px;
		font-size: 0.8rem;
		font-weight: 600;
		cursor: pointer;
		transition: all 0.22s ease;
	}
	.portfolio-filter-btn:hover,
	.portfolio-filter-btn.active {
		background: #dc3545;
		border-color: #dc3545;
		color: #fff;
	}
	.stat-highlight {
		background: linear-gradient(135deg, #1e2d3e, #243347);
		border-radius: 16px;
		padding: 28px 20px;
		text-align: center;
		border: 1px solid #2e4160;
	}
	.stat-highlight .num { font-size: 2.4rem; font-weight: 800; color: #dc3545; line-height: 1; }
	.stat-highlight .lbl { color: #94a3b8; font-size: 0.82rem; margin-top: 6px; }

	/* hover lift for team */
	.hover-lift { transition: transform 0.25s ease, box-shadow 0.25s ease; }
	.hover-lift:hover { transform: translateY(-6px); box-shadow: 0 12px 32px rgba(0,0,0,0.12) !important; }

    
    /* Feature Box */
    .feature-box {
        background: var(--dark-linear);
        box-shadow: 0 20px 50px rgba(0,0,0,0.08);
    }

    /* Tech Badge */
    .tech-badge {
        display: inline-block;
        background: rgba(255,255,255,0.15);
        color: #fff;
        padding: 8px 18px;
        border-radius: 50px;
        font-size: 14px;
        margin-bottom: 25px;
        font-weight: 600;
        backdrop-filter: blur(10px);
    }

    /* Icon */
    .tech-icon {
        width: 120px;
        height: 120px;
        background: rgba(255,255,255,0.15);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .tech-icon i {
        font-size: 55px;
    }

    /* Technology Items */
    .tech-item {
        background: rgba(255,255,255,0.12);
        color: #fff;
        padding: 10px 16px;
        border-radius: 50px;
        font-size: 14px;
        font-weight: 500;
        backdrop-filter: blur(10px);
        transition: 0.3s ease;
    }

    .tech-item:hover {
        background: rgba(255,255,255,0.25);
        transform: translateY(-2px);
    }
