/* Global Styles - Radiant Business Theme */
:root {
    --primary-color: #0b3866; /* Deep blue - trust, stability */
    --secondary-color: #072340; /* Darker blue - depth */
    --accent-color: #00c2a8; /* Vibrant teal - innovation, creativity */
    --accent-secondary: #ff6b6b; /* Coral accent - energy, passion */
    --accent-tertiary: #ffd166; /* Golden yellow - inspiration */
    --dark-color: #0a1829; /* Near black - sophistication */
    --light-color: #f8f9fc; /* Off-white with blue tint - clarity */
    --gray-color: #6e7c91; /* Blue-tinted gray - refinement */
    --success-color: #42b883; /* Green - growth, success */
    --gradient-primary: linear-gradient(135deg, var(--primary-color), #205691); /* Dynamic blue gradient */
    --gradient-accent: linear-gradient(135deg, var(--accent-color), #4edbcd); /* Teal gradient */
    --gradient-vibrant: linear-gradient(135deg, var(--accent-color), var(--accent-secondary)); /* Creative gradient */
    --shadow-soft: 0 10px 30px rgba(10, 24, 41, 0.1); /* Soft professional shadow */
    --shadow-strong: 0 15px 35px rgba(10, 24, 41, 0.2); /* Stronger shadow for emphasis */
    --border-radius-sm: 4px;
    --border-radius-md: 8px;
    --border-radius-lg: 12px;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    background-color: #f8fafd; /* Even lighter background for better visibility */
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

a {
    text-decoration: none;
    transition: all 0.3s ease;
    color: var(--accent-color);
    position: relative;
}

a:hover {
    color: var(--accent-color);
    opacity: 0.8;
}

.btn {
    border-radius: var(--border-radius-md);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.8rem 1.8rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
    box-shadow: var(--shadow-soft);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-strong);
}

.btn-primary {
    background: var(--gradient-accent);
    border: none;
    color: white;
}

.btn-primary:hover {
    background: var(--accent-color);
}

.btn-dark:hover {
    background: var(--dark-color);
    color: var(--accent-color);
}

.btn-outline-light {
    border: 2px solid white;
    background: transparent;
    color: white;
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.1);
}

.btn-primary:hover, .btn-primary:focus {
    background: var(--accent-color);
    opacity: 0.9;
    color: white;
    box-shadow: 0 5px 15px rgba(24, 188, 156, 0.3);
}

.btn-outline-light:hover {
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.2);
}

.section-heading {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--dark-color);
    position: relative;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); /* Add text shadow for better visibility */
}

.section-heading:after {
    content: '';
    position: absolute;
    width: 60px;
    height: 3px;
    background-color: var(--accent-color);
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
}

.section-subheading {
    font-size: 1.2rem;
    color: var(--gray-color);
    margin-bottom: 3rem;
    margin-top: 1.5rem;
}

/* Navbar */
#mainNav {
    background-color: #051428; /* Slightly darker than primary for logo contrast */
    transition: all 0.3s ease;
    padding: 1rem 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

#mainNav .navbar-brand {
    color: white;
    font-weight: 700;
    letter-spacing: 1px;
}

#mainNav .navbar-brand .brand-text {
    font-weight: 800;
    letter-spacing: 1px;
    color: var(--accent-color);
    text-shadow: 0px 2px 3px rgba(0, 0, 0, 0.3);
    font-size: 1.5rem;
    margin-right: 5px;
    position: relative;
    padding-right: 10px;
}

#mainNav .navbar-brand .brand-text::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    height: 60%;
    width: 2px;
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%);
}

#mainNav .navbar-brand .brand-subtext {
    font-weight: 400;
    font-size: 0.9rem;
    letter-spacing: 2px;
    color: var(--light-color);
    text-transform: uppercase;
    margin-left: 5px;
}

#mainNav .navbar-nav .nav-item .nav-link {
    color: white;
    font-weight: 500;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

#mainNav .navbar-nav .nav-item .copyright {
    color: #ffffff;
    opacity: 0.8;
}

#mainNav .navbar-nav .nav-item .nav-link:hover,
#mainNav .navbar-nav .nav-item .nav-link.active {
    color: var(--accent-color);
    position: relative;
}

#mainNav .navbar-nav .nav-item .nav-link.active:after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    background-color: var(--accent-color);
    bottom: 0;
    left: 0;
}

.dropdown-menu {
    background-color: var(--primary-color);
    border: none;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    margin-top: 0;
    padding: 0;
    border-top: 2px solid var(--accent-color);
    min-width: 180px; /* Ensure dropdown is wide enough */
}

.dropdown-item {
    color: white;
    transition: all 0.3s ease;
    padding: 0.8rem 1.5rem; /* Larger padding for better clickable area */
    font-weight: 500;
    position: relative;
    overflow: hidden;
    display: block; /* Ensure it's a block element for full width clicking */
    width: 100%;
    text-align: left;
    white-space: nowrap; /* Prevent text wrapping */
    cursor: pointer; /* Show pointer cursor on hover */
}

.dropdown-item:hover {
    background-color: rgba(0, 217, 255, 0.1);
    color: var(--accent-color);
    transform: translateX(5px);
}

.dropdown-item.active {
    background-color: rgba(0, 217, 255, 0.2);
    color: var(--accent-color);
}

/* Dropdown hover effect - with improved stability */
.navbar-nav .nav-item.dropdown:hover .dropdown-menu,
.navbar-nav .nav-item.dropdown:focus-within .dropdown-menu {
    display: block;
    animation: fadeInDown 0.3s ease forwards;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: all 0.3s ease;
}

/* Add additional stability to prevent flickering */
.navbar-nav .nav-item.dropdown .dropdown-menu {
    transition-delay: 0.1s;
    transform-origin: top center;
    z-index: 1030; /* Higher z-index for proper layering */
}

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

/* Hero Section - Radiant Creative Design */
.hero {
    position: relative;
    background-color: #000000; /* Extremely dark starting point */
    background-image: linear-gradient(135deg, #000000 0%, #7535ff 100%);
    color: #ffffff; /* Bright white for better visibility */
    padding: 10rem 0;
    overflow: hidden;
    box-shadow: var(--shadow-strong);
}

.hero-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 2;
}

/* Earth Animation Removed */

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.15;
}

/* Creative Design Elements */
.hero::after {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--accent-color) 0%, rgba(0,194,168,0) 70%);
    opacity: 0.3;
    z-index: 1;
    animation: pulse 8s infinite alternate;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.2; }
    50% { transform: scale(1.1); opacity: 0.3; }
    100% { transform: scale(1); opacity: 0.2; }
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.hero h1 {
    font-size: 3.5rem;
    color: var(--accent-color);
    display: inline-block;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    /* Simple 2D text with light shadow */
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.hero h2 {
    font-size: 2rem;
    font-weight: 400;
    margin-bottom: 2rem;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.hero .lead {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: #ffffff; /* Ensuring lead text is bright white */
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5); /* Adding shadow for better contrast */
}

.hero-buttons {
    margin-top: 2rem;
}

/* Services Section - Creative & Innovative */
.services {
    background-color: #f8fafd; /* Match the updated body background */
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.services::before {
    content: '';
    position: absolute;
    left: -150px;
    bottom: -150px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-tertiary) 0%, rgba(255, 209, 102, 0) 70%);
    opacity: 0.2;
    z-index: -1;
}

/* Base service box styles */
.service-box {
    border-radius: var(--border-radius-md);
    padding: 2.5rem 2rem;
    margin-bottom: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
    box-shadow: 0 10px 30px rgba(74, 0, 224, 0.2);
    border-top: 3px solid transparent;
    color: white;
    opacity: 0; /* Start invisible for animation */
    transform: translateY(20px); /* Start below for animation */
    position: relative;
    overflow: hidden;
}

/* Gradient variations for service boxes */
.col-md-4:nth-child(1) .service-box {
    background: linear-gradient(135deg, #3300a0 0%, #0e0c27 100%); /* 30% darker */
}

.col-md-4:nth-child(2) .service-box {
    background: linear-gradient(135deg, #4a00e0 0%, #151338 100%); /* Original */
}

.col-md-4:nth-child(3) .service-box {
    background: linear-gradient(135deg, #6425ff 0%, #1c1a49 100%); /* 15% lighter */
}

.col-md-4:nth-child(4) .service-box {
    background: linear-gradient(135deg, #7d47ff 0%, #25205a 100%); /* 30% lighter */
}

.col-md-4:nth-child(5) .service-box {
    background: linear-gradient(135deg, #3f00c7 0%, #11102e 100%); /* 15% darker */
}

.col-md-4:nth-child(6) .service-box {
    background: linear-gradient(135deg, #5d14f5 0%, #1a1842 100%); /* Intermediate */
}

.service-box::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    opacity: 0.3;
    z-index: 1;
}

.service-box::after {
    content: '';
    position: absolute;
    bottom: -30px;
    left: -30px;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    opacity: 0.3;
    z-index: 1;
}

.service-box:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 15px 35px rgba(74, 0, 224, 0.4);
    border-top: 3px solid #8347ff;
    border-bottom: none;
}

.service-icon {
    background: var(--gradient-accent);
    color: white;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 2rem;
    margin: 0 auto 1.5rem;
    box-shadow: var(--shadow-soft);
    position: relative;
    transition: all 0.3s ease;
}

.service-box:hover .service-icon {
    transform: scale(1.1);
    box-shadow: var(--shadow-strong);
}

.service-icon::after {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border-radius: 50%;
    border: 2px dashed var(--accent-color);
    opacity: 0.3;
    animation: spin 20s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Form styles for hero section */
.hero .contact-form-container {
    color: #051a33; /* Dark blue text for forms */
}

.hero .contact-form-container h2 {
    color: var(--primary-color);
    font-weight: 700;
}

.hero .contact-form-container label {
    color: #051a33;
    font-weight: 500;
}

.hero .contact-form-container .form-control {
    border-color: #dee2e6;
    color: #051a33;
}

.hero .contact-form-container .form-check-label {
    color: #051a33;
}

/* Card Animation Effects */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.pulse-animation {
    animation: pulse 1s ease-in-out;
}

/* Mafar Card Styles for all pages */
.mafar-card {
    background: linear-gradient(135deg, #4a00e0 0%, #151338 100%);
    color: white;
    border-radius: var(--border-radius-md) !important;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(74, 0, 224, 0.2);
    border-top: 3px solid transparent !important;
}

.mafar-card::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    opacity: 0.3;
    z-index: 1;
}

.mafar-card::after {
    content: '';
    position: absolute;
    bottom: -30px;
    left: -30px;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    opacity: 0.3;
    z-index: 1;
}

.mafar-card:hover {
    box-shadow: 0 15px 35px rgba(74, 0, 224, 0.4);
    border-top: 3px solid #8347ff !important;
    transform: translateY(-5px);
}

.mafar-card h3, .mafar-card h4, .mafar-card h5, .mafar-card h6 {
    color: white;
}

.mafar-card p {
    color: rgba(255, 255, 255, 0.9);
}

/* Card gradient variations */
.col-md-4:nth-child(1) .mafar-card, .col-lg-4:nth-child(1) .mafar-card {
    background: linear-gradient(135deg, #3300a0 0%, #0e0c27 100%); /* 30% darker */
}

.col-md-4:nth-child(2) .mafar-card, .col-lg-4:nth-child(2) .mafar-card {
    background: linear-gradient(135deg, #4a00e0 0%, #151338 100%); /* Original */
}

.col-md-4:nth-child(3) .mafar-card, .col-lg-4:nth-child(3) .mafar-card {
    background: linear-gradient(135deg, #6425ff 0%, #1c1a49 100%); /* 15% lighter */
}

.col-md-4:nth-child(4) .mafar-card, .col-lg-4:nth-child(4) .mafar-card {
    background: linear-gradient(135deg, #7d47ff 0%, #25205a 100%); /* 30% lighter */
}

.col-md-4:nth-child(5) .mafar-card, .col-lg-4:nth-child(5) .mafar-card {
    background: linear-gradient(135deg, #3f00c7 0%, #11102e 100%); /* 15% darker */
}

.col-md-4:nth-child(6) .mafar-card, .col-lg-4:nth-child(6) .mafar-card {
    background: linear-gradient(135deg, #5d14f5 0%, #1a1842 100%); /* Intermediate */
}

/* Smooth transition for cards */
.service-box, .tech-category {
    transition: opacity 0.5s ease-out, transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Service Images Consistency */
.service-box img {
    height: 200px; /* Fixed height for all service images */
    object-fit: cover; /* Maintain aspect ratio while covering area */
    width: 100%;
    object-position: center;
}

.service-box h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: white;
}

/* Tech Stack Section */
/* Base tech category styles */
.tech-category {
    border-radius: var(--border-radius-md);
    padding: 2rem;
    height: 100%;
    box-shadow: 0 10px 30px rgba(74, 0, 224, 0.2);
    transition: all 0.3s ease;
    border-top: 3px solid transparent;
    color: white;
    opacity: 0; /* Start invisible for animation */
    transform: translateY(20px); /* Start below for animation */
    position: relative;
    overflow: hidden;
}

/* Gradient variations for tech categories */
.col-md-6.col-lg-4:nth-child(1) .tech-category {
    background: linear-gradient(135deg, #3300a0 0%, #0e0c27 100%); /* 30% darker */
}

.col-md-6.col-lg-4:nth-child(2) .tech-category {
    background: linear-gradient(135deg, #4a00e0 0%, #151338 100%); /* Original */
}

.col-md-6.col-lg-4:nth-child(3) .tech-category {
    background: linear-gradient(135deg, #6425ff 0%, #1c1a49 100%); /* 15% lighter */
}

.col-md-6.col-lg-4:nth-child(4) .tech-category {
    background: linear-gradient(135deg, #7d47ff 0%, #25205a 100%); /* 30% lighter */
}

.col-md-6.col-lg-4:nth-child(5) .tech-category {
    background: linear-gradient(135deg, #3f00c7 0%, #11102e 100%); /* 15% darker */
}

.col-md-6.col-lg-4:nth-child(6) .tech-category {
    background: linear-gradient(135deg, #5d14f5 0%, #1a1842 100%); /* Intermediate */
}

.tech-category::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    opacity: 0.3;
    z-index: 1;
}

.tech-category::after {
    content: '';
    position: absolute;
    bottom: -30px;
    left: -30px;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    opacity: 0.3;
    z-index: 1;
}

.tech-category:hover {
    box-shadow: 0 15px 35px rgba(74, 0, 224, 0.4);
    border-top: 3px solid #8347ff;
    transform: translateY(-10px) scale(1.03);
}

.tech-category h3 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    color: var(--accent-color);
    position: relative;
    padding-bottom: 0.5rem;
}

.tech-category h3:after {
    content: '';
    position: absolute;
    width: 40px;
    height: 2px;
    background-color: var(--accent-color);
    bottom: 0;
    left: 0;
}

.tech-list {
    list-style: none;
    padding-left: 0;
}

.tech-list li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
}

.tech-list li:last-child {
    border-bottom: none;
}

/* CTA Section - Inspiring & Innovative */
.cta {
    background: var(--gradient-primary);
    color: white;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-strong);
    border-radius: var(--border-radius-lg);
    margin: 3rem 0;
}

.cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/pattern-bg.png');
    opacity: 0.05;
}

.cta::after {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, var(--accent-tertiary) 0%, rgba(255, 209, 102, 0) 70%);
    border-radius: 50%;
    opacity: 0.3;
    z-index: 1;
}

.cta-content {
    position: relative;
    z-index: 2;
    padding: 3rem 0;
}

/* Portfolio Section */
.portfolio {
    position: relative;
    overflow: hidden;
}

.portfolio-preview {
    background-color: var(--light-color);
}

.portfolio-preview .section-heading {
    color: #051428; /* Much darker color for better visibility */
    font-weight: 900; /* Extra bold */
    text-shadow: 0 1px 3px rgba(255, 255, 255, 0.5); /* Light text shadow for contrast */
}

.portfolio-preview .section-subheading {
    color: #072340; /* Darker color for subheading */
    font-weight: 600; /* Semi-bold for better visibility */
}

.portfolio-item {
    position: relative;
    margin-bottom: 30px;
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: all 0.3s ease;
}

.portfolio-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-strong);
}

.portfolio-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: all 0.5s ease;
}

.portfolio-item:hover img {
    transform: scale(1.05);
}

.portfolio-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(0deg, rgba(11, 56, 102, 0.9) 0%, rgba(11, 56, 102, 0) 100%);
    color: white;
    padding: 20px;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.3s ease;
}

.portfolio-item:hover .portfolio-info {
    transform: translateY(0);
    opacity: 1;
}

.portfolio-info h4 {
    margin: 0;
    font-size: 1.25rem;
}

.portfolio-info p {
    margin: 5px 0 0;
    font-size: 0.875rem;
    opacity: 0.8;
}

.portfolio-tags {
    margin-top: 10px;
}

.portfolio-tag {
    display: inline-block;
    background-color: var(--accent-color);
    color: white;
    font-size: 0.75rem;
    padding: 3px 8px;
    border-radius: 20px;
    margin-right: 5px;
    margin-bottom: 5px;
}

/* Footer */
.footer {
    background-color: var(--secondary-color);
    color: white;
    padding: 3rem 0 2rem;
}

.btn-social {
    height: 2.5rem;
    width: 2.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.btn-social:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    background-color: var(--accent-color);
    color: white;
}

/* About Page */
.page-header {
    background: var(--gradient-primary);
    color: white;
    padding: 8rem 0 4rem;
    position: relative;
    box-shadow: var(--shadow-strong);
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/header-bg.jpg');
    background-size: cover;
    background-position: center;
    opacity: 0.15;
}

.page-title {
    position: relative;
    z-index: 2;
    text-align: center;
}

.page-title h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.page-title p {
    font-size: 1.25rem;
    max-width: 800px;
    margin: 0 auto;
}

/* Team Section */
.team-member {
    margin-bottom: 3rem;
    text-align: center;
}

.team-img {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 1.5rem;
    border: 5px solid rgba(0, 86, 179, 0.2);
}

/* Contact Page */
.contact-info {
    margin-bottom: 2rem;
}

.contact-info i {
    color: var(--primary-color);
    font-size: 1.5rem;
    margin-right: 1rem;
    vertical-align: middle;
}

.contact-form label {
    font-weight: 600;
}

.map-container {
    height: 450px;
    margin-bottom: 2rem;
}

/* Portfolio page styles */
.portfolio-filter {
    margin-bottom: 2rem;
}

/* Mafar Card Styling */
.mafar-card {
    background-color: rgba(1, 5, 15, 0.95); /* Dark blue background with high opacity */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.mafar-card .card-body {
    color: #ffffff; /* White text */
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4); /* Text shadow for better readability */
}

.mafar-card .card-body p {
    color: #ffffff;
}

.mafar-card .text-muted {
    color: rgba(255, 255, 255, 0.8) !important; /* Brighter muted text */
}

.portfolio-filter button {
    background: none;
    border: none;
    padding: 8px 16px;
    margin: 0 5px;
    font-weight: 500;
    color: var(--secondary-color);
    transition: all 0.3s ease;
    position: relative;
}

/* Case Study Cards */
.case-study {
    transition: all 0.3s ease;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #2e0b6e, #3a0d87); /* Purple gradient like first image */
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1); /* Subtle border */
    color: #ffffff;
    transform: translateZ(0); /* Hardware acceleration */
}

.case-study:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.7);
}

.case-study .col-md-4 {
    padding: 0;
    position: relative;
    overflow: hidden;
}

.case-study img {
    object-fit: cover;
    border-radius: 15px 0 0 15px;
    transition: transform 0.5s ease;
}

.case-study:hover img {
    transform: scale(1.05);
}

.case-studies {
    background-color: #2e0b6e; /* Deep purple background */
    background-image: linear-gradient(135deg, #2e0b6e, #3a0d87); /* Purple gradient */
    background-size: cover;
    background-position: center;
    color: #ffffff;
    padding: 4rem 0;
    position: relative;
}

.case-studies .section-heading {
    color: #ffffff;
    font-size: 2.5rem;
    font-weight: 800;
    text-shadow: 0 2px 10px rgba(0, 194, 168, 0.5); /* Teal glow effect */
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
    letter-spacing: 0.5px;
}

.case-studies .ai-highlight {
    color: var(--accent-color); /* Teal color for AI highlight */
    position: relative;
    font-weight: 900;
    text-shadow: 0 0 15px rgba(0, 194, 168, 0.7); /* Stronger glow for highlight */
}

.case-studies .section-subheading {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 2rem;
}

.case-study .card-body {
    padding: 2rem;
    color: #ffffff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5); /* Add text shadow for better readability */
    background: linear-gradient(135deg, #2e0b6e, #3a0d87); /* Purple gradient like first image */
    border-radius: 0 15px 15px 0;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.case-study .card-body h4 {
    font-size: 1.4rem;
    margin-bottom: 0.8rem;
    font-weight: 700;
    color: #ffffff;
}

.case-study .btn-outline-primary {
    background: #00c2a8; /* Teal background like first image */
    border: none;
    color: #ffffff;
    font-weight: 600;
    padding: 0.7rem 1.5rem;
    border-radius: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    margin-top: auto;
    align-self: flex-start;
    box-shadow: 0 4px 10px rgba(0, 194, 168, 0.3);
}

.case-study .btn-outline-primary:hover {
    background: #00d6ba; /* Slightly lighter teal on hover */
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 194, 168, 0.5);
}

.case-study p {
    color: #ffffff;
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 1.2rem;
}

.case-study .text-muted {
    color: rgba(255, 255, 255, 0.8) !important; /* Brighter muted text for better visibility */
}

.case-study .badge {
    font-weight: 600;
    font-size: 0.85rem;
    padding: 0.5rem 0.8rem;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.case-study h4 {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #ffffff;
}

.case-study .text-muted {
    color: rgba(255, 255, 255, 0.7) !important;
}

.case-study p {
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.9);
}

/* ===== New Featured Cases Section ===== */
.featured-cases {
    background-color: #2e0b6e;
    background-image: linear-gradient(135deg, #2e0b6e, #3a0d87);
    padding: 5rem 0;
    position: relative;
    color: #ffffff;
}

.featured-cases::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/bg-pattern.png');
    background-size: cover;
    opacity: 0.05;
    pointer-events: none;
}

/* Section Titles */
.featured-cases .section-title {
    font-size: 2.6rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: #ffffff;
    letter-spacing: 0.5px;
    position: relative;
    display: inline-block;
}

.featured-cases .highlight-text {
    color: #00c2a8;
    position: relative;
    text-shadow: 0 0 15px rgba(0, 194, 168, 0.4);
}

.featured-cases .section-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Case Cards */
.case-card {
    background: #2e0b6e;
    color: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    height: 100%;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
}

.case-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.case-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0.2;
    z-index: -1;
}

/* Card Themes */
.case-card.retail {
    background: linear-gradient(135deg, #4a1098, #2e0b6e);
}

.case-card.government {
    background: linear-gradient(135deg, #3a0d87, #2c0a68);
}

.case-card.finance {
    background: linear-gradient(135deg, #46109c, #2f0c70);
}

.case-card.manufacturing {
    background: linear-gradient(135deg, #4c1194, #330c74);
}

/* Card Content */
.case-content {
    padding: 2.5rem;
    position: relative;
    z-index: 2;
}

/* Icons */
.case-icon {
    width: 60px;
    height: 60px;
    background-color: rgba(0, 194, 168, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.case-icon i {
    color: #00c2a8;
    font-size: 1.8rem;
}

/* Card Titles */
.case-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    color: #ffffff;
    line-height: 1.3;
}

.case-meta {
    font-size: 0.95rem;
    color: #00c2a8;
    margin-bottom: 1rem;
    font-weight: 500;
}

.case-desc {
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

/* Metrics */
.case-metrics {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.metric {
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff;
    display: flex;
    flex-direction: column;
}

.metric span {
    font-size: 0.85rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 0.2rem;
}

/* Buttons */
.case-btn {
    background: #00c2a8;
    color: #ffffff;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 194, 168, 0.2);
}

.case-btn:hover {
    background: #00d6ba;
    transform: translateY(-3px);
    color: #ffffff;
    box-shadow: 0 8px 20px rgba(0, 194, 168, 0.4);
}

/* AI Tag */
.ai-tag {
    color: #00c2a8;
    position: relative;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(0, 194, 168, 0.3);
}

/* Portfolio Page */
.portfolio-item {
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.portfolio-img {
    transition: transform 0.5s ease;
}

.portfolio-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(26, 26, 26, 0.8);
    color: white;
    padding: 1.5rem;
    transform: translateY(100%);
    transition: transform 0.5s ease;
}

.portfolio-item:hover .portfolio-img {
    transform: scale(1.05);
}

.portfolio-item:hover .portfolio-caption {
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 992px) {
    .hero h1 {
        font-size: 2.8rem;
    }
    
    .hero h2 {
        font-size: 1.8rem;
    }
    
    .section-heading {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 10rem 0 6rem;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero h2 {
        font-size: 1.5rem;
    }
    
    .section-heading {
        font-size: 2rem;
    }
    
    .page-header {
        padding: 7rem 0 3rem;
    }
    
    .page-title h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 576px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero h2 {
        font-size: 1.3rem;
    }
    
    .section-heading {
        font-size: 1.8rem;
    }
    
    .page-title h1 {
        font-size: 2rem;
    }
}

/* AI Content Highlighting Styles */
.ai-highlight {
    color: #ffffff; /* Pure white text for maximum contrast */
    font-weight: 700; /* Bolder text */
    transition: all 0.3s ease;
    position: relative;
    display: inline-block;
    background-color: rgba(1, 6, 18, 0.9); /* Much darker blue with less transparency */
    padding: 0.3rem 0.8rem; /* More padding for better readability */
    border-radius: 4px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5); /* Stronger shadow */
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4); /* Add text shadow for better readability */
    border-left: 2px solid var(--accent-color); /* Left accent border */
}

.ai-highlight:hover {
    text-shadow: 0 0 8px rgba(0, 217, 255, 0.5);
    transform: scale(1.03);
    background-color: rgba(5, 20, 40, 0.8);
}

.ai-section {
    position: relative;
    padding: 2rem;
    border-radius: 12px;
    overflow: hidden;
    border-left: 4px solid var(--accent-color);
    background-color: rgba(1, 5, 15, 0.95); /* Almost black background with minimal transparency */
    margin: 2rem 0;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #ffffff; /* White text */
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5); /* Text shadow for better readability */
}

.ai-section::before {
    content: '🤖 AI';
    position: absolute;
    top: 0;
    right: 0;
    background: var(--accent-gradient);
    color: white;
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
    font-weight: bold;
    border-bottom-left-radius: 8px;
}

.ai-card {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    background: rgba(1, 5, 15, 0.95); /* Darker background for better contrast */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.ai-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    border-color: var(--accent-color);
}

.ai-card .card-header {
    background: var(--accent-gradient);
    color: white;
    font-weight: bold;
    border: none;
}

.ai-card .card-body {
    padding: 1.5rem;
    color: #7ad7ff; /* Light blue color for better visibility */
}

.ai-card .card-body p {
    color: #7ad7ff; /* Light blue for paragraphs */
    font-size: 1.05rem;
}

.ai-card .card-body ul li {
    color: #7ad7ff; /* Light blue for list items */
}

.ai-badge {
    background: var(--accent-gradient);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-right: 0.5rem;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
    display: inline-block;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 217, 255, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(0, 217, 255, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0, 217, 255, 0);
    }
}
