/* Custom CSS for TechX Website */

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800&family=Lato:wght@300;400;500;600;700&display=swap');

/* Global Styles - 3-Color Scheme */
:root {
    /* Primary Color: Deep Blue (Energy/Professional) */
    --primary-color: #0f172a; /* Deep Navy Blue */
    
    /* Secondary Color: Pure White */
    --white: #ffffff; /* Pure White */
    
    /* Accent Color: Gold (Energy/Premium) */
    --accent-color: #f59e0b; /* Warm Gold */
    
    /* Derived Colors from the 3 main colors */
    --text-dark: var(--primary-color); /* Using primary for dark text */
    --text-light: #64748b; /* Muted blue-gray derived from primary */
    --light-bg: #f8fafc; /* Very light blue-gray */
    --neutral-bg: #f1f5f9; /* Light blue-gray */
    --border-color: #e2e8f0; /* Light border color */
    
    /* Gradients using only the 3 colors */
    --gradient-primary: linear-gradient(135deg, var(--primary-color) 0%, #1e293b 100%);
    --gradient-secondary: linear-gradient(135deg, var(--accent-color) 0%, #fbbf24 100%);
    --gradient-accent: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    
    /* Shadows using primary color */
    --shadow: 0 10px 25px rgba(15, 23, 42, 0.1);
    --shadow-hover: 0 20px 40px rgba(15, 23, 42, 0.15);
}

/* Override Bootstrap Success Colors with our 3-color scheme */
.text-success {
    color: var(--accent-color) !important;
}

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

.border-success {
    border-color: var(--accent-color) !important;
}

.btn-success {
    background-color: var(--accent-color) !important;
    border-color: var(--accent-color) !important;
    color: var(--white) !important;
}

.btn-success:hover {
    background-color: #fbbf24 !important;
    border-color: #fbbf24 !important;
    color: var(--white) !important;
}

/* Ensure all check icons use our accent color */
.fas.fa-check,
.fas.fa-check-circle {
    color: var(--accent-color) !important;
}

/* Override any remaining green elements */
.text-success,
.bg-success,
.border-success {
    color: var(--accent-color) !important;
    background-color: var(--accent-color) !important;
    border-color: var(--accent-color) !important;
}

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

/* Global Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Global Smooth Transitions */
* {
    transition: all 0.3s ease;
}

/* Exclude specific elements from global transitions */
img, svg, video, canvas, audio, iframe, embed, object {
    transition: none;
}

/* Smooth transitions for specific elements */
a, button, .btn, .card, .navbar-nav .nav-link, .dropdown-item, .social-links a {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Hover effects with smooth transitions */
.btn:hover, .card:hover, .navbar-nav .nav-link:hover, .dropdown-item:hover, .social-links a:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

body {
    font-family: 'Lato', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    color: var(--text-dark);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
}

.display-1, .display-2, .display-3, .display-4, .display-5, .display-6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
}

/* Custom Background Classes */
.bg-gradient-primary {
    background: var(--gradient-primary);
}

.bg-gradient-secondary {
    background: var(--gradient-secondary);
}

.bg-gradient-accent {
    background: var(--gradient-accent);
}

/* Navigation */
.navbar {
    background: var(--primary-color) !important;
    box-shadow: var(--shadow);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 1rem 0;
}

.navbar.scrolled {
    padding: 0.5rem 0;
    background: rgba(15, 23, 42, 0.95) !important;
    backdrop-filter: blur(10px);
}

.navbar-brand {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.8rem;
    color: var(--white) !important;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar-brand:hover {
    color: var(--white) !important;
    text-decoration: none;
    transform: scale(1.02);
}

/* Logo Styles */
.logo-img {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.navbar-brand:hover .logo-img {
    transform: scale(1.1);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}



.navbar-nav .nav-link {
    font-family: 'Lato', sans-serif;
    color: var(--white) !important;
    font-weight: 500;
    margin: 0 0.5rem;
    padding: 0.5rem 1rem !important;
    border-radius: 8px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar-nav .nav-link:hover {
    color: var(--white) !important;
    background-color: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.navbar-nav .nav-link.active {
    color: var(--white) !important;
    background-color: var(--accent-color);
}

/* Mobile Navigation Logo */
@media (max-width: 991.98px) {
    .navbar-brand img {
        height: 35px !important;
        max-width: 120px;
        object-fit: contain;
    }
}

/* Mobile Menu Icon Color */
.navbar-toggler {
    border: none;
    padding: 0.25rem 0.5rem;
}

.navbar-toggler:focus {
    box-shadow: none;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 255, 255, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

/* Dropdown Menu Styles */
.dropdown-menu {
    background: var(--white);
    border: none;
    border-radius: 12px;
    box-shadow: var(--shadow);
    padding: 1rem 0;
    margin-top: 0.5rem;
}

.dropdown-item {
    color: var(--text-dark);
    font-weight: 500;
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
}

.dropdown-item:hover {
    background-color: var(--light-bg);
    color: var(--primary-color);
    transform: translateX(5px);
}

.dropdown-divider {
    margin: 0.5rem 0;
    border-color: var(--border-color);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.02) 0%, rgba(245, 158, 11, 0.01) 100%);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: var(--white);
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
    min-height: 70vh;
}

/* Hero Logo Styles */
.hero-logo {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-logo-img {
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.3));
    animation: heroLogoFloat 4s ease-in-out infinite;
}

.hero-logo-img:hover {
    transform: scale(1.15) rotate(8deg);
    filter: drop-shadow(0 16px 32px rgba(0, 0, 0, 0.5));
}

@keyframes heroLogoFloat {
    0%, 100% {
        transform: translateY(0px) scale(1);
    }
    50% {
        transform: translateY(-12px) scale(1.02);
    }
}

/* Hero background images for different pages */
.hero-home {
    background-image: linear-gradient(135deg, rgba(15, 23, 42, 0.01) 0%, rgba(245, 158, 11, 0.01) 100%, rgba(0, 0, 0, 0.06) 100%), url('../images/hero-home.jpg');
}

.hero-power-solutions {
    background-image: linear-gradient(135deg, rgba(15, 23, 42, 0.01) 0%, rgba(245, 158, 11, 0.01) 100%, rgba(0, 0, 0, 0.06) 100%), url('../images/hero-power-solutions.jpg');
}

.hero-energy-trading {
    background-image: linear-gradient(135deg, rgba(15, 23, 42, 0.01) 0%, rgba(245, 158, 11, 0.01) 100%, rgba(0, 0, 0, 0.06) 100%), url('../images/hero-energy-trading.jpg');
}

.hero-energy-development {
    background-image: linear-gradient(135deg, rgba(15, 23, 42, 0.01) 0%, rgba(245, 158, 11, 0.01) 100%, rgba(0, 0, 0, 0.06) 100%), url('../images/hero-energy-development.jpg');
}

.hero-infrastructure {
    background-image: linear-gradient(135deg, rgba(15, 23, 42, 0.01) 0%, rgba(245, 158, 11, 0.01) 100%, rgba(0, 0, 0, 0.06) 100%), url('../images/hero-infrastructure.jpg');
}

.hero-about {
    background-image: linear-gradient(135deg, rgba(15, 23, 42, 0.01) 0%, rgba(245, 158, 11, 0.01) 100%, rgba(0, 0, 0, 0.06) 100%), url('../images/hero-about.jpg');
}

.hero-blog {
    background-image: linear-gradient(135deg, rgba(15, 23, 42, 0.01) 0%, rgba(245, 158, 11, 0.01) 100%, rgba(0, 0, 0, 0.06) 100%), url('../images/hero-blog.jpg');
}

.hero-contact {
    background-image: linear-gradient(135deg, rgba(15, 23, 42, 0.01) 0%, rgba(245, 158, 11, 0.01) 100%, rgba(0, 0, 0, 0.06) 100%), url('../images/hero-contact.jpg');
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.01) 0%, rgba(245, 158, 11, 0.01) 100%);
    z-index: 1;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.06);
    z-index: 1;
}

.hero .container {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--white);
    text-shadow: 4px 4px 8px rgba(0, 0, 0, 0.9), 0 0 20px rgba(0, 0, 0, 0.5);
}

.hero .lead {
    font-family: 'Lato', sans-serif;
    font-size: 1.3rem;
    font-weight: 400;
    line-height: 1.6;
    margin-bottom: 2rem;
    color: var(--white);
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.9), 0 0 15px rgba(0, 0, 0, 0.5);
}

@media (max-width: 768px) {
    .hero {
        padding: 120px 0 80px;
        min-height: 70vh;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero .lead {
        font-size: 1.1rem;
    }
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: var(--white);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8), 0 0 10px rgba(0, 0, 0, 0.4);
}

/* Button Styles */
.btn {
    font-family: 'Lato', sans-serif;
    font-weight: 600;
    padding: 12px 30px;
    border-radius: 12px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: var(--accent-color);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(245, 179, 1, 0.3);
}

.btn-primary:hover {
    background: #fbbf24;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.4);
    color: var(--white);
}

.btn-secondary {
    background: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--primary-color);
    transform: translateY(-3px);
}

.btn-outline-light {
    border: 2px solid var(--white);
    color: var(--white);
}

.btn-outline-light:hover {
    background: var(--white);
    color: var(--primary-color);
    transform: translateY(-3px);
}

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

.btn-warning:hover {
    background: #fbbf24;
    color: var(--white);
    transform: translateY(-3px);
}

/* Section Styles */
.section-light {
    background-color: var(--light-bg);
}

.section-neutral {
    background-color: var(--neutral-bg);
}

.section-primary {
    background: var(--gradient-primary);
    color: var(--white);
}

/* Card Styles */
.card {
    border: none;
    border-radius: 16px;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.card-body {
    padding: 2rem;
}

.card-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    margin-bottom: 1rem;
}

/* Service Card with Image */
.service-card {
    position: relative;
    overflow: hidden;
}

.service-card .card-img-top {
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.service-card .card-body {
    position: relative;
    z-index: 2;
}

/* Project Card with Image */
.project-card {
    position: relative;
    overflow: hidden;
}

.project-card .card-img-top {
    height: 180px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.project-card:hover .card-img-top {
    transform: scale(1.05);
}

.project-card .card-body {
    position: relative;
    z-index: 2;
}

/* Team Card with Image */
.team-card {
    text-align: center;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.team-card .card-img-top {
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

/* Blog Card Enhancements */
.card .card-img-top {
    transition: transform 0.3s ease;
}

.card:hover .card-img-top {
    transform: scale(1.02);
}

/* Contact Page Image */
.contact-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

/* Blog Card with Image */
.blog-card {
    overflow: hidden;
}

.blog-card .card-img-top {
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-card:hover .card-img-top {
    transform: scale(1.05);
}

/* Image overlay effects */
.card-img-overlay {
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.8) 0%, rgba(245, 158, 11, 0.6) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2rem;
}

/* Responsive images */
.img-fluid {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

/* Image lazy loading */
.lazy-image {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lazy-image.loaded {
    opacity: 1;
}

/* Stats Section */
.stats {
    padding: 80px 0;
    background: var(--gradient-primary);
    color: var(--white);
}

.stat-card {
    text-align: center;
    padding: 2rem 1rem;
}

.stat-number {
    font-family: 'Montserrat', sans-serif;
    font-size: 3rem;
    font-weight: 800;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1.1rem;
    font-weight: 500;
    opacity: 0.9;
}

/* Process Steps */
.process-step {
    text-align: center;
    padding: 2rem;
    position: relative;
}

.process-step::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 80px;
    height: 80px;
    background: var(--gradient-primary);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    z-index: -1;
}

.process-step .number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 1rem;
}

/* Forms */
.form-control {
    border: 2px solid var(--border-color);
    border-radius: 10px;
    padding: 12px 15px;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 0 0.2rem rgba(245, 158, 11, 0.25);
}

/* Social Links */
.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--accent-color);
    transform: translateY(-3px);
}

/* Smooth Scroll Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.slide-up {
    opacity: 0;
    transform: translateY(50px);
    transition: all 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.slide-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.slide-left {
    opacity: 0;
    transform: translateX(-50px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.slide-left.visible {
    opacity: 1;
    transform: translateX(0);
}

.slide-right {
    opacity: 0;
    transform: translateX(50px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.slide-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.scale-in {
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.scale-in.visible {
    opacity: 1;
    transform: scale(1);
}

/* Staggered animations for multiple elements */
.stagger-delay-1 { transition-delay: 0.1s; }
.stagger-delay-2 { transition-delay: 0.2s; }
.stagger-delay-3 { transition-delay: 0.3s; }
.stagger-delay-4 { transition-delay: 0.4s; }

/* Smooth scrolling for the entire page */
html {
    scroll-behavior: smooth;
}

/* Team Cards */
.team-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    box-shadow: var(--shadow);
}

.team-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-hover);
}

.team-photo {
    position: relative;
}

.team-photo img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--accent-color);
}

.expertise-tags .badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
}

/* Certification Cards */
.certification-card {
    transition: all 0.3s ease;
    border: none;
    box-shadow: var(--shadow);
    background: var(--white);
}

.certification-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.certification-logo {
    color: var(--accent-color);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80px;
}

.certification-logo img {
    max-width: 100%;
    height: auto;
    transition: transform 0.3s ease;
}

.certification-card:hover .certification-logo img {
    transform: scale(1.05);
}

/* Testimonial Cards */
.testimonial-card {
    transition: all 0.3s ease;
    border: none;
    box-shadow: var(--shadow);
    position: relative;
}

.testimonial-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-hover);
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 20px;
    font-size: 4rem;
    color: var(--accent-color);
    opacity: 0.3;
    font-family: serif;
}

.testimonial-quote {
    font-style: italic;
    color: var(--text-dark);
    border-left: 4px solid var(--accent-color);
    padding-left: 1rem;
    margin: 1rem 0;
}

.rating {
    font-size: 0.9rem;
}

.testimonial-project {
    background: var(--light-bg);
    padding: 0.75rem;
    border-radius: 6px;
    margin-top: 1rem;
}

/* Project Cards Enhancement */
.project-card {
    transition: all 0.3s ease;
    border: none;
    box-shadow: var(--shadow);
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.project-details {
    background: var(--light-bg);
    padding: 1rem;
    border-radius: 6px;
    margin-top: 1rem;
}

.project-savings {
    color: var(--primary-color);
}

.project-roi {
    color: var(--accent-color);
}

.project-investment {
    color: var(--primary-color);
}

.feature-tags .badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
}

.project-testimonial {
    background: var(--light-bg);
    padding: 1rem;
    border-radius: 6px;
    margin-top: 1rem;
    border-left: 4px solid var(--accent-color);
}

/* Footer */
.footer {
    background: var(--primary-color);
    color: var(--white);
    padding: 60px 0 20px;
}

.footer h5 {
    color: var(--accent-color);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.footer ul {
    list-style: none;
    padding: 0;
}

.footer ul li {
    margin-bottom: 0.5rem;
}

.footer ul li a {
    color: var(--white);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer ul li a:hover {
    color: var(--accent-color);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    margin-top: 40px;
}

/* Footer Logo Styles */
.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-brand img {
    transition: all 0.3s ease;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.footer-brand:hover img {
    transform: scale(1.05);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

.footer-logo-text {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-logo-text img {
    transition: all 0.3s ease;
    opacity: 0.8;
}

.footer-logo-text:hover img {
    opacity: 1;
    transform: scale(1.1);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Mobile Navigation Styles */
@media (max-width: 991px) {
    .navbar-collapse {
        background: var(--primary-color);
        border-radius: 12px;
        margin-top: 1rem;
        padding: 1rem;
        box-shadow: var(--shadow);
    }
    
    .navbar-nav .nav-link {
        margin: 0.5rem 0;
        padding: 0.75rem 1rem !important;
        border-radius: 8px;
        transition: all 0.3s ease;
    }
    
    .navbar-nav .nav-link:hover {
        background-color: var(--accent-color);
        transform: translateX(5px);
    }
    
    .dropdown-menu {
        background: rgba(255, 255, 255, 0.1);
        border: 1px solid rgba(255, 255, 255, 0.2);
        backdrop-filter: blur(10px);
        margin-top: 0;
    }
    
    .dropdown-item {
        color: var(--white);
        padding: 0.75rem 1rem;
    }
    
    .dropdown-item:hover {
        background-color: rgba(255, 255, 255, 0.1);
        color: var(--white);
    }
    
    .dropdown-divider {
        border-color: rgba(255, 255, 255, 0.2);
    }
    
    /* Footer Logo Mobile Styles */
    .footer-brand img {
        max-height: 30px;
        width: auto;
    }
    
    .footer-logo-text img {
        max-height: 25px;
        width: auto;
    }
    
    /* Mobile Footer Redesign */
    .footer {
        padding: 40px 0 20px;
    }
    
    .footer .row > div {
        margin-bottom: 2rem;
    }
    
    /* Mobile Footer Two-Column Layout */
    .footer .row {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 1rem !important;
    }
    
    .footer .row .col-lg-4:first-child {
        grid-column: 1 / -1 !important;
        margin-bottom: 1.5rem !important;
        flex: none !important;
        max-width: none !important;
    }
    
    .footer .row .col-lg-2 {
        margin-bottom: 1rem !important;
        flex: none !important;
        max-width: none !important;
    }
    
    .footer .row .col-lg-4:last-child {
        grid-column: 1 / -1 !important;
        margin-top: 0.5rem !important;
        flex: none !important;
        max-width: none !important;
    }
    
    .footer h5 {
        font-size: 1.1rem;
        margin-bottom: 1rem;
        font-weight: 600;
    }
    
    /* Services and Company Sections Mobile Styling */
    .footer .col-lg-2 h5 {
        font-size: 1rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        margin-bottom: 0.75rem;
        color: var(--white);
    }
    
    .footer .col-lg-2 ul.list-unstyled {
        margin-bottom: 0;
    }
    
    .footer .col-lg-2 ul.list-unstyled li {
        margin-bottom: 0.4rem;
    }
    
    .footer .col-lg-2 ul.list-unstyled li a {
        font-size: 0.85rem;
        color: rgba(255, 255, 255, 0.8);
        text-decoration: none;
        transition: color 0.3s ease;
        line-height: 1.4;
    }
    
    .footer .col-lg-2 ul.list-unstyled li a:hover {
        color: var(--white);
    }
    
    .footer ul.list-unstyled li {
        margin-bottom: 0.5rem;
    }
    
    .footer ul.list-unstyled li a {
        font-size: 0.9rem;
        color: rgba(255, 255, 255, 0.8);
        text-decoration: none;
        transition: color 0.3s ease;
    }
    
    .footer ul.list-unstyled li a:hover {
        color: var(--white);
    }
    
    .footer .social-links {
        justify-content: flex-start;
        margin-top: 1rem;
    }
    
    .footer .social-links a {
        width: 40px;
        height: 40px;
        border-radius: 8px;
        background: rgba(255, 255, 255, 0.1);
        border: 1px solid rgba(255, 255, 255, 0.2);
        margin-right: 0.5rem;
        margin-bottom: 0.5rem;
    }
    
    .footer-bottom {
        margin-top: 2rem;
        padding-top: 1.5rem;
        border-top: 1px solid rgba(255, 255, 255, 0.2);
    }
    
    .footer-bottom .row {
        text-align: center;
    }
    
    .footer-bottom .col-md-6 {
        margin-bottom: 1rem;
    }
    
    /* Mobile Footer Layout Improvements */
    .footer .footer-brand {
        flex-direction: column;
        text-align: center;
        margin-bottom: 2rem;
    }
    
    .footer .footer-brand img {
        margin-bottom: 1rem;
        margin-right: 0;
    }
    
    .footer .footer-brand div {
        text-align: center;
    }
    
    .footer .footer-brand h5 {
        font-size: 1.2rem;
        margin-bottom: 0.5rem;
    }
    
    .footer .footer-brand p {
        font-size: 0.9rem;
    }
    
    .footer p.text-muted {
        text-align: center;
        font-size: 0.9rem;
        line-height: 1.5;
    }
    
    .footer .social-links {
        justify-content: center;
        margin-top: 1.5rem;
    }
    
    .footer .social-links a {
        width: 45px;
        height: 45px;
        border-radius: 10px;
        background: rgba(255, 255, 255, 0.1);
        border: 1px solid rgba(255, 255, 255, 0.2);
        margin: 0 0.25rem;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.3s ease;
    }
    
    .footer .social-links a:hover {
        background: rgba(255, 255, 255, 0.2);
        transform: translateY(-2px);
    }
    
    .footer .social-links a i {
        font-size: 1.1rem;
        color: var(--white);
    }
}

@media (max-width: 576px) {
    /* Extra Small Mobile Footer */
    .footer {
        padding: 30px 0 15px;
    }
    
    .footer .row {
        gap: 0.75rem !important;
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
    }
    
    .footer .row .col-lg-4:first-child {
        margin-bottom: 1rem !important;
        grid-column: 1 / -1 !important;
        flex: none !important;
        max-width: none !important;
    }
    
    .footer .footer-brand {
        margin-bottom: 1.5rem;
    }
    
    .footer .footer-brand img {
        max-height: 35px;
        margin-bottom: 0.75rem;
    }
    
    .footer .footer-brand h5 {
        font-size: 1.1rem;
    }
    
    .footer .footer-brand p {
        font-size: 0.85rem;
    }
    
    .footer p.text-muted {
        font-size: 0.85rem;
        margin-bottom: 1.5rem;
    }
    
    .footer h5 {
        font-size: 1rem;
        margin-bottom: 0.75rem;
    }
    
    .footer .col-lg-2 h5 {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }
    
    .footer ul.list-unstyled li {
        margin-bottom: 0.4rem;
    }
    
    .footer ul.list-unstyled li a {
        font-size: 0.85rem;
    }
    
    .footer .social-links {
        margin-top: 1rem;
    }
    
    .footer .social-links a {
        width: 40px;
        height: 40px;
        border-radius: 8px;
        margin: 0 0.2rem;
    }
    
    .footer .social-links a i {
        font-size: 1rem;
    }
    
    .footer-bottom {
        margin-top: 1.5rem;
        padding-top: 1rem;
    }
    
    .footer-bottom .col-md-6 {
        margin-bottom: 0.75rem;
    }
    
    .footer-bottom p {
        font-size: 0.8rem;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    /* Hero Section Mobile */
    .hero {
        padding: 120px 0 80px;
        min-height: 70vh;
        text-align: center;
    }
    
    .hero h1 {
        font-size: 2.2rem;
        line-height: 1.3;
        margin-bottom: 1rem;
    }
    
    .hero .lead {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .hero .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .hero .d-flex {
        flex-direction: column;
        gap: 0.5rem !important;
    }
    
    /* Stats Section Mobile */
    .stats {
        padding: 40px 0;
    }
    
    .stats .row {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }
    
    .stats .col-lg-3 {
        flex: 0 0 calc(50% - 0.5rem);
        max-width: calc(50% - 0.5rem);
        margin-bottom: 1rem;
    }
    
    .stat-card {
        padding: 1rem 0.5rem;
        min-height: auto;
    }
    
    .stat-number {
        font-size: 1.8rem;
        margin-bottom: 0.25rem;
    }
    
    .stat-label {
        font-size: 0.85rem;
        line-height: 1.2;
    }
    
    /* Cards Mobile */
    .card-body {
        padding: 1.25rem;
    }
    
    .card-title {
        font-size: 1.1rem;
    }
    
    /* Buttons Mobile */
    .btn-lg {
        padding: 12px 24px;
        font-size: 1rem;
    }
    
    /* Section Spacing Mobile */
    .py-5 {
        padding-top: 2.5rem !important;
        padding-bottom: 2.5rem !important;
    }
    
    /* Text Sizing Mobile */
    .display-4 {
        font-size: 2.5rem;
    }
    
    .display-5 {
        font-size: 2rem;
    }
    
    .lead {
        font-size: 1rem;
    }
    
    /* Grid Adjustments */
    .row.g-4 {
        --bs-gutter-x: 0.75rem;
        --bs-gutter-y: 0.75rem;
    }
    
    /* Icon Sizing Mobile */
    .fa-8x {
        font-size: 4rem !important;
    }
    
    .fa-4x {
        font-size: 2.5rem !important;
    }
    
    .fa-3x {
        font-size: 2rem !important;
    }
    
    /* Process Circles Mobile */
    .bg-primary.text-white.rounded-circle {
        width: 60px !important;
        height: 60px !important;
    }
    
    .bg-primary.text-white.rounded-circle i,
    .bg-primary.text-white.rounded-circle span {
        font-size: 1.5rem !important;
    }
}

@media (max-width: 576px) {
    /* Extra Small Mobile */
    .hero {
        padding: 80px 0 50px;
        min-height: 55vh;
    }
    
    /* Stats Section Extra Small Mobile */
    .stats {
        padding: 30px 0;
    }
    
    .stats .row {
        gap: 0.5rem;
    }
    
    .stats .col-lg-3 {
        flex: 0 0 calc(50% - 0.25rem);
        max-width: calc(50% - 0.25rem);
        margin-bottom: 0.5rem;
    }
    
    .stat-card {
        padding: 0.75rem 0.25rem;
    }
    
    .stat-number {
        font-size: 1.5rem;
        margin-bottom: 0.2rem;
    }
    
    .stat-label {
        font-size: 0.75rem;
        line-height: 1.1;
    }
    
    /* Core Expertise Mobile Layout */
    .section-light .row.g-4 {
        display: flex;
        flex-wrap: wrap;
        gap: 0.75rem;
    }
    
    .section-light .col-lg-3 {
        flex: 0 0 calc(50% - 0.375rem);
        max-width: calc(50% - 0.375rem);
        margin-bottom: 0.75rem;
    }
    
    .section-light .service-card {
        height: auto;
        min-height: 280px;
    }
    
    .section-light .service-card .card-img-top {
        height: 120px;
    }
    
    .section-light .service-card .card-body {
        padding: 1rem 0.75rem;
    }
    
    .section-light .service-card .card-title {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }
    
    .section-light .service-card .card-text {
        font-size: 0.85rem;
        line-height: 1.3;
        margin-bottom: 0;
    }
    
    /* Core Expertise Extra Small Mobile */
    .section-light .row.g-4 {
        gap: 0.5rem;
    }
    
    .section-light .col-lg-3 {
        flex: 0 0 calc(50% - 0.25rem);
        max-width: calc(50% - 0.25rem);
        margin-bottom: 0.5rem;
    }
    
    .section-light .service-card {
        min-height: 250px;
    }
    
    .section-light .service-card .card-img-top {
        height: 100px;
    }
    
    .section-light .service-card .card-body {
        padding: 0.75rem 0.5rem;
    }
    
    .section-light .service-card .card-title {
        font-size: 0.9rem;
        margin-bottom: 0.4rem;
    }
    
    .section-light .service-card .card-text {
        font-size: 0.8rem;
        line-height: 1.2;
    }
    
    /* Universal Mobile Container Layout */
    .row.g-4 {
        display: flex;
        flex-wrap: wrap;
        gap: 0.75rem;
    }
    
    /* col-lg-4 containers (3 columns -> 2 columns on mobile) */
    .col-lg-4 {
        flex: 0 0 calc(50% - 0.375rem);
        max-width: calc(50% - 0.375rem);
        margin-bottom: 0.75rem;
    }
    
    /* Specific rules for Infrastructure Projects and Solar Solutions Projects - Single Column on Tablet */
    .py-5 .col-lg-4 {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        margin-bottom: 1.5rem !important;
    }
    
    /* Infrastructure Projects section specific styling for tablet */
    .py-5 .project-card {
        min-height: auto !important;
        height: auto !important;
        margin-bottom: 1.5rem !important;
    }
    
    .py-5 .project-card .card-img-top {
        height: 180px !important;
    }
    
    .py-5 .project-card .card-body {
        padding: 1.5rem !important;
    }
    
    .py-5 .project-card .card-title {
        font-size: 1.2rem !important;
        margin-bottom: 1rem !important;
    }
    
    .py-5 .project-card .card-text {
        font-size: 1rem !important;
        line-height: 1.6 !important;
    }
    
    /* col-lg-6 containers (2 columns -> 1 column on mobile) */
    .col-lg-6 {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 0.75rem;
    }
    
    /* col-lg-8/col-lg-4 blog layout */
    .col-lg-8 {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 1rem;
    }
    
    .col-lg-4 {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 0.75rem;
    }
    
    /* Universal card styling for mobile */
    .card {
        height: auto;
        min-height: 200px;
    }
    
    .card .card-img-top {
        height: 120px;
    }
    
    .card .card-body {
        padding: 1rem 0.75rem;
    }
    
    .card .card-title {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }
    
    .card .card-text {
        font-size: 0.85rem;
        line-height: 1.3;
        margin-bottom: 0;
    }
    
    /* Icon sizing for mobile */
    .fa-3x {
        font-size: 2rem !important;
    }
    
    .fa-4x {
        font-size: 2.5rem !important;
    }
    
    /* Footer Logo Extra Small Mobile */
    .footer-brand img {
        max-height: 25px;
        width: auto;
    }
    
    .footer-logo-text img {
        max-height: 20px;
        width: auto;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .hero .lead {
        font-size: 0.95rem;
    }
    
    .btn {
        padding: 10px 16px;
        font-size: 0.9rem;
        border-radius: 8px;
    }
    
    .btn-lg {
        padding: 12px 20px;
        font-size: 0.95rem;
    }
    
    /* Container Padding */
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    /* Card Adjustments */
    .card {
        border-radius: 12px;
    }
    
    .card-body {
        padding: 0.75rem;
    }
    
    /* Stats Mobile */
    .stat-number {
        font-size: 1.8rem;
    }
    
    .stat-label {
        font-size: 0.9rem;
    }
    
    /* Section Spacing */
    .py-5 {
        padding-top: 1.5rem !important;
        padding-bottom: 1.5rem !important;
    }
    
    /* Text Sizing */
    .display-4 {
        font-size: 2rem;
    }
    
    .display-5 {
        font-size: 1.6rem;
    }
    
    /* Icon Sizing */
    .fa-8x {
        font-size: 3rem !important;
    }
    
    .fa-4x {
        font-size: 2rem !important;
    }
    
    /* Process Circles */
    .bg-primary.text-white.rounded-circle {
        width: 50px !important;
        height: 50px !important;
    }
    
    .bg-primary.text-white.rounded-circle i,
    .bg-primary.text-white.rounded-circle span {
        font-size: 1.2rem !important;
    }
    
    /* Footer Mobile */
    .footer {
        padding: 30px 0 15px;
        text-align: center;
    }
    
    /* Extra Small Mobile Universal Layout */
    .row.g-4 {
        gap: 0.5rem;
    }
    
    /* Footer specific overrides for extra small mobile */
    .footer .row {
        gap: 0.5rem !important;
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
    }
    
    .footer .row .col-lg-4:first-child {
        grid-column: 1 / -1 !important;
        flex: none !important;
        max-width: none !important;
        margin-bottom: 0.5rem !important;
    }
    
    .footer .row .col-lg-2 {
        flex: none !important;
        max-width: none !important;
        margin-bottom: 0.5rem !important;
    }
    
    .footer .row .col-lg-4:last-child {
        grid-column: 1 / -1 !important;
        flex: none !important;
        max-width: none !important;
        margin-bottom: 0.5rem !important;
    }
    
    .col-lg-4 {
        flex: 0 0 calc(50% - 0.25rem);
        max-width: calc(50% - 0.25rem);
        margin-bottom: 0.5rem;
    }
    
    /* Specific rules for Infrastructure Projects and Solar Solutions Projects - Single Column on Mobile */
    .py-5 .col-lg-4 {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        margin-bottom: 1rem !important;
    }
    
    /* Infrastructure Projects section specific styling */
    .py-5 .project-card {
        min-height: auto !important;
        height: auto !important;
        margin-bottom: 1rem !important;
    }
    
    .py-5 .project-card .card-img-top {
        height: 160px !important;
    }
    
    .py-5 .project-card .card-body {
        padding: 1.25rem !important;
    }
    
    .py-5 .project-card .card-title {
        font-size: 1.1rem !important;
        margin-bottom: 0.75rem !important;
    }
    
    .py-5 .project-card .card-text {
        font-size: 0.9rem !important;
        line-height: 1.5 !important;
    }
    
    /* Development Process Section Mobile Layout - Side by Side */
    .section-neutral .col-lg-4.col-md-6 {
        flex: 0 0 calc(50% - 0.375rem) !important;
        max-width: calc(50% - 0.375rem) !important;
        margin-bottom: 1rem !important;
    }
    
    .section-neutral .col-lg-4.col-md-6 .text-center {
        padding: 1rem 0.5rem;
        background: rgba(255, 255, 255, 0.9);
        border-radius: 12px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        transition: all 0.3s ease;
        height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
    
    .section-neutral .col-lg-4.col-md-6 .text-center:hover {
        transform: translateY(-4px);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
        background: rgba(255, 255, 255, 0.95);
    }
    
    .section-neutral .col-lg-4.col-md-6 .bg-primary {
        width: 60px !important;
        height: 60px !important;
        margin-bottom: 0.75rem;
    }
    
    .section-neutral .col-lg-4.col-md-6 h5 {
        font-size: 1rem !important;
        font-weight: 600 !important;
        margin-bottom: 0.5rem !important;
        color: var(--primary-color);
    }
    
    .section-neutral .col-lg-4.col-md-6 p {
        font-size: 0.85rem !important;
        line-height: 1.4 !important;
        color: var(--text-dark);
        margin-bottom: 0 !important;
    }
    
    .col-lg-6 {
        margin-bottom: 0.5rem;
    }
    
    .col-lg-8 {
        margin-bottom: 0.75rem;
    }
    
    .card {
        min-height: 180px;
    }
    
    .card .card-img-top {
        height: 100px;
    }
    
    .card .card-body {
        padding: 0.75rem 0.5rem;
    }
    
    .card .card-title {
        font-size: 0.9rem;
        margin-bottom: 0.4rem;
    }
    
    .card .card-text {
        font-size: 0.8rem;
        line-height: 1.2;
    }
    
    .fa-3x {
        font-size: 1.8rem !important;
    }
    
    .fa-4x {
        font-size: 2.2rem !important;
    }
    
    /* Override existing mobile styles for consistency */
    .section-light .service-card,
    .service-card,
    .market-card,
    .capability-card,
    .infrastructure-service-card {
        min-height: 180px;
    }
    
    .section-light .service-card .card-img-top,
    .service-card .card-img-top,
    .market-card .card-img-top,
    .capability-card .card-img-top,
    .infrastructure-service-card .card-img-top {
        height: 100px;
    }
    
    .section-light .service-card .card-body,
    .service-card .card-body,
    .market-card .card-body,
    .capability-card .card-body,
    .infrastructure-service-card .card-body {
        padding: 0.75rem 0.5rem;
    }
    
    .section-light .service-card .card-title,
    .service-card .card-title,
    .market-card .card-title,
    .capability-card .card-title,
    .infrastructure-service-card .card-title {
        font-size: 0.9rem;
        margin-bottom: 0.4rem;
    }
    
    .section-light .service-card .card-text,
    .service-card .card-text,
    .market-card .card-text,
    .capability-card .card-text,
    .infrastructure-service-card .card-text {
        font-size: 0.8rem;
        line-height: 1.2;
    }
    
    /* Development Process Section Extra Small Mobile Layout */
    .section-neutral .col-lg-4.col-md-6 {
        flex: 0 0 calc(50% - 0.25rem) !important;
        max-width: calc(50% - 0.25rem) !important;
        margin-bottom: 0.75rem !important;
    }
    
    .section-neutral .col-lg-4.col-md-6 .text-center {
        padding: 0.75rem 0.4rem;
        background: rgba(255, 255, 255, 0.9);
        border-radius: 10px;
        box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
        transition: all 0.3s ease;
        height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
    
    .section-neutral .col-lg-4.col-md-6 .text-center:hover {
        transform: translateY(-3px);
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
        background: rgba(255, 255, 255, 0.95);
    }
    
    .section-neutral .col-lg-4.col-md-6 .bg-primary {
        width: 50px !important;
        height: 50px !important;
        margin-bottom: 0.5rem;
    }
    
    .section-neutral .col-lg-4.col-md-6 h5 {
        font-size: 0.9rem !important;
        font-weight: 600 !important;
        margin-bottom: 0.4rem !important;
        color: var(--primary-color);
    }
    
    .section-neutral .col-lg-4.col-md-6 p {
        font-size: 0.8rem !important;
        line-height: 1.3 !important;
        color: var(--text-dark);
        margin-bottom: 0 !important;
    }
    
    /* Projects Page Specific Styling */
    .hero-projects {
        background-image: linear-gradient(135deg, rgba(15, 23, 42, 0.9) 0%, rgba(245, 158, 11, 0.8) 100%), url('../images/hero-blog.jpg');
    }
    
    .category-card {
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        border: none;
        box-shadow: var(--shadow);
    }
    
    .category-card:hover {
        transform: translateY(-8px) scale(1.02);
        box-shadow: var(--shadow-hover);
    }
    
    .featured-project-card {
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        border: none;
        box-shadow: var(--shadow);
        overflow: hidden;
    }
    
    .featured-project-card:hover {
        transform: translateY(-8px) scale(1.02);
        box-shadow: var(--shadow-hover);
    }
    
    .featured-project-card .card-img-top {
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .featured-project-card:hover .card-img-top {
        transform: scale(1.05);
    }
    
    .project-card {
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        border: none;
        box-shadow: var(--shadow);
        overflow: hidden;
    }
    
    .project-card:hover {
        transform: translateY(-6px) scale(1.02);
        box-shadow: var(--shadow-hover);
    }
    
    .project-card .card-img-top {
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .project-card:hover .card-img-top {
        transform: scale(1.05);
    }
    
    .project-features .badge {
        font-size: 0.75rem;
        padding: 0.25rem 0.5rem;
        border-radius: 6px;
    }
    
    /* Projects Page Mobile Optimization */
    .category-card {
        min-height: 200px;
    }
    
    .category-card .fa-4x {
        font-size: 2.5rem !important;
    }
    
    .category-card h5 {
        font-size: 1.1rem;
        margin-bottom: 0.75rem;
    }
    
    .category-card p {
        font-size: 0.9rem;
        line-height: 1.4;
    }
    
    .featured-project-card .card-img-top {
        height: 200px !important;
    }
    
    .featured-project-card h4 {
        font-size: 1.2rem;
        margin-bottom: 0.75rem;
    }
    
    .featured-project-card p {
        font-size: 0.9rem;
        line-height: 1.5;
    }
    
    .project-card .card-img-top {
        height: 160px !important;
    }
    
    .project-card h5 {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }
    
    .project-card p {
        font-size: 0.85rem;
        line-height: 1.4;
    }
    
    .project-features .badge {
        font-size: 0.7rem;
        padding: 0.2rem 0.4rem;
    }
    
    /* Projects Page Extra Small Mobile Optimization */
    .category-card {
        min-height: 180px;
    }
    
    .category-card .fa-4x {
        font-size: 2rem !important;
    }
    
    .category-card h5 {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }
    
    .category-card p {
        font-size: 0.85rem;
        line-height: 1.3;
    }
    
    .featured-project-card .card-img-top {
        height: 180px !important;
    }
    
    .featured-project-card h4 {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }
    
    .featured-project-card p {
        font-size: 0.85rem;
        line-height: 1.4;
    }
    
    .project-card .card-img-top {
        height: 140px !important;
    }
    
    .project-card h5 {
        font-size: 0.9rem;
        margin-bottom: 0.4rem;
    }
    
    .project-card p {
        font-size: 0.8rem;
        line-height: 1.3;
    }
    
    .project-features .badge {
        font-size: 0.65rem;
        padding: 0.15rem 0.3rem;
    }
    
    /* Project Statistics White Text */
    .stats h2,
    .stats p,
    .section-neutral.stats h2,
    .section-neutral.stats p,
    .section-neutral.stats .lead,
    .section-neutral.stats .display-5,
    .section-neutral.stats .lead.text-muted {
        color: white !important;
    }
    
    /* Performance Optimizations */
    /* Optimize animations */
    .fade-in,
    .slide-up,
    .scale-in {
        transform: translateZ(0);
    }
    

    
    .footer .col-lg-4,
    .footer .col-lg-2 {
        margin-bottom: 1.5rem;
    }
    
    .social-links {
        justify-content: center;
    }
    
    /* Navigation Mobile */
    .navbar-brand {
        font-size: 1.5rem;
    }
    
    .navbar-toggler {
        border: none;
        padding: 0.25rem 0.5rem;
    }
    
    .navbar-toggler:focus {
        box-shadow: none;
    }
    
    /* Dropdown Mobile */
    .dropdown-menu {
        margin-top: 0.5rem;
        border-radius: 8px;
    }
}

/* Touch-friendly interactions */
@media (hover: none) and (pointer: coarse) {
    .btn:hover {
        transform: none;
    }
    
    .card:hover {
        transform: none;
    }
    
    .navbar-nav .nav-link:hover {
        transform: none;
    }
    
    .dropdown-item:hover {
        transform: none;
    }
    
    .social-links a:hover {
        transform: none;
    }
}

/* Smooth scrolling for mobile */
@media (max-width: 768px) {
    html {
        scroll-behavior: smooth;
    }
    
    /* Better touch targets */
    .btn, .nav-link, .dropdown-item {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Improved spacing for touch */
    .row.g-4 > * {
        margin-bottom: 1rem;
    }
    
    /* Better card spacing */
    .card {
        margin-bottom: 1rem;
    }
    
    /* Mobile-specific animations */
    .fade-in, .slide-up, .scale-in {
        animation-duration: 0.4s;
    }
    
    /* Mobile hero improvements */
    .hero {
        background-attachment: scroll !important;
    }
    
    /* Mobile button improvements */
    .btn {
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
    }
    
    /* Mobile card improvements */
    .card {
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
    }
    
    /* Mobile navigation improvements */
    .navbar-nav .nav-link {
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
    }
    
    /* Mobile dropdown improvements */
.dropdown-item {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

/* Mobile Dropdown Fixes */
@media (max-width: 991.98px) {
    .dropdown-menu {
        position: static !important;
        float: none;
        width: 100%;
        margin-top: 0.5rem;
        border: none;
        border-radius: 8px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        background: var(--white);
        z-index: 1000;
        display: none;
        transform: none !important;
    }
    
    .dropdown-menu.show {
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
    }
    
    /* Ensure dropdown is visible when Bootstrap shows it */
    .dropdown-menu.show,
    .dropdown.show .dropdown-menu {
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
    }
    
    /* Prevent dropdown from being hidden by Bootstrap */
    .dropdown-menu.show,
    .dropdown.show .dropdown-menu,
    .dropdown-menu[data-bs-popper="static"] {
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
    }
}
    
    .dropdown-item {
        padding: 0.75rem 1rem;
        border-bottom: 1px solid var(--border-color);
        color: var(--text-dark);
        font-weight: 500;
    }
    
    .dropdown-item:last-child {
        border-bottom: none;
    }
    
    .dropdown-item:hover {
        background-color: var(--light-bg);
        color: var(--primary-color);
        transform: none;
    }
    
    .dropdown-divider {
        margin: 0.5rem 0;
        border-color: var(--border-color);
    }
    
    /* Ensure dropdown toggle works on mobile */
    .dropdown-toggle::after {
        display: inline-block;
        margin-left: 0.255em;
        vertical-align: 0.255em;
        content: "";
        border-top: 0.3em solid;
        border-right: 0.3em solid transparent;
        border-bottom: 0;
        border-left: 0.3em solid transparent;
    }
}

/* Mobile performance optimizations */
@media (max-width: 768px) {
    /* Reduce animations on mobile for better performance */
    .card:hover {
        transform: none;
        transition: none;
    }
    
    .btn:hover {
        transform: none;
        transition: none;
    }
    
    /* Optimize images for mobile */
    img {
        max-width: 100%;
        height: auto;
    }
    
    /* Better mobile typography */
    body {
        -webkit-text-size-adjust: 100%;
        -ms-text-size-adjust: 100%;
    }
    
    /* Mobile-specific spacing */
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    /* Mobile form improvements */
    .form-control, .form-select {
        font-size: 16px; /* Prevents zoom on iOS */
        padding: 12px 16px;
        border-radius: 8px;
    }
    
    /* Mobile table improvements */
    .table-responsive {
        border-radius: 8px;
        overflow: hidden;
    }
    
    /* Mobile modal improvements */
    .modal-dialog {
        margin: 10px;
    }
    
    .modal-content {
        border-radius: 12px;
    }
}

/* Mobile landscape optimizations */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        min-height: 50vh;
        padding: 80px 0 60px;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .py-5 {
        padding-top: 1.5rem !important;
        padding-bottom: 1.5rem !important;
    }
}

/* Loading Animation */
.loading {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.loading.loaded {
    opacity: 1;
    transform: translateY(0);
}

/* Scroll Effects */
.scroll-effect {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.scroll-effect.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--light-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gradient-secondary);
}

/* Features List Styling */
.features-list {
    text-align: left;
    margin-top: 0.75rem;
}

.feature-item {
    margin-bottom: 0.5rem;
}

.feature-item .d-flex {
    align-items: flex-start !important;
}

.feature-item .fas.fa-check-circle {
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.feature-item small {
    line-height: 1.4;
    display: block;
}

/* Energy Trading Page Enhancements */
.service-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-hover);
}

.service-card .card-img-top {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover .card-img-top {
    transform: scale(1.08);
}

.market-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.market-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: var(--shadow-hover);
}

.market-card .card-img-top {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.market-card:hover .card-img-top {
    transform: scale(1.05);
}

/* Energy Development Page Enhancements */
.capability-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.capability-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: var(--shadow-hover);
}

.capability-card .card-img-top {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.capability-card:hover .card-img-top {
    transform: scale(1.05);
}

/* Infrastructure Development Page Enhancements */
.infrastructure-service-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.infrastructure-service-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-hover);
}

.infrastructure-service-card .card-img-top {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.infrastructure-service-card:hover .card-img-top {
    transform: scale(1.08);
}

/* General Spacing Reductions */
.py-5 {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
}

.mb-5 {
    margin-bottom: 2.5rem !important;
}

.mb-4 {
    margin-bottom: 1.5rem !important;
}

.mb-3 {
    margin-bottom: 1rem !important;
}

.card-body {
    padding: 1.25rem;
}

/* Page Load Animation */
body {
    opacity: 0;
    transition: opacity 0.6s ease;
}

body.page-loaded {
    opacity: 1;
}

/* Enhanced Smooth Transitions */
.btn, .card, .navbar-nav .nav-link, .dropdown-item, .social-links a {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.btn:hover, .card:hover, .navbar-nav .nav-link:hover, .dropdown-item:hover, .social-links a:hover {
    transform: translateY(-3px) scale(1.02) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2) !important;
}

/* Smooth Image Loading */
img {
    transition: opacity 0.4s ease;
}

img.loaded {
    opacity: 1;
}

/* Enhanced Scroll Animations */
.fade-in, .slide-up, .slide-left, .slide-right, .scale-in {
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* Smooth Form Interactions */
input, textarea, select {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

input:focus, textarea:focus, select:focus {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

@media (max-width: 768px) {
    .py-5 {
        padding-top: 2rem !important;
        padding-bottom: 2rem !important;
    }
    
    .card-body {
        padding: 1rem;
    }
}

@media (max-width: 576px) {
    .py-5 {
        padding-top: 1.5rem !important;
        padding-bottom: 1.5rem !important;
    }
    
    .card-body {
        padding: 0.75rem;
    }
}